:root {
    --ink: #111820;
    --muted: #52616d;
    --paper: rgba(255, 255, 255, 0.92);
    --paper-solid: #ffffff;
    --brand-blue: #16aaf5;
    --brand-blue-dark: #087fc1;
    --brand-yellow: #ffd21f;
    --brand-red: #ef2f2f;
    --brand-green: #72b916;
    --brand-black: #111111;
    --pink: var(--brand-blue);
    --coral: var(--brand-blue-dark);
    --orange: var(--brand-yellow);
    --teal: var(--brand-green);
    --blue: var(--brand-blue);
    --purple: var(--brand-black);
    --shadow: 0 22px 60px rgba(7, 90, 139, 0.16);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --max-width: 760px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.95), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(22, 170, 245, 0.28), transparent 28%),
        radial-gradient(circle at 25% 95%, rgba(255, 210, 31, 0.35), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #eaf8ff 38%, #f5fbff 68%, #fff8d9 100%);
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 85%);
}

a {
    color: inherit;
}

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

button, input, textarea {
    font: inherit;
}

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

.page-shell {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: max(14px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom));
    position: relative;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    animation: fadeSlideDown 0.7s ease both;
}

.brand-mini {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
}

.brand-mini img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    filter: drop-shadow(0 8px 18px rgba(8, 127, 193, 0.25));
}

.brand-mini span {
    max-width: 108px;
    font-size: 13px;
}

.top-nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 22px rgba(9, 74, 112, 0.1);
    scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
    display: none;
}

.top-nav a {
    flex: 0 0 auto;
    text-decoration: none;
    font-size: 11px;
    font-weight: 850;
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--muted);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.top-nav a.active,
.top-nav a:hover {
    color: white;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
}

.top-nav a:active,
.brand-mini:active,
.social-button:active,
.theme-tile:active,
.cta-button:active {
    transform: scale(0.96);
}

.hero-card,
.page-hero,
.info-card,
.discount-card,
.sticker-form,
.sticker-showcase,
.sticker-option,
.stats-panel,
.stats-toolbar {
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
    background: var(--paper);
    backdrop-filter: blur(18px);
}

.landing-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 28px 18px 22px;
    border-radius: var(--radius-xl);
    isolation: isolate;
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: -90px -60px auto auto;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 210, 31, 0.42), rgba(22, 170, 245, 0.05) 65%, transparent 70%);
    z-index: -1;
    animation: pulseGlow 3.4s ease-in-out infinite;
}

.landing-hero::after {
    content: "";
    position: absolute;
    inset: auto auto -110px -80px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 170, 245, 0.48), rgba(114, 185, 22, 0.06) 66%, transparent 70%);
    z-index: -1;
    animation: pulseGlow 4s ease-in-out infinite reverse;
}

.logo-stage {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 4px auto 10px;
    display: grid;
    place-items: center;
    perspective: 800px;
}

.main-logo,
.page-logo {
    border-radius: 50%;
    filter: drop-shadow(0 16px 26px rgba(8, 127, 193, 0.25));
}

.main-logo {
    width: 132px;
    animation: logoPop 0.9s cubic-bezier(.2,1.35,.38,1) both, floaty 4.6s ease-in-out infinite 1s;
}

.spark-ring {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px dashed rgba(22, 170, 245, 0.62);
    animation: spin 18s linear infinite;
}

.floating-bits span {
    position: absolute;
    font-size: 24px;
    opacity: 0.85;
    filter: drop-shadow(0 6px 12px rgba(34, 26, 47, 0.12));
    animation: floatBits 4.8s ease-in-out infinite;
}

.floating-bits span:nth-child(1) { top: 24px; left: 20px; animation-delay: 0s; }
.floating-bits span:nth-child(2) { top: 26px; right: 24px; animation-delay: 0.55s; }
.floating-bits span:nth-child(3) { bottom: 92px; left: 22px; animation-delay: 1.1s; }
.floating-bits span:nth-child(4) { bottom: 90px; right: 20px; animation-delay: 1.65s; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 0 8px;
    color: #0876b2;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1, h2, p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(30px, 12vw, 52px);
    line-height: 0.92;
    letter-spacing: -0.07em;
}

.home-text-logo {
    position: relative;
    width: min(100%, 580px);
    margin: -2px auto 0;
    line-height: 0;
    filter: drop-shadow(0 13px 18px rgba(7, 90, 139, 0.18));
    animation: fadeScale 0.7s ease both 0.2s;
}

.home-text-logo picture,
.home-text-logo-image {
    display: block;
    width: 100%;
    height: auto;
}

.home-logo-base {
    clip-path: inset(0 19.9% 0 0);
}

.home-logo-star {
    position: absolute;
    inset: 0;
    pointer-events: none;
    clip-path: inset(31% 9.7% 29% 79.5%);
    transform-origin: 85% 51%;
    will-change: transform, filter;
    animation: starFloatPulse 3.2s ease-in-out infinite 1s;
}

.home-logo-star picture,
.home-logo-star img {
    display: block;
    width: 100%;
    height: auto;
}

.intro-line {
    margin: 18px auto 22px;
    max-width: 520px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.45;
    animation: fadeScale 0.7s ease both 0.35s;
}

.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    animation: fadeScale 0.7s ease both 0.5s;
}

.social-button {
    position: relative;
    min-height: 62px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    font-weight: 950;
    box-shadow: 0 14px 28px rgba(17, 24, 32, 0.18);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.social-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.social-button.youtube {
    background: linear-gradient(135deg, #ff243e, #ff6f4c);
}

.social-button.tiktok {
    background: linear-gradient(135deg, #111827, #3d2559 56%, #25d9ca);
}

.social-button::after,
.theme-tile::after,
.cta-button::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    left: var(--tap-x, 50%);
    top: var(--tap-y, 50%);
    background: rgba(255, 255, 255, 0.45);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
}

.tap-pop::after {
    animation: ripple 0.52s ease-out;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.theme-tile {
    position: relative;
    overflow: hidden;
    min-height: 120px;
    padding: 17px 12px;
    border-radius: 26px;
    text-decoration: none;
    color: white;
    box-shadow: 0 18px 38px rgba(55, 28, 72, 0.18);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.theme-tile:hover,
.social-button:hover,
.cta-button:hover {
    transform: translateY(-2px);
    filter: saturate(1.08);
}

.theme-tile::before {
    content: "";
    position: absolute;
    inset: -55% -55% auto auto;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.tile-icon {
    font-size: 32px;
    line-height: 1;
}

.theme-tile strong {
    display: block;
    font-size: 19px;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.theme-tile small {
    display: block;
    margin-top: 3px;
    opacity: 0.86;
    font-weight: 750;
}

.tile-about { background: linear-gradient(135deg, #1ab4f8, #087fc1); }
.tile-discounts { background: linear-gradient(135deg, #ffd933, #f4aa00); color: var(--brand-black); }
.tile-stickers { background: linear-gradient(135deg, #82c824, #3d921b); }
.tile-projects { background: linear-gradient(135deg, #303b45, #111820); }

.content-stack {
    display: grid;
    gap: 14px;
}

.page-hero {
    border-radius: var(--radius-xl);
    text-align: center;
    padding: 22px 18px;
    position: relative;
    overflow: hidden;
    animation: fadeSlideUp 0.65s ease both;
}

.page-hero::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 170, 245, 0.2), transparent 70%);
    right: -90px;
    top: -90px;
}

.page-logo {
    width: 92px;
    margin: 0 auto 10px;
    animation: logoPop 0.75s cubic-bezier(.2,1.35,.38,1) both;
}

.page-hero h1 {
    font-size: clamp(34px, 11vw, 54px);
}

.page-hero p:not(.eyebrow) {
    margin: 12px auto 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.48;
    max-width: 560px;
}

.info-card {
    border-radius: var(--radius-lg);
    padding: 20px;
    animation: fadeSlideUp 0.65s ease both;
}

.split-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.section-pill {
    display: inline-flex;
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(22, 170, 245, 0.13);
    color: #0876b2;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.info-card h2,
.discount-card h2,
.sticker-form h2,
.sticker-option h2,
.stats-panel h2 {
    margin: 10px 0 8px;
    font-size: 25px;
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.info-card p,
.discount-card p,
.sticker-form p,
.sticker-option p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.55;
}

.info-card p:last-child,
.discount-card p:last-child {
    margin-bottom: 0;
}

.feature-bubble {
    min-height: 145px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 18px;
    border-radius: 24px;
    color: white;
    font-size: 42px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    box-shadow: inset 0 -12px 28px rgba(0,0,0,0.08);
}

.reverse-card .feature-bubble {
    background: linear-gradient(135deg, var(--brand-green), #388b19);
}

.feature-bubble strong,
.feature-bubble span {
    display: block;
    font-size: 18px;
    line-height: 1.1;
}

.feature-bubble span {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
    font-weight: 800;
}

.discount-list {
    display: grid;
    gap: 14px;
}

.discount-card {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 14px;
    align-items: center;
    border-radius: var(--radius-lg);
    padding: 15px;
    animation: fadeSlideUp 0.65s ease both;
}

.discount-logo-wrap {
    min-height: 86px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff, #edf9ff);
    display: grid;
    place-items: center;
    padding: 11px;
    box-shadow: inset 0 0 0 1px rgba(22, 170, 245, 0.11);
}

.discount-logo-wrap img {
    max-height: 62px;
}

.discount-body {
    min-width: 0;
}

.discount-card h2 {
    margin-top: 0;
    font-size: 23px;
}

.product-logo-fallback {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 18px;
    color: white;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    font-size: 28px;
    font-weight: 950;
}

.product-card-actions {
    margin-top: 4px;
}

.product-empty-state {
    text-align: center;
}

.product-empty-state > span {
    font-size: 38px;
}

.product-empty-state h2 {
    margin: 8px 0 5px;
}

.product-empty-state p {
    margin: 0;
}

.code-row {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 14px !important;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(114, 185, 22, 0.14);
    color: var(--ink) !important;
    font-weight: 850;
    font-size: 13px;
}

.code-row span {
    color: #397f15;
    letter-spacing: 0.03em;
}

.cta-button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    color: white;
    min-height: 52px;
    padding: 0 20px;
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(8, 127, 193, 0.24);
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.cta-button.small {
    min-height: 42px;
    padding: 0 15px;
    font-size: 13px;
}

.cta-button.dark {
    background: linear-gradient(135deg, #27323b, var(--brand-black));
    box-shadow: 0 14px 28px rgba(17, 24, 32, 0.2);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--brand-yellow);
    outline-offset: 3px;
}

.sticker-choice-grid {
    display: grid;
    gap: 14px;
}

.sticker-option {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 20px;
    animation: fadeSlideUp 0.65s ease both;
}

.sticker-option::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    right: -76px;
    top: -88px;
    background: rgba(22, 170, 245, 0.1);
    pointer-events: none;
}

.sticker-option.featured {
    color: var(--brand-black);
    border-color: rgba(255, 210, 31, 0.65);
    background: linear-gradient(145deg, rgba(255, 249, 211, 0.96), rgba(255, 255, 255, 0.94));
}

.sticker-option.featured::after {
    background: rgba(255, 210, 31, 0.34);
}

.option-label,
.option-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.option-label {
    color: #0876b2;
    background: rgba(22, 170, 245, 0.13);
}

.option-badge {
    margin-left: 5px;
    color: var(--brand-black);
    background: var(--brand-yellow);
}

.option-icon {
    margin-top: 18px;
    font-size: 36px;
    line-height: 1;
}

.option-brand-logo {
    position: relative;
    z-index: 1;
    width: min(100%, 100px);
    min-height: 100px;
    margin-top: 14px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 22px rgba(17, 17, 17, 0.08);
}

.option-brand-logo img {
    display: block;
    width: 100%;
    max-height: 116px;
    object-fit: contain;
}

.sticker-option h2 {
    margin-top: 10px;
}

.sticker-option .cta-button {
    margin-top: 5px;
}

.external-note {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.sticker-layout {
    display: grid;
    gap: 14px;
}

.sticker-showcase {
    border-radius: var(--radius-lg);
    padding: 24px 18px;
    display: grid;
    justify-items: center;
    overflow: hidden;
}

.sticker-tilt {
    position: relative;
    width: min(78vw, 280px);
    aspect-ratio: 1;
    border-radius: 50%;
    transform-style: preserve-3d;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 28px 45px rgba(9, 76, 113, 0.26);
    cursor: grab;
    touch-action: none;
    overflow: hidden;
}

.sticker-tilt:active {
    cursor: grabbing;
}

.sticker-tilt img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translateZ(24px);
}

.shine {
    position: absolute;
    inset: -20%;
    border-radius: 50%;
    background: radial-gradient(circle at var(--shine-x, 28%) var(--shine-y, 22%), rgba(255,255,255,0.82), rgba(255,255,255,0.28) 18%, rgba(255,255,255,0) 48%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.gesture-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    text-align: center;
}

.sticker-form {
    border-radius: var(--radius-lg);
    padding: 20px;
}

.sticker-form label {
    display: block;
    margin: 14px 0 7px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
}

.sticker-form label span {
    color: var(--muted);
    font-weight: 750;
}

.sticker-form input,
.sticker-form textarea {
    width: 100%;
    border: 2px solid rgba(22, 170, 245, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    padding: 13px 14px;
    color: var(--ink);
    outline: none;
    transition: border 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.sticker-form textarea {
    resize: vertical;
    min-height: 118px;
}

.sticker-form input:focus,
.sticker-form textarea:focus {
    border-color: rgba(22, 170, 245, 0.62);
    box-shadow: 0 0 0 5px rgba(22, 170, 245, 0.12);
}

.sticker-form .cta-button {
    width: 100%;
    margin-top: 18px;
}

.stats-login {
    width: min(100%, 520px);
    margin: 0 auto;
}

.admin-toolbar-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-product-form {
    scroll-margin-top: 14px;
}

.admin-form-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.admin-form-heading h2 {
    margin-bottom: 0;
}

.admin-form-heading > a {
    flex: 0 0 auto;
    margin-top: 8px;
    color: var(--brand-blue-dark);
    font-size: 12px;
    font-weight: 900;
}

.admin-form-grid {
    display: grid;
    gap: 0 14px;
}

.admin-field {
    min-width: 0;
}

.admin-field.full-width {
    grid-column: 1 / -1;
}

.admin-current-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(22, 170, 245, 0.08);
}

.admin-current-logo img {
    width: 64px;
    height: 46px;
    object-fit: contain;
    border-radius: 10px;
    background: white;
    padding: 4px;
}

.admin-current-logo label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 12px;
    cursor: pointer;
}

.admin-current-logo input {
    width: auto;
    margin: 0;
}

.admin-form-note {
    margin-top: 14px !important;
    font-size: 12px;
}

.admin-product-list {
    display: grid;
}

.admin-product-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid rgba(8, 127, 193, 0.12);
}

.admin-product-row:last-child {
    border-bottom: 0;
}

.admin-product-logo {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #edf9ff);
    box-shadow: inset 0 0 0 1px rgba(22, 170, 245, 0.12);
    overflow: hidden;
}

.admin-product-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.admin-product-logo span {
    color: var(--brand-blue-dark);
    font-size: 24px;
    font-weight: 950;
}

.admin-product-summary {
    min-width: 0;
}

.admin-product-summary strong,
.admin-product-summary span,
.admin-product-summary small {
    display: block;
}

.admin-product-summary span,
.admin-product-summary small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.admin-product-summary small {
    color: #397f15;
    font-weight: 850;
}

.admin-product-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.admin-product-actions form {
    margin: 0;
}

.admin-edit-link,
.admin-delete-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 0 12px;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.admin-edit-link {
    color: #0876b2;
    background: rgba(22, 170, 245, 0.13);
}

.admin-delete-button {
    color: #a41515;
    background: rgba(239, 47, 47, 0.11);
}

.stats-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: var(--radius-md);
    padding: 12px 16px;
}

.stats-toolbar p {
    margin: 0;
    color: var(--muted);
}

.stats-toolbar a {
    color: var(--brand-blue-dark);
    font-size: 13px;
    font-weight: 900;
}

.stats-panel {
    border-radius: var(--radius-lg);
    padding: 20px;
}

.stats-panel-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.stats-panel-heading h2 {
    margin-bottom: 0;
}

.stats-panel-heading > p {
    max-width: 240px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}

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

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.stats-table th,
.stats-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(8, 127, 193, 0.12);
    text-align: left;
    white-space: nowrap;
}

.stats-table th {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.stats-table tbody tr:last-child td {
    border-bottom: 0;
}

.stats-table td:nth-child(2) strong {
    display: inline-grid;
    min-width: 34px;
    min-height: 34px;
    place-items: center;
    border-radius: 50%;
    color: var(--brand-black);
    background: var(--brand-yellow);
}

.empty-stats {
    padding: 26px 12px;
    text-align: center;
}

.empty-stats > span {
    font-size: 38px;
}

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

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

.recent-clicks {
    display: grid;
}

.recent-clicks article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(8, 127, 193, 0.12);
}

.recent-clicks article:last-child {
    border-bottom: 0;
}

.recent-clicks strong,
.recent-clicks span {
    display: block;
}

.recent-clicks span,
.recent-clicks time {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.recent-clicks time {
    flex: 0 0 auto;
    margin: 0;
}

.privacy-note {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.form-message {
    border-radius: 18px;
    padding: 12px 13px;
    margin: 12px 0;
    font-weight: 800;
    line-height: 1.35;
}

.form-message p {
    margin: 0 0 5px;
    color: inherit;
}

.form-message p:last-child {
    margin-bottom: 0;
}

.form-message.success {
    background: rgba(114, 185, 22, 0.15);
    color: #397f15;
}

.form-message.error {
    background: rgba(239, 47, 47, 0.12);
    color: #b21e1e;
}

.hidden-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.coming-soon {
    min-height: 62vh;
    display: grid;
    place-items: center;
    align-content: center;
}

.site-footer {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    padding: 22px 10px 6px;
}

.site-footer p {
    margin: 3px 0;
}

.footer-small {
    opacity: 0.78;
}

@keyframes logoPop {
    0% { opacity: 0; transform: translateY(16px) rotate(-8deg) scale(0.72); }
    70% { opacity: 1; transform: translateY(-4px) rotate(3deg) scale(1.06); }
    100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

@keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(-1deg); }
}

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

@keyframes floatBits {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-12px) rotate(8deg); }
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.72; }
    50% { transform: scale(1.12); opacity: 1; }
}

@keyframes fadeScale {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes starFloatPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: brightness(1) saturate(1) drop-shadow(0 0 0 rgba(255, 210, 31, 0));
    }
    50% {
        transform: translateY(-5px) scale(1.08);
        filter: brightness(1.18) saturate(1.1) drop-shadow(0 0 8px rgba(255, 210, 31, 0.58));
    }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ripple {
    0% { opacity: 0.7; transform: translate(-50%, -50%) scale(0); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(3.4); }
}

@media (min-width: 620px) {
    .page-shell {
        padding-inline: 20px;
    }

    .brand-mini span {
        max-width: none;
        font-size: 15px;
    }

    .top-nav a {
        font-size: 12px;
        padding-inline: 13px;
    }

    .landing-hero {
        padding: 36px 34px 28px;
    }

    .split-card {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
    }

    .reverse-card .feature-bubble {
        order: -1;
    }

    .sticker-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sticker-layout {
        grid-template-columns: 0.9fr 1.1fr;
        align-items: start;
    }

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

    .admin-product-row {
        grid-template-columns: 58px minmax(0, 1fr) auto;
    }

    .admin-product-actions {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .stats-panel-heading {
        display: block;
    }

    .stats-panel-heading > p {
        max-width: none;
        margin-top: 8px;
        text-align: left;
    }
}

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

}

/* Video library */
.tile-videos { background: linear-gradient(135deg, #303b45, #111820); }

.video-library {
    gap: 16px;
}

.video-category-nav {
    position: sticky;
    top: max(6px, env(safe-area-inset-top));
    z-index: 30;
    margin-inline: -2px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(9,74,112,.14);
}

.video-category-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.video-category-scroll::-webkit-scrollbar { display: none; }

.video-category-nav a {
    flex: 0 0 auto;
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.video-category-nav a.active,
.video-category-nav a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
}

.video-category-section {
    scroll-margin-top: 74px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: var(--radius-lg);
    background: var(--paper);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.video-category-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.video-category-heading h2 {
    margin: 8px 0 5px;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -.05em;
}

.video-category-heading p {
    max-width: 540px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.video-sort-label {
    flex: 0 0 auto;
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.video-sort {
    min-height: 38px;
    border: 1px solid rgba(22,170,245,.22);
    border-radius: 12px;
    padding: 0 28px 0 10px;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

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

.video-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 17px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(9,74,112,.1);
    transition: transform .18s ease, box-shadow .18s ease;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(9,74,112,.16);
}

.video-thumb-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

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

.video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(239,47,47,.94);
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
    transform: translate(-50%, -50%);
}

.video-play svg {
    width: 19px;
    height: 19px;
    margin-left: 2px;
    fill: currentColor;
}

.video-card-copy {
    display: block;
    padding: 9px 10px 11px;
}

.video-card-copy strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 12px;
    line-height: 1.3;
}

.video-card-copy small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
}

.video-playlist-link {
    display: inline-block;
    margin-top: 13px;
    color: var(--brand-blue-dark);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}


.video-feed-fallback { margin-top: 8px; }
.video-embed-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: #111;
    box-shadow: 0 8px 22px rgba(9,74,112,.12);
}
.video-embed-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.video-fallback-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.video-feed-error,
.video-empty-state {
    text-align: center;
}

.video-feed-error {
    padding: 22px 12px 8px;
    color: var(--muted);
}

.video-feed-error strong { color: var(--ink); }
.video-feed-error p { margin: 5px 0 14px; font-size: 13px; }
.cta-button.compact { min-height: 42px; padding-inline: 16px; font-size: 12px; }

.admin-video-manager { scroll-margin-top: 14px; }
.admin-video-form {
    margin: 0 0 18px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(22,170,245,.055);
    box-shadow: inset 0 0 0 1px rgba(22,170,245,.1);
}
.admin-video-form h3 { margin: 8px 0 0; font-size: 22px; letter-spacing: -.04em; }
.admin-video-form .cta-button { width: 100%; margin-top: 4px; }
.admin-video-list { display: grid; }
.admin-video-row {
    display: grid;
    grid-template-columns: 48px minmax(0,1fr);
    gap: 11px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid rgba(8,127,193,.12);
}
.admin-video-row:last-child { border-bottom: 0; }
.admin-video-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, #ff243e, #d91d35);
    font-size: 18px;
}
.compact-empty { padding-block: 12px 0; }

@media (min-width: 620px) {
    .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .video-card-copy strong { font-size: 13px; }
    .admin-video-row { grid-template-columns: 48px minmax(0,1fr) auto; }
    .admin-video-row .admin-product-actions { grid-column: auto; }
}

@media (max-width: 480px) {
    .video-category-section { padding: 14px; }
    .video-category-heading { display: block; }
    .video-sort-label { margin-top: 11px; width: 100%; }
    .video-sort { width: 100%; }
    .video-grid { gap: 8px; }
    .video-card-copy { padding: 8px 8px 9px; }
    .video-card-copy strong { font-size: 11px; }
}

/* Video library mobile containment + reliable sticky category navigation */
html, body { max-width: 100%; }
body { overflow-x: clip; }
.page-shell,
.site-header,
.content-stack,
.video-library,
.video-category-nav,
.video-category-section,
.video-feed-fallback,
.video-embed-wrap { min-width: 0; max-width: 100%; }
.site-header > * { min-width: 0; }
.brand-mini { flex: 0 0 auto; }
.top-nav { flex: 1 1 auto; min-width: 0; max-width: 100%; }
.video-category-scroll { width: 100%; max-width: 100%; overscroll-behavior-x: contain; }
.video-category-section { width: 100%; overflow: hidden; }
.video-category-heading > div { min-width: 0; }
.video-category-heading h2,
.video-category-heading p { overflow-wrap: anywhere; }
.video-embed-wrap { contain: inline-size; }
.video-embed-wrap iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: 100%; }
.video-grid { width: 100%; min-width: 0; }
.video-card { width: 100%; max-width: 100%; }

@media (hover: none) {
    .video-category-nav a:hover { color: var(--muted); background: transparent; }
    .video-category-nav a.active { color: #fff; background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark)); }
}

@media (max-width: 560px) {
    .page-shell { width: 100%; max-width: 100%; padding-left: 10px; padding-right: 10px; }
    .site-header { gap: 7px; }
    .brand-mini { gap: 6px; }
    .brand-mini img { width: 40px; height: 40px; }
    .brand-mini span { max-width: 95px; font-size: 12px; }
    .top-nav { padding: 4px; }
    .top-nav a { padding: 8px 9px; }
    .video-category-nav { margin-inline: 0; border-radius: 22px; }
    .video-category-section { padding: 14px; }
    .video-category-heading h2 { font-size: 27px; }
    .video-embed-wrap { border-radius: 15px; }
}
