/* Cuaca Hari Ini: glassmorphism weather UI (plain CSS, no build step) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #fff; overflow-x: hidden; transition: background 1s ease; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
img { max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
.ico { flex-shrink: 0; vertical-align: middle; }
[hidden] { display: none !important; }

/* Ambient backgrounds by weather */
.bg-gradient-clear-day { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 40%, #60a5fa 70%, #93c5fd 100%); }
.bg-gradient-clear-night { background: linear-gradient(135deg, #090d16 0%, #0f172a 40%, #1e1b4b 70%, #311042 100%); }
.bg-gradient-rain { background: linear-gradient(135deg, #1e293b 0%, #334155 40%, #475569 70%, #1e3a8a 100%); }
.bg-gradient-snow { background: linear-gradient(135deg, #334155 0%, #475569 40%, #64748b 70%, #94a3b8 100%); }
.bg-gradient-thunderstorm { background: linear-gradient(135deg, #0f172a 0%, #1a103c 40%, #2e1065 70%, #1e1b4b 100%); }
.bg-gradient-cloudy { background: linear-gradient(135deg, #1e293b 0%, #3b82f6 50%, #64748b 100%); }
body.weather { background-attachment: fixed; }

#weather-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* Glass */
.glass-panel { background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18); border-radius: 24px; }
.glass-card { background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.12); transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s; }
.glass-card:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.25); }
a.glass-card:hover, button.glass-card:hover, .hour:hover, .day:hover, .metric:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.25); }
.dropdown-panel { background: rgba(15, 23, 42, 0.94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); border-radius: 16px; }

/* Colors */
.muted { color: rgba(255, 255, 255, 0.65); }
.small { font-size: 0.75rem; }
.strong { font-weight: 600; }
.text-sky, .ico-sky { color: #7dd3fc; }
.text-amber, .ico-amber { color: #fcd34d; }
.text-green, .ico-green { color: #6ee7b7; }
.ico-blue { color: #93c5fd; }
.ico-indigo { color: #a5b4fc; }
.c-amber-400 { color: #fbbf24; } .c-rose-400 { color: #fb7185; } .c-sky-300 { color: #7dd3fc; } .c-rose-300 { color: #fda4af; } .c-emerald-400 { color: #34d399; }

/* Layout */
.page { position: relative; z-index: 10; display: flex; flex-direction: column; min-height: 100vh; max-width: 1600px; margin: 0 auto; padding: 24px 32px; }
.grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px; margin: 8px 0; }
.col-main, .col-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.below { display: grid; gap: 24px; margin-top: 24px; }
.card { padding: 24px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head h2, .card-title { display: flex; align-items: center; gap: 8px; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.card-title { margin-bottom: 14px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.75rem; color: rgba(255, 255, 255, 0.75); }
.card-foot span { display: inline-flex; align-items: center; gap: 6px; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 52px; height: 52px; display: grid; place-items: center; flex-shrink: 0; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-title { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
.brand-sub { display: block; font-size: 0.7rem; color: rgba(255, 255, 255, 0.7); font-weight: 300; letter-spacing: 0.1em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 16px; font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
.count { background: rgba(255, 255, 255, 0.2); padding: 2px 7px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.seg { display: inline-flex; padding: 4px; border-radius: 16px; border-color: rgba(255, 255, 255, 0.2); }
.seg button { padding: 6px 12px; border-radius: 12px; font-size: 0.875rem; font-weight: 600; color: rgba(255, 255, 255, 0.7); transition: all 0.3s; }
.seg button:hover { color: #fff; }
.seg button.on { background: rgba(255, 255, 255, 0.3); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: rgba(255, 255, 255, 0.9); }
.only-mobile { display: none; }

/* Search */
.search { position: relative; flex: 1; max-width: 520px; display: flex; align-items: center; }
.search-ico { position: absolute; left: 16px; z-index: 1; color: rgba(255, 255, 255, 0.6); pointer-events: none; }
.search input { width: 100%; padding: 12px 40px 12px 48px; border-radius: 16px; font: inherit; font-size: 1rem; color: #fff; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06); transition: all 0.2s; }
.search input::placeholder { color: rgba(255, 255, 255, 0.5); }
.search input:focus { outline: none; background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.4); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { position: absolute; right: 10px; padding: 4px; border-radius: 50%; color: rgba(255, 255, 255, 0.6); display: grid; }
.search-clear:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50; padding: 8px; max-height: 300px; overflow-y: auto; }
.sr-title { display: flex; align-items: center; gap: 4px; padding: 4px 12px 8px; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.5); }
.sr-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px; border-radius: 12px; font-size: 0.875rem; font-weight: 500; text-align: left; transition: background 0.15s; }
.sr-item:hover, .sr-item.active { background: rgba(255, 255, 255, 0.2); }
.sr-item small { color: rgba(255, 255, 255, 0.7); font-weight: 400; }
.sr-item .ico { color: rgba(255, 255, 255, 0.5); }
.sr-empty { padding: 16px; text-align: center; font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); }

/* Popular chips */
.chips { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; font-size: 0.875rem; font-weight: 500; }
.chips::-webkit-scrollbar { display: none; }
.chips-label { display: inline-flex; align-items: center; gap: 4px; margin-right: 4px; white-space: nowrap; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.55); }
.chip { padding: 6px 14px; border-radius: 12px; white-space: nowrap; color: rgba(255, 255, 255, 0.85); }
.chip.on { background: rgba(255, 255, 255, 0.3); color: #fff; font-weight: 600; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 32px; min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 24px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35); }
.hero-glow { position: absolute; top: -96px; right: -96px; width: 288px; height: 288px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; filter: blur(48px); pointer-events: none; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; position: relative; z-index: 1; }
.hero-city { display: flex; align-items: center; gap: 8px; }
.hero h1 { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.star-btn { display: grid; place-items: center; padding: 6px; border-radius: 50%; color: rgba(255, 255, 255, 0.6); }
.star-btn:hover, .star-btn.on { color: #fcd34d; }
.star-btn.on svg { fill: #fcd34d; }
.hero-date { margin-top: 4px; color: rgba(255, 255, 255, 0.8); font-weight: 300; }
.hero-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.badge-aqi { color: #a7f3d0; border-color: rgba(52, 211, 153, 0.3); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-green { background: #34d399; animation: pulse 2s infinite; }
.dot-sky { background: #38bdf8; }
.ping { animation: ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }
@keyframes ping { 75%, 100% { transform: scale(1.8); opacity: 0; } }
.hero-mid { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 24px 0; position: relative; z-index: 1; }
.hero-now { display: flex; align-items: center; gap: 16px; }
.hero-icon { width: 128px; height: 128px; color: #fcd34d; filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2)); }
.hero-icon svg { width: 100%; height: 100%; stroke-width: 1.5; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero-temp { display: flex; align-items: baseline; font-size: 6rem; font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.hero-unit { font-size: 1.875rem; font-weight: 300; color: rgba(255, 255, 255, 0.8); margin-left: 4px; letter-spacing: 0; }
.hero-cond { font-size: 1.5rem; font-weight: 500; color: rgba(255, 255, 255, 0.9); margin-top: 4px; }
.hero-facts { display: grid; gap: 10px; padding: 16px; border-radius: 16px; min-width: 200px; border-color: rgba(255, 255, 255, 0.15); }
.hero-facts div { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.hero-facts div + div { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 10px; }
.hero-facts span { font-size: 0.75rem; color: rgba(255, 255, 255, 0.7); }
.hero-facts strong { font-size: 0.875rem; }
.insight-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); text-align: left; position: relative; z-index: 1; }
.insight-ico { display: grid; place-items: center; padding: 8px; border-radius: 12px; background: linear-gradient(45deg, #fbbf24, #6366f1); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); flex-shrink: 0; }
.insight-ico.big { padding: 12px; border-radius: 16px; }
.insight-text { flex: 1; font-size: 0.875rem; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.insight-more { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 600; color: #bae6fd; white-space: nowrap; }

/* Hourly */
.chart-box { position: relative; height: 128px; margin-bottom: 16px; }
.hour-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.hour { min-width: 72px; padding: 12px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; scroll-snap-align: start; border-color: rgba(255, 255, 255, 0.1); }
.hour strong { font-size: 0.875rem; }
.hour-rain { font-size: 0.65rem; color: #7dd3fc; }

/* Metrics */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.metric { height: 144px; padding: 16px; border-radius: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.metric-head { display: flex; justify-content: space-between; align-items: center; color: rgba(255, 255, 255, 0.7); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.big { font-size: 1.875rem; font-weight: 900; }
.metric-foot { font-size: 0.7rem; color: rgba(255, 255, 255, 0.7); }
.metric-row { display: flex; justify-content: space-between; align-items: center; }
.compass { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); display: grid; place-items: center; }
.compass span { position: absolute; top: 2px; font-size: 0.55rem; font-weight: 700; color: rgba(255, 255, 255, 0.5); }
.compass i { width: 4px; height: 32px; border-radius: 999px; background: linear-gradient(#f43f5e, rgba(255, 255, 255, 0.4)); transition: transform 0.7s; }
.tag-amber { margin-left: 6px; font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(245, 158, 11, 0.2); color: #fde68a; border: 1px solid rgba(251, 191, 36, 0.3); }
.bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #34d399, #fbbf24, #e11d48); }
.sun-row { display: flex; justify-content: space-between; font-size: 0.75rem; }
.sun-row div { display: flex; flex-direction: column; gap: 2px; }
.sun-row strong { font-size: 0.875rem; }
.sun-row .right { text-align: right; }

/* Daily */
.days { display: flex; flex-direction: column; gap: 12px; }
.day { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 16px; border-color: rgba(255, 255, 255, 0.1); }
.day-name { width: 64px; font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.day-ico { display: flex; align-items: center; gap: 8px; width: 96px; }
.day-range { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 180px; }
.day-range > span:first-child, .day-range strong { width: 32px; }
.day-range > span:first-child { text-align: right; }
.range { position: relative; flex: 1; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.range i { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #38bdf8, #fbbf24); }

/* Radar */
.radar-card { margin-top: 0; }
.radar-box { position: relative; height: 416px; border-radius: 16px; overflow: hidden; border-color: rgba(255, 255, 255, 0.2); }
#radar { position: absolute; inset: 0; background: #0f172a; }
.radar-tags { position: absolute; left: 8px; bottom: 8px; z-index: 500; display: flex; gap: 4px; pointer-events: none; }
.radar-city, .radar-rain { font-size: 0.65rem; padding: 2px 8px; border-radius: 6px; }
.radar-city { background: rgba(15, 23, 42, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); }
.radar-rain { background: rgba(14, 165, 233, 0.8); font-weight: 500; }
.radar-play { position: absolute; right: 8px; bottom: 8px; z-index: 500; display: grid; place-items: center; padding: 8px; border-radius: 50%; background: rgba(15, 23, 42, 0.8); border: 1px solid rgba(255, 255, 255, 0.15); }
.radar-play .ico-pause, .radar-play.playing .ico-play { display: none; }
.radar-play.playing .ico-pause { display: block; }
.radar-error { position: absolute; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.75rem; background: rgba(15, 23, 42, 0.7); }
.leaflet-container { background: #0f172a; font-family: inherit; }
.leaflet-control-attribution { background: rgba(15, 23, 42, 0.7) !important; color: rgba(255, 255, 255, 0.6) !important; font-size: 9px !important; }
.leaflet-control-zoom a { background: rgba(15, 23, 42, 0.85) !important; color: #fff !important; border-color: rgba(255, 255, 255, 0.15) !important; }
.city-marker { width: 16px; height: 16px; border-radius: 50%; background: #0ea5e9; border: 2px solid rgba(255, 255, 255, 0.85); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }

/* Summary & other cities */
.summary h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 10px; }
.summary p { color: rgba(255, 255, 255, 0.85); line-height: 1.7; }
.summary p + p { margin-top: 6px; }
.city-links { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.875rem; }
.error-card { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 48px 24px; }

/* Footer */
.site-footer { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.75rem; color: rgba(255, 255, 255, 0.65); }
.footer-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-links button { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
.footer-links button:hover { color: #fff; }
.footer-tag { color: rgba(255, 255, 255, 0.85); }

/* Modal, drawers */
.modal, .drawer { position: fixed; inset: 0; z-index: 60; }
.modal { display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop, .drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); animation: fade 0.25s; }
@keyframes fade { from { opacity: 0; } }
.modal-box { position: relative; width: 100%; max-width: 512px; padding: 24px; border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); animation: pop 0.25s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(8px); } }
.modal-x { position: absolute; top: 16px; right: 16px; border-radius: 50%; }
.modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.modal-head h3 { font-size: 1.25rem; font-weight: 700; }
.advice { padding: 16px; border-radius: 16px; margin-bottom: 14px; border-color: rgba(255, 255, 255, 0.15); }
.advice h4 { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 700; margin-bottom: 6px; }
.advice p { font-size: 0.875rem; color: rgba(255, 255, 255, 0.9); line-height: 1.6; }
.activity { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; font-size: 0.75rem; }
.activity > div { padding: 8px; border-radius: 12px; display: flex; flex-direction: column; gap: 2px; }
.wide-btn { display: block; width: 100%; margin-top: 8px; padding: 12px; border-radius: 16px; font-weight: 600; font-size: 0.875rem; text-align: center; }
.drawer-panel { position: absolute; top: 0; bottom: 0; width: 100%; max-width: 384px; padding: 24px; border-radius: 0; display: flex; flex-direction: column; gap: 16px; animation: slide-r 0.3s ease-out; }
.drawer-right .drawer-panel { right: 0; border-left: 1px solid rgba(255, 255, 255, 0.2); }
.drawer-left .drawer-panel { left: 0; max-width: 320px; border-right: 1px solid rgba(255, 255, 255, 0.2); animation-name: slide-l; }
@keyframes slide-r { from { transform: translateX(100%); } }
@keyframes slide-l { from { transform: translateX(-100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.drawer-head h3 { display: flex; align-items: center; gap: 8px; font-size: 1.125rem; font-weight: 700; }
.drawer-head .icon-btn { border-radius: 50%; }
.fav-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.fav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 16px; }
.fav a { display: flex; align-items: center; gap: 12px; flex: 1; font-size: 0.875rem; font-weight: 600; }
.fav a .ico { color: #fcd34d; }
.fav button { color: rgba(255, 255, 255, 0.5); padding: 4px; display: grid; }
.fav button:hover { color: #fb7185; }
.fav-empty { padding: 32px 0; text-align: center; font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); }
.drawer-foot { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; font-size: 0.75rem; color: rgba(255, 255, 255, 0.55); }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; font-size: 0.875rem; font-weight: 500; text-align: left; }
.menu-label { margin-top: 8px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.55); }
.drawer .seg { align-self: flex-start; }

/* Toasts & loading */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 70; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 14px; font-size: 0.875rem; background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); animation: pop 0.25s ease-out; max-width: 340px; }
.toast.ok { border-color: rgba(52, 211, 153, 0.5); }
.toast.err { border-color: rgba(251, 113, 133, 0.6); }
.loading { position: fixed; inset: 0; z-index: 65; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(4px); font-size: 0.875rem; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.25); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.05); border-radius: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); border-radius: 8px; }

/* Responsive */
@media (max-width: 1023px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .hero-temp { font-size: 4.5rem; }
}
@media (max-width: 767px) {
  .page { padding: 16px; }
  .site-header { flex-direction: column; align-items: stretch; }
  .brand-row { width: 100%; }
  .search { max-width: none; }
  .only-mobile { display: grid; }
  .only-desktop { display: none; }
  .hero { padding: 24px; }
  .hero h1 { font-size: 1.75rem; }
  .hero-top, .hero-mid { flex-direction: column; align-items: flex-start; }
  .hero-icon { width: 96px; height: 96px; }
  .hero-temp { font-size: 3.75rem; }
  .hero-cond { font-size: 1.25rem; }
  .hero-facts { width: 100%; grid-template-columns: 1fr 1fr; }
  .hero-facts div + div { border-top: 0; padding-top: 0; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radar-box { height: 256px; }
  .card { padding: 20px; }
  .site-footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .day-ico { width: 72px; }
}
@media (prefers-reduced-motion: reduce) { .float, .ping, .dot-green { animation: none; } }

/* ---------- Admin ---------- */
body.admin { min-height: 100vh; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; position: relative; z-index: 10; }
.login-card { width: 100%; max-width: 400px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.login-card.center { align-items: center; text-align: center; }
.login-card.center h1 { font-size: 3rem; font-weight: 900; }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand h1 { font-size: 1.25rem; font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 0.75rem; font-weight: 500; color: rgba(255, 255, 255, 0.75); }
.field small { color: rgba(255, 255, 255, 0.45); font-size: 0.7rem; }
.field input, .field textarea, .field select, .city-search input, .key-row input {
  width: 100%; padding: 10px 14px; border-radius: 12px; font: inherit; font-size: 0.875rem; color: #fff;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
}
.field select option { color: #0f172a; }
.field textarea { font-family: ui-monospace, Consolas, monospace; font-size: 0.75rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .city-search input:focus, .key-row input:focus { outline: none; border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.18); }
.primary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.25); font-weight: 600; font-size: 0.875rem; transition: background 0.2s; }
.primary-btn:hover { background: rgba(255, 255, 255, 0.35); }
.primary-btn:disabled { opacity: 0.5; cursor: wait; }
.form-msg { font-size: 0.85rem; min-height: 1.2em; }
.form-msg.err { color: #fda4af; }
.form-msg.ok { color: #6ee7b7; }
.back-link { text-align: center; font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }
.back-link:hover { color: #fff; }
.admin-wrap { max-width: 768px; margin: 0 auto; padding: 32px 16px 64px; position: relative; z-index: 10; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.admin-actions { display: flex; gap: 8px; }
#settingsForm { display: flex; flex-direction: column; gap: 22px; }
#settingsForm h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 14px; }
#settingsForm .card-head h2 { margin-bottom: 2px; }
.with-preview { display: flex; align-items: center; gap: 12px; }
.preview { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.08) center / contain no-repeat; }
.default-city { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; font-size: 0.875rem; color: #fff; }
.city-search { position: relative; margin-bottom: 16px; }
.key-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.key-row button { color: rgba(255, 255, 255, 0.5); padding: 8px; display: grid; }
.key-row button:hover { color: #fb7185; }
.save-bar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.field textarea[name="seo.description"] { font-family: inherit; font-size: 0.875rem; }
.save-bar { background: linear-gradient(transparent, rgba(9, 13, 22, 0.85) 40%); margin: 0 -8px; padding: 14px 8px; }

/* ---------- Engine additions ---------- */
.week-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.week-table th, .week-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.08); white-space: nowrap; }
.week-table thead th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.55); font-weight: 600; }
.week-table tbody th { font-weight: 600; }
.wt-cond { display: inline-flex; align-items: center; gap: 6px; }
.metrics-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sister a, .site-text a, .network a { color: #bae6fd; text-decoration: underline; text-underline-offset: 3px; }
.site-text h2 { margin-top: 18px; }
.site-text h2:first-child { margin-top: 0; }
.faq { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin-top: 8px; }
.network ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: rgba(255, 255, 255, 0.85); }

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan-item { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px; }
.plan-item strong { font-size: 1.15rem; }
.prep-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.prep-list li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; }
.prep-list li > span { display: flex; flex-direction: column; gap: 2px; }
.cmp-title { margin: 16px 0 8px; font-size: 0.95rem; }
.cmp { padding: 12px 14px; border-radius: 16px; display: grid; gap: 6px; }
.cmp-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; }
.cmp-arrow { opacity: 0.5; }
@media (max-width: 720px) {
  .plan-grid, .plan-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prep-list { grid-template-columns: 1fr; }
}
/* Per-site accent */
.site-cuacasite .badge, .site-cuacasite .plan-item strong { color: #fde68a; }
.site-cuacabesok .hero-glow { background: radial-gradient(circle, rgba(129, 140, 248, 0.35), transparent 70%); }
.site-prakiraan .week-table tbody tr:hover { background: rgba(255, 255, 255, 0.05); }

/* Admin: checkboxes and rows */
.check { display: flex; align-items: center; gap: 10px; margin: 8px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: #38bdf8; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; margin-bottom: 8px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 14px; }

.with-preview .upload-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.with-preview .upload-btn:disabled { opacity: 0.6; cursor: wait; }
