.profile-container {
    margin-top: 40px;
    margin-bottom: 80px;
    padding: 0 20px;
}

.profile-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
}

.profile-content-wrapper {
    flex: 1;
    min-width: 0;
    width: 100%;
}

@media (max-width: 992px) {
    .profile-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-content-wrapper {
        width: 100%;
    }
}

.profile-sidebar-card {
    width: 320px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    height: fit-content;
    overflow: hidden;
}

@media (max-width: 992px) {
    .profile-sidebar-card {
        width: 100%;
    }
}

.profile-menu-header {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    padding: 22px 25px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-menu-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: 'Kanit', sans-serif;
}

.profile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 25px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-menu-item i {
    font-size: 16px;
    color: var(--text-muted);
    width: 20px;
    text-align: center;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-menu-item:hover {
    background: rgba(37, 99, 235, 0.04);
    color: var(--accent-blue);
}

.profile-menu-item:hover i {
    color: var(--accent-blue);
}

.profile-menu-item.active {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    color: var(--text-white);
    box-shadow: var(--shadow-glow);
}

.profile-menu-item.active i {
    color: var(--text-white);
}

.profile-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 10px 0;
}

.profile-content-card {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
}

@media (max-width: 576px) {
    .profile-content-card {
        padding: 25px 20px;
    }
}

.profile-card-header {
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.profile-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .profile-form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.profile-avatar-container {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    position: relative;
    background: var(--bg-tertiary);
}

.profile-avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--text-muted);
}

.profile-user-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-top: 5px;
}

.profile-user-email {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: -10px;
}

.profile-stats-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.profile-stat-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-blue);
}

.profile-header {
    background-image: url('../images/bg/background.jpg');
}

.modal-dialog-capsule {
    max-width: 460px;
    width: 90%;
    height: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 12% auto 0 auto;
}

.modal.show .modal-dialog-capsule {
    transform: scale(1);
}

.modal-content-capsule {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}

.modal-header-capsule {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 40px;
    text-align: center;
    margin-bottom: 0;
    position: relative;
}

.menu-text-desktop {
    display: inline;
}

.menu-text-mobile {
    display: none;
}

.modal-header-capsule h2 {
    font-size: 21px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Kanit', sans-serif;
}

.modal-header-capsule h2 i {
    color: var(--text-white);
    font-size: 20px;
}

.modal-close-capsule {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 25px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    z-index: 2010;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-white);
    transition: var(--transition-smooth);
}

.modal-close-capsule:hover {
    background: var(--text-white);
    color: var(--accent-blue-dark);
    transform: translateY(-50%) rotate(90deg);
}

.modal-body-capsule {
    padding: 35px 40px 40px 40px;
}

.form-group-capsule {
    margin-bottom: 24px;
    text-align: left;
}

.form-label-capsule {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    font-family: 'Kanit', sans-serif;
}

.form-control-capsule {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-family: 'Kanit', sans-serif;
    font-size: 14.5px;
    color: var(--text-main);
    outline: none;
    transition: var(--transition-smooth);
    background-color: var(--bg-primary);
}

.form-control-capsule:focus {
    border-color: var(--accent-blue);
    background-color: var(--bg-secondary);
    box-shadow: var(--shadow-glow);
}

.form-control-capsule.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.btn-submit-capsule {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit-capsule:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.profile-identity-section {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 10px 0;
    margin-bottom: 25px;
}

.profile-identity-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--bg-tertiary);
    transition: all 0.3s ease;
}

.profile-identity-avatar:hover {
    border-color: var(--accent-blue);
    transform: scale(1.02);
}

.profile-identity-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.identity-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--text-muted);
}

.avatar-edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-identity-avatar:hover .avatar-edit-overlay {
    opacity: 1;
}

.profile-identity-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.identity-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    letter-spacing: -0.5px;
}

.identity-badges {
    display: flex;
    gap: 10px;
}

.provider-capsule {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.profile-card-divider {
    height: 1px;
    background: var(--border-color);
    margin: 25px 0;
    width: 100%;
}

.profile-financial-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px 40px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.financial-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.financial-box-divider {
    width: 1px;
    height: 45px;
    background-color: var(--border-color);
    margin: 0 40px;
}

.financial-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: -0.2px;
}

.financial-label i {
    color: var(--accent-blue);
    font-size: 14px;
}

.financial-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    font-family: 'Kanit', sans-serif;
    letter-spacing: -0.5px;
    line-height: 1;
}

.bank-account-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(16, 185, 129, 0.04));
    border: 1.5px solid rgba(37, 99, 235, 0.2);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.bank-account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #2563eb, #10b981);
}

.bank-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bank-logo-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(16, 185, 129, 0.15));
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.bank-details-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bank-name-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.bank-tag-dot {
    width: 7px;
    height: 7px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.bank-acc-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    font-family: 'Kanit', monospace;
    letter-spacing: 1.5px;
    line-height: 1.2;
}

.bank-owner-name {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.bank-owner-name i {
    color: #10b981;
    font-size: 13px;
}

.btn-copy-account {
    height: 42px;
    padding: 0 20px;
    background: var(--accent-blue);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: 'Kanit', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-copy-account:hover {
    background: var(--accent-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

@media (max-width: 576px) {
    .profile-financial-summary {
        flex-direction: column;
        gap: 20px;
        padding: 25px 20px;
    }
    .financial-box-divider {
        width: 100%;
        height: 1px;
        margin: 10px 0;
        background-color: var(--border-color);
    }
}

.avatar-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(11, 18, 32, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.avatar-modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-modal-overlay.active .avatar-modal-card {
    transform: scale(1);
}

.avatar-modal-header {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    padding: 22px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.avatar-modal-header h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Kanit', sans-serif;
}

.avatar-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: var(--text-white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.avatar-modal-close:hover {
    background: var(--text-white);
    color: var(--accent-blue-dark);
    transform: rotate(90deg);
}

.avatar-modal-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.avatar-tab-btn {
    border: none;
    background: none;
    padding: 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Kanit', sans-serif;
}

.avatar-tab-btn.active {
    color: var(--accent-blue);
    background: var(--bg-secondary);
    box-shadow: inset 0 -3px 0 var(--accent-blue);
}

.avatar-modal-body {
    padding: 30px;
}

.avatar-tab-content {
    display: none;
}

.avatar-tab-content.active {
    display: block;
}

.file-upload-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.file-upload-label {
    width: 100%;
    border: 2px dashed var(--border-color);
    border-radius: 20px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-tertiary);
}

.file-upload-label:hover {
    border-color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.02);
}

.file-upload-label i {
    font-size: 42px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.file-upload-label:hover i {
    color: var(--accent-blue);
    transform: translateY(-4px);
}

.file-upload-label span {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.file-upload-label small {
    font-size: 12px;
    color: var(--text-muted);
}

.avatar-preview-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent-blue);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.avatar-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-name-preview {
    font-size: 13.5px;
    color: var(--accent-blue);
    font-weight: 700;
}

.avatar-modal-footer {
    padding: 0 30px 30px 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.avatar-modal-footer:has(.btn-avatar-cancel[style*="display: inline-block"]) {
    grid-template-columns: 1fr 1.5fr;
}

.btn-avatar-cancel {
    padding: 14px;
    border-radius: 12px;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-main);
    transition: all 0.3s ease;
}

.btn-avatar-cancel:hover {
    background: #ef4444;
    color: var(--text-white);
    border-color: #ef4444;
}

.btn-avatar-submit {
    padding: 14px;
    border-radius: 12px;
    font-family: 'Kanit', sans-serif;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.btn-avatar-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

@media (max-width: 576px) {
    .profile-identity-section {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .profile-identity-info {
        align-items: center;
        text-align: center;
    }
    .profile-financial-summary {
        grid-template-columns: 1fr;
    }
}
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper .form-control-capsule,
.password-input-wrapper .form-input {
    padding-right: 55px;
}

.btn-toggle-password-field,
.btn-toggle-password {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 10;
}

.btn-toggle-password-field:hover,
.btn-toggle-password:hover {
    color: var(--text-main);
}

.topup-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.topup-card {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

.payment-tabs-wrapper {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 10px;
}

.payment-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.payment-tab-btn {
    border: 1px solid transparent;
    background: none;
    padding: 18px 25px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: 'Kanit', sans-serif;
    color: var(--text-muted);
}

.payment-tab-btn .tab-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.payment-tab-btn .tab-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-tab-btn .tab-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.payment-tab-btn .tab-desc {
    font-size: 11.5px;
    color: var(--text-muted);
}

.payment-tab-btn:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border-color);
}

.payment-tab-btn.active {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    box-shadow: var(--shadow-premium);
}

.payment-tab-btn.active[data-target="truemoney"] .tab-icon {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}

.payment-tab-btn.active[data-target="qrcode"] .tab-icon {
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-blue);
    border-color: rgba(37, 99, 235, 0.2);
}

.payment-tab-contents {
    padding: 40px;
}

.payment-tab-content {
    display: none;
}

.payment-tab-content.active {
    display: block;
}

.qr-payment-area {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
}

.qr-code-box {
    background: var(--text-white);
    border-radius: 20px;
    padding: 15px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qr-code-header {
    width: 100%;
    text-align: center;
    border-bottom: 1px dashed rgba(11, 18, 32, 0.1);
    padding-bottom: 10px;
}

.qr-logo-text {
    font-size: 13.5px;
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: -0.2px;
}

.qr-code-body {
    padding: 5px;
}

.qr-code-mock {
    font-size: 130px;
    color: #1e293b;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-footer {
    width: 100%;
    text-align: center;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 6px;
}

.qr-scan-hint {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

.qr-details-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.details-panel-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

.bank-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bank-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.bank-detail-item .detail-label {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.bank-detail-item .detail-value {
    font-size: 14.5px;
    color: var(--text-main);
    font-weight: 700;
}

.bank-detail-item .detail-value.text-highlight {
    color: var(--accent-blue);
}

.payment-instructions {
    background: rgba(37, 99, 235, 0.03);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 14px;
    padding: 18px 20px;
}

.payment-instructions p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 680px) {
    .qr-payment-area {
        grid-template-columns: 1fr;
        gap: 30px;
        justify-items: center;
    }
    .payment-tabs {
        grid-template-columns: 1fr;
    }
    .payment-tab-contents {
        padding: 30px 20px;
    }
}

.topup-placeholder-section {
    padding: 100px 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topup-placeholder-box {
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    max-width: 600px;
    margin: 0 auto;
}

.topup-placeholder-text {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
    font-family: 'Kanit', sans-serif;
    margin: 0;
}

.product-detail-section {
    padding: 60px 0 100px 0;
    background-color: var(--bg-primary);
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-gallery-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 25px;
    box-shadow: var(--shadow-premium);
}

.gallery-main-display {
    width: 100%;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #0b111e;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-display img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.gallery-nav-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

.gallery-prev-btn {
    left: 20px;
}

.gallery-next-btn {
    right: 20px;
}

.gallery-thumbnails {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.gallery-thumbnail-item {
    width: 85px;
    height: 65px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: #0b111e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-thumbnail-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.gallery-thumbnail-item:hover img {
    opacity: 0.8;
}

.gallery-thumbnail-item.active {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.gallery-thumbnail-item.active img {
    opacity: 1;
}

.product-info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-id-tag {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 6px 16px;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
}

.product-status-tag {
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 6px 16px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.status-dot-radar {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
}

.status-dot-radar::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #10b981;
    opacity: 0;
    animation: radar-pulse 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    box-sizing: border-box;
}

@keyframes radar-pulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.product-detail-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.4;
    letter-spacing: -0.5px;
    margin: 0;
    font-family: 'Kanit', sans-serif;
}

.product-desc-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 10px 20px;
}

.product-spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.product-spec-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.product-spec-list li:last-child {
    border-bottom: none;
}

.spec-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-main);
}

.spec-item-left i {
    color: var(--accent-blue);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.spec-check-icon {
    color: #10b981;
    font-size: 16px;
}

.spec-x-icon {
    color: #ef4444;
    font-size: 16px;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-top: 10px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.product-price-row .price-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.product-price-row .price-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-blue);
    font-family: 'Kanit', sans-serif;
    line-height: 1;
}

.product-price-row .currency-symbol {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-left: 2px;
}

.product-discount-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 15px;
}

.discount-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
}

.discount-input-row {
    display: flex;
    gap: 12px;
}

.discount-input {
    flex: 1;
}

.btn-apply-discount {
    padding: 0 25px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Kanit', sans-serif;
    transition: all 0.3s ease;
}

.btn-apply-discount:hover {
    background: var(--border-color);
    border-color: var(--text-muted);
}

.discount-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    width: 100%;
}

.coupon-msg-box {
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    width: auto;
}

.coupon-msg-box.success {
    color: #10b981;
}

.coupon-msg-box.error {
    color: #ef4444;
}

.btn-buy-product {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    color: var(--text-white);
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Kanit', sans-serif;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.btn-buy-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

.topup-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.topup-input-wrapper i {
    position: absolute;
    left: 16px;
    font-size: 16px;
    color: var(--accent-blue);
    pointer-events: none;
    z-index: 2;
}

.topup-input-field {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 46px;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Kanit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}

.topup-input-field:focus {
    border-color: var(--accent-blue);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

@media (max-width: 992px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .gallery-main-display {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .gallery-main-display {
        height: 280px;
    }
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .product-info-card {
        padding: 25px;
    }
}

.discount-results-box {
    flex-direction: column;
    gap: 10px;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-top: 15px;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.discount-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

.discount-result-row.total-row {
    font-weight: 700;
    color: var(--text-main);
    padding-top: 5px;
}

.discount-result-row.total-row .result-value {
    color: #10b981;
    font-size: 18px;
    font-family: 'Kanit', sans-serif;
}

.product-notice-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 25px;
    margin-top: 25px;
    box-shadow: var(--shadow-premium);
}

.product-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.product-notice-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

.product-notice-list li:first-child {
    padding-top: 5px;
}

.product-notice-list li:last-child {
    padding-bottom: 5px;
}

.notice-icon {
    color: var(--accent-blue);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.about-cards-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
}

.about-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 35px;
    box-shadow: var(--shadow-premium);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.25);
}

.about-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-blue);
    padding-left: 14px;
    line-height: 1.3;
}

.about-card-content {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    white-space: pre-wrap;
}

.about-empty-box {
    text-align: center;
    background: var(--bg-secondary);
    border: 1px dashed var(--border-color);
    border-radius: 20px;
    padding: 60px 40px;
    color: var(--text-muted);
    font-size: 15px;
    max-width: 800px;
    margin: 0 auto;
}


.history-table-responsive {
    width: 100%;
    overflow-x: auto;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14.5px;
}

.history-table th {
    background: var(--bg-tertiary);
    color: var(--text-main);
    font-weight: 700;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Kanit', sans-serif;
    font-size: 14.5px;
}

.history-table th:first-child,
.history-table td:first-child {
    padding-left: 28px;
}

.history-table th:last-child,
.history-table td:last-child {
    padding-right: 28px;
}

.history-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    vertical-align: middle;
    font-size: 14px;
}

.history-table tr:last-child td {
    border-bottom: none;
}

.history-table tr:hover td {
    background: rgba(37, 99, 235, 0.02);
    color: var(--text-main);
}

.history-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.history-badge.success {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
}

.history-badge.pending {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
}

.history-badge.failed {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.btn-history-view {
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-blue);
    border: 1px solid rgba(37, 99, 235, 0.15);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Kanit', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-history-view:hover {
    background: var(--accent-blue);
    color: var(--text-white);
    border-color: var(--accent-blue);
}

.history-empty-box {
    text-align: center;
    padding: 60px 40px;
    color: var(--text-muted);
}

.history-empty-icon {
    font-size: 40px;
    color: var(--border-color);
    margin-bottom: 15px;
}

.history-empty-text {
    font-size: 15px;
    font-weight: 500;
}

.details-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.details-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.details-modal-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    width: 480px;
    max-width: 90%;
    padding: 30px;
    box-shadow: var(--shadow-premium);
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.details-modal-overlay.active .details-modal-box {
    transform: translateY(0);
}

.details-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.details-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.details-modal-close-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.details-modal-close-btn:hover {
    color: #ef4444;
}

.details-content-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    font-family: 'Kanit', sans-serif;
    font-size: 14px;
    color: var(--text-main);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
}

.details-copy-btn {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    border: none;
    background: var(--accent-blue);
    color: #ffffff;
    font-family: 'Kanit', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.details-copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}


.container-expanded {
    max-width: 1350px !important;
    width: 100%;
}

.profile-sidebar-card.sidebar-history {
    width: 280px;
    flex-shrink: 0;
}

.history-content-card {
    width: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
}

.history-table td.nowrap-cell, 
.history-table th.nowrap-cell {
    white-space: nowrap;
}

.product-title-cell {
    white-space: nowrap;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
}


