/**
 * Sarmayaa.online — SunZee1 Cyber Emerald Mobile-First Design System
 * Matches the uploaded UI screenshot with deep obsidian backgrounds, neon emerald accents, and glass tiles.
 */

:root {
    --sz-bg: #060e0a;
    --sz-card: rgba(10, 24, 16, 0.82);
    --sz-card-hover: rgba(16, 38, 26, 0.95);
    --sz-card-border: rgba(16, 185, 129, 0.22);
    --sz-card-border-glow: rgba(249, 115, 22, 0.45);

    --sz-neon-green: #f97316;
    --sz-emerald: #10b981;
    --sz-emerald-dark: #064e3b;
    --sz-emerald-glow: rgba(249, 115, 22, 0.25);

    --sz-cyan: #38bdf8;
    --sz-cyan-glow: rgba(56, 189, 248, 0.25);

    --sz-yellow: #facc15;
    --sz-yellow-glow: rgba(250, 204, 21, 0.4);

    --sz-gold: #f59e0b;
    --sz-gold-glow: rgba(245, 158, 11, 0.3);

    --sz-text-white: #ffffff;
    --sz-text-muted: #94a3b8;
    --sz-text-emerald: #34d399;

    --sz-radius-sm: 10px;
    --sz-radius-md: 18px;
    --sz-radius-lg: 24px;
    --sz-radius-full: 9999px;
}

body.sz-body {
    background-color: var(--sz-bg);
    color: #f1f5f9;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    padding-bottom: 95px; /* Space for mobile nav */
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

/* Background Ambient Lighting */
.sz-ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 50% 5%, rgba(249, 115, 22, 0.09) 0%, transparent 45%),
        radial-gradient(circle at 10% 40%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 60%, rgba(56, 189, 248, 0.05) 0%, transparent 45%),
        #060e0a;
}

.sz-app-wrap {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 1rem;
}

/* Top App Bar */
.sz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding: 0.25rem 0.25rem 0;
}

.sz-menu-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sz-menu-btn:hover {
    background: rgba(249, 115, 22, 0.2);
    border-color: var(--sz-neon-green);
}

.sz-welcome-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sz-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--sz-neon-green);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: var(--sz-radius-full);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Card 1: Earning Wallet Card */
/* ===== PKR Mining Widget ===== */
.sz-mining-card {
    background: linear-gradient(135deg, rgba(41, 20, 4, 0.96) 0%, rgba(20, 12, 6, 0.96) 100%);
    border: 1.5px solid rgba(249, 115, 22, 0.4);
    border-radius: var(--sz-radius-lg);
    padding: 1.35rem 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(249, 115, 22, 0.25);
}

.sz-mining-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 12%, rgba(249, 115, 22, 0.22), transparent 55%);
    pointer-events: none;
}

.sz-mining-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
    position: relative;
}

.sz-mining-rig {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f97316, #fb923c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a0e02;
    font-size: 1.2rem;
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.5);
    animation: szMineSpin 3s linear infinite;
}

@keyframes szMineSpin { to { transform: rotate(360deg); } }

.sz-mining-meta { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sz-mining-meta small { color: #fdba74; font-size: 0.68rem; font-weight: 800; letter-spacing: 1.5px; }
.sz-mining-meta span { color: #fff; font-size: 0.85rem; font-weight: 600; }

.sz-mining-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #f97316;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.35);
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.sz-mining-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f97316;
    animation: szMinePulse 1.2s infinite;
}

@keyframes szMinePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6); }
    50% { opacity: 0.4; box-shadow: 0 0 0 6px rgba(249, 115, 22, 0); }
}

.sz-mining-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    position: relative;
    font-variant-numeric: tabular-nums;
}
.sz-mining-amount .cur { font-size: 1rem; color: #fdba74; font-weight: 800; }

.sz-mining-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin: 0.85rem 0;
    position: relative;
}
.sz-mining-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    transition: width 0.3s ease;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.6);
}

.sz-mining-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
    position: relative;
}
.sz-mining-stats small { display: block; color: #94a3b8; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.sz-mining-stats strong { color: #fff; font-size: 0.95rem; font-weight: 800; }

.sz-mining-claim {
    width: 100%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.9rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}
.sz-mining-claim:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(249, 115, 22, 0.45); }
.sz-mining-claim:active { transform: translateY(0); }

.sz-wallet-card {
    background: linear-gradient(135deg, rgba(10, 28, 18, 0.95) 0%, rgba(6, 18, 12, 0.95) 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--sz-radius-lg);
    padding: 1.35rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(249, 115, 22, 0.2);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.sz-wallet-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 70%);
    pointer-events: none;
}

.sz-wallet-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle, #059669 0%, #064e3b 100%);
    border: 2px solid var(--sz-neon-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.4);
    flex-shrink: 0;
}

.sz-wallet-meta small {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--sz-text-muted);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.sz-wallet-meta h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1;
}

.sz-wallet-meta span.sub-cur {
    font-size: 0.85rem;
    color: var(--sz-text-emerald);
    font-weight: 700;
    margin-left: 0.4rem;
}

/* Card 2: Referral Link Card */
.sz-ref-card {
    background: linear-gradient(135deg, rgba(8, 22, 16, 0.95) 0%, rgba(5, 14, 10, 0.95) 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--sz-radius-lg);
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.sz-ref-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.sz-ref-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.15);
    border: 1.5px solid var(--sz-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sz-cyan);
    font-size: 1.1rem;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
    flex-shrink: 0;
}

.sz-ref-meta small {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--sz-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sz-ref-meta span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
}

.sz-ref-action-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--sz-radius-md);
    padding: 0.35rem 0.45rem;
}

.sz-ref-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--sz-cyan);
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.5rem;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sz-copy-btn {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    color: #0f172a;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 0.78rem;
    padding: 0.55rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.45);
    transition: transform 0.2s ease;
}

.sz-copy-btn:hover {
    transform: scale(1.04);
}

.sz-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Quick Links Header */
.sz-quick-head {
    margin-bottom: 1rem;
}

.sz-quick-head small {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--sz-text-muted);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.sz-quick-head h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

/* Quick Links 3-Column Grid matching Screenshot */
.sz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.sz-tile {
    background: rgba(10, 24, 16, 0.75);
    border: 1px solid rgba(16, 185, 129, 0.16);
    border-radius: var(--sz-radius-lg);
    padding: 1.1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.sz-tile:hover {
    transform: translateY(-4px);
    background: rgba(16, 38, 26, 0.9);
    border-color: var(--sz-neon-green);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.18);
}

.sz-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Specific Tile Theme Colors */
.sz-tile.green .sz-tile-icon { background: rgba(249, 115, 22, 0.15); color: #f97316; border: 1px solid rgba(249, 115, 22, 0.3); }
.sz-tile.gold .sz-tile-icon { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.sz-tile.cyan .sz-tile-icon { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.sz-tile.purple .sz-tile-icon { background: rgba(167, 139, 250, 0.15); color: #fed7aa; border: 1px solid rgba(167, 139, 250, 0.3); }

.sz-tile-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #e2e8f0;
    text-align: center;
    white-space: nowrap;
}

/* Floating Live Chat Widget with Tooltip matching Screenshot */
.sz-floating-chat {
    position: fixed;
    bottom: 85px;
    right: 20px;
    z-index: 990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.sz-chat-tooltip {
    background: #ffffff;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.5rem 0.85rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    animation: bounceTooltip 3s infinite;
}

.sz-chat-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 22px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
}

.sz-chat-bubble-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5), 0 0 15px rgba(249, 115, 22, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.sz-chat-bubble-btn:hover {
    transform: scale(1.1);
}

@keyframes bounceTooltip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Mobile Bottom Navigation Bar matching Screenshot */
.sz-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(6, 16, 11, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.65rem 0.5rem 0.5rem;
    z-index: 1000;
}

.sz-bottom-nav-inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.sz-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

.sz-nav-item i {
    font-size: 1.25rem;
}

.sz-nav-item.active {
    color: var(--sz-neon-green);
}

.sz-nav-item.active::after {
    content: '';
    width: 14px;
    height: 2.5px;
    background: var(--sz-neon-green);
    border-radius: 999px;
    margin-top: 2px;
    box-shadow: 0 0 8px var(--sz-neon-green);
}

/* Sliding Side Drawer Navigation */
.sz-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sz-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.sz-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -280px;
    width: 280px;
    background: #091710;
    border-right: 1px solid rgba(16, 185, 129, 0.25);
    z-index: 2001;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.5);
}

.sz-drawer.open {
    left: 0;
}

.sz-drawer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0;
    margin: 1.5rem 0;
}

.sz-drawer-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: var(--sz-radius-md);
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.sz-drawer-link:hover, .sz-drawer-link.active {
    background: rgba(249, 115, 22, 0.12);
    color: var(--sz-neon-green);
    border: 1px solid rgba(249, 115, 22, 0.25);
}
