/* ========================================
   EA Collection — Clean Dark Design
   ======================================== */

:root {
    --bg-body: #0b0e14;
    --bg-card: #12161e;
    --bg-card-hover: #181d27;
    --bg-glass: rgba(18, 22, 30, 0.8);
    --text-main: #e8eaed;
    --text-dim: #8b95a5;
    --text-muted: #5a6475;
    --text-secondary: #8b95a5;
    --accent: #38bdf8;
    --accent-2: #818cf8;
    --accent-green: #22c55e;
    --accent-glow: rgba(56, 189, 248, 0.08);
    --border: rgba(255, 255, 255, 0.06);
    --border-glass: rgba(255, 255, 255, 0.08);
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --container-width: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.nav-icon {
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding-top: 64px;
    /* navbar height */
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 80px 32px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 540px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 460px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 28px;
    background: #fff;
    color: #0b0e14;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* Chart Card */
.hero-chart {
    flex-shrink: 0;
}

.chart-card {
    width: 380px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.candlestick-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Section Shared
   ======================================== */
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
}

/* ========================================
   EA Section
   ======================================== */
.ea-section {
    padding: 60px 0 40px;
}

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

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

/* Search */
.search-container {
    position: relative;
}

.search-container::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6475' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-size: contain;
    z-index: 1;
    pointer-events: none;
}

.search-container input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 11px 16px 11px 40px;
    border-radius: 10px;
    color: #fff;
    width: 280px;
    outline: none;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    transition: border-color 0.2s;
}

.search-container input:focus {
    border-color: rgba(255, 255, 255, 0.15);
}

.search-container input::placeholder {
    color: var(--text-muted);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    color: var(--text-dim);
    border-color: rgba(255, 255, 255, 0.12);
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* ========================================
   Table
   ======================================== */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.ea-table-head {
    display: grid;
    grid-template-columns: 2.2fr 1fr 0.7fr 0.7fr 0.7fr 0.8fr 0.8fr;
    padding: 14px 24px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.ea-grid {
    display: flex;
    flex-direction: column;
}

.ea-row {
    display: grid;
    grid-template-columns: 2.2fr 1fr 0.7fr 0.7fr 0.7fr 0.8fr 0.8fr;
    padding: 16px 24px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.ea-row:last-child {
    border-bottom: none;
}

.ea-row:hover {
    background: var(--bg-card-hover);
}

.col-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: #fff;
}

.ea-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 5px;
    font-weight: 500;
    display: inline-block;
}

/* ========================================
   Icon Buttons
   ======================================== */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.2s;
    text-decoration: none;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

/* Colored icon variants */
.icon-btn.blue {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.2);
}

.icon-btn.blue:hover {
    background: rgba(96, 165, 250, 0.08);
    color: #93bbfc;
}

.icon-btn.yellow {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.2);
}

.icon-btn.yellow:hover {
    background: rgba(251, 191, 36, 0.08);
    color: #fcd34d;
}

.icon-btn.pink {
    color: #f472b6;
    border-color: rgba(244, 114, 182, 0.2);
}

.icon-btn.pink:hover {
    background: rgba(244, 114, 182, 0.08);
    color: #f9a8d4;
}

.icon-btn.green {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.2);
}

.icon-btn.green:hover {
    background: rgba(52, 211, 153, 0.08);
    color: #6ee7b7;
}

/* Price Button */
.btn-price-small {
    padding: 6px 14px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 7px;
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-price-small:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.35);
}

/* Download Button */
.btn-dl-small {
    padding: 6px 14px;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: 7px;
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-dl-small:hover {
    background: rgba(52, 211, 153, 0.15);
    border-color: rgba(52, 211, 153, 0.35);
}

/* ========================================
   Info Section
   ======================================== */
.info-section {
    padding: 50px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
    transition: border-color 0.2s;
}

.info-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.info-icon {
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.info-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 0.84rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ========================================
   Kontak Section
   ======================================== */
.kontak-section {
    padding: 50px 0;
    text-align: center;
}

.kontak-section h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.kontak-desc {
    color: var(--text-dim);
    font-size: 0.88rem;
    margin-bottom: 28px;
}

.kontak-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.kontak-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: var(--font-sans);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.kontak-btn.wa {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.25);
    color: #25d366;
}

.kontak-btn.wa:hover {
    background: rgba(37, 211, 102, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.15);
}

.kontak-btn.tg {
    background: rgba(0, 136, 204, 0.1);
    border: 1px solid rgba(0, 136, 204, 0.25);
    color: #0088cc;
}

.kontak-btn.tg:hover {
    background: rgba(0, 136, 204, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.15);
}

/* ========================================
   WhatsApp Float
   ======================================== */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #25d366;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    z-index: 1000;
    transition: all 0.25s;
    text-decoration: none;
}

.wa-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.wa-svg {
    width: 28px;
    height: 28px;
}

/* ========================================
   Footer
   ======================================== */
.main-footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.main-footer p {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.empty-state .empty-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

/* ========================================
   Mobile Icon Row (script.js mobile layout)
   ======================================== */
.mobile-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 2px 0;
}

/* ========================================
   Responsive — Tablet
   ======================================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-container {
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .chart-card {
        width: 300px;
        padding: 20px;
    }

    .ea-table-head,
    .ea-row {
        grid-template-columns: 2fr 0.9fr 0.7fr 0.7fr 0.7fr 0.8fr 0.8fr;
    }
}

/* ========================================
   Responsive — Mobile
   ======================================== */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 0.82rem;
    }

    .hero-container {
        flex-direction: column;
        padding: 50px 20px 40px;
        gap: 36px;
        text-align: left;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.92rem;
    }

    .hero-stats {
        font-size: 0.78rem;
    }

    .hero-chart {
        width: 100%;
    }

    .chart-card {
        width: 100%;
        padding: 20px;
    }

    .section-container {
        padding: 0 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-container {
        width: 100%;
    }

    .search-container input {
        width: 100%;
    }

    /* Hide table header on mobile */
    .ea-table-head {
        display: none !important;
    }

    .table-container {
        background: transparent;
        border: none;
        overflow: visible;
    }

    .ea-grid {
        gap: 12px;
    }

    .ea-row {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 22px 20px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 14px;
        min-width: 0 !important;
        width: 100%;
        grid-template-columns: none !important;
    }

    .ea-row:hover {
        background: var(--bg-card-hover);
    }

    .col-name {
        font-size: 1.05rem;
        text-align: center;
        width: 100%;
    }

    .col-pair {
        text-align: center;
        width: 100%;
    }

    .col-harga,
    .col-dl {
        width: 100%;
    }

    .btn-dl-small,
    .btn-price-small {
        width: 100%;
        display: block;
        padding: 12px;
        font-size: 0.82rem;
        border-radius: 10px;
    }

    /* Info Grid */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .wa-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .wa-svg {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links a {
        font-size: 0.78rem;
    }
}

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

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

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

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