@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

:root {
    --bg: #f2f4f7;
    --surface: #ffffff;
    --surface-soft: #f7f9fc;
    --surface-strong: #111827;
    --text: #17202a;
    --muted: #697586;
    --card: #ffffff;
    --accent: #e01931;
    --accent-dark: #b91328;
    --accent-soft: rgba(224, 25, 49, 0.1);
    --success: #16834c;
    --warning: #f2a900;
    --teal: #0796a3;
    --border: #dde3ea;
    --border-strong: #cbd5df;
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.08);
    --shadow: 0 14px 34px rgba(15, 23, 42, 0.11);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
    --sidebar-width: 238px;
}

body.dark {
    --bg: #10141b;
    --surface: #171d26;
    --surface-soft: #202936;
    --surface-strong: #0b1118;
    --text: #f5f7fb;
    --muted: #b8c2cf;
    --card: #1c2430;
    --border: #2e3948;
    --border-strong: #425064;
    --accent-soft: rgba(224, 25, 49, 0.18);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.22);
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.45);
}

body.light {
    --bg: #f2f4f7;
    --surface: #ffffff;
    --surface-soft: #f7f9fc;
    --surface-strong: #111827;
    --text: #17202a;
    --muted: #697586;
    --card: #ffffff;
    --border: #dde3ea;
    --border-strong: #cbd5df;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(7, 150, 163, 0.08), transparent 34rem),
        linear-gradient(180deg, rgba(224, 25, 49, 0.04), transparent 22rem),
        var(--bg);
    color: var(--text);
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.58;
    min-width: 320px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

body,
button,
input,
select,
textarea {
    font-family: 'Lato', Arial, Helvetica, sans-serif;
}

button {
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

.pm-container {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.mobile-menu-btn,
.mobile-currency,
.mobile-settings,
.sidebar-backdrop,
.sidebar-close {
    display: none;
}

.pm-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

.pm-top {
    padding: 9px 0;
}

.pm-top-flex {
    display: grid;
    grid-template-columns: 80px minmax(260px, 1fr) auto;
    align-items: center;
    gap: 20px;
}

.pm-logo a {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    line-height: 0;
}

.pm-logo img {
    display: block;
    width: auto;
    height: 58px;
    max-width: 72px;
    max-height: 58px;
    object-fit: contain;
}

.pm-search {
    position: relative;
}

.pm-search input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 15px;
    padding: 0 52px 0 16px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pm-search input:focus {
    background: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.search-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 17px;
    line-height: 1;
}

.pm-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    white-space: nowrap;
}

.pm-action {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 48px;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 18px;
    text-align: center;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.action-icon,
.cart-icon,
.search-icon {
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
}

.flag-icon {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 15px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.22);
}

.flag-tz {
    background: linear-gradient(
        145deg,
        #1eb53a 0 34%,
        #fcd116 34% 39%,
        #111827 39% 61%,
        #fcd116 61% 66%,
        #00a3dd 66% 100%
    );
}

.flag-us {
    background: repeating-linear-gradient(
        to bottom,
        #b22234 0 1.15px,
        #ffffff 1.15px 2.3px
    );
}

.flag-us::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 9.4px;
    height: 8.2px;
    background: #3c3b6e;
}

.pm-lang a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 11px;
    line-height: 1;
    box-shadow: 0 5px 14px rgba(224, 25, 49, 0.28);
}

.pm-action span {
    display: block;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    margin-top: 1px;
}

.pm-action:hover,
.pm-lang a:hover {
    color: var(--accent);
}

.pm-action:hover {
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.pm-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.divider {
    display: inline-block;
    width: 1px;
    height: 24px;
    background: var(--border);
}

.pm-menu {
    position: sticky;
    top: 75px;
    z-index: 90;
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(153, 15, 32, 0.2);
}

.pm-menu-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    gap: 18px;
}

.pm-left-menu,
.pm-right-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pm-left-menu a,
.all-cat-btn,
.currency,
.settings {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
}

.pm-left-menu a:hover,
.all-categories:hover .all-cat-btn,
.settings:hover {
    background: rgba(255, 255, 255, 0.14);
}

.all-categories,
.settings {
    position: relative;
}

.mega-menu,
.settings-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 250px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 0 0 6px 6px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.all-categories:hover .mega-menu,
.settings:hover .settings-menu,
.currency:hover .currency-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Currency Dropdown */
.currency {
    position: relative;
}

.currency-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.currency-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 150px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 0 0 6px 6px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 1000;
}

.currency-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s ease;
}

.currency-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.currency-menu a.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.mega-inner,
.settings-menu {
    display: grid;
    padding: 10px;
}

.mega-inner {
    max-height: 68vh;
    overflow: auto;
}

.mega-inner a,
.settings-menu a {
    padding: 10px 12px;
    border-radius: 4px;
    color: var(--text);
    font-weight: 800;
}

.mega-inner a:hover,
.settings-menu a:hover {
    background: var(--surface-soft);
    color: var(--accent);
}

.pm-main {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    gap: 24px;
    width: min(1240px, calc(100% - 32px));
    margin: 24px auto 0;
    align-items: start;
}

.pm-sidebar {
    position: sticky;
    top: 148px;
    display: grid;
    gap: 3px;
    max-height: calc(100vh - 168px);
    overflow-y: auto;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}

.pm-sidebar::-webkit-scrollbar {
    width: 7px;
}

.pm-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.pm-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 999px;
}

.pm-sidebar a {
    display: flex;
    align-items: center;
    min-height: 41px;
    padding: 9px 11px;
    border-radius: 4px;
    color: var(--text);
    font-weight: 800;
    line-height: 1.25;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.pm-sidebar a:hover {
    background: var(--surface-soft);
    color: var(--accent);
    transform: translateX(2px);
}

.pm-content {
    min-width: 0;
}

.home-message-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, auto);
    justify-items: stretch;
    gap: clamp(14px, 2.4vw, 26px);
    align-items: center;
    margin-bottom: 12px;
    min-height: 190px;
    padding: clamp(20px, 3vw, 34px) clamp(20px, 3.6vw, 38px);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(224, 25, 49, 0.08), rgba(7, 150, 163, 0.08)),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.home-message-panel::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -42%;
    width: 34%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    animation: homeMessageSheen 7s ease-in-out infinite;
    pointer-events: none;
}

.home-message-copy,
.home-message-steps {
    position: relative;
    z-index: 1;
}

.home-message-copy {
    display: grid;
    justify-items: start;
    text-align: left;
}

.home-message-copy .caption-label {
    min-height: 30px;
    margin-bottom: 12px;
    padding: 0;
    color: var(--accent);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: clamp(14px, 1.15vw, 16px);
    line-height: 1.15;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(224, 25, 49, 0.18);
    backdrop-filter: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.home-message-copy .home-brand-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    width: min(100%, 780px);
    margin: 0 0 18px;
    text-align: left;
}

.home-brand-name {
    display: inline-flex;
    align-items: center;
    color: inherit;
    font-size: clamp(22px, 2.4vw, 34px);
    line-height: 1;
}

.home-brand-slogan {
    display: inline-flex;
    align-items: center;
    min-height: clamp(34px, 3.4vw, 48px);
    padding: 0 clamp(16px, 2vw, 24px);
    color: #ffffff;
    background: var(--accent);
    border-radius: 4px;
    font-size: clamp(18px, 2vw, 28px);
    line-height: 1;
    box-shadow: 0 10px 24px rgba(224, 25, 49, 0.25);
}

.home-message-copy .caption-label::before {
    content: "";
    flex: 0 0 auto;
    width: 26px;
    height: 2px;
    margin-right: 9px;
    background: var(--accent);
}

.home-message-copy h1 {
    max-width: 780px;
    margin: 0 0 12px;
    color: var(--text);
    font-size: clamp(38px, 4.8vw, 66px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: 0;
    text-shadow: none;
}

.home-message-copy p:not(.caption-label) {
    max-width: 900px;
    margin: 0;
    color: color-mix(in srgb, var(--text) 82%, var(--muted));
    font-size: clamp(20px, 1.7vw, 25px);
    line-height: 1.48;
    font-weight: 800;
}

.home-message-steps {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: min(100%, 490px);
    min-width: 0;
    padding: 8px;
    background: color-mix(in srgb, var(--surface-soft) 78%, transparent);
    border: 1px solid var(--border);
    border-radius: 8px;
    justify-self: center;
}

.home-message-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    flex: 1 1 0;
    min-height: 38px;
    padding: 0 15px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    animation: homeMessageStep 4.8s ease-in-out infinite;
}

.home-message-steps span:nth-of-type(2) {
    animation-delay: 0.18s;
}

.home-message-steps span:nth-of-type(3) {
    color: #ffffff;
    background: var(--accent);
    border-color: var(--accent);
    animation-delay: 0.36s;
}

.home-message-steps i {
    display: block;
    width: 22px;
    height: 1px;
    overflow: hidden;
    background: var(--border-strong);
}

.home-message-steps i::after {
    content: "";
    display: block;
    width: 50%;
    height: 100%;
    color: var(--accent);
    background: var(--accent);
    animation: homeMessageLine 2.4s ease-in-out infinite;
}

body.light .home-message-panel {
    background:
        linear-gradient(135deg, rgba(224, 25, 49, 0.1), rgba(7, 150, 163, 0.1)),
        #ffffff;
}

body.dark .home-message-copy .caption-label {
    color: #ff2a43;
    text-shadow: 0 0 18px rgba(224, 25, 49, 0.28);
}

body.dark .home-message-copy h1,
body.dark .home-message-copy p:not(.caption-label) {
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

body.light .home-message-copy h1 {
    color: #111827;
}

body.light .home-message-copy p:not(.caption-label) {
    color: #243041;
}

body.light .home-message-steps span:nth-of-type(3) {
    color: #ffffff;
    background: var(--accent);
    border-color: var(--accent);
}

body.light .home-message-panel::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.76), transparent);
}

@keyframes homeMessageSheen {
    0%, 34% {
        transform: translateX(0);
        opacity: 0;
    }
    48% {
        opacity: 1;
    }
    70%, 100% {
        transform: translateX(430%);
        opacity: 0;
    }
}

@keyframes homeMessageStep {
    0%, 100% {
        transform: translateY(0);
    }
    45% {
        transform: translateY(-2px);
    }
}

@keyframes homeMessageLine {
    0% {
        transform: translateX(-105%);
    }
    55%, 100% {
        transform: translateX(210%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-message-panel::before,
    .home-message-steps span,
    .home-message-steps i::after {
        animation: none;
    }
}

.slider {
    position: relative;
    overflow: hidden;
    min-height: 348px;
    background: var(--surface-strong);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.slides {
    display: flex;
    height: 100%;
    min-height: 348px;
    animation: heroTrackSlide 18s infinite ease-in-out;
}

.slider.is-js-slider .slides {
    animation: none;
    will-change: transform;
}

.slide {
    position: relative;
    flex: 0 0 100%;
    display: block;
    cursor: pointer;
}

.slide img {
    width: 100%;
    height: 348px;
    object-fit: cover;
    transform: scale(1.01);
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 8, 14, 0.74) 0%, rgba(4, 8, 14, 0.42) 42%, rgba(4, 8, 14, 0.06) 82%),
        linear-gradient(180deg, transparent 38%, rgba(4, 8, 14, 0.36) 100%);
    pointer-events: none;
}

.caption {
    position: absolute;
    left: clamp(22px, 4vw, 44px);
    bottom: clamp(22px, 3.4vw, 34px);
    max-width: min(470px, 48%);
    color: #ffffff;
    z-index: 1;
}

.caption-label {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 24px;
    margin: 0 0 8px;
    padding: 0 9px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.caption h2 {
    display: -webkit-box;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(30px, 3.7vw, 46px);
    line-height: 1.04;
    letter-spacing: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.58);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.caption-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 38px;
    margin-top: 12px;
    background: var(--accent);
    color: #ffffff;
    padding: 0 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 10px 28px rgba(224, 25, 49, 0.35);
    transition: background 0.18s ease, transform 0.18s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slide:hover .caption-button {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.hero-slider-controls {
    position: absolute;
    left: clamp(22px, 4vw, 44px);
    bottom: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-slider-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    padding: 0;
}

.hero-slider-dot.active {
    width: 22px;
    background: #ffffff;
}

@keyframes heroTrackSlide {
    0%, 25% {
        transform: translateX(0);
    }

    33.333%, 58.333% {
        transform: translateX(-100%);
    }

    66.666%, 91.666% {
        transform: translateX(-200%);
    }

    100% {
        transform: translateX(-300%);
    }
}

.hero,
.section {
    margin-top: 26px;
}

.hero {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.hero h1,
.section h2 {
    margin: 0;
    color: var(--text);
    letter-spacing: 0;
}

.hero p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section {
    position: relative;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    font-size: clamp(22px, 2.1vw, 28px);
    line-height: 1.2;
    font-weight: 900;
}

.section h2::before {
    content: "";
    width: 5px;
    height: 24px;
    border-radius: 3px;
    background: var(--accent);
}

.section:nth-of-type(3n) h2::before {
    background: var(--teal);
}

.section:nth-of-type(3n + 1) h2::before {
    background: var(--warning);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
}

.card,
.magazine-card {
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover,
.magazine-card:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.card img,
.magazine-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background:
        linear-gradient(135deg, rgba(224, 25, 49, 0.08), rgba(7, 150, 163, 0.1)),
        var(--surface-soft);
}

.card h3,
.magazine-card h3 {
    min-height: 42px;
    margin: 12px 12px 5px;
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
}

.card p,
.magazine-card p,
.price {
    margin: 0 12px 12px;
    color: var(--accent);
    font-size: 15px;
    font-weight: 900;
}

.carousel-container {
    position: relative;
}

.carousel {
    overflow: hidden;
    border-radius: 6px;
}

.carousel-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 2px 6px;
}

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

.carousel-card {
    flex: 0 0 calc(25% - 13.5px);
    min-width: 166px;
}

.home-section-carousel {
    position: relative;
}

.home-section-window {
    overflow: hidden;
}

.home-section-track {
    display: grid;
    grid-template-columns: repeat(7, calc((100% - 54px) / 4));
    gap: 18px;
    transition: transform 0.34s ease;
    will-change: transform;
}

.home-section-track.is-shifted {
    transform: translateX(calc(-3 * ((100% - 54px) / 4 + 18px)));
}

.home-section-card {
    min-width: 0;
}

.home-carousel-arrow {
    position: absolute;
    top: 42%;
    z-index: 10;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(153, 15, 32, 0.24);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.home-carousel-arrow:hover {
    background: var(--accent-dark);
    box-shadow: 0 12px 30px rgba(153, 15, 32, 0.34);
    transform: translateY(-1px);
}

.home-carousel-prev {
    left: -15px;
}

.home-carousel-next {
    right: -15px;
}

.home-section-footer .home-see-more {
    display: none;
}

.home-see-more-card {
    display: none;
}

.carousel-nav {
    position: absolute;
    top: 42%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(153, 15, 32, 0.24);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.carousel-nav:hover {
    background: var(--accent-dark);
    box-shadow: 0 12px 30px rgba(153, 15, 32, 0.34);
    transform: translateY(-1px);
}

.carousel-prev {
    left: -15px;
}

.carousel-next {
    right: -15px;
}

.section-footer {
    display: flex;
    justify-content: center;
    padding-top: 14px;
}

.see-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    background: var(--surface-soft);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.see-more-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 24px);
    min-height: 40px;
    margin: 0 12px 12px;
    border: 0;
    border-radius: 4px;
    background: var(--accent);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
    background: var(--accent-dark);
    box-shadow: 0 9px 20px rgba(224, 25, 49, 0.26);
    transform: translateY(-1px);
}

.library-remove-form {
    margin: 0;
}

.library-page {
    padding: clamp(18px, 3vw, 28px);
}

.library-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.library-head h2 {
    margin: 6px 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.06;
}

.library-head p:not(.caption-label) {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.library-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.library-card:hover {
    transform: translateY(-3px);
    border-color: rgba(224, 25, 49, 0.38);
    box-shadow: var(--shadow);
}

.library-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 4;
    background: var(--surface-soft);
    overflow: hidden;
}

.library-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.library-cover span {
    color: var(--accent);
    font-size: 58px;
    font-weight: 900;
}

.library-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px;
}

.library-status {
    width: fit-content;
    max-width: 100%;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.library-status.is-ready {
    background: rgba(22, 131, 76, 0.12);
    color: var(--success);
}

.library-card h3 {
    margin: 12px 0 16px;
    font-size: 19px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.library-actions {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.library-actions .btn,
.library-actions .see-more-btn {
    width: 100%;
    margin: 0;
}

.danger-link {
    border-color: rgba(224, 25, 49, 0.35);
    color: var(--accent);
}

.library-empty {
    padding: clamp(24px, 5vw, 42px);
    border: 1px dashed var(--border-strong);
    border-radius: 8px;
    background: var(--surface);
    text-align: center;
}

.library-empty h3 {
    margin: 0 0 16px;
}

.danger-btn {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--accent);
}

.danger-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.login-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    gap: 28px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.login-left h1,
.login-right h2 {
    margin-top: 0;
}

.login-left p,
.login-right p,
.login-right li {
    color: var(--muted);
}

.login-container .divider {
    width: 1px;
    height: auto;
    background: var(--border);
}

.login-container form {
    display: grid;
    gap: 12px;
}

.login-container input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface-soft);
    color: var(--text);
    padding: 0 12px;
    outline: none;
}

.login-container input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.password-box {
    position: relative;
}

.password-box input {
    padding-right: 58px;
}

.password-box span {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.login-actions button,
.register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 4px;
    background: var(--accent);
    color: #ffffff;
    padding: 0 18px;
    font-weight: 900;
    cursor: pointer;
}

.login-actions button:hover,
.register-btn:hover {
    background: var(--accent-dark);
}

.error,
.success {
    padding: 10px 12px;
    border-radius: 4px;
    font-weight: 800;
}

.error {
    background: rgba(224, 25, 49, 0.12);
    color: #d71932;
}

.success {
    background: rgba(24, 150, 85, 0.13);
    color: var(--success);
}

.account-page {
    max-width: none;
}

.account-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.account-head h2 {
    margin: 8px 0 0;
}

.account-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1fr) minmax(280px, 1fr);
    gap: 18px;
    align-items: start;
}

.account-card {
    padding: 20px;
}

.account-card h3 {
    margin: 0 0 6px;
}

.account-card .btn {
    width: auto;
    margin: 14px 0 0;
    padding: 0 18px;
}

.section-intro {
    max-width: 720px;
    color: var(--muted);
    margin: -4px 0 18px;
}

.muted-small {
    color: var(--muted);
    font-size: 13px;
}

.offer-hero,
.future-box,
.ads-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.offer-hero,
.future-box {
    padding: 20px;
    margin-bottom: 22px;
}

.offer-hero h3,
.future-box h3 {
    margin: 0 0 8px;
}

.offer-hero p,
.future-box p {
    margin: 0;
    color: var(--muted);
}

.ads-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
    padding: clamp(22px, 4vw, 38px);
    margin: 0 0 24px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(224, 25, 49, 0.13), transparent 42%),
        linear-gradient(135deg, var(--surface), var(--surface-soft));
}

.ads-kicker,
.ad-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(224, 25, 49, 0.28);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ads-hero h2 {
    max-width: 720px;
    margin: 12px 0 10px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.02;
}

.ads-hero p {
    max-width: 660px;
    color: var(--muted);
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
}

.ads-hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.ads-hero-metrics span {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 82%, var(--accent-soft));
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.ads-hero-metrics strong {
    color: var(--text);
}

.ads-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.ads-cta {
    width: auto;
    min-height: 44px;
    margin: 0;
    padding: 0 20px;
    white-space: nowrap;
}

.ads-secondary-cta {
    margin: 0;
    min-height: 44px;
    padding: 0 18px;
}

.ads-business-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.64fr);
    gap: 18px;
    align-items: center;
    margin: 0 0 22px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(7, 150, 163, 0.11), transparent 48%),
        var(--surface);
    box-shadow: var(--shadow-sm);
}

.ads-business-panel h3 {
    margin: 12px 0 8px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
}

.ads-business-panel p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.ads-business-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ads-business-points span {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.ad-feature {
    margin-bottom: 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ad-feature-link {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
    min-height: 360px;
    color: inherit;
}

.ad-feature-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: clamp(22px, 4vw, 42px);
}

.ad-feature-copy h3 {
    margin: 14px 0 14px;
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.ad-feature-copy p {
    max-width: 560px;
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.ad-feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.ad-feature-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(7, 150, 163, 0.26);
    border-radius: 999px;
    background: color-mix(in srgb, var(--teal) 12%, var(--surface));
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
}

.ad-feature-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: clamp(260px, 32vw, 520px);
    padding: clamp(12px, 2vw, 24px);
    background:
        linear-gradient(135deg, rgba(7, 150, 163, 0.13), transparent 55%),
        var(--surface-soft);
}

.ad-feature-media img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
}

.ads-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 10px 0 14px;
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
}

.ads-section-head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.ad-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ad-card::before,
.ad-feature::before {
    content: "Sponsored";
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    pointer-events: none;
    text-transform: uppercase;
}

.ad-card,
.ad-feature {
    position: relative;
}

.ad-card:hover {
    transform: translateY(-3px);
    border-color: rgba(224, 25, 49, 0.38);
    box-shadow: var(--shadow);
}

.ad-card-link {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100%;
    color: inherit;
}

.ad-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: clamp(210px, 24vw, 330px);
    aspect-ratio: 4 / 3;
    padding: 12px;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--border);
}

.ad-card-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.ad-card-placeholder {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: min(100%, 280px);
    min-height: 180px;
    padding: 18px;
    border: 1px dashed rgba(224, 25, 49, 0.34);
    border-radius: 8px;
    color: var(--accent);
    font-size: 54px;
    font-weight: 900;
    background:
        linear-gradient(145deg, rgba(224, 25, 49, 0.12), rgba(7, 150, 163, 0.08)),
        var(--surface);
    text-transform: uppercase;
}

.ad-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 18px;
}

.ad-card-body h4 {
    margin: 12px 0 8px;
    font-size: 20px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.ad-card-body p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.ad-card-action {
    margin-top: auto;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

.ads-empty {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(22px, 4vw, 34px);
    border: 1px dashed var(--border-strong);
    border-radius: 8px;
    background: var(--surface);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.ads-empty .ad-label,
.ads-empty .see-more-btn {
    margin-left: auto;
    margin-right: auto;
}

.ads-empty h3 {
    margin: 14px 0 8px;
    font-size: 28px;
}

.ads-empty p {
    max-width: 560px;
    margin: 0 auto 18px;
    color: var(--muted);
    line-height: 1.65;
}

.ad-detail-page {
    max-width: 1180px;
}

.ad-detail-topbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.ad-detail-showcase {
    display: grid;
    grid-template-columns: minmax(320px, 0.86fr) minmax(360px, 1.14fr);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.ad-detail-text-only {
    grid-template-columns: 1fr;
}

.ad-detail-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(24px, 4vw, 48px);
    background:
        linear-gradient(135deg, rgba(224, 25, 49, 0.13), transparent 46%),
        linear-gradient(180deg, var(--surface), var(--surface-soft));
}

.ad-detail-hero h1 {
    margin: 16px 0 16px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 0.98;
    overflow-wrap: anywhere;
}

.ad-detail-hero p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.ad-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.ad-detail-actions .btn,
.ad-detail-actions .see-more-btn {
    width: auto;
    margin: 0;
    padding: 0 20px;
}

.ad-detail-media {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-height: 420px;
    padding: clamp(16px, 3vw, 30px);
    background:
        linear-gradient(135deg, rgba(7, 150, 163, 0.12), transparent 52%),
        #10141b;
    border-left: 1px solid var(--border);
    overflow: hidden;
}

.ad-detail-media img {
    width: 100%;
    height: auto;
    max-height: min(78vh, 720px);
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.ad-detail-content {
    grid-column: 1 / -1;
    min-width: 0;
    padding: clamp(22px, 4vw, 38px);
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.ad-detail-content-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
}

.ad-detail-content-head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.ad-shuffle-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.45fr) minmax(320px, 1fr);
    gap: clamp(18px, 4vw, 34px);
    align-items: center;
    margin-bottom: 30px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(224, 25, 49, 0.09), transparent 48%),
        var(--surface-soft);
}

.ad-shuffle-copy h2 {
    margin: 12px 0 10px;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.08;
}

.ad-shuffle-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.ad-shuffle-deck {
    position: relative;
    min-height: 430px;
    cursor: pointer;
    outline: none;
}

.ad-shuffle-card {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    width: min(360px, 86%);
    min-height: 360px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
    color: inherit;
    transform:
        translate(-50%, -50%)
        translate(calc(var(--card-index) * 11px), calc(var(--card-index) * 7px))
        rotate(calc((var(--card-index) - 2) * 2.5deg));
    transition: transform 0.65s ease, opacity 0.28s ease, box-shadow 0.28s ease;
}

.ad-shuffle-card:nth-child(n+7) {
    opacity: 0;
}

.ad-shuffle-card.is-moving-back {
    transform: translate(-72%, -58%) rotate(-12deg) scale(0.94);
}

.ad-shuffle-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: 6px;
    background: #111827;
}

.ad-shuffle-card span {
    margin-top: 12px;
    color: var(--text);
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ad-shuffle-card small {
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.ad-shuffle-deck.is-expanded {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    min-height: 0;
    cursor: default;
}

.ad-shuffle-deck.is-expanded .ad-shuffle-card {
    position: static;
    width: 100%;
    min-height: 100%;
    transform: none;
    opacity: 1;
    box-shadow: var(--shadow-sm);
}

.ad-shuffle-deck.is-expanded .ad-shuffle-card img {
    height: auto;
    aspect-ratio: 16 / 10;
}

.ad-detail-body {
    color: var(--text);
    font-size: 17px;
    line-height: 1.75;
    max-width: 880px;
}

.ad-detail-body p {
    margin: 0 0 16px;
}

.ad-detail-muted {
    margin: 0;
    color: var(--muted);
}

.ad-visit-link {
    width: auto;
    margin: 0;
    padding: 0 20px;
}

.ad-detail-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-top: 28px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.ad-detail-contact strong,
.ad-detail-contact span {
    display: block;
}

.ad-detail-contact span {
    margin-top: 3px;
    color: var(--muted);
}

.ad-detail-contact .btn {
    width: auto;
    margin: 0;
    padding: 0 20px;
    white-space: nowrap;
}

/* Premium advertisement presentation */
.ads-page {
    display: grid;
    gap: 22px;
}

.ads-hero {
    border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
    background:
        radial-gradient(circle at 88% 14%, rgba(7, 150, 163, 0.24), transparent 30%),
        linear-gradient(135deg, rgba(224, 25, 49, 0.18), transparent 46%),
        linear-gradient(135deg, var(--surface), var(--surface-soft));
}

.ads-hero h2,
.ad-detail-hero h1 {
    max-width: 760px;
    letter-spacing: 0;
}

.ads-business-panel,
.ad-feature,
.ad-card,
.ad-detail-showcase,
.ad-shuffle-section {
    border-color: color-mix(in srgb, var(--accent) 18%, var(--border));
}

.ad-feature {
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.ad-feature-link {
    grid-template-columns: minmax(300px, 0.75fr) minmax(420px, 1.25fr);
}

.ad-feature-media,
.ad-card-media {
    background:
        linear-gradient(145deg, rgba(4, 8, 14, 0.92), rgba(20, 28, 40, 0.92)),
        var(--surface-soft);
}

.ad-feature-media img,
.ad-card-image {
    padding: 12px;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.32));
}

.ad-card {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, var(--accent-soft)), var(--surface));
}

.ad-card:hover .ad-card-image {
    transform: scale(1.035);
}

.ad-card-image {
    transition: transform 0.22s ease;
}

.ad-card-body h4 {
    font-size: 21px;
}

.ad-card-action {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--accent-soft);
}

.ad-detail-showcase {
    border-radius: 10px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, var(--accent-soft)), var(--surface));
}

.ad-detail-hero {
    min-height: 430px;
    background:
        linear-gradient(135deg, rgba(224, 25, 49, 0.18), transparent 48%),
        radial-gradient(circle at 16% 88%, rgba(7, 150, 163, 0.2), transparent 32%),
        var(--surface);
}

.ad-detail-media {
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 34%),
        linear-gradient(145deg, #070b12, #18202d);
}

.ad-detail-media img {
    max-width: min(100%, 620px);
    background: rgba(255, 255, 255, 0.04);
}

.ad-shuffle-section {
    grid-template-columns: minmax(260px, 0.38fr) minmax(360px, 1fr);
    background:
        radial-gradient(circle at 76% 18%, rgba(7, 150, 163, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(224, 25, 49, 0.1), transparent 45%),
        var(--surface);
}

.ad-shuffle-deck {
    min-height: 500px;
    perspective: 1200px;
}

.ad-shuffle-card {
    width: min(420px, 88%);
    min-height: 430px;
    padding: 14px;
    border-color: rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, #ffffff), var(--surface));
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
    transform:
        translate(-50%, -50%)
        translate(calc(var(--card-index) * 14px), calc(var(--card-index) * 9px))
        rotate(calc((var(--card-index) - 2) * 3deg))
        rotateY(-4deg);
}

.ad-shuffle-card img {
    height: 300px;
    background:
        linear-gradient(145deg, rgba(4, 8, 14, 0.96), rgba(28, 36, 50, 0.96));
    object-fit: contain;
}

.ad-shuffle-card span {
    font-size: 18px;
}

.ad-shuffle-deck.is-expanded {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ad-shuffle-deck.is-expanded .ad-shuffle-card {
    min-height: 0;
    padding: 10px;
}

.admin-ad-gallery-manager {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.admin-ad-gallery-manager h3 {
    margin: 0;
}

.admin-ad-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.admin-ad-gallery-grid label {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}

.admin-ad-gallery-grid img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    border-radius: 4px;
    background: #10141b;
}

.admin-ad-gallery-grid span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.admin-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    align-items: stretch;
    margin-top: 24px;
}

.admin-offer-card {
    position: relative;
    grid-template-rows: auto auto auto 1fr auto auto;
    min-height: 100%;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
    overflow: hidden;
}

.admin-offer-card h3 {
    margin: 0;
    color: var(--text);
    font-size: 20px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.admin-offer-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.admin-offer-card > img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.offer-badge {
    width: fit-content;
    max-width: 100%;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.offer-discount {
    width: fit-content;
    max-width: 100%;
    padding: 7px 10px;
    border-radius: 4px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--accent) !important;
    font-weight: 900;
}

.offer-mini-magazines {
    display: grid;
    gap: 7px;
    align-self: end;
    padding-top: 4px;
}

.offer-mini-magazines a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    color: var(--text);
    min-width: 0;
    padding: 6px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
}

.offer-mini-magazines img {
    width: 42px;
    height: 56px;
    object-fit: cover;
    border-radius: 3px;
}

.offer-mini-magazines span {
    min-width: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.digital-work-page {
    display: grid;
    gap: 30px;
}

.digital-work-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 46px);
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 88%, var(--teal)), color-mix(in srgb, var(--surface-strong) 82%, var(--accent))),
        var(--surface-strong);
    box-shadow: var(--shadow-lg);
    color: #ffffff;
}

.digital-work-hero::before {
    content: "";
    position: absolute;
    inset: auto -8% -36% 42%;
    height: 78%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px 0 0 0;
    transform: rotate(-7deg);
}

.digital-work-hero .caption-label {
    position: relative;
    color: rgba(255, 255, 255, 0.76);
}

.digital-work-hero h1 {
    position: relative;
    max-width: 740px;
    margin: 8px 0 12px;
    font-size: 52px;
    line-height: 1;
}

.digital-work-hero p:last-child {
    position: relative;
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
}

.digital-work-block {
    display: grid;
    gap: 16px;
}

.digital-work-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.digital-work-section-head h2 {
    margin: 0;
    font-size: 24px;
}

.digital-work-section-head p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-weight: 800;
    text-align: right;
}

.digital-article-grid,
.digital-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.digital-article-grid {
    grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
}

.digital-article-card,
.digital-video-card,
.digital-empty {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.digital-article-card {
    display: grid;
    grid-template-rows: auto 1fr;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.digital-article-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    box-shadow: var(--shadow-lg);
}

.digital-article-image-link {
    display: block;
    min-height: 0;
    background: var(--surface-soft);
}

.digital-article-image-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: var(--surface-soft);
}

.digital-article-placeholder,
.event-placeholder {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    width: 100%;
    aspect-ratio: 3 / 4;
    background:
        linear-gradient(145deg, rgba(224, 25, 49, 0.18), rgba(7, 150, 163, 0.2)),
        var(--surface-soft);
    color: var(--text);
    text-transform: uppercase;
}

.digital-article-placeholder strong,
.event-placeholder strong {
    color: var(--accent);
    font-size: 42px;
    line-height: 1;
}

.digital-article-placeholder small,
.event-placeholder small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.digital-card-copy {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.digital-article-card .digital-card-copy {
    align-content: start;
    gap: 8px;
    padding: 12px;
}

.digital-card-copy h3,
.digital-card-copy strong {
    margin: 0;
    color: var(--text);
    font-size: 20px;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.digital-article-card .digital-card-copy h3 {
    min-height: 43px;
    font-size: 16px;
    line-height: 1.32;
}

.digital-card-copy p {
    margin: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.digital-article-card .digital-card-copy > p:not(.digital-card-caption) {
    display: -webkit-box;
    min-height: 40px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.digital-card-caption {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.digital-article-card .digital-card-caption {
    font-size: 11px;
}

.digital-link {
    width: fit-content;
    max-width: 100%;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 4px;
    background: var(--accent);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.digital-article-card .digital-link {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
}

.event-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.event-showcase {
    display: grid;
    gap: 14px;
    padding: clamp(14px, 2vw, 20px);
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--teal) 7%, transparent), transparent 42%),
        var(--surface);
    box-shadow: var(--shadow);
}

.event-group-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.event-group-head span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.event-group-head h3 {
    margin: 0;
    color: var(--text);
    font-size: clamp(21px, 3vw, 30px);
    line-height: 1.12;
}

.event-grid-upcoming {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.event-card,
.gallery-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.event-card {
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.event-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
    box-shadow: var(--shadow-lg);
}

.event-card.is-live {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.event-card-featured {
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
}

.event-cover,
.gallery-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--teal) 18%, var(--surface-soft)), color-mix(in srgb, var(--accent) 14%, var(--surface-soft)));
}

.event-cover-featured {
    height: 100%;
    min-height: 360px;
    aspect-ratio: auto;
}

.event-cover img,
.gallery-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.24s ease;
}

.event-card:hover .event-cover img,
.gallery-card:hover .gallery-cover img {
    transform: scale(1.04);
}

.event-cover::after,
.gallery-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 42%, rgba(0, 0, 0, 0.58));
    pointer-events: none;
}

.event-new-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 4px;
    background: var(--accent);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    animation: eventBlink 1.1s ease-in-out infinite;
    box-shadow: 0 0 24px rgba(224, 25, 49, 0.52);
}

.event-state {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.84);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.event-copy,
.gallery-copy {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.event-copy h3,
.gallery-copy h3 {
    margin: 0;
    color: var(--text);
    font-size: 21px;
    line-height: 1.18;
}

.event-copy p,
.gallery-copy p {
    margin: 0;
    color: var(--muted);
}

.event-card-featured .event-copy {
    align-content: center;
    padding: clamp(18px, 3vw, 30px);
}

.event-card-featured .event-copy h3 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.02;
}

.event-venue {
    color: var(--text) !important;
    font-weight: 900;
}

.event-countdown {
    display: grid;
    gap: 8px;
    margin-top: 2px;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(224, 25, 49, 0.12), rgba(45, 212, 191, 0.08)),
        var(--surface-soft);
}

.event-countdown-label {
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.event-countdown-grid span {
    display: grid;
    place-items: center;
    min-height: 58px;
    border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
    border-radius: 7px;
    background: var(--surface);
}

.event-countdown-grid strong {
    color: var(--accent);
    font-size: clamp(19px, 3vw, 26px);
    line-height: 1;
}

.event-countdown-grid small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.event-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 4px;
}

.event-actions span,
.event-subscribed {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.event-actions button {
    min-height: 36px;
    border: 0;
    border-radius: 4px;
    padding: 0 14px;
    background: var(--accent);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.event-subscribed {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--teal);
    background: var(--surface-soft);
}

.event-flash {
    margin: 0;
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: 900;
}

.event-flash.success {
    color: #0f766e;
    background: rgba(20, 184, 166, 0.12);
}

.event-flash.error {
    color: var(--accent);
    background: var(--accent-soft);
}

.past-event-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
}

.past-event-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
    overflow: hidden;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.past-event-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--teal) 44%, var(--border));
}

.past-event-media {
    overflow: hidden;
    border-radius: 6px;
    background: var(--surface);
}

.past-event-media img,
.past-event-media .event-placeholder {
    width: 100%;
    height: 100%;
    min-height: 144px;
    aspect-ratio: auto;
    object-fit: cover;
}

.past-event-card div {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
}

.past-event-list strong {
    color: var(--text);
    font-size: 18px;
    line-height: 1.18;
}

.past-event-list span,
.past-event-list small {
    color: var(--muted);
    font-weight: 800;
}

.past-event-list span {
    color: var(--teal);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.past-event-list p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gallery-cover span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 4px;
    color: #ffffff;
    background: rgba(224, 25, 49, 0.92);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.gallery-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.gallery-mini img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
}

.event-register-page {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.event-detail-hero {
    display: grid;
    gap: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    padding: clamp(16px, 2.5vw, 26px);
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 92%, var(--teal)), color-mix(in srgb, var(--surface-strong) 88%, var(--accent))),
        var(--surface-strong);
    color: #ffffff;
    box-shadow: var(--shadow-lg);
}

.event-detail-hero.is-past {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 88%, var(--teal)), color-mix(in srgb, var(--surface-strong) 90%, var(--warning))),
        var(--surface-strong);
}

.event-detail-hero .article-back-link {
    color: rgba(255, 255, 255, 0.86);
    border-color: rgba(255, 255, 255, 0.22);
}

.event-detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: clamp(18px, 3vw, 34px);
    align-items: center;
}

.event-detail-copy {
    display: grid;
    gap: 12px;
}

.event-detail-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 0.98;
}

.event-detail-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
}

.event-detail-copy .event-venue {
    color: #ffffff !important;
}

.event-detail-state {
    position: static;
    justify-self: start;
    width: fit-content;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.event-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 6px;
}

.event-detail-media {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.event-detail-media img,
.event-detail-media .event-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.event-detail-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    gap: 20px;
    align-items: start;
}

.event-detail-panel {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.event-detail-stat {
    display: grid;
    gap: 5px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface-soft);
}

.event-detail-stat span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.event-detail-stat strong {
    color: var(--text);
    line-height: 1.25;
}

.event-detail-section {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.event-detail-section h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.08;
}

.event-detail-section p {
    margin: 0;
    color: var(--muted);
}

.event-register-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 20px;
    align-items: start;
}

.event-register-summary,
.event-register-form-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.event-register-summary {
    display: grid;
    gap: 14px;
    padding: 16px;
    position: sticky;
    top: 86px;
}

.event-register-cover {
    overflow: hidden;
    border-radius: 8px;
    background: var(--surface-soft);
}

.event-register-cover img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.event-register-copy {
    display: grid;
    gap: 9px;
}

.event-register-copy h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.08;
}

.event-register-copy p {
    margin: 0;
    color: var(--muted);
}

.ticket-panel {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent),
        var(--surface-soft);
}

.ticket-panel strong {
    color: var(--text);
}

.ticket-panel p {
    margin: 0;
    color: var(--muted);
}

.event-register-form-card {
    padding: clamp(16px, 2.5vw, 28px);
}

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

.event-form-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.event-form-section h2 {
    grid-column: 1 / -1;
    margin: 0 0 4px;
    color: var(--text);
    font-size: 20px;
}

.event-register-form label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.event-register-form input,
.event-register-form select {
    min-height: 44px;
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    padding: 0 12px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.event-register-form small {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.35;
}

.event-consent {
    grid-column: 1 / -1;
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px !important;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}

.event-consent input {
    width: 18px;
    min-height: 18px;
    flex: 0 0 auto;
}

.event-submit-btn {
    min-height: 46px;
    width: fit-content;
    border: 0;
    border-radius: 4px;
    padding: 0 22px;
    background: var(--accent);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(224, 25, 49, 0.28);
}

@keyframes eventBlink {
    0%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.54;
        transform: translateY(-1px);
    }
}

.digital-video-card {
    display: grid;
    color: inherit;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.digital-video-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    box-shadow: var(--shadow-lg);
}

.digital-video-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--teal) 18%, var(--surface-soft)), color-mix(in srgb, var(--accent) 14%, var(--surface-soft)));
}

.digital-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.digital-video-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.42));
}

.digital-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(224, 25, 49, 0.94);
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
}

.digital-play::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 16px;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 17px solid #ffffff;
}

.digital-video-card .digital-link {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--accent);
}

.digital-empty {
    padding: 24px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--teal) 8%, transparent), transparent 48%),
        var(--surface);
}

.digital-empty h3 {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.article-reader-page {
    max-width: 1120px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.article-reader {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 72%, transparent), var(--surface) 340px),
        var(--surface);
    box-shadow: var(--shadow-lg);
}

.article-reader-head {
    display: grid;
    gap: 10px;
    max-width: 920px;
    padding: clamp(24px, 4vw, 44px) clamp(18px, 4vw, 46px) 22px;
}

.article-back-link {
    width: fit-content;
    color: var(--accent);
    font-weight: 900;
}

.article-reader-head h1 {
    max-width: 900px;
    margin: 0;
    color: var(--text);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
}

.article-date {
    margin: 0;
    color: var(--muted);
    font-weight: 900;
}

.article-reader-image {
    display: grid;
    place-items: center;
    margin: 0 clamp(14px, 3vw, 36px);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(224, 25, 49, 0.08), rgba(7, 150, 163, 0.12)),
        #080d13;
}

.article-reader-image img {
    width: auto;
    max-width: 100%;
    max-height: min(82vh, 860px);
    object-fit: contain;
    display: block;
}

.article-reader-body {
    max-width: 860px;
    padding: clamp(24px, 4vw, 42px) clamp(18px, 4vw, 46px) 34px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.article-reader-body p {
    margin: 0 0 16px;
}

.article-reader-actions {
    padding: 0 clamp(18px, 4vw, 46px) 36px;
}

@media (max-width: 768px) {
    .reader-section {
        min-height: calc(100svh - 72px);
        padding: 8px;
    }

    .reader-head {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 8px;
    }

    .reader-head h1 {
        font-size: 20px;
    }

    .reader-secure-note {
        font-size: 12px;
        line-height: 1.35;
    }

    .reader-back-link {
        width: fit-content;
    }

    .reader-toolbar {
        display: grid;
        grid-template-columns: 38px minmax(104px, 1fr) 38px;
        align-items: center;
        gap: 6px;
        margin-bottom: 8px;
        padding: 6px;
    }

    .reader-toolbar button {
        min-width: 38px;
        height: 36px;
        padding: 0 8px;
    }

    .reader-page-control {
        min-width: 0;
        justify-content: center;
        gap: 5px;
    }

    .reader-page-control input {
        width: 54px;
        height: 36px;
    }

    .reader-divider {
        display: none;
    }

    [data-reader-zoom-label] {
        min-width: 50px;
    }

    .reader-fullscreen-btn {
        grid-column: 1 / -1;
        width: 100%;
        height: 34px;
    }

    .flip-reader {
        display: block;
        height: max(330px, calc(100vh - 222px));
        height: max(330px, calc(100svh - 222px));
        min-height: 0;
    }

    .reader-thumbnails {
        display: none;
    }

    .reader-stage {
        height: 100%;
        min-height: 0;
        border-radius: 6px;
    }

    .reader-book-wrap {
        align-items: flex-start;
        justify-content: center;
        padding: 8px;
        overflow: auto;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .reader-page.is-rendering {
        animation: none;
        background: #ffffff;
    }

    .reader-book {
        margin: 0;
        gap: 0;
        transform-origin: top center;
    }

    .reader-book-spread {
        gap: 0;
    }

    .reader-page-left,
    .reader-page-right {
        border-radius: 0;
    }

    .reader-page-left::after,
    .reader-page-right::before {
        display: none;
    }

    .reader-bottom-bar {
        right: 8px;
        bottom: 8px;
    }

    .reader-section.reader-fullscreen {
        grid-template-rows: auto minmax(0, 1fr);
    }

    .reader-section.reader-fullscreen .reader-toolbar {
        margin: 8px;
    }

    .reader-section.reader-fullscreen .flip-reader {
        height: 100%;
        padding: 0 8px 8px;
    }

    .reader-section.reader-fullscreen .reader-stage {
        min-height: 0;
    }

    .digital-work-page {
        gap: 22px;
    }

    .digital-work-hero {
        padding: 24px;
    }

    .digital-work-hero h1 {
        font-size: 34px;
    }

    .digital-work-hero p:last-child {
        font-size: 15px;
    }

    .digital-work-section-head {
        align-items: start;
        flex-direction: column;
    }

    .digital-work-section-head p {
        text-align: left;
    }

    .digital-article-grid,
    .event-grid,
    .gallery-grid,
    .digital-video-grid {
        grid-template-columns: 1fr;
    }

    .event-card-featured,
    .event-detail-hero-grid,
    .event-detail-layout {
        grid-template-columns: 1fr;
    }

    .event-cover-featured {
        min-height: 260px;
    }

    .event-detail-panel {
        position: static;
    }

    .past-event-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .event-register-shell {
        grid-template-columns: 1fr;
    }

    .event-register-summary {
        position: static;
    }

    .event-form-section {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .digital-article-card {
        grid-template-columns: 112px minmax(0, 1fr);
        grid-template-rows: auto;
    }

    .digital-article-image-link img,
    .digital-article-placeholder {
        height: 100%;
        min-height: 150px;
        aspect-ratio: auto;
    }

    .article-reader-head {
        padding: 22px 18px 14px;
    }

    .article-reader-head h1 {
        font-size: 30px;
    }

    .article-reader-body {
        padding: 20px 18px 26px;
        font-size: 16px;
    }

    .article-reader-image {
        margin: 0 12px;
    }

    .article-reader-actions {
        padding: 0 18px 24px;
    }
}

.offer-card-btn {
    width: fit-content;
    max-width: 100%;
    align-self: end;
    margin-top: 4px;
}

.admin-fed-grid,
.ads-grid,
.admin-offers-grid,
.partners-grid {
    min-width: 0;
}

.admin-offer-card,
.future-box,
.partners-empty,
.partner-logo-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-offer-card .see-more-btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.admin-offer-card > img {
    background: var(--surface-soft);
}

.gifts-hero {
    padding: 28px;
    margin-bottom: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.gifts-hero h2 {
    margin: 0 0 10px;
}

.gifts-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}

.gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.gift-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.gift-card-preview {
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--border);
    border-radius: 6px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface-soft)), color-mix(in srgb, var(--teal) 14%, var(--surface-soft)));
    color: var(--text);
    font-weight: 900;
    text-decoration: none;
}

.gift-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gift-type {
    width: max-content;
    padding: 5px 8px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--accent) 14%, var(--surface-soft));
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.gift-card h3 {
    margin: 0;
}

.gift-card p {
    margin: 0;
    color: var(--muted);
}

.gift-card small {
    color: var(--muted);
    font-weight: 800;
}

.partners-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.partners-section h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.partners-intro {
    max-width: 680px;
    margin: 0 auto 24px;
    text-align: center;
    color: var(--muted);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 18px;
    align-items: center;
    width: 100%;
}

.partner-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.partner-logo-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.partner-logo-card img {
    max-width: 100%;
    max-height: 68px;
    object-fit: contain;
    display: block;
}

.partners-empty {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-align: center;
    box-shadow: var(--shadow);
}

.partners-empty h3 {
    margin: 0 0 8px;
}

.partners-empty p {
    margin: 0 0 16px;
    color: var(--muted);
}

.auth-panel {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.auth-form {
    display: grid;
    gap: 12px;
}

.auth-form input {
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface-soft);
    color: var(--text);
    padding: 0 12px;
    font: inherit;
}

.auth-form .btn {
    width: 100%;
    margin: 0;
}

.reset-link-box {
    overflow-wrap: anywhere;
    margin-bottom: 14px;
    padding: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.reset-link-box a {
    color: var(--accent);
    font-weight: 800;
}

.help-hero,
.help-block,
.help-contact {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.help-hero {
    padding: 26px;
    margin-bottom: 20px;
}

.help-hero h2,
.help-block h3,
.help-contact h3 {
    margin: 0 0 10px;
}

.help-hero p,
.help-card p,
.faq-item p,
.help-contact p {
    color: var(--muted);
}

.help-block {
    padding: 20px;
    margin-bottom: 20px;
}

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

.help-card {
    padding: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.help-card h4 {
    margin: 0 0 8px;
}

.help-card p {
    margin: 0;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-item {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0 14px;
}

.faq-item summary {
    cursor: pointer;
    padding: 14px 0;
    color: var(--text);
    font-weight: 800;
}

.faq-item p {
    margin: 0;
    padding: 0 0 14px;
}

.help-contact {
    padding: 22px;
    text-align: center;
}

.help-contact p {
    margin: 0 auto 16px;
    max-width: 620px;
}

.help-contact-btn {
    width: auto;
    margin: 0;
    padding: 0 20px;
}

.empty-state {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.empty-state h3 {
    margin: 0 0 8px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

.profile-summary dl {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
}

.profile-summary dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.profile-summary dt {
    color: var(--muted);
    font-weight: 800;
}

.profile-summary dd {
    margin: 0;
    color: var(--text);
    font-weight: 900;
    text-align: right;
}

.account-form {
    display: grid;
    gap: 11px;
    padding: 20px;
}

.account-form h3 {
    margin: 0 0 4px;
}

.account-form label {
    font-weight: 900;
}

.account-form input,
.account-form select {
    min-height: 44px;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface-soft);
    color: var(--text);
    padding: 0 12px;
}

.account-form input:focus,
.account-form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
    outline: none;
}

.account-form .btn {
    margin: 8px 0 0;
    width: 100%;
}

.account-card-link {
    margin-top: 14px;
    width: 100%;
}

.account-form small {
    margin-top: -6px;
    color: var(--muted);
    font-weight: 700;
}

.membership-card-page {
    display: grid;
    gap: 22px;
}

.membership-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.membership-card-head h2 {
    margin: 4px 0;
    font-size: clamp(28px, 5vw, 48px);
}

.membership-card-head p {
    margin: 0;
    color: var(--muted);
}

.membership-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.membership-card-shell {
    display: grid;
    justify-items: center;
    padding: clamp(18px, 4vw, 38px);
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        radial-gradient(circle at 20% 20%, rgba(224, 25, 49, 0.14), transparent 30%),
        radial-gradient(circle at 82% 80%, rgba(7, 150, 163, 0.16), transparent 32%),
        var(--surface-soft);
}

.membership-card {
    position: relative;
    width: min(100%, 860px);
    aspect-ratio: 1.586 / 1;
    overflow: hidden;
    border-radius: 18px;
    background:
        linear-gradient(128deg, #090b0f 0%, #161a20 52%, #050608 100%);
    color: #ffffff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.membership-card-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(224, 25, 49, 0.28), transparent 28%),
        radial-gradient(circle at 86% 18%, rgba(7, 150, 163, 0.28), transparent 24%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 12px);
    opacity: 0.82;
}

.membership-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    pointer-events: none;
}

.membership-card::after {
    content: "";
    position: absolute;
    inset: 16px;
    z-index: 1;
    border: 1px solid rgba(224, 25, 49, 0.2);
    border-radius: 10px;
    pointer-events: none;
}

.membership-card-watermark {
    position: absolute;
    right: 5%;
    bottom: 4%;
    z-index: 0;
    color: rgba(255, 255, 255, 0.035);
    font-size: clamp(96px, 16vw, 158px);
    font-weight: 900;
    line-height: 0.8;
}

.membership-card-top,
.membership-card-main,
.membership-card-footer {
    position: relative;
    z-index: 1;
}

.membership-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: clamp(18px, 3vw, 28px) clamp(22px, 4vw, 40px) 8px;
}

.membership-logo-box {
    display: grid;
    place-items: center;
    width: clamp(96px, 14vw, 138px);
    height: clamp(58px, 8vw, 78px);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    padding: 8px 12px;
}

.membership-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.membership-card-top span,
.membership-card-info small,
.membership-data-grid small,
.membership-qr span {
    color: rgba(255, 255, 255, 0.68);
    font-size: clamp(10px, 1.6vw, 12px);
    font-weight: 900;
    text-transform: uppercase;
}

.membership-card-top strong {
    display: block;
    font-size: clamp(20px, 3vw, 30px);
    line-height: 1;
    letter-spacing: 0;
}

.membership-card-main {
    display: grid;
    grid-template-columns: minmax(104px, 0.28fr) minmax(0, 1fr) minmax(112px, 0.25fr);
    gap: clamp(16px, 2.8vw, 30px);
    align-items: center;
    padding: clamp(12px, 2vw, 18px) clamp(22px, 4vw, 40px);
}

.membership-photo-frame {
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.membership-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.membership-photo-shadow {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.72) 0 15%, transparent 16%),
        radial-gradient(ellipse at 50% 78%, rgba(255, 255, 255, 0.66) 0 28%, transparent 29%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.membership-card-info h3 {
    margin: 4px 0 16px;
    font-size: clamp(24px, 4vw, 42px);
    line-height: 1;
    text-transform: uppercase;
}

.membership-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.membership-data-grid div {
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(6px);
}

.membership-data-grid strong {
    display: block;
    margin-top: 3px;
    font-size: clamp(12px, 1.8vw, 16px);
}

.membership-qr {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 9px;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.membership-qr img,
.membership-qr svg {
    width: min(100%, 138px);
    height: auto;
}

.membership-qr span {
    color: #111827;
}

.membership-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 2px clamp(22px, 4vw, 40px) clamp(18px, 3vw, 26px);
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(11px, 1.6vw, 13px);
    font-weight: 900;
}

.membership-seal {
    position: absolute;
    right: clamp(166px, 22vw, 208px);
    bottom: clamp(28px, 5vw, 52px);
    z-index: 2;
    display: grid;
    place-items: center;
    width: clamp(70px, 9vw, 92px);
    height: clamp(70px, 9vw, 92px);
    border: 2px solid rgba(224, 25, 49, 0.72);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.86);
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-10deg);
    pointer-events: none;
}

.membership-seal::before,
.membership-seal::after {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
}

.membership-seal::after {
    inset: 14px;
    border-color: rgba(224, 25, 49, 0.48);
}

.membership-seal span {
    font-size: clamp(18px, 2.7vw, 26px);
    font-weight: 900;
    line-height: 1;
}

.membership-seal small {
    margin-top: -16px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 9px;
    font-weight: 900;
}

.membership-card-note {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    text-align: center;
    font-weight: 800;
}

.membership-card-note a {
    color: var(--accent);
    font-weight: 900;
}

.membership-verify-page {
    display: grid;
    place-items: center;
    min-height: 58vh;
}

.membership-verify-card {
    width: min(100%, 720px);
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(224, 25, 49, 0.08), transparent 40%),
        var(--surface);
    box-shadow: var(--shadow);
}

.membership-verify-card.is-verified {
    border-color: rgba(22, 131, 76, 0.34);
}

.membership-verify-card.is-invalid {
    border-color: rgba(224, 25, 49, 0.38);
}

.membership-verify-card h2 {
    margin: 10px 0 18px;
    font-size: clamp(26px, 4vw, 42px);
}

.membership-verify-card p {
    color: var(--muted);
    font-weight: 800;
}

.membership-verify-layout {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.membership-verify-photo {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.membership-verify-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.membership-verify-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.membership-verify-card dl div {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.membership-verify-card dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.membership-verify-card dd {
    margin: 4px 0 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 900;
}

@media print {
    body:has(.membership-card-page) {
        background: #ffffff !important;
    }

    body:has(.membership-card-page) .pm-header,
    body:has(.membership-card-page) .pm-sidebar,
    body:has(.membership-card-page) .pm-footer,
    body:has(.membership-card-page) .membership-card-head,
    body:has(.membership-card-page) .membership-card-note {
        display: none !important;
    }

    body:has(.membership-card-page) .main-layout,
    body:has(.membership-card-page) .content-area,
    body:has(.membership-card-page) .section,
    body:has(.membership-card-page) .membership-card-shell {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
    }

    body:has(.membership-card-page) .membership-card {
        width: 86mm !important;
        height: 54mm !important;
        min-height: 0 !important;
        border-radius: 4mm !important;
        box-shadow: none !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

.magazine-detail-section {
    padding: clamp(18px, 3vw, 30px);
}

.magazine-details,
.magazine-hero-detail {
    display: grid;
    grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
    gap: clamp(22px, 4vw, 42px);
    align-items: start;
}

.mag-left {
    display: grid;
    justify-items: center;
}

.mag-left img {
    width: min(100%, 320px);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
    background: var(--surface-soft);
    box-shadow: var(--shadow);
}

.mag-cover-note {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: min(100%, 320px);
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.mag-cover-note span,
.mag-meta-grid span,
.mag-share-row span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.mag-right .caption-label {
    color: var(--text);
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 26%, var(--border));
}

.mag-right h1 {
    margin: 12px 0 8px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.06;
    letter-spacing: 0;
}

.mag-category-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.mag-category-row a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
}

.mag-category-row a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.mag-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    max-width: 720px;
    margin: 16px 0 20px;
}

.mag-meta-grid div {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.mag-meta-grid strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.mag-right h2 {
    margin: 24px 0 8px;
    font-size: 18px;
}

.desc {
    max-width: 68ch;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.mag-share-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    max-width: 720px;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.mag-share-row input {
    min-width: 0;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    padding: 0 10px;
}

.mag-share-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mag-share-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.mag-share-icons a:hover {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-1px);
}

.related-magazines-section .grid {
    margin-top: 14px;
}

.rating-summary-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--muted);
    font-weight: 800;
}

.stars-display {
    display: inline-flex;
    gap: 2px;
    color: var(--border-strong);
    letter-spacing: 0;
}

.stars-display .star-filled {
    color: var(--warning);
}

.reviews-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.reviews-head h2 {
    margin-bottom: 8px;
}

.reviews-head p,
.muted-text {
    margin: 0;
    color: var(--muted);
}

.rating-score {
    min-width: 112px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-soft);
    text-align: center;
}

.rating-score strong {
    display: block;
    color: var(--accent);
    font-size: 30px;
    line-height: 1;
}

.rating-score span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.reviews-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
}

.review-panel,
.comments-panel,
.author-note {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.review-panel,
.comments-panel {
    padding: 18px;
}

.review-panel h3,
.comments-panel h3 {
    margin: 0 0 14px;
    font-size: 18px;
}

.review-form {
    display: grid;
    gap: 12px;
}

.review-form label {
    font-weight: 900;
}

.review-form textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    padding: 12px;
    outline: none;
}

.review-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-input label {
    color: var(--border-strong);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    transition: color 0.16s ease, transform 0.16s ease;
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
    color: var(--warning);
}

.star-input label:hover {
    transform: translateY(-1px);
}

.review-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 4px;
    background: var(--accent);
    color: #ffffff;
    cursor: pointer;
    font-weight: 900;
    text-transform: uppercase;
}

.review-submit:hover {
    background: var(--accent-dark);
}

.login-required-panel {
    display: grid;
    gap: 12px;
}

.login-required-panel p {
    margin: 0;
    color: var(--muted);
}

.comment-list {
    display: grid;
    gap: 12px;
}

.comment-item {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.comment-meta span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.comment-item p {
    margin: 0;
    color: var(--text);
}

.author-profile {
    display: grid;
    grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
    gap: clamp(18px, 4vw, 34px);
    align-items: center;
}

.author-photo-wrap {
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.author-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.author-copy .caption-label {
    color: var(--text);
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
}

.author-copy h1 {
    margin: 12px 0;
    font-size: clamp(30px, 5vw, 56px);
    line-height: 1.05;
}

.author-copy p {
    max-width: 68ch;
    color: var(--muted);
    font-size: 17px;
}

.author-note {
    display: inline-flex;
    margin-top: 12px;
    padding: 10px 12px;
    color: var(--muted);
    font-weight: 800;
}

.admin-shell {
    width: min(980px, calc(100% - 32px));
    margin: 36px auto;
}

.admin-welcome h1 {
    margin: 10px 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
}

.admin-welcome p:not(.caption-label) {
    max-width: 62ch;
    color: var(--muted);
}

.admin-app {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
    background: var(--bg);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    display: grid;
    align-content: start;
    gap: 4px;
    height: 100vh;
    padding: 18px;
    overflow-y: auto;
    background: var(--surface);
    border-right: 1px solid var(--border);
}

.admin-role-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    margin-bottom: 12px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-brand {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 28px;
    font-weight: 900;
}

.admin-brand span {
    color: var(--text);
}

.admin-nav {
    display: grid;
    gap: 4px;
}

.admin-nav a,
.admin-topbar a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 4px;
    color: var(--text);
    font-weight: 900;
}

.admin-nav a:hover,
.admin-nav a.active,
.admin-topbar a:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.admin-main {
    min-width: 0;
    padding: clamp(18px, 3vw, 34px);
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    margin: calc(clamp(18px, 3vw, 34px) * -1) calc(clamp(18px, 3vw, 34px) * -1) 20px;
    padding: 10px clamp(18px, 3vw, 34px);
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(14px);
}

.admin-topbar strong,
.admin-topbar span {
    display: block;
}

.admin-topbar span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.admin-topbar a {
    min-height: 34px;
    padding: 0 9px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 12px;
}

.admin-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-weight: 900;
}

.admin-head {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.admin-head h1 {
    margin: 10px 0 8px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.05;
}

.admin-head p:not(.caption-label) {
    max-width: 70ch;
    margin: 0;
    color: var(--muted);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.admin-card {
    min-height: 142px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.admin-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-card strong {
    display: block;
    margin: 8px 0;
    color: var(--accent);
    font-size: 34px;
    line-height: 1;
}

.admin-card p {
    margin: 0;
    color: var(--muted);
}

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

.admin-media-card {
    min-width: 0;
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--teal) 8%, transparent), transparent 48%),
        var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-media-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    box-shadow: var(--shadow);
}

.admin-media-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-media-card strong {
    color: var(--text);
    font-size: 30px;
    line-height: 1;
}

.admin-media-card small {
    color: var(--accent);
    font-weight: 900;
}

.admin-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.admin-dashboard {
    display: grid;
    gap: 18px;
}

.admin-dashboard-section {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.admin-dashboard-section h2 {
    margin: 0 0 14px;
    font-size: 20px;
}

.admin-dashboard-section h3 {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.admin-role-grid {
    display: grid;
    gap: 18px;
}

.admin-role-card {
    display: grid;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.admin-role-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.admin-role-card-head h3 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 20px;
    text-transform: none;
}

.admin-role-card-head p {
    margin: 0;
    color: var(--muted);
}

.admin-permission-group {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}

.admin-permission-group legend {
    padding: 0 6px;
    color: var(--accent);
    font-weight: 900;
}

.admin-checkline span {
    display: grid;
    gap: 2px;
}

.admin-checkline small {
    color: var(--muted);
    font-weight: 400;
}

.admin-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.admin-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-section-head a,
.admin-table a {
    color: var(--accent);
    font-weight: 900;
}

.admin-ads-hero,
.admin-ad-form-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(224, 25, 49, 0.1), transparent 48%),
        var(--surface-soft);
}

.admin-ads-hero span,
.admin-ad-form-intro span {
    display: inline-flex;
    width: fit-content;
    min-height: 24px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-ads-hero h2,
.admin-ad-form-intro h2 {
    margin: 9px 0 7px;
    color: var(--text);
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.12;
    text-transform: none;
}

.admin-ads-hero p,
.admin-ad-form-intro p {
    max-width: 780px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.admin-ads-hero a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 6px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 900;
    white-space: nowrap;
}

.admin-ad-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.admin-ad-stats span {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-ad-stats strong {
    color: var(--text);
    font-size: 24px;
    line-height: 1;
}

.admin-ad-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
}

.admin-ad-thumb {
    width: 112px;
    height: 92px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-soft);
    object-fit: contain;
    padding: 4px;
}

.admin-ad-thumb-empty,
.admin-ad-preview-empty {
    display: grid;
    place-items: center;
    color: var(--accent);
    font-weight: 900;
}

.admin-ad-link {
    color: var(--accent) !important;
    font-weight: 900;
}

.admin-ad-form-intro img,
.admin-ad-preview-empty {
    width: min(240px, 28vw);
    min-height: 180px;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    object-fit: contain;
    padding: 8px;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table-container {
    min-width: 0;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.admin-table small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.admin-table-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 22px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}

.admin-table-pager-info {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-table-pager-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.admin-table-pager button,
.admin-table-pager select {
    min-height: 34px;
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    background: var(--surface-soft);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
}

.admin-table-pager button {
    min-width: 34px;
    padding: 0 10px;
    cursor: pointer;
}

.admin-table-pager button.active {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
}

.admin-table-pager button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.admin-table-pager label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-table-pager select {
    padding: 0 8px;
}

.admin-table-pager-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    color: var(--muted);
    font-weight: 900;
}

@media (max-width: 720px) {
    .admin-table-pager {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-table-pager-controls {
        justify-content: flex-start;
    }

    .admin-table-pager button {
        min-width: 38px;
    }
}

.admin-status {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

.admin-dashboard-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-dashboard-two .admin-table {
    min-width: 560px;
}

.admin-dashboard-four {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.admin-dashboard-four > div {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-soft);
}

.admin-metric-list {
    display: grid;
    gap: 10px;
}

.admin-metric-list div,
.admin-mini-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-soft);
}

.admin-live-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(22, 131, 76, 0.14);
    color: var(--success);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-visitor-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.admin-visitor-chart {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.admin-visitor-chart h3,
.admin-visitor-lists h3 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 15px;
    text-transform: none;
}

.admin-chart-bars {
    display: flex;
    align-items: end;
    gap: 8px;
    min-height: 190px;
    overflow-x: auto;
    padding: 8px 4px 0;
}

.admin-chart-bar {
    display: grid;
    grid-template-rows: 1fr auto auto;
    align-items: end;
    justify-items: center;
    min-width: 44px;
    height: 180px;
    gap: 5px;
}

.admin-chart-bar span {
    display: block;
    width: 100%;
    min-height: 6px;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, var(--accent), var(--teal));
    box-shadow: 0 8px 18px rgba(224, 25, 49, 0.18);
}

.admin-chart-bar strong {
    color: var(--text);
    font-size: 12px;
    line-height: 1;
}

.admin-chart-bar small {
    max-width: 64px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-visitor-lists {
    margin-top: 18px;
}

.admin-visitor-lists > div {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.admin-metric-list span,
.admin-mini-list span {
    color: var(--text);
    font-weight: 800;
}

.admin-metric-list strong,
.admin-mini-list strong {
    color: var(--accent);
    font-weight: 900;
}

.admin-metric-list small {
    color: var(--muted);
}

.admin-mini-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-mini-list li {
    min-height: 42px;
}

.admin-empty {
    margin: 0;
    color: var(--muted);
}

.admin-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.admin-shortcut-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.admin-shortcut-grid a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--text);
    font-weight: 900;
}

.admin-shortcut-grid a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.inline-admin-form {
    display: inline-flex;
    margin: 0 0 0 8px;
}

.inline-admin-form button,
.admin-filter-form button,
.admin-form-actions button {
    min-height: 34px;
    border: 0;
    border-radius: 4px;
    background: var(--accent);
    color: #ffffff;
    padding: 0 12px;
    cursor: pointer;
    font-weight: 900;
}

.inline-admin-form button {
    background: transparent;
    color: var(--accent);
    padding: 0;
}

.admin-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin-bottom: 14px;
}

.admin-filter-form label,
.admin-form label {
    display: grid;
    gap: 6px;
    color: var(--text);
    font-weight: 900;
}

.admin-filter-form input,
.admin-filter-form select,
.admin-form input,
.admin-form select,
.admin-form textarea {
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface-soft);
    color: var(--text);
    padding: 0 10px;
}

.admin-form textarea {
    min-height: 140px;
    padding: 10px;
    resize: vertical;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-form-grid .wide {
    grid-column: 1 / -1;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.admin-form-actions a {
    color: var(--muted);
    font-weight: 900;
}

.admin-row-form {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.admin-row-form select {
    min-height: 34px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface-soft);
    color: var(--text);
}

.admin-row-form button {
    min-height: 34px;
    border: 0;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    padding: 0 10px;
    font-weight: 900;
    cursor: pointer;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0 12px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.admin-btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.admin-btn-secondary {
    background: var(--surface-soft);
    color: var(--text);
}

.admin-btn-danger {
    background: #b42318;
    border-color: #b42318;
    color: #fff;
}

.admin-btn-sm {
    min-height: 30px;
    padding: 0 9px;
    font-size: 12px;
}

.admin-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.admin-link-button {
    min-height: 34px;
    margin: 0 0 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface-soft);
    color: var(--accent);
    padding: 0 10px;
    cursor: pointer;
    font-weight: 900;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 18px;
}

.admin-modal[hidden] {
    display: none;
}

.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.admin-modal-panel {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: 88vh;
    overflow: auto;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.admin-modal-panel h2 {
    margin: 0 0 16px;
}

.admin-modal-panel h3 {
    margin: 18px 0 8px;
}

.admin-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 4px;
    background: var(--surface-soft);
    color: var(--text);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-detail-grid div {
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-soft);
}

.admin-detail-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-detail-grid strong {
    display: block;
    margin-top: 4px;
}

.admin-modal-panel pre {
    white-space: pre-wrap;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--text);
    font: inherit;
}

.admin-thumb {
    width: 46px;
    height: 62px;
    border-radius: 4px;
    object-fit: cover;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.admin-thumb.wide {
    width: 92px;
    height: 52px;
}

.admin-checkbox-panel {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-soft);
}

.admin-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.admin-checkbox-grid label,
.admin-checkline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.admin-checkbox-grid input,
.admin-checkline input {
    min-height: auto;
}

.admin-section-magazine-grid {
    display: grid;
    gap: 8px;
}

.admin-section-magazine-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 92px auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.admin-section-magazine-row input[type="checkbox"] {
    min-height: auto;
}

.admin-form .admin-section-magazine-row label {
    display: block;
    min-width: 0;
    font-weight: 800;
}

.admin-section-magazine-row input[type="number"] {
    min-height: 36px;
}

.mag-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.mag-actions .btn {
    width: auto;
    min-width: 170px;
    margin: 0;
    padding: 0 20px;
}

.buy-now-form {
    margin: 0;
}

.buy-now {
    background: var(--surface-strong);
}

.buy-now:hover {
    background: var(--text);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}

.cart-table th,
.cart-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.cart-table th {
    background: var(--surface-soft);
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.cart-table tr:last-child td {
    border-bottom: 0;
}

/* Library Badge in Cart */
.library-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: var(--accent);
    color: var(--surface);
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    vertical-align: middle;
}

.price-free {
    color: var(--success, #4caf50);
    font-weight: bold;
}

.cart-note {
    margin-bottom: 16px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent);
    font-size: 14px;
    color: var(--muted);
}

.remove-item,
.mini-cart-remove {
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.checkout-section form {
    display: grid;
    gap: 12px;
    max-width: 560px;
}

.checkout-section label {
    font-weight: 900;
}

.checkout-section select,
.checkout-section input {
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface-soft);
    color: var(--text);
    padding: 0 12px;
}

.checkout-summary {
    max-width: 680px;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-soft);
}

.checkout-summary h3 {
    margin: 0 0 12px;
}

.checkout-item,
.checkout-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.checkout-total {
    border-bottom: 0;
    color: var(--accent);
    font-size: 18px;
    font-weight: 900;
}

.payment-note {
    padding: 12px;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--text);
}

.payment-note p {
    margin: 0 0 4px;
}

.mini-cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(5, 10, 16, 0.48);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mini-cart-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.mini-cart {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 200;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: min(420px, 100%);
    height: 100vh;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.24s ease;
}

.mini-cart.open {
    transform: translateX(0);
}

.mini-cart-head,
.mini-cart-foot {
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.mini-cart-foot {
    border-top: 1px solid var(--border);
    border-bottom: 0;
}

.mini-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-cart-head h3 {
    margin: 0;
}

.mini-cart-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--text);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.mini-cart-items {
    display: grid;
    align-content: start;
    gap: 12px;
    overflow-y: auto;
    padding: 18px;
}

.mini-cart-empty {
    margin: 0;
    padding: 20px;
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--muted);
    text-align: center;
    font-weight: 800;
}

.mini-cart-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-soft);
}

.mini-cart-item img {
    width: 68px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
}

.mini-cart-item h4 {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.3;
}

.mini-cart-item p {
    margin: 0 0 8px;
    color: var(--accent);
    font-weight: 900;
}

.mini-cart-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 900;
}

.mini-checkout {
    margin: 0 0 10px;
    width: 100%;
}

.mini-cart-foot .see-more-btn {
    width: 100%;
}

.cart-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 230;
    max-width: min(360px, calc(100% - 40px));
    padding: 12px 15px;
    border-radius: 6px;
    background: var(--surface-strong);
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    font-weight: 800;
}

.cart-toast.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.what-we-do-page {
    display: grid;
    gap: 24px;
    padding: clamp(16px, 3vw, 28px);
}

.wwd-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    gap: clamp(22px, 4vw, 46px);
    align-items: center;
    min-height: 420px;
    overflow: hidden;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(224, 25, 49, 0.18), transparent 34%),
        linear-gradient(115deg, #101722 0%, #152336 52%, #092d32 100%);
    box-shadow: var(--shadow-lg);
    color: #ffffff;
}

.wwd-hero::before {
    content: "";
    position: absolute;
    inset: 10% -14% auto auto;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: wwdPulse 8s ease-in-out infinite;
}

.wwd-hero-copy,
.wwd-orbit {
    position: relative;
    z-index: 1;
}

.wwd-hero .caption-label,
.wwd-section-head .caption-label,
.wwd-interactive .caption-label,
.wwd-cta .caption-label {
    color: var(--accent);
    background: rgba(224, 25, 49, 0.12);
    border-color: rgba(224, 25, 49, 0.24);
}

.wwd-hero h1 {
    max-width: 760px;
    margin: 14px 0;
    font-size: clamp(44px, 7vw, 92px);
    line-height: 0.94;
    letter-spacing: 0;
}

.wwd-hero-copy > p:not(.caption-label) {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.65;
}

.wwd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.wwd-ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 4px;
    color: #ffffff;
    font-weight: 900;
}

.wwd-orbit {
    display: grid;
    place-items: center;
    min-height: 310px;
}

.wwd-orbit::before,
.wwd-orbit::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.wwd-orbit::before {
    width: 260px;
    height: 260px;
    animation: wwdSpin 18s linear infinite;
}

.wwd-orbit::after {
    width: 170px;
    height: 170px;
    border-style: dashed;
    animation: wwdSpin 12s linear infinite reverse;
}

.wwd-orbit span {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.wwd-orbit span:nth-child(1) {
    transform: translateY(-116px);
}

.wwd-orbit span:nth-child(2) {
    transform: translate(-102px, 70px);
}

.wwd-orbit span:nth-child(3) {
    transform: translate(102px, 70px);
    background: var(--accent);
}

.wwd-statement,
.wwd-interactive,
.wwd-cta {
    display: grid;
    grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
    gap: clamp(18px, 3vw, 34px);
    align-items: start;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.wwd-statement strong,
.wwd-interactive h2,
.wwd-cta h2 {
    color: var(--text);
    font-size: clamp(25px, 3vw, 40px);
    line-height: 1.05;
}

.wwd-statement p,
.wwd-interactive p,
.wwd-cta p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.wwd-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.wwd-service-card,
.wwd-process-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: clamp(18px, 2.4vw, 26px);
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(7, 150, 163, 0.08), transparent 48%),
        var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.wwd-service-card:hover,
.wwd-process-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    box-shadow: var(--shadow);
}

.wwd-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 20px;
}

.wwd-service-card h2,
.wwd-process-card h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.12;
}

.wwd-service-card p,
.wwd-process-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.wwd-process {
    display: grid;
    gap: 16px;
}

.wwd-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.wwd-section-head h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(28px, 4vw, 48px);
}

.wwd-process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.wwd-process-card span {
    display: inline-flex;
    margin-bottom: 22px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

.wwd-interactive {
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
}

.wwd-interactive h2,
.wwd-cta h2 {
    margin: 10px 0 12px;
}

.wwd-accordion {
    display: grid;
    gap: 10px;
}

.wwd-accordion details {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
    overflow: hidden;
}

.wwd-accordion summary {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px;
    color: var(--text);
    cursor: pointer;
    font-weight: 900;
}

.wwd-accordion summary::after {
    content: "+";
    color: var(--accent);
    font-size: 22px;
}

.wwd-accordion details[open] summary::after {
    content: "-";
}

.wwd-accordion details p {
    padding: 0 18px 18px;
}

.wwd-cta {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
}

@keyframes wwdSpin {
    to {
        rotate: 360deg;
    }
}

@keyframes wwdPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.38;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.7;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wwd-hero::before,
    .wwd-orbit::before,
    .wwd-orbit::after {
        animation: none;
    }
}

.about-page {
    padding: clamp(18px, 3vw, 32px);
}

.about-hero {
    max-width: 880px;
    margin-bottom: 28px;
}

.about-hero h1 {
    margin: 12px 0 16px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: 0;
}

.about-hero p {
    max-width: 78ch;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 19px);
}

.about-brand-name {
    color: var(--accent);
    font-weight: 900;
}

.t9-mark {
    color: var(--accent);
    font-weight: 900;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.about-panel {
    min-height: 260px;
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(224, 25, 49, 0.08), transparent 42%),
        var(--surface-soft);
}

.about-panel h2 {
    margin: 0 0 14px;
    font-size: clamp(22px, 3vw, 34px);
}

.about-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.about-number {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

.about-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-list li {
    position: relative;
    padding-left: 22px;
    color: var(--text);
    font-weight: 800;
}

.about-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.about-vision {
    background:
        linear-gradient(135deg, rgba(7, 150, 163, 0.14), transparent 48%),
        var(--surface-soft);
}

.about-distribution {
    grid-column: 1 / -1;
}

.distribution-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.distribution-list span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-weight: 900;
}

.reader-section {
    min-height: calc(100vh - 96px);
    padding: clamp(12px, 2vw, 18px);
    background: #080b10;
    color: #f8fafc;
    user-select: none;
}

.reader-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.reader-head h1 {
    margin: 6px 0 0;
    color: #ffffff;
    font-size: clamp(20px, 3vw, 30px);
    line-height: 1.15;
}

.reader-secure-note {
    display: inline-flex;
    margin-top: 7px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 700;
}

.reader-back-link {
    flex: 0 0 auto;
}

.reader-toolbar {
    display: grid;
    grid-template-columns: 42px minmax(128px, auto) 42px 1px 42px 58px 42px auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    background: #111827;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.reader-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 40px;
    border: 1px solid rgba(148, 163, 184, 0.36);
    border-radius: 6px;
    background: #0b1220;
    color: #f8fafc;
    cursor: pointer;
    font-weight: 900;
}

.reader-toolbar button:hover {
    border-color: #ef4444;
    color: #ffffff;
}

.reader-toolbar button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.reader-page-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #e5e7eb;
    font-weight: 900;
}

.reader-page-control input {
    width: 68px;
    height: 40px;
    border: 1px solid rgba(148, 163, 184, 0.36);
    border-radius: 6px;
    background: #020617;
    color: #ffffff;
    padding: 0 8px;
    text-align: center;
    font-weight: 900;
}

.reader-divider {
    width: 1px;
    height: 30px;
    background: rgba(148, 163, 184, 0.28);
}

[data-reader-zoom-label] {
    text-align: center;
    color: #e5e7eb;
    font-size: 13px;
}

.reader-fullscreen-btn {
    min-width: auto;
    padding: 0 14px;
}

.flip-reader {
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 12px;
    height: min(78vh, 900px);
    min-height: 540px;
}

.reader-thumbnails {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: #0f172a;
}

.reader-thumbnails-scroll {
    height: 100%;
    overflow: auto;
    padding: 10px;
}

.reader-thumb {
    display: grid;
    gap: 6px;
    width: 100%;
    margin: 0 0 10px;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 6px;
    background: #111827;
    color: #cbd5e1;
    cursor: pointer;
    font-weight: 900;
}

.reader-thumb.is-active,
.reader-thumb:hover {
    border-color: #ef4444;
    color: #ffffff;
}

.reader-thumb-canvas {
    width: 100%;
    height: auto;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.reader-thumb-image {
    display: block;
    width: 100%;
    height: auto;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.reader-stage {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 10%, rgba(148, 163, 184, 0.12), transparent 28%),
        #05070b;
    box-shadow: inset 0 0 64px rgba(0, 0, 0, 0.72);
}

.reader-book-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
    padding: 28px;
    overscroll-behavior: contain;
    touch-action: pan-y;
    scroll-behavior: auto;
}

.reader-section.reader-zoomed .reader-book-wrap {
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: 28px;
    padding-right: 28px;
}

.reader-book {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex: 0 0 auto;
    margin: 0;
    transform-origin: top center;
    perspective: 1600px;
}

.reader-section.reader-zoomed .reader-book {
    margin: 0;
}

.reader-page {
    position: relative;
    background: #ffffff;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.reader-book-spread {
    align-items: stretch;
    gap: 0;
}

.reader-book-spread .reader-page {
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.reader-page-left {
    border-radius: 4px 0 0 4px;
}

.reader-page-right {
    border-radius: 0 4px 4px 0;
}

.reader-page-left::after,
.reader-page-right::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 28px;
    pointer-events: none;
}

.reader-page-left::after {
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.16));
}

.reader-page-right::before {
    left: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent);
}

.reader-flip-next {
    animation: readerFlipNext 0.17s ease both;
}

.reader-flip-prev {
    animation: readerFlipPrev 0.17s ease both;
}

.reader-page.is-rendering,
.reader-thumb.is-rendering {
    background:
        linear-gradient(90deg, rgba(148, 163, 184, 0.08), rgba(255, 255, 255, 0.42), rgba(148, 163, 184, 0.08)),
        #ffffff;
    background-size: 220% 100%;
    animation: readerPageLoading 1.1s ease-in-out infinite;
}

.reader-thumb.is-rendering {
    background-color: #111827;
}

.reader-page-canvas {
    display: block;
    width: 100%;
    height: auto;
    background: #ffffff;
    pointer-events: none;
}

.reader-status {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 30;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.9);
    color: #ffffff;
    font-weight: 900;
}

.reader-status:empty {
    display: none;
}

.reader-bottom-bar {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 24;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    pointer-events: none;
}

.reader-fullscreen-exit-btn {
    display: none;
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 40;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.reader-section.reader-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    background: #02040a;
}

.reader-section.reader-fullscreen .reader-head {
    display: none;
}

.reader-section.reader-fullscreen .reader-toolbar {
    margin: 10px 14px;
    position: relative;
    z-index: 45;
}

.reader-section.reader-fullscreen .flip-reader {
    height: 100%;
    min-height: 0;
    padding: 0 14px 14px;
}

.reader-section.reader-fullscreen .reader-stage {
    height: 100%;
    min-height: 0;
}

.reader-section.reader-fullscreen .reader-fullscreen-exit-btn {
    display: flex;
}

@keyframes readerPageLoading {
    0% {
        background-position: 120% 0;
    }

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

@keyframes readerFlipNext {
    0% {
        transform: translateX(0) rotateY(0deg);
        opacity: 1;
    }

    100% {
        transform: translateX(-18px) rotateY(-8deg);
        opacity: 0.82;
    }
}

@keyframes readerFlipPrev {
    0% {
        transform: translateX(0) rotateY(0deg);
        opacity: 1;
    }

    100% {
        transform: translateX(18px) rotateY(8deg);
        opacity: 0.82;
    }
}

@media print {
    .reader-section {
        display: none !important;
    }

    body::before {
        content: "Printing is disabled for protected magazines.";
        display: block;
        padding: 24px;
        color: #000000;
        font: 700 18px Arial, sans-serif;
    }
}

.pm-footer {
    position: relative;
    margin-top: 40px;
    padding: 38px 0 70px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(160px, 1fr));
    gap: 28px;
    align-items: start;
}

.footer-grid h4 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 15px;
    text-transform: uppercase;
}

.footer-grid p,
.copy {
    color: var(--muted);
}

.footer-grid a {
    display: block;
    margin: 6px 0;
    color: var(--muted);
    font-weight: 700;
}

.footer-grid a:hover {
    color: var(--accent);
}

.footer-logo {
    display: inline-block;
    margin: 0 0 14px;
}

.footer-logo img {
    width: 170px;
    height: auto;
}

.footer-brand p {
    max-width: 360px;
    margin: 0;
}

.footer-contact span {
    display: block;
    color: var(--muted);
    margin-top: 6px;
    font-weight: 700;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.footer-partners {
    margin-top: 18px;
}

.footer-partners a,
.footer-partners span {
    display: block;
    color: var(--muted);
    font-weight: 700;
    margin: 6px 0;
}

.footer-partners a:hover {
    color: var(--accent);
}

.copy {
    margin: 30px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    text-align: center;
}

.back-to-top {
    position: absolute;
    left: 24px;
    bottom: 20px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    box-shadow: var(--shadow);
}

.back-to-top:hover {
    background: var(--accent-dark);
    color: #ffffff;
}

@media (max-width: 1100px) {
    .pm-top-flex {
        grid-template-columns: 160px minmax(220px, 1fr);
    }

    .home-message-panel {
        grid-template-columns: 1fr;
    }

    .home-message-steps {
        justify-self: start;
    }

    .admin-gifts-layout,
    .admin-activity-grid {
        grid-template-columns: 1fr;
    }

    .admin-gift-create-card {
        position: static;
    }

    .pm-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .pm-menu {
        top: 122px;
    }

    .carousel-card {
        flex: 0 0 calc(33.333% - 12px);
    }

    .home-section-track {
        grid-template-columns: repeat(7, calc((100% - 36px) / 3));
    }

    .home-section-track.is-shifted {
        transform: translateX(calc(-3 * ((100% - 36px) / 3 + 18px)));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .admin-app {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 80;
        width: min(82vw, 310px);
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        box-shadow: var(--shadow-lg);
    }

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

    .admin-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    .admin-topbar {
        margin-left: calc(clamp(18px, 3vw, 34px) * -1);
        margin-right: calc(clamp(18px, 3vw, 34px) * -1);
    }

    .admin-dashboard-two,
    .admin-dashboard-four,
    .admin-visitor-chart-grid,
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-brand {
        grid-column: 1 / -1;
    }

    .pm-menu {
        position: static;
    }

    .pm-menu-flex,
    .pm-left-menu,
    .pm-right-menu {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .pm-main {
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

    .pm-sidebar {
        position: static;
        max-height: none;
        grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .home-message-panel {
        grid-template-columns: 1fr;
        padding: 20px 24px;
    }

    .home-message-steps {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        min-width: 0;
    }

    .home-message-steps i {
        display: none;
    }

    .home-message-steps span {
        min-width: 0;
        min-height: 36px;
        justify-content: center;
        padding: 0 12px;
        text-align: center;
    }

    .slider,
    .slides,
    .slide img {
        min-height: 300px;
        height: 300px;
    }

    .ads-grid,
    .admin-offers-grid,
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .ads-hero,
    .ads-business-panel,
    .ad-shuffle-section,
    .ad-feature-link,
    .ad-detail-showcase {
        grid-template-columns: 1fr;
    }

    .ads-hero {
        align-items: start;
    }

    .ads-hero-actions {
        justify-content: flex-start;
    }

    .ads-business-points {
        grid-template-columns: 1fr;
    }

    .ad-shuffle-deck {
        min-height: 390px;
    }

    .ad-feature-link {
        min-height: 0;
    }

    .ad-feature-media {
        order: -1;
        min-height: 240px;
    }

    .ad-detail-media {
        order: -1;
        min-height: 300px;
        border-left: 0;
        border-bottom: 1px solid var(--border);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .login-container {
        grid-template-columns: 1fr;
    }

    .magazine-details,
    .magazine-hero-detail {
        grid-template-columns: 1fr;
    }

    .wwd-hero,
    .wwd-statement,
    .wwd-interactive,
    .wwd-cta {
        grid-template-columns: 1fr;
    }

    .wwd-hero {
        min-height: 0;
    }

    .wwd-orbit {
        min-height: 240px;
    }

    .wwd-orbit::before {
        width: 220px;
        height: 220px;
    }

    .wwd-orbit::after {
        width: 145px;
        height: 145px;
    }

    .wwd-orbit span:nth-child(1) {
        transform: translateY(-98px);
    }

    .wwd-orbit span:nth-child(2) {
        transform: translate(-88px, 58px);
    }

    .wwd-orbit span:nth-child(3) {
        transform: translate(88px, 58px);
    }

    .wwd-service-grid,
    .wwd-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reviews-head,
    .reviews-grid,
    .author-profile {
        grid-template-columns: 1fr;
    }

    .reviews-head {
        flex-direction: column;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .login-container .divider {
        width: 100%;
        height: 1px;
    }
}

@media (max-width: 640px) {
    body {
        background: var(--bg);
        font-size: 15px;
    }

    .pm-container,
    .pm-main {
        width: 100%;
    }

    .pm-header {
        position: sticky;
        top: 0;
        background: #111111;
        border-bottom: 1px solid #2f2f2f;
        box-shadow: none;
        backdrop-filter: none;
    }

    body.light .pm-header {
        background: #ffffff;
        border-bottom-color: #dde3ea;
    }

    .pm-top {
        padding: 8px 14px 10px;
    }

    .pm-top-flex {
        display: grid;
        grid-template-columns: 34px minmax(98px, 1fr) 34px 44px 44px;
        grid-template-areas:
            "menu logo currency actions actions"
            "search search search search settings";
        gap: 8px;
        align-items: center;
    }

    .mobile-menu-btn {
        grid-area: menu;
        display: inline-grid;
        justify-items: center;
        gap: 3px;
        width: 34px;
        padding: 0;
        background: transparent;
        border: 0;
        color: #ffffff;
        cursor: pointer;
    }

    body.light .mobile-menu-btn {
        color: var(--text);
    }

    .mobile-menu-btn span {
        width: 22px;
        height: 2px;
        background: #ffffff;
        border-radius: 2px;
    }

    body.light .mobile-menu-btn span {
        background: var(--text);
    }

    .mobile-menu-btn small {
        font-size: 10px;
        line-height: 1;
    }

    .pm-logo {
        grid-area: logo;
    }

    .pm-logo a {
        white-space: nowrap;
    }

    .pm-logo img {
        height: 36px;
        max-width: 44px;
        max-height: 36px;
    }

    .mobile-currency {
        grid-area: currency;
        display: block;
        color: #ffffff;
        font-size: 12px;
        font-weight: 900;
        text-align: center;
    }

    body.light .mobile-currency {
        color: var(--text);
    }

    .pm-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: 44px 44px;
        gap: 0;
        justify-content: end;
    }

    .pm-action {
        min-width: 40px;
        min-height: 44px;
        padding: 0;
        color: #ffffff;
        font-size: 17px;
    }

    body.light .pm-action {
        color: var(--text);
    }

    .pm-action span:last-child {
        color: #ffffff;
        font-size: 10px;
        font-weight: 800;
        margin-top: 0;
    }

    body.light .pm-action span:last-child {
        color: var(--text);
    }

    .pm-actions .pm-action[href*="library"],
    .pm-lang {
        display: none;
    }

    .cart-count {
        top: 0;
        right: 0;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        font-size: 10px;
    }

    .pm-search {
        grid-area: search;
    }

    .pm-search input {
        height: 38px;
        border-color: #404040;
        background: #171717;
        color: #ffffff;
        border-radius: 4px;
        font-size: 14px;
        padding-left: 42px;
    }

    body.light .pm-search input {
        background: #f7f9fc;
        color: var(--text);
        border-color: var(--border-strong);
    }

    .search-form button {
        left: 13px;
        right: auto;
        color: #8f93b8;
    }

    .mobile-settings {
        grid-area: settings;
        position: relative;
        display: block;
        justify-self: end;
    }

    .mobile-settings-btn {
        width: 38px;
        height: 38px;
        border: 0;
        background: transparent;
        color: #aeb3bb;
        font-size: 22px;
        cursor: pointer;
    }

    .mobile-settings-menu {
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 120;
        display: none;
        min-width: 148px;
        padding: 8px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 6px;
        box-shadow: var(--shadow);
    }

    .mobile-settings.open .mobile-settings-menu,
    .mobile-settings:hover .mobile-settings-menu,
    .mobile-settings:focus-within .mobile-settings-menu {
        display: grid;
        gap: 4px;
    }

    .mobile-settings-menu a {
        padding: 8px 10px;
        border-radius: 4px;
        color: var(--text);
        font-weight: 800;
    }

    .pm-left-menu,
    .pm-right-menu {
        gap: 2px;
    }

    .pm-left-menu a,
    .all-cat-btn,
    .currency,
    .settings {
        min-height: 40px;
        padding: 0 9px;
        font-size: 12px;
    }

    .pm-menu {
        display: none;
    }

    .pm-main {
        display: block;
        margin-top: 0;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 140;
        background: rgba(0, 0, 0, 0.42);
    }

    .sidebar-backdrop.open {
        display: block;
    }

    .pm-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 150;
        display: grid;
        grid-template-columns: 1fr;
        align-content: start;
        gap: 0;
        width: min(84vw, 292px);
        height: 100vh;
        max-height: none;
        padding: 32px 18px 24px;
        overflow-y: auto;
        background: #203142;
        border: 0;
        border-radius: 0;
        box-shadow: 12px 0 30px rgba(0, 0, 0, 0.38);
        transform: translateX(-105%);
        transition: transform 0.22s ease;
    }

    .pm-sidebar a {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 46px;
        padding: 0 6px;
        background: transparent;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 0;
        color: #f7fafc;
        font-size: 14px;
        font-weight: 900;
        line-height: 1.2;
    }

    .pm-sidebar a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
    }

    .pm-sidebar a:last-child {
        border-bottom: 0;
    }

    .pm-sidebar a::first-letter {
        color: #9aa6b2;
    }

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

    .sidebar-close {
        position: absolute;
        top: 18px;
        right: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #ffffff;
        font-size: 38px;
        font-weight: 200;
        line-height: 1;
        cursor: pointer;
    }

    .sidebar-close + a {
        margin-top: 8px;
    }

    .pm-content {
        width: 100%;
    }

    .pm-content {
        display: flex;
        flex-direction: column;
    }

    .pm-content > * {
        order: 3;
    }

    .pm-content > .slider {
        order: 2;
    }

    .pm-content > .home-message-panel {
        order: 1;
    }

    .pm-content > .home-magazine-section {
        order: 3;
    }

    .home-message-panel {
        grid-template-columns: 1fr;
        margin-bottom: 0;
        min-height: 0;
        padding: 24px 16px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .home-message-copy .caption-label {
        min-height: 24px;
        margin-bottom: 8px;
        padding: 0;
        font-size: 11px;
    }

    .home-brand-line {
        gap: 8px;
        width: 100%;
        margin-bottom: 12px;
    }

    .home-brand-slogan {
        min-height: 30px;
        padding: 0 12px;
        font-size: 16px;
    }

    .home-brand-name {
        font-size: 20px;
    }

    .home-message-copy p:not(.caption-label) {
        max-width: 340px;
        font-size: 16px;
        line-height: 1.42;
    }

    .home-message-copy h1 {
        max-width: 340px;
        font-size: 32px;
        line-height: 1.04;
    }

    .home-message-steps {
        gap: 6px;
        padding: 6px;
        width: 100%;
    }

    .home-message-steps span {
        min-height: 32px;
        padding: 0 8px;
        font-size: 11px;
    }

    .slider,
    .slides,
    .slide,
    .slide picture,
    .slide img {
        min-height: 190px;
        height: 190px;
        border-radius: 0;
    }

    .slide picture {
        display: block;
        width: 100%;
    }

    .slide img {
        object-fit: contain;
        object-position: center;
        background: #f3f4f6;
        transform: none;
    }

    .slide::after {
        background:
            linear-gradient(90deg, rgba(4, 8, 14, 0.34), rgba(4, 8, 14, 0.04) 72%),
            linear-gradient(180deg, transparent 40%, rgba(4, 8, 14, 0.62));
    }

    .caption {
        left: 15px;
        right: 15px;
        bottom: 11px;
        max-width: min(285px, 76%);
    }

    .caption h2 {
        font-size: 20px;
        line-height: 1.05;
    }

    .caption-label {
        min-height: 20px;
        margin-bottom: 4px;
        padding: 0 6px;
        background: rgba(15, 23, 42, 0.58);
        border: 1px solid rgba(255, 255, 255, 0.16);
        font-size: 11px;
    }

    .caption-button {
        min-height: 27px;
        margin-top: 6px;
        padding: 0 12px;
        font-size: 10px;
    }

    .hero-slider-controls {
        right: 15px;
        left: auto;
        bottom: 10px;
    }

    .hero-slider-dot {
        width: 7px;
        height: 7px;
    }

    .hero-slider-dot.active {
        width: 17px;
    }

    .section {
        margin-top: 0;
        padding: 18px 0 18px 18px;
        border-radius: 0;
        background: #111111;
        border-left: 0;
        border-right: 0;
    }

    .offers-page,
    .ads-page,
    .partners-section,
    .what-we-do-page {
        padding-right: 18px;
    }

    .offers-page .grid,
    .ads-grid,
    .admin-offers-grid,
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wwd-hero {
        padding: 24px 18px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .wwd-hero h1 {
        font-size: 43px;
    }

    .wwd-hero-copy > p:not(.caption-label),
    .wwd-statement p,
    .wwd-interactive p,
    .wwd-cta p {
        font-size: 14px;
        line-height: 1.6;
    }

    .wwd-orbit {
        min-height: 186px;
    }

    .wwd-orbit::before {
        width: 172px;
        height: 172px;
    }

    .wwd-orbit::after {
        width: 108px;
        height: 108px;
    }

    .wwd-orbit span {
        width: 64px;
        height: 64px;
        font-size: 12px;
    }

    .wwd-orbit span:nth-child(1) {
        transform: translateY(-76px);
    }

    .wwd-orbit span:nth-child(2) {
        transform: translate(-68px, 44px);
    }

    .wwd-orbit span:nth-child(3) {
        transform: translate(68px, 44px);
    }

    .wwd-statement,
    .wwd-interactive,
    .wwd-cta {
        padding: 18px;
    }

    .wwd-service-grid,
    .wwd-process-grid {
        grid-template-columns: 1fr;
    }

    .wwd-section-head {
        align-items: start;
        flex-direction: column;
    }

    .wwd-cta {
        justify-items: start;
    }

    .admin-offer-card,
    .future-box,
    .partners-empty {
        padding: 14px;
    }

    .ads-hero {
        padding: 20px;
    }

    .ads-hero-actions,
    .ads-secondary-cta {
        width: 100%;
    }

    .ads-hero-metrics span {
        width: 100%;
    }

    .ads-cta,
    .ad-visit-link {
        width: 100%;
    }

    .ads-business-panel,
    .ad-shuffle-section {
        padding: 16px;
    }

    .ad-shuffle-deck {
        min-height: 330px;
    }

    .ad-shuffle-card {
        width: 88%;
        min-height: 300px;
    }

    .ad-shuffle-card img {
        height: 190px;
    }

    .ad-feature-media,
    .ad-card-media {
        min-height: 220px;
        padding: 10px;
    }

    .ad-card-media {
        aspect-ratio: auto;
    }

    .ad-shuffle-deck.is-expanded {
        grid-template-columns: 1fr;
    }

    .ad-feature-copy,
    .ad-card-body {
        padding: 16px;
    }

    .ad-feature-media {
        min-height: 210px;
    }

    .ad-detail-body {
        font-size: 15px;
    }

    .ad-detail-topbar,
    .ad-detail-actions,
    .ad-detail-contact {
        grid-template-columns: 1fr;
    }

    .ad-detail-topbar {
        flex-direction: column;
    }

    .ad-detail-actions .btn,
    .ad-detail-actions .see-more-btn,
    .ad-detail-contact .btn,
    .ad-detail-topbar .see-more-btn {
        width: 100%;
    }

    .ad-detail-hero,
    .ad-detail-content {
        padding: 18px;
    }

    .ad-detail-media {
        min-height: 230px;
        padding: 12px;
    }

    .admin-ads-hero,
    .admin-ad-form-intro,
    .admin-ad-stats,
    .admin-ad-row {
        grid-template-columns: 1fr;
    }

    .admin-ads-hero a,
    .admin-ad-form-intro img,
    .admin-ad-preview-empty {
        width: 100%;
    }

    .admin-offer-card {
        grid-template-rows: auto;
    }

    .admin-offer-card h3 {
        font-size: 18px;
    }

    .offer-mini-magazines a {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .offer-mini-magazines img {
        width: 38px;
        height: 52px;
    }

    .partner-logo-card {
        min-height: 82px;
    }

    body.light .section {
        background: #ffffff;
    }

    .section h2 {
        font-size: 20px;
        color: #ffffff;
        text-transform: uppercase;
    }

    body.light .section h2 {
        color: var(--text);
    }

    .carousel-card {
        flex: 0 0 calc(50% - 9px);
        min-width: 148px;
    }

    .home-section-carousel {
        overflow: hidden;
    }

    .home-section-window {
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding: 18px 0 4px;
    }

    .home-section-window::-webkit-scrollbar {
        display: none;
    }

    .home-section-track {
        display: flex;
        gap: 18px;
        width: max-content;
        transition: none;
    }

    .home-section-track.is-shifted {
        transform: none;
    }

    .home-section-card {
        flex: 0 0 138px;
        width: 138px;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .home-section-card img {
        height: 180px;
        border-radius: 3px;
    }

    .home-section-card h3 {
        color: #ffffff;
        margin: 10px 0 4px;
        font-size: 14px;
        line-height: 1.25;
    }

    body.light .home-section-card h3 {
        color: var(--text);
    }

    .home-section-card .price {
        margin: 0 0 7px;
        color: #d8d8d8;
        font-size: 13px;
    }

    body.light .home-section-card .price {
        color: var(--muted);
    }

    .home-section-card .btn {
        display: none;
    }

    .home-carousel-arrow {
        display: none !important;
    }

    .home-section-footer {
        display: none;
    }

    .home-see-more-card {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 118px;
        width: 118px;
        min-height: 180px;
        margin-right: 18px;
        border: 1px solid var(--border);
        border-radius: 6px;
        background: var(--surface-soft);
        color: var(--teal);
        font-size: 14px;
        font-weight: 900;
    }

    .carousel-prev {
        left: -8px;
    }

    .carousel-next {
        right: -8px;
    }

    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .home-carousel-prev {
        left: -8px;
    }

    .home-carousel-next {
        right: -8px;
    }

    .home-carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .cart-table {
        display: grid;
        gap: 12px;
        border: 0;
        background: transparent;
        white-space: normal;
    }

    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
    }

    .cart-table tbody {
        display: grid;
        gap: 12px;
    }

    .cart-table tr:first-child {
        display: none;
    }

    .cart-table tr {
        padding: 14px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--surface);
        box-shadow: var(--shadow-sm);
    }

    .cart-table td {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 10px;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
        text-align: right;
        overflow-wrap: anywhere;
    }

    .cart-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
        text-align: left;
        text-transform: uppercase;
    }

    .cart-table td:last-child {
        border-bottom: 0;
    }

    .library-badge {
        display: block;
        width: fit-content;
        margin: 8px 0 0 auto;
    }

    .magazine-detail-section {
        padding: 16px 14px;
    }

    .magazine-hero-detail {
        gap: 18px;
    }

    .mag-left {
        justify-items: stretch;
    }

    .mag-left img,
    .mag-cover-note {
        width: min(220px, 72vw);
        justify-self: center;
    }

    .mag-right .caption-label {
        min-height: 22px;
        font-size: 10px;
    }

    .mag-right h1 {
        font-size: 28px;
        line-height: 1.12;
    }

    .rating-summary-inline {
        gap: 6px;
    }

    .mag-meta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 14px 0;
    }

    .mag-meta-grid div {
        padding: 11px;
    }

    .mag-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mag-actions .btn,
    .buy-now-form,
    .buy-now-form .btn {
        width: 100%;
    }

    .mag-share-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .mag-share-icons {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mag-share-icons a {
        width: 100%;
    }

    .account-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .membership-card-head,
    .membership-card-actions,
    .membership-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .membership-card {
        aspect-ratio: auto;
        min-height: 560px;
    }

    .membership-card-main {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .membership-photo-frame {
        width: min(48vw, 150px);
    }

    .membership-data-grid {
        grid-template-columns: 1fr;
    }

    .membership-qr {
        justify-self: start;
        width: 156px;
    }

    .membership-seal {
        right: 18px;
        top: auto;
        bottom: 68px;
        width: 82px;
        height: 82px;
        transform: rotate(-10deg);
    }

    .membership-verify-layout,
    .membership-verify-card dl {
        grid-template-columns: 1fr;
    }

    .membership-verify-photo {
        width: 132px;
    }

    .reader-head {
        display: grid;
        grid-template-columns: 1fr;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 8px;
    }

    .reader-head h1 {
        font-size: 20px;
    }

    .reader-secure-note {
        font-size: 12px;
        line-height: 1.35;
    }

    .reader-toolbar {
        display: grid;
        grid-template-columns: 38px minmax(104px, 1fr) 38px;
        align-items: center;
        gap: 6px;
        margin-bottom: 8px;
        padding: 6px;
    }

    .reader-toolbar button {
        min-width: 38px;
        height: 36px;
        padding: 0 8px;
    }

    .reader-page-control {
        min-width: 0;
        justify-content: center;
        gap: 5px;
    }

    .reader-page-control input {
        width: 54px;
        height: 36px;
    }

    .reader-divider {
        display: none;
    }

    [data-reader-zoom-out],
    [data-reader-zoom-label],
    [data-reader-zoom-in] {
        grid-column: auto;
    }

    .reader-fullscreen-btn {
        grid-column: 1 / -1;
        width: 100%;
        height: 34px;
    }

    .flip-reader {
        display: block;
        height: max(330px, calc(100svh - 222px));
        min-height: 0;
    }

    .reader-thumbnails {
        display: none;
    }

    .reader-stage {
        height: 100%;
        min-height: 0;
        border-radius: 6px;
    }

    .reader-book-wrap {
        align-items: flex-start;
        justify-content: center;
        padding: 8px;
        overflow: auto;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .reader-page.is-rendering {
        animation: none;
        background: #ffffff;
    }

    .reader-book {
        margin: 0;
        transform-origin: top center;
    }

.reader-mobile-zoomed .reader-book-wrap {
    justify-content: flex-start;
}

.reader-mobile-zoomed .reader-book {
    margin: 0;
}

    .reader-book-mobile {
        display: block;
    }

    .reader-page-mobile {
        width: fit-content;
        max-width: none;
        margin: 0;
    }

    .reader-page-mobile .reader-page-canvas {
        width: 100%;
        max-width: none;
    }

    .reader-page-image {
        display: block;
        max-width: none;
        background: #ffffff;
        pointer-events: none;
    }

    .reader-section.reader-fullscreen .reader-toolbar {
        margin: 8px;
    }

    .reader-section.reader-fullscreen .flip-reader {
        height: 100%;
        padding: 0 8px 8px;
    }

    .reader-section.reader-fullscreen .reader-stage {
        min-height: 0;
    }
}

@media (max-width: 420px) {
    .pm-sidebar {
        grid-template-columns: 1fr 1fr;
    }

    .carousel-card {
        flex-basis: 74%;
    }

    .card h3,
    .magazine-card h3 {
        font-size: 14px;
    }
}

/* ========== DELIVERY FLOATING BUTTON ========== */

.delivery-floating-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    font-size: 24px;
    z-index: 80;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.delivery-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
    background: var(--accent-dark);
}

.delivery-floating-btn:active {
    transform: scale(0.95);
}

.delivery-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffc107;
    color: #000;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.delivery-panel-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 79;
}

.delivery-panel-backdrop.active {
    display: block;
}

.delivery-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 420px;
    max-height: 90vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.15);
    z-index: 85;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.delivery-panel.active {
    transform: translateX(0);
}

.delivery-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.delivery-panel-head h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text);
}

.delivery-panel-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
}

.delivery-panel-close:hover {
    background: var(--surface-soft);
    color: var(--accent);
}

.delivery-panel-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.delivery-item {
    padding: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.delivery-item:hover {
    background: var(--surface);
    border-color: var(--accent-soft);
}

.delivery-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.delivery-item-id {
    flex: 1;
}

.delivery-item-id strong {
    display: block;
    color: var(--accent);
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 4px;
}

.delivery-date {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.delivery-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: capitalize;
}

.delivery-status-pending {
    background: #fff3cd;
    color: #856404;
}

.delivery-status-processing {
    background: #cfe2ff;
    color: #084298;
}

.delivery-status-processed {
    background: #cfe2ff;
    color: #084298;
}

.delivery-status-shipped {
    background: #d1ecf1;
    color: #0c5460;
}

.delivery-status-delivered {
    background: #d4edda;
    color: #155724;
}

.delivery-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.delivery-item-details {
    color: var(--text);
    font-size: 14px;
}

.delivery-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.delivery-detail-grid div {
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.delivery-detail-grid span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 4px;
}

.delivery-detail-grid strong {
    display: block;
    color: var(--text);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.delivery-items {
    margin: 0 0 12px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
}

.delivery-address {
    margin: 12px 0;
    padding: 12px;
    background: var(--surface);
    border-radius: 4px;
    font-size: 13px;
}

.delivery-address strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
}

.delivery-address pre {
    margin: 0;
    font-family: inherit;
    font-size: 13px;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--muted);
}

.delivery-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-weight: 700;
}

.delivery-amount strong {
    color: var(--text);
}

.delivery-amount span {
    color: var(--accent);
    font-size: 16px;
}

.delivery-expiry-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .delivery-panel {
        width: 100%;
    }
    
    .delivery-floating-btn {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .delivery-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* USER MANAGEMENT STYLES */
.admin-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-info strong {
    color: var(--text);
}

.admin-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-status-active {
    background: rgba(22, 131, 76, 0.1);
    color: var(--success);
}

.admin-status-inactive {
    background: rgba(242, 169, 0, 0.1);
    color: var(--warning);
}

.admin-status-pending {
    background: rgba(7, 150, 163, 0.1);
    color: var(--teal);
}

.admin-user-details {
    margin-bottom: 32px;
}

.admin-user-info-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.admin-user-info-card h3 {
    margin: 0 0 20px;
    font-size: 18px;
}

.admin-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-info-item label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.5px;
}

.admin-info-item span {
    font-size: 14px;
    color: var(--text);
}

.admin-user-actions {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.admin-user-library {
    margin-bottom: 32px;
}

.admin-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.admin-library-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    transition: box-shadow 0.2s ease;
}

.admin-library-item:hover {
    box-shadow: var(--shadow);
}

.admin-library-cover {
    flex-shrink: 0;
    width: 60px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--surface-soft);
}

.admin-library-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-library-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 24px;
    font-weight: 700;
}

.admin-library-info {
    flex: 1;
    min-width: 0;
}

.admin-library-info h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.admin-library-access {
    margin: 0 0 4px;
    font-size: 12px;
    color: var(--muted);
    text-transform: capitalize;
}

.admin-library-date {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--muted);
}

.admin-gifts-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
    gap: 20px;
    align-items: start;
}

.admin-gift-list-panel,
.admin-gift-list,
.admin-gift-card {
    min-width: 0;
}

.admin-gift-list-panel h4,
.admin-gift-create-card h4,
.admin-activity-grid h4 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 17px;
}

.admin-gift-list {
    display: grid;
    gap: 14px;
}

.admin-gift-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.admin-gift-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.admin-gift-card h5 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.25;
}

.admin-gift-card-head span:not(.admin-status) {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-gift-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.admin-gift-meta div {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}

.admin-gift-meta small {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-gift-meta p,
.admin-gift-meta a {
    margin: 0;
    overflow-wrap: anywhere;
}

.admin-gift-edit-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-gift-edit-form .wide,
.admin-gift-actions {
    grid-column: 1 / -1;
}

.admin-gift-delete-form {
    justify-content: flex-start;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.admin-gift-create-card {
    position: sticky;
    top: 108px;
    min-width: 0;
    background: var(--surface-soft);
}

.admin-activity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.admin-activity-grid .admin-table-container {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.admin-activity-grid .admin-table {
    min-width: 560px;
}

@media (max-width: 1100px) {
    .admin-gifts-layout,
    .admin-activity-grid {
        grid-template-columns: 1fr;
    }

    .admin-gift-create-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .admin-gift-meta,
    .admin-gift-edit-form {
        grid-template-columns: 1fr;
    }

    .admin-gift-card-head {
        flex-direction: column;
    }
}

.admin-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
}

.admin-empty-state p {
    margin: 0;
    font-size: 16px;
}

.admin-user-orders {
    margin-bottom: 32px;
}

.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.admin-modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--surface);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.admin-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.admin-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-modal-body {
    padding: 24px;
}

.admin-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.admin-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 10;
}

.admin-search-result-item {
    display: flex;
    align-items: center;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s ease;
    text-align: left;
}

.admin-search-result-item:hover {
    background: var(--surface-soft);
}

.admin-search-result-item:last-child {
    border-bottom: none;
}

.admin-search-no-results {
    padding: 12px 16px;
    color: var(--muted);
    font-style: italic;
}

.admin-form-group {
    margin-bottom: 20px;
    position: relative;
}

.admin-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.admin-form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
}

.admin-form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.site-intro-open {
    overflow: hidden;
}

/* Compact T9 loader for normal page changes and slow network moments. */
.site-page-loader {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: grid;
    place-items: center;
    padding: 18px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    background: rgba(5, 8, 15, 0.58);
    backdrop-filter: blur(7px);
    transition: opacity 180ms ease, visibility 180ms ease;
}

.site-page-loader.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-page-loader-card {
    display: grid;
    place-items: center;
    gap: 10px;
    width: min(180px, 58vw);
    padding: 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 10%, rgba(224, 25, 49, 0.24), transparent 48%),
        rgba(10, 14, 24, 0.92);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.38), 0 0 30px rgba(224, 25, 49, 0.14);
    color: #fff;
}

.site-page-loader-card img {
    width: 58px;
    height: auto;
    filter: drop-shadow(0 0 18px rgba(224, 25, 49, 0.45));
}

.site-page-loader-card span {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.site-page-loader-card i {
    display: block;
    width: 100%;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.site-page-loader-card i::after {
    content: "";
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    box-shadow: 0 0 18px rgba(224, 25, 49, 0.7);
    animation: siteIntroLoading 1.05s ease-in-out infinite;
}

.site-intro-video {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #000;
    opacity: 1;
    transition: opacity 420ms ease;
}

.site-intro-video.is-visible {
    display: flex;
}

.site-intro-video.is-leaving {
    opacity: 0;
}

.site-intro-video-frame {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #000;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.site-intro-video video {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    background: #000;
    opacity: 0;
    transition: opacity 360ms ease;
}

.site-intro-video.is-ready video {
    opacity: 1;
}

.site-intro-loader {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: #ffffff;
    background:
        radial-gradient(circle at 50% 42%, rgba(224, 25, 49, 0.22), transparent 36%),
        #000000;
    transition: opacity 320ms ease, visibility 320ms ease;
}

.site-intro-loader img {
    width: 86px;
    height: auto;
    filter: drop-shadow(0 0 24px rgba(224, 25, 49, 0.45));
}

.site-intro-loader span {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.site-intro-loader i {
    display: block;
    width: min(220px, 54vw);
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.site-intro-loader i::after {
    content: "";
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    box-shadow: 0 0 18px rgba(224, 25, 49, 0.7);
    animation: siteIntroLoading 1.1s ease-in-out infinite;
}

.site-intro-video.is-ready .site-intro-loader {
    opacity: 0;
    visibility: hidden;
}

.site-intro-skip {
    position: absolute;
    top: 12px;
    right: 12px;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

@media (min-width: 900px) {
    .site-intro-video video {
        object-fit: cover;
    }
}

.site-intro-skip:hover {
    background: var(--accent);
    border-color: var(--accent);
}

@keyframes siteIntroLoading {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(260%);
    }
}

.jobs-grid,
.job-application-list {
    display: grid;
    gap: 18px;
}

.jobs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.job-card {
    display: grid;
    grid-template-rows: auto 1fr;
}

.job-card img,
.job-cover-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: linear-gradient(135deg, var(--surface-soft), var(--border));
}

.job-cover-placeholder {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 800;
}

.job-card-body,
.job-apply-panel,
.job-application-form {
    padding: 18px;
}

.job-card-body {
    display: grid;
    gap: 10px;
}

.job-card-body h3,
.job-apply-panel h3,
.job-application-item h3 {
    margin: 0;
    min-height: 0;
}

.job-card-body p,
.job-application-item p {
    margin: 0;
    color: var(--muted);
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-meta span,
.job-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.job-status {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    color: var(--accent);
}

.job-detail-hero,
.job-detail-layout,
.admin-job-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 22px;
    align-items: start;
}

.job-detail-hero {
    align-items: center;
    margin-bottom: 22px;
}

.job-detail-hero h2 {
    margin: 0 0 12px;
}

.job-detail-hero img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.job-detail-copy,
.job-apply-panel,
.job-application-form,
.job-application-item,
.jobs-empty {
    min-width: 0;
}

.job-detail-copy h3 {
    margin: 22px 0 8px;
}

.job-detail-copy p,
.job-apply-panel li {
    color: var(--muted);
    line-height: 1.7;
}

.job-lead {
    color: var(--text) !important;
    font-size: 18px;
}

.job-apply-panel ul,
.admin-document-list {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    padding-left: 18px;
}

.job-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.job-form-grid label,
.job-doc-upload label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-weight: 800;
}

.job-form-grid input,
.job-form-grid textarea,
.job-doc-upload input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    color: var(--text);
    padding: 10px;
}

.job-form-grid textarea {
    min-height: 120px;
}

.job-form-grid .wide,
.job-doc-upload {
    grid-column: 1 / -1;
}

.job-doc-upload {
    display: grid;
    gap: 12px;
    margin: 18px 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.job-application-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 18px;
}

.job-application-actions {
    display: grid;
    justify-items: end;
    gap: 12px;
}

.admin-document-list {
    padding-left: 0;
}

.admin-document-list a {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-soft);
}

@media (max-width: 980px) {
    .jobs-grid,
    .job-detail-hero,
    .job-detail-layout,
    .admin-job-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .job-form-grid,
    .job-application-item {
        grid-template-columns: 1fr;
    }

    .job-application-actions {
        justify-items: start;
    }
}

/* T9 homepage cinematic hero. Scoped to the homepage message card only. */
.home-message-panel {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.72fr);
    gap: 34px;
    align-items: center;
    min-height: 486px;
    margin: 0 0 14px;
    padding: 46px 58px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 14% 8%, rgba(255, 36, 66, 0.22), transparent 34%),
        radial-gradient(circle at 80% 82%, rgba(7, 150, 163, 0.12), transparent 34%),
        linear-gradient(135deg, #111723 0%, #151a27 44%, #07131a 100%);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateZ(0);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.home-message-panel::before {
    content: none;
}

.home-message-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.04) 26%, transparent 42%),
        linear-gradient(260deg, rgba(224, 25, 49, 0.09), transparent 44%, rgba(255, 255, 255, 0.03));
    background-size: 160% 160%;
    animation: t9HeroLightDrift 9s ease-in-out infinite;
}

.home-message-panel:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 42, 67, 0.34);
    box-shadow:
        0 28px 82px rgba(0, 0, 0, 0.42),
        0 0 46px rgba(224, 25, 49, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.home-message-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.home-message-glow {
    position: absolute;
    display: block;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.78;
}

.home-message-glow-one {
    top: -92px;
    left: 54px;
    width: 360px;
    height: 190px;
    background: rgba(224, 25, 49, 0.36);
    animation: t9HeroGlowOne 7s ease-in-out infinite;
}

.home-message-glow-two {
    right: -120px;
    bottom: -96px;
    width: 390px;
    height: 270px;
    background: rgba(15, 29, 39, 0.9);
    box-shadow: 0 0 80px rgba(224, 25, 49, 0.18);
    animation: t9HeroGlowTwo 8s ease-in-out infinite;
}

.home-message-grid {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 70% 54%, #000 0%, transparent 66%);
}

.home-message-copy {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: start;
    min-width: 0;
    text-align: left;
}

.home-message-copy .home-brand-line {
    display: grid;
    grid-template-columns: auto;
    gap: 14px;
    width: min(100%, 680px);
    margin: 0 0 26px;
    padding: 0;
    color: #ff2a43;
    background: transparent;
    border: 0;
    font-weight: 900;
    text-transform: uppercase;
}

.home-message-copy .home-brand-line::before {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin: 0 0 -4px;
    background: #ff2a43;
    box-shadow: 0 0 18px rgba(255, 42, 67, 0.58);
}

.home-brand-name {
    display: inline-flex;
    align-items: center;
    color: #ff2a43;
    font-size: 38px;
    line-height: 1;
    opacity: 0;
    transform: translateY(18px);
    animation: t9HeroReveal 720ms cubic-bezier(0.2, 0.8, 0.2, 1) 160ms forwards;
}

.home-brand-slogan {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 58px;
    padding: 0 30px;
    color: #ffffff;
    background: #e01931;
    border-radius: 5px;
    font-size: 34px;
    line-height: 1;
    box-shadow:
        0 18px 36px rgba(224, 25, 49, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    animation: t9HeroBadgeReveal 760ms cubic-bezier(0.2, 0.8, 0.2, 1) 520ms forwards;
}

.home-message-title {
    display: grid;
    gap: 2px;
    max-width: 760px;
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 74px;
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: 0;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

.home-message-title span {
    display: block;
    opacity: 0;
    transform: translateY(28px);
    clip-path: inset(0 0 100% 0);
    animation: t9HeroLineReveal 820ms cubic-bezier(0.18, 0.84, 0.24, 1) forwards;
}

.home-message-title span:nth-child(1) {
    animation-delay: 880ms;
}

.home-message-title span:nth-child(2) {
    animation-delay: 1080ms;
}

.home-message-title span:nth-child(3) {
    animation-delay: 1280ms;
}

.home-message-summary {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 29px;
    line-height: 1.42;
    font-weight: 800;
    opacity: 0;
    transform: translateY(16px);
    animation: t9HeroReveal 760ms ease 1640ms forwards;
}

.home-message-visual {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: stretch;
    min-width: 0;
}

.home-message-steps {
    position: relative;
    display: grid;
    grid-template-columns: minmax(76px, 1fr) 34px minmax(76px, 1fr) 34px minmax(76px, 1fr);
    align-items: center;
    width: min(100%, 460px);
    justify-self: end;
    min-width: 0;
    padding: 12px;
    background: rgba(18, 28, 43, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateX(20px);
    animation: t9HeroReveal 760ms ease 1760ms forwards;
}

.home-flow-node {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 58px;
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(8, 14, 24, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    font-size: 15px;
    font-weight: 900;
    text-align: center;
    transition: transform 260ms ease, color 260ms ease, background 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.home-flow-node.is-active {
    transform: translateY(-2px);
    color: #ffffff;
    background: rgba(224, 25, 49, 0.96);
    border-color: rgba(255, 66, 90, 0.94);
    box-shadow:
        0 16px 34px rgba(224, 25, 49, 0.28),
        0 0 28px rgba(224, 25, 49, 0.42);
}

.home-flow-node[data-flow-step="top"].is-active {
    box-shadow:
        0 18px 42px rgba(224, 25, 49, 0.38),
        0 0 44px rgba(255, 42, 67, 0.62),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.home-flow-line {
    position: relative;
    display: block;
    width: 100%;
    height: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
}

.home-flow-line::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    background: #ff2a43;
    box-shadow: 0 0 16px rgba(255, 42, 67, 0.9);
    animation: t9HeroLineTravel 2.7s ease-in-out infinite;
}

.home-flow-touch {
    position: absolute;
    top: 50%;
    left: 18%;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
    box-shadow: 0 0 22px rgba(255, 42, 67, 0.72);
    pointer-events: none;
}

.home-flow-touch.is-touching {
    animation: t9HeroTap 580ms ease both;
}

body.light .home-message-panel {
    color: #ffffff;
    background:
        radial-gradient(circle at 14% 8%, rgba(255, 36, 66, 0.22), transparent 34%),
        linear-gradient(135deg, #111723 0%, #161c28 48%, #07131a 100%);
}

body.light .home-message-copy h1,
body.light .home-message-copy p:not(.caption-label) {
    color: #ffffff;
}

@keyframes t9HeroLightDrift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes t9HeroGlowOne {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translate3d(34px, 24px, 0) scale(1.08);
        opacity: 0.96;
    }
}

@keyframes t9HeroGlowTwo {
    0%, 100% {
        transform: translate3d(0, 0, 0);
        opacity: 0.5;
    }

    50% {
        transform: translate3d(-34px, -20px, 0);
        opacity: 0.82;
    }
}

@keyframes t9HeroReveal {
    to {
        opacity: 1;
        transform: translateY(0) translateX(0) scale(1);
    }
}

@keyframes t9HeroBadgeReveal {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }

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

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

@keyframes t9HeroLineReveal {
    to {
        opacity: 1;
        transform: translateY(0);
        clip-path: inset(0 0 0 0);
    }
}

@keyframes t9HeroLineTravel {
    0%, 100% {
        transform: translateX(-110%);
        opacity: 0;
    }

    28%, 72% {
        opacity: 1;
    }

    100% {
        transform: translateX(250%);
    }
}

@keyframes t9HeroTap {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.35);
    }

    42% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.9);
    }
}

@media (max-width: 1180px) {
    .home-message-panel {
        grid-template-columns: minmax(0, 1fr) minmax(310px, 0.64fr);
        padding: 38px 44px;
    }

    .home-message-title {
        font-size: 62px;
    }

    .home-message-summary {
        font-size: 24px;
    }
}

@media (max-width: 900px) {
    .home-message-panel {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 0;
        padding: 30px 24px;
    }

    .home-message-steps {
        justify-self: start;
        width: 100%;
    }

    .home-message-title {
        font-size: 50px;
    }

    .home-message-summary {
        max-width: 680px;
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .home-message-panel {
        margin-bottom: 0;
        padding: 24px 16px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .home-message-copy .home-brand-line {
        gap: 10px;
        margin-bottom: 18px;
    }

    .home-brand-name {
        font-size: 22px;
    }

    .home-brand-slogan {
        min-height: 36px;
        padding: 0 14px;
        font-size: 19px;
    }

    .home-message-title {
        gap: 0;
        max-width: 100%;
        font-size: 40px;
        line-height: 1.02;
    }

    .home-message-summary {
        max-width: 100%;
        font-size: 16px;
        line-height: 1.56;
    }

    .home-message-visual {
        width: 100%;
    }

    .home-message-steps {
        grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr);
        gap: 0;
        width: 100%;
        padding: 8px;
    }

    .home-flow-node {
        min-height: 42px;
        padding: 0 8px;
        font-size: 12px;
    }

    .home-flow-touch {
        width: 14px;
        height: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-message-panel::after,
    .home-message-glow,
    .home-flow-line::after,
    .home-flow-touch,
    .home-brand-name,
    .home-brand-slogan,
    .home-message-title span,
    .home-message-summary,
    .home-message-steps {
        animation: none;
    }

    .home-brand-name,
    .home-brand-slogan,
    .home-message-title span,
    .home-message-summary,
    .home-message-steps {
        opacity: 1;
        transform: none;
        clip-path: none;
    }
}

/* Refined hero pass: calmer, balanced, closer to the existing T9 layout. */
.home-message-panel {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 410px);
    gap: clamp(22px, 4vw, 46px);
    min-height: 360px;
    padding: clamp(28px, 4vw, 42px) clamp(28px, 4.8vw, 52px);
    background:
        radial-gradient(circle at 18% 6%, rgba(224, 25, 49, 0.18), transparent 31%),
        linear-gradient(135deg, #171b27 0%, #151b25 58%, #0b1a22 100%);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.home-message-panel:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.32);
}

.home-message-glow-one {
    width: 300px;
    height: 150px;
    opacity: 0.46;
}

.home-message-glow-two,
.home-message-grid {
    opacity: 0.16;
}

.home-message-copy .home-brand-line {
    gap: 10px;
    margin-bottom: 20px;
}

.home-brand-name {
    font-size: clamp(26px, 3vw, 40px);
}

.home-brand-slogan {
    min-height: clamp(42px, 4vw, 58px);
    padding: 0 clamp(18px, 2.6vw, 30px);
    font-size: clamp(22px, 2.6vw, 34px);
    box-shadow: 0 10px 24px rgba(224, 25, 49, 0.26);
}

.home-message-title {
    gap: 0;
    max-width: 680px;
    margin-bottom: 16px;
    font-size: clamp(48px, 5.4vw, 74px);
}

.home-message-summary {
    max-width: 760px;
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.46;
}

.home-message-steps {
    width: 100%;
    max-width: 410px;
    padding: 10px;
    background: rgba(18, 28, 43, 0.58);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.home-flow-node {
    min-height: 46px;
    border-radius: 6px;
    font-size: 14px;
}

.home-flow-node.is-active {
    transform: none;
    box-shadow: 0 10px 22px rgba(224, 25, 49, 0.24);
}

.home-flow-node[data-flow-step="top"].is-active {
    box-shadow:
        0 12px 28px rgba(224, 25, 49, 0.3),
        0 0 26px rgba(255, 42, 67, 0.42);
}

@media (max-width: 900px) {
    .home-message-panel {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 28px 22px;
    }

    .home-message-steps {
        justify-self: stretch;
        max-width: 520px;
    }
}

@media (max-width: 640px) {
    .home-message-panel {
        padding: 22px 16px;
        gap: 20px;
    }

    .home-message-copy .home-brand-line {
        margin-bottom: 16px;
    }

    .home-brand-name {
        font-size: 21px;
    }

    .home-brand-slogan {
        min-height: 34px;
        padding: 0 13px;
        font-size: 18px;
    }

    .home-message-title {
        font-size: 36px;
        line-height: 1.04;
        margin-bottom: 12px;
    }

    .home-message-summary {
        font-size: 15px;
        line-height: 1.54;
    }

    .home-message-steps {
        grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
        padding: 7px;
    }

    .home-flow-node {
        min-height: 38px;
        padding: 0 6px;
        font-size: 11px;
    }
}

/* T9 premium cinematic hero rebuild. All visual rules are scoped with t9-hero-* classes. */
.t9-hero-section.home-message-panel {
    --t9-hero-red: #e01931;
    --t9-hero-red-hot: #ff2a43;
    --t9-hero-ink: #070b12;
    --t9-hero-navy: #111827;
    --t9-hero-panel: rgba(13, 20, 31, 0.76);
    --t9-hero-line: rgba(255, 255, 255, 0.12);
    --t9-hero-soft: rgba(255, 255, 255, 0.72);
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 430px);
    gap: clamp(28px, 4vw, 58px);
    align-items: center;
    min-height: clamp(390px, 42vw, 520px);
    margin: 0 0 14px;
    padding: clamp(32px, 4.5vw, 56px);
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 10%, rgba(224, 25, 49, 0.18), transparent 31%),
        radial-gradient(circle at 86% 74%, rgba(9, 159, 172, 0.1), transparent 34%),
        linear-gradient(135deg, #101622 0%, #111927 52%, #08131a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.t9-hero-section.home-message-panel::before,
.t9-hero-section.home-message-panel::after {
    content: none;
}

.t9-hero-section:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 42, 67, 0.3);
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.44),
        0 0 42px rgba(224, 25, 49, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

body.light .t9-hero-section {
    --t9-hero-panel: rgba(13, 20, 31, 0.72);
    background:
        radial-gradient(circle at 20% 8%, rgba(224, 25, 49, 0.2), transparent 32%),
        linear-gradient(135deg, #121927 0%, #111827 58%, #09141c 100%);
}

.t9-hero-atmosphere,
.t9-hero-atmosphere span {
    pointer-events: none;
}

.t9-hero-atmosphere {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.t9-hero-orb {
    position: absolute;
    display: block;
    border-radius: 999px;
    filter: blur(22px);
    opacity: 0.72;
}

.t9-hero-orb-primary {
    top: -86px;
    left: 8%;
    width: 360px;
    height: 190px;
    background: rgba(224, 25, 49, 0.34);
    animation: t9HeroOrbFloat 8s ease-in-out infinite;
}

.t9-hero-orb-secondary {
    right: -110px;
    bottom: -120px;
    width: 380px;
    height: 300px;
    background: rgba(12, 24, 34, 0.95);
    box-shadow: 0 0 90px rgba(224, 25, 49, 0.2);
    animation: t9HeroOrbFloat 10s ease-in-out infinite reverse;
}

.t9-hero-sheen {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.055) 28%, transparent 47%),
        linear-gradient(260deg, rgba(224, 25, 49, 0.08), transparent 52%);
    background-size: 180% 180%;
    animation: t9HeroSheen 9s ease-in-out infinite;
}

.t9-hero-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
    box-shadow: 0 0 18px rgba(255, 42, 67, 0.42);
    animation: t9HeroParticle 7s ease-in-out infinite;
}

.t9-hero-particle-one {
    top: 20%;
    right: 30%;
}

.t9-hero-particle-two {
    top: 62%;
    right: 10%;
    animation-delay: 1.4s;
}

.t9-hero-particle-three {
    bottom: 18%;
    left: 42%;
    animation-delay: 2.2s;
}

.t9-hero-copy,
.t9-hero-motion {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.t9-hero-copy {
    display: grid;
    justify-items: start;
}

.t9-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    color: var(--t9-hero-red-hot);
    font-size: clamp(20px, 2.2vw, 34px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(16px);
    animation: t9HeroRevealUp 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms forwards;
}

.t9-hero-kicker::before {
    content: "";
    width: 32px;
    height: 2px;
    background: var(--t9-hero-red-hot);
    box-shadow: 0 0 18px rgba(255, 42, 67, 0.7);
}

.t9-hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: clamp(38px, 4vw, 54px);
    margin: 0 0 28px;
    padding: 0 clamp(18px, 2.2vw, 28px);
    color: #ffffff;
    background: linear-gradient(135deg, var(--t9-hero-red-hot), var(--t9-hero-red));
    border-radius: 6px;
    font-size: clamp(20px, 2.4vw, 32px);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    box-shadow:
        0 16px 34px rgba(224, 25, 49, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    animation: t9HeroBadge 760ms cubic-bezier(0.2, 0.8, 0.2, 1) 420ms forwards;
}

.t9-hero-title {
    display: grid;
    gap: 0;
    max-width: 720px;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(44px, 5.25vw, 72px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: 0;
    text-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.t9-hero-title span {
    display: block;
    opacity: 0;
    transform: translateY(26px);
    clip-path: inset(0 0 100% 0);
    animation: t9HeroTitleReveal 780ms cubic-bezier(0.18, 0.84, 0.24, 1) forwards;
}

.t9-hero-title span:nth-child(1) {
    animation-delay: 760ms;
}

.t9-hero-title span:nth-child(2) {
    animation-delay: 940ms;
}

.t9-hero-title span:nth-child(3) {
    animation-delay: 1120ms;
}

.t9-hero-summary {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(16px, 1.45vw, 21px);
    font-weight: 700;
    line-height: 1.58;
    min-height: 6.2em;
    opacity: 0;
    transform: translateY(14px);
    animation: t9HeroRevealUp 720ms ease 1750ms forwards;
}

.t9-hero-summary.is-typing::after,
.t9-hero-summary.is-typed::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 4px;
    transform: translateY(2px);
    background: var(--t9-hero-red-hot);
    box-shadow: 0 0 14px rgba(255, 42, 67, 0.8);
    animation: t9HeroCaret 900ms steps(2, end) infinite;
}

.t9-hero-summary.is-typed::after {
    opacity: 0;
    animation: none;
}

.t9-hero-motion {
    display: grid;
    align-items: center;
}

.t9-hero-journey {
    position: relative;
    width: min(100%, 450px);
    justify-self: end;
    padding: 20px;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 22%, rgba(224, 25, 49, 0.13), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
        var(--t9-hero-panel);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;
    box-shadow:
        0 24px 62px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateX(24px);
    animation: t9HeroRevealRight 760ms ease 1600ms forwards;
}

.t9-hero-journey::after {
    content: "";
    position: absolute;
    inset: auto -20% -36% 18%;
    height: 160px;
    background: radial-gradient(circle, rgba(224, 25, 49, 0.24), transparent 62%);
    opacity: 0;
    transition: opacity 360ms ease;
}

.t9-hero-journey[data-flow-phase="top"]::after {
    opacity: 1;
}

.t9-hero-journey-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.t9-hero-journey-head strong {
    color: #ffffff;
    letter-spacing: 0;
}

.t9-hero-path {
    position: relative;
    display: grid;
    gap: 0;
    padding-left: 12px;
}

.t9-hero-path::before {
    content: "";
    position: absolute;
    top: 34px;
    bottom: 34px;
    left: 31px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
}

.t9-hero-path::after {
    content: "";
    position: absolute;
    top: 34px;
    left: 31px;
    width: 2px;
    height: var(--t9-hero-path-height, 0px);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--t9-hero-red-hot), var(--t9-hero-red));
    box-shadow: 0 0 22px rgba(255, 42, 67, 0.7);
    transition: height 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.t9-hero-signal {
    position: absolute;
    z-index: 4;
    top: 41px;
    left: 31px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: 0 0 24px rgba(255, 42, 67, 0.25);
    transform: translate(-50%, -50%);
    transition: top 720ms cubic-bezier(0.2, 0.8, 0.2, 1), background 260ms ease, box-shadow 260ms ease;
}

.t9-hero-signal-icon {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 900;
    font-style: normal;
    line-height: 1;
}

.t9-hero-journey[data-flow-phase="tip"] .t9-hero-signal {
    background: rgba(255, 255, 255, 0.12);
}

.t9-hero-journey[data-flow-phase="tap"] .t9-hero-signal {
    background: rgba(224, 25, 49, 0.88);
    box-shadow: 0 0 32px rgba(255, 42, 67, 0.6);
}

.t9-hero-journey[data-flow-phase="top"] .t9-hero-signal {
    background: #e01931;
    box-shadow:
        0 0 34px rgba(255, 42, 67, 0.72),
        0 0 70px rgba(224, 25, 49, 0.38);
}

.t9-hero-journey[data-flow-phase="top"] .t9-hero-signal-icon {
    font-size: 0;
}

.t9-hero-journey[data-flow-phase="top"] .t9-hero-signal-icon::before {
    content: "TOP";
    font-size: 8px;
    letter-spacing: 0;
}

.t9-hero-step {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 82px;
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(135deg, rgba(8, 14, 24, 0.42), rgba(8, 14, 24, 0.22));
    border: 1px solid transparent;
    border-radius: 10px;
    transition: transform 280ms ease, background 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.t9-hero-step strong {
    display: block;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
}

.t9-hero-step small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    font-weight: 700;
}

.t9-hero-step-dot {
    position: relative;
    display: block;
    z-index: 2;
    width: 28px;
    height: 28px;
    margin: auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.t9-hero-step-dot::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.55);
}

.t9-hero-step.is-active {
    transform: translateX(6px);
    color: #ffffff;
    background:
        radial-gradient(circle at 0% 50%, rgba(255, 42, 67, 0.18), transparent 42%),
        rgba(224, 25, 49, 0.1);
    border-color: rgba(255, 42, 67, 0.42);
    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.t9-hero-step.is-active .t9-hero-step-dot {
    background: rgba(224, 25, 49, 0.22);
    border-color: rgba(255, 42, 67, 0.8);
    box-shadow: 0 0 24px rgba(255, 42, 67, 0.44);
}

.t9-hero-step.is-active .t9-hero-step-dot::after {
    background: var(--t9-hero-red-hot);
}

.t9-hero-step[data-t9-hero-step="top"].is-active {
    background: rgba(224, 25, 49, 0.18);
    box-shadow:
        0 16px 42px rgba(224, 25, 49, 0.2),
        0 0 38px rgba(255, 42, 67, 0.28);
}

.t9-hero-step[data-t9-hero-step="tip"] .t9-hero-step-dot::before,
.t9-hero-step[data-t9-hero-step="tap"] .t9-hero-step-dot::before,
.t9-hero-step[data-t9-hero-step="top"] .t9-hero-step-dot::before {
    position: absolute;
    inset: -7px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.t9-hero-step[data-t9-hero-step="tip"].is-active .t9-hero-step-dot::before {
    content: "";
    border-color: rgba(255, 255, 255, 0.18);
    animation: t9HeroInfoPulse 1.4s ease-in-out infinite;
}

.t9-hero-step[data-t9-hero-step="tap"].is-active .t9-hero-step-dot::before {
    content: "";
    border-color: rgba(255, 42, 67, 0.38);
    animation: t9HeroTapRing 820ms ease-out infinite;
}

.t9-hero-step[data-t9-hero-step="top"].is-active .t9-hero-step-dot::before {
    content: "";
    border-color: rgba(255, 42, 67, 0.56);
    box-shadow: 0 0 30px rgba(255, 42, 67, 0.48);
}

.t9-hero-connector {
    position: relative;
    display: block;
    width: 2px;
    height: 22px;
    margin-left: 31px;
    overflow: hidden;
    background: transparent;
    border-radius: 999px;
}

.t9-hero-connector::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: scaleY(0);
    transform-origin: top;
    background: linear-gradient(180deg, var(--t9-hero-red-hot), var(--t9-hero-red));
    box-shadow: 0 0 18px rgba(255, 42, 67, 0.72);
    transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.t9-hero-connector.is-lit::after {
    transform: scaleY(1);
}

.t9-hero-cursor {
    position: absolute;
    z-index: 3;
    top: 42px;
    left: 31px;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55);
    box-shadow:
        0 0 0 6px rgba(255, 42, 67, 0.1),
        0 0 24px rgba(255, 42, 67, 0.54);
    pointer-events: none;
}

.t9-hero-cursor::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: inherit;
    border: 1px solid rgba(255, 42, 67, 0.26);
}

.t9-hero-cursor.is-tapping {
    animation: t9HeroTapPulse 620ms ease both;
}

@keyframes t9HeroSheen {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes t9HeroOrbFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(28px, 18px, 0) scale(1.06);
    }
}

@keyframes t9HeroParticle {
    0%, 100% {
        opacity: 0.22;
        transform: translateY(0);
    }

    50% {
        opacity: 0.72;
        transform: translateY(-16px);
    }
}

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

@keyframes t9HeroRevealRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes t9HeroBadge {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

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

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

@keyframes t9HeroTitleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
        clip-path: inset(0 0 0 0);
    }
}

@keyframes t9HeroTapPulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.45);
    }

    45% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.85);
    }
}

@keyframes t9HeroCaret {
    0%, 45% {
        opacity: 1;
    }

    46%, 100% {
        opacity: 0;
    }
}

@keyframes t9HeroInfoPulse {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.45;
    }

    50% {
        transform: scale(1.18);
        opacity: 1;
    }
}

@keyframes t9HeroTapRing {
    0% {
        transform: scale(0.72);
        opacity: 0.85;
    }

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

@media (max-width: 1100px) {
    .t9-hero-section.home-message-panel {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
        padding: 34px;
    }
}

@media (max-width: 860px) {
    .t9-hero-section.home-message-panel {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 0;
        padding: 30px 22px;
    }

    .t9-hero-journey {
        justify-self: stretch;
        width: 100%;
        max-width: 520px;
    }
}

@media (max-width: 640px) {
    .t9-hero-section.home-message-panel {
        margin-bottom: 0;
        padding: 24px 16px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .t9-hero-kicker {
        margin-bottom: 10px;
        font-size: 21px;
    }

    .t9-hero-kicker::before {
        width: 24px;
    }

    .t9-hero-badge {
        min-height: 34px;
        margin-bottom: 18px;
        padding: 0 14px;
        font-size: 18px;
    }

    .t9-hero-title {
        margin-bottom: 12px;
        font-size: 38px;
        line-height: 1.04;
    }

    .t9-hero-summary {
        font-size: 15px;
        line-height: 1.56;
    }

    .t9-hero-journey {
        padding: 14px;
    }

    .t9-hero-journey-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 14px;
    }

    .t9-hero-step {
        grid-template-columns: 30px minmax(0, 1fr);
        min-height: 58px;
        padding: 10px;
    }

    .t9-hero-path {
        padding-left: 6px;
    }

    .t9-hero-path::before,
    .t9-hero-path::after {
        left: 21px;
    }

    .t9-hero-step strong {
        font-size: 16px;
    }

    .t9-hero-step small {
        font-size: 11px;
    }

    .t9-hero-connector {
        height: 20px;
        margin-left: 21px;
    }

    .t9-hero-cursor {
        left: 21px;
        width: 16px;
        height: 16px;
    }

    .t9-hero-signal {
        left: 21px;
        width: 24px;
        height: 24px;
    }

    .t9-hero-signal-icon {
        width: 14px;
        height: 14px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .t9-hero-section *,
    .t9-hero-section::before,
    .t9-hero-section::after {
        animation: none !important;
        transition: none !important;
    }

    .t9-hero-kicker,
    .t9-hero-badge,
    .t9-hero-title span,
    .t9-hero-summary,
    .t9-hero-journey {
        opacity: 1;
        transform: none;
        clip-path: none;
    }
}

/* Hero timing refinement: give each message enough time to be read. */
.t9-hero-kicker {
    animation-delay: 300ms;
}

.t9-hero-kicker::before {
    content: none;
}

.t9-hero-badge {
    animation-delay: 1400ms;
}

.t9-hero-title span:nth-child(1) {
    animation-delay: 2500ms;
}

.t9-hero-title span:nth-child(2) {
    animation-delay: 3500ms;
}

.t9-hero-title span:nth-child(3) {
    animation-delay: 4500ms;
}

.t9-hero-summary {
    animation-delay: 5600ms;
}

@keyframes t9HeroMobileFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-42px);
    }

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

@keyframes t9HeroMobileFromRight {
    0% {
        opacity: 0;
        transform: translateX(42px);
    }

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

@media (max-width: 640px) {
    .t9-hero-copy {
        justify-items: center;
        text-align: center;
    }

    .t9-hero-kicker {
        justify-content: center;
        width: 100%;
        animation: t9HeroMobileFromLeft 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 300ms forwards;
    }

    .t9-hero-badge {
        justify-content: center;
        animation: t9HeroMobileFromRight 950ms cubic-bezier(0.2, 0.8, 0.2, 1) 1400ms forwards;
    }

    .t9-hero-title {
        margin-top: 8px;
        text-align: center;
    }
}

/* Keep homepage hero from finishing behind the intro video splash. */
body.site-intro-open .t9-hero-kicker,
body.site-intro-open .t9-hero-badge,
body.site-intro-open .t9-hero-title span,
body.site-intro-open .t9-hero-summary,
body.site-intro-open .t9-hero-journey {
    opacity: 0 !important;
    animation: none !important;
}

body.site-intro-open .t9-hero-kicker,
body.site-intro-open .t9-hero-badge,
body.site-intro-open .t9-hero-summary {
    transform: translateY(16px) !important;
}

body.site-intro-open .t9-hero-title span {
    transform: translateY(26px) !important;
    clip-path: inset(0 0 100% 0) !important;
}
