* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #080808;
    color: white;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    padding-top: 90px;
    padding-top: calc(90px + constant(safe-area-inset-top));
    padding-top: calc(90px + env(safe-area-inset-top));
    padding-bottom: 120px; /* Reserve space for fixed bottom nav and safe area */
    padding-bottom: calc(120px + constant(safe-area-inset-bottom));
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header Section */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;

    background-color: #000000;
    border-radius: 0 0 1px 1px;
    padding: 20px;
    padding-top: 20px;
    padding-top: calc(20px + constant(safe-area-inset-top));
    padding-top: calc(20px + env(safe-area-inset-top));

    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-pic:hover {
    border-color: #4CAF50;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.username {
    font-weight: 600;
    font-size: 16px;
    color: white;
}

.logo-section {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.logo {
    height: 30px;
    width: auto;
}

.switch-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.notif-btn {
    position: relative;
    appearance: none;
    background: transparent;
    border: none;
    color: #ffffff;
    opacity: 0.95;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.notif-btn i { font-size: 20px; }

.notif-btn:hover { background: rgba(255, 255, 255, 0.08); }
.notif-btn:active { transform: scale(0.98); }

.notif-btn.has-unread::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 9px;
    height: 9px;
    background: #ed8e1c;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6);
}

/* Balance Card */
.balance-card {
    background-color: #000000;
    border-radius: 15px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
    padding: 26px 22px;
    width: 85%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    min-height: 152px; /* Increased height by 10% */
}

.balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B35 0%, #4CAF50 100%);
}

.balance-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.balance-label {
    font-size: 10px;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-amount {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.balance-converted {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0.9;
    line-height: 1.1;
    margin-top: -2px;
}

.balance-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.logo-section-balance {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-balance {
    height: 30px;
    width: auto;
}

.name-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.name-label {
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.full-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

/* Small account number aligned to left */
.account-number {
    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0.9;
    letter-spacing: 0.2px;
    margin-top: 10px;
}

/* Action Buttons */
.action-buttons {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    border-radius: 20px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
    width: 90%;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 8px 4px 8px;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 70px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.action-icon {
    width: 39px; /* ~10% larger */
    height: 39px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.action-btn:hover .action-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.action-label {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin: 0;
    padding-bottom: 2px;
}
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Banner Section */
.banner-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 0 24px 0;
    margin-bottom: calc(24px + constant(safe-area-inset-bottom));
    margin-bottom: calc(24px + env(safe-area-inset-bottom));
}

.banner-card {
    background-color: #000000;
    border-radius: 15px;
    width: 300px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 300px;
}

.banner-text {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

/* Banner Carousel */
.banner-carousel {
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.banner-track {
    display: flex;
    gap: 12px;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.side-features {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 90%;
    margin: 10px auto 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.side-feature {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.side-feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.side-feature:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon.weekly {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.side-feature:hover .feature-icon.weekly {
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.4);
}

.feature-icon.marketplace {
    background: linear-gradient(135deg, #03DAC6 0%, #00BCD4 100%);
    box-shadow: 0 4px 15px rgba(3, 218, 198, 0.3);
}

.side-feature:hover .feature-icon.marketplace {
    box-shadow: 0 6px 20px rgba(3, 218, 198, 0.4);
}

.feature-label {
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;

    background-color: #000000;
    border-radius: 1px 1px 0 0;
    padding: 20px;
    padding-bottom: 20px;
    padding-bottom: calc(20px + constant(safe-area-inset-bottom));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.nav-icon {
    width: 65px;
    height: 65px;
    background-color: #ed8e1c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 26px;
    transition: all 0.25s ease;
}

/* Active nav item styling for reuse across pages */
.nav-item.active .nav-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.5), 0 0 0 2px rgba(76, 175, 80, 0.3) inset;
}

.nav-item.active .nav-label {
    color: #C8FACC;
    font-weight: 700;
}

.nav-label {
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
}

/* Responsive Design - Maintains Mobile Layout */
@media (min-width: 768px) {
    .container {
        padding: 30px;
        padding-top: 90px;
        padding-top: calc(90px + constant(safe-area-inset-top));
        padding-top: calc(90px + env(safe-area-inset-top));
        padding-bottom: 120px;
        padding-bottom: calc(120px + constant(safe-area-inset-bottom));
        padding-bottom: calc(120px + env(safe-area-inset-bottom));
        max-width: 600px;
        margin: 0 auto;
    }
    
    /* Make balance more prominent on larger screens */
    .balance-card {
        padding: 30px;
        min-height: 145px; /* Increased by 5% from 138px */
    }
    
    .balance-amount {
        font-size: 42px;
    }
    
    .banner-text {
        font-size: 28px;
    }
    
    .action-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .action-btn {
        padding: 12px 10px;
        min-width: 80px;
    }
    
    .action-label {
        font-size: 12px;
    }
    
    .nav-icon {
        width: 39px;
        height: 39px;
        font-size: 16px;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .side-feature {
        padding: 10px 14px;
        min-width: 70px;
    }
    
    .feature-label {
        font-size: 11px;
    }
    
    .logo-balance {
        height: 42px;
    }

    .account-number { left: 30px; }
}

@media (min-width: 1024px) {
    .container {
        max-width: 700px;
        padding: 40px;
        padding-top: 90px;
        padding-top: calc(90px + constant(safe-area-inset-top));
        padding-top: calc(90px + env(safe-area-inset-top));
        padding-bottom: 120px;
        padding-bottom: calc(120px + constant(safe-area-inset-bottom));
        padding-bottom: calc(120px + env(safe-area-inset-bottom));
    }
    
    /* Even more prominent balance on desktop */
    .balance-card {
        padding: 34px;
        min-height: 165px; /* Increased by 5% from 157px */
    }
    
    .balance-amount {
        font-size: 48px;
    }
    
    .banner-text {
        font-size: 32px;
    }
    
    .action-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .action-btn {
        padding: 14px 12px;
        min-width: 85px;
    }
    
    .action-label {
        font-size: 13px;
    }
    
    .nav-icon {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .side-feature {
        padding: 12px 16px;
        min-width: 80px;
    }
    
    .feature-label {
        font-size: 12px;
    }
    
    .logo {
        height: 35px;
    }
    
    .logo-balance {
        height: 49px;
    }

    .account-number { left: 34px; }
}

@media (min-width: 1440px) {
    .container {
        max-width: 800px;
        padding: 50px;
        padding-top: 90px;
        padding-top: calc(90px + constant(safe-area-inset-top));
        padding-top: calc(90px + env(safe-area-inset-top));
        padding-bottom: 120px;
        padding-bottom: calc(120px + constant(safe-area-inset-bottom));
        padding-bottom: calc(120px + env(safe-area-inset-bottom));
    }
    
    /* Maximum prominence for balance on large desktop */
    .balance-card {
        padding: 42px;
        min-height: 186px; /* Increased by 5% from 177px */
    }
    
    .balance-amount {
        font-size: 56px;
    }
    
    .banner-text {
        font-size: 36px;
    }
    
    .action-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .action-btn {
        padding: 16px 14px;
        min-width: 90px;
    }
    
    .action-label {
        font-size: 14px;
    }
    
    .nav-icon {
        width: 52px;
        height: 52px;
        font-size: 21px;
    }
    
    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .side-feature {
        padding: 14px 18px;
        min-width: 90px;
    }
    
    .feature-label {
        font-size: 13px;
    }
    
    .logo {
        height: 40px;
    }
    
    .logo-balance {
        height: 56px;
    }

    .account-number { left: 42px; }
}

/* Forms polish */
.info-form input { transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; font-size: 16px; }
.info-form select, .info-form textarea { font-size: 16px; }
.info-form input:focus { border-color: rgba(76,175,80,0.65); box-shadow: 0 0 0 3px rgba(76,175,80,0.18); }
.muted-link { color: rgba(255,255,255,0.9); }
.muted-link:hover { text-decoration: underline; }
/* Prevent iOS zoom on auth inputs */
.auth-form .info-field input { font-size: 16px !important; }

/* Ensure the layout stays consistent across all screen sizes */
@media (max-width: 767px) {
    .container {
        padding: 15px;
        padding-top: 90px;
        padding-top: calc(90px + constant(safe-area-inset-top));
        padding-top: calc(90px + env(safe-area-inset-top));
        padding-bottom: 120px;
        padding-bottom: calc(120px + constant(safe-area-inset-bottom));
        padding-bottom: calc(120px + env(safe-area-inset-bottom));
    }
    
    .balance-card {
        padding: 17px;
        min-height: 104px; /* Increased by 5% from 99px */
    }
    
    .balance-amount {
        font-size: 28px;
    }
    
    .banner-text {
        font-size: 20px;
    }

    .account-number { left: 17px; }
    
    .action-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .action-btn {
        padding: 8px 6px;
        min-width: 60px;
    }
    
    .action-label {
        font-size: 10px;
    }
    
    .nav-icon {
        width: 33px;
        height: 33px;
        font-size: 13px;
    }
}

/* Light Theme (global) */
html[data-theme='light'] body { background:#f7f7f7 !important; color:#111 !important; }

/* Global surfaces */
html[data-theme='light'] .header,
html[data-theme='light'] .bottom-nav { background:#ffffff !important; }

/* Balance card and text */
html[data-theme='light'] .balance-card { background:#ffffff !important; box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.06) !important; }
html[data-theme='light'] .balance-label { color:#333 !important; }
html[data-theme='light'] .balance-amount { color:#111 !important; }
html[data-theme='light'] .balance-converted { color:#444 !important; }
html[data-theme='light'] .name-label { color:#555 !important; }
html[data-theme='light'] .full-name { color:#111 !important; }
html[data-theme='light'] .account-number { color:#444 !important; }

/* Action buttons block */
html[data-theme='light'] .action-buttons { background:#ffffff !important; border-color: rgba(0,0,0,0.1) !important; box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important; }
html[data-theme='light'] .action-btn { background: rgba(0,0,0,0.05) !important; border-color: rgba(0,0,0,0.1) !important; }
html[data-theme='light'] .action-btn:hover { background: rgba(0,0,0,0.08) !important; }
html[data-theme='light'] .action-label { color:#111 !important; }

/* Side features */
html[data-theme='light'] .side-feature { background: rgba(0,0,0,0.05) !important; border-color: rgba(0,0,0,0.1) !important; }
html[data-theme='light'] .feature-label { color:#111 !important; }

/* Banners */
html[data-theme='light'] .banner-card { background:#ffffff !important; }
html[data-theme='light'] .banner-text { color:#111 !important; }

/* Bottom nav text */
html[data-theme='light'] .nav-label { color:#111 !important; }
/* Page titles and section headings */
html[data-theme='light'] .page-tag { color:#111 !important; }
html[data-theme='light'] .section-title { color:#111 !important; }
/* Notifications bell (header) */
html[data-theme='light'] .notif-btn { color:#111 !important; }

html[data-theme='light'] .notif-btn.has-unread::after {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

/* Cards, lists, buttons (profile/withdraw) */
html[data-theme='light'] .card { background:#ffffff !important; color:#111 !important; border:1px solid rgba(0,0,0,0.12) !important; box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important; }
html[data-theme='light'] .list-item { background: rgba(0,0,0,0.05) !important; border-color: rgba(0,0,0,0.1) !important; color:#111 !important; }
html[data-theme='light'] .list-item .icon { color:#111 !important; }
html[data-theme='light'] .btn { background: rgba(0,0,0,0.06) !important; border-color: rgba(0,0,0,0.12) !important; color:#111 !important; }

/* Forms (profile) */
html[data-theme='light'] .info-field label { color:#111 !important; opacity:0.9 !important; }
html[data-theme='light'] .info-field input { background:#ffffff !important; color:#111 !important; border:1px solid rgba(0,0,0,0.12) !important; }
html[data-theme='light'] .info-field input::placeholder { color: rgba(0,0,0,0.5) !important; }

/* Withdraw page extras */
html[data-theme='light'] .modal-content { background:#ffffff !important; border-color: rgba(0,0,0,0.1) !important; }
html[data-theme='light'] .modal-body .card.sub { background: rgba(0,0,0,0.04) !important; border-color: rgba(0,0,0,0.1) !important; color:#111 !important; }
html[data-theme='light'] .history-item { background: rgba(0,0,0,0.05) !important; border-color: rgba(0,0,0,0.1) !important; color:#111 !important; }
html[data-theme='light'] .bank-item { background: rgba(0,0,0,0.05) !important; border-color: rgba(0,0,0,0.1) !important; color:#111 !important; }

/* Auth buttons spacing */
.auth-sheet .btn.primary { margin-top: 12px; }
/* Auth pages readability */
html[data-theme='light'] .auth-subtitle { color:#222 !important; opacity: .95 !important; }
html[data-theme='light'] .muted-link { color:#1a1a1a !important; }
html[data-theme='light'] .hint { color:#444 !important; }

html[data-theme='light'] .code-box {
    background: rgba(0,0,0,0.06) !important;
    border-color: rgba(0,0,0,0.12) !important;
    color: #111 !important;
}

html[data-theme='light'] .field input {
    background: #ffffff !important;
    color: #111 !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
}

html[data-theme='light'] .field input::placeholder {
    color: rgba(0,0,0,0.5) !important;
}

/* Custom Alert System */
.alert-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    pointer-events: none;
    padding: 20px;
    padding-top: calc(20px + constant(safe-area-inset-top));
    padding-top: calc(20px + env(safe-area-inset-top));
}

.alert {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    max-width: 100%;
    word-wrap: break-word;
}

.alert.show {
    transform: translateY(0);
    opacity: 1;
}

.alert.hide {
    transform: translateY(-100px);
    opacity: 0;
}

.alert-icon {
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
    min-width: 0;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 15px;
}

.alert-message {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.3;
}

.alert-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.alert-close:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Alert Types */
.alert-success {
    border-left: 4px solid #4CAF50;
    background: linear-gradient(135deg, #1a2e1a 0%, #2d4a2d 100%);
}

.alert-success .alert-icon {
    color: #4CAF50;
}

.alert-error {
    border-left: 4px solid #f44336;
    background: linear-gradient(135deg, #2e1a1a 0%, #4a2d2d 100%);
}

.alert-error .alert-icon {
    color: #f44336;
}

.alert-warning {
    border-left: 4px solid #ff9800;
    background: linear-gradient(135deg, #2e251a 0%, #4a3d2d 100%);
}

.alert-warning .alert-icon {
    color: #ff9800;
}

.alert-info {
    border-left: 4px solid #2196F3;
    background: linear-gradient(135deg, #1a1e2e 0%, #2d3a4a 100%);
}

.alert-info .alert-icon {
    color: #2196F3;
}

/* Mobile-specific alert styles */
@media (max-width: 768px) {
    .alert-container {
        padding: 15px;
        padding-top: calc(15px + constant(safe-area-inset-top));
        padding-top: calc(15px + env(safe-area-inset-top));
    }
    
    .alert {
        padding: 14px 16px;
        font-size: 13px;
        border-radius: 10px;
        margin-bottom: 10px;
    }
    
    .alert-icon {
        font-size: 16px;
    }
    
    .alert-title {
        font-size: 14px;
    }
    
    .alert-message {
        font-size: 13px;
    }
    
    .alert-close {
        font-size: 14px;
    }
    
    /* Fix mobile zoom issue - ensure input fields are at least 16px */
    .form-input,
    .form-select,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="url"],
    textarea,
    select {
        font-size: 16px !important;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    /* Specific fixes for withdraw page inputs */
    #adspoint-input,
    #bank-name,
    #account-name,
    #account-number {
        font-size: 16px !important;
    }
}

/* Light theme alerts */
html[data-theme='light'] .alert {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #111;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

html[data-theme='light'] .alert-success {
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e8 100%);
    border-left: 4px solid #4CAF50;
}

html[data-theme='light'] .alert-error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 4px solid #f44336;
}

html[data-theme='light'] .alert-warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid #ff9800;
}

html[data-theme='light'] .alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196F3;
}

html[data-theme='light'] .alert-close {
    color: rgba(0, 0, 0, 0.6);
}

html[data-theme='light'] .alert-close:hover {
    color: rgba(0, 0, 0, 0.9);
}

/* Confirmation Dialog Styles */
.confirm-alert {
    border-left: 4px solid #ff9800;
    background: linear-gradient(135deg, #2e251a 0%, #4a3d2d 100%);
}

.confirm-alert .alert-icon {
    color: #ff9800;
}

.confirm-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    justify-content: flex-end;
}

.confirm-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
}

.confirm-yes {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.confirm-yes:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    transform: translateY(-1px);
}

.confirm-no {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.confirm-no:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Light theme confirmation */
html[data-theme='light'] .confirm-alert {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid #ff9800;
}

html[data-theme='light'] .confirm-no {
    background: rgba(0, 0, 0, 0.05);
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

html[data-theme='light'] .confirm-no:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Mobile confirmation styles */
@media (max-width: 768px) {
    .confirm-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .confirm-btn {
        width: 100%;
        padding: 10px 16px;
    }
}

/* Additional mobile zoom prevention */
@media screen and (max-width: 768px) {
    /* Prevent zoom on input focus */
    input, textarea, select {
        font-size: 16px !important;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    /* Ensure all form elements have proper font size */
    .field input,
    .field textarea,
    .field select,
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px !important;
    }
    
    /* Specific styling for withdraw page form elements */
    .withdraw-grid input,
    .withdraw-grid textarea,
    .withdraw-grid select {
        font-size: 16px !important;
    }
    
    /* Bank form inputs */
    .bank-form input,
    .bank-form textarea,
    .bank-form select {
        font-size: 16px !important;
    }
}

/* Theme Logo Auto-Swap Rules */
html[data-theme='light'] img[src*="logo.png"] {
  content: url("darkmodelogo.png");
}
html[data-theme='light'] img[src*="../logo.png"] {
  content: url("../darkmodelogo.png");
}

/* ── Shimmer Skeleton Loader CSS ──────────────────── */
.skeleton-loader {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite linear;
  border-radius: 8px;
  pointer-events: none;
}
html[data-theme='light'] .skeleton-loader {
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.09) 50%, rgba(0,0,0,0.04) 75%);
  background-size: 200% 100%;
}
@keyframes skeletonShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
html[data-theme='light'] .skeleton-card {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.08);
}
.skeleton-line {
  height: 14px;
  border-radius: 6px;
  width: 100%;
}
.skeleton-line-sm { width: 40%; height: 12px; }
.skeleton-line-md { width: 70%; height: 14px; }
.skeleton-avatar { width: 42px; height: 42px; border-radius: 50%; }
.skeleton-thumb { width: 100%; height: 120px; border-radius: 12px; }

/* Network Status Toast */
.network-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(13, 13, 15, 0.95);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fff;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.network-toast.show {
  transform: translateX(-50%) translateY(0);
}
.network-toast.online {
  border-color: rgba(16, 185, 129, 0.3);
}