/**
 * GilGamez Platform — User Profile & Settings Hub Stylesheet
 * Strictly Enforces Rule #1 (CSS Separation), Rule #6 (Responsive Viewports 320px - 4K)
 */

/* ── Container Layout ── */
.profile-page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 80px;
    box-sizing: border-box;
    width: 100%;
}

/* ── Hero Header ── */
.profile-header-banner {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 32px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    box-sizing: border-box;
}

.profile-header-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.profile-user-intro {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.profile-avatar-slot {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.25);
    background: #0f172a;
    flex-shrink: 0;
}

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

.profile-user-meta {
    min-width: 0;
}

.profile-user-meta h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    word-break: break-word;
}

.profile-role-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    display: inline-flex;
    align-items: center;
}

.profile-user-email {
    font-size: 0.88rem;
    color: #94a3b8;
    margin: 0;
    word-break: break-all;
}

.profile-wallet-quick-stat {
    position: relative;
    z-index: 1;
    text-align: right;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px 20px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.profile-wallet-quick-stat .stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.profile-wallet-quick-stat .stat-amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: #34d399;
    font-family: 'JetBrains Mono', monospace;
}

/* ── Custom Segmented Navigation Tabs ── */
.custom-tab-nav,
.profile-tabs-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(13, 18, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 24px;
    box-sizing: border-box;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.custom-tab-nav::-webkit-scrollbar,
.profile-tabs-nav::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.custom-tab-btn,
.profile-tab-btn {
    height: 40px;
    min-height: 40px;
    padding: 0 14px;
    margin: 0;
    box-sizing: border-box;
    border-radius: 9px;
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: max-content;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    position: relative;
    font-family: inherit;
}

.custom-tab-btn:hover,
.profile-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.08);
}

.custom-tab-btn.is-active,
.custom-tab-btn.active,
.profile-tab-btn.is-active,
.profile-tab-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.28) 0%, rgba(168, 85, 247, 0.22) 100%);
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.custom-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
}

.custom-tab-btn.is-active .custom-tab-badge,
.profile-tab-btn.is-active .custom-tab-badge {
    background: rgba(99, 102, 241, 0.4);
    color: #fff;
}

/* ── Tab Panels ── */
.profile-tab-panel {
    display: none;
    box-sizing: border-box;
    width: 100%;
}

.profile-tab-panel.is-active {
    display: block;
    animation: fadeInTab 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Content Cards ── */
.profile-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    width: 100%;
}

.profile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 12px;
}

.profile-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.profile-card-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 4px 0 0;
    line-height: 1.4;
}

/* ── Form Controls & Grid Systems ── */
.profile-avatar-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-avatar-preview-mini {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.profile-name-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.profile-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box;
    width: 100%;
}

.profile-input-group-full {
    margin-bottom: 18px;
}

.profile-input-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.profile-age-badge {
    font-size: 0.78rem;
    font-weight: 700;
    color: #a5b4fc;
    margin-left: 6px;
}

.profile-input-field {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 11px 14px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    width: 100%;
    font-family: inherit;
}

.profile-input-field:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.profile-input-field::placeholder {
    color: #64748b;
}

/* ── Security & Credentials Section ── */
.profile-security-section-divider {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-security-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-security-title {
    color: #fff;
    font-size: 0.95rem;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-security-email-meta {
    font-size: 0.84rem;
    color: #94a3b8;
    word-break: break-all;
}

.profile-security-email-value {
    color: #60a5fa;
    font-family: 'JetBrains Mono', monospace;
}

.profile-email-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
}

.profile-security-box {
    background: rgba(13, 18, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 18px;
    box-sizing: border-box;
}

.profile-security-box-desc {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* ── Saved Game IDs Grid ── */
.identifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.identification-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px;
    position: relative;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.identification-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.identification-card.is-default {
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(16, 185, 129, 0.05);
}

.identification-game-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.default-chip {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(52, 211, 153, 0.2);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #34d399;
}

.identification-account-details {
    font-size: 0.86rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 14px;
    word-break: break-all;
}

.identification-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
    flex-wrap: wrap;
}

/* ── Wallet Top-Up Presets & Ledger ── */
.wallet-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 16px;
}

.deposit-presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.deposit-preset-btn {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.deposit-preset-btn:hover,
.deposit-preset-btn.is-selected {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: #a5b4fc;
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.3);
}

.wallet-ledger-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
}

/* ── Preferences Toggle Switch Item ── */
.preference-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 16px;
}

.preference-toggle-item:last-child {
    border-bottom: none;
}

.preference-label-wrap {
    min-width: 0;
}

.preference-label-wrap h4 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    color: #fff;
}

.preference-label-wrap p {
    margin: 0;
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.4;
}

.profile-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}

.profile-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.profile-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #334155;
    transition: .3s;
    border-radius: 34px;
}

.profile-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.profile-switch input:checked + .profile-switch-slider {
    background-color: #6366f1;
}

.profile-switch input:checked + .profile-switch-slider:before {
    transform: translateX(20px);
}

/* ── Custom Language Select Dropdown with Crisp SVG Flags ── */
.custom-lang-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-lang-select-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 0.92rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.custom-lang-select-btn:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(15, 23, 42, 0.95);
}

.custom-lang-select-btn:focus-visible {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.custom-lang-selected-flag {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.custom-lang-selected-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-lang-chevron {
    color: #94a3b8;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.custom-lang-select-wrapper.is-open .custom-lang-chevron {
    transform: rotate(180deg);
}

.custom-lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #0f172a;
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    z-index: 100;
    max-height: 220px;
    overflow-y: auto;
    box-sizing: border-box;
    animation: fadeInModal 0.15s ease forwards;
}

.custom-lang-select-wrapper.is-open .custom-lang-dropdown {
    display: block;
}

.custom-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: #cbd5e1;
    font-size: 0.88rem;
    transition: all 0.15s ease;
}

.custom-lang-option:hover {
    background: rgba(99, 102, 241, 0.18);
    color: #fff;
}

.custom-lang-option.is-selected {
    background: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    font-weight: 600;
}

.custom-lang-option-flag {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.custom-lang-option-name {
    flex: 1;
}

.custom-lang-check {
    color: #34d399;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ── Generic Buttons System (Rule #1) ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
    font-family: inherit;
    box-sizing: border-box;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    color: #ffffff;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
}

/* ── Select Dropdown Styling ── */
select.profile-input-field {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(15, 23, 42, 0.9);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 40px;
    cursor: pointer;
    color: #ffffff;
}

select.profile-input-field option {
    background: #0f172a;
    color: #ffffff;
    padding: 12px;
}

/* ── Profile & Modal Dialogs (Saved Game ID, OTP, Password) ── */
.profile-modal-overlay,
.storefront-modal-overlay,
.email-otp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(8, 12, 24, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    animation: fadeInModal 0.2s ease forwards;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.profile-modal-dialog,
.storefront-modal-content,
.email-otp-modal-content {
    background: #0f172a;
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 18px;
    max-width: 480px;
    width: 100%;
    padding: 26px 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(99, 102, 241, 0.15);
    position: relative;
    box-sizing: border-box;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    animation: slideUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpModal {
    from { transform: translateY(20px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.profile-modal-close,
.store-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.profile-modal-close:hover,
.store-modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.profile-modal-header-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.profile-modal-icon-badge {
    font-size: 1.6rem;
    line-height: 1;
}

.profile-modal-heading {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.profile-modal-subheading {
    color: #94a3b8;
    font-size: 0.88rem;
    margin: 0;
}

.profile-modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-modal-form .profile-input-group {
    margin-bottom: 0;
}

.profile-modal-ign-status {
    font-size: 0.84rem;
    min-height: 20px;
}

.profile-modal-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 8px;
}

.profile-modal-submit-btn {
    width: 100%;
    min-height: 44px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.email-otp-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.email-otp-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.email-otp-desc {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.email-otp-target {
    color: #60a5fa;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
}

.email-otp-input-group {
    margin-bottom: 20px;
}

.email-otp-input {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 10px;
    text-align: center;
    width: 100%;
    padding: 12px;
    background: rgba(15, 23, 42, 0.95);
    border: 2px solid #6366f1;
    border-radius: 12px;
    color: #fff;
    outline: none;
    font-family: 'JetBrains Mono', monospace;
    box-sizing: border-box;
}

.email-otp-hint {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 6px;
}

.email-otp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 14px;
}

.email-otp-resend-btn {
    background: none;
    border: none;
    color: #818cf8;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-family: inherit;
}

/* ── Responsive Viewports Standard (Rule #6) ── */

/* ── Responsive Viewports Standard (Rule #6) ── */

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) {
    .profile-page-wrapper {
        padding: 20px 14px 60px;
    }
}

/* Tablet & Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .profile-page-wrapper {
        padding: 12px 0 60px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Mobile Hero Banner */
    .profile-header-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 14px;
        gap: 14px;
        border-radius: 16px;
        margin-bottom: 14px;
    }

    .profile-user-intro {
        display: flex;
        align-items: center;
        gap: 14px;
        width: 100%;
    }

    .profile-avatar-slot {
        width: 58px;
        height: 58px;
        border-radius: 14px;
        flex-shrink: 0;
    }

    .profile-user-meta {
        flex: 1;
        min-width: 0;
    }

    .profile-user-meta h1 {
        font-size: 1.2rem;
        margin: 0 0 4px;
        gap: 6px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    .profile-role-badge {
        font-size: 0.68rem;
        padding: 2px 7px;
    }

    .profile-user-email {
        font-size: 0.8rem;
        word-break: break-all;
    }

    /* Mobile Wallet Balance Bar */
    .profile-wallet-quick-stat {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 14px;
        border-radius: 12px;
        background: rgba(15, 23, 42, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-sizing: border-box;
    }

    .profile-wallet-quick-stat .stat-label {
        font-size: 0.72rem;
        margin-bottom: 0;
    }

    .profile-wallet-quick-stat .stat-amount {
        font-size: 1.15rem;
    }

    /* Sleek Horizontal Touch-Scrollable Segmented Tabs on Mobile */
    .custom-tab-nav,
    .profile-tabs-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 6px;
        padding: 5px;
        border-radius: 12px;
        margin-bottom: 16px;
        scroll-snap-type: x proximity;
    }

    .custom-tab-nav::-webkit-scrollbar,
    .profile-tabs-nav::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .custom-tab-btn,
    .profile-tab-btn {
        flex: 0 0 auto;
        width: auto;
        min-height: 38px;
        height: 38px;
        padding: 0 13px;
        font-size: 12.5px;
        border-radius: 8px;
        white-space: nowrap;
        text-align: center;
        scroll-snap-align: start;
        gap: 6px;
    }

    /* Mobile Content Cards */
    .profile-card {
        padding: 16px 14px;
        border-radius: 16px;
        margin-bottom: 14px;
    }

    .profile-card-header {
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .profile-card-title {
        font-size: 1.05rem;
    }

    .profile-card-desc {
        font-size: 0.8rem;
        margin-top: 3px;
    }

    /* Forms on Mobile */
    .profile-avatar-row {
        gap: 12px;
        margin-bottom: 14px;
        padding-bottom: 14px;
    }

    .profile-avatar-preview-mini {
        width: 52px;
        height: 52px;
        border-radius: 12px;
    }

    .profile-name-grid,
    .profile-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }

    .profile-input-group-full {
        margin-bottom: 14px;
    }

    .profile-input-label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .profile-input-field {
        height: 42px;
        min-height: 42px;
        font-size: 13.5px;
        padding: 8px 12px;
        border-radius: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    textarea.profile-input-field {
        height: auto;
        min-height: 80px;
    }

    .btn {
        width: 100%;
        min-height: 42px;
        font-size: 13.5px;
        border-radius: 10px;
        justify-content: center;
    }

    .deposit-presets-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .identifications-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .identification-card {
        padding: 14px;
        border-radius: 12px;
    }

    .connected-accounts-wrapper {
        gap: 14px;
    }

    .discord-featured-card {
        padding: 16px 14px;
        border-radius: 14px;
    }

    .discord-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .account-status-pill {
        align-self: flex-start;
    }
}

/* Small Mobile Devices (<= 480px) */
@media (max-width: 480px) {
    .profile-page-wrapper {
        padding: 8px 0 50px;
    }

    .profile-header-banner {
        padding: 14px 12px;
        border-radius: 14px;
        gap: 12px;
    }

    .profile-avatar-slot {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .profile-user-meta h1 {
        font-size: 1.1rem;
    }

    .profile-wallet-quick-stat {
        padding: 9px 12px;
    }

    .profile-wallet-quick-stat .stat-amount {
        font-size: 1.05rem;
    }

    .custom-tab-nav,
    .profile-tabs-nav {
        gap: 5px;
        padding: 4px;
        border-radius: 10px;
        margin-bottom: 12px;
    }

    .custom-tab-btn,
    .profile-tab-btn {
        font-size: 12px;
        gap: 5px;
        padding: 0 11px;
        min-height: 36px;
        height: 36px;
    }

    .profile-card {
        padding: 14px 12px;
        border-radius: 14px;
        margin-bottom: 12px;
    }

    .deposit-presets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .email-otp-input {
        font-size: 22px;
        letter-spacing: 5px;
        padding: 8px 4px;
    }

    .email-otp-modal-content {
        padding: 18px 14px;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   CONNECTED ACCOUNTS & DISCORD LINKING STYLES (v2.1.5)
   ══════════════════════════════════════════════════════════════════════════ */
.connected-accounts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.discord-featured-card {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(88, 101, 242, 0.35);
    border-radius: 18px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.discord-featured-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.discord-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.discord-brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.discord-brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #5865F2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
    flex-shrink: 0;
}

.discord-brand-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.discord-brand-info p {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0;
}

.account-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.account-status-pill--linked {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.account-status-pill--unlinked {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #94a3b8;
}

.discord-active-account-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.discord-account-details {
    display: flex;
    align-items: center;
    gap: 14px;
}

.discord-user-tag {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
}

.discord-snowflake-sub {
    font-size: 0.78rem;
    color: #64748b;
    font-family: monospace;
}

.discord-linking-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 16px;
}

.linking-method-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.linking-method-card h5 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.linking-method-card p {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0 0 14px;
    line-height: 1.4;
}

.otp-box-wrapper {
    background: rgba(0, 0, 0, 0.35);
    border: 1px dashed rgba(88, 101, 242, 0.5);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    margin-bottom: 12px;
}

.otp-code-value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 6px;
    color: #a5b4fc;
    font-family: monospace;
    margin-bottom: 4px;
}

.otp-expiry-hint {
    font-size: 0.72rem;
    color: #64748b;
}

.other-platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.platform-connection-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.platform-connection-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.platform-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.platform-label-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-badge-icon {
    font-size: 1.3rem;
}

.platform-name-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
}

.platform-linked-value {
    font-size: 0.86rem;
    font-weight: 600;
    color: #cbd5e1;
    word-break: break-all;
}

.platform-input-group {
    display: flex;
    gap: 8px;
}

.platform-input-group input {
    flex: 1;
    min-width: 0;
    font-size: 0.84rem;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
}

.platform-input-group input:focus {
    border-color: #6366f1;
    outline: none;
}

@media (max-width: 768px) {
    .discord-linking-options-grid {
        grid-template-columns: 1fr;
    }
    .other-platforms-grid {
        grid-template-columns: 1fr;
    }
    .discord-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MY ORDERS & PURCHASE HISTORY STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.orders-filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(12px);
}

.orders-category-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-order-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-order-category:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
}

.btn-order-category.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

.orders-filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 260px;
}

.orders-search-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 320px;
    min-width: 160px;
}

.orders-search-input {
    width: 100%;
    padding: 7px 12px 7px 32px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.82rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.orders-search-input:focus {
    border-color: #6366f1;
    outline: none;
}

.orders-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #64748b;
    pointer-events: none;
}

.orders-status-select {
    padding: 7px 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.82rem;
    cursor: pointer;
}

.orders-status-select:focus {
    border-color: #6366f1;
    outline: none;
}

/* ── Order Stream List & Cards ── */
.orders-stream-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.order-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-wrap: wrap;
}

.order-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.order-type-badge.badge-digital {
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #c084fc;
}

.order-type-badge.badge-physical {
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.order-ref-copy-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.order-ref-copy-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: #6366f1;
}

.order-header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.order-date-text {
    font-size: 0.78rem;
    color: #64748b;
}

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
}

.status-pill-success {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.status-pill-processing {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.status-pill-shipped {
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.status-pill-failed {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

/* Order Card Body */
.order-card-body {
    padding: 16px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.order-details-col {
    min-width: 0;
}

.order-product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.order-target-meta {
    font-size: 0.83rem;
    color: #94a3b8;
    margin-bottom: 8px;
}

.order-target-meta strong {
    color: #cbd5e1;
}

/* Serial Number Voucher PIN Box */
.order-sn-delivery-box {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.order-sn-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #34d399;
}

.order-sn-code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.06em;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-copy-sn {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #a7f3d0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-copy-sn:hover {
    background: rgba(16, 185, 129, 0.35);
    color: #ffffff;
}

/* Purchased Merchandise Items List */
.order-items-compact-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0;
}

.order-item-compact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.order-item-thumb {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.order-item-info {
    flex: 1;
    min-width: 0;
}

.order-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-item-variant {
    font-size: 0.76rem;
    color: #94a3b8;
}

.order-item-qty-price {
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    text-align: right;
    flex-shrink: 0;
}

/* ── 4-Step Delivery Progression Timeline ── */
.delivery-stepper-container {
    margin: 16px 0 12px 0;
    padding: 16px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.delivery-stepper-title {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.delivery-stepper-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.delivery-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.delivery-step-node {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid #475569;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

.delivery-step-item.is-completed .delivery-step-node {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.delivery-step-item.is-active .delivery-step-node {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-color: #a855f7;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
    animation: nodePulse 2s infinite;
}

@keyframes nodePulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.delivery-step-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 6px;
}

.delivery-step-item.is-completed .delivery-step-label,
.delivery-step-item.is-active .delivery-step-label {
    color: #f8fafc;
}

.delivery-stepper-line {
    position: absolute;
    top: 14px;
    left: 12%;
    right: 12%;
    height: 3px;
    background: #334155;
    z-index: 1;
}

.delivery-stepper-line-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #6366f1);
    transition: width 0.35s ease;
}

/* Courier & Waybill Live Tracking Box */
.order-tracking-info-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.courier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
}

.courier-badge-international {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fde68a;
}

.tracking-code-pill {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.35);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-track-online {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.btn-track-online:hover {
    background: linear-gradient(135deg, #0369a1, #1d4ed8);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.45);
}

/* Order Summary Column */
.order-summary-col {
    text-align: right;
    min-width: 140px;
    flex-shrink: 0;
}

.order-total-amount {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.order-payment-method {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 10px;
}

.btn-view-receipt {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-view-receipt:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: #6366f1;
    color: #ffffff;
}

/* Order Empty State */
.orders-empty-state {
    text-align: center;
    padding: 50px 20px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
}

.orders-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.orders-empty-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.orders-empty-desc {
    font-size: 0.88rem;
    color: #94a3b8;
    max-width: 480px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.orders-empty-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Order Receipt Modal ── */
.order-receipt-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.order-receipt-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    padding: 28px;
    box-sizing: border-box;
    position: relative;
}

.receipt-header {
    text-align: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.receipt-brand-logo {
    font-size: 2rem;
    margin-bottom: 4px;
}

.receipt-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px;
}

.receipt-sub {
    font-size: 0.78rem;
    color: #94a3b8;
}

.receipt-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin: 14px 0 6px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.receipt-row strong {
    color: #ffffff;
}

.receipt-divider {
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
    margin: 14px 0;
}

.receipt-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: #34d399;
}

.receipt-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.receipt-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .orders-filter-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .orders-filter-controls {
        flex-direction: column;
        align-items: stretch;
        min-width: 0;
        width: 100%;
    }
    .orders-search-input-wrapper {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }
    .order-card-body {
        grid-template-columns: 1fr;
    }
    .order-summary-col {
        text-align: left;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        padding-top: 14px;
        min-width: 0;
        width: 100%;
    }
}

/* ── Wallet Activation Hero & OTP Verification Modal Styles ── */
.wallet-activation-hero-card {
    text-align: center;
    padding: 36px 24px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.wallet-hero-icon-box {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.wallet-hero-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.wallet-hero-desc {
    color: #94a3b8;
    font-size: 0.92rem;
    max-width: 580px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
}

.wallet-hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: 780px;
    margin: 0 auto 24px auto;
    text-align: left;
}

.wallet-hero-feat-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.wallet-hero-feat-item > span {
    font-size: 22px;
    line-height: 1;
}

.wallet-hero-feat-item div strong {
    display: block;
    color: #f1f5f9;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.wallet-hero-feat-item div span {
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.4;
}

.wallet-account-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
}

/* OTP Modal */
.otp-activation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.otp-activation-card {
    background: #0f172a;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    padding: 28px;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.15);
    text-align: center;
}

.otp-digits-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.otp-digit-input {
    width: 44px;
    height: 52px;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    font-family: 'JetBrains Mono', monospace;
}

.otp-digit-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
    background: rgba(30, 41, 59, 0.9);
}

.otp-countdown-text {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 12px;
}

.btn-resend-otp {
    background: transparent;
    border: none;
    color: #6366f1;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.btn-resend-otp:disabled {
    color: #64748b;
    cursor: not-allowed;
    text-decoration: none;
}



