* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1b2430;
    background: #f5f7fb;
}

a {
    color: #195bb5;
    text-decoration: none;
}

.admin-login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eef4ff, #f8fbf7);
}

.login-panel {
    width: min(420px, calc(100vw - 32px));
    padding: 32px;
    background: #fff;
    border: 1px solid #dde5f0;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(20, 35, 55, 0.12);
}

.login-panel h1,
.admin-main h1 {
    margin: 0 0 24px;
    font-size: 24px;
}

.form-stack {
    display: grid;
    gap: 16px;
}

.form-stack label {
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #ccd6e3;
    border-radius: 6px;
    font: inherit;
}

button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    background: #173f75;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.button-link.secondary {
    color: #2f4965;
    background: #e8eef5;
}

.alert {
    margin: 0;
    padding: 10px 12px;
    border-radius: 6px;
    color: #8a1f11;
    background: #fff0ed;
}

.muted {
    color: #687589;
}

.admin-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: #fff;
    border-bottom: 1px solid #dfe6ef;
}

.admin-header nav {
    display: flex;
    gap: 18px;
}

.admin-main {
    width: min(1080px, calc(100vw - 32px));
    margin: 32px auto;
}

.admin-main.narrow {
    width: min(560px, calc(100vw - 32px));
}

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

.filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr)) auto auto;
    gap: 12px;
    align-items: end;
    margin: 22px 0;
    padding: 16px;
    background: #fff;
    border: 1px solid #dde5f0;
    border-radius: 8px;
}

.filter-bar label {
    display: grid;
    gap: 8px;
    color: #536174;
    font-size: 13px;
    font-weight: 700;
}

.stat {
    padding: 20px;
    background: #fff;
    border: 1px solid #dde5f0;
    border-radius: 8px;
}

.stat span {
    display: block;
    color: #687589;
}

.stat strong {
    display: block;
    margin-top: 10px;
    font-size: 30px;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #dde5f0;
    border-radius: 8px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #e7edf5;
    text-align: left;
}

.data-table th {
    color: #536174;
    background: #f8fafc;
    font-size: 13px;
}

@media (max-width: 720px) {
    .admin-header,
    .page-title {
        align-items: flex-start;
        flex-direction: column;
        height: auto;
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }
}

.verify-page,
.product-page {
    min-height: 100vh;
}

.verify-page {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 22px;
    color: #1e3148;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.45) 0 1px, transparent 1px 84px),
        linear-gradient(30deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 112px),
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.72), transparent 28%),
        linear-gradient(155deg, #dfeaf4 0%, #a9bfd5 48%, #7897b5 100%);
}

.verify-warning {
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px 84px),
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.58), transparent 28%),
        linear-gradient(155deg, #edf0f3 0%, #c4cbd3 48%, #8999aa 100%);
}

.verify-invalid {
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.34) 0 1px, transparent 1px 84px),
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.5), transparent 28%),
        linear-gradient(155deg, #eceff2 0%, #b9c0c9 48%, #747f8f 100%);
}

.verify-pass {
    position: relative;
    width: min(480px, 100%);
    display: grid;
    justify-items: center;
    gap: 18px;
    margin: 0 auto;
}

.verify-pass::before,
.verify-pass::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: rotate(45deg);
}

.verify-pass::before {
    width: 310px;
    height: 310px;
    top: -72px;
    opacity: 0.34;
}

.verify-pass::after {
    width: 210px;
    height: 210px;
    right: -72px;
    bottom: -36px;
    opacity: 0.22;
}

.ice-mark {
    width: 106px;
    height: 106px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(229, 241, 251, 0.56)),
        rgba(255, 255, 255, 0.42);
    box-shadow:
        0 20px 50px rgba(58, 84, 112, 0.22),
        inset 0 0 0 10px rgba(255, 255, 255, 0.28);
}

.ice-mark span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #2d7c8c;
    font-size: 34px;
    font-weight: 900;
}

.alert-mark span {
    background: #a76b27;
}

.invalid-mark span {
    background: #8b4a54;
}

.pass-sheet {
    width: 100%;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.64);
    box-shadow:
        0 24px 58px rgba(48, 72, 98, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(18px);
}

.pass-label {
    margin: 0;
    color: #52718d;
    font-size: 12px;
    font-weight: 900;
}

.pass-sheet h1 {
    margin: 10px 0 12px;
    color: #1d3147;
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.1;
}

.pass-text {
    margin: 0;
    color: #4d6379;
    font-size: 16px;
    line-height: 1.7;
}

.serial-row {
    display: grid;
    gap: 10px;
    margin-top: 28px;
    padding: 16px;
    border: 1px solid rgba(70, 105, 136, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.58), rgba(239, 247, 252, 0.72)),
        rgba(255, 255, 255, 0.4);
}

.serial-row span,
.pass-meta span {
    color: #6a8198;
    font-size: 13px;
    font-weight: 800;
}

.serial-row strong {
    margin: 0;
    color: #1a3148;
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.pass-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed rgba(74, 107, 139, 0.32);
}

.pass-meta b {
    color: #263d55;
    font-size: 14px;
}

.pass-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #203c5c, #2d7c8c);
    box-shadow: 0 18px 34px rgba(38, 89, 117, 0.26);
    font-size: 18px;
    font-weight: 900;
}

.eyebrow {
    margin: 0;
    color: #536174;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.product-page {
    color: #203144;
    background:
        linear-gradient(180deg, #eef5fb 0%, #f8fbfd 38%, #eaf1f6 100%);
}

.product-h5 {
    width: min(480px, 100%);
    margin: 0 auto;
    padding-bottom: 92px;
}

.h5-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 16px;
}

.h5-carousel {
    position: relative;
    width: 100%;
    height: clamp(520px, calc(100svh - 40px), 760px);
    overflow: hidden;
    touch-action: pan-y;
    border-radius: 24px;
    background: #05080b;
    box-shadow: 0 22px 54px rgba(54, 75, 97, 0.2);
    cursor: grab;
}

.h5-carousel.is-dragging {
    cursor: grabbing;
}

.h5-carousel:focus-visible {
    outline: 3px solid rgba(45, 124, 140, 0.65);
    outline-offset: 4px;
}

.h5-carousel figure {
    display: flex;
    align-items: flex-end;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: scale(1.012);
    transition: opacity 620ms ease, transform 900ms cubic-bezier(0.2, 0.72, 0.2, 1), visibility 0s linear 620ms;
    pointer-events: none;
}

.h5-carousel figure.is-active {
    z-index: 1;
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    transition-delay: 0s;
    pointer-events: auto;
}

.h5-carousel img,
.video-cover img,
.report-grid img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.h5-carousel img {
    position: absolute;
    inset: 0;
    opacity: 1;
    object-fit: contain;
    filter: none;
    transform: none;
    animation: none;
}

.slide-material img {
    object-position: 50% 50%;
}

.slide-warmth img {
    object-position: 50% 50%;
}

.slide-craft img {
    object-position: 50% 50%;
}

.slide-copy {
    position: relative;
    z-index: 2;
    padding: 0 22px 30px;
    color: #fff;
    max-width: 460px;
}

.slide-copy span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(14, 31, 48, 0.34);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.slide-copy strong {
    display: block;
    font-size: clamp(30px, 8vw, 44px);
    line-height: 1.08;
}

.slide-copy p {
    max-width: 14em;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.carousel-controls {
    position: absolute;
    z-index: 4;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255, 255, 255, 0.84);
    pointer-events: none;
}

.carousel-count {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.carousel-count b {
    color: #fff;
    font-size: 18px;
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 7px;
    pointer-events: auto;
}

.carousel-dot {
    width: 26px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 260ms ease, background-color 260ms ease;
}

.carousel-dot.is-active {
    width: 46px;
    background: #fff;
}

@keyframes heroFloat {
    from {
        transform: scale(1.03) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1.08) translate3d(0, -8px, 0);
    }
}

.hero-copy {
    margin: -36px 18px 0;
    position: relative;
    z-index: 1;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 44px rgba(53, 76, 100, 0.18);
    backdrop-filter: blur(18px);
}

.hero-copy p,
.section-head p {
    margin: 0;
    color: #668092;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 10px 0;
    color: #1f3146;
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.1;
}

.hero-copy span {
    color: #52687a;
    line-height: 1.7;
}

.h5-section {
    margin: 0;
    padding: 34px 24px 38px;
    border-top: 1px solid #e2e9ec;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.video-section,
.benefits-section {
    background: #f2f6f5;
}

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

.section-head h2 {
    margin: 0;
    color: #1f3146;
    font-size: 24px;
}

.video-cover {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16 / 9;
    background: #080c0e;
    box-shadow: 0 14px 32px rgba(19, 38, 48, 0.16);
}

.product-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #080c0e;
}

.video-play-fallback {
    position: absolute;
    inset: 0;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    color: #fff;
    background: rgba(13, 28, 34, 0.72);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: opacity 180ms ease, transform 180ms ease;
}

.video-play-fallback span {
    margin-left: 3px;
    font-size: 22px;
    line-height: 1;
}

.video-cover.is-playing .video-play-fallback,
.video-cover.has-error .video-play-fallback {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.video-open-link {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 6px;
    color: #fff;
    background: rgba(20, 40, 48, 0.88);
    font-size: 13px;
    font-weight: 800;
}

.video-open-link[hidden] {
    display: none;
}

.play-mark {
    position: absolute;
    inset: 0;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: auto;
    border-radius: 50%;
    color: #fff;
    background: rgba(22, 43, 65, 0.64);
    font-size: 24px;
    box-shadow: 0 16px 36px rgba(24, 45, 65, 0.24);
}

.story-layout {
    display: grid;
    gap: 20px;
}

.story-layout img,
.benefit-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.benefit-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: auto;
    border-radius: 8px;
    background: #050607;
}

.story-layout strong {
    display: block;
    margin-bottom: 8px;
    color: #1f3146;
    font-size: 20px;
}

.story-layout p,
.care-list p,
.benefit-grid span {
    margin: 0;
    color: #52687a;
    line-height: 1.7;
}

.benefit-grid,
.care-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid #d8e3e4;
    border-bottom: 1px solid #d8e3e4;
}

.care-list article {
    padding: 16px;
    border: 1px solid #dce6ee;
    border-radius: 8px;
    background: #f7fbfd;
}

.benefit-grid article {
    min-width: 0;
    padding: 17px 14px;
    border: 0;
    background: transparent;
}

.benefit-grid article:nth-child(odd) {
    border-right: 1px solid #d8e3e4;
}

.benefit-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid #d8e3e4;
}

.benefit-grid b,
.care-list b {
    display: block;
    margin-bottom: 8px;
    color: #203144;
    font-size: 17px;
}

.care-list article {
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 12px;
}

.care-list span {
    grid-row: span 2;
    color: #2d7c8c;
    font-weight: 900;
}

.care-warning {
    margin: 16px 0 0;
    padding: 14px 16px;
    border-left: 4px solid #c9863b;
    border-radius: 6px;
    color: #70441f;
    background: #fff4e6;
    font-size: 14px;
    line-height: 1.65;
}

.care-warning strong {
    color: #9b571f;
}

.report-grid {
    display: grid;
    gap: 14px;
}

.report-grid a {
    display: block;
    overflow: hidden;
    border: 1px solid #dce6ee;
    border-radius: 8px;
    background: #fff;
}

.report-grid img {
    height: auto;
}

.report-cta {
    display: grid;
    gap: 14px;
}

.report-cta p {
    margin: 0;
    color: #52687a;
    line-height: 1.7;
}

.report-fab {
    position: fixed;
    left: max(18px, calc((100vw - 480px) / 2 + 18px));
    right: max(18px, calc((100vw - 480px) / 2 + 18px));
    bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #203c5c, #2d7c8c);
    box-shadow: 0 16px 34px rgba(29, 71, 97, 0.28);
    font-size: 18px;
    font-weight: 900;
    z-index: 20;
}

.report-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: end center;
}

.report-modal[hidden] {
    display: none !important;
}

.report-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 23, 33, 0.56);
}

.report-modal-panel {
    position: relative;
    width: min(720px, calc(100vw - 20px));
    max-height: calc(100vh - 26px);
    margin: 0 10px 10px;
    padding: 18px;
    overflow: auto;
    border-radius: 8px 8px 12px 12px;
    background: #f6f9fc;
    box-shadow: 0 24px 70px rgba(7, 19, 32, 0.3);
}

.report-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.report-modal-head p {
    margin: 0 0 4px;
    color: #72859a;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.report-modal-head h3 {
    margin: 0;
    color: #1f3146;
    font-size: 20px;
}

.report-modal-close {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #d6e0e8;
    border-radius: 8px;
    color: #2a3a4b;
    background: #fff;
    font-weight: 800;
}

.report-modal-body {
    display: grid;
    gap: 14px;
}

.report-focus-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1190 / 1684;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #d8e1e9;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(35, 61, 79, 0.14);
    user-select: none;
}

.report-focus-base,
.report-water-film {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.report-focus-base {
    object-fit: fill;
    filter: brightness(0.99) saturate(0.98);
}

.report-water-film {
    z-index: 1;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.1), rgba(223, 239, 241, 0.055) 47%, rgba(255, 255, 255, 0.12)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 2px, rgba(105, 155, 166, 0.018) 2px 4px);
    box-shadow: inset 0 0 32px rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.report-lens {
    position: absolute;
    z-index: 3;
    width: clamp(220px, 62vw, 400px);
    aspect-ratio: 1;
    border: 8px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 22px rgba(19, 49, 66, 0.24), 0 0 0 1px rgba(66, 109, 124, 0.34);
    cursor: grab;
    transform: translate(-50%, -50%);
    touch-action: none;
    overflow: hidden;
}

.report-lens.is-dragging {
    cursor: grabbing;
    box-shadow: 0 14px 28px rgba(19, 49, 66, 0.32), 0 0 0 1px rgba(66, 109, 124, 0.46);
}

.report-lens:focus-visible {
    outline: 3px solid #2d7c8c;
    outline-offset: 5px;
}

.report-lens-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
}

.report-lens-ring {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.34);
    pointer-events: none;
}

.report-source-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.report-source-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid #cfdde5;
    border-radius: 8px;
    color: #315366;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

body.report-modal-open {
    overflow: hidden;
}

@media (min-width: 860px) {
    .product-h5 {
        width: min(760px, 100%);
    }

    .h5-carousel {
        height: min(780px, calc(100svh - 44px));
    }

    .report-modal {
        place-items: center;
    }

    .report-modal-panel {
        margin: 10px;
        border-radius: 12px;
    }
}

@media (max-width: 420px) {
    .h5-hero {
        padding: 12px;
    }

    .h5-carousel {
        height: clamp(520px, calc(100svh - 28px), 760px);
        border-radius: 20px;
    }

    .h5-section {
        padding: 18px;
    }

    .report-fab {
        left: 18px;
        right: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .h5-carousel figure,
    .h5-carousel img,
    .carousel-dot {
        animation: none;
        transition: none;
    }
}
