/* Ggram Refill System - Minimalista Dark */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* Page Layout */
.refill-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.refill-header {
    padding: 25px 0;
    border-bottom: 1px solid #2b2e38;
}

.refill-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main */
.refill-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 60px 20px;
}

.refill-wrapper {
    max-width: 550px;
    margin: 0 auto;
    width: 100%;
}

/* Refill Box */
.refill-box {
    background: #1e2028;
    border: 1px solid #2b2e38;
    border-radius: 20px;
    padding: 50px 40px;
}

.refill-icon {
    width: 70px;
    height: 70px;
    background: #5E0AEF;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 32px;
    color: white;
}

.refill-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 8px;
}

.refill-subtitle {
    font-size: 15px;
    color: #747886;
    text-align: center;
    margin-bottom: 35px;
}

/* Form */
.input-group-refill {
    margin-bottom: 25px;
}

.input-group-refill label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.input-wrapper-refill {
    position: relative;
}

.input-prefix {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 700;
    color: #5E0AEF;
}

.input-wrapper-refill input {
    width: 100%;
    padding: 16px 20px 16px 45px;
    background: #23252e;
    border: 2px solid #2b2e38;
    border-radius: 12px;
    font-size: 16px;
    color: #fff;
    outline: none;
    transition: all 0.3s;
}

.input-wrapper-refill input:focus {
    border-color: #5E0AEF;
    background: #2a2d35;
}

.input-wrapper-refill input::placeholder {
    color: #525560;
}

/* Button */
.btn-refill {
    width: 100%;
    padding: 18px;
    background: #5E0AEF;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-refill:hover {
    background: #5915cf;
    transform: translateY(-2px);
}

.btn-refill:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.success-message {
    margin-top: 30px;
    animation: slideIn 0.4s ease;
}

.message-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.success-icon {
    background: #0fba7d;
    color: white;
}

.error-icon {
    background: #f64c50;
    color: white;
}

.message-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: #fff;
}

.message-text {
    font-size: 14px;
    color: #747886;
    text-align: center;
    margin-bottom: 25px;
}

/* Profile Card */
.profile-card {
    background: #23252e;
    border-radius: 15px;
    padding: 30px 25px;
    margin-bottom: 20px;
}

.profile-header {
    text-align: center;
    margin-bottom: 15px;
}

.profile-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #5E0AEF;
    object-fit: cover;
}

.profile-fallback {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #5E0AEF;
    background: #5E0AEF;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: 700;
    margin: 0 auto;
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5px;
    color: #fff;
}

.profile-username {
    font-size: 14px;
    color: #747886;
    text-align: center;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
    border-top: 1px solid #2b2e38;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.stat-number.highlight {
    color: #5E0AEF;
}

.stat-label {
    font-size: 12px;
    color: #747886;
}

/* Refill Info */
.refill-info {
    background: #23252e;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.refill-amount {
    display: flex;
    align-items: center;
    gap: 15px;
}

.refill-amount i {
    font-size: 28px;
    color: #5E0AEF;
}

.refill-amount > div {
    display: flex;
    flex-direction: column;
}

.refill-label {
    font-size: 12px;
    color: #747886;
    margin-bottom: 3px;
}

.refill-value {
    font-size: 20px;
    font-weight: 700;
    color: #5E0AEF;
}

.info-footer {
    text-align: center;
    font-size: 13px;
    color: #747886;
    margin: 0;
}

.info-footer i {
    margin-right: 5px;
}

/* Error Message */
.error-message {
    margin-top: 30px;
    animation: slideIn 0.4s ease;
}

/* Footer */
.refill-footer {
    padding: 30px 0;
    border-top: 1px solid #2b2e38;
}

.refill-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.refill-footer p {
    text-align: center;
    font-size: 13px;
    color: #747886;
    margin: 0;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .refill-box {
        padding: 35px 25px;
    }
    
    .refill-title {
        font-size: 24px;
    }
    
    .refill-subtitle {
        font-size: 14px;
    }
    
    .refill-header {
        padding: 20px 0;
    }
    
    .refill-main {
        padding: 40px 15px;
    }
}