/* ==========================================================================
   PREDIKSI TOGEL JITU - LUXURY DARK DESIGN SYSTEM
   ========================================================================== */

:root {
    --bg-dark: #0b0f19;
    --bg-card: #131b2e;
    --bg-card-hover: #1a253e;
    --bg-input: #0f172a;
    --border-color: #1e293b;
    --border-gold: rgba(245, 158, 11, 0.3);
    
    --primary-gold: #f59e0b;
    --primary-gold-light: #fbbf24;
    --primary-gold-dark: #b45309;
    --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    --gold-glow: 0 0 20px rgba(245, 158, 11, 0.35);

    --accent-cyan: #06b6d4;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-purple: #8b5cf6;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.04) 0%, transparent 40%);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold-dark);
}

/* ==========================================================================
   HEADER & TOP NAVIGATION
   ========================================================================== */
.app-header {
    background: rgba(19, 27, 46, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gold-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: var(--gold-glow);
}

.logo-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    line-height: 1.1;
}

.logo-text h1 span {
    color: var(--primary-gold-light);
    font-weight: 800;
}

.logo-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-cyan);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.clock-badge {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-gold-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    color: var(--primary-gold-light);
    border-color: var(--primary-gold);
    background: rgba(245, 158, 11, 0.1);
}

/* ==========================================================================
   LIVE MARKET TICKER
   ========================================================================== */
.ticker-section {
    background: #090d16;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.ticker-label {
    background: var(--gold-gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.5px;
}

.ticker-content {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.ticker-content::-webkit-scrollbar {
    display: none;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.ticker-item .m-name {
    font-weight: 700;
    color: var(--text-primary);
}

.ticker-item .m-num {
    font-weight: 800;
    color: var(--primary-gold-light);
    background: rgba(245, 158, 11, 0.15);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
}

.ticker-item .m-time {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ==========================================================================
   MAIN CONTAINER & HERO
   ========================================================================== */
.main-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
    flex: 1;
}

.hero-banner {
    background: linear-gradient(135deg, rgba(19, 27, 46, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hero-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 130px;
}

.stat-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-gold-light);
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* ==========================================================================
   NAVIGATION TABS
   ========================================================================== */
.nav-tabs {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.85rem 1.3rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

.tab-btn i {
    font-size: 1.05rem;
    transition: var(--transition);
}

.tab-btn:hover {
    background: var(--bg-card-hover);
    color: #fff;
    border-color: rgba(245, 158, 11, 0.3);
}

.tab-btn.active {
    background: var(--gold-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--gold-glow);
}

.tab-btn.active i {
    transform: scale(1.1);
}

/* ==========================================================================
   TAB CONTENT SECTIONS
   ========================================================================== */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.title-wrap h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.title-wrap h3 i {
    color: var(--primary-gold);
}

.title-wrap p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-top: 0.2rem;
}

/* Custom Select Dropdown */
.custom-select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.65rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.88rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.custom-select:hover, .custom-select:focus {
    border-color: var(--primary-gold);
}

/* Buttons System */
.btn {
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0b0f19;
    font-weight: 800;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
}

.btn-copy-sm {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--primary-gold-light);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy-sm:hover {
    background: var(--primary-gold);
    color: #fff;
}

/* ==========================================================================
   TAB 1: PREDIKSI AI STYLING
   ========================================================================== */
.market-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.m-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.m-btn:hover, .m-btn.active {
    background: rgba(245, 158, 11, 0.15);
    color: var(--primary-gold-light);
    border-color: var(--primary-gold);
}

.prediksi-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.prediksi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.prediksi-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.prediksi-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
}

.market-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.market-info .m-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.m-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
}

.prediksi-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pred-row {
    background: rgba(15, 23, 42, 0.6);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pred-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.pred-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-gold-light);
    letter-spacing: 1px;
    font-family: monospace;
}

.pred-balls {
    display: flex;
    gap: 0.4rem;
}

.num-ball {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--gold-gradient);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.num-ball.cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

/* ==========================================================================
   TAB 2: LIVE RESULT & HISTORIS STYLING
   ========================================================================== */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.result-card:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: var(--shadow-card);
}

.result-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.res-market-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.res-schedule {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.res-number-display {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.big-numbers {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.big-ball {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 2px solid var(--primary-gold-light);
    color: var(--primary-gold-light);
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    font-family: 'Outfit', monospace;
}

.res-period {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.res-countdown {
    font-size: 0.82rem;
    color: var(--accent-cyan);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.history-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.history-header h4 {
    font-size: 1.1rem;
    color: #fff;
}

/* Tables System */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: center;
}

.data-table th {
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-secondary);
    padding: 0.85rem 1rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.badge-2d {
    background: rgba(245, 158, 11, 0.15);
    color: var(--primary-gold-light);
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
}

/* ==========================================================================
   TAB 3: BBFS GENERATOR STYLING
   ========================================================================== */
.bbfs-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1.5rem;
}

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

.bbfs-controls-card, .bbfs-results-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.input-group {
    margin: 1.2rem 0;
}

.input-group label {
    display: block;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    outline: none;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.checkbox-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-secondary);
    user-select: none;
}

.custom-checkbox input {
    accent-color: var(--primary-gold);
    width: 18px;
    height: 18px;
}

.action-buttons {
    display: flex;
    gap: 0.8rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.bbfs-summary {
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-cyan);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.results-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.bbfs-group {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.group-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.bbfs-group textarea {
    width: 100%;
    height: 80px;
    background: transparent;
    border: none;
    color: var(--primary-gold-light);
    font-family: monospace;
    font-size: 0.95rem;
    resize: none;
    outline: none;
    line-height: 1.5;
}

/* ==========================================================================
   TAB 4: PAITO WARNA STYLING
   ========================================================================== */
.paito-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.color-palette-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    background: rgba(15, 23, 42, 0.7);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
}

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

.color-options {
    display: flex;
    gap: 0.6rem;
}

.color-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.color-btn.active, .color-btn:hover {
    transform: scale(1.2);
    border-color: #fff;
}

.paito-matrix-container {
    overflow-x: auto;
}

.paito-matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: center;
}

.paito-matrix-table th {
    background: #0f172a;
    padding: 0.65rem;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.paito-matrix-table td {
    padding: 0.6rem;
    border: 1px solid var(--border-color);
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
    font-family: monospace;
    font-size: 0.95rem;
}

.paito-cell:hover {
    outline: 2px solid var(--primary-gold);
}

/* ==========================================================================
   TAB 5: BUKU MIMPI STYLING
   ========================================================================== */
.dream-search-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-gold);
    font-size: 1.1rem;
}

.search-input-wrapper input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.9rem 3rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.search-input-wrapper input:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.btn-clear-search {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
}

.dream-category-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dream-cat-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.dream-cat-btn.active, .dream-cat-btn:hover {
    background: var(--primary-gold);
    color: #fff;
    border-color: transparent;
}

.dream-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
}

.dream-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.dream-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-3px);
}

.dream-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(245, 158, 11, 0.12);
    color: var(--primary-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.dream-info h5 {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.dream-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-cyan);
    font-family: monospace;
}

/* ==========================================================================
   TAB 6: KALKULATOR MISTIK & TAYSEN STYLING
   ========================================================================== */
.mistik-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .mistik-container {
        grid-template-columns: 1fr;
    }
}

.mistik-converter-card, .shio-table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.converter-input-wrap {
    margin: 1.2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.converter-input-wrap input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    font-weight: 800;
    outline: none;
}

.converter-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.res-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}

.res-box .res-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.res-box .res-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-gold-light);
    font-family: monospace;
}

.shio-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.shio-table th, .shio-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.shio-table td:last-child {
    font-family: monospace;
    color: var(--primary-gold-light);
}

/* ==========================================================================
   TAB 7: RODA HOKKY (LUCKY WHEEL) STYLING
   ========================================================================== */
.wheel-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.wheel-box {
    position: relative;
    width: 360px;
    height: 360px;
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: var(--primary-gold-light);
    z-index: 10;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

#wheel-canvas {
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.3), inset 0 0 15px rgba(0,0,0,0.5);
    border: 6px solid #1e293b;
}

.wheel-action-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 400px;
}

.btn-spin-big {
    width: 100%;
    padding: 1.1rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.spin-result-box {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    width: 100%;
    text-align: center;
}

.spin-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.spin-balls {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.spin-balls .ball {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--gold-glow);
    font-family: monospace;
}

/* ==========================================================================
   FOOTER STYLING
   ========================================================================== */
.app-footer {
    background: #070a11;
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.logo-icon-sm {
    width: 28px;
    height: 28px;
    background: var(--gold-gradient);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
}

.footer-disclaimer {
    font-size: 0.78rem;
    color: var(--text-muted);
    max-width: 800px;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1e293b;
    border: 1px solid var(--primary-gold);
    color: #fff;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    color: var(--primary-gold-light);
    font-size: 1.2rem;
}

/* ==========================================================================
   AUTH MODAL & HEADER LOGIN / DAFTAR BUTTONS
   ========================================================================== */
.btn-auth {
    font-size: 0.82rem;
    padding: 0.5rem 1rem;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
}

.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.auth-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 440px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    transform: translateY(20px);
    transition: var(--transition);
}

.auth-modal-overlay.show .auth-modal-card {
    transform: translateY(0);
}

.auth-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.auth-close-btn:hover {
    color: #fff;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.auth-tab-btn.active {
    color: var(--primary-gold-light);
    border-bottom: 2px solid var(--primary-gold);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-container {
        padding: 0.8rem 1rem;
    }
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-stats {
        width: 100%;
        justify-content: space-between;
    }
    .stat-card {
        flex: 1;
    }
    .wheel-box {
        width: 280px;
        height: 280px;
    }
    #wheel-canvas {
        width: 280px;
        height: 280px;
    }
    .header-actions {
        gap: 0.5rem;
    }
    .clock-badge {
        display: none;
    }
}
