/* GLESEL GROUP 2.0 – shared design system */
:root {
    --g-50: #ecfdf5; --g-100: #d1fae5; --g-300: #6ee7b7; --g-400: #34d399; --g-500: #10b981; --g-600: #059669; --g-700: #047857;
    --ink: #0f172a; --ink-2: #1e293b; --muted: #64748b; --line: #e2e8f0; --bg: #ffffff; --bg-soft: #f6faf8;
    --night: #0b1220; --night-2: #111a2e;
    --grad: linear-gradient(135deg, var(--g-400), var(--g-700));
    --radius: 20px; --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
    --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 60px rgba(15, 23, 42, .12);
    --font-display: 'Bahnschrift', 'DIN Alternate', 'DIN Next', 'Barlow', system-ui, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, sans-serif;
    --font-mono: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); line-height: 1.65; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--g-300); color: var(--ink); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.01em; }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 0; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s, color .25s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; transition: transform .25s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 20px rgba(15, 23, 42, .18); }
.btn-primary:hover { background: var(--g-600); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(5, 150, 105, .35); }
.btn-green { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(16, 185, 129, .35); }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(16, 185, 129, .45); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--g-500); color: var(--g-700); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15, 23, 42, .05); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) { padding: .5rem .9rem; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .94rem; color: var(--ink-2); transition: background .2s, color .2s; }
.nav a:not(.btn):hover { background: var(--g-50); color: var(--g-700); }
.nav .btn { margin-left: .75rem; padding: .6rem 1.25rem; font-size: .92rem; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 12px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 7rem 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 3.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--g-600); margin-bottom: 1rem; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; margin-bottom: 1rem; }
.section-head p { font-size: 1.12rem; color: var(--muted); }

/* ---------- Cards ---------- */
.card { position: relative; background: #fff; border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(16, 185, 129, .45); }
.icon-box { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--g-50); color: var(--g-600); margin-bottom: 1.4rem; transition: background .3s, color .3s, transform .3s; }
.icon-box svg { width: 26px; height: 26px; }
.card:hover .icon-box { background: var(--grad); color: #fff; transform: rotate(-6deg) scale(1.05); }
.pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 700; padding: .3rem .75rem; border-radius: 999px; letter-spacing: .02em; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-live { background: #dcfce7; color: #15803d; }
.pill-live::before { animation: pulse 1.8s infinite; }
.pill-dev { background: #e0e7ff; color: #4338ca; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { font-family: var(--font-mono); font-size: .74rem; font-weight: 600; padding: .28rem .6rem; border-radius: 6px; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.checks { list-style: none; display: grid; gap: .45rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; font-size: .94rem; color: var(--muted); }
.checks li::before { content: ''; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--g-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #94a3b8; padding: 5rem 0 2rem; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; width: 600px; height: 600px; right: -200px; top: -300px; background: radial-gradient(circle, rgba(16, 185, 129, .18), transparent 65%); pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; position: relative; }
.footer-brand img { height: 120px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { font-size: .95rem; max-width: 280px; }
.site-footer h4 { color: #fff; font-size: .82rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.2rem; }
.site-footer a { display: block; color: #94a3b8; text-decoration: none; font-size: .95rem; padding: .25rem 0; transition: color .2s, transform .2s; }
.site-footer a:hover { color: var(--g-400); transform: translateX(3px); }
.footer-bottom { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; position: relative; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ================= Landing page ================= */
.hero { position: relative; padding: 5.5rem 0 6rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(var(--bg) 0, transparent 30%, transparent 70%, var(--bg) 100%),
    linear-gradient(90deg, rgba(15, 23, 42, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px) 0 0 / 56px 56px; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; pointer-events: none; animation: drift 18s ease-in-out infinite; }
.orb-1 { width: 520px; height: 520px; background: rgba(52, 211, 153, .32); top: -180px; right: -120px; }
.orb-2 { width: 380px; height: 380px; background: rgba(4, 120, 87, .16); bottom: -160px; left: -120px; animation-delay: -9s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 30px); } }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4rem; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .9rem .4rem .45rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .85rem; font-weight: 500; color: var(--ink-2); margin-bottom: 1.75rem; }
.badge b { background: var(--grad); color: #fff; font-size: .72rem; padding: .2rem .55rem; border-radius: 999px; letter-spacing: .04em; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.hero h1 .break { display: inline-block; position: relative; }
.hero h1 .break::after { content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em; background: var(--grad); border-radius: 4px; transform: skewX(-20deg); opacity: .25; }
.hero-lead { font-size: 1.18rem; color: var(--muted); max-width: 560px; margin-bottom: 2.25rem; }
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-bottom: 3.25rem; }
.stats { display: flex; gap: 2.75rem; flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--ink); }
.stat strong em { font-style: normal; color: var(--g-500); }
.stat span { font-size: .88rem; color: var(--muted); }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 520px; justify-self: center; width: 100%; }
.logo-stage { position: absolute; inset: 6%; border-radius: 36px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; place-items: center; overflow: hidden; }
.logo-stage::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, var(--g-50), transparent 60%); }
.logo-stage svg { position: relative; width: 66%; height: auto; overflow: visible; }
.logo-stage .shard { animation: shard 5s cubic-bezier(.5, 0, .2, 1) infinite; transform-origin: 380px 140px; }
@keyframes shard { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(14px, -14px) rotate(4deg); } }
.chip { position: absolute; display: flex; align-items: center; gap: .55rem; padding: .65rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .86rem; font-weight: 600; color: var(--ink-2); animation: bob 6s ease-in-out infinite; }
.chip svg { width: 18px; height: 18px; color: var(--g-600); }
.chip-1 { top: 2%; left: -4%; }
.chip-2 { top: 44%; right: -6%; animation-delay: -2s; }
.chip-3 { bottom: 3%; left: 8%; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.marquee { border-block: 1px solid var(--line); background: var(--bg-soft); overflow: hidden; padding: 1.25rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: #94a3b8; display: flex; align-items: center; gap: 3.5rem; white-space: nowrap; }
.marquee-track span::after { content: ''; width: 8px; height: 8px; background: var(--g-400); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service .num { position: absolute; top: 1.5rem; right: 1.75rem; font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; line-height: 1; color: var(--bg-soft); -webkit-text-stroke: 1px var(--line); transition: color .3s; }
.service:hover .num { color: var(--g-50); -webkit-text-stroke-color: var(--g-300); }
.service h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.service p { color: var(--muted); margin-bottom: 1.4rem; }

.refs-section { background: var(--bg-soft); }
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ref { display: flex; flex-direction: column; }
.ref-top { display: flex; justify-content: space-between; align-items: flex-start; }
.ref h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.ref .ref-url { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--g-600); text-decoration: none; margin-bottom: .6rem; }
.ref .ref-url:hover { text-decoration: underline; }
.ref p { color: var(--muted); font-size: .94rem; margin: .4rem 0 1.25rem; }
.ref .checks { margin-bottom: 1.5rem; }
.ref .checks li { font-size: .88rem; }
.ref .tags { margin-top: auto; }
.ref::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; }
.ref:hover::after { opacity: 1; }

.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.product { display: flex; flex-direction: column; padding: 1.25rem 1.25rem 1.75rem; }
.product > :not(.product-slider) { margin-left: .75rem; margin-right: .75rem; }
.product.featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
.product.featured::before { content: 'Bestseller'; position: absolute; top: -13px; right: 1.5rem; background: var(--grad); color: #fff; padding: .3rem .9rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 16px rgba(16, 185, 129, .35); z-index: 5; }
.product h3 { font-size: 1.6rem; margin: .5rem 0 .75rem; }
.product-description { color: var(--muted); font-size: .95rem; line-height: 1.75; margin-bottom: 1.5rem; }
.price-row { margin-top: auto; padding-top: 1.25rem; border-top: 1px dashed var(--line); margin-bottom: 1.25rem; }
.price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1.1; color: var(--ink); }
.price-sub { font-size: .86rem; color: var(--muted); }
.product-slider { position: relative; height: 260px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, var(--bg-soft), #fff); margin-bottom: 1rem; border: 1px solid var(--line); }
.slider-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 1rem; opacity: 0; transition: opacity .6s; }
.slider-image.active { opacity: 1; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 1.35rem; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); transition: background .2s, color .2s, transform .2s; z-index: 2; }
.slider-btn:hover { background: var(--ink); color: #fff; transform: translateY(-50%) scale(1.08); }
.slider-prev { left: 12px; } .slider-next { right: 12px; }
.slider-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); z-index: 2; }
.dot { width: 7px; height: 7px; border-radius: 999px; background: #cbd5e1; cursor: pointer; transition: width .3s, background .3s; }
.dot.active { width: 20px; background: var(--g-500); }

.about { background: var(--night); color: #cbd5e1; overflow: hidden; }
.about::before { content: ''; position: absolute; inset: 0; background:
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 30% 40%, #000, transparent 70%); }
.about::after { content: ''; position: absolute; width: 700px; height: 700px; left: -250px; bottom: -350px; background: radial-gradient(circle, rgba(16, 185, 129, .22), transparent 65%); }
.about .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.about .eyebrow { color: var(--g-400); }
.about h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 1.5rem; }
.about p { font-size: 1.06rem; margin-bottom: 1.1rem; }
.about .made { color: var(--g-400); font-weight: 600; margin-top: 1.5rem; font-family: var(--font-display); font-size: 1.2rem; }
.values { display: grid; gap: 1rem; }
.value { display: flex; gap: 1.1rem; padding: 1.4rem 1.5rem; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); transition: background .3s, border-color .3s, transform .3s; }
.value:hover { background: rgba(16, 185, 129, .08); border-color: rgba(52, 211, 153, .35); transform: translateX(6px); }
.value .icon-box { margin: 0; flex: 0 0 48px; height: 48px; background: rgba(52, 211, 153, .12); color: var(--g-400); }
.value h3 { color: #fff; font-size: 1.15rem; margin-bottom: .25rem; }
.value p { font-size: .92rem; margin: 0; color: #94a3b8; }

.cta { padding: 6rem 0; }
.cta-box { position: relative; overflow: hidden; border-radius: 32px; padding: 4.5rem 3rem; text-align: center; background: var(--grad); color: #fff; box-shadow: 0 30px 80px rgba(5, 150, 105, .35); }
.cta-box::before, .cta-box::after { content: ''; position: absolute; background: rgba(255, 255, 255, .12); transform: skewX(-24deg); }
.cta-box::before { width: 120px; top: -20%; bottom: -20%; right: 14%; }
.cta-box::after { width: 40px; top: -20%; bottom: -20%; right: 26%; }
.cta-box h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 1rem; position: relative; }
.cta-box p { font-size: 1.15rem; opacity: .92; margin-bottom: 2rem; position: relative; }
.cta-box .btn { position: relative; }
.cta-box .btn-primary { background: #fff; color: var(--ink); }
.cta-box .btn-primary:hover { background: var(--ink); color: #fff; }

/* ================= Content pages (Impressum, Datenschutz, AGB) ================= */
.page { position: relative; padding: 3.5rem 0 6rem; min-height: 60vh; }
.page-bg { position: absolute; inset: 0 0 auto; height: 420px; z-index: -1; background:
    radial-gradient(ellipse at 80% 0%, rgba(52, 211, 153, .22), transparent 60%),
    linear-gradient(90deg, rgba(15, 23, 42, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px) 0 0 / 56px 56px;
    -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.wrap-narrow { max-width: 880px; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--muted); text-decoration: none; margin-bottom: 1.5rem; transition: color .2s, transform .2s; }
.back-link:hover { color: var(--g-600); transform: translateX(-3px); }
.prose { padding: 3rem; }
.prose:hover { transform: none; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1.75rem; }
.prose h2 { font-size: 1.5rem; margin: 2.25rem 0 .85rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.15rem; margin: 1.5rem 0 .6rem; }
.prose p, .prose li { color: var(--ink-2); opacity: .85; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.4rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--g-500); }
.prose a { color: var(--g-600); text-underline-offset: 3px; }
.prose a:hover { color: var(--g-700); }
.prose strong { color: var(--ink); opacity: 1; }
.prose img { height: auto; border-radius: var(--radius-sm); margin: 1.5rem 0; }

/* ================= App pages (Login, Checkout, Success) ================= */
.app-body { background: var(--bg-soft); min-height: 100vh; display: flex; flex-direction: column; }
.app-body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
    radial-gradient(ellipse at 85% -10%, rgba(52, 211, 153, .2), transparent 55%),
    radial-gradient(ellipse at -10% 110%, rgba(4, 120, 87, .1), transparent 50%); }
.app-bar { padding: 1.25rem 0; }
.app-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.app-bar .back-link { margin: 0; }
.app-main { flex: 1; padding: 1.5rem 0 4rem; }
.app-foot { padding: 1.5rem 0 2rem; text-align: center; font-size: .85rem; color: var(--muted); }
.app-foot a { color: var(--muted); text-decoration: none; margin: 0 .6rem; }
.app-foot a:hover { color: var(--g-600); }
.card-flat:hover { transform: none; box-shadow: var(--shadow); border-color: var(--line); }

/* Forms */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink-2); margin-bottom: .45rem; }
.field input, .field select { width: 100%; padding: .85rem 1rem; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; appearance: none; }
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 1rem center/18px no-repeat; padding-right: 2.75rem; }
.field input:hover, .field select:hover { border-color: #cbd5e1; }
.field input:focus, .field select:focus { outline: none; border-color: var(--g-500); box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: flex; gap: .75rem; align-items: flex-start; margin: 1.25rem 0; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--g-600); cursor: pointer; }
.check a { color: var(--g-600); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.form-divider { display: flex; align-items: center; gap: 1rem; margin: 1.75rem 0 1.25rem; color: var(--muted); font-size: .85rem; }
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.text-link { color: var(--g-600); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Notices */
.notice { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 1.25rem; border: 1px solid; }
.notice svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; }
.notice h3 { font-family: var(--font-body); font-size: .95rem; margin-bottom: .35rem; }
.notice p { margin: 0; }
.notice p + p { margin-top: .5rem; }
.notice-success { background: var(--g-50); border-color: var(--g-300); color: #065f46; }
.notice-error { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.notice-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.notice-warn { background: #fffbeb; border-color: #fcd34d; color: #78350f; }

/* Auth split */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; background: var(--night); color: #94a3b8; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side::before { content: ''; position: absolute; inset: 0; background:
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 50% 45%, #000, transparent 70%); }
.auth-side::after { content: ''; position: absolute; width: 640px; height: 640px; left: 50%; top: 45%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(16, 185, 129, .22), transparent 62%); }
.auth-side > * { position: relative; z-index: 1; }
.auth-logo { align-self: center; width: min(320px, 70%); margin: auto 0; }
.auth-logo svg { width: 100%; height: auto; overflow: visible; }
.auth-logo .shard { animation: shard 5s cubic-bezier(.5, 0, .2, 1) infinite; transform-origin: 380px 140px; }
.auth-side .back-link { color: #94a3b8; margin: 0; }
.auth-side .back-link:hover { color: var(--g-400); }
.auth-quote { font-size: .95rem; max-width: 360px; }
.auth-quote strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.4rem; margin-bottom: .35rem; }
.auth-main { display: grid; place-items: center; padding: 3rem 1.5rem; background: var(--bg); }
.auth-form { width: 100%; max-width: 400px; }
.auth-form h1 { font-size: 2.2rem; margin-bottom: .4rem; }
.auth-form .sub { color: var(--muted); margin-bottom: 2rem; }
.auth-mobile-logo { display: none; height: 40px; width: auto; margin-bottom: 2rem; }
.code-input { text-align: center; font-family: var(--font-mono) !important; font-size: 1.6rem !important; letter-spacing: .5em; padding-left: 1.5em !important; }

/* Checkout */
.steps { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 1.75rem; flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: .45rem; }
.steps b { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .75rem; background: var(--line); color: var(--ink-2); }
.steps .on { color: var(--ink); font-weight: 600; }
.steps .on b { background: var(--grad); color: #fff; }
.steps i { width: 28px; height: 1px; background: var(--line); }
.checkout-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .4rem; }
.checkout-head p { color: var(--muted); margin-bottom: 2rem; }
.checkout-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 1.5rem; align-items: start; }
.checkout-grid > .card { padding: 2.25rem; }
.checkout-grid h2 { font-size: 1.3rem; margin-bottom: 1.4rem; }
.summary { position: sticky; top: 1.5rem; }
.summary-product { display: flex; gap: 1rem; align-items: center; padding-bottom: 1.25rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.summary-product .icon-box { margin: 0; flex: 0 0 52px; }
.summary-product strong { display: block; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.summary-product span { font-size: .85rem; color: var(--muted); }
.summary-line { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .95rem; color: var(--ink-2); }
.summary-line.muted { color: var(--muted); font-size: .88rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1rem; margin-top: .75rem; border-top: 1px dashed var(--line); }
.summary-total span:first-child { font-weight: 600; }
.summary-total span:last-child { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.perks { margin-top: 1.5rem; padding: 1.25rem; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--line); }
.perks h3 { font-family: var(--font-body); font-size: .88rem; margin-bottom: .75rem; }
.perks .checks li { font-size: .88rem; }
.upsell { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; padding: 1rem 1.15rem; border-radius: var(--radius-sm); border: 1.5px dashed var(--g-400); background: var(--g-50); color: #065f46; text-decoration: none; font-weight: 600; font-size: .92rem; transition: background .2s, border-style .2s; }
.upsell:hover { background: var(--g-100); border-style: solid; }
.trust { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.25rem; font-size: .8rem; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: .35rem; }
.trust svg { width: 15px; height: 15px; color: var(--g-600); }

/* Success */
.success { max-width: 560px; margin: 2rem auto 0; text-align: center; padding: 3.25rem 2.5rem; }
.success:hover { transform: none; }
.success-icon { width: 84px; height: 84px; margin: 0 auto 1.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 16px 40px rgba(16, 185, 129, .4); animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.success-icon svg { width: 40px; height: 40px; }
.success-icon.pending { background: var(--line); color: var(--muted); box-shadow: none; }
.success-icon.pending svg { animation: spin 1.2s linear infinite; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.success h1 { font-size: 2.1rem; margin-bottom: .6rem; }
.success p { color: var(--muted); }
.license-key { margin: 1.75rem 0 .75rem; padding: 1.15rem; border-radius: var(--radius-sm); background: var(--night); color: var(--g-300); font-family: var(--font-mono); font-size: 1.1rem; font-weight: 600; letter-spacing: .08em; word-break: break-all; cursor: pointer; position: relative; transition: background .2s; }
.license-key:hover { background: var(--night-2); }
.license-key small { display: block; font-family: var(--font-body); font-size: .72rem; letter-spacing: 0; color: #64748b; margin-top: .35rem; font-weight: 500; }
.success-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem; }
.redirect-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 2rem; }
.redirect-bar span { display: block; height: 100%; background: var(--grad); animation: bar 8s linear forwards; transform-origin: left; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.redirect-note { font-size: .82rem; color: var(--muted); margin-top: .6rem; }

/* ================= Dashboard ================= */
.dash { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; background: var(--bg-soft); }
.dash-side { position: sticky; top: 0; height: 100vh; background: var(--night); color: #94a3b8; display: flex; flex-direction: column; padding: 1.5rem 1rem; overflow: hidden; }
.dash-side::after { content: ''; position: absolute; width: 420px; height: 420px; left: -180px; bottom: -200px; background: radial-gradient(circle, rgba(16, 185, 129, .2), transparent 65%); pointer-events: none; }
.dash-side > * { position: relative; z-index: 1; }
.dash-brand { padding: .25rem .75rem 1.75rem; }
.dash-brand img { height: 34px; width: auto; }
.dash-nav { display: flex; flex-direction: column; gap: .2rem; }
.dash-nav .label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #475569; padding: 1rem .9rem .5rem; }
.dash-nav a { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: 10px; color: #cbd5e1; text-decoration: none; font-size: .93rem; font-weight: 500; transition: background .2s, color .2s; white-space: nowrap; }
.dash-nav a svg { width: 19px; height: 19px; opacity: .75; flex: 0 0 19px; }
.dash-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.dash-nav a.active { background: linear-gradient(90deg, rgba(16, 185, 129, .22), rgba(16, 185, 129, .06)); color: #fff; box-shadow: inset 2px 0 0 var(--g-400); }
.dash-nav a.active svg { opacity: 1; color: var(--g-400); }
.dash-user { margin-top: auto; display: flex; align-items: center; gap: .75rem; padding: .9rem; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.avatar { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-family: var(--font-display); }
.dash-user div { min-width: 0; flex: 1; }
.dash-user strong { display: block; color: #fff; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-user span { font-size: .75rem; }
.dash-user a { color: #94a3b8; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; transition: background .2s, color .2s; }
.dash-user a:hover { background: rgba(239, 68, 68, .15); color: #fca5a5; }
.dash-user a svg { width: 18px; height: 18px; }
.dash-main { padding: 2.25rem clamp(1.25rem, 3vw, 3rem) 4rem; min-width: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.dash-head h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.dash-head p { color: var(--muted); margin-top: .3rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.5rem; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1.15rem; }
.panel-body { padding: 1.5rem; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 1.5rem; }
.kpi { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.kpi span { font-size: .85rem; color: var(--muted); font-weight: 500; }
.kpi strong { display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1.1; margin-top: .25rem; }
.kpi .icon-box { position: absolute; right: 1.25rem; top: 1.25rem; margin: 0; }
.kpi.accent { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 14px 34px rgba(16, 185, 129, .3); }
.kpi.accent span { color: rgba(255, 255, 255, .85); }
.kpi.accent .icon-box { background: rgba(255, 255, 255, .18); color: #fff; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.quick a { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.25rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .2s, transform .2s, box-shadow .2s; }
.quick a:hover { border-color: var(--g-400); transform: translateY(-3px); box-shadow: var(--shadow); }
.quick .icon-box { margin: 0; flex: 0 0 44px; width: 44px; height: 44px; }
.quick small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; padding: .8rem 1.5rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--bg-soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #fafcfb; }
.table code { font-family: var(--font-mono); font-size: .82rem; padding: .25rem .5rem; border-radius: 6px; background: var(--g-50); color: var(--g-700); white-space: nowrap; }
.st { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.st-ok { background: #dcfce7; color: #15803d; }
.st-warn { background: #fef3c7; color: #b45309; }
.st-bad { background: #fee2e2; color: #b91c1c; }
.st-info { background: #e0e7ff; color: #4338ca; }
.st-neutral { background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.muted { color: var(--muted); }
.btn-sm { padding: .5rem 1rem; font-size: .84rem; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; transform: translateY(-2px); }
.empty { text-align: center; padding: 3.5rem 1.5rem; }
.empty .icon-box { margin: 0 auto 1.25rem; width: 64px; height: 64px; border-radius: 18px; }
.empty .icon-box svg { width: 30px; height: 30px; }
.empty h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.empty p { color: var(--muted); margin-bottom: 1.5rem; }
.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.qr-box { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; padding: 1.25rem; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 1.25rem; }
.qr-box img { width: 168px; height: 168px; border-radius: 10px; background: #fff; padding: 8px; }
.secret { font-family: var(--font-mono); font-size: .85rem; word-break: break-all; padding: .75rem; border-radius: 8px; background: #fff; border: 1px dashed var(--line); margin-top: .5rem; }
.ticket-meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.chat { padding: 1.5rem; background: var(--bg-soft); display: flex; flex-direction: column; gap: 1rem; }
.msg { max-width: 72%; padding: .9rem 1.1rem; border-radius: 16px; box-shadow: var(--shadow); }
.msg-who { font-weight: 600; font-size: .82rem; margin-bottom: .4rem; display: flex; align-items: center; gap: .4rem; }
.msg-time { font-size: .72rem; opacity: .75; margin-top: .5rem; text-align: right; }
.msg.support { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.support .msg-who { color: var(--g-600); }
.msg.me { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.msg.me .editor-content, .msg.me .editor-content * { color: #fff !important; }
.msg.support .editor-content, .msg.support .editor-content * { color: var(--ink) !important; }
.editor-content { word-wrap: break-word; line-height: 1.6; }
.editor-content img { max-width: 100%; height: auto; border-radius: 8px; margin: .5rem 0; }
.editor-content ul, .editor-content ol { margin: .5rem 0 0 1.5rem; }
.editor-content p { margin: .25rem 0; }
.backup-box { margin-bottom: 2rem; }
.backup-codes { list-style: none; counter-reset: bc; display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; padding: 1.25rem; margin-bottom: 1.25rem; border-radius: var(--radius-sm); background: var(--night); }
.backup-codes li { counter-increment: bc; display: flex; align-items: center; gap: .75rem; }
.backup-codes li::before { content: counter(bc, decimal-leading-zero); font-family: var(--font-mono); font-size: .72rem; color: #475569; }
.backup-codes code { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 600; letter-spacing: .12em; color: var(--g-300); }
.backup-status { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.backup-status .icon-box { margin: 0; flex: 0 0 48px; height: 48px; }
.backup-status p { font-size: .92rem; margin-top: .2rem; }
.closed-banner { padding: 1.25rem 1.5rem; text-align: center; background: #fffbeb; border-top: 1px solid var(--line); color: #92400e; }

/* ================= Admin panel (restyles legacy admin.php markup) ================= */
.adm .dash-side { background: linear-gradient(180deg, #0b1220, #0d1726); }
.adm .dash-brand small { display: inline-block; margin-top: .5rem; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--g-400); background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .25); padding: .15rem .5rem; border-radius: 6px; }
.adm .main-content > .section-title:first-child, .adm .main-content > div:first-child > .section-title { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.adm .section-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--ink); }
.adm h2.section-title { margin-top: 2rem; }
.adm .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.adm .stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; box-shadow: var(--shadow); color: var(--ink); }
.adm .stat-card:first-child { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 14px 34px rgba(16, 185, 129, .3); }
.adm .stat-card h4 { font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--muted); margin-bottom: .35rem; }
.adm .stat-card:first-child h4 { color: rgba(255, 255, 255, .85); }
.adm .stat-card .value, .adm .stat-value { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; line-height: 1.1; }
.adm .stat-card .value { display: block; padding: 0; margin: 0; background: none; border: 0; border-radius: 0; transform: none; }
.adm .stat-card .value:hover { background: none; transform: none; }
.adm .stat-label { font-size: .85rem; color: var(--muted); margin-top: .25rem; }
.adm .stat-card:first-child .stat-label { color: rgba(255, 255, 255, .85); }

.adm .btn { background: var(--ink); color: #fff; border-radius: 999px; padding: .7rem 1.35rem; font-size: .92rem; box-shadow: none; }
.adm .btn:hover { background: var(--g-600); transform: translateY(-1px); }
.adm .btn-secondary { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.adm .btn-secondary:hover { background: #fff; color: var(--g-700); box-shadow: inset 0 0 0 1.5px var(--g-500); }
.adm .btn-outline { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.adm .btn-outline:hover { background: var(--g-50); color: var(--g-700); }
.adm .btn-danger { background: #ef4444; color: #fff; }
.adm .btn-danger:hover { background: #dc2626; }
.adm .btn-small, .adm .btn-sm { padding: .45rem .95rem; font-size: .82rem; }

.adm .form-group { margin-bottom: 1.1rem; }
.adm .form-label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink-2); margin-bottom: .45rem; }
.adm .form-input, .adm .form-textarea, .adm .form-select { width: 100%; padding: .75rem .95rem; font: inherit; font-size: .95rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; }
.adm .form-input:focus, .adm .form-textarea:focus, .adm .form-select:focus { outline: none; border-color: var(--g-500); box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
.adm .form-textarea { min-height: 110px; resize: vertical; }
.adm .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.adm .checkbox-label { display: flex; align-items: center; gap: .6rem; cursor: pointer; margin-bottom: .5rem; font-size: .92rem; }
.adm .checkbox-label input { width: 18px; height: 18px; accent-color: var(--g-600); }

.adm .table-container, .adm .table-responsive { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.adm table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.adm th { text-align: left; padding: .8rem 1.1rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--bg-soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.adm td { padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm tr:last-child td { border-bottom: 0; }
.adm tbody tr:hover { background: #fafcfb; }
.adm td small { color: var(--muted); }

.adm .badge { display: inline-flex; align-items: center; margin: 0; padding: .22rem .65rem; border: 0; border-radius: 999px; box-shadow: none; font-size: .74rem; font-weight: 700; color: #fff; background: #64748b; white-space: nowrap; }
.adm .badge-success { background: #dcfce7; color: #15803d; }
.adm .badge-warning { background: #fef3c7; color: #b45309; }
.adm .badge-danger { background: #fee2e2; color: #b91c1c; }
.adm .badge-info { background: #e0e7ff; color: #4338ca; }

.adm .alert { display: flex; gap: .75rem; padding: 1rem 1.15rem; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 1.25rem; border: 1px solid; }
.adm .alert-success { background: var(--g-50); border-color: var(--g-300); color: #065f46; }
.adm .alert-error { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }

.adm .card { padding: 0; overflow: hidden; margin-bottom: 1.5rem; }
.adm .card:hover { transform: none; box-shadow: var(--shadow); border-color: var(--line); }
.adm .card-header { padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--line); }
.adm .card-header h2, .adm .card-header h3 { font-size: 1.1rem; }

.adm .modal { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(11, 18, 32, .55); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 1rem; }
.adm .modal.active { display: flex; }
.adm .modal-content { background: #fff; border-radius: var(--radius); padding: 2rem; max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: pop .3s cubic-bezier(.2, 1.2, .4, 1) both; }
.adm .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.adm .modal-header h2 { font-size: 1.4rem; }
.adm .modal-close { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--bg-soft); font-size: 1.3rem; cursor: pointer; color: var(--muted); }
.adm .modal-close:hover { background: var(--line); color: var(--ink); }

.adm .api-key-box, .adm .file-info { background: var(--bg-soft); border: 1px dashed var(--line); padding: .85rem 1rem; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: .85rem; word-break: break-all; color: var(--ink-2); }
.adm .file-info { margin-top: .5rem; font-family: var(--font-body); }
.adm .image-preview { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.adm .image-preview img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.adm .image-preview .img-item { position: relative; }
.adm .img-remove { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: #ef4444; color: #fff; font-size: 15px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; box-shadow: 0 2px 6px rgba(15, 23, 42, .25); transition: transform .15s, background .15s; }
.adm .img-remove:hover { background: #dc2626; transform: scale(1.12); }
.adm .msg-customer-box-admin { background: var(--grad) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero .wrap, .about .wrap { grid-template-columns: 1fr; }
    .hero-visual { max-width: 420px; }
    .services, .refs { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
    .summary { position: static; }
}
@media (max-width: 900px) {
    .dash { grid-template-columns: 1fr; }
    .dash-side { position: sticky; top: 0; z-index: 50; height: auto; padding: .75rem 1rem; flex-direction: row; align-items: center; gap: .75rem; }
    .dash-brand { padding: 0; }
    .dash-brand img { height: 28px; }
    .dash-nav { flex-direction: row; overflow-x: auto; flex: 1; scrollbar-width: none; }
    .dash-nav::-webkit-scrollbar { display: none; }
    .dash-nav .label { display: none; }
    .dash-nav a { padding: .55rem .8rem; font-size: .85rem; }
    .dash-nav a.active { box-shadow: inset 0 -2px 0 var(--g-400); }
    .dash-user { margin: 0; padding: 0; background: none; border: 0; }
    .dash-user .avatar, .dash-user div { display: none; }
    .kpis { grid-template-columns: 1fr; }
    .msg { max-width: 90%; }
    .qr-box { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .auth { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .auth-mobile-logo { display: block; }
}
@media (max-width: 820px) {
    .burger { display: block; }
    .nav { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .25rem; padding: 1rem 1.5rem 1.5rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(15, 23, 42, .1); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
    .nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
    .nav a:not(.btn) { padding: .85rem 1rem; font-size: 1rem; }
    .nav .btn { margin: .5rem 0 0; padding: .85rem; }
    .section { padding: 5rem 0; }
}
@media (max-width: 640px) {
    .services, .refs, .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 3.5rem 0 4rem; }
    .stats { gap: 1.75rem; }
    .chip { font-size: .78rem; padding: .5rem .75rem; }
    .chip-1 { left: 0; } .chip-2 { right: 0; }
    .cta-box { padding: 3.5rem 1.5rem; border-radius: 24px; }
    .products { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
    .field-row, .adm .form-row { grid-template-columns: 1fr; gap: 0; }
    .backup-codes { grid-template-columns: 1fr; }
    .prose, .checkout-grid > .card { padding: 1.75rem 1.25rem; }
    .success { padding: 2.5rem 1.5rem; }
    .app-bar .back-link span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
