/* =====================================================
   CryptoSignal Pro - Professional Trading Dashboard
   Modern Dark Theme with Glassmorphism
   ===================================================== */

/* ── CSS Variables ── */
:root {
    --bg-primary: #060612;
    --bg-secondary: #0a0a1e;
    --bg-tertiary: #0f0f2a;
    --bg-card: rgba(12, 12, 35, 0.85);
    --bg-card-hover: rgba(18, 18, 50, 0.92);
    --bg-glass: rgba(15, 15, 40, 0.6);

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-glow-orange: rgba(247, 147, 26, 0.4);
    --border-glow-blue: rgba(66, 133, 244, 0.4);

    --text-primary: #eaeaf2;
    --text-secondary: #9090b0;
    --text-muted: #606080;

    --accent-orange: #f7931a;
    --accent-blue: #4285f4;
    --accent-green: #00d4aa;
    --accent-red: #ff4757;
    --accent-yellow: #ffa502;
    --accent-purple: #a855f7;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 25px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 50px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(247, 147, 26, 0.1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --side-ad-width: 160px;
    --content-max-width: 1400px;
}

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(247, 147, 26, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(66, 133, 244, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(168, 85, 247, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Page Wrapper ── */
.page-wrapper {
    position: relative;
    z-index: 1;
}

/* ── Top Navigation Bar ── */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
    background: rgba(6, 6, 18, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-blue));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    box-shadow: 0 0 15px rgba(247, 147, 26, 0.3);
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.nav-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 20px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-green);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: livePulse 2s infinite;
    box-shadow: 0 0 8px var(--accent-green);
}

.nav-visitors {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.nav-visitors span {
    color: var(--accent-orange);
    font-weight: 600;
}

.nav-clock {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

/* ── Latest Alert Bar (Tek Uyarı) ── */
.latest-alert-bar {
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
}

.latest-alert-inner {
    position: relative;
    display: flex;
    flex-direction: column;
}

.latest-alert-inner .latest-alert-card + .latest-alert-card {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Placeholder (veriler yüklenirken) */
.latest-alert-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    background: rgba(8, 8, 20, 0.5);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.latest-alert-placeholder-icon {
    font-size: 1.1rem;
    animation: livePulse 2s infinite;
}

/* Ana Uyarı Kartı */
.latest-alert-card {
    display: flex;
    align-items: stretch;
    animation: alertBannerIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

/* Sol Renk Şeridi + İkon */
.latest-alert-stripe {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    min-height: 72px;
    flex-shrink: 0;
    font-size: 1.5rem;
}

/* Ana İçerik */
.latest-alert-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 24px;
    min-width: 0;
}

.latest-alert-text {
    flex: 1;
    min-width: 0;
}

.latest-alert-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    opacity: 0.85;
}

.latest-alert-label-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

.latest-alert-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

.latest-alert-detail {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    opacity: 0.9;
}

/* Sağ Meta Bilgi */
.latest-alert-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.latest-alert-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

.latest-alert-tag {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ── Uyarı Tipleri ── */

/* Çöküş / Kritik */
.latest-alert-card.alert-type-crash {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.12) 0%, rgba(255, 30, 50, 0.06) 100%);
}
.alert-type-crash .latest-alert-stripe {
    background: linear-gradient(180deg, rgba(255, 71, 87, 0.25), rgba(255, 71, 87, 0.08));
    border-right: 3px solid var(--accent-red);
}
.alert-type-crash .latest-alert-label { color: var(--accent-red); }
.alert-type-crash .latest-alert-label-dot { background: var(--accent-red); box-shadow: 0 0 8px var(--accent-red); }
.alert-type-crash .latest-alert-title { color: #ff8a94; }
.alert-type-crash .latest-alert-tag {
    background: rgba(255, 71, 87, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(255, 71, 87, 0.3);
}

/* Kırılma / Uyarı */
.latest-alert-card.alert-type-break {
    background: linear-gradient(135deg, rgba(255, 165, 2, 0.12) 0%, rgba(255, 165, 2, 0.04) 100%);
}
.alert-type-break .latest-alert-stripe {
    background: linear-gradient(180deg, rgba(255, 165, 2, 0.25), rgba(255, 165, 2, 0.08));
    border-right: 3px solid var(--accent-yellow);
}
.alert-type-break .latest-alert-label { color: var(--accent-yellow); }
.alert-type-break .latest-alert-label-dot { background: var(--accent-yellow); box-shadow: 0 0 8px var(--accent-yellow); }
.alert-type-break .latest-alert-title { color: #ffc863; }
.alert-type-break .latest-alert-tag {
    background: rgba(255, 165, 2, 0.15);
    color: var(--accent-yellow);
    border: 1px solid rgba(255, 165, 2, 0.3);
}

/* Trend / Fırsat */
.latest-alert-card.alert-type-trend {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.12) 0%, rgba(0, 212, 170, 0.04) 100%);
}
.alert-type-trend .latest-alert-stripe {
    background: linear-gradient(180deg, rgba(0, 212, 170, 0.25), rgba(0, 212, 170, 0.08));
    border-right: 3px solid var(--accent-green);
}
.alert-type-trend .latest-alert-label { color: var(--accent-green); }
.alert-type-trend .latest-alert-label-dot { background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }
.alert-type-trend .latest-alert-title { color: #5eedc8; }
.alert-type-trend .latest-alert-tag {
    background: rgba(0, 212, 170, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(0, 212, 170, 0.3);
}

/* Sinyal / Bilgi */
.latest-alert-card.alert-type-info {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.12) 0%, rgba(66, 133, 244, 0.04) 100%);
}
.alert-type-info .latest-alert-stripe {
    background: linear-gradient(180deg, rgba(66, 133, 244, 0.25), rgba(66, 133, 244, 0.08));
    border-right: 3px solid var(--accent-blue);
}
.alert-type-info .latest-alert-label { color: var(--accent-blue); }
.alert-type-info .latest-alert-label-dot { background: var(--accent-blue); box-shadow: 0 0 8px var(--accent-blue); }
.alert-type-info .latest-alert-title { color: #82b3f9; }
.alert-type-info .latest-alert-tag {
    background: rgba(66, 133, 244, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(66, 133, 244, 0.3);
}

/* ── Main Content Layout ── */
.main-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 24px;
    padding-left: calc(var(--side-ad-width) + 40px);
    padding-right: calc(var(--side-ad-width) + 40px);
}

/* ── Hero Section ── */
.hero-section {
    text-align: center;
    padding: 40px 0 30px;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #e8a849 30%, var(--accent-blue) 70%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 16px;
    font-weight: 400;
}

.api-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(0, 212, 170, 0.08);
    border: 1px solid rgba(0, 212, 170, 0.25);
    border-radius: 30px;
    color: var(--accent-green);
    font-weight: 600;
    font-size: 0.85rem;
    animation: fadeInUp 0.6s ease-out;
}

.api-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: livePulse 2s infinite;
}

/* ── Controls Section ── */
.controls-section {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.control-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

select, .btn {
    padding: 10px 16px;
    border: 1px solid rgba(247, 147, 26, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(247, 147, 26, 0.06);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
}

select option {
    background: #12122a;
    color: var(--text-primary);
}

select:hover, .btn:hover {
    border-color: rgba(247, 147, 26, 0.45);
    background: rgba(247, 147, 26, 0.12);
}

select:focus, .btn:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.12);
}

.btn {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), #e8880a);
    border-color: var(--accent-orange);
    color: white;
    box-shadow: 0 2px 10px rgba(247, 147, 26, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffa030, var(--accent-orange));
    border-color: #ffa030;
    box-shadow: 0 4px 20px rgba(247, 147, 26, 0.35);
    transform: translateY(-1px);
}

button {
    padding: 10px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent-orange), #e8880a);
    border-color: var(--accent-orange);
    color: white;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(247, 147, 26, 0.25);
}

button:hover {
    background: linear-gradient(135deg, #ffa030, var(--accent-orange));
    border-color: #ffa030;
    box-shadow: 0 4px 20px rgba(247, 147, 26, 0.35);
    transform: translateY(-1px);
}

/* ── Stats Grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-blue));
    opacity: 0;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card h3 {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
    font-family: 'JetBrains Mono', 'SF Mono', monospace, 'Inter';
    letter-spacing: -0.5px;
}

.stat-change {
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.positive { color: var(--accent-green); }
.negative { color: var(--accent-red); }
.neutral { color: var(--accent-yellow); }

/* ── Chart Section ── */
.chart-section {
    margin-bottom: 24px;
}

.chart-container {
    position: relative;
    height: 65vh;
    min-height: 400px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.chart-container:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.trading-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.trading-signal {
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    min-width: 200px;
    border: 2px solid var(--accent-blue);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    letter-spacing: 0.3px;
}

.signal-buy {
    background: rgba(0, 212, 170, 0.92) !important;
    border-color: var(--accent-green) !important;
    animation: signalPulse 2s infinite;
    box-shadow: 0 0 25px rgba(0, 212, 170, 0.4) !important;
}

.signal-sell {
    background: rgba(255, 71, 87, 0.92) !important;
    border-color: var(--accent-red) !important;
    animation: signalPulse 2s infinite;
    box-shadow: 0 0 25px rgba(255, 71, 87, 0.4) !important;
}

.signal-hold {
    background: rgba(255, 165, 2, 0.92) !important;
    border-color: var(--accent-yellow) !important;
    color: #000 !important;
    box-shadow: 0 0 25px rgba(255, 165, 2, 0.3) !important;
}

/* ── Analysis Panel ── */
.analysis-section {
    margin-bottom: 24px;
}

.analysis-panel {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.analysis-panel h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.analysis-panel h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-light), transparent);
}

.insight {
    background: rgba(66, 133, 244, 0.06);
    border-left: 4px solid var(--accent-blue);
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    transition: var(--transition-fast);
}

.insight:hover {
    transform: translateX(3px);
}

.insight h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.insight p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.insight.critical {
    background: rgba(255, 71, 87, 0.1);
    border-left: 4px solid var(--accent-red);
    animation: pulse 2s infinite;
}

.insight.warning {
    background: rgba(255, 165, 2, 0.1);
    border-left: 4px solid var(--accent-yellow);
}

.insight.opportunity {
    background: rgba(0, 212, 170, 0.1);
    border-left: 4px solid var(--accent-green);
}

.insight.breaking {
    background: rgba(255, 71, 87, 0.15);
    border-left: 6px solid var(--accent-red);
    animation: pulse 2s infinite;
}

.insight.trend-change {
    background: rgba(0, 212, 170, 0.15);
    border-left: 6px solid var(--accent-green);
}

.insight.crash-risk {
    background: rgba(255, 0, 0, 0.15);
    border-left: 8px solid #ff0000;
    animation: pulse 1.5s infinite;
}

.insight.signal {
    background: rgba(66, 133, 244, 0.12);
    border-left: 4px solid var(--accent-blue);
    font-weight: bold;
    font-size: 1.05em;
}

/* ── Loading ── */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    gap: 15px;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid var(--accent-blue);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
}

/* ── Side Ads ── */
.side-ad {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: var(--side-ad-width);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-ad-left {
    left: 12px;
}

.side-ad-right {
    right: 12px;
}

.ad-unit {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.ad-unit:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 0 20px rgba(247, 147, 26, 0.15);
    transform: scale(1.02);
}

.ad-unit-inner {
    padding: 16px 12px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
}

.ad-unit-badge {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    opacity: 0.6;
}

.ad-unit-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.ad-unit-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 6px;
    line-height: 1.3;
}

.ad-unit-desc {
    font-size: 0.68rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 10px;
}

.ad-unit-cta {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg, var(--accent-orange), #e8880a);
    color: white;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Inline Ad Banner ── */
.inline-ad {
    margin: 24px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.06), rgba(66, 133, 244, 0.06));
    border: 1px solid rgba(247, 147, 26, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    overflow: hidden;
    position: relative;
}

.inline-ad::before {
    content: 'REKLAM';
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 0.55rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    opacity: 0.5;
}

.inline-ad:hover {
    border-color: rgba(247, 147, 26, 0.3);
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.1), rgba(66, 133, 244, 0.1));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.inline-ad-content {
    flex: 1;
}

.inline-ad-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 4px;
}

.inline-ad-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.inline-ad-cta {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent-orange), #e8880a);
    color: white;
    border-radius: 25px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(247, 147, 26, 0.3);
    transition: var(--transition-smooth);
}

.inline-ad:hover .inline-ad-cta {
    box-shadow: 0 4px 20px rgba(247, 147, 26, 0.5);
}

/* ── Campaign Banner Modal ── */
.campaign-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.campaign-modal.active {
    opacity: 1;
    visibility: visible;
}

.campaign-card {
    position: relative;
    max-width: 520px;
    width: 90%;
    background: linear-gradient(145deg, #0f0f2a, #1a1035);
    border: 1px solid rgba(247, 147, 26, 0.3);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    transform: scale(0.85) translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(247, 147, 26, 0.1);
    overflow: hidden;
}

.campaign-modal.active .campaign-card {
    transform: scale(1) translateY(0);
}

.campaign-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(247, 147, 26, 0.05), transparent, rgba(66, 133, 244, 0.05), transparent);
    animation: campaignRotate 10s linear infinite;
}

.campaign-card > * {
    position: relative;
    z-index: 1;
}

.campaign-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 2;
}

.campaign-close:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.campaign-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    display: block;
}

.campaign-title {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-orange), #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.campaign-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.campaign-btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--accent-orange), #e8880a);
    color: white;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(247, 147, 26, 0.4);
    letter-spacing: 0.5px;
}

.campaign-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(247, 147, 26, 0.5);
}

.campaign-timer {
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.campaign-timer-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.campaign-timer-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-blue));
    border-radius: 2px;
    transition: width 1s linear;
}

/* ── Footer ── */
.footer {
    margin-top: 40px;
    padding: 30px 24px;
    background: rgba(6, 6, 18, 0.8);
    border-top: 1px solid var(--border-subtle);
}

.footer-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.footer-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.footer-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-stat-icon {
    font-size: 1.1rem;
}

.footer-stat-value {
    color: var(--accent-orange);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-family: 'JetBrains Mono', monospace;
}

.footer-stat-label {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-disclaimer {
    font-size: 0.72rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.5;
}

.footer-brand {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-brand a {
    color: var(--accent-orange);
    text-decoration: none;
}

/* ── Animations ── */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes signalPulse {
    0% { opacity: 1; box-shadow: 0 0 20px rgba(66, 133, 244, 0.3); }
    50% { opacity: 0.85; box-shadow: 0 0 35px rgba(66, 133, 244, 0.5); }
    100% { opacity: 1; box-shadow: 0 0 20px rgba(66, 133, 244, 0.3); }
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

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

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes alertBannerIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes campaignRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ── Responsive Design ── */
@media (max-width: 1400px) {
    .main-content {
        padding-left: calc(var(--side-ad-width) + 24px);
        padding-right: calc(var(--side-ad-width) + 24px);
    }
}

@media (max-width: 1200px) {
    .side-ad {
        display: none;
    }

    .main-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2rem;
    }

    .chart-container {
        height: 50vh;
        min-height: 300px;
    }

    .inline-ad {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 0 12px;
        height: 48px;
    }

    .nav-clock,
    .nav-visitors {
        display: none;
    }

    .nav-title {
        font-size: 0.95rem;
    }

    .latest-alert-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 16px;
    }

    .latest-alert-meta {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .latest-alert-title {
        font-size: 0.9rem;
    }

    .latest-alert-detail {
        font-size: 0.78rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .controls-section {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px;
    }

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

    .stat-value {
        font-size: 1.4rem;
    }

    .chart-container {
        height: 45vh;
        min-height: 260px;
        padding: 12px;
    }

    .trading-signal {
        font-size: 0.78rem;
        padding: 8px 14px;
        min-width: 150px;
    }

    .analysis-panel {
        padding: 16px;
    }

    .alerts-container {
        grid-template-columns: 1fr;
    }

    .footer-stats {
        gap: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .campaign-card {
        padding: 28px 20px;
    }

    .campaign-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-stats {
        flex-direction: column;
        gap: 10px;
    }
}
