:root {
    --ink: #102a43;
    --muted: #627d98;
    --line: #d9e2ec;
    --sky: #eaf5ff;
    --blue: #1479d1;
    --blue-dark: #0b5da8;
    --gold: #f7b955;
    --white: #ffffff;
    --shadow: 0 20px 55px rgba(16, 42, 67, .10);
}

* { box-sizing: border-box; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: #f8fbff;
    font-family: "DM Sans", sans-serif;
    overflow-x: hidden;
}
h1, h2, .brand-mark { font-family: "Space Grotesk", sans-serif; }
h1, h2, p { margin-top: 0; }
a { color: inherit; }
.page-glow { position: fixed; border-radius: 50%; filter: blur(2px); pointer-events: none; z-index: -1; }
.page-glow-one { width: 420px; height: 420px; background: #e5f3ff; top: -190px; right: -90px; }
.page-glow-two { width: 340px; height: 340px; background: #fff4d9; bottom: -180px; left: -100px; }
.app-navbar { height: 82px; background: rgba(248, 251, 255, .82); border-bottom: 1px solid rgba(217, 226, 236, .7); backdrop-filter: blur(14px); }
.brand-mark { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.brand-icon { display: grid; place-items: center; width: 32px; height: 32px; color: #fff; background: var(--blue); border-radius: 10px; font-size: 1.1rem; box-shadow: 0 7px 16px rgba(20,121,209,.25); }
.welcome-copy { color: var(--muted); font-size: .88rem; }
.btn-nav, .btn-nav-primary { border-radius: 10px; padding: 9px 17px; font-size: .86rem; font-weight: 600; }
.btn-nav { border: 1px solid var(--line); color: var(--ink); }
.btn-nav-primary, .btn-primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.btn-nav-primary:hover, .btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.app-main { position: relative; z-index: 1; min-height: calc(100vh - 140px); padding-top: 68px; padding-bottom: 50px; }
.app-footer { display: flex; justify-content: space-between; padding: 18px 0 26px; color: #829ab1; font-size: .78rem; border-top: 1px solid rgba(217, 226, 236, .7); }
.app-alert { border: 0; border-left: 4px solid var(--gold); color: var(--ink); background: #fff7e5; }
.hero-panel { display: flex; align-items: center; justify-content: space-between; min-height: 310px; padding: 40px 54px; background: linear-gradient(120deg, #e8f5ff 0%, #f5faff 55%, #fff6df 100%); border: 1px solid #d9ebfa; border-radius: 30px; overflow: hidden; }
.eyebrow, .section-kicker { display: block; color: var(--blue-dark); text-transform: uppercase; letter-spacing: .13em; font-size: .70rem; font-weight: 700; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.eyebrow-dot { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 5px rgba(247,185,85,.18); }
.hero-copy h1 { max-width: 590px; margin-bottom: 17px; font-size: clamp(2.7rem, 6vw, 4.65rem); line-height: .98; letter-spacing: -.055em; }
.hero-copy h1 span, .auth-intro h1 span { color: var(--blue); }
.hero-copy p { max-width: 440px; margin-bottom: 0; color: var(--muted); font-size: 1.05rem; }
.hero-sun { position: relative; width: 250px; height: 220px; margin-right: 18px; }
.sun-core { position: absolute; inset: 37px; display: grid; place-items: center; color: #fff7df; background: #facb6c; border-radius: 50%; font-size: 5.6rem; line-height: 1; box-shadow: 0 0 0 18px rgba(250,203,108,.18), 0 0 0 45px rgba(250,203,108,.10); }
.sun-orbit { position: absolute; border: 1px solid rgba(247,185,85,.45); border-radius: 50%; transform: rotate(-25deg); }
.sun-orbit-one { width: 260px; height: 130px; left: -5px; top: 44px; }
.sun-orbit-two { width: 205px; height: 240px; left: 24px; top: -10px; transform: rotate(45deg); }
.search-card { max-width: 850px; margin: -35px auto 0; padding: 25px 28px 20px; background: var(--white); border: 1px solid rgba(217,226,236,.8); border-radius: 18px; box-shadow: var(--shadow); }
.search-card .section-kicker { margin-bottom: 12px; }
.search-form { display: flex; gap: 11px; }
.search-input-wrap { position: relative; flex: 1; }
.search-icon { position: absolute; top: 7px; left: 16px; color: var(--blue); font-size: 1.55rem; z-index: 1; }
.search-input-wrap .form-control { height: 51px; padding-left: 45px; border: 1px solid var(--line); border-radius: 11px; }
.form-control:focus { border-color: #72b4e8; box-shadow: 0 0 0 4px rgba(20,121,209,.10); }
.btn-search { min-width: 160px; border-radius: 11px; font-weight: 600; }
.btn-search span, .btn-primary span { margin-left: 10px; font-size: 1.1rem; }
.location-button { display: block; margin: 13px auto 0; padding: 0; border: 0; color: var(--blue-dark); background: transparent; font-size: .82rem; font-weight: 600; }
.location-button span { margin-right: 5px; font-size: 1rem; }
.location-button:disabled { opacity: .7; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 850px; margin: 24px auto 0; }
.mini-feature { display: flex; gap: 12px; align-items: center; padding: 15px 16px; background: rgba(255,255,255,.68); border: 1px solid rgba(217,226,236,.7); border-radius: 14px; }
.mini-feature strong, .mini-feature small { display: block; }
.mini-feature strong { font-size: .84rem; }
.mini-feature small { margin-top: 3px; color: var(--muted); font-size: .70rem; }
.feature-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 11px; font-size: 1.2rem; }
.feature-icon-blue { color: #1377ca; background: #e2f2ff; }.feature-icon-gold { color: #d48c13; background: #fff3d6; }.feature-icon-green { color: #22896a; background: #e2f7ed; }
.weather-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.back-link { display: inline-block; margin-bottom: 30px; color: var(--blue-dark); font-size: .82rem; font-weight: 600; text-decoration: none; }
.location-label { color: var(--blue); text-transform: uppercase; letter-spacing: .13em; font-size: .70rem; font-weight: 700; }
.weather-heading h1 { margin: 6px 0 4px; font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -.05em; }
.last-updated { margin-bottom: 0; color: var(--muted); font-size: .86rem; }
.unit-switch { display: flex; gap: 3px; padding: 4px; background: #e9f1f7; border-radius: 10px; }
.unit-switch a { min-width: 45px; padding: 7px 9px; color: var(--muted); border-radius: 7px; font-size: .78rem; font-weight: 700; text-align: center; text-decoration: none; }
.unit-switch a.active { color: var(--ink); background: #fff; box-shadow: 0 2px 7px rgba(16,42,67,.08); }
.current-weather-card { display: flex; justify-content: space-between; align-items: center; padding: 34px 42px; color: #fff; background: linear-gradient(120deg, #0d4f8c, #167acb); border-radius: 25px; box-shadow: 0 18px 40px rgba(11,93,168,.22); overflow: hidden; }
.current-weather-main { display: flex; align-items: center; gap: 14px; }
.weather-icon-large { width: 145px; height: 145px; object-fit: contain; filter: drop-shadow(0 8px 11px rgba(0,0,0,.13)); }
.temperature { font-family: "Space Grotesk", sans-serif; font-size: clamp(3.8rem, 8vw, 6.3rem); font-weight: 600; line-height: .9; letter-spacing: -.08em; }
.temperature span { margin-left: 7px; color: #a6d8ff; font-size: 1.8rem; letter-spacing: 0; }
.condition { margin-top: 14px; text-transform: capitalize; font-size: 1.18rem; font-weight: 600; }
.feels-like { margin-top: 3px; color: #c5e4fb; font-size: .86rem; }
.weather-stats { display: flex; gap: 28px; }
.weather-stat { display: flex; align-items: center; gap: 10px; }
.stat-symbol { display: grid; place-items: center; width: 39px; height: 39px; color: #8bd0ff; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; font-size: 1.25rem; }
.weather-stat small, .weather-stat strong { display: block; }.weather-stat small { color: #b7dcf5; font-size: .72rem; }.weather-stat strong { margin-top: 3px; font-size: .9rem; }
.forecast-section, .recent-section { margin-top: 45px; }
.section-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 16px; }
.section-header h2 { margin: 5px 0 0; font-size: 1.5rem; letter-spacing: -.04em; }
.forecast-note { color: var(--muted); font-size: .77rem; }
.forecast-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.forecast-day { min-height: 185px; padding: 17px 10px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.forecast-today { border-color: #9dcef0; box-shadow: inset 0 3px 0 var(--blue); }
.forecast-date { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; }
.forecast-day img { display: block; width: 70px; height: 70px; margin: 8px auto 4px; }
.forecast-day strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; }
.forecast-condition { display: block; min-height: 30px; margin-top: 4px; color: var(--muted); font-size: .70rem; text-transform: capitalize; }
.recent-list { display: flex; gap: 10px; flex-wrap: wrap; }.recent-place { display: inline-flex; align-items: center; gap: 9px; padding: 11px 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: .82rem; text-decoration: none; transition: transform .2s, border-color .2s; }.recent-place:hover { border-color: #8fc3e8; transform: translateY(-2px); }.recent-place span { color: var(--blue); }.recent-place b { margin-left: 8px; color: var(--muted); }
.auth-layout { display: grid; grid-template-columns: 1fr 420px; gap: 90px; align-items: center; max-width: 980px; margin: 30px auto; }
.auth-intro h1 { margin: 14px 0; font-size: clamp(2.7rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.06em; }.auth-intro p { max-width: 410px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.auth-card { padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: 19px; box-shadow: var(--shadow); }.auth-card h2 { margin: 8px 0 5px; font-size: 1.7rem; }.auth-subtitle { color: var(--muted); font-size: .86rem; }
.auth-form { display: flex; flex-direction: column; gap: 7px; margin-top: 25px; }.auth-form label { margin-top: 9px; color: var(--ink); font-size: .77rem; font-weight: 700; }.auth-form .form-control { height: 45px; border-radius: 9px; }.auth-form .btn { margin-top: 18px; height: 47px; border-radius: 9px; font-weight: 600; }.auth-switch { margin: 22px 0 0; color: var(--muted); font-size: .78rem; text-align: center; }.auth-switch a { color: var(--blue-dark); font-weight: 700; text-decoration: none; }
.empty-state { max-width: 560px; margin: 70px auto; padding: 55px 35px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }.empty-icon { margin-bottom: 20px; color: #93cbed; font-size: 4rem; }.empty-state h1 { margin: 8px 0 12px; font-size: 2.2rem; }.empty-state p { color: var(--muted); }.empty-state .btn { margin-top: 15px; border-radius: 10px; }
@media (max-width: 768px) {
    .app-main { padding-top: 32px; }.hero-panel { min-height: 380px; padding: 32px 25px; }.hero-sun { position: absolute; right: -72px; bottom: -45px; opacity: .7; transform: scale(.75); }.hero-copy { position: relative; z-index: 1; }.search-card { margin: -26px 12px 0; padding: 22px 18px 17px; }.search-form { flex-direction: column; }.btn-search { width: 100%; }.feature-grid { grid-template-columns: 1fr; margin: 20px 12px 0; }.weather-heading { align-items: start; }.current-weather-card { align-items: flex-start; flex-direction: column; gap: 28px; padding: 25px 20px; }.weather-stats { gap: 24px; }.forecast-grid { grid-template-columns: repeat(2, 1fr); }.forecast-day:last-child { display: none; }.auth-layout { grid-template-columns: 1fr; gap: 30px; margin: 10px auto; }.auth-intro h1 { font-size: 3rem; }.auth-card { padding: 25px 20px; }.app-footer { margin-top: 20px; padding-left: 12px; padding-right: 12px; }
}
