/* === Custom CSS for Equinox Celestial Clock === */

:root {
    /* Color Palette - Dark Mode Default */
    --bg-base: #0a0b10;
    --card-bg: rgba(20, 22, 33, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --primary: #8b5cf6; /* Celestial Violet */
    --primary-glow: rgba(139, 92, 246, 0.4);
    --accent: #06b6d4; /* Aurora Teal */
    --accent-glow: rgba(6, 182, 212, 0.3);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    /* Font Configurations */
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Effects */
    --blur-intensity: 20px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
    /* Light Mode Settings */
    --bg-base: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.65);
    --card-border: rgba(15, 23, 42, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --primary: #7c3aed;
    --primary-glow: rgba(124, 58, 237, 0.2);
    --accent: #0891b2;
    --accent-glow: rgba(8, 145, 178, 0.2);
    --shadow-premium: 0 20px 40px -15px rgba(148, 163, 184, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: var(--transition-smooth);
}

/* Background Gradients */
.bg-gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.35;
    transition: var(--transition-smooth);
}

.sphere-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary) 0%, rgba(0,0,0,0) 70%);
    top: -100px;
    left: -100px;
}

.sphere-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent) 0%, rgba(0,0,0,0) 70%);
    bottom: -150px;
    right: -100px;
}

.sphere-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ec4899 0%, rgba(0,0,0,0) 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
}

[data-theme="light"] .bg-gradient-sphere {
    opacity: 0.18;
}

/* Container */
.app-container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}

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

.logo-icon {
    font-size: 1.75rem;
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
    animation: rotateLogo 20s linear infinite;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#current-timezone-display {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--card-bg);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--card-border);
}

.btn-icon {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.btn-icon:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Dashboard Layout Restructure */
.dashboard-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.layout-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.row-3 {
    grid-template-columns: 1fr;
}

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

/* Cards Base */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    overflow: hidden;
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0));
    pointer-events: none;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

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

.card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
}

.icon-header {
    color: var(--primary);
}

.card-subtitle {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Clock Card Specifics */
.clock-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    gap: 2rem;
}

/* Analog Clock */
.analog-clock-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.analog-clock {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(10, 11, 16, 0.6);
    border: 4px solid var(--card-border);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(139, 92, 246, 0.15);
    position: relative;
}

.clock-face {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Clock Ticks */
.hour-ticks {
    width: 100%;
    height: 100%;
    position: absolute;
}

.tick {
    position: absolute;
    width: 2px;
    height: 8px;
    background: var(--text-muted);
    left: 50%;
    transform-origin: 50% 100px;
    margin-left: -1px;
}

.tick.major {
    width: 3px;
    height: 12px;
    background: var(--accent);
    box-shadow: 0 0 5px var(--accent-glow);
}

/* Clock Hands */
.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: 50% 100%;
    border-radius: 10px;
    transition: transform 0.05s cubic-bezier(0.4, 2.08, 0.55, 0.44);
}

.hour-hand {
    width: 5px;
    height: 55px;
    background: var(--text-primary);
    margin-left: -2.5px;
    z-index: 3;
}

.minute-hand {
    width: 3px;
    height: 75px;
    background: var(--text-secondary);
    margin-left: -1.5px;
    z-index: 4;
}

.second-hand {
    width: 1.5px;
    height: 85px;
    background: var(--accent);
    margin-left: -0.75px;
    z-index: 5;
    /* Continuous sweep hand transition if desired, or standard ticked */
}

.center-nut {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border: 2px solid var(--text-primary);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Digital Display */
.digital-clock-container {
    text-align: center;
}

.time-display {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    display: inline-block;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.period-display {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    display: inline-block;
    vertical-align: super;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

.date-display {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Season Progress Card */
.progress-container {
    margin-top: 1rem;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    border: 1px solid var(--card-border);
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    box-shadow: 0 0 15px var(--accent-glow);
    transition: width 1s ease-in-out;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.season-countdown {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

/* Multiverse Time Grid */
.world-clocks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 600px) {
    .world-clocks-grid {
        grid-template-columns: 1fr;
    }
}

.world-clock-box {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.world-clock-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-glow);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.world-clock-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    opacity: 0.8;
}

.world-clock-box.day-mode::before {
    background: var(--warning);
}

.world-clock-box.night-mode::before {
    background: var(--primary);
}

.wc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wc-city {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.wc-icon {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.world-clock-box.day-mode .wc-icon {
    color: var(--warning);
    text-shadow: 0 0 10px var(--warning);
}

.world-clock-box.night-mode .wc-icon {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

.wc-time {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.wc-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.wc-date {
    font-weight: 600;
}

.wc-offset {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-muted);
}

/* Buttons */
.btn-primary, .btn-success, .btn-secondary, .btn-danger {
    border: none;
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-success {
    background: var(--success);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}
.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}
.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
    filter: brightness(1.1);
}

/* Tools Card (Stopwatch & Timer) */
.tools-tabs {
    display: flex;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    padding-bottom: 0.75rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.tab-btn.active {
    color: var(--text-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.tab-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.tab-content.hidden {
    display: none;
}

.tool-display {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.tool-controls {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}

/* Stopwatch Laps */
.lap-list {
    width: 100%;
    max-height: 120px;
    overflow-y: auto;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lap-list::-webkit-scrollbar {
    width: 5px;
}
.lap-list::-webkit-scrollbar-track {
    background: transparent;
}
.lap-list::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 4px;
}

.lap-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-size: 0.85rem;
}

.lap-number {
    color: var(--text-muted);
    font-weight: 600;
}

.lap-time {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent);
}

/* Timer Setup Input */
.timer-setup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.timer-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timer-input-group input {
    width: 60px;
    height: 50px;
    background: var(--bg-base);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: var(--transition-smooth);
}

.timer-input-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.timer-input-group span {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 1rem;
}

/* Footer styling */
.app-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

.text-glow-green {
    color: var(--success);
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* Animations */
@keyframes rotateLogo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Multiverse Calendars */
.calendars-card {
    display: flex;
    flex-direction: column;
}

.calendars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

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

.calendar-box {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: var(--transition-smooth);
}

.calendar-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary-glow);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cal-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cal-date {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.cal-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* === Equinox Calendar Styles === */
.equinox-calendar-card {
    display: flex;
    flex-direction: column;
}

.ec-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.ec-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid var(--card-border);
    align-items: center;
}

.ec-month-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
    text-transform: uppercase;
}

.ec-date-display {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.ec-calendar-grid-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ec-weekdays-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.5rem;
}

.ec-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.ec-day {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    border-radius: 50%;
    cursor: default;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    transition: var(--transition-smooth);
}

.ec-day:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: scale(1.05);
}

.ec-day.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 0 15px var(--accent-glow);
}

.ec-day.special-day {
    grid-column: span 7;
    aspect-ratio: auto;
    height: 38px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ec-day.null-day {
    border-color: var(--warning);
    color: var(--warning);
    background: rgba(245, 158, 11, 0.03);
}

.ec-day.null-day.active {
    background: linear-gradient(135deg, var(--warning) 0%, #f97316 100%);
    color: #fff;
    border: none;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.ec-day.leap-day {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(139, 92, 246, 0.03);
}

.ec-day.leap-day.active {
    background: linear-gradient(135deg, var(--primary) 0%, #a78bfa 100%);
    color: #fff;
    border: none;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* === Celebrations Styles === */
.celebrations-card-full {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.celebrations-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: rgba(10, 11, 16, 0.4);
}

.celebrations-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-align: left;
}

.celebrations-table th {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-bottom: 1px solid var(--card-border);
}

.celebrations-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-primary);
    vertical-align: middle;
}

.celebrations-table tr:last-child td {
    border-bottom: none;
}

.celebrations-table tr {
    transition: var(--transition-smooth);
}

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

.celebrations-table .row-today {
    background: rgba(139, 92, 246, 0.08) !important;
    box-shadow: inset 0 0 15px rgba(139, 92, 246, 0.1);
}

.cel-title {
    font-weight: 700;
    color: var(--text-primary);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.celestial-origin {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.christian-origin {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.islamic-origin {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hindu-origin {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.balinese-origin {
    background: rgba(217, 119, 6, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.today-badge {
    background: linear-gradient(135deg, var(--warning), #f97316);
    color: #fff;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    margin-left: 0.5rem;
    vertical-align: middle;
    letter-spacing: 0.05em;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

/* === Mobile Responsive Overrides === */
@media (max-width: 600px) {
    .app-container {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .app-header {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }
    
    .system-status {
        width: 100%;
        justify-content: space-between;
    }
    
    .time-display {
        font-size: 2.75rem;
    }
    
    .period-display {
        font-size: 1rem;
    }
    
    .glass-card {
        padding: 1.25rem;
        border-radius: 20px;
    }
    
    .ec-month-title {
        font-size: 1.5rem;
    }
    
    .ec-days-grid {
        gap: 0.35rem;
    }
    
    .ec-day {
        font-size: 0.8rem;
    }
    
    .ec-day.special-day {
        height: 34px;
        font-size: 0.75rem;
    }
    
    .celebrations-table th, .celebrations-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .badge {
        padding: 0.15rem 0.4rem;
        font-size: 0.65rem;
    }
}

/* === Know Thyself Styles === */
.know-thyself-card-full {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.kt-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

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

.kt-input-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-secondary);
}

.kt-input-wrapper {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.kt-input-date {
    background: var(--bg-base);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
    width: 250px;
    height: 42px;
}

.kt-input-date:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.kt-result {
    width: 100%;
}

.kt-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .kt-result-grid {
        grid-template-columns: 1fr;
    }
    .kt-input-date {
        width: 100%;
    }
    .kt-input-wrapper {
        width: 100%;
    }
    .kt-input-wrapper button {
        width: 100%;
    }
}

.kt-result-box {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.kt-result-box:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--accent-glow);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.kt-patron-box {
    grid-column: span 2;
    background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.05), rgba(0, 0, 0, 0));
}

@media (max-width: 768px) {
    .kt-patron-box {
        grid-column: span 1;
    }
}

.kt-result-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kt-result-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-primary);
}

.kt-result-value.patron-name {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
    font-size: 1.5rem;
}

.patron-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 0.25rem;
}

