/* =========================================================
   渝都指南 · 山城夜霓虹
   Design tokens / layout / components / responsive
   ========================================================= */

:root {
    color-scheme: dark;
    --bg: #070b14;
    --bg-soft: #0a101c;
    --surface: rgba(18, 27, 46, 0.72);
    --surface-strong: #111a2c;
    --surface-soft: rgba(255, 255, 255, 0.045);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --header-bg: rgba(7, 11, 20, 0.72);
    --border: rgba(148, 163, 184, 0.16);
    --border-strong: rgba(148, 163, 184, 0.3);
    --text: #f3f7fd;
    --text-2: #c6d0de;
    --muted: #8c9ab0;
    --brand: #ff6b35;
    --brand-strong: #ff8a4c;
    --brand-2: #ff2d55;
    --brand-soft: rgba(255, 107, 53, 0.14);
    --cyan: #22d3ee;
    --cyan-soft: rgba(34, 211, 238, 0.12);
    --green: #34d399;
    --yellow: #fbbf24;
    --danger: #fb7185;
    --danger-soft: rgba(251, 113, 133, 0.12);
    --scrim: rgba(3, 6, 12, 0.72);
    --shadow-lg: 0 28px 70px rgba(2, 6, 18, 0.6);
    --shadow-md: 0 14px 36px rgba(2, 6, 18, 0.42);
    --glow-brand: 0 16px 44px rgba(255, 107, 53, 0.22);
    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --header-h: 76px;
    --sidebar-w: 252px;
    --font-sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #f2f5fa;
    --bg-soft: #e9eef6;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --surface-soft: rgba(15, 23, 42, 0.035);
    --surface-hover: rgba(15, 23, 42, 0.06);
    --header-bg: rgba(248, 250, 253, 0.8);
    --border: rgba(15, 23, 42, 0.09);
    --border-strong: rgba(15, 23, 42, 0.18);
    --text: #0f172a;
    --text-2: #334155;
    --muted: #5f6f86;
    --brand: #e8501c;
    --brand-strong: #f4652f;
    --brand-2: #e11d48;
    --brand-soft: rgba(232, 80, 28, 0.1);
    --cyan: #0891b2;
    --cyan-soft: rgba(8, 145, 178, 0.1);
    --green: #059669;
    --yellow: #b45309;
    --danger: #dc2626;
    --danger-soft: rgba(220, 38, 38, 0.08);
    --scrim: rgba(15, 23, 42, 0.5);
    --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.16);
    --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.1);
    --glow-brand: 0 16px 40px rgba(232, 80, 28, 0.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

[hidden] { display: none !important; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.65; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }
p, h1, h2, h3, h4, h5 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

::selection { background: var(--brand); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: padding-box;
}

/* ---------- Icons ---------- */
.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 1.2em;
    height: 1.2em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    vertical-align: middle;
}

/* ---------- Atmosphere ---------- */
.bg-aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 620px at 88% -12%, rgba(255, 107, 53, 0.17), transparent 62%),
        radial-gradient(820px 680px at -12% 28%, rgba(34, 211, 238, 0.13), transparent 62%),
        radial-gradient(720px 560px at 52% 112%, rgba(255, 45, 85, 0.09), transparent 62%);
    transition: opacity 0.35s var(--ease);
}

html[data-theme="light"] .bg-aurora {
    background:
        radial-gradient(900px 620px at 88% -12%, rgba(232, 80, 28, 0.12), transparent 62%),
        radial-gradient(820px 680px at -12% 28%, rgba(8, 145, 178, 0.1), transparent 62%),
        radial-gradient(720px 560px at 52% 112%, rgba(225, 29, 72, 0.06), transparent 62%);
}

.bg-aurora::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 72%);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: var(--header-h);
    padding: 14px 28px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    flex-shrink: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-strong), var(--brand-2));
    color: #fff;
    box-shadow: 0 10px 26px rgba(255, 107, 53, 0.32);
    position: relative;
    overflow: hidden;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent 45%);
}

.brand-mark .icon { width: 24px; height: 24px; position: relative; z-index: 1; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 19px; letter-spacing: 1px; font-weight: 700; }
.brand-text small { margin-top: 3px; font-size: 10.5px; color: var(--muted); letter-spacing: 1.6px; }

.global-search {
    flex: 1;
    max-width: 540px;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 6px 0 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.global-search:focus-within {
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.global-search .search-icon { color: var(--muted); width: 18px; height: 18px; }

.global-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

.global-search input::placeholder { color: var(--muted); }

.global-search button {
    height: 36px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-strong), var(--brand-2));
    color: #fff;
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.global-search button:hover { filter: brightness(1.08); box-shadow: 0 8px 22px rgba(255, 107, 53, 0.3); }
.global-search button:active { transform: scale(0.97); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.icon-btn {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface-soft);
    color: var(--text-2);
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.icon-btn:hover { background: var(--surface-hover); color: var(--text); border-color: var(--border-strong); }
.icon-btn:active { transform: scale(0.96); }

.theme-icon-light { display: none; }
html[data-theme="light"] .theme-icon-light { display: inline-block; }
html[data-theme="light"] .theme-icon-dark { display: none; }

.mobile-only { display: none; }

/* Auth slot / user chip */
.auth-slot { display: flex; align-items: center; }

.auth-login-btn {
    height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.16), rgba(34, 211, 238, 0.1));
    color: var(--text);
    font-weight: 600;
    font-size: 13.5px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.auth-login-btn:hover { border-color: var(--brand); box-shadow: 0 10px 28px rgba(255, 107, 53, 0.18); }
.auth-login-btn .icon { color: var(--brand); }

.user-wrap { position: relative; }

.user-chip {
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px 0 5px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text);
    transition: background 0.2s, border-color 0.2s;
}

.user-chip:hover { background: var(--surface-hover); border-color: var(--border-strong); }

.user-chip img,
.user-chip .avatar-fallback {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 13px;
    overflow: hidden;
}

.user-chip .chevron { width: 14px; height: 14px; color: var(--muted); transition: transform 0.2s; }
.user-wrap.open .user-chip .chevron { transform: rotate(180deg); }

.user-name {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
}

.user-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 208px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-strong);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 120;
    animation: menu-in 0.18s var(--ease);
}

.user-wrap.open .user-menu { display: block; }

.user-menu-head {
    padding: 10px 12px 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

.user-menu-head strong { display: block; font-size: 14px; }
.user-menu-head span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }

.user-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-2);
    font-size: 13px;
    text-align: left;
    transition: background 0.18s, color 0.18s;
}

.user-menu button:hover { background: var(--surface-soft); color: var(--text); }
.user-menu button .icon { width: 16px; height: 16px; color: var(--muted); }
.user-menu button.danger { color: var(--danger); }
.user-menu button.danger .icon { color: var(--danger); }

/* ---------- Shell / Sidebar ---------- */
.shell {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px 28px 56px;
}

#sidebar {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    flex: 0 0 var(--sidebar-w);
    width: var(--sidebar-w);
    max-height: calc(100vh - var(--header-h) - 40px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow-y: auto;
}

.side-label {
    padding: 4px 12px 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.4px;
    color: var(--muted);
    text-transform: uppercase;
}

.side-nav { display: flex; flex-direction: column; gap: 4px; }

.nav-group { border-radius: 14px; }

.nav-title {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: var(--text-2);
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nav-title:hover { background: var(--surface-soft); color: var(--text); }

.nav-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--muted);
    transition: all 0.25s var(--ease);
}

.nav-icon .icon { width: 17px; height: 17px; }

.nav-label { flex: 1; }

.nav-caret {
    width: 15px;
    height: 15px;
    color: var(--muted);
    transition: transform 0.28s var(--ease);
}

.nav-group.active .nav-title {
    color: var(--text);
    background: var(--surface-soft);
    border-color: var(--border);
}

.nav-group.active .nav-icon {
    background: linear-gradient(135deg, var(--brand-strong), var(--brand-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.nav-group.active .nav-caret { transform: rotate(180deg); }

.nav-sub {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-left: 45px;
    transition: max-height 0.32s var(--ease), opacity 0.25s, margin 0.25s;
}

.nav-group.active .nav-sub {
    max-height: 220px;
    opacity: 1;
    margin: 4px 0 10px;
}

.nav-sub-link {
    position: relative;
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    text-align: left;
    transition: color 0.18s, background 0.18s;
}

.nav-sub-link:hover { color: var(--text); background: var(--surface-soft); }

.nav-sub-link.active { color: var(--brand); font-weight: 600; }

.nav-sub-link.active::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 10px var(--brand);
}

.side-footer {
    margin-top: auto;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(255, 107, 53, 0.16), transparent 55%),
        radial-gradient(120% 120% at 100% 100%, rgba(34, 211, 238, 0.12), transparent 55%),
        var(--surface-soft);
    overflow: hidden;
}

.side-footer-title { font-size: 13px; font-weight: 700; letter-spacing: 0.4px; }
.side-footer-text { margin-top: 6px; font-size: 11.5px; line-height: 1.65; color: var(--muted); }

.side-footer-dots { display: flex; gap: 5px; margin-top: 12px; }
.side-footer-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: 0.9; }
.side-footer-dots span:nth-child(2) { background: var(--cyan); }
.side-footer-dots span:nth-child(3) { background: var(--brand-2); }

.sidebar-close { display: none; }
.sidebar-overlay { display: none; }

/* ---------- Content ---------- */
#content-area {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

#top-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    margin-bottom: 20px;
}

#backBtn {
    display: none;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-2);
    font-size: 13px;
    transition: all 0.2s;
}

#backBtn:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
#backBtn .icon { width: 16px; height: 16px; }

.page-heading { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }

.page-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: var(--cyan);
}

.page-heading h1 {
    margin-top: 3px;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: 0.4px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-bar-meta { color: var(--muted); font-size: 12.5px; flex-shrink: 0; }

#results { display: flex; flex-direction: column; gap: 28px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text);
    background: var(--surface-soft);
    transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s, filter 0.2s;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn .icon { width: 17px; height: 17px; }

.btn-primary {
    background: linear-gradient(135deg, var(--brand-strong), var(--brand-2));
    color: #fff;
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.28);
}

.btn-primary:hover { box-shadow: 0 16px 38px rgba(255, 107, 53, 0.4); filter: brightness(1.06); }

.btn-ghost {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-2);
}

.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-hover); }

.btn-outline {
    background: transparent;
    border-color: var(--brand);
    color: var(--brand);
}

.btn-outline:hover { background: var(--brand-soft); }

.btn-cyan {
    background: linear-gradient(135deg, var(--cyan), #0ea5e9);
    color: #04121a;
    box-shadow: 0 12px 30px rgba(34, 211, 238, 0.24);
}

.btn-sm { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 12.5px; }
.btn-block { width: 100%; }

.btn.is-loading { pointer-events: none; }

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

/* ---------- Section headings ---------- */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-head .eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 5px;
}

.section-title { font-size: 21px; font-weight: 700; letter-spacing: 0.3px; }
.section-sub { margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.section-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.count-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
}

.count-chip strong { color: var(--text); font-weight: 600; }

/* ---------- Hero banner ---------- */
.hero {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--surface-strong);
}

.hero-slides { display: flex; transition: transform 0.65s var(--ease); }

.hero-slide {
    position: relative;
    flex: 0 0 100%;
    height: 420px;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(135deg, #182033, #0b1120);
}

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s linear;
}

.hero-slide:hover > img { transform: scale(1.04); }

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 8, 16, 0.9) 0%, rgba(4, 8, 16, 0.62) 42%, rgba(4, 8, 16, 0.08) 78%),
        linear-gradient(to top, rgba(4, 8, 16, 0.82) 0%, transparent 48%);
}

.hero-content {
    position: absolute;
    left: 40px;
    bottom: 42px;
    right: 40px;
    z-index: 2;
    max-width: 600px;
    color: #fff;
    animation: hero-in 0.7s var(--ease);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.92), rgba(255, 45, 85, 0.92));
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.6px;
    box-shadow: 0 8px 24px rgba(255, 45, 85, 0.32);
}

.hero-title {
    margin: 14px 0 10px;
    font-size: 40px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    color: rgba(233, 240, 250, 0.88);
    font-size: 13px;
}

.hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hero-meta .icon { width: 15px; height: 15px; color: var(--brand-strong); }

.hero-actions { display: flex; gap: 10px; margin-top: 22px; }

.hero-arrow {
    position: absolute;
    top: 22px;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(8, 13, 24, 0.42);
    color: #fff;
    backdrop-filter: blur(10px);
    transition: background 0.2s, transform 0.2s;
}

.hero-arrow:hover { background: rgba(255, 107, 53, 0.85); transform: scale(1.06); }
.hero-arrow.prev { right: 68px; }
.hero-arrow.next { right: 20px; }
.hero-arrow .icon { width: 20px; height: 20px; }

.hero-dots {
    position: absolute;
    right: 32px;
    bottom: 26px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    transition: width 0.3s var(--ease), background 0.3s;
}

.hero-dot.active { width: 28px; background: linear-gradient(90deg, var(--brand-strong), var(--brand-2)); }

.hero-fallback {
    display: grid;
    place-items: center;
    height: 420px;
    background:
        radial-gradient(60% 80% at 80% 20%, rgba(255, 107, 53, 0.25), transparent 60%),
        radial-gradient(50% 70% at 10% 90%, rgba(34, 211, 238, 0.18), transparent 60%),
        var(--surface-strong);
}

/* ---------- Cards ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.place-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.28s var(--ease), border-color 0.28s, box-shadow 0.28s, background 0.28s;
}

.place-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: var(--glow-brand);
    background: var(--surface-strong);
}

.place-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background:
        radial-gradient(80% 80% at 70% 20%, rgba(255, 107, 53, 0.22), transparent 60%),
        linear-gradient(135deg, #182033, #0b1120);
}

.place-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.place-card:hover .place-media img { transform: scale(1.06); }

.place-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 8, 16, 0.55), transparent 55%);
    pointer-events: none;
}

.place-media .badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.place-media .media-like { position: absolute; right: 12px; bottom: 12px; z-index: 2; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(6, 10, 18, 0.55);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
}

.badge--brand { background: linear-gradient(135deg, var(--brand-strong), var(--brand-2)); border-color: transparent; box-shadow: 0 6px 18px rgba(255, 45, 85, 0.28); }
.badge--cyan { background: rgba(34, 211, 238, 0.85); border-color: transparent; color: #04121a; }
.badge--soft { background: var(--surface-soft); border-color: var(--border); color: var(--text-2); }

.place-body { display: flex; flex-direction: column; gap: 8px; padding: 15px 16px 17px; }

.place-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.place-title { font-size: 16.5px; font-weight: 650; line-height: 1.35; letter-spacing: 0.2px; }
.place-arrow { color: var(--muted); transition: color 0.2s, transform 0.2s; }
.place-arrow .icon { width: 16px; height: 16px; }
.place-card:hover .place-arrow { color: var(--brand); transform: translate(2px, -2px); }

.place-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
}

.place-location .icon { width: 13px; height: 13px; color: var(--cyan); }

.place-stats { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 11.5px;
}

.stat .icon { width: 13px; height: 13px; }
.stat--like .icon { color: var(--brand); }
.stat--heart .icon { color: var(--brand-2); }
.stat--comment .icon { color: var(--cyan); }

.place-intro {
    color: var(--text-2);
    font-size: 12.5px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

/* ---------- Category tiles ---------- */
.category-section { display: flex; flex-direction: column; gap: 16px; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.category-tile {
    position: relative;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--tile-bg, var(--surface-soft));
    color: var(--text);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--tile-glow, rgba(255, 255, 255, 0.06));
    filter: blur(12px);
    pointer-events: none;
}

.category-tile:hover {
    transform: translateY(-4px);
    border-color: var(--tile-color, var(--brand));
    box-shadow: 0 16px 40px rgba(2, 6, 18, 0.28);
}

.category-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--tile-color, var(--brand));
}

.category-icon .icon { width: 22px; height: 22px; }

.category-name { display: block; font-size: 15.5px; font-weight: 650; }
.category-desc { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }

.tile--blue { --tile-bg: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(34, 211, 238, 0.03)); --tile-color: var(--cyan); --tile-glow: rgba(34, 211, 238, 0.28); }
.tile--orange { --tile-bg: linear-gradient(135deg, rgba(255, 107, 53, 0.16), rgba(255, 107, 53, 0.03)); --tile-color: var(--brand); --tile-glow: rgba(255, 107, 53, 0.28); }
.tile--green { --tile-bg: linear-gradient(135deg, rgba(52, 211, 153, 0.13), rgba(52, 211, 153, 0.03)); --tile-color: var(--green); --tile-glow: rgba(52, 211, 153, 0.24); }
.tile--pink { --tile-bg: linear-gradient(135deg, rgba(255, 45, 85, 0.14), rgba(255, 45, 85, 0.03)); --tile-color: var(--brand-2); --tile-glow: rgba(255, 45, 85, 0.26); }
.tile--purple { --tile-bg: linear-gradient(135deg, rgba(167, 139, 250, 0.14), rgba(167, 139, 250, 0.03)); --tile-color: #a78bfa; --tile-glow: rgba(167, 139, 250, 0.26); }
.tile--yellow { --tile-bg: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(251, 191, 36, 0.03)); --tile-color: var(--yellow); --tile-glow: rgba(251, 191, 36, 0.24); }

/* ---------- Forms / filters ---------- */
.filter-card {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.filter-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 150px; }

.filter-field > span {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
}

.filter-field select,
.filter-field input {
    height: 42px;
    width: 100%;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-soft);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-field select:focus,
.filter-field input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.filter-actions { display: flex; gap: 10px; flex-shrink: 0; }

.field { display: block; margin-bottom: 14px; }
.field-label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }

.field-control {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field-control:focus-within {
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.field-control .icon { width: 17px; height: 17px; color: var(--muted); }

.field-control input,
.field-control textarea {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

.field-control input::placeholder,
.field-control textarea::placeholder { color: var(--muted); }

.select-control {
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.select-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

textarea {
    resize: vertical;
    min-height: 120px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--text);
    outline: none;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.form-error {
    display: none;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(251, 113, 133, 0.35);
    border-radius: 10px;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 12.5px;
    line-height: 1.5;
}

.form-error.show { display: block; }

/* ---------- Map ---------- */
.map-shell {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #0a101c;
}

#mapContainer { width: 100%; height: 560px; }

.map-legend {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
}

.legend-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.legend-toggle:hover { border-color: var(--border-strong); }
.legend-toggle.active { background: var(--surface-strong); border-color: var(--border-strong); color: var(--text); }

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dot, var(--brand));
    box-shadow: 0 0 10px var(--dot, var(--brand));
}

.map-meta {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 11.5px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.map-meta strong { color: var(--text); }

.map-loading {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: none;
    place-items: center;
    background: rgba(7, 11, 20, 0.55);
    backdrop-filter: blur(4px);
}

.map-loading.show { display: grid; }

.map-fallback {
    height: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    color: var(--muted);
}

.map-fallback .icon { width: 42px; height: 42px; color: var(--brand); }

.map-info-card {
    width: 280px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-strong);
    color: var(--text);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.amap-info-content {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.amap-info-close { color: var(--muted) !important; }
.amap-info-sharp { display: none !important; }

.info-window-img { width: 100%; height: 140px; object-fit: cover; }
.info-body { padding: 14px 16px 16px; }

.info-window-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 650;
    color: var(--text);
}

.info-window-title small { font-size: 11px; font-weight: 500; color: var(--muted); }

.info-window-desc {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.info-window-desc .icon { width: 13px; height: 13px; color: var(--cyan); }

.info-window-intro {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.info-window-actions { display: flex; gap: 8px; margin-top: 12px; }

.info-window-btn {
    flex: 1;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    transition: filter 0.2s, background 0.2s;
}

.btn-nav { background: linear-gradient(135deg, var(--brand-strong), var(--brand-2)); color: #fff; }
.btn-fav { background: var(--surface-soft); border-color: var(--border); color: var(--text-2); }
.info-window-btn:hover { filter: brightness(1.08); }

/* ---------- Blind box ---------- */
.blindbox-hero {
    position: relative;
    padding: 36px 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(60% 90% at 12% 0%, rgba(255, 107, 53, 0.2), transparent 58%),
        radial-gradient(60% 90% at 92% 100%, rgba(34, 211, 238, 0.16), transparent 58%),
        var(--surface);
    text-align: center;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.blindbox-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
    pointer-events: none;
}

.blindbox-icon {
    position: relative;
    width: 82px;
    height: 82px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-strong), var(--brand-2));
    color: #fff;
    box-shadow: 0 18px 46px rgba(255, 45, 85, 0.32);
    animation: float 4s ease-in-out infinite;
}

.blindbox-icon::after {
    content: "";
    position: absolute;
    inset: -9px;
    border: 1px dashed rgba(255, 107, 53, 0.55);
    border-radius: 50%;
    animation: spin 18s linear infinite;
}

.blindbox-icon .icon { width: 38px; height: 38px; }

.blindbox-title { position: relative; font-size: 28px; font-weight: 800; letter-spacing: 1px; }
.blindbox-sub { position: relative; margin-top: 8px; color: var(--muted); font-size: 13px; }

.blindbox-controls {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.blindbox-controls .filter-field { flex: 0 1 180px; text-align: left; }

.draw-btn { height: 46px; padding: 0 28px; font-size: 15px; }

.blindbox-stage { margin-top: 24px; }

.blindbox-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 56px 24px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    color: var(--muted);
    text-align: center;
    background: var(--surface-soft);
}

.blindbox-placeholder .icon { width: 44px; height: 44px; color: var(--muted); opacity: 0.7; }

.draw-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 64px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;
}

.draw-orbit {
    width: 86px;
    height: 86px;
    border: 2px dashed rgba(255, 107, 53, 0.55);
    border-radius: 50%;
    display: grid;
    place-items: center;
    animation: spin 2.6s linear infinite;
}

.draw-orbit .icon { width: 34px; height: 34px; color: var(--brand); animation: spin 2.6s linear infinite reverse; }

.draw-loading p { color: var(--muted); font-size: 13px; }

.draw-result {
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: pop-in 0.5s var(--ease);
}

.draw-visual { position: relative; min-height: 430px; overflow: hidden; background: #0b1120; }
.draw-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.draw-visual-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    background:
        radial-gradient(70% 70% at 60% 30%, rgba(255, 107, 53, 0.18), transparent 60%),
        linear-gradient(135deg, #172033, #0b1120);
}

.draw-visual-empty .icon { width: 42px; height: 42px; }
.draw-visual-empty span { font-size: 12px; }
.draw-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 8, 16, 0.75), transparent 55%);
}
.draw-visual .badge { position: absolute; top: 18px; left: 18px; z-index: 2; }
.draw-visual-caption { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; color: rgba(240, 246, 255, 0.88); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.draw-visual-caption .icon { width: 15px; height: 15px; color: var(--brand-strong); }

.draw-info { display: flex; flex-direction: column; padding: 30px; gap: 12px; }
.draw-eyebrow { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.draw-name { font-size: 28px; font-weight: 800; line-height: 1.2; }
.draw-location { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.draw-location .icon { width: 14px; height: 14px; color: var(--cyan); }
.draw-intro { color: var(--text-2); font-size: 13px; line-height: 1.65; }

.draw-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 6px 0;
}

.draw-stat {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface-soft);
}

.draw-stat strong { display: block; font-size: 18px; font-weight: 750; color: var(--text); }
.draw-stat span { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.draw-stat:nth-child(1) strong { color: var(--brand); }
.draw-stat:nth-child(2) strong { color: var(--brand-2); }
.draw-stat:nth-child(3) strong { color: var(--cyan); }

.draw-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.draw-actions .btn { flex: 1; }

.rec-section { margin-top: 26px; }

.rec-list { display: flex; flex-direction: column; gap: 12px; }

.rec-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.rec-item:hover { border-color: var(--border-strong); background: var(--surface-strong); transform: translateX(3px); }

.rec-thumb {
    width: 96px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--surface-soft);
    flex-shrink: 0;
}

.rec-thumb--empty { display: grid; place-items: center; color: var(--muted); }
.rec-thumb--empty .icon { width: 22px; height: 22px; }

.rec-body { flex: 1; min-width: 0; }
.rec-name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; }
.rec-distance { padding: 2px 8px; border-radius: 999px; background: var(--cyan-soft); color: var(--cyan); font-size: 10.5px; font-weight: 600; }
.rec-location { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--muted); font-size: 11.5px; }
.rec-location .icon { width: 12px; height: 12px; }
.rec-intro { margin-top: 5px; color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Profile / panels ---------- */
.profile-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(70% 120% at 100% 0%, rgba(34, 211, 238, 0.12), transparent 58%),
        radial-gradient(70% 120% at 0% 100%, rgba(255, 107, 53, 0.16), transparent 58%),
        var(--surface);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2), var(--cyan));
    flex-shrink: 0;
}

.profile-avatar img,
.profile-avatar .avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-strong);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 800;
    border: 3px solid var(--bg);
}

.profile-main { flex: 1; min-width: 0; }
.profile-main h2 { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 750; }
.profile-main .edit-link { border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.profile-main .edit-link:hover { color: var(--brand); }
.profile-main .edit-link .icon { width: 14px; height: 14px; }
.profile-phone { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.profile-phone .icon { width: 14px; height: 14px; }

.profile-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.stat-pill { display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 11.5px; }
.stat-pill strong { color: var(--text); font-size: 14px; font-weight: 700; }

.profile-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 18px; margin-top: 18px; }

.panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    padding: 20px;
}

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 650; }
.panel-head h3 .icon { width: 18px; height: 18px; color: var(--brand); }
.panel-head .link-btn { border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.panel-head .link-btn:hover { color: var(--brand); }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 38px 18px;
    text-align: center;
}

.empty-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 6px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--muted);
}

.empty-icon .icon { width: 24px; height: 24px; }
.empty-state h4 { font-size: 14px; font-weight: 600; }
.empty-state p { max-width: 280px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.empty-state .btn { margin-top: 10px; }

.history-list { display: flex; flex-direction: column; gap: 8px; }

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
    font-size: 13px;
}

.history-item .time { color: var(--muted); font-size: 11.5px; }

.review-list { display: flex; flex-direction: column; gap: 14px; }

.review-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.review-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-place { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; color: var(--brand); }
.review-score { padding: 2px 8px; border-radius: 999px; background: rgba(251, 191, 36, 0.14); color: var(--yellow); font-size: 11px; font-weight: 600; }
.review-date { color: var(--muted); font-size: 11.5px; }
.review-text { margin-top: 10px; color: var(--text-2); font-size: 13px; line-height: 1.65; }
.review-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.review-reply { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--green); border-radius: 8px; background: rgba(52, 211, 153, 0.08); color: var(--text-2); font-size: 12.5px; }

.feedback-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 18px; }
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item h5 { font-size: 13px; font-weight: 650; color: var(--text); }
.faq-item p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.form-hint { color: var(--muted); font-size: 11.5px; }

.settings-card { overflow: hidden; padding: 0; max-width: 980px; }
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.settings-row:last-child { border-bottom: 0; }
.settings-row h4 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; }
.settings-row h4 .icon { width: 17px; height: 17px; color: var(--brand); }
.settings-row p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.settings-footer { padding: 20px; text-align: center; color: var(--muted); font-size: 11.5px; line-height: 1.7; }

.switch { position: relative; display: inline-block; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: var(--border-strong);
    transition: background 0.25s;
    cursor: pointer;
}
.switch-track::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s var(--ease);
}
.switch input:checked + .switch-track { background: linear-gradient(135deg, var(--brand-strong), var(--brand-2)); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Login required */
.login-required {
    max-width: 560px;
    margin: 40px auto;
    padding: 40px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(80% 120% at 50% 0%, rgba(255, 107, 53, 0.16), transparent 60%),
        var(--surface);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.login-required .empty-icon { width: 68px; height: 68px; margin: 0 auto 14px; color: var(--brand); }
.login-required .empty-icon .icon { width: 30px; height: 30px; }
.login-required h3 { font-size: 20px; font-weight: 700; }
.login-required p { margin: 8px auto 20px; max-width: 340px; color: var(--muted); font-size: 13px; line-height: 1.65; }

/* ---------- Auth modal ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.open { display: flex; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: var(--scrim);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fade-in 0.25s var(--ease);
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface-strong);
    box-shadow: var(--shadow-lg);
    animation: modal-in 0.28s var(--ease);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--muted);
    transition: all 0.2s;
}

.modal-close:hover { color: var(--text); background: var(--surface-hover); }
.modal-close .icon { width: 16px; height: 16px; }

.auth-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; font-weight: 650; letter-spacing: 0.5px; }
.auth-brand .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
.auth-brand .brand-mark .icon { width: 19px; height: 19px; }

.auth-card h2 { margin: 18px 0 6px; font-size: 26px; font-weight: 750; letter-spacing: 0.4px; }
.auth-subtitle { margin-bottom: 20px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}

.auth-tab {
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.22s;
}

.auth-tab.active { background: linear-gradient(135deg, var(--brand-strong), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px rgba(255, 45, 85, 0.24); }

.auth-switch { margin-top: 16px; text-align: center; color: var(--muted); font-size: 12.5px; }
.auth-switch a { margin-left: 3px; font-weight: 600; }

/* ---------- Toast ---------- */
.toast-container {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 250px;
    max-width: 380px;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-strong);
    box-shadow: var(--shadow-lg);
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
    pointer-events: auto;
    animation: toast-in 0.32s var(--ease);
}

.toast.leaving { animation: toast-out 0.25s var(--ease) forwards; }
.toast-icon { width: 19px; height: 19px; margin-top: 1px; flex-shrink: 0; }
.toast--success { border-color: rgba(52, 211, 153, 0.45); }
.toast--success .toast-icon { color: var(--green); }
.toast--error { border-color: rgba(251, 113, 133, 0.45); }
.toast--error .toast-icon { color: var(--danger); }
.toast--info .toast-icon { color: var(--cyan); }

/* ---------- Skeleton ---------- */
.skeleton {
    border-radius: 10px;
    background: linear-gradient(90deg, var(--surface-soft) 20%, var(--surface-hover) 45%, var(--surface-soft) 70%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

.skeleton-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    overflow: hidden;
}

.skeleton-media { aspect-ratio: 4 / 3; border-radius: 0; }
.skeleton-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line { height: 12px; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-80 { width: 80%; }

/* ---------- Animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1240px) {
    .shell { padding: 20px 22px 48px; gap: 20px; }
    :root { --sidebar-w: 236px; }
    .global-search { max-width: 460px; }
    .hero-slide, .hero-fallback { height: 380px; }
    .hero-title { font-size: 34px; }
}

@media (max-width: 1080px) {
    .mobile-only { display: inline-grid; }

    .sidebar-close {
        display: inline-grid;
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 2;
        width: 36px;
        height: 36px;
        place-items: center;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--surface-soft);
        color: var(--muted);
    }

    .sidebar-close .icon { width: 16px; height: 16px; }
    .side-nav { margin-top: 42px; }

    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 160;
        width: 286px;
        max-height: none;
        height: 100vh;
        border-radius: 0 24px 24px 0;
        border-left: 0;
        transform: translateX(-105%);
        transition: transform 0.34s var(--ease);
        background: var(--surface-strong);
    }

    body.sidebar-open #sidebar { transform: translateX(0); }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 150;
        display: block;
        background: var(--scrim);
        backdrop-filter: blur(4px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    body.sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
    body.sidebar-open { overflow: hidden; }

    .shell { display: block; padding: 20px 22px 48px; }
    #content-area { padding-top: 0; }

    .draw-result { grid-template-columns: 1fr; }
    .draw-visual { min-height: 320px; }
    .draw-info { padding: 24px; }
}

@media (max-width: 900px) {
    .site-header { gap: 14px; padding: 12px 20px; }
    .brand-text small { display: none; }
    .global-search { max-width: none; }
    .hero-slide, .hero-fallback { height: 340px; }
    .hero-title { font-size: 30px; }
    .hero-content { left: 26px; right: 26px; bottom: 28px; }
    .hero-arrow { width: 38px; height: 38px; margin-top: -19px; }
    .hero-dots { right: 24px; bottom: 20px; }
    .profile-grid, .feedback-grid { grid-template-columns: 1fr; }
    .page-heading h1 { font-size: 23px; }
    .map-legend { right: 18px; }
}

@media (max-width: 720px) {
    .site-header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 16px 14px;
    }

    .brand { order: 1; }
    .header-actions { order: 2; margin-left: auto; }
    .global-search { order: 3; flex-basis: 100%; max-width: none; height: 44px; }
    .brand-text strong { font-size: 17px; }
    .brand-mark { width: 38px; height: 38px; border-radius: 12px; }

    .shell { padding: 16px 16px 40px; }

    #top-bar { gap: 10px; margin-bottom: 16px; min-height: 46px; }
    .page-heading h1 { font-size: 21px; }
    .page-kicker { letter-spacing: 2px; }
    .top-bar-meta { display: none; }

    .hero-slide, .hero-fallback { height: 300px; }
    .hero-title { font-size: 25px; margin: 10px 0 8px; }
    .hero-meta { gap: 10px; font-size: 12px; }
    .hero-actions { margin-top: 16px; }
    .hero-arrow { display: none; }
    .hero-dots { right: 18px; bottom: 16px; }
    .hero-content { left: 20px; right: 20px; bottom: 22px; }

    .card-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
    .filter-card { padding: 14px; }
    .filter-field { flex: 1 1 calc(50% - 12px); min-width: 130px; }
    .filter-actions { flex-basis: 100%; }
    .filter-actions .btn { flex: 1; }

    .blindbox-hero { padding: 28px 18px; }
    .blindbox-title { font-size: 23px; }
    .blindbox-controls .filter-field { flex: 1 1 calc(50% - 12px); min-width: 130px; }
    .blindbox-controls .draw-btn { width: 100%; }

    .draw-info { padding: 20px; }
    .draw-name { font-size: 23px; }
    .draw-visual { min-height: 260px; }
    .rec-item { align-items: flex-start; }
    .rec-thumb { width: 78px; height: 66px; }

    .profile-hero { flex-direction: column; align-items: flex-start; padding: 22px; gap: 16px; }
    .profile-avatar { width: 74px; height: 74px; }
    .profile-main h2 { font-size: 21px; }

    .panel { padding: 16px; }
    .section-title { font-size: 18px; }
    .section-head { align-items: flex-start; }

    #mapContainer, .map-fallback { height: 420px; }
    .map-legend { left: 12px; right: 12px; top: 12px; justify-content: center; }
    .map-meta { left: 12px; bottom: 12px; }

    .modal-card { padding: 24px 20px; border-radius: 20px; }
    .auth-card h2 { font-size: 22px; }

    .toast-container { left: 16px; right: 16px; bottom: 16px; }
    .toast { max-width: none; width: 100%; min-width: 0; }
}

@media (max-width: 520px) {
    .shell { padding: 14px 12px 36px; }
    .site-header { padding: 10px 12px 12px; }
    .brand-text strong { letter-spacing: 0.5px; }
    .global-search { padding-left: 13px; }
    .global-search button { padding: 0 14px; }
    .global-search input { font-size: 13px; }
    .icon-btn { width: 38px; height: 38px; border-radius: 11px; }
    .auth-login-btn { height: 38px; padding: 0 13px; font-size: 12.5px; }
    .user-chip { height: 38px; }
    .user-name { display: none; }
    .user-chip img, .user-chip .avatar-fallback { width: 30px; height: 30px; }

    #top-bar { min-height: 42px; }
    .page-heading h1 { font-size: 19px; }
    .page-kicker { font-size: 9px; letter-spacing: 1.6px; }
    #backBtn { height: 36px; padding: 0 10px; font-size: 12px; }
    #backBtn span { display: none; }

    .hero-slide, .hero-fallback { height: 260px; }
    .hero-title { font-size: 21px; letter-spacing: 0.4px; }
    .hero-kicker { font-size: 10.5px; padding: 5px 10px; }
    .hero-meta { font-size: 11px; gap: 8px; }
    .hero-meta span:nth-child(3) { display: none; }
    .hero-actions .btn { height: 38px; padding: 0 13px; font-size: 12px; }

    .card-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .category-tile { padding: 15px; }
    .category-icon { width: 38px; height: 38px; margin-bottom: 9px; }

    .filter-field { flex: 1 1 100%; }
    .blindbox-controls .filter-field { flex: 1 1 100%; }

    .draw-stats { grid-template-columns: repeat(3, 1fr); gap: 7px; }
    .draw-stat { padding: 9px; }
    .draw-stat strong { font-size: 15px; }
    .draw-actions { flex-direction: column; }
    .rec-item { flex-wrap: wrap; }
    .rec-item .btn { width: 100%; }
    .rec-body { flex-basis: calc(100% - 92px); }

    .settings-row { padding: 16px; }
    .login-required { padding: 30px 18px; margin: 20px auto; }

    .review-top { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 380px) {
    .brand-text strong { font-size: 15px; }
    .auth-login-btn { padding: 0 10px; font-size: 0; gap: 0; }
    .auth-login-btn .icon { width: 18px; height: 18px; }
    .theme-icon-light, .theme-icon-dark { width: 18px; height: 18px; }
    .hero-title { font-size: 19px; }
    .page-heading h1 { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
