/* ==========================================================================
   MTOU — DESIGN SYSTEM
   Palet Resmi UNPAM: Navy & Gold
   ========================================================================== */
:root {
    --navy: #003366;
    --navy-hover: #1a4d80;
    --navy-surface: #E8EEF5;
    --navy-surface-2: #D2DEEC;
    --gold: #F5A623;
    --gold-hover: #d98f12;
    --gold-surface: #FEF3DC;
    --green: #1D9E75;
    --green-surface: #E8F5F1;
    --red: #E24B4A;
    --gray-status: #718096;
    --gray-warm-surface: #F4F3F1;

    --bg: #FFFFFF;
    --bg-alt: #FBF9F6;
    --panel: #FFFFFF;
    --ink: #0A1A2E;
    --text: #2B3242;
    --text-soft: #5C6680;
    --line: rgba(0, 51, 102, 0.12);
    --line-soft: rgba(0, 51, 102, 0.06);

    --font-serif: 'Source Serif 4', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --container: 1120px;
    --container-padding: clamp(16px, 5vw, 32px);
    --panel-padding: clamp(16px, 3vw, 24px);
    
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.icon-inline {
    width: 1em;
    height: 1em;
    fill: currentColor;
    flex-shrink: 0;
    vertical-align: -0.15em;
}

/* ============================================================
   LOGO UNPAM
============================================================ */
.brand-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex: 1;
    margin-left: clamp(0px, 2vw, 40px);
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo-img:hover {
    opacity: 0.8;
}

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

.footer-logo {
    height: 24px;
    width: auto;
    display: block;
    opacity: 0.6;
}

/* ============================================================
   HEADER
============================================================ */
.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 12px;
    width: 100%;
}

.brand-mark {
    font-family: var(--font-serif);
    font-size: clamp(22px, 2.8vw, 28px);
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-mark:hover {
    opacity: 0.8;
}

.brand-mark .brand-accent {
    color: var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.back-btn, .theme-btn, .linktree-btn {
    background: transparent;
    border: none;
    color: var(--navy);
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: var(--transition);
    border-radius: 4px;
    font-family: var(--font-sans);
    white-space: nowrap;
}

.linktree-btn {
    color: var(--navy);
    background: rgba(0, 51, 102, 0.08);
    border: 1px solid rgba(0, 51, 102, 0.15);
    font-weight: 500;
}

.cs-badge {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.back-btn:hover, .theme-btn:hover, .linktree-btn:hover {
    background: var(--navy-surface);
}

.linktree-btn:hover {
    background: rgba(0, 51, 102, 0.15);
    color: var(--navy);
    border-color: rgba(0, 51, 102, 0.25);
}

.back-btn .icon-inline,
.theme-btn .icon-inline,
.linktree-btn .icon-inline {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ============================================================
   HERO
============================================================ */
.hero-modern {
    background: var(--bg-alt);
    padding: clamp(24px, 4vw, 40px) 0;
    transition: var(--transition);
}

.hero-modern-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
}

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

.hero-content .eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--gold);
    display: inline-block;
    padding: 2px 14px;
    background: var(--gold-surface);
    border-radius: 100px;
    margin-bottom: 12px;
    animation: eyebrow-entrance 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(-10px);
}

@keyframes eyebrow-entrance {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    50% {
        opacity: 1;
        transform: translateY(2px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-content .hero-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 8px;
}

.hero-content .gold-highlight {
    color: var(--gold);
    position: relative;
}

.hero-content .gold-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-surface));
    border-radius: 4px;
    opacity: 0.5;
}

.hero-content .hero-rule {
    width: 40px;
    height: 3px;
    background: var(--gold);
    margin-bottom: 12px;
    border-radius: 4px;
}

.hero-content .hero-desc {
    font-size: clamp(15px, 1.3vw, 16px);
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 480px;
}

/* --- Hero Stats --- */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 12px 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    max-width: 480px;
    margin: 0;
}

.hero-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stats .stat-number {
    font-family: var(--font-serif);
    font-size: clamp(24px, 2.5vw, 30px);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.hero-stats .stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
}

.hero-stats .stat-divider {
    width: 1px;
    height: 32px;
    background: var(--line);
}

/* --- Form Panel --- */
.hero-form-panel {
    width: 100%;
}

.form-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: clamp(20px, 2.8vw, 28px);
    box-shadow: 0 4px 24px rgba(0, 51, 102, 0.05);
    transition: var(--transition);
}

.form-card:hover {
    box-shadow: 0 8px 40px rgba(0, 51, 102, 0.08);
}

.form-header {
    text-align: center;
    margin-bottom: 18px;
}

.form-header .form-icon {
    display: block;
    margin-bottom: 4px;
}

.form-header .form-icon .icon-inline {
    width: 32px;
    height: 32px;
    fill: var(--gold);
}

.form-header .form-title {
    font-family: var(--font-serif);
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 600;
    color: var(--navy);
}

.form-header .form-subtitle {
    font-size: 14px;
    color: var(--text-soft);
    margin-top: 2px;
}

.select-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field-group label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
}

.field-group select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: 8px;
    padding: 12px 40px 12px 14px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    min-height: 44px;
    cursor: pointer;
    transition: var(--transition);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235C6680'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

.field-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.1);
}

.field-group select:hover {
    border-color: var(--navy-hover);
}

.select-form .action-btn {
    border: none;
    margin-top: 4px;
    padding: 14px 24px;
    min-height: 48px;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.select-form .action-btn:hover {
    background: var(--gold);
    color: var(--ink);
}

.select-form .action-btn .icon-inline {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.select-form .action-btn .btn-logo {
    height: 24px;
    width: auto;
    display: block;
}

/* ============================================================
   CLOCK MINI
============================================================ */
.clock-mini {
    background: var(--navy);
    padding: 10px 0;
    transition: var(--transition);
}

.clock-mini-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.clock-display {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.8vw, 20px);
    flex-wrap: wrap;
}

.clock-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    opacity: 0.8;
}

.clock-label .icon-inline {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

#live-clock-mini {
    font-family: var(--font-serif);
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.04em;
}

.clock-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

.clock-greeting {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
}

/* ============================================================
   CLOCK SECTION (Schedule)
============================================================ */
.clock-section {
    background: var(--navy);
}

.clock-block {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

@media (min-width: 768px) {
    .clock-block {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
}

.clock-kicker {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    display: block;
}

#live-clock {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 400;
    color: #fff;
}

#today-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   PANEL
============================================================ */
.section-main {
    padding: clamp(16px, 3vw, 32px) 0;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: var(--panel-padding);
    transition: var(--transition);
}

.panel-title {
    font-family: var(--font-serif);
    font-size: clamp(18px, 2vw, 22px);
    color: var(--navy);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line-soft);
    transition: var(--transition);
}

/* ============================================================
   FILTER TABS
============================================================ */
.filter-tabs {
    display: flex;
    gap: clamp(8px, 2vw, 16px);
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px 2px;
    font-size: clamp(13px, 1.2vw, 14px);
    font-weight: 500;
    color: var(--text-soft);
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-sans);
    transition: var(--transition);
}

.filter-tab:hover {
    color: var(--navy);
}

.filter-tab.active {
    color: var(--navy);
    border-bottom-color: var(--gold);
    font-weight: 600;
}

/* ============================================================
   SCHEDULE CARDS
============================================================ */
#schedule-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.day-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--navy);
    margin-bottom: 8px;
}

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

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

.class-card {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px 16px;
    background: var(--panel);
    transition: var(--transition);
}

.class-card:hover {
    border-color: var(--gold);
}

.status-berlangsung {
    border-left: 4px solid var(--green);
}

.status-berikutnya {
    border-left: 4px solid var(--gold);
}

.status-selesai {
    border-left: 4px solid var(--gray-status);
}

.class-card h3 {
    font-size: 15px;
    color: var(--navy);
    margin-bottom: 6px;
    font-weight: 600;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.card-header h3 {
    margin-bottom: 0;
    flex: 1;
}

.sks-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-soft);
    background: var(--bg-alt);
    padding: 2px 10px;
    border-radius: 100px;
    white-space: nowrap;
    border: 1px solid var(--line-soft);
}

.meta-line {
    display: flex;
    font-size: 13px;
    margin-bottom: 2px;
}

.meta-label {
    color: var(--text-soft);
    width: 60px;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
}

.meta-value {
    color: var(--text);
    font-weight: 400;
}

.card-footer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line-soft);
}

.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ux-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-berlangsung {
    background: var(--green-surface);
    color: var(--green);
}

.badge-berikutnya {
    background: var(--gold-surface);
    color: var(--gold);
}

.badge-selesai {
    background: var(--gray-warm-surface);
    color: var(--gray-status);
}

.badge-online {
    background: var(--navy-surface);
    color: var(--navy);
}

.badge-tatap-muka {
    background: var(--navy-surface-2);
    color: var(--navy);
}

/* ============================================================
   PROGRESS
============================================================ */
.progress-wrap {
    margin-top: 12px;
}

.progress {
    width: 100%;
    height: 6px;
    border-radius: 100px;
    background: var(--navy-surface);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gold);
    border-radius: 100px;
    transition: width 0.6s ease;
}

.progress-label {
    font-size: 12px;
    color: var(--text-soft);
    font-weight: 500;
    display: block;
    margin-top: 4px;
}

/* ============================================================
   HIGHLIGHT
============================================================ */
.schedule-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.highlight-panel {
    margin-bottom: 0 !important;
    padding: clamp(14px, 1.8vw, 20px);
}

.highlight-panel .panel-title {
    font-size: clamp(16px, 1.5vw, 18px);
    margin-bottom: 10px;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.highlight-panel .title-icon .icon-inline {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.current-highlight {
    border-top: 3px solid var(--green);
}

.next-highlight {
    border-top: 3px solid var(--gold);
}

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

.highlight-card {
    background: var(--panel);
    border-radius: 6px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    transition: var(--transition);
}

.highlight-card:hover {
    border-color: var(--gold);
}

.current-card {
    border-left: 4px solid var(--green);
    background: linear-gradient(135deg, var(--panel) 0%, var(--green-surface) 100%);
}

.next-card {
    border-left: 4px solid var(--gold);
    background: linear-gradient(135deg, var(--panel) 0%, var(--gold-surface) 100%);
}

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

.status-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 12px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge.live {
    background: var(--green-surface);
    color: var(--green);
    border: 1px solid rgba(29, 158, 117, 0.15);
    animation: pulse-live 2s ease-in-out infinite;
}

.status-badge.upcoming {
    background: var(--gold-surface);
    color: var(--gold-hover);
    border: 1px solid rgba(245, 166, 35, 0.15);
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.class-mode {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-soft);
    background: var(--bg-alt);
    padding: 2px 10px;
    border-radius: 100px;
    border: 1px solid var(--line-soft);
}

.highlight-title {
    font-family: var(--font-serif);
    font-size: clamp(15px, 1.3vw, 17px);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.highlight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--text-soft);
}

.countdown-bar {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line-soft);
}

.countdown-progress {
    height: 3px;
    background: var(--gold);
    border-radius: 100px;
    width: 0%;
    transition: width 1s linear;
    margin-bottom: 4px;
}

.current-card .countdown-progress {
    background: var(--green);
}

.next-card .countdown-progress {
    background: var(--gold);
}

.countdown-bar .countdown-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.countdown-bar .countdown-time {
    font-family: var(--font-serif);
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 600;
    color: var(--navy);
    float: right;
}

.countdown-line {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--navy);
}

.countdown-line .countdown-text {
    font-weight: 600;
    color: var(--navy);
}

.countdown-line .countdown-label .icon-inline {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 6px 10px;
    background: var(--bg-alt);
    border-radius: 4px;
    border: 1px solid var(--line-soft);
}

.info-item .info-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-soft);
}

.info-item .info-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
}

.empty-state {
    color: var(--text-soft);
    text-align: center;
    padding: 16px 0 8px;
    font-size: 13px;
}

.more-indicator {
    font-size: 11px;
    color: var(--text-soft);
    text-align: center;
    padding: 6px 0 2px;
    font-weight: 500;
    border-top: 1px dashed var(--line-soft);
    margin-top: 6px;
}

.day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-alt);
    border-radius: 4px;
    margin-bottom: 8px;
    border: 1px solid var(--line-soft);
}

.day-name {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
}

.day-count {
    font-size: 11px;
    color: var(--text-soft);
    font-weight: 500;
}

.panel-badge {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    background: var(--navy-surface);
    color: var(--navy);
    padding: 2px 12px;
    border-radius: 100px;
    margin-left: 8px;
}

.full-schedule-panel .panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.full-schedule-panel .panel-title .title-icon .icon-inline {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 14px 0;
    text-align: center;
    margin-top: auto;
    font-size: 12px;
    background: var(--bg);
    transition: var(--transition);
}

.site-footer p {
    color: var(--text-soft);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--navy);
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    margin-top: 10px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-btn:hover {
    background: var(--navy-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.25);
}

.whatsapp-btn .whatsapp-icon {
    fill: #fff;
    width: 16px;
    height: 16px;
}

/* ============================================================
   DARK MODE
============================================================ */
.dark {
    --bg: #0A1424;
    --bg-alt: #002244;
    --panel: #002244;
    --text: #E2E8F0;
    --text-soft: #94A3B8;
    --line: rgba(245, 166, 35, 0.12);
    --line-soft: rgba(255, 255, 255, 0.04);
}

.dark .logo-img {
    filter: brightness(0.9) saturate(0.8);
}

.dark .footer-logo {
    filter: brightness(0.8) saturate(0.6);
}

.dark h1, .dark h2, .dark h3, .dark .brand-mark, .dark .back-btn {
    color: #fff;
}

.dark .filter-tab.active {
    color: #fff;
}

.dark .day-group label {
    color: var(--gold);
}

.dark .clock-section,
.dark .clock-mini {
    background: #001122;
}

.dark .field-group select {
    background: rgba(255, 255, 255, 0.04);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394A3B8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dark .field-group select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.08);
}

.dark .field-group select option {
    background: #0A1424;
    color: #fff;
}

.dark .badge-tatap-muka {
    background: rgba(255, 255, 255, 0.06);
    color: #E2E8F0;
}

.dark .hero-content .hero-title {
    color: #fff;
}

.dark .hero-stats {
    background: var(--panel);
    border-color: var(--line);
}

.dark .hero-stats .stat-number {
    color: #fff;
}

.dark .form-card {
    background: var(--panel);
    border-color: var(--line);
}

.dark .form-header .form-title {
    color: #fff;
}

.dark .progress {
    background: rgba(255, 255, 255, 0.06);
}

.dark .countdown-bar .countdown-time {
    color: var(--gold);
}

.dark .countdown-line .countdown-text {
    color: var(--gold);
}

.dark .info-item .info-value {
    color: #fff;
}

.dark .current-card {
    background: linear-gradient(135deg, #0f2847 0%, #0a1a2e 100%);
}

.dark .next-card {
    background: linear-gradient(135deg, #0f2847 0%, #0a1a2e 100%);
}

.dark .day-name {
    color: var(--gold);
}

.dark .panel-badge {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-soft);
}

.dark .hero-content .eyebrow {
    background: rgba(245, 166, 35, 0.15);
    color: var(--gold);
    border: 1px solid rgba(245, 166, 35, 0.3);
}

/* ============================================================
   RESPONSIVE - Desktop & Android
============================================================ */

/* Tablet & Mobile Large */
@media (max-width: 820px) {
    .hero-modern-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-content .hero-rule {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-content .hero-desc {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
    
    .hero-stats {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
    
    .hero-form-panel {
        max-width: 460px;
        margin: 0 auto;
    }
    
    .schedule-highlight {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* Mobile */
@media (max-width: 540px) {
    .container {
        padding: 0 14px;
    }
    
    .header-inner {
        flex-wrap: wrap;
        padding: 10px 0;
        gap: 8px;
    }
    
    .brand-wrapper {
        gap: 8px;
        flex: 0 1 auto;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .brand-mark {
        font-size: 20px;
    }
    
    .header-actions {
        gap: 4px;
    }
    
    .back-btn {
        padding: 4px 10px;
        font-size: 12px;
        min-height: 32px;
    }
    
    .back-btn span {
        display: none;
    }
    
    .theme-btn {
        padding: 4px 10px;
        font-size: 12px;
        min-height: 32px;
    }
    
    .hero-content .hero-title {
        font-size: 26px;
    }
    
    .hero-stats {
        gap: 14px;
        padding: 12px 18px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-stats .stat-divider {
        display: none;
    }
    
    .hero-stats .stat-number {
        font-size: 22px;
    }
    
    .hero-stats .stat-label {
        font-size: 10px;
    }
    
    .form-card {
        padding: 16px 18px;
    }
    
    .form-header .form-title {
        font-size: 18px;
    }
    
    .form-header .form-subtitle {
        font-size: 13px;
    }
    
    .field-group select {
        font-size: 14px;
        padding: 10px 36px 10px 12px;
        min-height: 40px;
    }
    
    .select-form .action-btn {
        font-size: 14px;
        padding: 12px 18px;
        min-height: 44px;
    }
    
    .clock-mini-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .clock-display {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    #live-clock-mini {
        font-size: 20px;
    }
    
    .clock-date {
        font-size: 12px;
    }
    
    .clock-greeting {
        font-size: 13px;
    }
    
    .footer-logo {
        height: 18px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .highlight-meta {
        flex-direction: column;
        gap: 2px;
    }
    
    .highlight-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .countdown-bar .countdown-time {
        float: none;
        display: block;
        margin-top: 2px;
    }
    
    .panel {
        padding: 14px;
    }
    
    .schedule-highlight {
        gap: 12px;
    }
    
    .highlight-panel {
        padding: 12px 14px;
    }
    
    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .full-schedule-panel .panel-title {
        flex-wrap: wrap;
    }
    
    .panel-badge {
        margin-left: 0;
    }
}

/* Mobile Very Small */
@media (max-width: 380px) {
    .container {
        padding: 0 10px;
    }
    
    .logo-img {
        height: 24px;
    }
    
    .brand-mark {
        font-size: 18px;
    }
    
    .hero-content .hero-title {
        font-size: 22px;
    }
    
    .hero-stats {
        gap: 10px;
        padding: 10px 12px;
    }
    
    .hero-stats .stat-number {
        font-size: 18px;
    }
    
    .hero-stats .stat-label {
        font-size: 9px;
    }
    
    #live-clock-mini {
        font-size: 18px;
    }
    
    .form-card {
        padding: 14px;
    }
}

/* ============================================================
   SCROLLBAR
============================================================ */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--navy);
    border-radius: 100px;
}

.dark ::-webkit-scrollbar-track {
    background: #001122;
}

.dark ::-webkit-scrollbar-thumb {
    background: var(--gold);
}