/*
==========================================
Framer Home - CSS Style System
Inspired by Framer.com design aesthetics
==========================================
*/

/* ========== CSS Variables =========== */
:root {
    /* Colors - Pure Black Theme */
    --bg-black: #000000;
    --bg-card: rgba(0, 0, 0, 0.6);
    --bg-nav: rgba(0, 0, 0, 0.65);
    --bg-mobile-menu: rgba(0, 0, 0, 0.85);

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-tertiary: rgba(255, 255, 255, 0.4);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-focus: rgba(255, 255, 255, 0.2);

    /* Accent Colors */
    --accent-blue: #3B82F6;
    --accent-purple: #8B5CF6;

    /* Glassmorphism */
    --glass-blur: blur(10px);
    --glass-blur-heavy: blur(20px);
    --glass-blur-light: blur(8px);

    /* Spacing System */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;
    --spacing-2xl: 120px;

    /* Navigation sizing */
    --nav-vertical-padding: 8px;
    --nav-auth-slot-size: 44px;
    --nav-height: calc(var(--nav-auth-slot-size) + var(--nav-vertical-padding) + var(--nav-vertical-padding) + 1px);
    --nav-dropdown-overlap: 1px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Typography */
    /* Keep English display text elegant, but pin Chinese fallback to a stable sans stack
       so Hero first paint does not flash through an older serif/Songti-like face. */
    --font-display: 'Playfair Display', 'Outfit', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    --font-display-zh: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    --font-display-en: 'Playfair Display', 'Outfit', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.6s ease;

    /* Z-Index Layers */
    --z-nav: 1200;
    --z-mobile-menu: 10020;
    --z-modal: 2000;
}

/* ========== Global Resets =========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    scrollbar-width: none;
    scrollbar-gutter: auto;
    -ms-overflow-style: none;
}

body {
    background-color: var(--bg-black);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scrollbar-width: none;
    scrollbar-gutter: auto;
    -ms-overflow-style: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 20260430_HOME_ROOT_SCROLLBAR_FULL_HIDE_1
   Keep the document scrollbar from taking layout width before the deferred
   public scrollbar helper hydrates during cross-page navigation. */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

html::-webkit-scrollbar-track,
html::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-track,
body::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-corner {
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

body.home-page {
    position: relative;
}

body.home-page #main-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

.home-section-shell-section {
    --home-shell-min-height: 520px;
    --home-shell-tile-bg: rgba(255, 255, 255, 0.075);
    --home-shell-tile-border: rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 1400px;
    min-height: var(--home-shell-min-height);
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.home-section-shell-section[hidden] {
    display: none;
}

.home-section-shell-section--prompts { --home-shell-min-height: 820px; }
.home-section-shell-section--shop { --home-shell-min-height: 420px; }
.home-section-shell-section--gongyi { --home-shell-min-height: 520px; }
.home-section-shell-section--verify { --home-shell-min-height: 560px; }
.home-section-shell-section--guestbook { --home-shell-min-height: 680px; }
.home-section-shell-section--ticker { --home-shell-min-height: 180px; }

.home-section-shell {
    width: min(1120px, 100%);
    opacity: 0.92;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.home-section-shell__header {
    width: min(640px, 88vw);
    margin: 0 auto var(--spacing-xl);
    display: grid;
    gap: 12px;
    justify-items: center;
    text-align: center;
}

.home-section-shell__header .section-title {
    font-size: clamp(32px, 5vw, 68px);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.12;
    margin: 0;
}

.home-section-shell__header .section-subtitle {
    max-width: 620px;
    margin: 0;
    color: var(--text-secondary);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
}

.home-section-shell__tile {
    display: block;
    background:
        linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.08) 42%, transparent 76%),
        var(--home-shell-tile-bg);
    background-size: 220% 100%, 100% 100%;
    border: 1px solid var(--home-shell-tile-border);
    animation: home-section-shell-shimmer 1.8s ease-in-out infinite;
}

.home-section-shell__body {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.home-section-shell__tile {
    min-height: 150px;
    border-radius: 12px;
    background-color: var(--home-shell-tile-bg);
}

.home-section-shell__tile--2 {
    min-height: 190px;
}

.home-section-shell__tile--3 {
    min-height: 120px;
}

.home-section-shell__body--verify {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.home-section-shell__body--guestbook {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-section-shell__body--ticker {
    grid-template-columns: 1fr;
}

.home-section-shell__body--ticker .home-section-shell__tile {
    min-height: 42px;
    border-radius: 999px;
}

@keyframes home-section-shell-shimmer {
    0% { background-position: 180% 0, 0 0; }
    100% { background-position: -80% 0, 0 0; }
}

html[data-theme="light"] body.home-page .home-section-shell-section {
    --home-shell-tile-bg: rgba(15, 23, 42, 0.045);
    --home-shell-tile-border: rgba(15, 23, 42, 0.06);
}

@media (max-width: 767px) {
    .home-section-shell-section {
        padding-right: var(--spacing-md);
        padding-left: var(--spacing-md);
    }

    .home-section-shell-section--prompts { --home-shell-min-height: 660px; }
    .home-section-shell-section--shop { --home-shell-min-height: 360px; }
    .home-section-shell-section--gongyi { --home-shell-min-height: 430px; }
    .home-section-shell-section--verify { --home-shell-min-height: 460px; }
    .home-section-shell-section--guestbook { --home-shell-min-height: 560px; }

    .home-section-shell__body,
    .home-section-shell__body--guestbook {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-section-shell__body--verify,
    .home-section-shell__body--ticker {
        grid-template-columns: 1fr;
    }
}

body.home-page #guestbookModal:not(.active):not(.guestbook-modal-interactive) {
    display: none !important;
}

body.home-page #guestbookModal.active,
body.home-page #guestbookModal.guestbook-modal-interactive {
    display: flex !important;
}

html.mobile-menu-open,
body.mobile-menu-open {
    overflow: hidden;
    overscroll-behavior: none;
}

/* 20260502_PUBLIC_MOBILE_TAP_HIGHLIGHT_GUARD_1 */
@media (hover: none) and (pointer: coarse) {
    :where(a, button, label, summary, [role="button"], [data-action], [data-home-action], [data-shop-action], [data-comments-action], [class*="-btn"], [class*="__btn"], [class*="-button"], [class*="__button"], .nav-trigger, .mobile-menu-trigger, .mobile-menu-link, .login-trigger-btn, .user-avatar-btn, .theme-toggle-btn, #authBtn, #notifBtn) {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        touch-action: manipulation;
    }

    :where(input, textarea, select) {
        -webkit-tap-highlight-color: transparent;
    }

    :where(a, button, summary, [role="button"], [data-action], [data-home-action], [data-shop-action], [data-comments-action], [class*="-btn"], [class*="__btn"], [class*="-button"], [class*="__button"]):focus:not(:focus-visible) {
        outline: none;
    }
}

/* ========== Typography =========== */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 10vw, 110px);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0;
    /* Use padding-top on parent instead, margin-top here for fine-tuning */
    padding-top: max(0px, calc(60px - 5vw));
}

.section-title {
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: var(--spacing-sm);
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -0.05em;
}

h3 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ========== Navigation Bar =========== */
.framer-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-nav);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-subtle);
    z-index: var(--z-nav);
    transition: background-color var(--transition-medium);
    isolation: isolate;
}

.framer-nav.scrolled {
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--nav-vertical-padding) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity var(--transition-fast);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    /* Ensure SVG inherits color */
}

.nav-logo svg {
    width: 40px;
    height: 40px;
    display: block;
    -webkit-tap-highlight-color: transparent;
}

.nav-logo:hover {
    opacity: 0.8;
}

/* 20260512_NAV_AUTH_SESSION_MATCH_1 */
.nav-logo:active {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

@media (hover: none) and (pointer: coarse) {
    .nav-logo:hover {
        opacity: 1;
    }
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color var(--transition-fast);
    cursor: pointer;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

/* Support Dropdown */
.nav-support-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-support-wrapper>a {
    cursor: pointer;
}

.nav-support-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    min-width: 140px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 9999;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.nav-support-wrapper:hover .nav-support-dropdown {
    opacity: 1;
    visibility: visible;
}

.nav-support-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-secondary) !important;
    font-size: 14px !important;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-support-dropdown a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary) !important;
}

.nav-support-dropdown a i {
    font-size: 16px;
    color: #2AABEE;
}

/* Nav Dropdown Wrapper */
.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown>a {
    padding: 8px 0;
}

/* Dropdown Menu - Frosted Glass (Legacy - inside nav) */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    padding: 8px 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(32px) saturate(150%);
    -webkit-backdrop-filter: blur(32px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 9999;
}

/* =============================================
   Dropdown Portal — No opacity transition
   
   backdrop-filter + opacity transition = Chromium dark-flash bug.
   The browser flattens the entire subtree into a cached texture
   during opacity animation, causing backdrop-filter to render
   incorrectly. Solution: no opacity transition, instant toggle.
   ============================================= */
.nav-dropdown-portal {
    position: fixed;
    min-width: 140px;
    padding: 8px 0;
    /* Glass effect — directly on this element, no pseudo-element */
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Remove top border to ensure a seamless connection with the navigation bar */
    border-top: none;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    /* Centering: JS sets left to trigger center, CSS shifts back 50% */
    transform: translateX(-50%) translateZ(0);
    /* No opacity transition — instant show/hide to avoid dark-flash bug */
    visibility: hidden;
    pointer-events: none;
    z-index: 9999;
    /* Ensure it floats above the nav bar's border when pushed up 1px */
}



.nav-dropdown-portal.visible {
    visibility: visible;
    pointer-events: auto;
}

.nav-dropdown-portal,
.nav-dropdown-portal * {
    cursor: pointer !important;
}

.nav-dropdown-portal a {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s ease, background-color 0.15s ease;
    white-space: nowrap;
    cursor: pointer !important;
}

.nav-dropdown-portal a *,
.nav-dropdown-portal button,
.nav-dropdown-portal button * {
    cursor: pointer !important;
}

.nav-dropdown-portal a:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.08);
}

/* Ensure the ACTIVE trigger stays highlighted when dropdown is open */
.framer-nav .nav-menu a.active,
.framer-nav .nav-menu a.active:hover,
a.nav-trigger.active {
    color: var(--text-primary) !important;
    opacity: 1 !important;
}

.nav-item-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.nav-dropdown a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

/* Language Toggle Button */
.lang-toggle-btn {
    height: 32px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lang-toggle-btn:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lang-toggle-btn .lang-text {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.lang-toggle-btn .lang-text.active {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.lang-toggle-btn .lang-separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Hamburger Menu (Mobile) */
.nav-hamburger {
    display: none;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: calc(var(--z-mobile-menu) + 1);
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -12px;
    margin-top: -1px;
    transition: all var(--transition-medium);
}

.nav-hamburger span:nth-child(1) {
    transform: translateY(-5px);
}

.nav-hamburger span:nth-child(2) {
    transform: translateY(5px);
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
    transform: rotate(-45deg);
}

/* Mobile Menu Overlay - Solid Black */
.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    background-color: #000000;
    /* Force solid black as requested */
    z-index: calc(var(--z-nav) - 1);
    padding: var(--spacing-lg) var(--spacing-lg) calc(var(--spacing-xl) + env(safe-area-inset-bottom, 50px));
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Mobile Menu Item Container */
.mobile-menu-item {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Staggered fade-in animation */
.mobile-menu.active .mobile-menu-item:nth-child(1) {
    animation: fadeInDown 0.5s ease 0.1s forwards;
}

.mobile-menu.active .mobile-menu-item:nth-child(2) {
    animation: fadeInDown 0.5s ease 0.2s forwards;
}

.mobile-menu.active .mobile-menu-item:nth-child(3) {
    animation: fadeInDown 0.5s ease 0.3s forwards;
}

.mobile-menu.active .mobile-menu-item:nth-child(4) {
    animation: fadeInDown 0.5s ease 0.4s forwards;
}

.mobile-menu.active .mobile-menu-item:nth-child(5) {
    animation: fadeInDown 0.5s ease 0.5s forwards;
}

.mobile-menu.active .mobile-menu-item:nth-child(6) {
    animation: fadeInDown 0.5s ease 0.6s forwards;
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Links (no dropdown) */
.mobile-menu-link {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.02em;
    padding: var(--spacing-md) 0;
    transition: opacity var(--transition-fast);
}

.mobile-menu-link:hover {
    color: var(--text-primary);
}

/* Mobile Menu Triggers (with dropdown) */
.mobile-menu-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    padding: var(--spacing-md) 0;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.mobile-menu-trigger:hover {
    color: var(--text-primary);
}

.mobile-menu-trigger.active {
    color: var(--text-primary);
}

.mobile-menu-trigger i {
    font-size: 16px;
    transition: transform var(--transition-medium);
}

.mobile-menu-trigger.active i {
    transform: rotate(180deg);
}

/* Mobile Submenu */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-submenu.active {
    max-height: 500px;
    padding-top: 8px;
    padding-bottom: 8px;
    /* Adjust based on content */
}

.mobile-submenu a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    margin-left: 8px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.mobile-submenu a:hover {
    color: var(--text-primary);
    border-left-color: var(--text-primary);
    transform: translateX(4px);
}

/*
 * Shared auth dropdown backdrop.
 * prompts.html does not load the legacy homepage stylesheet where this lives,
 * so the injected overlay was previously unstyled and inconsistent.
 */
.dropdown-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 2000;
}

.dropdown-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.mobile-menu-open .chat-widget-fab {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ========== Buttons =========== */
.btn {
    padding: 12px 24px;
    border-radius: 999px;
    /* pill shape */
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-black);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.home-hover-lift-active {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.08);
}

.btn-hero-primary {
    background-color: var(--text-primary);
    color: var(--bg-black);
    padding: 16px 32px;
    font-size: 16px;
}

.btn-hero-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-focus);
    padding: 16px 32px;
    font-size: 16px;
}

/* ========== Hero Section =========== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-section {
    background: #000;
}

/* Bottom gradient fade — smooth transition to site background */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, #000);
    pointer-events: none;
    z-index: 1;
}

.hero-fx-liquid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    pointer-events: none;
    z-index: 0;
}

/* Noise overlay for film texture */
.hero-noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

/* Ensure hero content renders above beams */
.hero-section>.hero-title,
.hero-section>.hero-subtitle,
.hero-section>.hero-progress,
.hero-section>.hero-cta,
.hero-section>.hero-carousel {
    position: relative;
    z-index: 2;
}

.hero-prismchrono-scene {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-prismchrono-scene::before,
.hero-prismchrono-scene::after {
    content: none;
}

.hero-prism-preview-bg {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-prism-preview-bg::before {
    content: none;
}

.hero-prism-preview-effect-layer {
    position: absolute;
    inset: -18%;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(112deg, transparent 10%, rgba(37, 99, 235, 0.2) 20%, transparent 34%),
        linear-gradient(116deg, transparent 42%, rgba(14, 165, 233, 0.24) 52%, transparent 66%),
        linear-gradient(108deg, transparent 64%, rgba(20, 184, 166, 0.18) 74%, transparent 86%);
    filter: blur(40px);
    mix-blend-mode: multiply;
    animation: hero-prismchrono-prism-slide 9s ease-in-out infinite alternate;
}

.hero-prismchrono-field {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: center;
    perspective: 1220px;
    transform: translateY(10%);
}

.hero-prismchrono-field::before {
    content: none;
}

.hero-prismchrono-field i,
.hero-prismchrono-field span,
.hero-prismchrono-field em {
    position: absolute;
}

.hero-prismchrono-field i {
    left: 50%;
    top: 50%;
    width: var(--hero-prism-ring-size, min(60vw, 720px));
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1.25px solid rgba(37, 99, 235, 0.16);
    /* 20260502_HOME_PRISM_FACE_NO_SHADOW_1 */
    box-shadow: none;
    opacity: var(--hero-prism-ring-opacity-max, 0.42);
    transform: translate(-50%, -50%) rotateX(72deg) rotateZ(var(--hero-prism-ring-rot, 0deg)) scale(1);
    animation: hero-prismchrono-orbit var(--hero-prism-ring-speed, 8.8s) ease-in-out infinite;
}

.hero-prismchrono-field i:nth-child(1) {
    --hero-prism-ring-size: min(64vw, 780px);
    --hero-prism-ring-rot: -8deg;
    --hero-prism-ring-opacity-max: 0.42;
}

.hero-prismchrono-field i:nth-child(2) {
    --hero-prism-ring-size: min(48vw, 560px);
    --hero-prism-ring-rot: 12deg;
    --hero-prism-ring-speed: 7.6s;
    --hero-prism-ring-opacity-max: 0.34;
    animation-delay: -1.8s;
}

.hero-prismchrono-field i:nth-child(3) {
    --hero-prism-ring-size: min(32vw, 360px);
    --hero-prism-ring-rot: -18deg;
    --hero-prism-ring-speed: 6.6s;
    --hero-prism-ring-opacity-max: 0.28;
    animation-delay: -3.2s;
}

.hero-prismchrono-field span {
    left: 50%;
    top: 50%;
    width: var(--hero-prism-cube-size, 160px);
    height: var(--hero-prism-cube-size, 160px);
    scale: 0.58;
    transform-origin: center center;
    transform-style: preserve-3d;
    will-change: transform, scale;
    /* 20260501_HOME_PRISM_CUBE_INTRO_2: scale only; opacity would flatten preserve-3d into thin planes. */
    animation:
        hero-prismchrono-spin var(--hero-prism-cube-speed, 8.8s) linear infinite,
        hero-prismchrono-cube-intro 720ms cubic-bezier(0.22, 1, 0.36, 1) var(--hero-prism-cube-intro-delay, 0ms) both;
}

.hero-prismchrono-field span:nth-of-type(1) {
    --hero-prism-cube-size: 160px;
    --hero-prism-cube-x: 0px;
    --hero-prism-cube-y: -96px;
    --hero-prism-cube-z: 0px;
    --hero-prism-cube-speed: 18.8s;
    --hero-prism-cube-intro-delay: 70ms;
}

.hero-prismchrono-field span:nth-of-type(2) {
    --hero-prism-cube-size: 98px;
    --hero-prism-cube-x: -432px;
    --hero-prism-cube-y: -252px;
    --hero-prism-cube-z: -68px;
    --hero-prism-cube-speed: 12.8s;
    --hero-prism-cube-intro-delay: 0ms;
    animation-direction: reverse, normal;
}

.hero-prismchrono-field span:nth-of-type(3) {
    --hero-prism-cube-size: 92px;
    --hero-prism-cube-x: 424px;
    --hero-prism-cube-y: 214px;
    --hero-prism-cube-z: 88px;
    --hero-prism-cube-speed: 13.6s;
    --hero-prism-cube-intro-delay: 140ms;
}

.hero-prismchrono-field span b {
    position: absolute;
    inset: 0;
    display: block;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(56, 189, 248, 0.06));
    /* 20260502_HOME_PRISM_FACE_NO_SHADOW_1: shadows read as a gray veil over the hero ruler after cube intro. */
    box-shadow: none;
}

.hero-prismchrono-field span b:nth-child(1) { transform: rotateY(0deg) translateZ(calc(var(--hero-prism-cube-size, 160px) / 2)); }
.hero-prismchrono-field span b:nth-child(2) { transform: rotateY(90deg) translateZ(calc(var(--hero-prism-cube-size, 160px) / 2)); }
.hero-prismchrono-field span b:nth-child(3) { transform: rotateX(90deg) translateZ(calc(var(--hero-prism-cube-size, 160px) / 2)); }
.hero-prismchrono-field span b:nth-child(4) { transform: translateZ(calc(var(--hero-prism-cube-size, 160px) / -2)); }

.hero-prismchrono-field em {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(14, 165, 233, 0.38);
    box-shadow: none;
    transform: var(--hero-prism-node-transform) scale(0.82);
    animation: hero-prismchrono-node 3.6s ease-in-out infinite;
}

.hero-prismchrono-field em:nth-of-type(1) { --hero-prism-node-transform: translate(-220px, -72px); }
.hero-prismchrono-field em:nth-of-type(2) { --hero-prism-node-transform: translate(196px, -102px); animation-delay: -0.9s; }
.hero-prismchrono-field em:nth-of-type(3) { --hero-prism-node-transform: translate(122px, 164px); animation-delay: -1.8s; }
.hero-prismchrono-field em:nth-of-type(4) { --hero-prism-node-transform: translate(-154px, 138px); animation-delay: -2.7s; }

@keyframes hero-prismchrono-prism-slide {
    from {
        transform: translateX(-2%) rotate(0deg);
    }

    to {
        transform: translateX(3%) rotate(1deg);
    }
}

@keyframes hero-prismchrono-glow {
    from {
        opacity: 0.62;
        transform: translate(-50%, -50%) scale(0.94);
    }

    to {
        opacity: 0.86;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes hero-prismchrono-orbit {
    0%,
    100% {
        opacity: calc(var(--hero-prism-ring-opacity-max, 0.42) * 0.58);
        transform: translate(-50%, -50%) rotateX(72deg) rotateZ(var(--hero-prism-ring-rot, 0deg)) scale(0.98);
    }

    50% {
        opacity: var(--hero-prism-ring-opacity-max, 0.42);
        transform: translate(-50%, -50%) rotateX(72deg) rotateZ(var(--hero-prism-ring-rot, 0deg)) scale(1.03);
    }
}

@keyframes hero-prismchrono-spin {
    0% {
        transform: translate(-50%, -50%) translate(var(--hero-prism-cube-x, 0), var(--hero-prism-cube-y, 0)) translateZ(var(--hero-prism-cube-z, 0px)) rotateX(58deg) rotateY(0deg) rotateZ(18deg);
    }

    50% {
        transform: translate(-50%, -50%) translate(var(--hero-prism-cube-x, 0), var(--hero-prism-cube-y, 0)) translateZ(var(--hero-prism-cube-z, 0px)) rotateX(68deg) rotateY(180deg) rotateZ(8deg);
    }

    100% {
        transform: translate(-50%, -50%) translate(var(--hero-prism-cube-x, 0), var(--hero-prism-cube-y, 0)) translateZ(var(--hero-prism-cube-z, 0px)) rotateX(58deg) rotateY(360deg) rotateZ(18deg);
    }
}

@keyframes hero-prismchrono-cube-intro {
    from {
        scale: 0.58;
    }

    to {
        scale: 1;
    }
}

@keyframes hero-prismchrono-node {
    0%,
    100% {
        opacity: 0.42;
        transform: var(--hero-prism-node-transform) scale(0.82);
    }

    50% {
        opacity: 1;
        transform: var(--hero-prism-node-transform) scale(1.18);
    }
}


.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(18px, 2vw, 24px);
    color: var(--text-secondary);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    line-height: 1.2;
    min-height: calc(1.2em * 1);
}

html[lang^="zh"] .hero-title,
html[lang^="zh"] .hero-subtitle {
    font-family: var(--font-display-zh);
    font-synthesis: none;
}

html[lang^="en"] .hero-title {
    font-family: var(--font-display-en);
}

html[lang^="en"] .hero-subtitle {
    font-family: var(--font-body);
}

.hero-cta {
    margin-top: var(--spacing-xl);
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

.hero-cta .btn {
    width: 128px;
    height: 42px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
}

.hero-cta .hero-cta-btn {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

/* ========== Hero Progress Indicator =========== */
.hero-progress {
    width: 280px;
    height: 24px;
    margin: var(--spacing-xl) auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-progress-track {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-tick {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.progress-tick--covered {
    opacity: 0;
}

.hero-progress-thumb {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 20px;
    /* 20260501_HOME_PROGRESS_THUMB_TRANSPARENT_1: keep the thumb transparent; runtime/static covered ticks disappear instead. */
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: border-color 0.3s ease-out,
        box-shadow 0.3s ease-out;
    pointer-events: none;
    z-index: 2;
}


.hero-progress-thumb.active {
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

/* ========== Hero Carousel =========== */
.hero-carousel {
    width: 100vw;
    /* Symmetrical negative margins to ensure carousel spans full viewport width */
    margin-inline: calc(-50vw + 50%);
    margin-top: 120px;
    /* Add spacing above carousel */
    overflow-x: scroll;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
    scroll-snap-type: none;
    /* Disabled by default for initial centering */
    scroll-padding-inline: calc(50vw - 90px);
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.hero-section[data-home-hero-centering="1"] .hero-carousel {
    /* 20260507_HOME_HERO_CENTERING_LOCK_1: keep hydration centering invisible. */
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
}

/* Enable scroll-snap only after user interaction */
.hero-carousel.is-snapping {
    scroll-snap-type: x mandatory;
}

.hero-carousel::-webkit-scrollbar {
    display: none;
}

.hero-carousel-track {
    display: flex;
    gap: 96px;
    /* Padding = 50vw - half of card width (180/2 = 90) for centering */
    padding: 0 calc(50vw - 90px);
    width: fit-content;
    position: relative;
    z-index: 3;
}

html[data-theme="dark"] body.home-page .hero-carousel .entry-card-ui {
    opacity: 1 !important;
}

@media (min-width: 1440px) and (min-height: 900px) {
    html[data-theme="dark"] body.home-page .hero-progress {
        margin-top: calc(var(--spacing-xl) + 34px);
    }

    html[data-theme="dark"] body.home-page .hero-carousel {
        margin-top: 216px;
    }
}

.hero-section[data-home-static-hero="1"]:not([data-render-signature]) .hero-progress-thumb {
    left: calc(50% - 18px);
}

.hero-section[data-home-static-hero="1"]:not([data-render-signature]) .hero-carousel {
    overflow: hidden;
}

.hero-section[data-home-static-hero="1"]:not([data-render-signature]) .hero-carousel-track {
    display: grid;
    grid-template-columns: repeat(5, 180px);
    justify-content: center;
    gap: 96px;
    width: 100%;
    padding: 0;
}

.hero-section[data-home-static-hero="1"]:not([data-render-signature]) .entry-card-ui {
    opacity: 0.7;
}

.hero-section[data-home-hero-centering="1"] .entry-card-ui {
    transition: none !important;
}

.hero-section[data-home-static-hero="1"]:not([data-render-signature]) .entry-card:nth-child(1) .home-entry-card-icon {
    color: #f472b6;
}

.hero-section[data-home-static-hero="1"]:not([data-render-signature]) .entry-card:nth-child(2) .home-entry-card-icon {
    color: #5ed8f8;
}

.hero-section[data-home-static-hero="1"]:not([data-render-signature]) .entry-card:nth-child(3) .home-entry-card-icon {
    color: #4ade80;
}

.hero-section[data-home-static-hero="1"]:not([data-render-signature]) .entry-card:nth-child(4) .home-entry-card-icon {
    color: #667eea;
}

.hero-section[data-home-static-hero="1"]:not([data-render-signature]) .entry-card:nth-child(5) .home-entry-card-icon {
    color: #f59e0b;
}

.entry-card {
    flex-shrink: 0;
    width: 180px;
    height: 140px;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
    scroll-snap-align: center;
    position: relative;
    z-index: 4;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.entry-card-ui {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    padding: var(--spacing-md);
    text-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    will-change: transform, opacity;
    pointer-events: none;
}

.entry-card-ui>* {
    pointer-events: none;
}

.entry-card:hover .entry-card-ui {
    transform: scale(1.05);
}

.entry-card-ui>i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: var(--spacing-sm);
}

.home-entry-card-icon {
    color: var(--accent-blue);
}

.entry-card-ui>i.home-entry-card-icon--gongyi {
    display: inline-block;
    font-size: 0;
    line-height: 0;
    width: 46.55px;
    height: 40px;
    background-color: currentColor;
    -webkit-mask: url('/assets/gongyi-entry-icon.svg') center / 100% 100% no-repeat;
    mask: url('/assets/gongyi-entry-icon.svg') center / 100% 100% no-repeat;
    filter: drop-shadow(0 0 10px rgba(94, 216, 248, 0.18));
}

.entry-card-ui>span {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========== Glass Cards =========== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur-light);
    -webkit-backdrop-filter: var(--glass-blur-light);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: all var(--transition-medium);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: var(--border-focus);
}

/* ========== Content Sections =========== */
.content-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-lg);
    position: relative;
}

/* Top gradient fade on first content section — blends hero black into site bg */
#prompts-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, #000, transparent);
    pointer-events: none;
    z-index: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

/* ========== Grid Layouts =========== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

/* ========== Masonry Layout (Framer-style) =========== */
.prompts-masonry-section {
    padding: var(--spacing-xl) 0;
    /* Remove horizontal padding */
    overflow: hidden;
    /* Hide overflow for edge-to-edge effect */
}

/* Wrapper for masonry + gradient mask positioning */
.prompts-masonry-wrapper {
    position: relative;
    max-height: 1000px;
    overflow: hidden;
}

.masonry-container {
    display: flex;
    gap: 12px;
    padding: 0 12px;
    position: relative;
    align-items: flex-start;
    /* Removed mask-image - gradient-mask handles fade now */
}

.masonry-container[data-columns="1"] {
    max-width: min(360px, calc(100vw - 24px));
    margin: 0 auto;
}

.masonry-container[data-columns="2"] {
    max-width: min(760px, calc(100vw - 24px));
    margin: 0 auto;
}

.masonry-container[data-columns="3"] {
    max-width: min(1120px, calc(100vw - 24px));
    margin: 0 auto;
}

/* Pseudo-element removed as mask-image is used */

.masonry-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    will-change: transform;
    transition: transform 0.05s linear;
    min-width: 0;
    /* Allow flex items to shrink below content size */
}

.masonry-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    cursor: default;
    margin-bottom: 12px;
    pointer-events: none;
    user-select: none;
}

.masonry-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* Crop to fill */
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.masonry-container[data-columns="1"] .masonry-card img {
    height: min(520px, 70vh);
}

.masonry-card-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    display: block;
    background:
        radial-gradient(circle at top, rgba(244, 114, 182, 0.24), transparent 55%),
        linear-gradient(180deg, rgba(32, 32, 32, 0.96), rgba(14, 14, 14, 0.98));
}

/* Bottom gradient overlay */
.masonry-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Tag labels container */
.masonry-card-tags {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.masonry-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

/* Responsive masonry breakpoints */
@media (max-width: 1200px) {
    .masonry-column:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 768px) {
    .masonry-container {
        gap: 8px;
        /* Framer-style mobile layout: 1.5 columns effect */
        /* Center container but make it wider than screen to show cut-off columns */
        width: 140%;
        margin-left: -20%;
    }

    .masonry-container[data-columns="1"],
    .masonry-container[data-columns="2"],
    .masonry-container[data-columns="3"] {
        max-width: none;
        margin: 0;
    }

    .masonry-column {
        gap: 8px;
    }

    /* Show 3 columns on mobile (1 center, 2 cut off) */
    /* Hide 4th and 5th columns */
    .masonry-column:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 480px) {
    .masonry-container {
        gap: 6px;
        /* Ensure the wide layout persists on small screens */
        width: 150%;
        margin-left: -25%;
    }

    .masonry-container[data-columns="1"],
    .masonry-container[data-columns="2"],
    .masonry-container[data-columns="3"] {
        max-width: none;
        margin: 0;
    }

    .masonry-column {
        gap: 6px;
    }

    /* Ensure 3 columns remain visible on smallest screens */
    .masonry-column:nth-child(n+4) {
        display: none;
    }

    /* Remove previous rule that hid column 2+ */
}

/* ========== Infinite Ticker =========== */
.ticker-section {
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.ticker-row {
    display: flex;
    margin-bottom: var(--spacing-md);
}

.ticker {
    width: 100%;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    gap: var(--spacing-md);
    white-space: nowrap;
    animation-duration: var(--home-animation-duration, 30s);
    width: max-content;
    will-change: transform;
}

.ticker-track-group {
    display: flex;
    gap: var(--spacing-md);
    flex-shrink: 0;
}

.ticker-left .ticker-track {
    animation-name: scroll-left;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.ticker-right .ticker-track {
    animation-name: scroll-right;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes scroll-left {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(calc(-1 * var(--home-ticker-cycle-width, 50%)), 0, 0);
    }
}

@keyframes scroll-right {
    0% {
        transform: translate3d(calc(-1 * var(--home-ticker-cycle-width, 50%)), 0, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

.ticker:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.ticker-item:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* ========== Scroll Animations =========== */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Footer =========== */
.framer-footer {
    display: block;
    border-top: 1px solid var(--border-subtle);
    padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

body.home-page .framer-footer {
    /* Match the critical footer guard specificity so deferred styles can restore it. */
    display: block;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: var(--spacing-sm);
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social a:hover {
    transform: scale(1.1);
    border-color: var(--border-focus);
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-subtle);
    font-size: 13px;
    color: var(--text-tertiary);
}

.footer-bottom a {
    color: var(--text-tertiary);
    text-decoration: none;
    margin-left: var(--spacing-md);
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--text-secondary);
}

/* ========== Performance Degradation =========== */
.low-performance .framer-nav,
.low-performance .mobile-menu,
.low-performance .glass-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.low-performance .glass-card {
    background: rgba(20, 20, 20, 0.9);
}

/* ========== Responsive Design =========== */
@media (max-width: 1023px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 767px) {

    /* Hide desktop nav, show hamburger */
    .nav-menu {
        display: none;
    }

    .nav-hamburger {
        display: block;
    }

    /* Typography adjustments */
    .hero-title {
        /* Removed fixed font-size to let clamp() work smoothly */
        letter-spacing: 0;
    }

    .section-title {
        font-size: 36px;
    }

    /* Grid adjustments */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Hero CTA - Inline on Mobile */
    .hero-cta {
        flex-direction: row;
        width: auto;
        justify-content: center;
        gap: var(--spacing-md);
    }

    .hero-cta .btn {
        /* Keep fixed size from global style */
        font-size: 14px;
    }

    /* Mobile Entry Cards - Scrollable carousel */
    .hero-carousel {
        scroll-snap-type: none;
        scroll-padding-inline: calc(50vw - 70px);
        -webkit-overflow-scrolling: touch;
    }

    .hero-carousel-track {
        gap: 16px;
        padding: 0 calc(50vw - 70px);
    }

    .hero-section[data-home-static-hero="1"]:not([data-render-signature]) .hero-carousel-track {
        grid-template-columns: repeat(5, 140px);
        gap: 16px;
    }

    .entry-card {
        width: 140px;
        height: 120px;
        scroll-snap-align: center;
    }

    .entry-card-ui>i {
        font-size: 40px;
    }

    .entry-card-ui>span {
        font-size: 13px;
    }

    .hero-prismchrono-field {
        transform: translateY(16%);
    }

    .hero-prismchrono-field i:nth-child(1) {
        --hero-prism-ring-size: min(86vw, 560px);
    }

    .hero-prismchrono-field i:nth-child(2) {
        --hero-prism-ring-size: min(64vw, 420px);
    }

    .hero-prismchrono-field i:nth-child(3) {
        --hero-prism-ring-size: min(42vw, 260px);
    }

    .hero-prismchrono-field span:nth-of-type(1) {
        --hero-prism-cube-size: 132px;
        --hero-prism-cube-y: -70px;
    }

    .hero-prismchrono-field span:nth-of-type(2) {
        --hero-prism-cube-size: 82px;
        --hero-prism-cube-x: -232px;
        --hero-prism-cube-y: -178px;
        --hero-prism-cube-z: -44px;
    }

    .hero-prismchrono-field span:nth-of-type(3) {
        --hero-prism-cube-size: 78px;
        --hero-prism-cube-x: 224px;
        --hero-prism-cube-y: 144px;
        --hero-prism-cube-z: 56px;
    }

    /* Footer stacking */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl) var(--spacing-md);
        text-align: left;
    }

    /* Make Brand column (first item) span full width */
    .footer-col:first-child {
        grid-column: 1 / -1;
        margin-bottom: var(--spacing-sm);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .footer-bottom a {
        margin-left: 0;
    }

    /* Spacing adjustments */
    :root {
        --spacing-xl: 60px;
        --spacing-2xl: 80px;
    }
}

/* Touch device optimizations */
@media (hover: none) {

    .glass-card:hover,
    .entry-card:hover .entry-card-ui,
    .btn:hover {
        transform: none;
    }
}

/* ========== User Avatar Styles =========== */
#navUserAvatar,
.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    outline: none !important;
}

#navUserAvatar.show,
.nav-user-avatar.show {
    opacity: 1;
}

/* Ensure parent button doesn't clip shadow */
.login-trigger-btn.logged-in {
    overflow: visible !important;
}

/* Trigger glow when hovering the PARENT button or the avatar itself */
.login-trigger-btn:hover #navUserAvatar,
.login-trigger-btn:hover .nav-user-avatar,
#navUserAvatar:hover,
.nav-user-avatar:hover {
    transform: scale(0.9);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    transition: all 0.3s ease;
}

.nav-user-avatar.animate-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero Section Transitions */
.hero-title,
.hero-subtitle,
.hero-progress {
    transition: none;
}

.hero-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 64px 0;
    position: relative;
}

/* Verify Section Grid */
.verify-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 80px;
}

.verify-copy {
    display: flex;
    flex-direction: column;
}

.verify-grid--dynamic {
    align-items: start;
}

.verify-grid--dynamic .verify-copy {
    padding-top: clamp(42px, 5vw, 82px);
}

.verify-grid--dynamic .verify-3d-container {
    align-items: flex-start;
}

.verify-features {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.verify-feature-chip {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.verify-value-props,
.verify-supported-models {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.verify-value-prop,
.verify-supported-model {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    font-weight: 500;
}

.verify-risk-note {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.7;
    max-width: 540px;
}

.verify-actions {
    margin-top: 48px;
}

@media (max-width: 900px) {
    .verify-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .verify-card-3d {
        max-width: 500px !important;
        transform: rotateY(-6deg) rotateX(3deg) scale(0.95) !important;
    }
}

/* Verify 3D Card Animation */
.verify-3d-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    height: 100%;
    /* Ensure full height alignment */
}

.verify-card-3d {
    position: relative;
    width: 100%;
    max-width: 700px;
    /* Reduced from 800px as requested */
    transform-style: preserve-3d;
    transform: rotateY(-12deg) rotateX(6deg) scale(0.9);
    /* Start slightly smaller for entrance */
    opacity: 0;
    /* Start hidden for entrance */
    transition: transform 0.1s linear, opacity 0.6s ease-out;
    /* Fast transform for scroll, slow for opacity */

    /* Remove container shadow/background to fix gray block issue */
    background: transparent;
    box-shadow: none;
    border: none;
    will-change: transform, opacity;
}

/* Gradient Overlay - Fades bottom to black (Figure 1 style) */
.verify-card-3d::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    /* Covers bottom half */
    background: linear-gradient(to bottom, transparent 0%, #000000 90%);
    border-radius: 0 0 20px 20px;
    pointer-events: none;
    z-index: 2;
    /* Ensure it sits on top of the image */
}

.verify-card-3d img {
    /* Apply shadow to the image content itself */
    filter: drop-shadow(30px 30px 60px rgba(0, 0, 0, 0.5));
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.verify-screenshot {
    width: 100%;
    border-radius: 12px;
}

/* Base state class applied by JS after load */
.verify-card-3d.visible {
    opacity: 1;
}

.verify-card-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(110deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0) 60%,
            rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    background-size: 200% 200%;
    animation: shine-sweep 8s linear infinite;
    /* Keep shine but slower */
    mix-blend-mode: overlay;
}

.verify-card-3d--dynamic::after {
    display: none;
}

.verify-card-3d--dynamic {
    max-width: 640px;
}

.verify-card-3d--dynamic .verify-card-shine {
    z-index: 3;
}

.home-verify-live-card {
    --verify-progress: 0%;
    --verify-progress-opacity: 0;
    width: 100%;
    padding: 20px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(16, 23, 37, 0.96), rgba(7, 11, 18, 0.97)),
        radial-gradient(circle at 12% 8%, rgba(139, 188, 240, 0.18), transparent 35%);
    border-color: rgba(139, 188, 240, 0.18);
    box-shadow:
        30px 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-verify-live-card.is-measuring,
.home-verify-live-card.is-measuring * {
    animation: none !important;
    transition: none !important;
}

.home-verify-live-card .verify-widget-topline {
    margin-bottom: 13px;
}

.home-verify-live-card .verify-widget-header {
    margin-bottom: 15px;
}

.home-verify-live-card .verify-widget-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
}

.home-verify-live-card .verify-widget-icon svg {
    width: 21px;
    height: 21px;
}

.home-verify-live-card .verify-widget-title h3 {
    font-size: 1.08rem;
}

.home-verify-live-card .verify-widget-title p {
    font-size: 0.78rem;
}

.home-verify-live-card .verify-form-shell {
    display: block;
}

.home-verify-live-card .verify-input-area {
    gap: 11px;
}

.home-verify-field-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

.home-verify-live-card .verify-field-label {
    font-size: 0.8rem;
}

.home-verify-live-card .verify-input {
    padding: 12px 14px;
    font-size: 0.86rem;
    border-radius: 14px;
    pointer-events: none;
}

.home-verify-live-card .verify-input.is-active {
    border-color: rgba(159, 215, 229, 0.58);
    background: rgba(5, 9, 17, 0.74);
    box-shadow: 0 0 0 4px rgba(107, 158, 206, 0.11);
}

.home-verify-live-card .verify-api-quota,
.home-verify-live-card .verify-balance {
    min-height: 31px;
    padding: 7px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.home-verify-live-card .verify-mode-option__body {
    min-height: 70px;
    padding: 11px 12px;
    border-radius: 14px;
}

.home-verify-live-card .verify-mode-option__title {
    font-size: 0.88rem;
}

.home-verify-live-card .verify-mode-option__meta {
    font-size: 0.76rem;
}

.home-verify-live-card .verify-mode-note {
    font-size: 0.76rem;
    margin-top: 8px;
}

.home-verify-live-card .verify-form-meta {
    margin-top: 12px;
    margin-bottom: 14px;
    justify-content: flex-end;
}

.home-verify-live-card .verify-form-actions {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
}

.home-verify-live-card .verify-submit-btn,
.home-verify-live-card .verify-reset-btn {
    min-height: 44px;
    padding: 11px 16px;
    border-radius: 13px;
    font-size: 0.9rem;
}

.home-verify-live-card .verify-submit-btn .spinner {
    display: none;
}

.home-verify-live-card[data-phase="submit"] .verify-submit-btn .spinner,
.home-verify-live-card[data-phase="queued"] .verify-submit-btn .spinner,
.home-verify-live-card[data-phase="running"] .verify-submit-btn .spinner {
    display: inline-block;
}

.home-verify-live-card[data-phase="submit"] .verify-submit-btn i,
.home-verify-live-card[data-phase="queued"] .verify-submit-btn i,
.home-verify-live-card[data-phase="running"] .verify-submit-btn i {
    display: none;
}

.home-verify-live-card .verify-batch-results {
    margin-top: 0;
    min-height: 0;
    max-height: 0;
    padding: 0 16px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    background: rgba(0, 0, 0, 0);
    border-color: rgba(255, 255, 255, 0);
    transition:
        max-height 0.46s ease,
        margin-top 0.28s ease,
        padding 0.28s ease,
        opacity 0.28s ease,
        transform 0.28s ease,
        border-color 0.28s ease,
        background 0.28s ease,
        visibility 0s linear 0.28s;
}

.home-verify-live-card .verify-batch-results.show {
    margin-top: 10px;
    padding: 16px;
    max-height: 280px;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
    transition:
        max-height 0.46s ease,
        margin-top 0.28s ease,
        padding 0.28s ease,
        opacity 0.28s ease,
        transform 0.28s ease,
        border-color 0.28s ease,
        background 0.28s ease,
        visibility 0s;
}

.home-verify-live-card .verify-result-link {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.home-verify-live-card .verify-result-item {
    transition:
        height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.home-verify-live-card .verify-result-item.home-verify-result-resizing {
    will-change: height;
}

.home-verify-live-card .verify-result-item.processing {
    border-left-color: rgba(107, 158, 206, 0.96);
}

.home-verify-live-card .verify-result-item.success {
    border-left-color: #22c55e;
}

.home-verify-live-card[data-phase="success"] .verify-result-item.success {
    min-height: 112px;
}

.home-verify-live-card[data-phase="success"] .verify-result-item.success {
    animation: homeVerifySuccessItemIn 0.34s ease both;
}

.home-verify-live-card[data-phase="success"] [data-home-verify-message] {
    display: inline-block;
    animation: homeVerifySuccessTextIn 0.24s ease both;
}

.home-verify-live-card[data-phase="success"] .verify-result-link-row:not([hidden]) {
    animation: homeVerifySuccessLinkIn 0.24s ease 0.06s both;
}

.home-verify-live-card .verify-batch-summary {
    min-height: 38px;
    font-variant-numeric: tabular-nums;
    transition:
        opacity 0.18s ease,
        transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.home-verify-live-card .verify-batch-summary[hidden],
.home-verify-live-card .verify-batch-summary[data-visible="0"] {
    display: flex !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 4px, 0);
}

.home-verify-live-card .verify-batch-summary[data-visible="1"] {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

.home-verify-live-card[data-phase="success"] .verify-batch-summary[data-visible="1"] {
    animation: none;
}

@media (min-width: 901px) {
    .home-verify-live-card .home-verify-bottom-zone {
        position: relative;
        display: block;
        margin-top: 10px;
        height: var(--home-verify-bottom-height, 214px);
        overflow: hidden;
    }

    .home-verify-live-card .home-verify-bottom-panel {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        transition:
            opacity 0.34s ease,
            transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
            filter 0.32s ease,
            visibility 0s linear 0.34s;
        will-change: opacity, transform;
        transform-origin: top center;
    }

    .home-verify-live-card .home-verify-bottom-panel--results .verify-batch-results,
    .home-verify-live-card .home-verify-bottom-panel--results .verify-batch-results.show {
        margin-top: 0;
        padding: 16px;
        max-height: none;
        min-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.1);
        transition: none;
    }

    .home-verify-live-card[data-bottom-state="primary"] .home-verify-bottom-panel--primary,
    .home-verify-live-card[data-bottom-state="results"] .home-verify-bottom-panel--results {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0.04s;
    }

    .home-verify-live-card[data-bottom-state="primary"] .home-verify-bottom-panel--results,
    .home-verify-live-card[data-bottom-state="results"] .home-verify-bottom-panel--primary {
        opacity: 0;
        transform: translateY(14px) scale(0.986);
        filter: blur(7px);
        visibility: hidden;
        pointer-events: none;
        transition-delay: 0s;
    }

    .home-verify-live-card[data-bottom-state="results"] .verify-result-item {
        animation: homeVerifyResultsPanelIn 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .home-verify-live-card[data-bottom-state="results"] .verify-batch-summary[data-visible="1"] {
        animation: none;
    }

    .home-verify-live-card.home-verify-soft-reset :is(.verify-form-main > .verify-form-field, .verify-form-main > .home-verify-field-grid) {
        animation: homeVerifyResetFieldsIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
}

@keyframes homeVerifyResultsPanelIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes homeVerifyResetFieldsIn {
    0% {
        opacity: 0.56;
        transform: translateY(8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes homeVerifySuccessItemIn {
    0% {
        opacity: 0.78;
        box-shadow: 0 0 0 rgba(34, 197, 94, 0);
    }

    55% {
        opacity: 1;
        box-shadow: 0 0 28px rgba(34, 197, 94, 0.13);
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes homeVerifySuccessTextIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes homeVerifySuccessLinkIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes homeVerifySuccessSummaryIn {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 900px) {
    .verify-grid--dynamic {
        overflow-x: clip;
    }

    .verify-grid--dynamic .verify-copy {
        padding-top: 0;
    }

    .verify-grid--dynamic .verify-3d-container {
        width: 100%;
        padding: 10px 0 0;
        perspective: none;
        align-items: flex-start;
        overflow: hidden;
    }

    .verify-grid--dynamic .verify-card-3d--dynamic,
    .verify-grid--dynamic .verify-card-3d--dynamic.visible {
        width: 100%;
        max-width: min(100%, calc(100vw - 28px)) !important;
        transform: none !important;
        transform-style: flat;
    }

    .home-verify-live-card {
        min-height: auto;
        max-width: 100%;
        padding: 16px;
        overflow: hidden;
        border-radius: 20px;
        box-shadow:
            0 14px 28px rgba(0, 0, 0, 0.24),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .home-verify-field-grid,
    .home-verify-live-card .verify-mode-selector,
    .home-verify-live-card .verify-form-actions {
        grid-template-columns: 1fr;
    }

    .home-verify-live-card .home-verify-mode-field .verify-mode-option:not(.verify-mode-option--accent),
    .home-verify-live-card .verify-mode-note,
    .home-verify-live-card .verify-priority-pill {
        display: none !important;
    }

    .home-verify-live-card .verify-form-meta {
        margin-top: 10px;
        margin-bottom: 12px;
        justify-content: flex-start;
    }

    .home-verify-live-card .verify-header-right {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .home-verify-live-card .verify-batch-results,
    .home-verify-live-card .verify-result-item,
    .home-verify-live-card .verify-result-item-content,
    .home-verify-live-card .verify-result-item-message {
        min-width: 0;
    }

    .home-verify-live-card .verify-batch-results.show {
        max-height: 360px;
    }

    .home-verify-live-card .home-verify-bottom-zone {
        position: relative;
        display: block;
        margin-top: 10px;
        height: var(--home-verify-bottom-height, 336px);
        overflow: hidden;
    }

    .home-verify-live-card .home-verify-bottom-panel {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        transition:
            opacity 0.34s ease,
            transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
            filter 0.32s ease,
            visibility 0s linear 0.34s;
        will-change: opacity, transform;
        transform-origin: top center;
    }

    .home-verify-live-card .home-verify-bottom-panel--results .verify-batch-results,
    .home-verify-live-card .home-verify-bottom-panel--results .verify-batch-results.show {
        margin-top: 0;
        padding: 16px;
        max-height: none;
        min-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.1);
        transition: none;
    }

    .home-verify-live-card[data-bottom-state="primary"] .home-verify-bottom-panel--primary,
    .home-verify-live-card[data-bottom-state="results"] .home-verify-bottom-panel--results {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0.04s;
    }

    .home-verify-live-card[data-bottom-state="primary"] .home-verify-bottom-panel--results,
    .home-verify-live-card[data-bottom-state="results"] .home-verify-bottom-panel--primary {
        opacity: 0;
        transform: translateY(14px) scale(0.986);
        filter: blur(7px);
        visibility: hidden;
        pointer-events: none;
        transition-delay: 0s;
    }

    .home-verify-live-card[data-bottom-state="results"] .home-verify-bottom-panel--results {
        top: 50%;
        transform: translateY(-50%) scale(1);
    }

    .home-verify-live-card .verify-batch-results-header {
        align-items: flex-start;
        gap: 10px;
    }

    .home-verify-live-card .verify-result-link {
        display: block;
        max-width: 100%;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

@keyframes shine-sweep {
    0% {
        background-position: 200% 0%;
    }

    100% {
        background-position: -200% 0%;
    }
}


/* ========== Prompts Gradient Mask (Phase 24) ========== */
.prompts-masonry-section {
    position: relative;
    /* Ensure absolute positioning works relative to this */
}

.prompts-gradient-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 480px;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.4) 30%,
            rgba(0, 0, 0, 0.9) 70%,
            #000000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 64px;
    z-index: 10;
    overflow: hidden;
    pointer-events: none;
    /* Allow clicks to pass through to images */
}

/* Container for the floating tag labels */
.mask-labels-container {
    position: relative;
    width: fit-content;
    margin: 0 auto 24px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 24px;
    transition: all 0.4s ease;
    cursor: pointer;
    pointer-events: auto;
    color: inherit;
    text-decoration: none;
}


/* Individual rows of tags */
.mask-labels-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 32px;
    transition: all 0.3s ease;
}

/* Tag Text Style - Artistic Typography */
.mask-tag {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-family: "LXGW WenKai", "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.15em;
    padding: 6px 16px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* CTA Text Container (Hidden by default, centered between rows) */
.mask-cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.mask-cta-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.mask-cta-arrow {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    font-weight: 300;
}

/* Hover Effects - Blur only tags, show CTA */
.mask-labels-container:hover .mask-labels-row,
.mask-labels-container:active .mask-labels-row {
    filter: blur(3px);
    opacity: 0.7;
}

.mask-labels-container:hover .mask-cta,
.mask-labels-container:active .mask-cta {
    opacity: 1;
}

@media (max-width: 768px) {
    .prompts-gradient-mask {
        height: 360px;
        padding-bottom: 48px;
    }

    .mask-labels-container {
        /* 20260513_HOME_PROMPT_MASK_CENTER_1: keep the mobile CTA centered to the viewport, not the over-wide tag row. */
        width: min(100%, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
        box-sizing: border-box;
        margin-inline: auto;
        padding: 14px 8px;
    }

    .mask-labels-row {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        gap: clamp(12px, 4vw, 24px);
    }

    .mask-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .mask-labels-container {
        width: min(100%, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        padding-inline: 6px;
    }

    .mask-labels-row {
        gap: clamp(10px, 3.5vw, 18px);
    }
}

/* ========== Shop Carousel =========== */
.shop-carousel-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    margin-top: 40px;
    padding: 0;
}

.shop-carousel-wrapper[data-home-shop-staged="pending"] {
    opacity: 0;
    transform: translateY(12px);
}

.shop-carousel-wrapper[data-home-shop-staged="ready"] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.32s ease, transform 0.32s ease;
}

.shop-carousel-track {
    display: flex;
    gap: 24px;
    animation: shopScroll 30s linear infinite;
    width: max-content;
    animation-duration: var(--home-animation-duration, 30s);
    will-change: transform;
}

.shop-carousel-track:hover {
    animation-play-state: paused;
}

.shop-carousel-group {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
}

@keyframes shopScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(calc(-1 * var(--home-shop-cycle-width, 50%)), 0, 0);
    }
}

.shop-carousel-card {
    flex-shrink: 0;
    width: 200px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.shop-carousel-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.shop-card-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-card-icon {
    font-size: 48px;
    color: var(--accent-blue);
}

.shop-card-icon--fallback {
    color: var(--text-secondary, #888);
}

.shop-card-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-card-info p {
    font-size: 12px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.shop-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.16);
    border: 1px solid rgba(96, 165, 250, 0.22);
    color: rgba(219, 234, 254, 0.96);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.shop-card-meta {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

/* ========== Gongyi Section ========== */
.gongyi-shell {
    position: relative;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.gongyi-hero,
.gongyi-highlights,
.gongyi-features,
.gongyi-models {
    position: relative;
    z-index: 1;
}

.gongyi-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.gongyi-copy {
    max-width: 520px;
}

.gongyi-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(94, 216, 248, 0.1);
    border: 1px solid rgba(94, 216, 248, 0.18);
    color: rgba(174, 236, 255, 0.95);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gongyi-brand {
    margin: 0 0 16px;
    font-size: clamp(48px, 7vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: #f8fbff;
}

.gongyi-brand-subtitle {
    margin: 0;
    max-width: 480px;
    color: rgba(226, 232, 240, 0.8);
    font-size: clamp(17px, 2vw, 24px);
    line-height: 1.6;
}

.gongyi-actions {
    margin-top: 28px;
}

.gongyi-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 0;
    padding: 12px 28px;
}

.gongyi-terminal-wrap {
    display: flex;
    justify-content: flex-end;
}

.gongyi-terminal-window {
    width: min(100%, 420px);
    border-radius: 24px;
    border: 1px solid rgba(111, 213, 255, 0.12);
    background: rgba(19, 27, 45, 0.94);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
}

.gongyi-terminal-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gongyi-terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex-shrink: 0;
}

.gongyi-terminal-dot--red {
    background: #f87171;
}

.gongyi-terminal-dot--yellow {
    background: #fbbf24;
}

.gongyi-terminal-dot--green {
    background: #4ade80;
}

.gongyi-terminal-title {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: lowercase;
}

.gongyi-terminal-body {
    padding: 24px 20px 26px;
    font-family: "JetBrains Mono", "SFMono-Regular", "Menlo", monospace;
    font-size: 14px;
    line-height: 1.85;
}

.gongyi-terminal-line {
    width: 0;
    max-width: fit-content;
    overflow: hidden;
    white-space: nowrap;
    color: rgba(226, 232, 240, 0.76);
    border-right: 0 solid transparent;
}

.gongyi-terminal-line.is-typing {
    animation:
        gongyiTerminalTyping var(--gongyi-typing-duration, 1.15s) steps(var(--gongyi-typing-steps, 24), end) forwards,
        gongyiTerminalTypingCaret 0.72s steps(1, end) 2;
}

.gongyi-terminal-line.is-typed {
    width: 100%;
    border-right-width: 0;
}

.gongyi-terminal-line--command {
    color: #6ee7b7;
}

.gongyi-terminal-line--muted {
    color: rgba(148, 163, 184, 0.82);
    font-style: italic;
}

.gongyi-terminal-line--success {
    color: #fbbf24;
}

.gongyi-terminal-prompt {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gongyi-terminal-caret {
    display: inline-block;
    width: 10px;
    height: 20px;
    border-radius: 2px;
    background: #6ee7b7;
    vertical-align: -4px;
    animation: gongyiTerminalBlink 1s steps(1) infinite;
}

@keyframes gongyiTerminalTyping {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes gongyiTerminalTypingCaret {
    0%,
    100% {
        border-right-width: 0;
    }

    50% {
        border-right: 8px solid rgba(110, 231, 183, 0.92);
    }
}

@keyframes gongyiTerminalBlink {
    50% {
        opacity: 0;
    }
}

.gongyi-highlights {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 42px;
}

.gongyi-shell--no-models .gongyi-highlights {
    margin-top: clamp(64px, 7vw, 104px);
}

.gongyi-highlight-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(226, 232, 240, 0.92);
    font-size: 14px;
    font-weight: 600;
}

.gongyi-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 42px;
}

.gongyi-shell--no-models .gongyi-features {
    margin-top: clamp(56px, 6vw, 88px);
}

.gongyi-feature-card {
    position: relative;
    isolation: isolate;
    overflow: visible;
    min-height: 232px;
    padding: 28px;
    border-radius: 24px;
    background: rgba(20, 28, 44, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.gongyi-feature-card > * {
    position: relative;
    z-index: 1;
}

.gongyi-feature-card::after {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -44px;
    height: 96px;
    border-radius: 999px;
    background:
        radial-gradient(ellipse at center, rgba(94, 216, 248, 0.38) 0%, rgba(94, 216, 248, 0.18) 36%, transparent 74%),
        radial-gradient(ellipse at center, rgba(45, 212, 191, 0.24) 0%, transparent 66%);
    filter: blur(20px);
    opacity: 0;
    transform: scaleX(0.74) translateY(14px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
    z-index: 0;
}

.gongyi-feature-card:hover,
.gongyi-feature-card.home-hover-lift-active {
    border-color: rgba(94, 216, 248, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 22px 58px rgba(0, 0, 0, 0.24),
        0 30px 70px rgba(94, 216, 248, 0.08);
}

.gongyi-feature-card:hover::after,
.gongyi-feature-card.home-hover-lift-active::after {
    opacity: 1;
    transform: scaleX(1) translateY(0);
}

.gongyi-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 24px;
}

.gongyi-feature-icon--blue {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.95), rgba(96, 165, 250, 0.7));
    color: #eff6ff;
}

.gongyi-feature-icon--mint {
    background: linear-gradient(135deg, rgba(94, 216, 248, 0.92), rgba(45, 212, 191, 0.72));
    color: #ecfeff;
}

.gongyi-feature-icon--violet {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.96), rgba(244, 114, 182, 0.7));
    color: #faf5ff;
}

.gongyi-feature-card h3 {
    margin: 0 0 16px;
    color: #f8fbff;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.gongyi-feature-card p {
    margin: 0;
    color: rgba(226, 232, 240, 0.62);
    font-size: 15px;
    line-height: 1.85;
}

.gongyi-models {
    margin-top: 54px;
    text-align: center;
}

.gongyi-models-title {
    margin: 0;
    color: #f8fbff;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.gongyi-models-subtitle {
    margin: 12px 0 0;
    color: rgba(226, 232, 240, 0.6);
    font-size: 16px;
}

.gongyi-model-chip-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.gongyi-model-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 18px 0 14px;
    border-radius: 18px;
    border: 1px solid rgba(94, 216, 248, 0.18);
    background: rgba(14, 21, 36, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.gongyi-model-chip.is-muted {
    border-color: rgba(255, 255, 255, 0.08);
    opacity: 0.6;
}

.gongyi-model-chip.is-muted .gongyi-model-chip__status {
    background: rgba(148, 163, 184, 0.12);
    color: rgba(226, 232, 240, 0.78);
}

.gongyi-model-chip__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

.gongyi-model-chip__icon--orange {
    background: linear-gradient(135deg, #fb923c, #f97316);
}

.gongyi-model-chip__icon--green {
    background: linear-gradient(135deg, #4ade80, #22c55e);
}

.gongyi-model-chip__icon--blue {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.gongyi-model-chip__icon--pink {
    background: linear-gradient(135deg, #f472b6, #ec4899);
}

.gongyi-model-chip__icon--slate {
    background: linear-gradient(135deg, #64748b, #475569);
}

.gongyi-model-chip__label {
    color: rgba(241, 245, 249, 0.96);
    font-size: 15px;
    font-weight: 700;
}

.gongyi-model-chip__status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: rgba(134, 239, 172, 0.96);
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .gongyi-hero {
        grid-template-columns: 1fr;
    }

    .gongyi-terminal-wrap {
        justify-content: flex-start;
    }

    .gongyi-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gongyi-shell {
        padding: 0;
    }

    .gongyi-brand {
        margin-top: 18px;
        font-size: 46px;
    }

    .gongyi-brand-subtitle {
        font-size: 16px;
    }

    .gongyi-terminal-body {
        font-size: 12px;
    }

    .gongyi-highlights {
        justify-content: flex-start;
    }

    .gongyi-shell--no-models .gongyi-highlights {
        margin-top: 56px;
    }

    .gongyi-shell--no-models .gongyi-features {
        margin-top: 48px;
    }

    .gongyi-highlight-chip {
        min-height: 36px;
        padding: 0 14px;
        font-size: 13px;
    }

    .gongyi-feature-card {
        min-height: auto;
        padding: 24px;
    }

    .gongyi-feature-card h3 {
        font-size: 26px;
    }

    .gongyi-model-chip-list {
        justify-content: flex-start;
    }
}

#guestbook-section {
    --home-guestbook-scroll-progress: 0;
    --home-guestbook-card-outset: 220px;
    --home-guestbook-card-bg: #182634;
    --home-guestbook-card-border: rgba(255, 255, 255, 0.08);
    --home-guestbook-card-text: rgba(241, 245, 249, 0.92);
    --home-guestbook-text: #f6f2eb;
    --home-guestbook-text-soft: rgba(246, 242, 235, 0.72);
    --home-guestbook-text-faint: rgba(246, 242, 235, 0.46);
    max-width: min(1780px, calc(100vw - 10px));
    padding: clamp(56px, 7vw, 92px) 0 clamp(72px, 8vw, 108px);
    overflow: visible;
    transition:
        max-width 560ms cubic-bezier(0.22, 1, 0.36, 1),
        padding 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

#guestbook-section .home-guestbook-stage {
    position: relative;
    min-height: 920px;
    isolation: isolate;
    transition:
        min-height 560ms cubic-bezier(0.22, 1, 0.36, 1),
        padding 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

#guestbook-section .home-guestbook-particle-field {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 0;
    width: 1180px;
    height: 1180px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 50%;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(circle at center, transparent 0 14%, #000 23%, #000 88%, transparent 100%);
    mask-image: radial-gradient(circle at center, transparent 0 14%, #000 23%, #000 88%, transparent 100%);
    transition:
        width 560ms cubic-bezier(0.22, 1, 0.36, 1),
        height 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

#guestbook-section .home-guestbook-particle-field::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.018) 0 1px, transparent 1.5px),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.014) 0 2px, transparent 2.5px);
    background-size: 220px 220px, 320px 320px;
    background-position: center center;
    opacity: 0.12;
}

#guestbook-section .home-guestbook-particle {
    position: absolute;
    pointer-events: none;
    left: 50%;
    top: 50%;
    width: calc(var(--particle-size, 2) * 1px);
    height: calc(var(--particle-size, 2) * 1px);
    border-radius: 999px;
    background: var(--particle-color, rgba(255, 255, 255, 0.72));
    opacity: var(--particle-opacity, 0.6);
    box-shadow: 0 0 calc(var(--particle-glow, 10) * 1px) rgba(255, 255, 255, 0.08);
    transform:
        translate(-50%, -50%)
        rotate(calc(var(--particle-angle, 0) * 1deg))
        translateY(calc(var(--particle-distance, 120) * -1px))
        rotate(calc(var(--particle-tilt, 0) * 1deg));
    transform-origin: center;
    will-change: opacity, transform;
}

#guestbook-section .home-guestbook-particle--streak {
    width: calc(var(--particle-length, 8) * 1px);
    height: calc(var(--particle-thickness, 1.6) * 1px);
    border-radius: 999px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0),
            var(--particle-color, rgba(255, 255, 255, 0.72)) 40%,
            rgba(255, 255, 255, 0) 100%);
    box-shadow: none;
}

#guestbook-section .home-guestbook-center {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: min(430px, calc(100% - 64px));
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    transition:
        width 560ms cubic-bezier(0.22, 1, 0.36, 1),
        padding-top 560ms cubic-bezier(0.22, 1, 0.36, 1),
        left 560ms cubic-bezier(0.22, 1, 0.36, 1),
        top 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

#guestbook-section .home-guestbook-center__title {
    margin: 0;
    color: var(--home-guestbook-text);
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.05em;
    transition:
        font-size 560ms cubic-bezier(0.22, 1, 0.36, 1),
        margin-top 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

#guestbook-section .home-guestbook-center__subtitle {
    margin: var(--spacing-sm) 0 0;
    color: var(--text-secondary);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
    transition:
        font-size 560ms cubic-bezier(0.22, 1, 0.36, 1),
        margin-top 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

#guestbook-section .home-guestbook-center__actions {
    display: flex;
    justify-content: center;
    gap: 72px;
    margin-top: 82px;
    flex-wrap: wrap;
    pointer-events: auto;
    transition:
        gap 560ms cubic-bezier(0.22, 1, 0.36, 1),
        margin-top 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

#guestbook-section .guestbook-list {
    display: contents;
}

#guestbook-section .guestbook-actions {
    display: contents;
}

#guestbook-section .guestbook-card-body {
    display: contents;
}

#guestbook-section .guestbook-card {}

#guestbook-section .guestbook-avatar {}

#guestbook-section .guestbook-author {}

#guestbook-section .guestbook-content {}

#guestbook-section .home-guestbook-cards {
    position: absolute;
    inset: 0;
    z-index: 1;
    transition:
        margin-top 560ms cubic-bezier(0.22, 1, 0.36, 1),
        gap 560ms cubic-bezier(0.22, 1, 0.36, 1),
        padding-bottom 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

#guestbook-section .home-guestbook-empty {
    position: relative;
    z-index: 2;
    margin: 40px auto 0;
    width: min(420px, calc(100% - 40px));
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--home-guestbook-text-soft);
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#guestbook-section .home-guestbook-card {
    position: absolute;
    display: block;
    width: 262px;
    padding: 16px 16px 18px;
    border-radius: 24px;
    background: var(--home-guestbook-card-bg);
    border: 1px solid var(--home-guestbook-card-border);
    color: var(--home-guestbook-card-text);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    opacity: calc(1 - ((1 - var(--card-fade-end, 0.58)) * var(--home-guestbook-scroll-progress, 0)));
    transform:
        translate3d(calc(var(--home-guestbook-scroll-progress, 0) * var(--card-fly-distance, 360px) * var(--card-fly-direction, 1)), 0, 0)
        rotate(calc((var(--card-rotate-start, 0) + ((var(--card-rotate-end, 0) - var(--card-rotate-start, 0)) * var(--home-guestbook-scroll-progress, 0))) * 1deg));
    transform-origin: center;
    transition:
        transform var(--card-duration, 760ms) cubic-bezier(0.16, 1, 0.3, 1),
        opacity var(--card-duration, 760ms) cubic-bezier(0.16, 1, 0.3, 1),
        top 560ms cubic-bezier(0.22, 1, 0.36, 1),
        left 560ms cubic-bezier(0.22, 1, 0.36, 1),
        right 560ms cubic-bezier(0.22, 1, 0.36, 1),
        bottom 560ms cubic-bezier(0.22, 1, 0.36, 1),
        width 560ms cubic-bezier(0.22, 1, 0.36, 1),
        padding 560ms cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 560ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.22s ease;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

#guestbook-section .home-guestbook-card:hover {
    box-shadow:
        0 20px 42px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#guestbook-section .home-guestbook-card__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    width: 100%;
    text-align: center;
}

#guestbook-section .home-guestbook-avatar {
    width: 34px;
    height: 34px;
    margin: 0 auto;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
}

#guestbook-section .home-guestbook-card__author {
    width: 100%;
    margin-top: 12px;
    color: rgba(226, 232, 240, 0.68);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    text-align: right;
    letter-spacing: 0.02em;
}

#guestbook-section .home-guestbook-card__content {
    margin: 14px 0 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.02em;
    text-align: center;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

#guestbook-section .home-guestbook-card__reason {
    margin-top: 12px;
    display: inline-flex;
    align-self: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(226, 232, 240, 0.78);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

#guestbook-section .home-guestbook-card--fallback .home-guestbook-card__reason {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(241, 245, 249, 0.9);
}

#guestbook-section [data-card-side="left"] {
    --card-fly-direction: -1;
}

#guestbook-section [data-card-side="right"] {
    --card-fly-direction: 1;
}

#guestbook-section .home-guestbook-card--l1 {
    top: 56px;
    left: calc(72px - var(--home-guestbook-card-outset, 0px));
    width: 212px;
    z-index: 1;
    --card-rotate-start: -11;
    --card-rotate-end: -2;
    --card-fly-distance: 468px;
    --card-fade-end: 0.54;
    --card-duration: 700ms;
}

#guestbook-section .home-guestbook-card--l2 {
    top: 344px;
    left: calc(132px - var(--home-guestbook-card-outset, 0px));
    width: 260px;
    z-index: 3;
    --card-rotate-start: 8;
    --card-rotate-end: 1;
    --card-fly-distance: 362px;
    --card-fade-end: 0.64;
    --card-duration: 820ms;
}

#guestbook-section .home-guestbook-card--l3 {
    left: calc(120px - var(--home-guestbook-card-outset, 0px));
    bottom: 26px;
    width: 220px;
    z-index: 2;
    --card-rotate-start: -3;
    --card-rotate-end: 0;
    --card-fly-distance: 510px;
    --card-fade-end: 0.5;
    --card-duration: 900ms;
}

#guestbook-section .home-guestbook-card--r1 {
    top: 92px;
    right: calc(126px - var(--home-guestbook-card-outset, 0px));
    width: 180px;
    z-index: 2;
    --card-rotate-start: 6;
    --card-rotate-end: 1;
    --card-fly-distance: 400px;
    --card-fade-end: 0.6;
    --card-duration: 720ms;
}

#guestbook-section .home-guestbook-card--r2 {
    top: 286px;
    right: calc(78px - var(--home-guestbook-card-outset, 0px));
    width: 238px;
    z-index: 4;
    --card-rotate-start: -9;
    --card-rotate-end: -1;
    --card-fly-distance: 452px;
    --card-fade-end: 0.56;
    --card-duration: 840ms;
}

#guestbook-section .home-guestbook-card--r3 {
    right: calc(96px - var(--home-guestbook-card-outset, 0px));
    bottom: 42px;
    width: 210px;
    z-index: 1;
    --card-rotate-start: 9;
    --card-rotate-end: 2;
    --card-fly-distance: 356px;
    --card-fade-end: 0.62;
    --card-duration: 920ms;
}

#guestbook-section .guestbook-action-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1500px) {
    #guestbook-section {
        --home-guestbook-card-outset: 84px;
        max-width: min(1540px, calc(100vw - 10px));
    }

    #guestbook-section .home-guestbook-stage {
        min-height: 860px;
    }

    #guestbook-section .home-guestbook-center {
        width: min(396px, calc(100% - 64px));
    }

    #guestbook-section .home-guestbook-card--l1 {
        left: calc(68px - var(--home-guestbook-card-outset, 0px));
        top: 64px;
        width: 184px;
        --card-fly-distance: 356px;
    }

    #guestbook-section .home-guestbook-card--l2 {
        left: calc(104px - var(--home-guestbook-card-outset, 0px));
        top: 312px;
        width: 226px;
        --card-fly-distance: 286px;
    }

    #guestbook-section .home-guestbook-card--l3 {
        left: calc(86px - var(--home-guestbook-card-outset, 0px));
        bottom: 34px;
        width: 196px;
        --card-fly-distance: 382px;
    }

    #guestbook-section .home-guestbook-card--r1 {
        right: calc(104px - var(--home-guestbook-card-outset, 0px));
        top: 118px;
        width: 160px;
        --card-fly-distance: 278px;
    }

    #guestbook-section .home-guestbook-card--r2 {
        right: calc(64px - var(--home-guestbook-card-outset, 0px));
        top: 284px;
        width: 212px;
        --card-fly-distance: 340px;
    }

    #guestbook-section .home-guestbook-card--r3 {
        right: calc(82px - var(--home-guestbook-card-outset, 0px));
        bottom: 44px;
        width: 182px;
        --card-fly-distance: 266px;
    }
}

@media (max-width: 1180px) {
    #guestbook-section {
        --home-guestbook-card-outset: 34px;
        max-width: min(1180px, calc(100vw - 16px));
    }

    #guestbook-section .home-guestbook-stage {
        min-height: 800px;
    }

    #guestbook-section .home-guestbook-particle-field {
        width: 980px;
        height: 980px;
    }

    #guestbook-section .home-guestbook-center {
        width: min(356px, calc(100% - 44px));
    }

    #guestbook-section .home-guestbook-center__actions {
        gap: 48px;
        margin-top: 68px;
    }

    #guestbook-section .home-guestbook-card {
        padding: 14px 13px 16px;
        border-radius: 22px;
    }

    #guestbook-section .home-guestbook-card__author {
        margin-top: 10px;
        font-size: 9px;
    }

    #guestbook-section .home-guestbook-card__content {
        margin-top: 12px;
        font-size: 11px;
    }

    #guestbook-section .home-guestbook-card--l1 {
        left: calc(42px - var(--home-guestbook-card-outset, 0px));
        top: 60px;
        width: 166px;
        --card-fly-distance: 280px;
    }

    #guestbook-section .home-guestbook-card--l2 {
        left: calc(64px - var(--home-guestbook-card-outset, 0px));
        top: 286px;
        width: 208px;
        --card-fly-distance: 220px;
    }

    #guestbook-section .home-guestbook-card--l3 {
        left: calc(52px - var(--home-guestbook-card-outset, 0px));
        bottom: 30px;
        width: 170px;
        --card-fly-distance: 300px;
    }

    #guestbook-section .home-guestbook-card--r1 {
        right: calc(56px - var(--home-guestbook-card-outset, 0px));
        top: 94px;
        width: 146px;
        --card-fly-distance: 220px;
    }

    #guestbook-section .home-guestbook-card--r2 {
        right: calc(40px - var(--home-guestbook-card-outset, 0px));
        top: 252px;
        width: 192px;
        --card-fly-distance: 260px;
    }

    #guestbook-section .home-guestbook-card--r3 {
        right: calc(48px - var(--home-guestbook-card-outset, 0px));
        bottom: 42px;
        width: 162px;
        --card-fly-distance: 212px;
    }
}

@media (max-width: 980px) {
    #guestbook-section {
        --home-guestbook-card-outset: 8px;
        max-width: min(980px, calc(100vw - 18px));
        padding-top: 48px;
        padding-bottom: 76px;
    }

    #guestbook-section .home-guestbook-stage {
        min-height: 720px;
    }

    #guestbook-section .home-guestbook-particle-field {
        width: 860px;
        height: 860px;
    }

    #guestbook-section .home-guestbook-center {
        width: min(320px, calc(100% - 36px));
    }

    #guestbook-section .home-guestbook-center__actions {
        gap: 36px;
        margin-top: 62px;
    }

    #guestbook-section .home-guestbook-card {
        padding: 13px 12px 15px;
        border-radius: 20px;
    }

    #guestbook-section .home-guestbook-avatar {
        width: 32px;
        height: 32px;
    }

    #guestbook-section .home-guestbook-card__head {
        gap: 8px;
    }

    #guestbook-section .home-guestbook-card__author {
        margin-top: 9px;
        font-size: 9px;
    }

    #guestbook-section .home-guestbook-card__content {
        margin-top: 11px;
        font-size: 11px;
        line-height: 1.45;
    }

    #guestbook-section .home-guestbook-card--l1 {
        left: calc(24px - var(--home-guestbook-card-outset, 0px));
        top: 46px;
        width: 174px;
        --card-fly-distance: 210px;
    }

    #guestbook-section .home-guestbook-card--l2 {
        left: calc(42px - var(--home-guestbook-card-outset, 0px));
        top: 248px;
        width: 220px;
        --card-fly-distance: 164px;
    }

    #guestbook-section .home-guestbook-card--l3 {
        left: calc(30px - var(--home-guestbook-card-outset, 0px));
        bottom: 28px;
        width: 180px;
        --card-fly-distance: 224px;
    }

    #guestbook-section .home-guestbook-card--r1 {
        right: calc(36px - var(--home-guestbook-card-outset, 0px));
        top: 74px;
        width: 156px;
        --card-fly-distance: 176px;
    }

    #guestbook-section .home-guestbook-card--r2 {
        right: calc(20px - var(--home-guestbook-card-outset, 0px));
        top: 228px;
        width: 206px;
        --card-fly-distance: 214px;
    }

    #guestbook-section .home-guestbook-card--r3 {
        right: calc(32px - var(--home-guestbook-card-outset, 0px));
        bottom: 44px;
        width: 174px;
        --card-fly-distance: 168px;
    }
}

@media (max-width: 760px) {
    #guestbook-section {
        max-width: min(430px, calc(100vw - 24px));
        padding-left: 0;
        padding-right: 0;
    }

    #guestbook-section .home-guestbook-stage {
        min-height: auto;
        padding: 32px 18px 20px;
    }

    #guestbook-section .home-guestbook-particle-field {
        width: 600px;
        height: 600px;
    }

    #guestbook-section .home-guestbook-center {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        padding-top: 24px;
    }

    #guestbook-section .home-guestbook-center__actions {
        gap: 12px;
    }

    #guestbook-section .home-guestbook-center__actions .btn {
        width: 100%;
    }

    #guestbook-section .home-guestbook-cards {
        position: relative;
        inset: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-top: 28px;
        padding-bottom: 8px;
    }

    #guestbook-section .home-guestbook-card {
        position: relative;
        width: auto;
        inset: auto;
        min-height: clamp(118px, 30vw, 148px);
        --card-fly-distance: clamp(128px, 38vw, 186px);
        --card-fly-y: 0px;
        transform:
            translate3d(
                calc(var(--home-guestbook-scroll-progress, 0) * var(--card-fly-distance, 160px) * var(--card-fly-direction, 1)),
                calc(var(--home-guestbook-scroll-progress, 0) * var(--card-fly-y, 0px)),
                0)
            rotate(calc((var(--card-rotate-start, 0) + ((var(--card-rotate-end, 0) - var(--card-rotate-start, 0)) * var(--home-guestbook-scroll-progress, 0))) * 1deg));
        transition:
            transform 460ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 460ms cubic-bezier(0.22, 1, 0.36, 1),
            width 460ms cubic-bezier(0.22, 1, 0.36, 1),
            min-height 460ms cubic-bezier(0.22, 1, 0.36, 1),
            padding 460ms cubic-bezier(0.22, 1, 0.36, 1),
            border-radius 460ms cubic-bezier(0.22, 1, 0.36, 1),
            margin-top 460ms cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 0.22s ease;
    }

    #guestbook-section .home-guestbook-card:nth-child(odd) {
        --card-fly-direction: -1;
        --card-rotate-start: -4;
        --card-rotate-end: -1;
        margin-top: 14px;
    }

    #guestbook-section .home-guestbook-card:nth-child(even) {
        --card-fly-direction: 1;
        --card-rotate-start: 4;
        --card-rotate-end: 1;
    }

    #guestbook-section .home-guestbook-card:nth-child(1) {
        --card-fly-distance: clamp(142px, 40vw, 198px);
        --card-fly-y: -18px;
        --card-rotate-end: -5;
        --card-duration: 520ms;
    }

    #guestbook-section .home-guestbook-card:nth-child(2) {
        --card-fly-distance: clamp(178px, 46vw, 228px);
        --card-fly-y: 10px;
        --card-rotate-end: 5;
        --card-duration: 620ms;
    }

    #guestbook-section .home-guestbook-card:nth-child(3) {
        --card-fly-distance: clamp(118px, 32vw, 166px);
        --card-fly-y: 28px;
        --card-rotate-end: -2;
        --card-duration: 560ms;
    }

    #guestbook-section .home-guestbook-card:nth-child(4) {
        --card-fly-distance: clamp(156px, 42vw, 208px);
        --card-fly-y: -24px;
        --card-rotate-end: 3;
        --card-duration: 680ms;
    }

    #guestbook-section .home-guestbook-card:nth-child(5) {
        --card-fly-distance: clamp(192px, 48vw, 240px);
        --card-fly-y: 16px;
        --card-rotate-end: -6;
        --card-duration: 640ms;
    }

    #guestbook-section .home-guestbook-card:nth-child(6) {
        --card-fly-distance: clamp(132px, 36vw, 180px);
        --card-fly-y: -8px;
        --card-rotate-end: 6;
        --card-duration: 540ms;
    }

    #guestbook-section .home-guestbook-card__content {
        font-size: 15px;
    }
}

@media (max-width: 520px) {
    #guestbook-section .home-guestbook-cards {
        gap: 12px;
    }

    #guestbook-section .home-guestbook-card {
        min-height: clamp(108px, 28vw, 132px);
    }
}

@media (max-width: 720px) {
    #guestbook-section {
        max-width: min(430px, calc(100vw - 20px));
        padding-top: 40px;
        padding-bottom: 68px;
    }

    #guestbook-section .home-guestbook-stage {
        padding-left: 14px;
        padding-right: 14px;
    }

    #guestbook-section .home-guestbook-center__actions {
        margin-top: 64px;
    }
}

/* ========== Avatar Dropdown (Match Nav Glass Effect) =========== */
.avatar-dropd.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 80px 20px 20px;
    z-index: 1100;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.4s;
}

.avatar-dropdown {
    position: fixed;
    /* top is set dynamically by JS in handleAuthClick() */
    right: 30px;
    min-width: 220px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9999;
}

.avatar-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Staggered Entrance Animation for Dropdown Children (Matching Login Modal) */
.avatar-dropdown>* {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.avatar-dropdown.active>* {
    opacity: 1;
    transform: translateY(0);
}

.avatar-dropdown.active>*:nth-child(1) {
    transition-delay: 0.05s;
}

.avatar-dropdown.active>*:nth-child(2) {
    transition-delay: 0.10s;
}

.avatar-dropdown.active>*:nth-child(3) {
    transition-delay: 0.15s;
}

.avatar-dropdown.active>*:nth-child(4) {
    transition-delay: 0.20s;
}

.avatar-dropdown.active>*:nth-child(n+5) {
    transition-delay: 0.25s;
}

/* Dropdown Header */
.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.dropdown-notif-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    position: relative;
    flex: 0 0 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-notif-btn i {
    font-size: 0.95rem;
    line-height: 1;
}

.dropdown-notif-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ef4444;
    border: 1px solid rgba(0, 0, 0, 0.35);
}

.dropdown-lang-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex: 0 0 36px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-lang-btn .lang-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 1;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.dropdown-lang-btn .lang-icon.lang-zh {
    opacity: 1;
    transform: translateY(0) scale(1);
    font-size: 0.9rem;
}

.dropdown-lang-btn .lang-icon.lang-en {
    opacity: 0;
    transform: translateY(120%) scale(0.92);
    font-size: 0.82rem;
}

.dropdown-lang-btn[data-lang="en"] .lang-icon.lang-zh {
    opacity: 0;
    transform: translateY(-120%) scale(0.92);
}

.dropdown-lang-btn[data-lang="en"] .lang-icon.lang-en {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dropdown-lang-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.dropdown-lang-btn:active {
    transform: scale(0.95);
}

.dropdown-notif-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.dropdown-notif-btn:active {
    transform: scale(0.95);
}

.identity-name {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Dropdown Actions */
.dropdown-actions {
    padding-top: 12px;
}

.avatar-dropdown [hidden],
.avatar-dropdown:not(.is-authenticated) .auth-user-only,
.avatar-dropdown[data-auth-state="guest"] .auth-user-only,
.avatar-dropdown.is-authenticated .auth-guest-only,
.avatar-dropdown[data-auth-state="authenticated"] .auth-guest-only {
    display: none !important;
}

.dropdown-action {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-align: left;
}

.dropdown-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
}

.dropdown-action i {
    width: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.dropdown-action:hover i {
    color: rgba(255, 255, 255, 0.95);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.theme-icon {
    position: absolute;
    font-size: 1.1rem;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ========== Settings Dropdown Styles =========== */
.settings-dropdown-content {
    padding: 8px 12px;
}

.lang-toggle-simple {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.lang-toggle-simple:hover {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.lang-toggle-simple .lang-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.lang-toggle-simple .lang-text.active {
    color: rgba(255, 255, 255, 0.95);
}

.lang-toggle-simple .lang-separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Improved language toggle click areas */
.lang-toggle-simple .lang-text {
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer !important;
    user-select: none;
}

.lang-toggle-simple .lang-text:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
}

.lang-toggle-simple .lang-text:active {
    transform: scale(0.95);
}

/* ========== Auth Container Integration =========== */
/* Styles for avatar when injected into #auth-container (nav bar mode) */

#auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--nav-auth-slot-size);
    min-width: var(--nav-auth-slot-size);
    height: var(--nav-auth-slot-size);
    min-height: var(--nav-auth-slot-size);
    flex: 0 0 var(--nav-auth-slot-size);
}

/* Ensure avatar dropdown positions correctly when in nav bar */
#auth-container .avatar-dropdown {
    position: fixed;
    right: 30px;
}

/* ========== Light Theme: Home Content =========== */
html[data-theme="light"] body.home-page {
    --bg-black: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.78);
    --text-primary: #0f172a;
    --text-secondary: rgba(15, 23, 42, 0.62);
    --text-tertiary: rgba(15, 23, 42, 0.42);
    --border-subtle: rgba(15, 23, 42, 0.09);
    --border-focus: rgba(15, 23, 42, 0.18);
    background-color: #f8fafc;
    color: #0f172a;
}

html[data-theme="light"] body.home-page .hero-section {
    /* 20260502_HOME_LIGHT_HERO_BG_PARITY_1: match critical first paint so refresh does not change brightness. */
    background:
        radial-gradient(circle at 50% 34%, rgba(14, 165, 233, 0.11), transparent 32%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

html[data-theme="light"] body.home-page .hero-section::after {
    height: 220px;
    background: linear-gradient(to bottom, transparent, #f8fafc 74%);
}

html[data-theme="light"] body.home-page #prompts-section::before {
    background: linear-gradient(to bottom, #f8fafc, transparent);
}

html[data-theme="light"] body.home-page .hero-noise-overlay {
    display: none;
}

html[data-theme="light"] body.home-page .hero-prismchrono-scene {
    display: block;
}

html[data-theme="light"] body.home-page .hero-prism-preview-bg {
    display: block;
}

html[data-theme="light"] body.home-page .hero-prism-preview-effect-layer {
    mix-blend-mode: normal;
    animation: none;
    transform: none;
}

html[data-theme="dark"] body.home-page .hero-fx-liquid {
    display: block;
}

html[data-theme="light"] body.home-page .hero-fx-liquid {
    display: none;
}

html[data-theme="light"] body.home-page .hero-cta .hero-cta-btn {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] body.home-page .btn-primary:hover {
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] body.home-page .btn-secondary:hover {
    background-color: rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] body.home-page .home-hover-lift-active {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
}

html[data-theme="light"] body.home-page .progress-tick {
    background: rgba(15, 23, 42, 0.18);
}

html[data-theme="light"] body.home-page .hero-progress-thumb {
    border-color: rgba(15, 23, 42, 0.22);
}

html[data-theme="light"] body.home-page .hero-progress-thumb.active {
    border-color: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 12px rgba(15, 23, 42, 0.14);
}

/* 20260424_HOME_LIGHT_HERO_ENTRY_OPAQUE_1: the carousel script writes inline opacity here. */
html[data-theme="light"] body.home-page .hero-carousel .entry-card-ui {
    opacity: 1 !important;
}

html[data-theme="light"] body.home-page .home-entry-card-icon {
    color: #2563eb;
}

html[data-theme="light"] body.home-page .entry-card-ui>i.home-entry-card-icon--gongyi {
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.12));
}

html[data-theme="light"] body.home-page .glass-card {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(15, 23, 42, 0.09);
    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] body.home-page .glass-card:hover {
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow:
        0 18px 38px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] body.home-page .masonry-card {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
}

html[data-theme="light"] body.home-page .masonry-card-placeholder {
    background:
        linear-gradient(180deg, rgba(226, 232, 240, 0.92), rgba(241, 245, 249, 0.96));
}

html[data-theme="light"] body.home-page .prompts-gradient-mask {
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(248, 250, 252, 0.42) 30%,
            rgba(248, 250, 252, 0.9) 70%,
            #f8fafc 100%);
}

html[data-theme="light"] body.home-page .mask-tag {
    color: rgba(15, 23, 42, 0.78);
}

html[data-theme="light"] body.home-page .mask-cta-text,
html[data-theme="light"] body.home-page .mask-cta-arrow {
    color: rgba(15, 23, 42, 0.66);
}

html[data-theme="light"] body.home-page .ticker-item {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: rgba(15, 23, 42, 0.62);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] body.home-page .ticker-item:hover {
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
}

html[data-theme="light"] body.home-page .shop-carousel-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] body.home-page .shop-carousel-card:hover {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] body.home-page .shop-card-image {
    background: rgba(241, 245, 249, 0.95);
}

html[data-theme="light"] body.home-page .shop-card-badge {
    background: rgba(37, 99, 235, 0.09);
    border-color: rgba(37, 99, 235, 0.16);
    color: #1d4ed8;
}

html[data-theme="light"] body.home-page .shop-card-meta {
    color: rgba(15, 23, 42, 0.48);
}

html[data-theme="light"] body.home-page .gongyi-brand,
html[data-theme="light"] body.home-page .gongyi-feature-card h3,
html[data-theme="light"] body.home-page .gongyi-models-title {
    color: #0f172a;
}

html[data-theme="light"] body.home-page .gongyi-brand-subtitle,
html[data-theme="light"] body.home-page .gongyi-feature-card p,
html[data-theme="light"] body.home-page .gongyi-models-subtitle {
    color: rgba(15, 23, 42, 0.62);
}

html[data-theme="light"] body.home-page .gongyi-highlight-chip,
html[data-theme="light"] body.home-page .gongyi-model-chip {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(15, 23, 42, 0.09);
    color: rgba(15, 23, 42, 0.72);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] body.home-page .gongyi-feature-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow:
        0 14px 32px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] body.home-page .gongyi-feature-card:hover,
html[data-theme="light"] body.home-page .gongyi-feature-card.home-hover-lift-active {
    border-color: rgba(37, 99, 235, 0.16);
    box-shadow:
        0 20px 44px rgba(15, 23, 42, 0.1),
        0 20px 54px rgba(37, 99, 235, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

html[data-theme="light"] body.home-page .gongyi-feature-card::after {
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.12), transparent);
}

html[data-theme="light"] body.home-page .gongyi-model-chip__label {
    color: rgba(15, 23, 42, 0.86);
}

html[data-theme="light"] body.home-page .gongyi-model-chip.is-muted {
    border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] body.home-page .gongyi-model-chip.is-muted .gongyi-model-chip__status {
    background: rgba(100, 116, 139, 0.1);
    color: rgba(71, 85, 105, 0.78);
}

html[data-theme="light"] body.home-page .gongyi-terminal-window {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.11);
}

html[data-theme="light"] body.home-page .gongyi-terminal-head {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] body.home-page .gongyi-terminal-title {
    color: rgba(15, 23, 42, 0.38);
}

html[data-theme="light"] body.home-page .gongyi-terminal-line {
    color: rgba(51, 65, 85, 0.82);
}

html[data-theme="light"] body.home-page .gongyi-terminal-line--command {
    color: #047857;
}

html[data-theme="light"] body.home-page .gongyi-terminal-line--muted {
    color: rgba(100, 116, 139, 0.8);
}

html[data-theme="light"] body.home-page .gongyi-terminal-line--success {
    color: #b45309;
}

html[data-theme="light"] body.home-page .verify-value-prop,
html[data-theme="light"] body.home-page .verify-supported-model {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(15, 23, 42, 0.09);
    color: rgba(15, 23, 42, 0.72);
}

html[data-theme="light"] body.home-page .verify-risk-note {
    color: rgba(15, 23, 42, 0.52);
}

html[data-theme="light"] body.home-page .verify-card-3d::after {
    background: linear-gradient(to bottom, transparent 0%, #f8fafc 90%);
}

html[data-theme="light"] body.home-page .verify-card-3d img {
    filter: drop-shadow(24px 24px 42px rgba(15, 23, 42, 0.16));
}

html[data-theme="light"] body.home-page .home-verify-live-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.96));
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow:
        24px 24px 44px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

html[data-theme="light"] body.home-page .home-verify-live-card .verify-widget-title h3,
html[data-theme="light"] body.home-page .home-verify-live-card .verify-mode-option__title,
html[data-theme="light"] body.home-page .home-verify-live-card .verify-batch-results-title {
    color: #0f172a;
}

html[data-theme="light"] body.home-page .home-verify-live-card .verify-widget-title p,
html[data-theme="light"] body.home-page .home-verify-live-card .verify-field-label,
html[data-theme="light"] body.home-page .home-verify-live-card .verify-mode-option__meta,
html[data-theme="light"] body.home-page .home-verify-live-card .verify-mode-note,
html[data-theme="light"] body.home-page .home-verify-live-card .verify-price-info,
html[data-theme="light"] body.home-page .home-verify-live-card .verify-batch-progress,
html[data-theme="light"] body.home-page .home-verify-live-card .verify-result-item-id {
    color: rgba(15, 23, 42, 0.56);
}

html[data-theme="light"] body.home-page .home-verify-live-card .verify-input {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

html[data-theme="light"] body.home-page .home-verify-live-card .verify-input.is-active {
    border-color: rgba(37, 99, 235, 0.3);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

html[data-theme="light"] body.home-page .home-verify-live-card .verify-mode-option__body,
html[data-theme="light"] body.home-page .home-verify-live-card .verify-priority-pill,
html[data-theme="light"] body.home-page .home-verify-live-card .verify-batch-results.show,
html[data-theme="light"] body.home-page .home-verify-live-card .verify-result-item,
html[data-theme="light"] body.home-page .home-verify-live-card .verify-batch-summary {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(15, 23, 42, 0.09);
}

html[data-theme="light"] body.home-page .home-verify-live-card .home-verify-bottom-panel--results .verify-batch-results,
html[data-theme="light"] body.home-page .home-verify-live-card .home-verify-bottom-panel--results .verify-batch-results.show {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(15, 23, 42, 0.09);
}

html[data-theme="light"] body.home-page .home-verify-live-card .verify-result-item-message {
    color: rgba(15, 23, 42, 0.76);
}

@media (min-width: 901px) {
    html[data-theme="light"] body.home-page .home-verify-live-card .verify-reset-btn,
    html:not([data-theme="dark"]) body.home-page .home-verify-live-card .verify-reset-btn {
        border-color: rgba(220, 88, 100, 0.28);
        background: #e87380;
        color: #fff;
        box-shadow: none;
        filter: none;
        overflow: hidden;
        backface-visibility: hidden;
    }

    html[data-theme="light"] body.home-page .home-verify-live-card .verify-reset-btn i,
    html:not([data-theme="dark"]) body.home-page .home-verify-live-card .verify-reset-btn i {
        color: rgba(255, 255, 255, 0.9);
    }

    html[data-theme="light"] body.home-page .home-verify-live-card .verify-reset-btn:hover,
    html:not([data-theme="dark"]) body.home-page .home-verify-live-card .verify-reset-btn:hover {
        border-color: rgba(216, 80, 94, 0.34);
        background: #ee7e8a;
        box-shadow: none;
        transform: none;
    }

    html[data-theme="light"] body.home-page .home-verify-live-card .home-verify-mode-field .verify-mode-option:not(.verify-mode-option--accent) input:checked + .verify-mode-option__body,
    html:not([data-theme="dark"]) body.home-page .home-verify-live-card .home-verify-mode-field .verify-mode-option:not(.verify-mode-option--accent) input:checked + .verify-mode-option__body {
        transform: translateY(2px);
        background: rgba(255, 255, 255, 0.86);
        border-color: rgba(107, 158, 206, 0.46);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.92),
            0 5px 12px rgba(15, 23, 42, 0.06);
    }

    html[data-theme="light"] body.home-page .home-verify-live-card .verify-result-item.processing,
    html:not([data-theme="dark"]) body.home-page .home-verify-live-card .verify-result-item.processing {
        border-left-color: rgba(107, 158, 206, 0.96) !important;
    }

    html[data-theme="light"] body.home-page .home-verify-live-card .verify-result-item.success,
    html:not([data-theme="dark"]) body.home-page .home-verify-live-card .verify-result-item.success {
        border-left-color: #22c55e !important;
    }
}

html[data-theme="light"] body.home-page #guestbook-section {
    --home-guestbook-card-bg: rgba(255, 255, 255, 0.84);
    --home-guestbook-card-border: rgba(15, 23, 42, 0.09);
    --home-guestbook-card-text: rgba(15, 23, 42, 0.78);
    --home-guestbook-text: #0f172a;
    --home-guestbook-text-soft: rgba(15, 23, 42, 0.62);
    --home-guestbook-text-faint: rgba(15, 23, 42, 0.4);
}

html[data-theme="light"] body.home-page #guestbook-section .home-guestbook-particle-field::before {
    background:
        radial-gradient(circle at center, rgba(15, 23, 42, 0.035) 0 1px, transparent 1.5px),
        radial-gradient(circle at center, rgba(15, 23, 42, 0.028) 0 2px, transparent 2.5px);
    opacity: 0.32;
}

html[data-theme="light"] body.home-page #guestbook-section .home-guestbook-empty {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(15, 23, 42, 0.09);
}

html[data-theme="light"] body.home-page #guestbook-section .home-guestbook-card {
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] body.home-page #guestbook-section .home-guestbook-card:hover {
    box-shadow:
        0 18px 38px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

html[data-theme="light"] body.home-page #guestbook-section .home-guestbook-avatar {
    border-color: rgba(15, 23, 42, 0.12);
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.9), rgba(248, 250, 252, 0.9));
}

html[data-theme="light"] body.home-page #guestbook-section .home-guestbook-card__author,
html[data-theme="light"] body.home-page #guestbook-section .home-guestbook-card__reason {
    color: rgba(15, 23, 42, 0.56);
}

html[data-theme="light"] body.home-page #guestbook-section .home-guestbook-card__reason,
html[data-theme="light"] body.home-page #guestbook-section .home-guestbook-card--fallback .home-guestbook-card__reason {
    background: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] body.home-page .framer-footer {
    border-top-color: rgba(15, 23, 42, 0.09);
}

html[data-theme="light"] body.home-page .footer-social a {
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(15, 23, 42, 0.09);
    color: rgba(15, 23, 42, 0.62);
}

html[data-theme="light"] body.home-page .footer-social a:hover {
    border-color: rgba(15, 23, 42, 0.18);
    color: #0f172a;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] body.home-page .footer-bottom {
    border-top-color: rgba(15, 23, 42, 0.09);
}

html[data-theme="light"] body.home-page .index-footer-tagline,
html[data-theme="light"] body.home-page .index-footer-email {
    color: rgba(15, 23, 42, 0.56);
}

/* ========== Light Theme: Navigation & Dropdowns =========== */
html[data-theme="light"] .framer-nav {
    background-color: rgba(255, 255, 255, 0.76);
    border-bottom-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.025);
}

html[data-theme="light"] .framer-nav.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.035);
}

html.mobile-menu-open .framer-nav,
body.mobile-menu-open .framer-nav,
.framer-nav:has(.nav-hamburger.active) {
    background-color: #000000 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: none !important;
}

html[data-theme="light"].mobile-menu-open .framer-nav,
html[data-theme="light"] body.mobile-menu-open .framer-nav,
html[data-theme="light"] .framer-nav:has(.nav-hamburger.active) {
    background-color: #ffffff !important;
}

html.site-theme-synthetic-menu-tap .mobile-menu,
body.site-theme-synthetic-menu-tap .mobile-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: none !important;
}

html.site-theme-synthetic-menu-tap .nav-hamburger span,
body.site-theme-synthetic-menu-tap .nav-hamburger span {
    transition: none !important;
    animation: none !important;
}

html.site-theme-synthetic-menu-tap .nav-hamburger.active span:nth-child(1),
body.site-theme-synthetic-menu-tap .nav-hamburger.active span:nth-child(1) {
    transform: translateY(-5px) !important;
}

html.site-theme-synthetic-menu-tap .nav-hamburger.active span:nth-child(2),
body.site-theme-synthetic-menu-tap .nav-hamburger.active span:nth-child(2) {
    transform: translateY(5px) !important;
}

html[data-theme="light"] .nav-logo svg path:nth-child(1),
html[data-theme="light"] .nav-logo svg path:nth-child(3) {
    fill: #0f172a;
}

html[data-theme="light"] .nav-logo svg path:nth-child(2) {
    fill: #475569;
}

html[data-theme="light"] .nav-logo svg path:nth-child(n+4) {
    fill: #94a3b8;
}

html[data-theme="light"] .nav-menu a {
    color: rgba(15, 23, 42, 0.62);
}

html[data-theme="light"] .nav-menu a:hover,
html[data-theme="light"] .framer-nav .nav-menu a.active,
html[data-theme="light"] .framer-nav .nav-menu a.active:hover,
html[data-theme="light"] a.nav-trigger.active {
    color: #0f172a !important;
}

html[data-theme="light"] .nav-hamburger span {
    background-color: #0f172a;
}

html[data-theme="light"] .nav-support-dropdown,
html[data-theme="light"] .nav-dropdown,
html[data-theme="light"] .nav-dropdown-portal {
    background-color: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .nav-dropdown-portal {
    border-top: none;
}

html[data-theme="light"] .nav-support-dropdown a,
html[data-theme="light"] .nav-dropdown a,
html[data-theme="light"] .nav-dropdown-portal a {
    color: rgba(15, 23, 42, 0.68) !important;
}

html[data-theme="light"] .nav-support-dropdown a:hover,
html[data-theme="light"] .nav-dropdown a:hover,
html[data-theme="light"] .nav-dropdown-portal a:hover {
    color: #0f172a !important;
    background-color: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .mobile-menu {
    background-color: #ffffff;
}

html[data-theme="light"] .mobile-menu-link,
html[data-theme="light"] .mobile-menu-trigger,
html[data-theme="light"] .mobile-submenu a {
    color: rgba(15, 23, 42, 0.64);
}

html[data-theme="light"] .mobile-menu-link:hover,
html[data-theme="light"] .mobile-menu-link.active,
html[data-theme="light"] .mobile-menu-trigger:hover,
html[data-theme="light"] .mobile-menu-trigger.active,
html[data-theme="light"] .mobile-submenu a:hover {
    color: #0f172a;
}

html[data-theme="light"] .mobile-submenu a {
    border-left-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .mobile-submenu a:hover {
    border-left-color: #0f172a;
}

html[data-theme="light"] .avatar-dropdown {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .dropdown-header {
    border-bottom-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .dropdown-notif-btn,
html[data-theme="light"] .dropdown-lang-btn,
html[data-theme="light"] .theme-toggle-btn {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.1);
    color: rgba(15, 23, 42, 0.84);
}

html[data-theme="light"] .dropdown-notif-btn:hover,
html[data-theme="light"] .dropdown-lang-btn:hover,
html[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.18);
}

html[data-theme="light"] .dropdown-action {
    color: rgba(15, 23, 42, 0.78);
}

html[data-theme="light"] .identity-name {
    color: rgba(15, 23, 42, 0.86);
}

html[data-theme="light"] .dropdown-action:hover {
    background: rgba(15, 23, 42, 0.07);
    color: #0f172a;
}

html[data-theme="light"] .dropdown-action i {
    color: rgba(15, 23, 42, 0.48);
}

html[data-theme="light"] .dropdown-action:hover i {
    color: rgba(15, 23, 42, 0.86);
}

html[data-theme="light"] .lang-toggle-simple:hover {
    background: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .lang-toggle-simple .lang-text {
    color: rgba(15, 23, 42, 0.5);
}

html[data-theme="light"] .lang-toggle-simple .lang-text.active {
    color: #0f172a;
}

html[data-theme="light"] .lang-toggle-simple .lang-separator {
    color: rgba(15, 23, 42, 0.24);
}

html[data-theme="light"] .lang-toggle-simple .lang-text:hover:not(.active) {
    background: rgba(15, 23, 42, 0.06);
    color: rgba(15, 23, 42, 0.72);
}

@media (max-width: 900px) {
    html[data-theme="light"] body.home-page .verify-grid--dynamic .verify-card-3d--dynamic,
    html[data-theme="light"] body.home-page .verify-grid--dynamic .verify-card-3d--dynamic.visible,
    html:not([data-theme="dark"]) body.home-page .verify-grid--dynamic .verify-card-3d--dynamic,
    html:not([data-theme="dark"]) body.home-page .verify-grid--dynamic .verify-card-3d--dynamic.visible {
        box-shadow: none !important;
        filter: none !important;
    }

    html[data-theme="light"] body.home-page .home-verify-live-card,
    html:not([data-theme="dark"]) body.home-page .home-verify-live-card {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    html[data-theme="light"] body.home-page .home-verify-live-card .home-verify-bottom-panel--results .verify-batch-results,
    html[data-theme="light"] body.home-page .home-verify-live-card .home-verify-bottom-panel--results .verify-batch-results.show,
    html:not([data-theme="dark"]) body.home-page .home-verify-live-card .home-verify-bottom-panel--results .verify-batch-results,
    html:not([data-theme="dark"]) body.home-page .home-verify-live-card .home-verify-bottom-panel--results .verify-batch-results.show {
        background: rgba(255, 255, 255, 0.8);
        border-color: rgba(15, 23, 42, 0.09);
    }

    html[data-theme="light"] body.home-page .home-verify-live-card .verify-result-item.processing,
    html:not([data-theme="dark"]) body.home-page .home-verify-live-card .verify-result-item.processing {
        border-left-color: rgba(107, 158, 206, 0.96) !important;
    }

    html[data-theme="light"] body.home-page .home-verify-live-card .verify-result-item.success,
    html:not([data-theme="dark"]) body.home-page .home-verify-live-card .verify-result-item.success {
        border-left-color: #22c55e !important;
    }
}
