/* Table Bonus page */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.tb-page {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto 32px;
    padding-bottom: 24px;
}

.tb-hero {
    text-align: center;
    margin-bottom: 24px;
    padding: 28px 20px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.tb-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: var(--gold-grad);
    opacity: 0.15;
    border-radius: 50%;
    filter: blur(40px);
}

.tb-hero .eyebrow {
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-dark);
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
}

.tb-hero h1 {
    font-size: 1.5rem;
    color: var(--green-dark);
    margin-bottom: 8px;
    position: relative;
}

.tb-hero p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

.tb-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    margin-bottom: 20px;
}

.tb-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
}

.tb-legend .dot-up { background: rgba(16, 185, 129, 0.15); color: #059669; border-color: rgba(16, 185, 129, 0.3); }
.tb-legend .dot-stay { background: rgba(212, 175, 55, 0.15); color: var(--gold-dark); border-color: rgba(212, 175, 55, 0.35); }
.tb-legend .dot-down { background: rgba(239, 68, 68, 0.1); color: #dc2626; border-color: rgba(239, 68, 68, 0.25); }

[data-theme="dark"] .tb-legend .dot-up { color: #4ade80; }
[data-theme="dark"] .tb-legend .dot-down { color: #f87171; }

.tb-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.tb-tab {
    padding: 14px 12px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: var(--glass);
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
    font-family: inherit;
    color: inherit;
}

.tb-tab:hover {
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.tb-tab.is-active {
    background: var(--green-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 24px rgba(6, 78, 59, 0.25);
}

.tb-tab.is-active .tb-tab-meta,
.tb-tab.is-active .tb-tab-label {
    color: rgba(255, 255, 255, 0.9);
}

.tb-tab-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 4px;
}

.tb-tab-meta {
    display: block;
    font-size: 9px;
    color: var(--text-muted);
    line-height: 1.3;
}

.tb-panel-wrap {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.tb-panel {
    display: none;
    animation: tbFade 0.35s ease;
}

.tb-panel.is-active {
    display: block;
}

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

.tb-panel-head {
    padding: 18px 20px;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.06), rgba(212, 175, 55, 0.06));
}

.tb-panel-head h2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 4px;
}

.tb-panel-head p {
    font-size: 11px;
    color: var(--text-muted);
}

.tb-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tb-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 12px;
}

.tb-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 14px 12px;
    text-align: center;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    background: var(--green-dark);
    color: #fff;
}

.tb-table thead th.col-berlian {
    text-align: left;
    background: linear-gradient(135deg, #064e3b, #11694e);
}

.tb-table thead th.col-up { background: linear-gradient(135deg, #047857, #059669); }
.tb-table thead th.col-stay { background: linear-gradient(135deg, #b8860b, #d4af37); color: #1a1a1a; }
.tb-table thead th.col-down { background: linear-gradient(135deg, #991b1b, #dc2626); }

.tb-table tbody tr {
    transition: background 0.15s;
}

.tb-table tbody tr:nth-child(even) {
    background: rgba(6, 78, 59, 0.03);
}

[data-theme="dark"] .tb-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.tb-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.08);
}

.tb-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-main);
}

.tb-table td.col-tingkat {
    text-align: left;
    font-weight: 600;
    color: var(--green-dark);
    white-space: nowrap;
}

.tb-table td.col-berlian {
    text-align: left;
    font-weight: 500;
    color: var(--gold-dark);
}

.tb-table td.col-berlian i {
    margin-right: 4px;
    font-size: 11px;
}

.tb-table td.col-up {
    font-weight: 600;
    color: #059669;
}

.tb-table td.col-stay {
    font-weight: 600;
    color: var(--gold-dark);
}

.tb-table td.col-down {
    font-weight: 500;
    color: #dc2626;
}

[data-theme="dark"] .tb-table td.col-up { color: #4ade80; }
[data-theme="dark"] .tb-table td.col-down { color: #f87171; }

.tb-table tbody tr.row-top td.col-tingkat::after {
    content: ' ★';
    color: var(--gold-dark);
    font-size: 10px;
}

.tb-footnote {
    padding: 14px 20px;
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.5;
    border-top: 1px dashed var(--glass-border);
}

.tb-cta {
    margin-top: 20px;
    text-align: center;
}

.tb-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    background: var(--green-grad);
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(6, 78, 59, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tb-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(6, 78, 59, 0.35);
}

@media (min-width: 768px) {
    .tb-tabs {
        grid-template-columns: repeat(4, 1fr);
    }

    .tb-hero h1 {
        font-size: 1.75rem;
    }
}
