/* ═══════════════════════════════════════════════════════
   Mano Services — PayNow Template
   Colors, fonts and radii come from schema.json via
   the :root block injected in layout.html.
   ═══════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
.container { width: min(1200px, 92%); margin: 0 auto; }
main { flex: 1; }

/* ── Header / Nav ─────────────────────────────────────── */
header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 26px; min-height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: .3px; }
.logo img { height: 40px; }
.logo b { color: #fff; }
.logo span { color: var(--red2); font-weight: 600; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a { color: var(--gray); font-size: .93rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: color-mix(in srgb, var(--red) 12%, transparent); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cart-btn { position: relative; }
.cart-count {
    position: absolute; top: -6px; right: -6px;
    background: var(--red); color: #fff;
    font-size: .68rem; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, var(--red), var(--red2));
    color: #fff; border: none; border-radius: var(--btn-radius);
    padding: 11px 22px; font-size: .95rem; font-weight: 600;
    cursor: pointer; transition: .2s; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px color-mix(in srgb, var(--red) 45%, transparent); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--white); }
.btn-outline:hover { border-color: var(--red); box-shadow: 0 0 18px color-mix(in srgb, var(--red) 22%, transparent); }
.btn-sm { padding: 8px 14px; font-size: .85rem; border-radius: calc(var(--btn-radius) - 2px); }
.btn-lg { padding: 14px 28px; font-size: 1.03rem; }
.btn-block { width: 100%; }
.btn-danger { background: transparent; border: 1px solid color-mix(in srgb, var(--red) 55%, transparent); color: #fca5a5; }
.btn-danger:hover { background: color-mix(in srgb, var(--red) 14%, transparent); }
.btn-ghost { background: none; border: none; color: var(--gray); cursor: pointer; font-size: .82rem; }
.btn-ghost:hover { color: var(--red2); }

/* ── Notices ──────────────────────────────────────────── */
.notice { padding: 13px 18px; border-radius: var(--btn-radius); margin: 18px auto; font-size: .92rem; border: 1px solid; }
.notice.error { background: color-mix(in srgb, var(--red) 10%, transparent); border-color: color-mix(in srgb, var(--red) 45%, transparent); color: #fca5a5; }
.notice.ok { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.4); color: #86efac; }

/* ── Hero ─────────────────────────────────────────────── */
.hero { position: relative; text-align: center; padding: 96px 0 64px; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: -40% -20% auto; height: 160%;
    background: radial-gradient(620px 340px at 50% 18%, color-mix(in srgb, var(--red) 28%, transparent), transparent 70%);
    pointer-events: none;
}
.hero h1 { position: relative; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.15; }
.hero h1 span, .hero h1 em { background: linear-gradient(135deg, var(--red), var(--red2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }
.hero p { position: relative; color: var(--gray); font-size: 1.1rem; margin: 18px auto 30px; max-width: 580px; }
.hero-cta { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Services strip ───────────────────────────────────── */
.services { display: flex; justify-content: center; gap: 38px; flex-wrap: wrap; padding: 30px 0 10px; position: relative; }
.service { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--gray); font-size: .85rem; font-weight: 500; }
.service .ic {
    width: 48px; height: 48px; border-radius: 12px;
    background: color-mix(in srgb, var(--red) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--red) 30%, transparent);
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}

/* ── Sections / headings ──────────────────────────────── */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2, .page-title h1 { font-size: 1.7rem; font-weight: 800; }
.section-head h2 em, .page-title h1 em, .heading-accent em { color: var(--red2); font-style: normal; }
.page-title { padding: 48px 0 10px; position: relative; }
.page-title p { color: var(--gray); margin-top: 8px; max-width: 640px; }
.crumbs { color: var(--gray); font-size: .85rem; padding: 26px 0 0; }
.crumbs a:hover { color: var(--red2); }

/* ── Product grid / cards ─────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--card-radius); overflow: hidden; transition: .22s;
}
.card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--red) 55%, transparent);
    box-shadow: 0 12px 34px color-mix(in srgb, var(--red) 18%, transparent);
}
.thumb { aspect-ratio: 16/10; background: #0e0e10; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph-icon { font-size: 2rem; opacity: .25; }
.pc-body { padding: 16px 18px 18px; }
.pc-body h3 { font-size: 1.02rem; font-weight: 600; margin: 6px 0 10px; }
.badge {
    display: inline-block; background: linear-gradient(135deg, var(--red), var(--red2));
    color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .4px;
    text-transform: uppercase; padding: 4px 9px; border-radius: 6px; margin: 0 5px 6px 0;
}
.badge.dark { background: var(--border); }
.price { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; }
.price s { color: var(--gray); font-weight: 400; font-size: .85rem; }
.price .cur { color: var(--red2); font-size: .8rem; font-weight: 600; }

/* ── Panels / modules ─────────────────────────────────── */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 26px; }
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 6px 0 10px; }
.module h4 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.module h4::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(var(--red), var(--red2)); }
.row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.row:last-child { border-bottom: none; }
.row img { width: 34px; height: 34px; border-radius: 8px; }
.row .grow { flex: 1; min-width: 0; }
.row .muted { color: var(--gray); font-size: .78rem; }
.avatar-ph { width: 34px; height: 34px; border-radius: 8px; background: color-mix(in srgb, var(--red) 16%, transparent); display: flex; align-items: center; justify-content: center; }
.pbar { height: 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 99px; overflow: hidden; margin: 10px 0 8px; }
.pbar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--red2)); border-radius: 99px; }
.pbar > i.striped {
    background-image: linear-gradient(45deg, rgba(255,255,255,.18) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.18) 50%, rgba(255,255,255,.18) 75%, transparent 75%, transparent);
    background-size: 22px 22px;
}
.pbar > i.animated { animation: slide 1s linear infinite; }
@keyframes slide { to { background-position: 22px 0; } }

/* ── Forms ────────────────────────────────────────────── */
.input, select.input {
    width: 100%; background: var(--panel); border: 1px solid var(--border);
    border-radius: var(--btn-radius); color: var(--white);
    padding: 11px 14px; font-family: inherit; font-size: .93rem;
}
.input:focus { outline: none; border-color: var(--red); }
.field { margin: 14px 0; }
.field label { display: block; font-size: .83rem; font-weight: 600; color: var(--gray); margin-bottom: 7px; }
.qty { display: flex; align-items: center; width: fit-content; border: 1px solid var(--border); border-radius: var(--btn-radius); overflow: hidden; }
.qty button { background: var(--panel); border: none; color: var(--white); width: 40px; height: 42px; font-size: 1.1rem; cursor: pointer; }
.qty button:hover { background: color-mix(in srgb, var(--red) 18%, transparent); }
.qty input { width: 56px; height: 42px; text-align: center; background: var(--card); border: none; color: #fff; font-weight: 700; font-size: 1rem; }
.qty span { width: 44px; text-align: center; font-weight: 700; }

/* ── Product page ─────────────────────────────────────── */
.product { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; padding: 26px 0 60px; align-items: start; }
.gallery { background: var(--card); border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; }
.gallery .ph {
    aspect-ratio: 16/11; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(420px 260px at 50% 30%, color-mix(in srgb, var(--red) 16%, transparent), transparent 70%), #101012;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.desc { padding: 26px; border-top: 1px solid var(--border); }
.desc h3 { font-size: 1.05rem; margin-bottom: 12px; }
.desc-content { color: var(--gray); font-size: .94rem; line-height: 1.75; }
.desc-content h1, .desc-content h2, .desc-content h3 { color: var(--white); margin: 16px 0 8px; }
.desc-content ul, .desc-content ol { padding-left: 22px; margin: 8px 0; }
.desc-content a { color: var(--red2); }
.desc-content img { border-radius: 10px; margin: 10px 0; }
.buy { background: var(--card); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 26px; position: sticky; top: 96px; }
.buy h1 { font-size: 1.55rem; font-weight: 700; line-height: 1.25; margin-bottom: 14px; }
.price-line { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.price-line .now { font-size: 2rem; font-weight: 800; color: #fff; }
.price-line .was { color: var(--gray); text-decoration: line-through; }
.price-line .cur { color: var(--red2); font-weight: 700; }
.vat { color: var(--gray); font-size: .8rem; margin-bottom: 18px; }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.hint { color: var(--gray); font-size: .8rem; text-align: center; margin-top: 12px; }
.trust { display: flex; justify-content: center; gap: 20px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--gray); font-size: .78rem; flex-wrap: wrap; }
.hidden { display: none !important; }

/* ── Store page layout ────────────────────────────────── */
.layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 34px 0 60px; }
.filters h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; color: var(--gray); margin-bottom: 12px; }
.filters a {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px;
    border-radius: 9px; color: var(--gray); font-size: .92rem; font-weight: 500;
    transition: .2s; border: 1px solid transparent;
}
.filters a:hover { color: #fff; background: color-mix(in srgb, var(--red) 9%, transparent); }
.filters a.active { color: #fff; background: color-mix(in srgb, var(--red) 14%, transparent); border-color: color-mix(in srgb, var(--red) 50%, transparent); }
.filters a img { width: 22px; height: 22px; border-radius: 5px; }

/* ── Cart page ────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 28px 0 60px; align-items: start; }
.lines { display: flex; flex-direction: column; gap: 14px; }
.line { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 16px; align-items: center; }
.line .img { width: 88px; height: 66px; border-radius: 10px; overflow: hidden; background: #0e0e10; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.line .img img { width: 100%; height: 100%; object-fit: cover; }
.line .info { flex: 1; min-width: 0; }
.line .info h3 { font-size: 1rem; font-weight: 600; }
.line .info h3 a:hover { color: var(--red2); }
.line .meta { color: var(--gray); font-size: .8rem; margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.tagchip { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red2); border-radius: 6px; padding: 2px 8px; font-size: .72rem; font-weight: 600; }
.line .price { font-weight: 700; min-width: 100px; text-align: right; flex-shrink: 0; }
.summary { background: var(--card); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 24px; position: sticky; top: 96px; }
.summary h3 { font-size: 1.1rem; margin-bottom: 16px; }
.sumrow { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; color: var(--gray); font-size: .92rem; }
.sumrow.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; color: #fff; font-weight: 800; font-size: 1.15rem; }

/* ── Account / subscriptions ──────────────────────────── */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 24px; }
.tabs a { padding: 9px 16px; border-radius: var(--btn-radius); border: 1px solid var(--border); color: var(--gray); font-size: .9rem; font-weight: 600; transition: .2s; }
.tabs a:hover { color: #fff; border-color: var(--red); }
.tabs a.active { color: #fff; background: color-mix(in srgb, var(--red) 14%, transparent); border-color: color-mix(in srgb, var(--red) 55%, transparent); }
.sub { background: var(--card); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 22px 24px; margin-bottom: 16px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.sub .info { flex: 1; min-width: 220px; }
.sub h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.sub .meta { color: var(--gray); font-size: .84rem; display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.status { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 4px 10px; border-radius: 6px; }
.status.active { background: rgba(34,197,94,.14); color: #4ade80; border: 1px solid rgba(34,197,94,.35); }
.status.canceled { background: rgba(163,163,163,.12); color: var(--gray); border: 1px solid var(--border); }
.status.other { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red2); border: 1px solid color-mix(in srgb, var(--red) 35%, transparent); }
.amount { text-align: right; }
.amount .num { font-size: 1.25rem; font-weight: 800; }
.amount .per { color: var(--gray); font-size: .8rem; }

/* ── Auth / complete pages ────────────────────────────── */
.center-page { flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px 0; }
.center-card {
    position: relative; text-align: center;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 20px; padding: 56px 44px; max-width: 560px; width: 100%; overflow: hidden;
}
.center-card::before {
    content: ""; position: absolute; inset: -60% -20% auto; height: 150%;
    background: radial-gradient(420px 240px at 50% 20%, color-mix(in srgb, var(--red) 22%, transparent), transparent 70%);
    pointer-events: none;
}
.center-card > * { position: relative; }
.center-card h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.center-card p { color: var(--gray); line-height: 1.7; margin-bottom: 8px; }
.check {
    width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red2));
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem; color: #fff;
    box-shadow: 0 10px 40px color-mix(in srgb, var(--red) 50%, transparent);
    animation: pop .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.msg { background: color-mix(in srgb, var(--red) 8%, transparent); border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); border-radius: 12px; padding: 16px; margin: 22px 0; color: var(--white); font-size: .95rem; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ── Prose (custom pages / home sections) ─────────────── */
.prose { color: var(--gray); font-size: .96rem; line-height: 1.8; }
.prose h1, .prose h2, .prose h3 { color: var(--white); margin: 18px 0 10px; }
.prose ul, .prose ol { padding-left: 22px; margin: 10px 0; }
.prose a { color: var(--red2); }
.prose img { border-radius: 10px; margin: 12px 0; }

/* ── Empty states ─────────────────────────────────────── */
.empty { padding: 80px 0; text-align: center; color: var(--gray); }
.empty .big { font-size: 3rem; margin-bottom: 12px; opacity: .4; }
.empty h3 { color: var(--white); font-size: 1.35rem; margin-bottom: 8px; }
.empty a.link { color: var(--red2); }

/* ── Footer ───────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); background: #0a0a0a; margin-top: 40px; }
.foot { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; padding: 40px 0 24px; }
.foot .col h5 { font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; color: #fff; }
.foot .col a { display: block; color: var(--gray); font-size: .88rem; padding: 4px 0; transition: .2s; }
.foot .col a:hover { color: var(--red2); }
.foot-tag { color: var(--gray); font-size: .9rem; max-width: 280px; margin-top: 12px; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { display: inline-flex !important; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 9px; align-items: center; justify-content: center; transition: .2s; }
.socials a:hover { border-color: var(--red); }
.copyright { border-top: 1px solid var(--border); text-align: center; color: #6b6b6b; font-size: .8rem; padding: 18px 0; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
    .product { grid-template-columns: 1fr; }
    .buy, .summary { position: static; }
    .cart-layout { grid-template-columns: 1fr; }
    .layout { grid-template-columns: 1fr; }
    .filters { display: flex; gap: 8px; flex-wrap: wrap; }
    .filters h4 { width: 100%; }
}
@media (max-width: 720px) {
    .nav { flex-wrap: wrap; padding: 12px 0; }
    .section-head { flex-direction: column; align-items: start; }
    .line { flex-wrap: wrap; }
    .line .price { min-width: 0; }
}
