/* ════════════════════════════════════════
   0xkwd.org — NEO-BRUTALISM DESIGN SYSTEM
   Full unified stylesheet
   ════════════════════════════════════════ */

:root {
    --black: #1a1a2e;
    --white: #fffef9;
    --bg: #f0ede6;
    --yellow: #ffe156;
    --green: #a6f4a0;
    --blue: #a0d2f4;
    --pink: #ffb0c8;
    --orange: #ffb347;
    --red: #ff6b6b;
    --purple: #c4b5fd;
    --border: 3px solid var(--black);
    --shadow: 5px 5px 0px 0px var(--black);
    --shadow-sm: 3px 3px 0px 0px var(--black);
    --shadow-hover: 2px 2px 0px 0px var(--black);
    --shadow-active: 0px 0px 0px 0px var(--black);
    --radius: 12px;
    --font: 'Archivo', sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); background: var(--bg); color: var(--black); min-height: 100vh; }
a { color: inherit; text-decoration: none; }

/* Sembunyikan class mobile-only di desktop */
.mobile-only { display: none; }

/* ══════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════ */
.navbar {
    background: var(--white);
    border-bottom: var(--border);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    max-width: 1260px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 20px;
}
.nav-title { font-weight: 900; }
.nav-dot { color: #999; font-weight: 500; }

.nav-links {
    display: flex;
    gap: 4px;
}
.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.1s;
}
.nav-link:hover { background: var(--bg); }

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

.nav-token-badge {
    display: flex;
    gap: 6px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
}
.token-g {
    background: var(--green);
    padding: 4px 10px;
    border: 2px solid var(--black);
    border-radius: 6px;
    box-shadow: 2px 2px 0 0 var(--black);
}
.token-y {
    background: var(--red);
    color: #fff;
    padding: 4px 10px;
    border: 2px solid var(--black);
    border-radius: 6px;
    box-shadow: 2px 2px 0 0 var(--black);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--black);
}
.nav-username {
    font-weight: 700;
    font-size: 13px;
}

.nav-burger {
    display: none;
    background: none;
    border: var(--border);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 80ms, box-shadow 80ms;
}
.nav-burger:hover { transform: translate(1px, 1px); box-shadow: var(--shadow-hover); }
.nav-burger:active { transform: translate(2px, 2px); box-shadow: var(--shadow-active); }

/* ══════════════════════════════════════════════
   BUTTONS — NEO BRUTAL
   ══════════════════════════════════════════════ */
.nb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    font-family: var(--font);
    font-weight: 700;
    font-size: 14px;
    background: var(--white);
    color: var(--black);
    transition: transform 80ms, box-shadow 80ms;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}
.nb-btn:hover { transform: translate(1px, 1px); box-shadow: var(--shadow-hover); }
.nb-btn:active { transform: translate(3px, 3px); box-shadow: var(--shadow-active); }
.nb-btn-sm { padding: 6px 14px; font-size: 12px; }
.nb-btn-lg { padding: 14px 32px; font-size: 16px; }

.nb-btn-yellow { background: var(--yellow); }
.nb-btn-green { background: var(--green); }
.nb-btn-blue { background: var(--blue); }
.nb-btn-pink { background: var(--pink); }
.nb-btn-orange { background: var(--orange); }
.nb-btn-red { background: var(--red); color: #fff; }

/* ══════════════════════════════════════════════
   CARDS & CHIPS
   ══════════════════════════════════════════════ */
.nb-card {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.nb-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 2px solid var(--black);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--mono);
    box-shadow: 2px 2px 0 0 var(--black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════
   LAYOUT WRAPPER
   ══════════════════════════════════════════════ */
.wrapper {
    max-width: 1260px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero { text-align: center; margin-bottom: 44px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--black);
    color: var(--yellow);
    padding: 8px 20px;
    border-radius: 99px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 24px;
    border: 3px solid var(--black);
    box-shadow: var(--shadow-sm);
}
.hero-badge::before { content: '⬢'; font-size: 14px; }
.hero h1 {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 16px;
}
.hl {
    background: var(--yellow);
    padding: 2px 12px;
    border: 2px solid var(--black);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    display: inline-block;
}
.hero p {
    color: #555;
    font-size: 17px;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

/* ══════════════════════════════════════════════
   MODE TABS (Google / YouTube)
   ══════════════════════════════════════════════ */
.mode-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}
.mode-tab {
    padding: 10px 28px;
    border: var(--border);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 80ms, box-shadow 80ms;
    font-family: var(--font);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.mode-tab:hover { transform: translate(1px, 1px); box-shadow: var(--shadow-hover); }
.mode-tab:active { transform: translate(3px, 3px); box-shadow: var(--shadow-active); }
.mode-tab.active-google { background: var(--green); font-weight: 800; }
.mode-tab.active-youtube { background: var(--red); color: #fff; font-weight: 800; }

/* ══════════════════════════════════════════════
   SEARCH BOX
   ══════════════════════════════════════════════ */
.search-box { margin-bottom: 32px; }
.search-box .nb-card { padding: 28px 32px; }
.search-label {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #777;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-row {
    display: flex;
    gap: 0;
    border: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s;
}
.search-row:focus-within { box-shadow: 0 0 0 4px rgba(255, 225, 86, 0.5), var(--shadow-sm); }

.flag-select {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border: none;
    border-right: var(--border);
    background: var(--bg);
    font-family: var(--font);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    min-width: 130px;
}
.flag-select .fi {
    font-size: 22px;
    line-height: 1;
    border-radius: 2px;
}
.flag-select select {
    border: none;
    background: transparent;
    font-family: var(--font);
    font-weight: 700;
    font-size: 14px;
    color: var(--black);
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 12px;
}

.search-row input[type="text"] {
    flex: 1;
    padding: 18px 22px;
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font);
    background: var(--white);
    min-width: 0;
}
.search-row input::placeholder { color: #bbb; }

.search-row button[type="submit"] {
    padding: 18px 36px;
    border: none;
    border-left: var(--border);
    background: var(--yellow);
    color: var(--black);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    font-family: var(--font);
    transition: background 100ms, transform 80ms;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.search-row button[type="submit"]:hover { background: #ffd600; }
.search-row button[type="submit"]:active { background: #f5c800; transform: translate(0, 2px); }
.search-row button[type="submit"]:disabled { opacity: 0.7; cursor: not-allowed; }

/* ══════════════════════════════════════════════
   LOADER
   ══════════════════════════════════════════════ */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    align-items: center;
    justify-content: center;
}
.loader-overlay.show { display: flex; }
.loader-box {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: 8px 8px 0 0 var(--black);
    padding: 40px 50px;
    text-align: center;
    min-width: 240px;
}
.loader-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--bg);
    border-top: 4px solid var(--black);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text {
    font-weight: 700;
    font-size: 14px;
    color: #555;
}

/* ══════════════════════════════════════════════
   STATUS BAR
   ══════════════════════════════════════════════ */
.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.chip-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════════
   RESULT TABS
   ══════════════════════════════════════════════ */
.tabs-row {
    display: flex;
    gap: 6px;
    margin-bottom: -3px;
    position: relative;
    z-index: 2;
    padding-left: 8px;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 12px 24px;
    border: var(--border);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--bg);
    color: #777;
    font-family: var(--font);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 100ms, color 100ms;
    position: relative;
    top: 3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tab-btn:hover { background: #e8e5dd; color: var(--black); }
.tab-btn.active { background: var(--white); color: var(--black); z-index: 3; }

/* ══════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════ */
.table-card { position: relative; z-index: 1; }
.table-scroll {
    overflow-x: auto;
    max-height: 720px;
    overflow-y: auto;
}
.table-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.table-scroll::-webkit-scrollbar-track { background: var(--bg); border-left: var(--border); }
.table-scroll::-webkit-scrollbar-thumb { background: var(--black); border-radius: 0; }

.nb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.nb-table thead { position: sticky; top: 0; z-index: 5; }
.nb-table th {
    padding: 14px 16px;
    text-align: left;
    background: var(--black);
    color: var(--yellow);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.nb-table th:last-child { border-right: none; }
.nb-table td {
    padding: 12px 16px;
    border-bottom: 2px solid var(--bg);
    white-space: nowrap;
    vertical-align: middle;
    font-weight: 500;
}
.nb-table tbody tr {
    transition: background 60ms;
    cursor: pointer;
}
.nb-table tbody tr:hover { background: #fffde0; }
.nb-table tbody tr:nth-child(even) { background: #fafaf5; }
.nb-table tbody tr:nth-child(even):hover { background: #fffde0; }

/* Cell types */
.cell-kw { font-weight: 700; color: #1d4ed8; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.cell-vol { font-family: var(--mono); font-weight: 700; }
.cell-money { font-family: var(--mono); font-weight: 700; color: #059669; }
.cell-money-purple { font-family: var(--mono); font-weight: 700; color: #7c3aed; }
.cell-num { font-family: var(--mono); font-size: 12px; color: #999; font-weight: 600; }

/* Competition Badge */
.comp-badge {
    display: inline-block;
    padding: 4px 12px;
    border: 2px solid var(--black);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 2px 2px 0 0 var(--black);
}
.comp-HIGH { background: #fecaca; color: #991b1b; }
.comp-MEDIUM { background: var(--yellow); color: #78350f; }
.comp-LOW { background: var(--green); color: #14532d; }
.comp-UNKNOWN { background: #e2e8f0; color: #475569; }

/* KD Bar */
.kd-wrap { display: flex; align-items: center; gap: 8px; }
.kd-num { font-family: var(--mono); font-weight: 800; font-size: 13px; min-width: 22px; }
.kd-track {
    width: 48px;
    height: 8px;
    background: #e5e5e0;
    border-radius: 4px;
    border: 1.5px solid var(--black);
    overflow: hidden;
}
.kd-fill { height: 100%; border-radius: 2px; }

/* Trend arrows */
.trend-up { color: #16a34a; font-weight: 700; font-family: var(--mono); font-size: 12px; }
.trend-up::before { content: '▲ '; font-size: 9px; }
.trend-down { color: #dc2626; font-weight: 700; font-family: var(--mono); font-size: 12px; }
.trend-down::before { content: '▼ '; font-size: 9px; }
.trend-flat { color: #999; font-weight: 600; font-family: var(--mono); font-size: 12px; }
.trend-flat::before { content: '— '; }

/* ══════════════════════════════════════════════
   EXPAND DETAIL
   ══════════════════════════════════════════════ */
.expand-tr { display: none; }
.expand-tr.open { display: table-row; }
.expand-td {
    padding: 0 !important;
    border-bottom: 3px solid var(--black) !important;
}
.detail-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    padding: 20px 16px;
    background: #faf9f5;
}
.d-panel {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 10px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
}
.d-panel h4 {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px dashed #ddd;
    display: flex;
    align-items: center;
    gap: 6px;
}
.d-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}
.d-label { font-size: 12px; color: #666; font-weight: 500; }
.d-value { font-family: var(--mono); font-weight: 700; font-size: 12px; }
.spark-block {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 2px dashed #eee;
}
.spark-title {
    font-family: var(--mono);
    font-size: 9px;
    color: #aaa;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.toggle-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid var(--black);
    border-radius: 6px;
    background: var(--blue);
    box-shadow: 2px 2px 0 0 var(--black);
    cursor: pointer;
    transition: transform 80ms, box-shadow 80ms;
}
.toggle-arrow:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 0 var(--black); }
.toggle-arrow:active { transform: translate(2px, 2px); box-shadow: 0 0 0 0 var(--black); }

/* ══════════════════════════════════════════════
   EMPTY / ERROR STATES
   ══════════════════════════════════════════════ */
.empty-box {
    text-align: center;
    padding: 70px 24px;
}
.empty-box p {
    font-size: 15px;
    font-weight: 600;
    color: #999;
    margin-top: 10px;
}
.error-box {
    margin: 20px;
    padding: 18px 24px;
    background: #fecaca;
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    color: #991b1b;
    font-weight: 700;
    font-size: 14px;
}

/* ══════════════════════════════════════════════
   LOGIN POPUP
   ══════════════════════════════════════════════ */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
}
.login-overlay.show { display: flex; }
.login-box {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: 8px 8px 0 0 var(--black);
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}
.login-box h2 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.login-box p {
    color: #666;
    margin-bottom: 24px;
    font-size: 14px;
}
.login-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.google-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: transform 80ms, box-shadow 80ms;
    font-family: var(--font);
    color: var(--black);
}
.google-btn:hover { transform: translate(1px, 1px); box-shadow: var(--shadow-hover); }
.google-btn:active { transform: translate(3px, 3px); box-shadow: var(--shadow-active); }
.google-btn img { width: 22px; height: 22px; }

/* ══════════════════════════════════════════════
   PAGE LAYOUTS (about/privacy/terms/contact/etc)
   ══════════════════════════════════════════════ */
.page-header {
    text-align: center;
    padding: 48px 24px 32px;
}
.page-header h1 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 12px;
}
.page-header p {
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 60px;
}
.page-content h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 32px 0 12px;
    letter-spacing: -0.5px;
}
.page-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 24px 0 8px;
}
.page-content p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 15px;
}
.page-content ul {
    margin: 12px 0 16px 24px;
    color: #444;
    line-height: 1.8;
}
.page-content a {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ══════════════════════════════════════════════
   PRICING PAGE
   ══════════════════════════════════════════════ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 60px;
}
.pricing-card {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    text-align: center;
    position: relative;
    transition: transform 0.15s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.popular {
    border-color: var(--yellow);
    box-shadow: 6px 6px 0 0 var(--yellow);
}
.pricing-card .badge-pop {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--yellow);
    border: 2px solid var(--black);
    border-radius: 99px;
    padding: 4px 16px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 2px 2px 0 0 var(--black);
}
.pricing-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.pricing-card .price { font-size: 36px; font-weight: 900; margin: 16px 0 4px; }
.pricing-card .price-sub {
    font-size: 12px;
    color: #888;
    font-family: var(--mono);
    margin-bottom: 20px;
}
.pricing-card .features { text-align: left; margin-bottom: 24px; }
.pricing-card .features li {
    padding: 6px 0;
    font-size: 13px;
    font-weight: 500;
    list-style: none;
}
.pricing-card .features li::before {
    content: '✓ ';
    color: #16a34a;
    font-weight: 800;
}

/* ══════════════════════════════════════════════
   CONTACT FORM
   ══════════════════════════════════════════════ */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 6px;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    outline: none;
    transition: box-shadow 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 4px rgba(255, 225, 86, 0.5), var(--shadow-sm);
}
.form-group textarea { height: 160px; resize: vertical; }

/* ══════════════════════════════════════════════
   LANDING SECTIONS (HOMEPAGE)
   ══════════════════════════════════════════════ */
.landing-section {
    padding: 60px 0 0;
    margin-top: 40px;
    border-top: 3px dashed #ccc;
}
.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 24px;
}
.section-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    background: var(--bg);
    border: 2px solid var(--black);
    border-radius: 99px;
    padding: 5px 16px;
    box-shadow: 2px 2px 0 0 var(--black);
    margin-bottom: 16px;
}
.section-header h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 12px;
    line-height: 1.15;
}
.section-header p {
    color: #555;
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.feature-card {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    transition: transform 0.15s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    border: 2px solid var(--black);
    box-shadow: 2px 2px 0 0 var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--black);
}
.feature-card h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
}
.feature-card p {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

/* Steps */
.steps-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.step-card {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    text-align: center;
    flex: 1;
    min-width: 220px;
    max-width: 300px;
}
.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: var(--border);
    background: var(--yellow);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 14px;
}
.step-card h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
}
.step-card p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}
.step-arrow {
    font-size: 24px;
    color: var(--black);
    opacity: 0.3;
}

/* Compare Table */
.compare-table td:nth-child(2) {
    background: #fffde0;
    font-weight: 600;
}

/* CTA Box */
.cta-box .nb-card {
    border: var(--border);
    box-shadow: 8px 8px 0 0 var(--yellow);
}

/* ══════════════════════════════════════════════
   ACCOUNT PAGE
   ══════════════════════════════════════════════ */
.account-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    margin-bottom: 32px;
}
.balance-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 20px;
    border: 2px solid var(--black);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    min-width: 120px;
}
.balance-label {
    font-size: 10px;
    font-family: var(--mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
}
.balance-val {
    font-size: 28px;
    font-weight: 900;
    font-family: var(--mono);
}
.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 2px dashed #eee;
}
.stat-row:last-child { border-bottom: none; }
.stat-label { font-size: 13px; color: #666; }
.stat-val { font-family: var(--mono); font-weight: 700; font-size: 13px; }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.footer {
    background: var(--black);
    color: #aaa;
    padding: 60px 24px 0;
    margin-top: 80px;
    border-top: var(--border);
}
.footer-inner {
    max-width: 1260px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 40px;
}
.footer-brand { max-width: 300px; }
.footer-brand .nav-title {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}
.footer-desc {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6;
}
.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-col h4 {
    color: var(--yellow);
    font-size: 12px;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}
.footer-col a {
    font-size: 14px;
    transition: color 0.1s;
}
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    max-width: 1260px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════
   RESPONSIVE (MOBILE VIEW)
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .wrapper { padding: 24px 12px 60px; }

    /* Pengaturan Navbar Mobile */
    .desktop-only { display: none !important; }
    .mobile-only { display: block; }
    
    .mobile-menu-divider {
        height: 2px;
        background: var(--black);
        margin: 8px 16px;
        opacity: 0.1;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: var(--border);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05); /* Bayangan menu biar pop-up */
    }
    .nav-links.open { display: flex; }
    .nav-burger { display: block; }
    
    .nav-user .nav-username { display: none; }
    
    /* Perkecil dan rapatkan area Tokens di Mobile */
    .nav-right { gap: 8px; }
    .nav-token-badge { gap: 4px; font-size: 10px; }
    .token-g, .token-y { 
        padding: 4px 6px; 
        border-width: 1.5px;
        box-shadow: 1px 1px 0 0 var(--black);
    }

    /* Penyesuaian elemen lain */
    .search-box .nb-card { padding: 20px 16px; }
    .search-row { flex-direction: column; }
    .flag-select {
        border-right: none;
        border-bottom: var(--border);
        padding: 12px 16px;
    }
    .search-row button[type="submit"] {
        border-left: none;
        border-top: var(--border);
    }

    .tab-btn { padding: 10px 16px; font-size: 11px; }
    .detail-panels { grid-template-columns: 1fr; }

    .account-grid { grid-template-columns: 1fr; }
    .steps-row { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }

    .footer-inner { flex-direction: column; }
    .footer-links { gap: 30px; }
}

/* ══════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════ */
@keyframes popUp {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.pop {
    animation: popUp 0.4s cubic-bezier(0.22, 0.68, 0, 1.2) both;
}
.nb-table tbody tr {
    animation: popUp 0.3s cubic-bezier(0.22, 0.68, 0, 1) both;
}

/* ══════════════════════════════════════════════
   LEADERBOARD PAGE
   ══════════════════════════════════════════════ */
.rank-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}
.medal {
    font-size: 22px;
    line-height: 1;
}
.rank-num {
    font-family: var(--mono);
    font-weight: 900;
    font-size: 14px;
    color: var(--black);
    background: var(--bg);
    border: 2px solid var(--black);
    border-radius: 6px;
    padding: 2px 8px;
    box-shadow: 2px 2px 0 0 var(--black);
}

.score-pill {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 80px;
}
.score-num {
    font-family: var(--mono);
    font-weight: 800;
    font-size: 13px;
    color: var(--black);
}
.score-bar {
    height: 6px;
    background: #e5e5e0;
    border: 1.5px solid var(--black);
    border-radius: 3px;
    overflow: hidden;
}
.score-fill {
    height: 100%;
    background: var(--green);
    border-radius: 2px;
    transition: width 0.3s;
}

/* Top 3 rank highlight */
.nb-table tbody tr:nth-child(1) .rank-num { background: var(--yellow); }
.nb-table tbody tr:nth-child(2) .rank-num { background: #e2e8f0; }
.nb-table tbody tr:nth-child(3) .rank-num { background: #ffb347; }

/* ══════════════════════════════════════════════
   BOOKMARK CELL
   ══════════════════════════════════════════════ */
.bookmark-cell {
    width: 40px;
    text-align: center;
    cursor: pointer;
    transition: transform 80ms;
    user-select: none;
}
.bookmark-cell:hover { transform: scale(1.2); }
.bookmark-cell:active { transform: scale(0.9); }
.bookmark-cell i {
    font-size: 16px;
    color: #ccc;
    transition: color 100ms;
}
.bookmark-cell:hover i { color: var(--orange); }
.bookmark-cell.bookmarked i { color: var(--orange); }

/* ══════════════════════════════════════════════
   BLOG
   ══════════════════════════════════════════════ */
.blog-card {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 7px 7px 0 0 var(--black);
}
.blog-card a { color: inherit; text-decoration: none; }

.blog-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-bottom: var(--border);
    background: var(--bg);
}
.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ccc;
}

.blog-card-body {
    padding: 20px 22px 24px;
}

.blog-cat-badge {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    border: 2px solid var(--black);
    border-radius: 99px;
    padding: 4px 14px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 2px 2px 0 0 var(--black);
    margin-bottom: 12px;
    text-decoration: none !important;
}

.blog-card-title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    margin: 8px 0 10px;
    letter-spacing: -0.3px;
}

.blog-card-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card-meta {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: #888;
    font-family: var(--mono);
    padding-top: 12px;
    border-top: 2px dashed #eee;
}

/* BLOG CONTENT — typography untuk artikel */
.blog-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.blog-content h2 {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin: 40px 0 16px;
    line-height: 1.2;
}
.blog-content h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 32px 0 12px;
    line-height: 1.3;
}
.blog-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 10px;
}
.blog-content p {
    margin-bottom: 18px;
}
.blog-content a {
    color: #1d4ed8;
    text-decoration: underline;
    font-weight: 600;
}
.blog-content a:hover { color: #1e40af; }
.blog-content ul, .blog-content ol {
    margin: 18px 0 18px 28px;
    line-height: 1.8;
}
.blog-content li { margin-bottom: 8px; }
.blog-content blockquote {
    border-left: 4px solid var(--yellow);
    background: var(--bg);
    padding: 16px 24px;
    margin: 24px 0;
    font-style: italic;
    color: #555;
    border-radius: 0 8px 8px 0;
}
.blog-content img {
    max-width: 100%;
    height: auto;
    border: 2px solid var(--black);
    border-radius: 8px;
    box-shadow: 4px 4px 0 0 var(--black);
    margin: 24px 0;
    display: block;
}
.blog-content pre {
    background: #1a1a2e;
    color: #a6f4a0;
    padding: 20px;
    border-radius: 10px;
    border: var(--border);
    box-shadow: 4px 4px 0 0 var(--black);
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.6;
    margin: 24px 0;
}
.blog-content code {
    background: #fff3a0;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 0.9em;
    border: 1px solid #d4af00;
}
.blog-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    font-size: inherit;
}
.blog-content strong { font-weight: 800; }
.blog-content em { font-style: italic; }
.blog-content hr {
    border: none;
    border-top: 3px dashed #ccc;
    margin: 40px 0;
}
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border: var(--border);
    box-shadow: var(--shadow-sm);
}
.blog-content table th {
    background: var(--black);
    color: var(--yellow);
    padding: 10px 14px;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}
.blog-content table td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}