:root {
    --bg: #07111f;
    --bg-soft: #0d1726;
    --panel: rgba(10, 19, 34, 0.84);
    --panel-strong: rgba(15, 26, 45, 0.96);
    --panel-muted: rgba(255, 255, 255, 0.04);
    --text: #e6eef8;
    --muted: #92a3b8;
    --line: rgba(184, 203, 223, 0.12);
    --primary: #1dd3b0;
    --primary-deep: #13a389;
    --accent: #ff8a5b;
    --accent-soft: rgba(255, 138, 91, 0.14);
    --warning: #ffc857;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    --radius: 24px;
    --radius-sm: 16px;
    --nav-w: 280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Noto Sans SC", sans-serif;
    background:
        radial-gradient(circle at 15% 15%, rgba(29, 211, 176, 0.18), transparent 28%),
        radial-gradient(circle at 85% 12%, rgba(255, 138, 91, 0.18), transparent 24%),
        linear-gradient(180deg, #08111d 0%, #0b1424 50%, #09101a 100%);
    min-height: 100vh;
    min-height: 100svh;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
strong {
    font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
    letter-spacing: 0;
}

h1,
h2,
h3,
p {
    margin: 0;
}

.eyebrow {
    color: var(--primary);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-text,
.guide-summary,
.showcase-card p,
.timeline-card p,
.spot-card p,
.transport-card p,
.table-row,
.field span,
.login-head p,
.stat-list span,
.profile-fields span,
.detail-user,
.sidebar-brand span,
.sidebar-footer p {
    color: var(--muted);
}

.card-shell {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
}

.brand-mark,
.avatar-ring {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1dd3b0, #0f7c73);
    color: #04111b;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
}

.avatar-ring {
    width: 56px;
    height: 56px;
    border-radius: 20px;
}

.avatar-ring--large {
    width: 72px;
    height: 72px;
    border-radius: 24px;
}

.primary-btn,
.detail-link,
.ghost-chip,
.icon-pill,
.danger-chip,
.text-link {
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), #46e2c4);
    color: #04211a;
    cursor: pointer;
    font-weight: 700;
}

.primary-btn:hover,
.detail-link:hover,
.ghost-chip:hover,
.icon-pill:hover,
.danger-chip:hover {
    transform: translateY(-1px);
}

.primary-btn:disabled,
.detail-link:disabled,
.ghost-chip:disabled,
.icon-pill:disabled,
.danger-chip:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
}

.primary-btn--wide {
    width: 100%;
}

.detail-link,
.ghost-chip,
.icon-pill,
.danger-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
}

.danger-chip {
    border-color: rgba(255, 96, 96, 0.28);
    background: rgba(255, 96, 96, 0.1);
    color: #ffc1c1;
}

.danger-chip:hover {
    background: rgba(255, 96, 96, 0.18);
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
}

.icon-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(29, 211, 176, 0.32);
    background: rgba(29, 211, 176, 0.1);
}

.icon-btn.danger-chip {
    padding: 0;
    color: #ffc1c1;
}

.action-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.like-toggle.is-active .action-icon,
.favorite-toggle.is-active .action-icon {
    fill: currentColor;
}

.inline-form {
    display: inline-flex;
}

.ghost-chip--full {
    width: 100%;
}

.icon-pill {
    min-width: 44px;
    padding: 0 12px;
}

.text-link {
    color: var(--primary);
    font-weight: 600;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #44e0c4, #88f0da);
}

.login-page,
.empty-page {
    padding: 24px;
}

.login-page {
    display: grid;
    place-items: center;
    overflow: hidden;
}

.login-page main {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 16px;
    justify-items: center;
}

.login-page::before {
    content: "";
    position: fixed;
    inset: -45%;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 52%, rgba(238, 245, 255, 0.24) 0 2%, rgba(82, 141, 191, 0.2) 9%, rgba(75, 45, 122, 0.16) 18%, transparent 38%),
        radial-gradient(ellipse at 47% 55%, rgba(255, 255, 255, 0.5) 0 0.08%, transparent 0.18%),
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.8px),
        radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.8px),
        radial-gradient(circle at 31% 74%, rgba(155, 234, 255, 0.72) 0 1px, transparent 1.8px),
        radial-gradient(circle at 88% 66%, rgba(255, 220, 172, 0.75) 0 1px, transparent 1.8px),
        radial-gradient(circle at 44% 36%, rgba(255, 255, 255, 0.42) 0 0.7px, transparent 1.4px),
        radial-gradient(circle at 64% 82%, rgba(181, 219, 255, 0.34) 0 0.6px, transparent 1.3px),
        radial-gradient(circle at 8% 58%, rgba(255, 255, 255, 0.22) 0 0.5px, transparent 1.2px);
    background-size: 100% 100%, 140px 140px, 260px 260px, 310px 310px, 220px 220px, 340px 340px, 180px 180px, 420px 420px, 120px 120px;
    transform: rotate(-10deg) translate3d(0, 0, 0) scale(1.04);
    mask-image: radial-gradient(circle at center, black, transparent 72%);
    animation: galaxyDrift 58s linear infinite, starPulse 7s ease-in-out infinite alternate;
}

.login-page::after {
    content: none;
}

.meteor {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1;
    width: var(--meteor-length, 220px);
    height: 2px;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(var(--meteor-x), var(--meteor-y), 0) rotate(var(--meteor-angle));
    animation: meteorFly var(--meteor-duration, 1.8s) cubic-bezier(0.16, 0.74, 0.22, 1) forwards;
}

.meteor::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background:
        radial-gradient(circle at 100% 50%, #fff 0 2px, rgba(190, 244, 255, 0.96) 3px, transparent 8px),
        linear-gradient(90deg, transparent 0%, rgba(116, 206, 255, 0.04) 10%, rgba(178, 236, 255, 0.22) 62%, rgba(255, 255, 255, 0.96) 100%);
    filter: drop-shadow(0 0 7px rgba(203, 246, 255, 0.85)) drop-shadow(0 0 18px rgba(64, 198, 255, 0.28));
    transform: translateY(-50%);
}

.meteor::after {
    content: "";
    position: absolute;
    right: -3px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.96), 0 0 24px rgba(116, 225, 255, 0.56);
    transform: translateY(-50%);
}

@keyframes galaxyDrift {
    from {
        transform: rotate(-10deg) translate3d(-8%, -5%, 0) scale(1.04);
        background-position: center, 0 0, 12px 18px, 28px 0, 0 24px, 18px 12px, 0 0, 18px 28px, 8px 12px;
    }

    to {
        transform: rotate(-10deg) translate3d(8%, 5%, 0) scale(1.04);
        background-position: center, 420px 260px, 432px 278px, 448px 260px, 420px 284px, 438px 272px, 360px 220px, 438px 288px, 308px 232px;
    }
}

@keyframes starPulse {
    from {
        opacity: 0.82;
        filter: brightness(0.9);
    }

    to {
        opacity: 1;
        filter: brightness(1.16);
    }
}

@keyframes meteorFly {
    0% {
        transform: translate3d(var(--meteor-x), var(--meteor-y), 0) rotate(var(--meteor-angle)) translateX(0);
        opacity: 0;
    }

    12% {
        opacity: var(--meteor-opacity, 0.8);
    }

    88% {
        opacity: var(--meteor-opacity, 0.8);
    }

    100% {
        transform: translate3d(var(--meteor-x), var(--meteor-y), 0) rotate(var(--meteor-angle)) translateX(var(--meteor-distance, 520px));
        opacity: var(--meteor-opacity, 0.8);
    }
}

.login-screen {
    position: relative;
    z-index: 1;
    width: min(1280px, 100%);
    margin: 0 auto;
    min-height: min(760px, calc(100vh - 48px));
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
    gap: 18px;
    align-items: center;
    border: 1px solid rgba(184, 203, 223, 0.12);
    border-radius: 38px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02)),
        rgba(7, 17, 31, 0.66);
    box-shadow: 0 36px 120px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(26px);
}

.el-login-footer {
    position: relative;
    z-index: 2;
    width: min(1280px, 100%);
    color: rgba(229, 240, 255, 0.74);
    font-size: 0.88rem;
    text-align: center;
}

.span-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    align-items: center;
    line-height: 1.8;
}

.span-container span {
    display: inline-flex;
    align-items: center;
}

.span-container img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.span-container a {
    color: rgba(229, 240, 255, 0.86);
    text-decoration: none;
}

.span-container a:hover {
    color: var(--primary);
}

.login-showcase,
.login-card,
.empty-card {
    border: 1px solid var(--line);
    border-radius: 32px;
    background: var(--panel);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow);
}

.login-showcase {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 24px;
    min-height: 690px;
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(9, 18, 31, 0.36), rgba(9, 18, 31, 0.82)),
        var(--panel);
}

.showcase-copy h1,
.workspace-copy h1,
.detail-copy h1,
.empty-card h1 {
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 0.95;
    margin-top: 14px;
    max-width: 11ch;
}

.showcase-copy .hero-text,
.workspace-copy .hero-text {
    margin-top: 20px;
    max-width: 54ch;
    line-height: 1.8;
}

.showcase-copy {
    display: grid;
    gap: 10px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.travel-carousel {
    position: relative;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #08111d;
}

.travel-carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(7, 17, 31, 0.04), rgba(7, 17, 31, 0.18)),
        linear-gradient(90deg, rgba(7, 17, 31, 0.2), transparent 18%, transparent 82%, rgba(7, 17, 31, 0.2));
}

.travel-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.42s ease;
}

.travel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: saturate(1.08) contrast(1.04);
    background: #08111d;
}

.travel-slide.is-active {
    opacity: 1;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(6, 14, 24, 0.62);
    color: #fff;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.travel-carousel:hover .carousel-arrow,
.carousel-arrow:focus-visible {
    opacity: 1;
}

.carousel-arrow:hover {
    border-color: rgba(29, 211, 176, 0.38);
    background: rgba(29, 211, 176, 0.2);
}

.carousel-arrow--prev {
    left: 18px;
}

.carousel-arrow--next {
    right: 18px;
}

.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 3;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.carousel-dot {
    width: 28px;
    height: 4px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
    transition: width 0.18s ease, background 0.18s ease;
}

.carousel-dot.is-active {
    width: 44px;
    background: var(--primary);
}

.showcase-card {
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.showcase-kicker,
.spotlight-country,
.timeline-date {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #ffc4ad;
    font-size: 0.84rem;
    font-weight: 700;
}

.showcase-card h3,
.spotlight-card h3,
.guide-manage-card h3,
.timeline-card h3,
.spot-card h3,
.detail-side h3 {
    margin-top: 14px;
    font-size: 1.18rem;
}

.showcase-card p {
    margin-top: 10px;
    line-height: 1.75;
}

.login-panel {
    display: grid;
    min-height: 690px;
}

.login-card {
    padding: 38px;
    display: grid;
    align-content: center;
    gap: 22px;
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(16, 31, 52, 0.92), rgba(8, 17, 31, 0.94)),
        var(--panel-strong);
}

.login-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-head h2 {
    font-size: 1.9rem;
}

.login-form,
.field {
    display: grid;
    gap: 10px;
}

.auth-panels {
    display: grid;
    gap: 16px;
}

.auth-panel {
    padding: 18px;
    border: 1px solid rgba(184, 203, 223, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.auth-panel h3 {
    margin-bottom: 4px;
    font-size: 1.04rem;
}

.auth-panel--register {
    background: rgba(29, 211, 176, 0.055);
}

.auth-panel--password {
    background: rgba(107, 124, 255, 0.055);
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.login-note {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(184, 203, 223, 0.14);
    background: rgba(8, 17, 31, 0.78);
    color: var(--text);
    outline: none;
}

.field textarea {
    min-height: 132px;
    padding: 14px 16px;
    resize: vertical;
    line-height: 1.7;
}

.field select {
    appearance: none;
    background:
        linear-gradient(45deg, transparent 50%, var(--primary) 50%) calc(100% - 22px) 22px / 7px 7px no-repeat,
        linear-gradient(135deg, var(--primary) 50%, transparent 50%) calc(100% - 16px) 22px / 7px 7px no-repeat,
        rgba(8, 17, 31, 0.92);
    color-scheme: dark;
}

.field select option {
    background: #0d1726;
    color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(29, 211, 176, 0.65);
    box-shadow: 0 0 0 4px rgba(29, 211, 176, 0.12);
}

.captcha-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 168px;
    gap: 14px;
    align-items: end;
}

.captcha-panel {
    display: grid;
    justify-items: stretch;
}

.captcha-refresh {
    display: block;
    align-self: end;
    border-radius: 16px;
}

.captcha-panel img {
    width: 100%;
    height: 52px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.banner-error {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 96, 96, 0.14);
    border: 1px solid rgba(255, 96, 96, 0.28);
    color: #ffc1c1;
}

.banner-success {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(29, 211, 176, 0.13);
    border: 1px solid rgba(29, 211, 176, 0.28);
    color: #9ff4df;
}

.login-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 0.92rem;
    color: var(--muted);
}

.dashboard-page {
    padding: 20px;
    min-height: 100vh;
    min-height: 100svh;
}

.app-shell {
    width: min(1500px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: var(--nav-w) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    min-height: calc(100vh - 40px);
    min-height: calc(100svh - 40px);
}

.app-sidebar {
    position: sticky;
    top: 20px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
    padding: 22px;
    min-height: calc(100vh - 40px);
    min-height: calc(100svh - 40px);
    border-radius: 30px;
    border: 1px solid var(--line);
    background: var(--panel-strong);
    box-shadow: var(--shadow);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-brand .profile-avatar-image {
    width: 48px;
    height: 48px;
    border-radius: 18px;
}

.sidebar-brand strong,
.sidebar-footer strong {
    display: block;
    font-size: 1.05rem;
}

.sidebar-nav {
    display: grid;
    align-content: start;
    gap: 6px;
}

.nav-item,
.mobile-nav-item,
.sub-nav-item {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 14px;
    color: var(--muted);
}

.nav-item:hover,
.nav-item.is-active,
.sub-nav-item:hover,
.sub-nav-item.is-active,
.mobile-nav-item.is-active {
    background: rgba(29, 211, 176, 0.12);
    color: var(--text);
}

.nav-group {
    display: grid;
    gap: 6px;
}

.sub-nav {
    display: grid;
    gap: 4px;
    padding-left: 12px;
}

.sub-nav-item {
    min-height: 34px;
    padding: 0 10px 0 18px;
    border-left: 1px solid rgba(184, 203, 223, 0.14);
    border-radius: 0 12px 12px 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.sidebar-footer {
    padding: 18px;
    display: grid;
    gap: 12px;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sidebar-profile .profile-avatar-image {
    width: 52px;
    height: 52px;
    border-radius: 18px;
}

.sidebar-profile div {
    min-width: 0;
}

.sidebar-profile strong,
.sidebar-profile span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-profile span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.88rem;
}

.app-main {
    display: grid;
    align-content: start;
    gap: 24px;
    min-height: calc(100vh - 40px);
    min-height: calc(100svh - 40px);
    padding-bottom: 0;
}

.module-page {
    display: grid;
    grid-template-rows: auto auto;
    align-content: start;
    gap: 22px;
    min-height: 100%;
}

.module-page > .section-heading {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.module-page h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
}

.module-page .hero-text {
    max-width: 66ch;
    line-height: 1.8;
}

.guide-admin-layout {
    display: grid;
    grid-template-columns: minmax(460px, 1.08fr) minmax(360px, 0.92fr);
    gap: 28px;
    align-items: start;
}

.guide-editor {
    position: sticky;
    top: 20px;
    padding: 22px;
}

.guide-form,
.guide-list-panel {
    display: grid;
    gap: 16px;
}

.form-grid-2,
.form-grid-3 {
    display: grid;
    gap: 14px;
}

.form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid-3 {
    grid-template-columns: minmax(96px, 0.62fr) minmax(180px, 1fr) minmax(180px, 1fr);
}

input[type="date"] {
    color-scheme: dark;
    min-width: 0;
    background:
        linear-gradient(135deg, rgba(15, 31, 49, 0.98), rgba(10, 22, 36, 0.98)) padding-box,
        linear-gradient(135deg, rgba(29, 211, 176, 0.36), rgba(255, 138, 91, 0.22)) border-box;
    border-color: transparent;
    color: var(--text);
}

input[type="date"]:focus {
    border-color: rgba(29, 211, 176, 0.55);
    box-shadow: 0 0 0 3px rgba(29, 211, 176, 0.12);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(1) sepia(0.4) saturate(1.4) hue-rotate(120deg);
    opacity: 0.78;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.publish-mode {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.visibility-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(184, 203, 223, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.visibility-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.visibility-option span {
    display: grid;
    gap: 4px;
}

.visibility-option--locked {
    grid-column: 1 / -1;
    cursor: default;
    border-color: rgba(29, 211, 176, 0.2);
    background: rgba(29, 211, 176, 0.08);
}

.visibility-option small {
    color: var(--muted);
}

.module-picker {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
}

.module-picker-head {
    display: grid;
    gap: 4px;
}

.module-picker-head span {
    font-weight: 700;
}

.module-picker-head small,
.module-option small {
    color: var(--muted);
}

.module-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(184, 203, 223, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.module-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.module-option span {
    display: grid;
    gap: 4px;
}

.module-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.module-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(29, 211, 176, 0.18);
    border-radius: 999px;
    background: rgba(29, 211, 176, 0.08);
    color: #9ff5e6;
    font-size: 0.84rem;
}

.builder-panel {
    display: grid;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
}

.builder-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.builder-tab {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    cursor: pointer;
}

.builder-tab.is-active {
    border-color: rgba(29, 211, 176, 0.32);
    background: rgba(29, 211, 176, 0.13);
    color: var(--text);
}

.interaction-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
}

.interaction-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-weight: 700;
}

.interaction-tab.is-active,
.interaction-tab:hover {
    border-color: rgba(29, 211, 176, 0.32);
    background: rgba(29, 211, 176, 0.13);
    color: var(--text);
}

.tripai-layout {
    display: grid;
    grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
    gap: 22px;
    align-items: start;
}

.tripai-form,
.tripai-preview-card {
    padding: 24px;
}

.tripai-form {
    display: grid;
    gap: 18px;
}

.tripai-form.is-generating {
    pointer-events: none;
}

.tripai-form.is-generating .tripai-generating,
.tripai-form.is-generating [data-tripai-submit] {
    pointer-events: auto;
}

.tripai-prompt-field textarea {
    min-height: 176px;
    padding-bottom: 62px;
}

.tripai-prompt-box {
    position: relative;
    display: block;
}

.tripai-voice-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(29, 211, 176, 0.3);
    border-radius: 999px;
    background: rgba(29, 211, 176, 0.14);
    color: var(--text);
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.tripai-voice-btn::before,
.tripai-voice-btn::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: inherit;
    border: 1px solid rgba(29, 211, 176, 0.38);
    opacity: 0;
    transform: scale(0.72);
}

.tripai-voice-btn.is-recording {
    border-color: rgba(255, 96, 96, 0.52);
    background: rgba(255, 96, 96, 0.16);
}

.tripai-voice-btn.is-recording::before {
    animation: voicePulse 1.45s ease-out infinite;
}

.tripai-voice-btn.is-recording::after {
    animation: voicePulse 1.45s ease-out 0.42s infinite;
}

.tripai-voice-btn.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.voice-icon {
    position: relative;
    z-index: 2;
    width: 11px;
    height: 17px;
    border: 2px solid currentColor;
    border-radius: 999px;
}

.voice-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 2px;
    height: 5px;
    background: currentColor;
    transform: translateX(-50%);
}

.voice-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 13px;
    height: 6px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 0 0 999px 999px;
    transform: translateX(-50%);
}

.voice-wave {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: none;
    place-items: center;
}

.tripai-voice-btn.is-recording .voice-wave {
    display: grid;
}

.voice-wave i {
    position: absolute;
    width: 3px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    animation: voiceBar 0.72s ease-in-out infinite;
}

.voice-wave i:nth-child(1) {
    margin-left: -20px;
    animation-delay: -0.18s;
}

.voice-wave i:nth-child(2) {
    margin-left: 20px;
}

.voice-wave i:nth-child(3) {
    margin-top: -22px;
    animation-delay: -0.34s;
}

.tripai-voice-status {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.tripai-generating {
    display: none;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(29, 211, 176, 0.24);
    border-radius: 16px;
    background: rgba(29, 211, 176, 0.09);
    color: var(--text);
}

.tripai-generating.is-visible {
    display: grid;
}

.tripai-generating strong,
.tripai-generating small {
    display: block;
}

.tripai-generating small {
    margin-top: 3px;
    color: var(--muted);
    line-height: 1.5;
}

.tripai-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(29, 211, 176, 0.22);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: tripAiSpin 0.82s linear infinite;
}

[data-tripai-submit]:disabled {
    cursor: wait;
    opacity: 0.78;
}

@keyframes voicePulse {
    0% {
        opacity: 0.65;
        transform: scale(0.72);
    }
    100% {
        opacity: 0;
        transform: scale(1.85);
    }
}

@keyframes voiceBar {
    0%,
    100% {
        transform: scaleY(0.52);
        opacity: 0.44;
    }
    50% {
        transform: scaleY(1.65);
        opacity: 0.94;
    }
}

@keyframes tripAiSpin {
    to {
        transform: rotate(360deg);
    }
}

.tripai-preview {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.tripai-preview-card {
    display: grid;
    gap: 18px;
}

.tripai-confirm {
    align-items: center;
    flex-wrap: wrap;
}

.tripai-empty {
    padding: 24px;
}

.permission-card,
.user-management-panel {
    padding: 24px;
}

.user-management-panel {
    display: grid;
    gap: 12px;
}

.user-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(184, 203, 223, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
}

.user-row strong,
.user-row span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-row span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
}

.user-permission-form button {
    min-width: 128px;
}

.builder-section {
    display: none;
    gap: 12px;
}

.builder-section.is-active {
    display: grid;
}

.builder-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.builder-list {
    display: grid;
    gap: 10px;
}

.builder-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 44px;
    gap: 10px;
    align-items: start;
}

.builder-row[data-row="transport"] {
    grid-template-columns: minmax(150px, 0.95fr) 104px minmax(112px, 0.7fr) minmax(0, 1.2fr) 44px;
}

.builder-row[data-row="packing"] {
    grid-template-columns: 36px minmax(0, 1fr) 44px;
}

.builder-row input,
.builder-row select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(184, 203, 223, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    padding: 0 12px;
}

.spot-day-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(184, 203, 223, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.spot-day-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.spot-day-head strong {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    font-size: 1.02rem;
    color: var(--text);
}

.spot-day-head [data-remove-spot-day] {
    grid-column: 2;
    grid-row: 1;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
}

.builder-row[data-row="spots"] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
}

.spot-row-controls {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) 118px 44px 44px;
    gap: 10px;
    align-items: start;
}

.spot-upload {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(184, 203, 223, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    cursor: pointer;
    overflow: hidden;
}

.spot-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.spot-preview {
    justify-self: center;
    width: 100%;
    height: clamp(180px, 28vw, 320px);
    border: 1px dashed rgba(184, 203, 223, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    object-fit: cover;
}

.spot-preview:not(.has-image) {
    display: none;
}

.day-field {
    display: grid;
    gap: 6px;
}

.builder-row input.is-invalid {
    border-color: rgba(255, 96, 96, 0.72);
    box-shadow: 0 0 0 3px rgba(255, 96, 96, 0.1);
}

.field-error {
    min-height: 16px;
    color: #ff8f8f;
    font-size: 0.78rem;
    line-height: 1.35;
}

.tiny-check {
    display: grid;
    place-items: center;
}

.tiny-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.packing-progress-text {
    margin-left: auto;
    color: var(--primary);
    font-weight: 700;
}

.workspace-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 420px;
    gap: 20px;
    padding: 30px;
}

.workspace-copy .hero-actions,
.hero-actions,
.card-actions,
.spotlight-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions {
    margin-top: 24px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hero-metrics--compact {
    align-content: center;
}

.metric-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
}

.metric-label {
    color: var(--muted);
}

.board-grid,
.module-grid-2 {
    display: grid;
    gap: 24px;
}

.board-grid {
    grid-template-columns: 1.3fr 0.9fr;
}

.board-panel,
.module-section {
    display: grid;
    align-content: start;
    gap: 18px;
}

.board-panel {
    padding: 24px;
}

.board-panel--wide {
    min-width: 0;
}

.section-heading {
    display: grid;
    gap: 8px;
}

.section-heading h2 {
    font-size: clamp(1.5rem, 2.4vw, 2.3rem);
}

.spotlight-grid,
.guide-grid--enhanced,
.timeline-grid,
.spot-grid {
    display: grid;
    align-items: stretch;
    gap: 16px;
}

.spotlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spotlight-card,
.guide-manage-card,
.timeline-card,
.spot-card {
    padding: 20px;
}

.spotlight-card,
.guide-manage-card {
    display: flex;
    flex-direction: column;
    min-height: 356px;
}

.spotlight-head,
.guide-manage-top,
.table-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.spotlight-head > div,
.guide-manage-top > div {
    min-width: 0;
}

.spotlight-card h3,
.guide-manage-card h3 {
    display: -webkit-box;
    min-height: 2.75em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.spotlight-card p,
.guide-manage-card p,
.timeline-card p,
.spot-card p,
.transport-card p {
    margin-top: 12px;
    line-height: 1.7;
}

.spotlight-card .guide-summary,
.guide-manage-card .guide-summary {
    display: -webkit-box;
    min-height: 5.1em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.guide-manage-card .tag-row,
.spotlight-card .tag-row {
    max-height: 70px;
    overflow: hidden;
}

.tag,
.status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
}

.tag {
    background: rgba(29, 211, 176, 0.12);
    color: #8df2df;
}

.status-chip {
    background: rgba(255, 255, 255, 0.06);
    color: #c7d2df;
}

.status-chip--live {
    background: rgba(29, 211, 176, 0.16);
    color: #8df2df;
}

.status-chip--warn {
    background: rgba(255, 200, 87, 0.18);
    color: #ffe09a;
}

.spotlight-actions,
.card-actions {
    margin-top: 18px;
}

.spotlight-card .spotlight-actions,
.guide-manage-card .card-actions {
    margin-top: auto;
    padding-top: 18px;
}

.guide-stats,
.timeline-meta,
.stat-list,
.profile-fields,
.transport-stack {
    display: grid;
    gap: 10px;
}

.guide-stats {
    margin-top: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    color: var(--muted);
    font-size: 0.94rem;
}

.guide-stats span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-mini,
.profile-card {
    display: flex;
    gap: 16px;
    align-items: center;
}

.profile-editor {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.profile-password-card {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.profile-avatar-panel {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.profile-avatar-preview {
    display: grid;
    place-items: center;
}

.profile-avatar-image {
    width: 112px;
    height: 112px;
    border-radius: 32px;
    border: 1px solid rgba(184, 203, 223, 0.14);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
}

.profile-avatar-image--large {
    width: 112px;
    height: 112px;
    border-radius: 32px;
}

.profile-avatar-upload {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.profile-avatar-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.stat-list {
    margin-top: 18px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 260px auto;
    gap: 14px;
    padding: 18px;
}

.timeline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.packing-list {
    display: grid;
    gap: 12px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.check-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.progress-bar {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #7bead5);
}

.profile-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 1;
}

.profile-fields--form {
    display: grid;
    gap: 14px;
}

.profile-field-wide {
    grid-column: 1 / -1;
}

.profile-fields div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.profile-fields strong {
    display: block;
    margin-top: 6px;
}

.spot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.table-shell {
    display: grid;
    gap: 10px;
}

.table-row {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.table-row--head {
    color: var(--text);
    font-weight: 700;
}

.transport-stack {
    gap: 12px;
}

.transport-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.transport-card span {
    display: block;
    margin-top: 6px;
    color: #cdd9e6;
}

.transport-detail-list {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0 !important;
    list-style: none;
}

.transport-detail-row {
    display: grid;
    grid-template-columns: minmax(140px, 0.85fr) minmax(96px, 0.55fr) minmax(0, 1.2fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(184, 203, 223, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.transport-detail-row span,
.transport-detail-row em {
    color: var(--muted);
    font-style: normal;
}

.detail-page {
    padding: 20px;
}

.detail-screen {
    width: min(1380px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 22px;
}

.detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 320px;
    gap: 20px;
    padding: 28px;
}

.detail-copy .hero-text {
    margin-top: 18px;
    line-height: 1.8;
    max-width: 56ch;
}

.detail-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.detail-metrics span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 138, 91, 0.14);
    color: #ffc4ad;
}

.detail-side {
    padding: 22px;
    display: grid;
    align-content: start;
    gap: 18px;
}

.card-actions--vertical {
    flex-direction: column;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 360px;
    gap: 22px;
}

.content-panel,
.sidebar-panel {
    display: grid;
    gap: 18px;
}

.section-stack,
.tip-list {
    display: grid;
    gap: 16px;
}

.section-card,
.tip-card,
.sidebar-card {
    padding: 22px;
}

.section-card p,
.tip-card p {
    margin-top: 12px;
    line-height: 1.75;
}

.section-card ul {
    margin: 14px 0 0;
    padding-left: 18px;
    line-height: 1.8;
    color: var(--muted);
}

.detail-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.detail-section-head h3 {
    margin: 0;
}

.detail-check-list {
    display: grid;
    gap: 10px;
    padding-left: 0 !important;
    list-style: none;
}

.detail-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(184, 203, 223, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.detail-check-row span {
    color: var(--muted);
    font-size: 0.88rem;
}

.detail-check-row.is-ready {
    border-color: rgba(29, 211, 176, 0.18);
    background: rgba(29, 211, 176, 0.08);
}

.spot-detail-stack,
.spot-day-group {
    display: grid;
    gap: 14px;
}

.spot-day-group h4 {
    margin: 0;
    color: var(--primary);
}

.detail-spot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.detail-spot-card {
    display: grid;
    gap: 12px;
    align-items: start;
    min-height: 0;
    padding: 12px;
    border: 1px solid rgba(184, 203, 223, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
}

.detail-spot-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
}

.detail-spot-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 2px 2px 4px;
}

.detail-spot-copy span {
    color: var(--muted);
    font-size: 0.9rem;
}

.detail-spot-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty-screen {
    min-height: calc(100vh - 48px);
    display: grid;
    place-items: center;
}

.empty-card {
    width: min(760px, 100%);
    padding: 34px;
}

.mobile-nav {
    display: none;
}

.like-toggle.is-active,
.favorite-toggle.is-active {
    background: rgba(29, 211, 176, 0.18);
    border-color: rgba(29, 211, 176, 0.28);
    color: #8df2df;
}

.card-shell,
.spotlight-card,
.guide-manage-card,
.timeline-card,
.spot-card,
.table-row,
.transport-card,
.showcase-card,
.login-card,
.workspace-hero,
.detail-hero {
    animation: rise 0.48s ease both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) {
    .app-shell,
    .board-grid,
    .module-grid-2,
    .detail-layout,
    .detail-hero,
    .workspace-hero,
    .login-screen {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: static;
        min-height: auto;
    }

    .login-showcase,
    .login-panel {
        min-height: auto;
    }

    .login-screen {
        min-height: auto;
    }

    .travel-carousel {
        height: 420px;
    }

    .spotlight-grid,
    .spot-grid,
    .timeline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .dashboard-page,
    .detail-page,
    .login-page,
    .empty-page {
        padding: 12px;
    }

    .app-sidebar {
        display: none;
    }

    .app-shell,
    .app-main {
        min-height: calc(100vh - 24px);
        min-height: calc(100svh - 24px);
    }

    .app-main {
        padding-bottom: 108px;
    }

    .login-screen {
        padding: 10px;
        border-radius: 28px;
    }

    .mobile-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
        gap: 8px;
        padding: 10px;
        border-radius: 22px;
        border: 1px solid var(--line);
        background: rgba(10, 19, 34, 0.92);
        backdrop-filter: blur(20px);
        box-shadow: var(--shadow);
        z-index: 40;
    }

    .mobile-nav-item {
        justify-content: center;
        padding: 0 8px;
        min-height: 44px;
        font-size: 0.92rem;
    }

    .spotlight-grid,
    .spot-grid,
    .timeline-grid,
    .guide-grid--enhanced,
    .guide-stats,
    .profile-fields,
    .profile-editor,
    .tripai-layout,
    .hero-metrics,
    .guide-admin-layout,
    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }

    .guide-editor {
        position: static;
    }

    .filter-bar,
    .captcha-grid {
        grid-template-columns: 1fr;
    }

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

    .builder-row[data-row="transport"],
    .transport-detail-row,
    .user-row {
        grid-template-columns: 1fr;
    }

    .spot-row-controls [data-field="name"],
    .spot-row-controls .spot-upload {
        grid-column: 1 / -1;
    }

    .travel-carousel {
        height: 320px;
    }

    .showcase-copy h1,
    .workspace-copy h1,
    .detail-copy h1,
    .empty-card h1 {
        max-width: none;
        font-size: clamp(2.1rem, 11vw, 3.4rem);
    }
}

@media (max-width: 560px) {
    .login-showcase,
    .login-card,
    .workspace-hero,
    .board-panel,
    .guide-manage-card,
    .spotlight-card,
    .timeline-card,
    .spot-card,
    .detail-hero,
    .section-card,
    .tip-card,
    .sidebar-card,
    .empty-card {
        padding: 18px;
        border-radius: 22px;
    }

    .login-head,
    .profile-card,
    .profile-mini {
        align-items: flex-start;
        flex-direction: column;
    }

    .travel-carousel {
        height: 260px;
        border-radius: 20px;
    }

    .carousel-arrow {
        opacity: 1;
        width: 38px;
        height: 38px;
    }

    .detail-spot-grid,
    .detail-spot-card {
        grid-template-columns: 1fr;
    }

    .detail-spot-image {
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
    }
}
