/* ══════════════════════════════════════
   🎨 CSS VARIABLES
   ══════════════════════════════════════ */
:root {
    --color-red: #E85D5D;
    --color-teal: #2FA39C;
    --color-orange: #F5A623;
    --color-green: #9FBE3E;
    --primary: #2FA39C;
    --primary-light: #3DB5AE;
    --primary-dark: #258881;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --dark-bg: #0f1419;
    --dark-card: #1a1f2e;
    --dark-elevated: #242938;
    --dark-border: #2d3748;
    --dark-text: #f1f5f9;
    --dark-text-muted: #94a3b8;
    --bg-body: var(--gray-50);
    --bg-card: var(--white);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-tertiary: var(--gray-500);
    --shadow-sm: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-color: 0 8px 24px rgba(47,163,156,0.2);
    --transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
    --transition-slow: all 0.3s cubic-bezier(0.4,0,0.2,1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ══════════════════════════════════════
   🔧 BASE & RESET
   ══════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body.dark-mode {
    background: var(--dark-bg);
    color: var(--dark-text);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(232,93,93,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(47,163,156,0.05) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(245,166,35,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(159,190,62,0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body.dark-mode::before {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(232,93,93,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(47,163,156,0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(245,166,35,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(159,190,62,0.08) 0%, transparent 50%);
}

/* ══════════════════════════════════════
   🌙 FLOATING CRESCENT
   ══════════════════════════════════════ */
.floating-crescent {
    position: fixed;
    top: 8%;
    right: 5%;
    font-size: 7rem;
    background: linear-gradient(135deg, var(--color-teal), var(--color-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ══════════════════════════════════════
   🏔 HERO
   ══════════════════════════════════════ */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-teal) 50%, var(--color-orange) 100%);
    padding: 3rem 1.5rem 10rem;  /* ← padding bawah ditambah dari 6rem → 8rem */
    text-align: center;
    color: white;
    overflow: hidden;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--bg-body);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

body.dark-mode .hero::after {
    background: var(--dark-bg);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
}

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

.hero-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: pulse 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.05rem;
    opacity: 0.95;
    max-width: 500px;
    margin: 0 auto;
}

/* ══════════════════════════════════════
   🧭 NAV & THEME TOGGLE
   ══════════════════════════════════════ */
nav {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
}

.theme-toggle {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* ══════════════════════════════════════
   📦 MAIN LAYOUT
   ══════════════════════════════════════ */
main {
    flex: 1;
    max-width: 1200px;
    width: 94%;
    margin: -3.5rem auto 3rem;
    position: relative;
    z-index: 5;
}

/* ══════════════════════════════════════
   🔍 SEARCH CARD
   ══════════════════════════════════════ */
.search-card {
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    margin-bottom: 2.5rem;
    transition: var(--transition-slow);
    animation: slideUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-red), var(--color-teal), var(--color-orange), var(--color-green));
}

body.dark-mode .search-card {
    background: var(--dark-card);
    border-color: var(--dark-border);
}

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

/* ══════════════════════════════════════
   📝 FORM ELEMENTS
   ══════════════════════════════════════ */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    align-items: end;
}

.search-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark-mode .input-group label {
    color: var(--dark-text);
}

.input-group label i {
    color: var(--primary);
    font-size: 0.9rem;
}

.select-wrapper {
    position: relative;
}

.select-wrapper i.icon-left {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    pointer-events: none;
}

select {
    width: 100%;
    padding: 0.875rem 2.75rem;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

body.dark-mode select {
    background: var(--dark-elevated);
    color: var(--dark-text);
    border-color: var(--dark-border);
}

select:hover {
    border-color: var(--gray-300);
}

body.dark-mode select:hover {
    border-color: var(--gray-700);
}

select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47,163,156,0.1);
}

.select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    font-size: 0.75rem;
}

body.dark-mode .select-wrapper::after {
    color: var(--dark-text-muted);
}

/* ══════════════════════════════════════
   🔘 BUTTONS
   ══════════════════════════════════════ */
button.btn-search {
    background: linear-gradient(135deg, var(--color-teal), var(--color-green));
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    box-shadow: var(--shadow-md);
    flex: 1;
}

button.btn-search:hover {
    background: linear-gradient(135deg, var(--color-green), var(--color-teal));
    box-shadow: var(--shadow-color);
    transform: translateY(-2px);
}

button.btn-search:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ══════════════════════════════════════
   ⏳ LOADER
   ══════════════════════════════════════ */
.loader-container {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 4rem 0;
    gap: 1.5rem;
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

body.dark-mode .loader {
    border-color: var(--dark-border);
    border-top-color: var(--primary-light);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-container p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

body.dark-mode .loader-container p {
    color: var(--dark-text-muted);
}

/* ══════════════════════════════════════
   📊 RESULTS HEADER
   ══════════════════════════════════════ */
.results-header {
    display: none;
    text-align: center;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.5s ease-out;
}

.results-header h2 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--color-teal), var(--color-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.results-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

body.dark-mode .results-header p {
    color: var(--dark-text-muted);
}

/* ══════════════════════════════════════
   🎠 SLIDER
   ══════════════════════════════════════ */
.slider-wrapper {
    display: none;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.5s ease-out;
}

.slider-wrapper.active {
    display: flex;
}

.slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 580px;
    margin-bottom: 1.25rem;
}

.slider-nav-info {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.slider-nav-day {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-mode .slider-nav-day {
    color: var(--dark-text);
}

.slider-nav-day .today-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--color-orange);
    border-radius: 50%;
    margin-right: 6px;
    animation: pulseDot 1.5s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.slider-nav-date {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    margin-top: 2px;
}

body.dark-mode .slider-nav-date {
    color: var(--dark-text-muted);
}

.slider-arrow {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body.dark-mode .slider-arrow {
    background: var(--dark-card);
    border-color: var(--dark-border);
    color: var(--dark-text-muted);
}

.slider-arrow:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-color);
    transform: scale(1.08);
}

.slider-arrow:active {
    transform: scale(0.94);
}

.slider-arrow:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

.slider-viewport {
    width: 100%;
    max-width: 580px;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.slider-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25,0.8,0.25,1);
    will-change: transform;
}

.slider-slide {
    min-width: 100%;
    flex-shrink: 0;
}

/* ══════════════════════════════════════
   🃏 DAY CARD
   ══════════════════════════════════════ */
.day-card {
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition-slow);
}

body.dark-mode .day-card {
    background: var(--dark-card);
    border-color: var(--dark-border);
}

.day-card.today {
    border: 2px solid var(--color-orange);
    box-shadow: 0 8px 32px rgba(245,166,35,0.2);
}

.card-header {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-mode .card-header {
    background: linear-gradient(135deg, var(--dark-elevated) 0%, var(--dark-card) 100%);
    border-color: var(--dark-border);
}

.day-card.today .card-header {
    background: linear-gradient(135deg, var(--color-orange), var(--color-red));
    color: white;
    border-bottom: none;
}

.date-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.date-number {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.day-card:not(.today) .date-number {
    color: var(--text-primary);
}

body.dark-mode .day-card:not(.today) .date-number {
    color: var(--dark-text);
}

.date-number i {
    font-size: 1rem;
    opacity: 0.7;
}

.date-gregorian {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

body.dark-mode .date-gregorian {
    color: var(--dark-text-muted);
}

.day-card.today .date-gregorian {
    color: rgba(255,255,255,0.9);
}

.badge-today {
    background: white;
    color: var(--color-orange);
    font-size: 0.72rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
}

/* ══════════════════════════════════════
   ⏰ TIMES GRID
   ══════════════════════════════════════ */
.times-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.time-slot {
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

body.dark-mode .time-slot {
    border-color: var(--dark-border);
}

.time-slot:nth-last-child(1),
.time-slot:nth-last-child(2) {
    border-bottom: none;
}

.time-slot:nth-child(odd) {
    border-right: 1px solid var(--gray-100);
}

body.dark-mode .time-slot:nth-child(odd) {
    border-color: var(--dark-border);
}

.time-slot:hover {
    background: var(--gray-50);
}

body.dark-mode .time-slot:hover {
    background: var(--dark-elevated);
}

.time-slot.highlight {
    background: linear-gradient(135deg, rgba(47,163,156,0.06), rgba(159,190,62,0.06));
}

body.dark-mode .time-slot.highlight {
    background: linear-gradient(135deg, rgba(47,163,156,0.1), rgba(159,190,62,0.1));
}

.time-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.time-slot:nth-child(1) .time-icon { background: linear-gradient(135deg, var(--color-teal), var(--color-green)); }
.time-slot:nth-child(2) .time-icon { background: linear-gradient(135deg, var(--color-green), var(--color-orange)); }
.time-slot:nth-child(3) .time-icon { background: linear-gradient(135deg, var(--color-orange), var(--color-red)); }
.time-slot:nth-child(4) .time-icon { background: linear-gradient(135deg, var(--color-red), var(--color-teal)); }
.time-slot:nth-child(5) .time-icon { background: linear-gradient(135deg, var(--color-teal), var(--color-orange)); }
.time-slot:nth-child(6) .time-icon { background: linear-gradient(135deg, var(--color-orange), var(--color-green)); }
.time-slot:nth-child(7) .time-icon { background: linear-gradient(135deg, var(--color-green), var(--color-teal)); }
.time-slot:nth-child(8) .time-icon { background: linear-gradient(135deg, var(--color-red), var(--color-orange)); }

.time-slot.highlight .time-icon {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.time-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.time-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    font-weight: 700;
}

body.dark-mode .time-label {
    color: var(--dark-text-muted);
}

.time-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

body.dark-mode .time-value {
    color: var(--dark-text);
}

.time-slot.highlight .time-label {
    color: var(--primary);
}

.time-slot.highlight .time-value {
    color: var(--primary-dark);
}

body.dark-mode .time-slot.highlight .time-label,
body.dark-mode .time-slot.highlight .time-value {
    color: var(--primary-light);
}

/* ══════════════════════════════════════
   🔘 SLIDER DOTS
   ══════════════════════════════════════ */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 1.25rem;
    flex-wrap: wrap;
    max-width: 420px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

body.dark-mode .slider-dot {
    background: var(--dark-border);
}

.slider-dot:hover {
    background: var(--gray-400);
    transform: scale(1.4);
}

.slider-dot.active {
    width: 26px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--color-teal), var(--color-green));
}

.slider-dot.is-today {
    background: var(--color-orange);
}

.slider-dot.is-today.active {
    background: linear-gradient(90deg, var(--color-orange), var(--color-red));
}

/* ══════════════════════════════════════
   📍 TODAY JUMP BUTTON
   ══════════════════════════════════════ */
.today-jump {
    display: none;
    justify-content: center;
    margin-top: 1.25rem;
}

.today-jump.active {
    display: flex;
}

.btn-today {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: white;
    background: linear-gradient(135deg, var(--color-orange), var(--color-red));
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(245,166,35,0.3);
    transition: var(--transition);
}

.btn-today:hover {
    box-shadow: 0 6px 24px rgba(245,166,35,0.4);
    transform: translateY(-2px);
}

.btn-today:active {
    transform: translateY(0);
}

/* ══════════════════════════════════════
   ⌨️ KEYBOARD SHORTCUTS
   ══════════════════════════════════════ */
.slider-shortcuts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

body.dark-mode .slider-shortcuts {
    color: var(--dark-text-muted);
}

.kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    color: var(--text-secondary);
}

body.dark-mode .kbd {
    background: var(--dark-elevated);
    border-color: var(--dark-border);
    color: var(--dark-text-muted);
}

/* ══════════════════════════════════════
   ❌ ERROR MESSAGE
   ══════════════════════════════════════ */
.error-msg {
    display: none;
    background: #fef2f2;
    color: #dc2626;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-red);
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

body.dark-mode .error-msg {
    background: rgba(232,93,93,0.1);
    color: #fca5a5;
}

/* ══════════════════════════════════════
   🦶 FOOTER
   ══════════════════════════════════════ */
footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: auto;
}

body.dark-mode footer {
    background: var(--dark-card);
    border-color: var(--dark-border);
    color: var(--dark-text-muted);
}

footer strong {
    background: linear-gradient(135deg, var(--color-teal), var(--color-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ══════════════════════════════════════
   📱 RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 768px) {
    .hero { padding: 2.5rem 1rem 5rem; }
    .hero h1 { font-size: 2rem; }
    .search-card { padding: 1.5rem; }
    .form-grid { grid-template-columns: 1fr; }
    .results-header h2 { font-size: 1.5rem; }
    .floating-crescent { font-size: 5rem; top: 5%; right: 2%; }
}

@media (max-width: 560px) {
    .slider-viewport,
    .day-card { border-radius: var(--radius-lg); }
    .slider-arrow { width: 44px; height: 44px; font-size: 1rem; }
    .slider-nav-day { font-size: 0.92rem; }
    .card-header { padding: 1.25rem; }
    .date-number { font-size: 1.1rem; }
    .times-grid { grid-template-columns: 1fr; }
    .time-slot { padding: 0.9rem 1.25rem; }
    .time-slot:nth-child(odd) { border-right: none; }
    .time-slot:not(:last-child) { border-bottom: 1px solid var(--gray-100); }
    body.dark-mode .time-slot:not(:last-child) { border-bottom-color: var(--dark-border); }
    .time-icon { width: 38px; height: 38px; font-size: 0.95rem; }
    .time-value { font-size: 1.1rem; }
    .slider-shortcuts { display: none; }
}

@media (max-width: 480px) {
    .hero { padding: 2rem 1rem 4rem; }
    .hero h1 { font-size: 1.75rem; }
    .hero-icon { font-size: 2.5rem; }
    nav { top: 1rem; right: 1rem; }
    .theme-toggle { width: 44px; height: 44px; }
    .slider-arrow { width: 40px; height: 40px; }
    .slider-nav { gap: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .slider-track { transition: none !important; }
}

/* ══════════════════════════════════════
   ♿ ACCESSIBILITY
   ══════════════════════════════════════ */
.slider-arrow:focus-visible,
.slider-dot:focus-visible,
.btn-today:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}