:root {
    --bg: #fff8f3;
    --bg-soft: #fffdfb;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: #ffffff;
    --ink: #312c35;
    --muted: #716a74;
    --line: rgba(74, 58, 76, 0.12);
    --coral: #ff7f70;
    --coral-dark: #df5f54;
    --peach: #ffd6bf;
    --lilac: #c8b8ff;
    --lilac-dark: #765fd1;
    --sage: #c8dfcf;
    --sage-dark: #46715a;
    --sun: #ffdb8b;
    --danger: #c84545;
    --success: #2e7b55;
    --shadow-sm: 0 8px 24px rgba(83, 55, 75, 0.08);
    --shadow: 0 18px 55px rgba(83, 55, 75, 0.13);
    --radius-sm: 14px;
    --radius: 22px;
    --radius-lg: 32px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 0 0, rgba(255, 214, 191, 0.75), transparent 28rem),
        radial-gradient(circle at 100% 8%, rgba(200, 184, 255, 0.45), transparent 26rem),
        linear-gradient(180deg, var(--bg-soft), var(--bg));
    font-family: "Avenir Next", "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    width: 18rem;
    height: 18rem;
    border-radius: 45% 55% 60% 40%;
    filter: blur(1px);
    opacity: 0.35;
    pointer-events: none;
}

body::before {
    right: -8rem;
    bottom: 8%;
    background: var(--sage);
    transform: rotate(18deg);
}

body::after {
    left: -10rem;
    bottom: -4rem;
    background: var(--sun);
    transform: rotate(-14deg);
}

img,
video,
canvas {
    max-width: 100%;
}

a {
    color: var(--coral-dark);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--lilac-dark);
}

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

button,
.button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0.72rem 1.12rem;
    border: 0;
    border-radius: 999px;
    background: var(--coral);
    color: #fff;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 9px 20px rgba(255, 127, 112, 0.24);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

button:hover,
.button:hover,
.btn:hover {
    transform: translateY(-1px);
    background: var(--coral-dark);
    color: #fff;
    box-shadow: 0 12px 26px rgba(255, 127, 112, 0.3);
}

button:active,
.button:active,
.btn:active {
    transform: translateY(0);
}

button:disabled,
.button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.52;
    transform: none;
    box-shadow: none;
}

.btn-secondary,
button.secondary {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover,
button.secondary:hover {
    color: var(--ink);
    background: #fffaf7;
}

.btn-soft {
    color: var(--ink);
    background: rgba(200, 184, 255, 0.32);
    box-shadow: none;
}

.btn-soft:hover {
    color: var(--ink);
    background: rgba(200, 184, 255, 0.55);
}

.btn-danger {
    background: #fff0f0;
    color: var(--danger);
    box-shadow: none;
}

.btn-danger:hover {
    background: #ffe2e2;
    color: #9d2f2f;
}

.icon-button {
    width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.75rem;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.13;
    letter-spacing: -0.035em;
}

h1 { font-size: clamp(2.55rem, 7vw, 5.6rem); }
h2 { font-size: clamp(1.95rem, 4vw, 3.3rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 2rem); }
h4 { font-size: 1.12rem; }

p {
    margin: 0 0 1rem;
}

small,
.text-muted,
.muted {
    color: var(--muted);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    padding: 0.38rem 0.72rem;
    border: 1px solid rgba(255, 127, 112, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--coral-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(74, 58, 76, 0.08);
    background: rgba(255, 249, 245, 0.82);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    width: min(calc(100% - 2rem), var(--container));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 900;
}

.brand:hover {
    color: var(--ink);
}

.brand__mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 15px 15px 15px 5px;
    background: linear-gradient(145deg, var(--coral), #ff9d82);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-style: italic;
    box-shadow: 0 10px 24px rgba(255, 127, 112, 0.28);
    transform: rotate(-4deg);
}

.brand__text {
    display: grid;
    line-height: 1;
}

.brand__name {
    font-size: 1.06rem;
    letter-spacing: -0.03em;
}

.brand__tagline {
    margin-top: 0.26rem;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.nav-toggle {
    display: none;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
}

.nav-toggle:hover {
    color: var(--ink);
    background: #fff;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.site-nav a {
    padding: 0.58rem 0.78rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition: background 150ms ease, color 150ms ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.88);
}

.site-nav a.nav-cta {
    color: #fff;
    background: var(--ink);
}

.site-nav a.nav-cta:hover,
.site-nav a.nav-cta.active {
    color: #fff;
    background: #17141a;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: 0.25rem;
    padding: 0.5rem 0.72rem;
    border-radius: 999px;
    background: rgba(200, 184, 255, 0.25);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 800;
}

.page-shell {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 4.5rem) 0 5rem;
}

body.page-index .page-shell {
    padding-top: clamp(1.5rem, 3vw, 3rem);
}

body.event-flow .page-shell,
body.auth-page .page-shell {
    width: min(calc(100% - 2rem), 980px);
}

.site-footer {
    padding: 2.5rem 1rem 3rem;
    color: var(--muted);
    text-align: center;
}

.site-footer__inner {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.flash {
    display: flex;
    align-items: flex-start;
    gap: 0.72rem;
    margin-bottom: 1.2rem;
    padding: 0.92rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: var(--shadow-sm);
    font-weight: 700;
}

.flash--success {
    border-color: rgba(46, 123, 85, 0.2);
    color: var(--success);
    background: #f3fff8;
}

.flash--error {
    border-color: rgba(200, 69, 69, 0.2);
    color: var(--danger);
    background: #fff5f5;
}

.error-list {
    display: grid;
    gap: 0.55rem;
    margin: 0 0 1.2rem;
    padding: 0;
    list-style: none;
}

.error-list li {
    padding: 0.82rem 0.95rem;
    border-radius: var(--radius-sm);
    color: var(--danger);
    background: #fff3f3;
    border: 1px solid rgba(200, 69, 69, 0.17);
    font-weight: 750;
}

.card {
    border: 1px solid rgba(74, 58, 76, 0.09);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.card--padded {
    padding: clamp(1.2rem, 3vw, 2rem);
}

.card--accent {
    background:
        linear-gradient(135deg, rgba(255, 214, 191, 0.5), rgba(255,255,255,0.92) 55%),
        #fff;
}

.card--lilac {
    background: linear-gradient(145deg, rgba(200, 184, 255, 0.45), rgba(255,255,255,0.93));
}

.card--sage {
    background: linear-gradient(145deg, rgba(200, 223, 207, 0.52), rgba(255,255,255,0.93));
}

.section {
    margin-top: clamp(3rem, 7vw, 6rem);
}

.section-heading {
    max-width: 670px;
    margin-bottom: 1.5rem;
}

.section-heading p {
    color: var(--muted);
    font-size: 1.04rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    min-height: min(690px, calc(100vh - 90px));
}

.hero__copy {
    position: relative;
    z-index: 2;
}

.hero__copy h1 span {
    position: relative;
    white-space: nowrap;
}

.hero__copy h1 span::after {
    content: "";
    position: absolute;
    left: 2%;
    right: -2%;
    bottom: 0.03em;
    z-index: -1;
    height: 0.23em;
    border-radius: 99px;
    background: var(--sun);
    transform: rotate(-1deg);
}

.hero__lead {
    max-width: 650px;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero__actions,
.action-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero__meta {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 750;
}

.hero__visual {
    position: relative;
    min-height: 510px;
}

.photo-stack {
    position: absolute;
    inset: 1rem 0 0;
}

.mock-photo {
    position: absolute;
    overflow: hidden;
    border: 10px solid #fff;
    border-bottom-width: 54px;
    border-radius: 10px;
    background: #ddd;
    box-shadow: var(--shadow);
}

.mock-photo::after {
    content: attr(data-label);
    position: absolute;
    left: 0;
    right: 0;
    bottom: -39px;
    color: var(--ink);
    font-family: Georgia, serif;
    font-size: 0.98rem;
    font-style: italic;
    text-align: center;
}

.mock-photo--one {
    left: 3%;
    top: 13%;
    width: 54%;
    aspect-ratio: 4 / 5;
    transform: rotate(-8deg);
    background:
        radial-gradient(circle at 48% 42%, #66453d 0 8%, transparent 8.5%),
        radial-gradient(circle at 49% 52%, #efb5a1 0 19%, transparent 19.5%),
        radial-gradient(circle at 47% 80%, #f7a995 0 26%, transparent 26.5%),
        linear-gradient(145deg, #ffd3be, #cfb9ff 58%, #8ec2a7);
}

.mock-photo--two {
    right: 2%;
    top: 0;
    width: 55%;
    aspect-ratio: 4 / 5;
    transform: rotate(7deg);
    background:
        radial-gradient(circle at 36% 43%, #6d5144 0 8%, transparent 8.5%),
        radial-gradient(circle at 65% 42%, #4f392f 0 8%, transparent 8.5%),
        radial-gradient(circle at 38% 55%, #f2bd9e 0 16%, transparent 16.5%),
        radial-gradient(circle at 66% 54%, #dfad8f 0 16%, transparent 16.5%),
        linear-gradient(150deg, #f6d694, #cce0d2 58%, #d8c8ff);
}

.mock-photo--three {
    left: 25%;
    bottom: 0;
    width: 57%;
    aspect-ratio: 5 / 4;
    transform: rotate(2deg);
    background:
        radial-gradient(circle at 22% 60%, #ff997e 0 6%, transparent 6.5%),
        radial-gradient(circle at 41% 42%, #ffd477 0 8%, transparent 8.5%),
        radial-gradient(circle at 64% 58%, #c7a9ff 0 8%, transparent 8.5%),
        radial-gradient(circle at 80% 37%, #86b99d 0 7%, transparent 7.5%),
        linear-gradient(135deg, #fff0e8, #ffd8c1 42%, #e7ddff);
}

.floating-note {
    position: absolute;
    z-index: 5;
    padding: 0.7rem 0.9rem;
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    font-size: 0.82rem;
    font-weight: 850;
    transform: rotate(-3deg);
}

.floating-note--top {
    right: 0;
    top: 6%;
}

.floating-note--bottom {
    left: 1%;
    bottom: 11%;
    transform: rotate(3deg);
}

.feature-grid,
.steps-grid,
.stats-grid,
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card,
.step-card,
.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-sm);
}

.feature-card::before,
.step-card::before {
    content: "";
    position: absolute;
    right: -2rem;
    top: -2rem;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: rgba(255, 214, 191, 0.52);
}

.feature-card:nth-child(2)::before,
.step-card:nth-child(2)::before { background: rgba(200, 184, 255, 0.45); }
.feature-card:nth-child(3)::before,
.step-card:nth-child(3)::before { background: rgba(200, 223, 207, 0.6); }

.feature-icon,
.step-number {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    font-size: 1.15rem;
    font-weight: 900;
}

.feature-card p,
.step-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.event-pills {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.event-pill {
    padding: 0.62rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(83, 55, 75, 0.05);
    font-size: 0.88rem;
    font-weight: 800;
}

.photo-counter {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(1.4rem, 4vw, 3rem);
    padding: clamp(1.4rem, 4vw, 2.4rem);
    border: 1px solid rgba(74, 58, 76, 0.1);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 7% 15%, rgba(255, 214, 191, 0.72), transparent 13rem),
        radial-gradient(circle at 95% 85%, rgba(200, 184, 255, 0.48), transparent 14rem),
        rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow-sm);
}

.photo-counter::after {
    content: "✦";
    position: absolute;
    right: 2%;
    top: -0.42em;
    color: rgba(255, 127, 112, 0.12);
    font-family: Georgia, serif;
    font-size: clamp(7rem, 18vw, 13rem);
    line-height: 1;
    pointer-events: none;
}

.photo-counter__heading,
.photo-counter__grid {
    position: relative;
    z-index: 1;
}

.photo-counter__heading h2 {
    margin-bottom: 0.55rem;
}

.photo-counter__heading p {
    margin-bottom: 0;
    color: var(--muted);
}

.photo-counter__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.photo-counter__card {
    min-width: 0;
    padding: 1rem 0.85rem;
    border: 1px solid rgba(74, 58, 76, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 25px rgba(83, 55, 75, 0.07);
    text-align: center;
    transform: rotate(-1deg);
}

.photo-counter__card:nth-child(2) {
    transform: translateY(-0.5rem) rotate(1deg);
}

.photo-counter__card:nth-child(3) {
    transform: rotate(-0.6deg);
}

.photo-counter__card--all { background: rgba(255, 214, 191, 0.72); }
.photo-counter__card--pro { background: rgba(200, 184, 255, 0.58); }
.photo-counter__card--trial { background: rgba(255, 219, 139, 0.6); }

.photo-counter__icon {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.photo-counter__card strong {
    display: block;
    overflow-wrap: anywhere;
    font-family: Georgia, serif;
    font-size: clamp(1.55rem, 3.6vw, 2.55rem);
    line-height: 1.05;
}

.photo-counter__card > span:last-child {
    display: block;
    margin-top: 0.35rem;
    color: rgba(49, 44, 53, 0.72);
    font-size: 0.76rem;
    font-weight: 850;
}

@media (max-width: 820px) {
    .photo-counter {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .photo-counter__grid {
        grid-template-columns: 1fr;
    }

    .photo-counter__card,
    .photo-counter__card:nth-child(2),
    .photo-counter__card:nth-child(3) {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 0.8rem;
        align-items: center;
        padding: 0.9rem 1rem;
        text-align: left;
        transform: none;
    }

    .photo-counter__icon {
        grid-row: 1 / 3;
        margin: 0;
        font-size: 1.5rem;
    }

    .photo-counter__card strong {
        font-size: 1.65rem;
    }

    .photo-counter__card > span:last-child {
        margin-top: 0.1rem;
    }
}

.auth-wrap {
    min-height: calc(100vh - 190px);
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(100%, 900px);
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

.auth-card__aside {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    padding: clamp(1.6rem, 4vw, 3rem);
    background:
        radial-gradient(circle at 72% 16%, rgba(255,255,255,0.55), transparent 7rem),
        linear-gradient(150deg, #ffceb8, #cbbcff 58%, #bddbc8);
}

.auth-card__aside::after {
    content: "";
    position: absolute;
    left: 13%;
    right: 13%;
    bottom: -10%;
    height: 50%;
    border: 12px solid rgba(255,255,255,0.8);
    border-bottom-width: 58px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 32% 48%, #f7ad95 0 10%, transparent 10.5%),
        radial-gradient(circle at 67% 48%, #edbc9e 0 10%, transparent 10.5%),
        linear-gradient(145deg, #ffe3d4, #c9baff 55%, #8cb69e);
    box-shadow: var(--shadow);
    transform: rotate(-4deg);
}

.auth-card__aside p {
    max-width: 330px;
    color: rgba(49, 44, 53, 0.72);
}

.auth-card__main {
    padding: clamp(1.6rem, 5vw, 3.6rem);
}

.form-stack {
    display: grid;
    gap: 1rem;
}

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

.form-group,
form > p {
    margin: 0 0 1rem;
}

label {
    display: block;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 820;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    margin-top: 0.42rem;
    padding: 0.76rem 0.88rem;
    border: 1px solid rgba(74, 58, 76, 0.16);
    border-radius: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(83, 55, 75, 0.035);
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(118, 95, 209, 0.6);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(200, 184, 255, 0.25);
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-height: 0;
    margin-right: 0.5rem;
}

input[type="file"] {
    padding: 0.55rem;
    background: #fff;
}

input[type="file"]::file-selector-button {
    margin-right: 0.75rem;
    padding: 0.62rem 0.8rem;
    border: 0;
    border-radius: 10px;
    background: rgba(200, 184, 255, 0.35);
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
}

.help-text {
    margin-top: 0.4rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.divider {
    height: 1px;
    margin: 2rem 0;
    border: 0;
    background: var(--line);
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.page-heading p {
    max-width: 660px;
    margin-bottom: 0;
    color: var(--muted);
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.4rem, 4vw, 2.7rem);
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 85% 25%, rgba(255,255,255,0.65), transparent 8rem),
        linear-gradient(135deg, #ffd5c1, #eee5ff 55%, #d7eadc);
    box-shadow: var(--shadow-sm);
}

.dashboard-hero::after {
    content: "✦";
    position: absolute;
    right: 5%;
    bottom: -0.2em;
    color: rgba(255,255,255,0.52);
    font-size: clamp(7rem, 20vw, 14rem);
    line-height: 1;
    transform: rotate(8deg);
}

.dashboard-hero > * {
    position: relative;
    z-index: 1;
}

.dashboard-hero p {
    max-width: 680px;
    color: rgba(49,44,53,0.72);
}

.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
}

.stat-card {
    min-height: auto;
    padding: 1.05rem 1.15rem;
}

.stat-card__label {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-card__value {
    display: block;
    margin-top: 0.15rem;
    font-family: Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    font-weight: 700;
    line-height: 1.1;
}

.dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
}

.dashboard-panel {
    padding: clamp(1.2rem, 3vw, 1.7rem);
}

.dashboard-panel__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    background: rgba(200, 184, 255, 0.34);
    color: var(--lilac-dark);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge--trial { background: rgba(255, 219, 139, 0.45); color: #8a6014; }
.badge--pro { background: rgba(200, 223, 207, 0.55); color: var(--sage-dark); }
.badge--active { background: #e8fbef; color: var(--success); }
.badge--inactive { background: #f1f0f2; color: var(--muted); }

.code-input {
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.1rem;
    font-weight: 850;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.table-card {
    overflow: hidden;
    margin-top: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.92);
    box-shadow: var(--shadow-sm);
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    border: 0 !important;
    background: transparent;
}

th,
td {
    padding: 0.9rem 0.9rem;
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    text-align: left;
    vertical-align: top;
}

th {
    background: #fffaf7;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

tbody tr:hover {
    background: rgba(255, 248, 243, 0.58);
}

tbody tr:last-child td {
    border-bottom: 0 !important;
}

td a {
    font-weight: 800;
}

.empty-state {
    padding: 2.5rem 1.2rem;
    color: var(--muted);
    text-align: center;
}

.empty-state__icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 0.8rem;
    border-radius: 20px;
    background: rgba(200, 184, 255, 0.28);
    font-size: 1.5rem;
}

.event-entry {
    min-height: calc(100vh - 200px);
    display: grid;
    place-items: center;
}

.event-entry__card {
    width: min(100%, 650px);
    padding: clamp(1.4rem, 5vw, 3rem);
    text-align: center;
}

.event-entry__sparkles {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    border-radius: 26px 26px 26px 8px;
    background: linear-gradient(145deg, var(--coral), #ffb08f);
    color: #fff;
    font-size: 1.7rem;
    box-shadow: 0 14px 32px rgba(255,127,112,0.3);
    transform: rotate(-5deg);
}

.event-entry__card form {
    max-width: 430px;
    margin: 1.6rem auto 0;
    text-align: left;
}

.event-meta-row {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.capture-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: start;
    gap: 1rem;
}

.camera-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #17151a;
    box-shadow: var(--shadow);
}

.camera-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1rem 1.15rem;
    color: #fff;
}

.camera-card__viewport {
    position: relative;
    aspect-ratio: 3 / 4;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,127,112,0.18), rgba(200,184,255,0.18)),
        #0e0d10;
}

.camera-card__viewport video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 2rem;
    color: rgba(255,255,255,0.62);
    text-align: center;
    pointer-events: none;
}

.camera-card__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    padding: 1rem;
}

.camera-card__controls button {
    min-height: 48px;
}

.camera-card__controls .capture-button {
    min-width: 180px;
}

.capture-side {
    display: grid;
    gap: 1rem;
}

.upload-status {
    min-height: 1.5rem;
    margin: 0.8rem 0 0;
    font-weight: 800;
}

.zoom-control {
    display: none;
    margin-top: 0.8rem;
}

.zoom-control input {
    min-height: 0;
}

.recent-photo img {
    width: 100%;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.gallery-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: clamp(1.3rem, 4vw, 3rem);
    align-items: center;
    padding: clamp(1.4rem, 4vw, 2.6rem);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 85% 18%, rgba(255,255,255,0.55), transparent 7rem),
        linear-gradient(135deg, #ffd4bf, #ebe2ff 55%, #d5e9db);
    box-shadow: var(--shadow-sm);
}

.gallery-hero p {
    color: rgba(49,44,53,0.72);
}

.qr-card {
    justify-self: center;
    padding: 1rem;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.qr-card img {
    display: block;
    width: min(260px, 64vw);
    aspect-ratio: 1;
}

.gallery-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1rem 0 1.3rem;
}

.gallery-stat {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,0.86);
    box-shadow: var(--shadow-sm);
}

.gallery-stat__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
    background: rgba(255,214,191,0.6);
}

.gallery-stat strong {
    display: block;
    font-size: 1.15rem;
}

.gallery-stat span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.gallery-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--success);
    font-size: 0.86rem;
    font-weight: 850;
}

.gallery-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px rgba(46,123,85,0.12);
}

.gallery-grid {
    columns: 4 230px;
    column-gap: 1rem;
    margin-top: 1rem;
}

.gallery-item {
    break-inside: avoid;
    overflow: hidden;
    margin: 0 0 1rem;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.gallery-item a {
    display: block;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 250ms ease;
}

.gallery-item:hover img {
    transform: scale(1.018);
}

.gallery-item__meta {
    padding: 0.7rem 0.85rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.admin-shell h1,
.admin-shell h2,
.admin-shell h3 {
    letter-spacing: -0.025em;
}

.admin-shell .page-shell > h2:first-child,
.admin-shell .page-shell > h1:first-child {
    margin-bottom: 1.3rem;
}

.admin-shell form:not(.inline-form),
.admin-shell section {
    margin-bottom: 1.3rem;
}

.admin-shell form:not(.inline-form) {
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.88);
    box-shadow: var(--shadow-sm);
}

.admin-shell ul {
    padding-left: 1.25rem;
}

.admin-shell hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.admin-shell table {
    margin-top: 1rem;
}

.admin-shell .page-shell > table,
.client-shell .page-shell > table {
    display: block;
    overflow-x: auto;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.inline-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.list-clean {
    margin: 0;
    padding: 0;
    list-style: none;
}

.stack {
    display: grid;
    gap: 1rem;
}

.center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 980px) {
    .site-header__inner {
        min-height: 66px;
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .site-nav {
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: calc(100% + 0.55rem);
        display: none;
        align-items: stretch;
        padding: 0.65rem;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(255,255,255,0.97);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: grid;
    }

    .site-nav a,
    .user-chip {
        justify-content: flex-start;
        margin: 0;
        border-radius: 12px;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 1.5rem;
    }

    .hero__visual {
        min-height: 480px;
    }

    .capture-layout,
    .gallery-hero {
        grid-template-columns: 1fr;
    }

    .gallery-hero {
        text-align: center;
    }

    .gallery-hero .action-row {
        justify-content: center;
    }

    .dashboard-grid,
    .feature-grid,
    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }

    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-card__aside {
        min-height: 260px;
    }

    .auth-card__aside::after {
        left: 55%;
        right: 8%;
        bottom: -55%;
        height: 125%;
    }
}

@media (max-width: 680px) {
    :root {
        --radius-lg: 26px;
    }

    .page-shell {
        width: min(calc(100% - 1.1rem), var(--container));
        padding-top: 1.25rem;
    }

    .brand__tagline {
        display: none;
    }

    .hero__visual {
        min-height: 390px;
    }

    .photo-stack {
        inset-top: 0;
    }

    .mock-photo {
        border-width: 7px;
        border-bottom-width: 42px;
    }

    .mock-photo::after {
        bottom: -31px;
        font-size: 0.82rem;
    }

    .feature-grid,
    .steps-grid,
    .stats-grid,
    .dashboard-grid,
    .gallery-stats,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        gap: 0.65rem;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-card__aside {
        min-height: 220px;
    }

    .auth-card__aside::after {
        display: none;
    }

    .event-entry__card {
        padding: 1.25rem;
    }

    .camera-card__viewport {
        aspect-ratio: 3 / 4.2;
    }

    .gallery-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .gallery-stat {
        justify-content: center;
        padding: 0.72rem 0.45rem;
        text-align: center;
    }

    .gallery-stat__icon {
        display: none;
    }

    .gallery-stat strong {
        font-size: 1rem;
    }

    .gallery-stat span {
        font-size: 0.68rem;
    }

    .action-row > *,
    .hero__actions > * {
        flex: 1 1 180px;
    }

    .site-footer {
        padding-bottom: 2rem;
    }
}

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

.event-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.event-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.15rem, 3vw, 1.65rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.91);
    box-shadow: var(--shadow-sm);
}

.event-card::after {
    content: "";
    position: absolute;
    right: -3rem;
    top: -3rem;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    background: rgba(255,214,191,0.34);
    pointer-events: none;
}

.event-card--trial::after {
    background: rgba(255,219,139,0.38);
}

.event-card__header,
.event-card__footer,
.event-card__metrics {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.event-card__header {
    justify-content: space-between;
    align-items: flex-start;
}

.event-card__title {
    margin: 0.65rem 0 0.35rem;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.event-card__date {
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.event-card__metrics {
    padding: 0.8rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.metric-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 750;
}

.metric-inline strong {
    color: var(--ink);
}

.event-card__footer {
    margin-top: 1rem;
}

.event-card__footer a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.48rem 0.72rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 850;
    text-decoration: none;
}

.event-card__footer a:hover {
    border-color: rgba(255,127,112,0.32);
    background: #fff7f3;
}

.token-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px dashed rgba(118,95,209,0.35);
    border-radius: 18px;
    background: rgba(200,184,255,0.16);
}

.token-card code {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.notice {
    padding: 0.9rem 1rem;
    border-left: 4px solid var(--sun);
    border-radius: 0 14px 14px 0;
    background: rgba(255,219,139,0.18);
    color: var(--muted);
}

@media (max-width: 680px) {
    .token-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .event-card__footer a {
        flex: 1 1 135px;
        justify-content: center;
    }
}

[hidden] { display: none !important; }

.stats-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.admin-summary-card {
    padding: 1.15rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,0.88);
    box-shadow: var(--shadow-sm);
}

.admin-summary-card span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.admin-summary-card strong {
    display: block;
    margin-top: 0.25rem;
    font-family: Georgia, serif;
    font-size: 1.8rem;
}

.admin-shell td form,
.admin-shell th form {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.admin-shell td form input,
.admin-shell td form select {
    min-height: 38px;
    margin: 0;
    padding: 0.45rem 0.6rem;
}

.admin-shell td form button {
    min-height: 38px;
    padding: 0.48rem 0.7rem;
    font-size: 0.78rem;
}

@media (max-width: 900px) {
    .stats-grid--four,
    .admin-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .stats-grid--four,
    .admin-summary-grid {
        grid-template-columns: 1fr;
    }
}

.admin-shell .card form {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
