:root {
    --bg: #eef5fb;
    --panel: rgba(255, 255, 255, 0.88);
    --panel-strong: #ffffff;
    --line: #d6e2ef;
    --text: #123047;
    --muted: #5f7a90;
    --brand: #0d7ea5;
    --brand-deep: #0f5474;
    --accent: #e8f3ff;
    --success: #d6f7ea;
    --warning: #fff2d7;
    --danger: #fde3e0;
    --shadow: 0 18px 45px rgba(18, 48, 71, 0.12);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(13, 126, 165, 0.12), transparent 28%),
        linear-gradient(180deg, #f7fbff 0%, var(--bg) 100%);
}
.site-shell { position: relative; isolation: isolate; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.6; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.1; }
select, input, textarea, button { font: inherit; }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 40px 0; }
.page-shell { min-height: calc(100vh - 180px); }
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); background: rgba(247, 251, 255, 0.92); border-bottom: 1px solid rgba(214, 226, 239, 0.8); }
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; }
.nav-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); }
.nav-links .btn:not(.btn-secondary) { color: #fff; }
.nav-links .is-active { color: var(--text); font-weight: 700; }
.nav-user { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.badge, .chip, .status-chip, .badge-large { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 12px; padding: 6px 10px; background: var(--accent); }
.badge-large { padding: 10px 16px; font-size: 14px; }
.btn, .ghost-button {
    border: 0;
    cursor: pointer;
    border-radius: 14px;
    padding: 12px 18px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.btn { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; box-shadow: var(--shadow); }
.btn-secondary, .ghost-button { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.btn:hover, .ghost-button:hover { transform: translateY(-1px); }
.full-width { width: 100%; }

.hero { padding: 40px 0 28px; }
.hero-grid, .two-column, .dashboard-grid, .listing-grid, .card-grid, .footer-grid, .resort-grid, .stats-grid, .package-grid, .review-grid { display: grid; gap: 20px; }
.hero-grid { grid-template-columns: 1.05fr .95fr; align-items: start; position: relative; z-index: 2; }
.hero-panel, .card, .auth-card, .resort-card, .booking-panel, .finder-card { background: var(--panel); border: 1px solid rgba(255,255,255,0.75); border-radius: 24px; box-shadow: var(--shadow); }
.hero-stage {
    position: relative;
    overflow: visible;
    border-radius: 36px;
    padding: 42px;
    background: linear-gradient(180deg, rgba(255,255,255,0.54), rgba(227,241,248,0.28));
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 22px 44px rgba(18, 48, 71, 0.08);
}
.hero-sky {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,0.96), transparent 34%),
        linear-gradient(180deg, rgba(247,252,255,0.9), rgba(194,224,236,0.48) 48%, rgba(238,245,251,0.88) 100%);
}
.hero-mountains {
    position: absolute;
    inset: auto 0 -2vh;
    width: 100%;
    height: auto;
    min-height: 88vh;
    opacity: 0.72;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(6px);
    opacity: 0.7;
}
.hero-orb-one {
    width: 220px;
    height: 220px;
    top: 48px;
    right: 13%;
    background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(162,207,226,0.2) 70%, transparent 72%);
}
.hero-orb-two {
    width: 160px;
    height: 160px;
    top: 100px;
    right: 28%;
    background: radial-gradient(circle, rgba(214,238,249,0.72), rgba(214,238,249,0.08) 70%, transparent 72%);
}
.ridge {
    transform-origin: center bottom;
    animation: mountainFloat 12s ease-in-out infinite alternate;
}
.ridge-mid { animation-duration: 15s; }
.ridge-near { animation-duration: 18s; }
.hero-copy { padding: 20px 0 12px; max-width: 620px; }
.hero-badges { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.58);
    border: 1px solid rgba(255,255,255,0.8);
    color: var(--brand-deep);
    font-size: 13px;
}
.hero-copy h1 {
    font-size: clamp(34px, 4.4vw, 58px);
    max-width: 12ch;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}
.hero-copy .lead { max-width: 56ch; }
.cta-row { margin: 20px 0 0; }
.hero-trust { margin-top: 18px; }
.hero-trust span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.52);
    border: 1px solid rgba(255,255,255,0.72);
}
.hero-panel {
    position: relative;
    z-index: 2;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(236,246,251,0.75));
    backdrop-filter: blur(8px);
    align-self: start;
}
.hero-panel-top, .hero-mini-metrics {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.hero-stat-stack {
    display: grid;
    gap: 4px;
    align-content: start;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.66);
    border: 1px solid rgba(214, 226, 239, 0.8);
}
.finder-card { margin: 20px 0 14px; background: rgba(255,255,255,0.72); }
.hero-mini-metrics > div {
    flex: 1 1 160px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.72);
}
.hero-mini-metrics span { font-size: 13px; color: var(--muted); }
.lead { font-size: 18px; max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--brand); font-weight: 700; }
.cta-row, .trust-row, .meta-row, .tag-row, .action-row, .referral-box { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.trust-row span, .meta-row span { color: var(--muted); font-size: 14px; }
.finder-form, .grid-form, .review-form { display: grid; gap: 14px; }
.finder-form select, .filter-bar select, .filter-bar input, .auth-card input, .auth-card textarea, .auth-card select, .review-form input, .review-form textarea, .review-form select, .grid-form input, .grid-form textarea, .grid-form select, label input, label textarea, label select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255,255,255,.8);
    color: var(--text);
}
label { display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.section-heading { margin-bottom: 24px; }
.split { display: flex; justify-content: space-between; gap: 16px; align-items: end; flex-wrap: wrap; }

.resort-grid { grid-template-columns: repeat(3, 1fr); }
.resort-card, .card, .auth-card, .booking-panel, .package-card { padding: 22px; }
.resort-card { min-height: 210px; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(232,243,255,.72)); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.instructor-card { display: flex; flex-direction: column; height: 100%; }
.instructor-card .mini-slots { margin-bottom: 16px; }
.instructor-card .action-row,
.instructor-card > .btn.btn-secondary { margin-top: auto; align-self: flex-start; }
.instructor-card .action-row form { margin: 0; }
.instructor-card .btn,
.instructor-card .ghost-button { max-width: 100%; }
.rating { color: var(--brand-deep); font-weight: 700; }
.tag { padding: 8px 12px; border-radius: 999px; background: #f3f8fd; color: var(--text); font-size: 13px; }
.mini-slots, .slot-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.slot-pill { padding: 10px 12px; border-radius: 14px; background: #f6fbff; border: 1px solid var(--line); display: inline-flex; gap: 8px; align-items: center; }
.listing-grid, .card-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.filter-bar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto; gap: 12px; margin-bottom: 24px; }
.profile-hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; margin-bottom: 24px; }
.two-column { grid-template-columns: repeat(2, 1fr); }
.package-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.package-card { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(232,243,255,0.66)); }
.review-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.review-card { padding: 18px; border-radius: 18px; background: #fbfdff; border: 1px solid var(--line); }

.auth-shell { min-height: calc(100vh - 180px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: min(760px, 100%); }
.wide { width: min(900px, 100%); }
.grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-form .full-span { grid-column: 1 / -1; }
.helper-copy { font-size: 13px; }

.progress-bar { display: flex; gap: 10px; margin: 0 0 20px; }
.progress-bar span { padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,0.55); border: 1px solid var(--line); color: var(--muted); }
.progress-bar .active { background: var(--accent); color: var(--brand-deep); }
.notice-card, .reward-card { padding: 18px; border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(232,243,255,.7)); border: 1px solid var(--line); }
.dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.progress-track { width: 100%; height: 10px; border-radius: 999px; background: #dbe8f3; overflow: hidden; margin-top: 10px; }
.progress-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #69c2dd); }
.timeline, .stack-list, .table-list { display: grid; gap: 12px; }
.timeline-item, .notification-row, .table-row, .recommend-row, .rebook-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notification-row, .recommend-row { display: block; }
.status-chip.status-pending { background: var(--warning); }
.status-chip.status-confirmed, .status-chip.status-completed { background: var(--success); }
.status-chip.status-cancelled { background: var(--danger); }
.status-chip.status-rescheduled { background: var(--accent); }
.stats-grid { grid-template-columns: repeat(3, 1fr); }
.stats-grid.wide { grid-template-columns: repeat(4, 1fr); }
.stats-grid .card, .stats-grid > div { text-align: center; }

.flash-stack { padding-top: 16px; display: grid; gap: 8px; }
.flash { padding: 14px 16px; border-radius: 14px; }
.flash.success { background: var(--success); }
.flash.error { background: var(--danger); }

.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 30px 0 40px; }
.footer-grid { grid-template-columns: 2fr 1fr 1fr; }
.footer-grid div { display: grid; gap: 8px; }

@keyframes mountainFloat {
    0% { transform: translate3d(0, 0, 0) scaleY(1); }
    100% { transform: translate3d(0, -10px, 0) scaleY(1.01); }
}

@media (max-width: 960px) {
    .hero-grid, .profile-hero, .two-column, .dashboard-grid, .footer-grid, .resort-grid, .stats-grid.wide { grid-template-columns: 1fr; }
    .filter-bar, .grid-form { grid-template-columns: 1fr; }
    .hero-stage { padding: 28px 22px; }
    .hero-copy h1 { max-width: 14ch; }
    .hero-mountains { min-height: 70vh; }
}

@media (max-width: 720px) {
    .nav-row, .split { flex-direction: column; align-items: stretch; }
    .nav-links { justify-content: flex-start; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-panel-top, .hero-mini-metrics, .hero-badges { display: grid; }
    .hero-copy h1 { font-size: clamp(36px, 13vw, 54px); }
}
