:root {
    /* === HYBRID THEME: Binance Neon + Apple Glass + Bloomberg Data === */
    
    /* Background - GitHub Dark tarzı, yaşanabilir koyu */
    --bg-primary: #0D1117;
    --bg-secondary: #161B22;
    --bg-tertiary: #1C2333;
    --bg-card: rgba(22, 27, 34, 0.8);
    --bg-card-hover: rgba(28, 35, 46, 0.9);
    --bg-glass: rgba(22, 27, 34, 0.85);
    
    /* Accent - Elektrik mavisi */
    --accent-primary: #3B82F6;
    --accent-light: #60A5FA;
    --accent-dark: #2563EB;
    
    /* Gold - Parlak altın (Binance sarısı) */
    --gold-primary: #F0B90B;
    --gold-light: #FCD535;
    --gold-dark: #C99A07;
    --gold-gradient: linear-gradient(135deg, #F0B90B 0%, #FCD535 50%, #F0B90B 100%);
    --gold-glow: 0 0 30px rgba(240, 185, 11, 0.35);
    
    /* Currency - Neon yeşil */
    --currency-primary: #0ECB81;
    --currency-light: #3DD598;
    --currency-dark: #0BA360;
    --currency-gradient: linear-gradient(135deg, #0ECB81 0%, #3DD598 50%, #0ECB81 100%);
    --currency-glow: 0 0 30px rgba(14, 203, 129, 0.35);
    
    /* Text */
    --text-primary: #EAECEF;
    --text-secondary: #848E9C;
    --text-tertiary: #5E6673;
    --text-muted: #6B7280;
    
    /* Status - Binance renkleri */
    --positive: #0ECB81;
    --positive-light: #3DD598;
    --positive-dark: #0BA360;
    --positive-bg: rgba(14, 203, 129, 0.1);
    --positive-glow: 0 0 24px rgba(14, 203, 129, 0.4);
    
    --negative: #F6465D;
    --negative-light: #F75E72;
    --negative-dark: #CF3040;
    --negative-bg: rgba(246, 70, 93, 0.1);
    --negative-glow: 0 0 24px rgba(246, 70, 93, 0.4);
    
    --warning: #FCD535;
    --warning-glow: 0 0 20px rgba(252, 213, 53, 0.4);
    --info: #3B82F6;
    
    /* Glass efekti */
    --glass-bg: rgba(22, 27, 34, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);
    
    /* Border & Shadows */
    --border-color: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size-md: 15px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 42px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
    
    /* Z-Index Hierarchy */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-tooltip: 300;
    --z-context: 400;
    --z-modal: 1000;
    --z-overlay: 5000;
    --z-toast: 6000;
    --z-tos: 7000;
    --z-splash: 8000;
    --z-pin: 9000;
}

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

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: transparent;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-splash);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    margin-bottom: var(--spacing-lg);
}

.logo-svg {
    width: 100px;
    height: 100px;
    animation: pulse 2s ease-in-out infinite;
}

.splash-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.splash-subtitle {
    font-size: var(--font-size-md);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.splash-loader {
    width: 200px;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: var(--gold-gradient);
    border-radius: var(--radius-full);
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* Main App */
.main-app {
    padding-bottom: 80px;
    transition: opacity 0.3s ease;
}

.main-app.hidden {
    display: none;
}

/* Header */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    border-bottom: 1px solid var(--border-color);
}

.app-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.title-accent {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    display: flex;
    gap: var(--spacing-sm);
}

.header-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.header-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.header-btn:active {
    transform: scale(0.95);
}

.header-btn svg {
    width: 20px;
    height: 20px;
}

/* Dashboard Section */
.dashboard-section {
    padding: var(--spacing-lg);
}

/* ============================================
   PORTFOLIO HERO - Ana değer kartı
   ============================================ */
.portfolio-hero {
    background: linear-gradient(165deg, rgba(240, 185, 11, 0.08) 0%, rgba(22, 27, 34, 0.9) 40%, var(--glass-bg) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    border: 1px solid rgba(240, 185, 11, 0.1);
    margin-bottom: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold-gradient);
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.live-badge-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--positive);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.live-badge-inline .live-dot {
    width: 7px;
    height: 7px;
    background: var(--positive);
    border-radius: 50%;
    animation: live-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(14, 203, 129, 0.6);
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.4); }
}

.live-badge-inline.error { color: var(--negative); }
.live-badge-inline.error .live-dot {
    background: var(--negative);
    box-shadow: 0 0 8px rgba(246, 70, 93, 0.6);
    animation: none;
}

.update-time {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.hero-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.hero-amount {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.hero-currency {
    font-size: var(--font-size-xl);
    font-weight: 500;
    color: var(--text-muted);
}

.hero-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    background: var(--positive-bg);
    color: var(--positive);
    margin-bottom: 4px;
}

.hero-change.negative {
    background: var(--negative-bg);
    color: var(--negative);
}

.hero-change .change-icon {
    font-size: 10px;
}

.hero-change.negative .change-icon {
    transform: rotate(180deg);
}

.hero-subtitle {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

/* Hero Main Row: Total value + sparkline side by side */
.hero-main-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.hero-main-left {
    flex: 1;
    min-width: 0;
}

.hero-main-chart {
    width: 100px;
    height: 48px;
    flex-shrink: 0;
    opacity: 0.85;
}

.hero-main-chart svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

/* Mini Stats Grid — 2x2 */
.hero-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.hero-stats-grid .hero-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13, 17, 23, 0.6);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.2s ease;
    min-width: 0;
}

.hero-stats-grid .hero-stat:hover {
    background: rgba(255, 255, 255, 0.04);
}

.hero-stat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Para birimi toggle — ₺ / $ / € */
.hero-currency-toggle {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--accent-primary);
    font-size: 16px;
    font-weight: 700;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 6px;
    transition: all 0.2s;
    vertical-align: middle;
    line-height: 1;
    padding: 0;
}
.hero-currency-toggle:hover {
    background: rgba(255,255,255,0.14);
    border-color: var(--accent-primary);
}
.hero-currency-toggle:active { transform: scale(0.9); }

/* Göz ikonu — ana tutar */
.hero-eye {
    background: none;
    border: none;
    color: var(--text-muted);
    opacity: 0.6;
    cursor: pointer;
    padding: 4px;
    margin-left: 6px;
    transition: opacity 0.2s;
    line-height: 0;
    vertical-align: middle;
}

.hero-eye:hover { opacity: 1; }

/* Kilit butonu — hero top */
.hero-top-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-lock-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    opacity: 0.5;
    cursor: pointer;
    padding: 4px;
    transition: opacity 0.2s;
    line-height: 0;
}

.hero-lock-btn:hover { opacity: 1; }
.hero-lock-btn.pin-active { opacity: 1; color: var(--gold-primary); }

.lock-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-left: 2px;
}

/* Göz ikonları container — stat kartları */
.stat-eyes {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
    margin-left: 4px;
    position: relative;
    z-index: 5;
}

.stat-eye,
.stat-eye-blur {
    background: none;
    border: none;
    color: var(--text-muted);
    opacity: 0.5;
    cursor: pointer;
    padding: 4px;
    transition: opacity 0.2s;
    line-height: 0;
    border-radius: 4px;
}

.stat-eye:hover,
.stat-eye-blur:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.06);
}

/* Blur aktifken üst göz belirgin */
.hero-stat.val-blurred .stat-eye-blur { opacity: 0.9; }

/* Tutar blur efekti */
.hero-stat.val-blurred .hero-stat-value,
.hero-stat.val-blurred .hero-stat-change {
    filter: blur(8px);
    user-select: none;
}

/* Kart geri ekleme butonu */
.restore-card-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    border: 1px dashed rgba(255,255,255,0.15) !important;
    background: transparent !important;
    min-height: 54px;
}
.restore-card-icon {
    font-size: 18px;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1;
}
.restore-card-text {
    font-size: 10px;
    color: var(--text-muted);
}
.restore-card-btn:hover {
    border-color: var(--accent-primary) !important;
}
.restore-card-btn:hover .restore-card-icon,
.restore-card-btn:hover .restore-card-text {
    color: var(--accent-primary);
}

/* Geri ekleme popup */
.restore-popup {
    position: fixed;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: var(--z-context);
    min-width: 130px;
    overflow: hidden;
}
.restore-popup-item {
    display: block;
    width: 100%;
    padding: 8px 14px;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    text-align: left;
    transition: background 0.1s;
}
.restore-popup-item:last-child { border-bottom: none; }
.restore-popup-item:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.restore-popup-item.restore-all {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 11px;
}

/* Portfoy Grafigi */
.portfolio-chart-section {
    margin-top: 12px;
    background: var(--bg-card);
    border-radius: 14px;
    padding: 14px 12px 8px;
    border: 1px solid var(--border-color);
}
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.chart-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}
.chart-change-info {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}
.chart-periods {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}
.chart-period {
    padding: 4px 10px;
    border: none;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.chart-period.active {
    background: rgba(29,155,240,0.15);
    color: var(--accent-primary);
}
.chart-period:hover:not(.active) {
    background: rgba(255,255,255,0.08);
}
.chart-canvas-wrap {
    width: 100%;
    min-height: 220px;
    position: relative;
}
.chart-tooltip {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: var(--z-tooltip);
    background: rgba(15,20,25,0.92);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    color: var(--text-primary);
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transform: translateX(-50%);
}
.chart-tooltip.active { display: block; }
.chart-tooltip-val { font-weight: 700; font-size: 12px; }
.chart-tooltip-time { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.chart-tooltip-row { display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.chart-tooltip-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.chart-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #00BA7C;
    margin-left: 8px;
    vertical-align: middle;
}
.chart-live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #00BA7C;
    animation: chartLivePulse 1.5s ease-in-out infinite;
}
@keyframes chartLivePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,186,124,0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(0,186,124,0); }
}
.chart-period-reset {
    margin-left: auto;
    color: var(--text-muted) !important;
    background: transparent !important;
    font-size: 10px !important;
    opacity: 0.6;
    transition: opacity 0.15s;
}
.chart-period-reset:hover { opacity: 1; color: #F4212E !important; }
.chart-legend {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 0 4px;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: var(--text-muted);
}
.chart-legend-line {
    display: inline-block;
    width: 16px;
    height: 2px;
    border-radius: 1px;
}
.chart-legend-dashed {
    background: none !important;
    border-top: 2px dashed;
    height: 0;
}
.chart-legend-toggle {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: opacity 0.2s, background 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.chart-legend-toggle:active { background: rgba(255,255,255,0.05); }
.chart-legend-toggle.legend-off {
    opacity: 0.3;
}
.chart-legend-toggle.legend-off .chart-legend-line {
    border-style: dotted;
}

/* Tutar gizli */
.hero-value.amount-hidden .hero-amount,
.hero-value.amount-hidden .hero-currency {
    filter: blur(12px);
    user-select: none;
}

.hero-value.amount-hidden .hero-eye { opacity: 0.6; }

.hero-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.hero-stat-value {
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.hero-stat-change {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    white-space: nowrap;
}

.hero-stat-change.positive {
    color: var(--positive);
    background: var(--positive-bg);
}

.hero-stat-change.negative {
    color: var(--negative);
    background: var(--negative-bg);
}

.hero-stat.gold-accent .hero-stat-label {
    color: #F0B90B;
}

.hero-stat.currency-accent .hero-stat-label {
    color: #0ECB81;
}

.hero-stat.crypto-accent {
    cursor: pointer;
}

.hero-stat.crypto-accent .hero-stat-label {
    color: #F7931A;
}

.hero-stat.bist-accent {
    cursor: pointer;
}

.hero-stat.bist-accent .hero-stat-label {
    color: #1d9bf0;
}

.hero-stat.oyak-accent {
    opacity: 1;
    cursor: pointer;
}

.hero-stat.oyak-accent .hero-stat-label {
    color: #8b5cf6;
}

.hero-stat.oyak-accent .hero-stat-value {
    color: var(--text-primary);
}

.hero-stat.bes-accent {
    cursor: pointer;
}

.hero-stat.bes-accent .hero-stat-label {
    color: #10b981;
}

.hero-stat.fund-accent {
    cursor: pointer;
}

.hero-stat.fund-accent .hero-stat-label {
    color: #f59e0b;
}

.hero-stat-muted {
    color: var(--text-muted) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
}

/* Mobil uyumluluk — küçük ekranlarda hero stat kartları */
@media (max-width: 480px) {
    .hero-main-chart {
        width: 80px;
        height: 40px;
    }
    .hero-eye {
        padding: 2px;
        margin-left: 4px;
    }
    .stat-eyes {
        display: flex;
        gap: 1px;
        margin-left: 2px;
    }
    .stat-eye,
    .stat-eye-blur {
        padding: 3px;
    }
    .stat-eye svg,
    .stat-eye-blur svg {
        width: 11px;
        height: 11px;
    }
}

@media (max-width: 400px) {
    .hero-stats-grid {
        gap: 4px;
    }
    .hero-stats-grid .hero-stat {
        padding: 6px 7px;
    }
    .hero-stat-value {
        font-size: 10px;
    }
    .hero-stat-label {
        font-size: 8px;
        letter-spacing: 0.3px;
    }
    .hero-stat-change {
        font-size: 8px;
        padding: 1px 4px;
    }
    .portfolio-hero {
        padding: var(--spacing-md);
    }
    .dashboard-section {
        padding: var(--spacing-md);
    }
    .hero-amount {
        font-size: 26px;
    }
    .hero-main-chart {
        width: 70px;
        height: 36px;
    }
}

@media (max-width: 340px) {
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .hero-stats-grid .hero-stat:nth-child(1),
    .hero-stats-grid .hero-stat:nth-child(2),
    .hero-stats-grid .hero-stat:nth-child(3),
    .hero-stats-grid .hero-stat:nth-child(4),
    .hero-stats-grid .hero-stat:nth-child(5) {
        grid-column: span 1 !important;
    }
    .hero-amount {
        font-size: 22px;
    }
}

/* ============================================
   PRICE STRIP - Canlı fiyat şeridi
   ============================================ */
.price-strip {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    border: 1px solid var(--glass-border);
    margin-bottom: var(--spacing-md);
}

.strip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.strip-title {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.strip-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.strip-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.strip-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.strip-btn:active {
    transform: scale(0.92);
}

.strip-badge {
    font-size: 10px;
    font-weight: 800;
    color: var(--positive);
    background: var(--positive-bg);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
}


.strip-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 5px;
    padding-bottom: 2px;
}

.strip-scroll::-webkit-scrollbar {
    display: none;
}

/* Ticker items (rendered by JS) */
.ticker-item {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    padding: 6px 8px;
    background: rgba(13, 17, 23, 0.7);
    border-radius: var(--radius-sm);
    gap: 2px;
    border: 1px solid var(--border-color);
    transition: all 0.15s ease;
    overflow: hidden;
    min-width: 0;
}

.ticker-item:hover {
    border-color: var(--gold-primary);
    background: rgba(240, 185, 11, 0.04);
}

.ticker-item.ticker-flash-up {
    animation: ticker-flash-green 1.2s ease;
}

.ticker-item.ticker-flash-down {
    animation: ticker-flash-red 1.2s ease;
}

@keyframes ticker-flash-green {
    0% { background: rgba(13, 17, 23, 0.7); border-color: var(--border-color); }
    15% { background: rgba(14, 203, 129, 0.2); border-color: var(--positive); }
    40% { background: rgba(14, 203, 129, 0.08); }
    100% { background: rgba(13, 17, 23, 0.7); border-color: var(--border-color); }
}

@keyframes ticker-flash-red {
    0% { background: rgba(13, 17, 23, 0.7); border-color: var(--border-color); }
    15% { background: rgba(246, 70, 93, 0.2); border-color: var(--negative); }
    40% { background: rgba(246, 70, 93, 0.08); }
    100% { background: rgba(13, 17, 23, 0.7); border-color: var(--border-color); }
}

.ticker-item.ticker-flash-up .ticker-price {
    animation: ticker-text-green 1.2s ease;
}

.ticker-item.ticker-flash-down .ticker-price {
    animation: ticker-text-red 1.2s ease;
}

@keyframes ticker-text-green {
    0% { color: var(--gold-primary); }
    15% { color: var(--positive); text-shadow: 0 0 8px rgba(14, 203, 129, 0.5); }
    100% { color: var(--gold-primary); }
}

@keyframes ticker-text-red {
    0% { color: var(--gold-primary); }
    15% { color: var(--negative); text-shadow: 0 0 8px rgba(246, 70, 93, 0.5); }
    100% { color: var(--gold-primary); }
}

.ticker-name {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.ticker-price {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--gold-primary);
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.ticker-star {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.15s;
    line-height: 0;
    flex-shrink: 0;
    min-width: 20px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticker-star:hover {
    opacity: 1;
    transform: scale(1.2);
}

.ticker-sub {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    opacity: 0.7;
}

.ticker-change {
    font-size: 10px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ticker-change.positive { color: var(--positive); }
.ticker-change.negative { color: var(--negative); }

.strip-hint {
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.5;
    text-align: center;
    padding: 4px 0 0;
}

/* ============================================
   DISTRIBUTION CARD
   ============================================ */
.dist-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    border: 1px solid var(--glass-border);
    margin-bottom: var(--spacing-lg);
}

.dist-header {
    margin-bottom: var(--spacing-sm);
}

.dist-header h3 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

.dist-body {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.chart-container {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.chart-center-value {
    display: block;
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.chart-center-label {
    font-size: 10px;
    color: var(--text-muted);
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    flex: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.gold {
    background: var(--gold-primary);
}

.legend-dot.currency {
    background: var(--currency-primary);
}

.legend-dot.crypto {
    background: var(--accent-primary);
}

.legend-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Transactions Card */
.transactions-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.transactions-header h3 {
    font-size: var(--font-size-md);
    font-weight: 600;
}

.view-all-btn {
    background: none;
    border: none;
    color: var(--gold-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.view-all-btn:hover {
    background: rgba(240, 185, 11, 0.1);
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(13, 17, 23, 0.6);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.transaction-item:hover {
    background: var(--bg-secondary);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
}

.transaction-icon.gold {
    background: rgba(240, 185, 11, 0.12);
}

.transaction-icon.currency {
    background: rgba(14, 203, 129, 0.12);
}

.transaction-info {
    flex: 1;
}

.transaction-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 2px;
}

.transaction-date {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
}

.transaction-amount {
    text-align: right;
}

.transaction-value {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 2px;
}

.transaction-change {
    font-size: var(--font-size-xs);
}

.transaction-change.positive {
    color: var(--positive);
}

.transaction-change.negative {
    color: var(--negative);
}

/* Bottom Navigation - Full Glassmorphism */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(13, 17, 23, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: var(--spacing-sm) 0;
    padding-bottom: calc(var(--spacing-sm) + env(safe-area-inset-bottom));
    z-index: var(--z-sticky);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 4px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color var(--transition-fast);
    min-width: 0;
    flex: 1;
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

.nav-item span {
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.nav-item.active {
    color: var(--gold-primary);
    text-shadow: 0 0 12px rgba(240, 185, 11, 0.4);
}

.nav-item:hover:not(.add-btn) {
    color: var(--text-secondary);
}

.nav-item.add-btn {
    background: var(--gold-gradient);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-top: -28px;
    box-shadow: var(--gold-glow), var(--shadow-md);
    color: var(--bg-primary);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-item.add-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--gold-glow), var(--shadow-lg);
}

.nav-item.add-btn:active {
    transform: scale(0.95);
}

.nav-item.add-btn svg {
    width: 28px;
    height: 28px;
}

/* Hidden Class */
.hidden {
    display: none !important;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    opacity: 0.3;
}

.empty-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.empty-text {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection */
::selection {
    background: var(--gold-primary);
    color: var(--bg-primary);
}

/* ============================================
   PIN LOCK SCREEN
   ============================================ */
.pin-lock-screen {
    position: fixed;
    inset: 0;
    z-index: var(--z-pin);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-lock-screen.hidden { display: none; }

.pin-lock-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 320px;
    padding: 0 24px;
}

.pin-lock-logo { opacity: 0.8; }

.pin-lock-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.pin-lock-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    min-height: 18px;
    text-align: center;
}

.pin-lock-sub.error { color: var(--negative); }

.pin-dots {
    display: flex;
    gap: 16px;
    margin: 8px 0;
}

.pin-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: transparent;
    transition: all 0.15s ease;
}

.pin-dot.filled {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.pin-dot.error {
    border-color: var(--negative);
    background: var(--negative);
    animation: pin-shake 0.4s ease;
}

@keyframes pin-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 260px;
}

.pin-key {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    justify-self: center;
}

.pin-key:active {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-primary);
    transform: scale(0.95);
}

.pin-key-empty {
    border: none;
    background: none;
    cursor: default;
}

.pin-key-del {
    border: none;
    background: none;
    color: var(--text-muted);
}

.pin-key-del:active {
    background: rgba(255, 255, 255, 0.05);
    border: none;
}

.pin-forgot {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 6px 12px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.pin-forgot:hover { opacity: 1; color: var(--negative); }

.pin-cancel {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 6px 12px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.pin-cancel:hover { opacity: 1; }

.pin-security {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 280px;
}

.pin-sec-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    text-align: center;
}

.pin-sec-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.pin-sec-input:focus {
    border-color: var(--gold-primary);
}

.pin-sec-input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.pin-sec-btn {
    background: var(--gold-primary);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.pin-sec-btn:hover { opacity: 0.85; }

.pin-sec-error {
    color: var(--negative);
    font-size: 12px;
    text-align: center;
}

/* ============================================
   ACCESSIBILITY — Erişilebilirlik
   ============================================ */

/* Keyboard focus — klavye navigasyonu icin gorunur outline */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

/* Reduced motion — animasyonlari kapat */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast — kontrasti artir */
@media (prefers-contrast: more) {
    :root {
        --text-muted: #9CA3AF;
        --text-tertiary: #9CA3AF;
        --text-secondary: #D1D5DB;
        --border-color: rgba(255, 255, 255, 0.2);
        --bg-card: rgba(22, 27, 34, 0.95);
    }
}
