/* ============================================================
   Baby Registry Ideas — premium editorial design
   Palette: sage, cream, warm earth, ink
   Typography: Fraunces (display), Mona Sans (body)
============================================================ */

:root {
    /* Colors */
    --bg:          #FBF8F1;
    --cream:       #F2EDE0;
    --paper:       #FFFFFF;
    --sage:        #5C7A65;
    --sage-deep:   #3F5A48;
    --sage-light:  #E8EFE8;
    --terra:       #D4806B;
    --terra-light: #F5DCD0;
    --rose:        #C97F75;
    --rose-light:  #F7E0DC;
    --gold:        #B8924A;
    --honey:       #F2E0B0;
    --ink:         #1F2419;
    --ink-2:       #4A5248;
    --ink-3:       #7B8478;
    --line:        rgba(31,36,25,.10);
    --line-soft:   rgba(31,36,25,.06);

    /* Type */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body:    'Mona Sans', 'Inter', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, monospace;

    /* Spacing */
    --container: 1180px;
    --radius:    14px;
    --radius-lg: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(31,36,25,.04);
    --shadow:    0 2px 12px rgba(31,36,25,.06);
    --shadow-md: 0 8px 24px rgba(31,36,25,.08);
    --shadow-lg: 0 20px 60px rgba(31,36,25,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    font-weight: 400;
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

/* Heading <em> accents stay upright in sage — never slanted */
h1 em, h2 em, h3 em, h4 em, h5 em, h6 em {
    font-style: normal !important;
    color: var(--sage-deep);
    font-weight: 400;
}
.accent {
    color: var(--sage-deep);
    font-weight: 400;
    font-style: normal;
}
.section-dark .accent,
.section-dark h1 em, .section-dark h2 em, .section-dark h3 em { color: var(--honey); }

/* ============================================================
   HEADER
============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(251,248,241,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
.hdr-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
}
.brand {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-display);
    font-size: 22px; font-weight: 500;
    color: var(--ink);
    letter-spacing: -.01em;
}
.brand-mark {
    width: 38px; height: 38px;
    background: var(--sage);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
}
.brand-mark::before { content: '◐'; transform: rotate(-30deg); display: inline-block; }
.nav-desk {
    display: flex; gap: 4px; align-items: center;
}
.nav-desk a {
    padding: 8px 14px;
    font-size: 14px; font-weight: 500;
    color: var(--ink-2);
    border-radius: 24px;
    transition: background .18s, color .18s;
}
.nav-desk a:hover { background: var(--cream); color: var(--ink); }
.nav-cta {
    background: var(--ink) !important;
    color: var(--bg) !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
}
.nav-cta:hover { background: var(--sage-deep) !important; color: #fff !important; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 22px; height: 1.5px; background: var(--ink); border-radius: 1px; transition: transform .2s, opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mob {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 80%; max-width: 320px;
    background: var(--paper);
    box-shadow: -8px 0 32px rgba(31,36,25,.12);
    transform: translateX(110%);
    transition: transform .3s ease;
    pointer-events: none;
    padding: 72px 0 24px;
    z-index: 9999;
    overflow-y: auto;
}
.nav-mob.open { transform: translateX(0); pointer-events: auto; }
.nav-mob a {
    display: block;
    padding: 14px 28px;
    font-size: 16px; font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
}
.nav-mob a:hover { background: var(--cream); }
.mob-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(31,36,25,.4);
    z-index: 9998;
}
.mob-overlay.open { display: block; }

/* ============================================================
   HERO
============================================================ */
.hero {
    position: relative;
    padding: 80px 24px 100px;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 85% 15%, var(--sage-light) 0%, transparent 35%),
        radial-gradient(circle at 15% 85%, var(--terra-light) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, var(--honey) 0%, transparent 25%);
    opacity: .6;
    z-index: 0;
}
.hero-inner {
    position: relative; z-index: 1;
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .14em;
    color: var(--sage-deep);
    background: var(--sage-light);
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 24px;
}
.hero-eyebrow::before { content: '◦'; font-size: 16px; line-height: 1; }
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 6.5vw, 78px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -.025em;
    color: var(--ink);
    margin-bottom: 24px;
}
.hero h1 em {
    font-style: normal;
    color: var(--sage-deep);
    font-weight: 400;
}
.hero-sub {
    font-size: 19px;
    color: var(--ink-2);
    line-height: 1.65;
    max-width: 480px;
    margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 15px 28px;
    border-radius: 32px;
    font-size: 15px; font-weight: 600;
    border: none; cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    font-family: inherit;
}
.btn-primary {
    background: var(--ink); color: var(--bg);
}
.btn-primary:hover { background: var(--sage-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
    background: var(--paper); color: var(--ink);
    border: 1.5px solid var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--bg); transform: translateY(-1px); }
.btn-sage {
    background: var(--sage); color: #fff;
}
.btn-sage:hover { background: var(--sage-deep); transform: translateY(-1px); }
.btn-amazon {
    background: linear-gradient(180deg, #FFA94D, #FF9000);
    color: #1a0d00;
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 13px; font-weight: 700;
    box-shadow: var(--shadow-sm);
}
.btn-amazon:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* Hero illustration card */
.hero-art {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 28px;
    background:
        linear-gradient(135deg, var(--sage) 0%, var(--sage-deep) 100%);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-art::before {
    content: '';
    position: absolute;
    top: -20%; right: -20%;
    width: 70%; aspect-ratio: 1;
    background: radial-gradient(circle, var(--honey) 0%, transparent 60%);
    opacity: .4;
}
.hero-art-svg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
}
.hero-art-stat {
    position: absolute;
    background: var(--paper);
    border-radius: 18px;
    padding: 18px 22px;
    box-shadow: var(--shadow-lg);
}
.hero-art-stat strong {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 500;
    color: var(--ink);
    display: block;
    line-height: 1;
    letter-spacing: -.02em;
}
.hero-art-stat span {
    font-size: 12px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
}
.stat-tl { top: 24px; left: 24px; }
.stat-br { bottom: 24px; right: 24px; }

/* Hero stats bar */
.hero-stats {
    max-width: var(--container);
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    background: var(--paper);
}
.hero-stats-item {
    text-align: center;
    padding: 12px 16px;
    border-right: 1px solid var(--line-soft);
}
.hero-stats-item:last-child { border-right: none; }
.hero-stats-item strong {
    font-family: var(--font-display);
    font-size: 32px; font-weight: 500;
    display: block; line-height: 1;
    color: var(--ink);
    letter-spacing: -.02em;
}
.hero-stats-item span {
    display: block; margin-top: 6px;
    font-size: 12px; font-weight: 600;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ============================================================
   SECTIONS
============================================================ */
.section { padding: 96px 24px; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--ink); color: var(--bg); }
.container { max-width: var(--container); margin: 0 auto; }

.section-head {
    display: flex; align-items: end; justify-content: space-between;
    margin-bottom: 56px; gap: 32px; flex-wrap: wrap;
}
.section-head-text { max-width: 600px; }
.section-eyebrow {
    display: inline-block;
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .14em;
    color: var(--sage-deep);
    margin-bottom: 16px;
}
.section-eyebrow::before {
    content: '— ';
    font-weight: 400;
}
.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -.02em;
    margin-bottom: 16px;
}
.section-head h2 em { font-style: normal; color: var(--sage-deep); font-weight: 400; }
.section-head p {
    font-size: 17px;
    color: var(--ink-2);
    line-height: 1.65;
    max-width: 540px;
}
.section-dark .section-head h2 { color: var(--bg); }
.section-dark .section-head h2 em { color: var(--honey); }
.section-dark .section-head p { color: rgba(251,248,241,.7); }
.section-dark .section-eyebrow { color: var(--honey); }

/* ============================================================
   TOOLS GRID — premium editorial cards
============================================================ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}
.tool-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
    transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, border-color .25s;
    display: flex; flex-direction: column;
    overflow: hidden;
    text-decoration: none; color: inherit;
}
.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--sage);
}
.tool-card[data-coming="true"] { opacity: .65; cursor: default; }
.tool-card[data-coming="true"]:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }

.tool-card.span-6  { grid-column: span 6; }
.tool-card.span-4  { grid-column: span 4; }
.tool-card.span-8  { grid-column: span 8; }
.tool-card.span-12 { grid-column: span 12; }
.tool-card.span-12 .tool-icon { margin-bottom: 16px; }
.tool-card.span-12 h3 { font-size: 30px; }
.tool-card.span-12 p { max-width: 640px; }

.tool-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    flex-shrink: 0;
}
.tool-icon.bg-sage  { background: var(--sage-light); }
.tool-icon.bg-rose  { background: var(--rose-light); }
.tool-icon.bg-terra { background: var(--terra-light); }
.tool-icon.bg-honey { background: var(--honey); }

.tool-card h3 {
    font-family: var(--font-display);
    font-size: 26px; font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.015em;
    margin-bottom: 10px;
    color: var(--ink);
}
.tool-card p {
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.6;
    margin-bottom: 24px;
}
.tool-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: auto;
    font-size: 14px; font-weight: 600;
    color: var(--sage-deep);
    transition: gap .18s;
}
.tool-card:hover .tool-link { gap: 12px; }
.tool-link::after {
    content: '→';
    font-size: 16px;
    transition: transform .18s;
}
.coming-pill {
    display: inline-block;
    position: absolute; top: 20px; right: 20px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em;
    background: var(--ink);
    color: var(--bg);
    padding: 4px 10px;
    border-radius: 12px;
}

/* ============================================================
   PRODUCTS — magazine-style grid
============================================================ */
.cat-filter {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line-soft);
}
.cat-pill {
    padding: 9px 18px;
    border-radius: 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    font-size: 13px; font-weight: 600;
    color: var(--ink-2);
    cursor: pointer;
    transition: all .18s;
}
.cat-pill:hover { border-color: var(--sage); color: var(--ink); }
.cat-pill.active {
    background: var(--ink); color: var(--bg);
    border-color: var(--ink);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.product-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    display: flex; flex-direction: column;
    position: relative;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.product-card.hidden { display: none; }

.product-img {
    aspect-ratio: 1/1;
    background: var(--cream);
    position: relative;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.product-img img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 24px;
    transition: transform .35s;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-fallback {
    font-size: 56px;
    opacity: .6;
}
.product-badge {
    position: absolute; top: 14px; left: 14px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    padding: 5px 11px;
    border-radius: 14px;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}
.product-badge.b-top   { background: var(--sage); color: #fff; }
.product-badge.b-must  { background: var(--ink); color: var(--bg); }
.product-badge.b-budget{ background: var(--honey); color: var(--gold); }
.product-badge.b-splurge { background: var(--rose-light); color: var(--rose); }

.product-body {
    padding: 20px 22px 22px;
    display: flex; flex-direction: column;
    flex: 1;
}
.product-cat {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em;
    color: var(--ink-3);
    margin-bottom: 8px;
}
.product-name {
    font-family: var(--font-display);
    font-size: 17px; font-weight: 500;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--ink);
    margin-bottom: 8px;
}
.product-desc {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.55;
    margin-bottom: 16px;
    flex: 1;
}
.product-footer {
    display: flex; align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}
.product-price {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 500;
    color: var(--ink);
    letter-spacing: -.01em;
}

/* ============================================================
   AD SLOT
============================================================ */
.ad-wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.ad-placeholder {
    background: var(--paper);
    border: 1.5px dashed var(--line);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    font-size: 12px; font-weight: 600;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: .15em;
    margin: 32px 0;
}

/* ============================================================
   DISCLOSURE
============================================================ */
.disclosure {
    background: var(--cream);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    padding: 18px 24px;
    text-align: center;
    font-size: 13px;
    color: var(--ink-2);
}
.disclosure strong { color: var(--ink); }

/* ============================================================
   FOOTER
============================================================ */
.footer {
    background: var(--ink);
    color: rgba(251,248,241,.65);
    padding: 64px 24px 40px;
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 48px;
}
.footer .brand { color: var(--bg); margin-bottom: 16px; }
.footer .brand-mark { background: rgba(251,248,241,.12); color: var(--bg); }
.footer-brand p {
    font-size: 14px; line-height: 1.7;
    max-width: 280px;
    margin-bottom: 12px;
}
.footer-copy { font-size: 12px; color: rgba(251,248,241,.4); }
.footer-col h4 {
    font-family: var(--font-display);
    font-size: 15px; font-weight: 500;
    color: var(--bg);
    margin-bottom: 18px;
}
.footer-col a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: rgba(251,248,241,.6);
    transition: color .18s;
}
.footer-col a:hover { color: var(--bg); }

/* Back to top */
.btt {
    position: fixed; bottom: 24px; right: 24px;
    width: 48px; height: 48px;
    background: var(--ink); color: var(--bg);
    border: none; border-radius: 50%;
    cursor: pointer; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    opacity: 0; transform: translateY(20px);
    transition: opacity .25s, transform .25s, background .18s;
}
.btt.show { opacity: 1; transform: translateY(0); }
.btt:hover { background: var(--sage-deep); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
    .nav-desk { display: none; }
    .burger { display: flex; }
    .hero { padding: 56px 20px 72px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-art { aspect-ratio: 1/1; max-width: 400px; margin: 0 auto; }
    .section { padding: 64px 20px; }
    .section-head { flex-direction: column; align-items: start; }
    .tools-grid { grid-template-columns: 1fr; gap: 14px; }
    .tool-card.span-6, .tool-card.span-4, .tool-card.span-8, .tool-card.span-12 { grid-column: span 1; }
    .tool-card.span-12 h3 { font-size: 26px; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .hero-stats-item:nth-child(2) { border-right: none; }
    .hero-stats-item:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .product-body { padding: 14px 16px 16px; }
    .product-name { font-size: 14px; }
    .product-desc { display: none; }
    .product-price { font-size: 15px; }
    .btn-amazon { padding: 8px 12px; font-size: 11px; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   ADMIN STYLES
============================================================ */
.adm-shell { min-height: 100vh; background: var(--bg); }
.adm-top {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
}
.adm-top h1 {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 500;
}
.adm-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.adm-tabs a {
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px; font-weight: 600;
    color: var(--ink-2);
    background: var(--cream);
    transition: all .18s;
}
.adm-tabs a:hover { background: var(--sage-light); color: var(--ink); }
.adm-tabs a.active { background: var(--ink); color: var(--bg); }
.adm-tabs a.logout { color: var(--rose); }

.adm-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
.adm-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}
.adm-card h2 {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 500;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-soft);
}
.adm-field { margin-bottom: 20px; }
.adm-field label {
    display: block;
    font-size: 13px; font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 8px;
}
.adm-field label small { color: var(--ink-3); font-weight: 400; }
.adm-field input, .adm-field select, .adm-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    font-size: 14px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.adm-field input:focus, .adm-field select:focus, .adm-field textarea:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(92,122,101,.12);
}
.adm-field textarea { min-height: 80px; resize: vertical; }
.adm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adm-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.adm-hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}
.alert-success { background: var(--sage-light); color: var(--sage-deep); }
.alert-error   { background: var(--rose-light); color: var(--rose); }

.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th {
    text-align: left;
    padding: 10px 14px;
    background: var(--cream);
    font-size: 11px; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ink-3);
    border-bottom: 1px solid var(--line);
}
.adm-table td {
    padding: 14px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
}
.adm-table tr:hover td { background: var(--cream); }
.btn-sm {
    display: inline-block;
    padding: 7px 14px; border-radius: 8px;
    font-size: 12px; font-weight: 600;
    background: var(--cream);
    border: 1px solid var(--line);
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
}
.btn-sm:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-danger {
    padding: 7px 14px; border-radius: 8px;
    background: var(--rose-light); color: var(--rose);
    border: 1px solid var(--rose-light);
    font-size: 12px; font-weight: 600;
    cursor: pointer;
}
.btn-danger:hover { background: var(--rose); color: #fff; }
.status-live {
    background: var(--sage-light); color: var(--sage-deep);
    padding: 5px 11px; border-radius: 12px;
    font-size: 11px; font-weight: 700;
    border: 1px solid transparent; cursor: pointer;
}
.status-hidden {
    background: var(--cream); color: var(--ink-3);
    padding: 5px 11px; border-radius: 12px;
    font-size: 11px; font-weight: 700;
    border: 1px solid transparent; cursor: pointer;
}

/* ============================================================
   TOOL-PAGE COMMON STYLES
============================================================ */
.tool-hero {
    background: linear-gradient(135deg, var(--sage-light) 0%, var(--cream) 100%);
    padding: 64px 24px 80px;
    text-align: center;
    border-bottom: 1px solid var(--line-soft);
}
.tool-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1.05;
    color: var(--ink);
    margin-bottom: 16px;
    max-width: 720px;
    margin-left: auto; margin-right: auto;
}
.tool-hero h1 em { font-style: normal; color: var(--sage-deep); font-weight: 400; }
.tool-hero p {
    font-size: 17px;
    color: var(--ink-2);
    line-height: 1.65;
    max-width: 580px;
    margin: 0 auto;
}
.tool-wrap {
    max-width: 920px;
    margin: -40px auto 80px;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}
.tool-panel {
    background: var(--paper);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}
.tool-section-title {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 500;
    margin-bottom: 24px;
    color: var(--ink);
}
.tool-disclaimer {
    background: var(--honey);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 13px;
    color: var(--ink-2);
    margin-bottom: 24px;
    border-left: 3px solid var(--gold);
}
.tool-disclaimer strong { color: var(--gold); }

/* ============================================================
   SHARED TOOL-PAGE COMPONENTS
   Used across all /tools/*.php pages
============================================================ */

/* Pill-style toggle buttons (size, type, brand, gender tabs) */
.size-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1.5px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    cursor: pointer;
    transition: all .15s ease;
    font-family: inherit;
    line-height: 1.2;
    white-space: nowrap;
}
.size-btn:hover {
    border-color: var(--sage);
    color: var(--sage-deep);
    background: var(--sage-light);
}
.size-btn.active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}
.size-btn.active:hover {
    background: var(--sage-deep);
    border-color: var(--sage-deep);
}

/* Card-style toggle buttons (brand grid) */
.brand-btn {
    padding: 14px 12px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    cursor: pointer;
    text-align: center;
    transition: all .15s ease;
    font-family: inherit;
    line-height: 1.3;
}
.brand-btn:hover {
    border-color: var(--sage);
    background: var(--sage-light);
}
.brand-btn.active {
    background: var(--sage-light);
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(92,122,101,.12);
}
.brand-btn .b-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    display: block;
    margin-bottom: 3px;
}
.brand-btn .b-price {
    font-size: 11px;
    color: var(--ink-3);
    font-weight: 500;
    display: block;
}

/* Range sliders */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(31,36,25,.10);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sage);
    cursor: pointer;
    border: 3px solid var(--paper);
    box-shadow: 0 2px 6px rgba(31,36,25,.18);
    transition: transform .12s;
}
input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.12);
}
input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sage);
    cursor: pointer;
    border: 3px solid var(--paper);
    box-shadow: 0 2px 6px rgba(31,36,25,.18);
}

/* Tip items (used in multiple tools) */
.tip-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
    align-items: flex-start;
}
.tip-item:last-child { border-bottom: none; }
.tip-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--sage-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.tip-item h4 {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--ink);
}
.tip-item p {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.55;
    margin: 0;
}

/* Tool-page input field improvements */
.tool-panel .adm-field input[type="text"],
.tool-panel .adm-field input[type="number"],
.tool-panel .adm-field input[type="date"],
.tool-panel .adm-field input[type="time"],
.tool-panel .adm-field input[type="url"],
.tool-panel .adm-field select,
.tool-panel .adm-field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.tool-panel .adm-field input:focus,
.tool-panel .adm-field select:focus,
.tool-panel .adm-field textarea:focus {
    border-color: var(--sage);
    background: var(--paper);
    box-shadow: 0 0 0 4px rgba(92,122,101,.12);
}
.tool-panel .adm-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
}
.tool-panel .adm-field label small {
    color: var(--ink-3);
    font-weight: 500;
    margin-left: 4px;
}

/* Mobile tweaks for tool buttons */
@media (max-width: 600px) {
    .size-btn { padding: 9px 14px; font-size: 12px; }
    .brand-btn { padding: 12px 8px; }
}
