/*
 * DigFair theme (17.10.2026 redesign, replaces style.css).
 * One look for every public and account page: cream parchment, wood top bar, copper actions, gold only for badges and prices.
 * Bootstrap stays for grid, utilities and modals; this file owns colors, type, cards, forms and page layouts.
 * Sections: 1 tokens · 2 base · 3 buttons, badges, notices · 4 shell (header, footer) · 5 page head · 6 cards and grids
 *           7 forms · 8 pages (home, advertise, market, product, directory, news, blog, cart, auth, faq)
 *           9 account area · 10 overlays (lightbox, sign-in popup, ads) · 11 small screens
 */

/* ---------- 1. Tokens ---------- */
:root {
  --df-bg: #f6eee2;
  --df-bg-2: #efe4d3;
  --df-card: #fffaf3;
  --df-card-2: #fbf3e7;
  --df-line: #e6d6c0;
  --df-line-2: #d8c3a5;
  --df-ink: #2b1e15;
  --df-ink-2: #594636;
  --df-muted: #86705d;
  --df-wood: #2a1c13;
  --df-wood-2: #3b281b;
  --df-copper: #b5552b;
  --df-copper-2: #96421d;
  --df-copper-soft: #f6dfcf;
  --df-gold: #e2a336;
  --df-gold-soft: #fbeac6;
  --df-ok: #3d7a4b;
  --df-ok-soft: #e1f0e2;
  --df-err: #b23a2a;
  --df-err-soft: #f8e0db;
  --df-radius: 14px;
  --df-radius-sm: 10px;
  --df-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 8px 22px -14px rgba(70, 40, 15, .45);
  --df-shadow-lift: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 14px 30px -14px rgba(70, 40, 15, .5);
  --df-font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --df-wrap: 1200px;
}

/* ---------- 2. Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--df-bg); color: var(--df-ink); font-family: var(--df-font); font-size: 15px; font-weight: 600; line-height: 1.55; }
a { color: var(--df-copper); text-decoration: none; }
a:hover { color: var(--df-copper-2); }
h1, h2, h3, h4, h5, h6, .h3, .h4, .h5, .h6 { color: var(--df-ink); font-family: var(--df-font); font-weight: 900; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2, .h4 { font-size: 1.25rem; }
h3, .h5 { font-size: 1.05rem; }
.h6 { font-size: .95rem; }
p { margin: 0 0 .75rem; }
img { max-width: 100%; height: auto; }
code { padding: 2px 6px; border-radius: 6px; background: var(--df-gold-soft); color: var(--df-ink); font-weight: 800; }
hr { border-color: var(--df-line); opacity: 1; }
[hidden] { display: none !important; }
.muted, .text-muted { color: var(--df-muted) !important; }
.lead { font-size: 1rem; font-weight: 600; color: var(--df-ink-2); }
.eyebrow, .kicker, .dg-kicker, .studio-kicker { display: block; margin: 0 0 4px; color: var(--df-copper); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.text-link { padding: 0; border: 0; background: none; color: var(--df-copper); font-weight: 800; }
.text-link:hover { color: var(--df-copper-2); text-decoration: underline; }
.shell { width: 100%; max-width: var(--df-wrap); margin: 0 auto; padding: 0 16px; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; padding: 0 !important; }
.section, .studio-section, .dg-section, .content-page { padding: 22px 0; }
.section.pt-0 { padding-top: 0; }
.section-head, .studio-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2, .studio-section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; }
.rich h3 { margin: 18px 0 8px; }
.rich ul { padding-left: 1.2rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.empty { padding: 28px 20px; border: 1px dashed var(--df-line-2); border-radius: var(--df-radius); background: var(--df-card); text-align: center; color: var(--df-muted); }
.empty h2, .empty h3 { color: var(--df-ink); font-size: 1.05rem; }

/* ---------- 3. Buttons, badges, notices ---------- */
.button, .dg-btn, .btn-primary, .btn-warning {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 18px; border: 1px solid var(--df-copper-2); border-radius: var(--df-radius-sm);
  background: linear-gradient(180deg, #c96535, var(--df-copper)); color: #fff !important;
  font: 800 .92rem/1.2 var(--df-font); text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 4px 10px -4px rgba(150, 66, 29, .55);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.button:hover, .dg-btn:hover, .btn-primary:hover, .btn-warning:hover { background: linear-gradient(180deg, #bf5b2c, var(--df-copper-2)); transform: translateY(-1px); }
.button:active, .dg-btn:active { transform: none; }
.button-primary, .button-lime { /* one action color: lime and primary are the same copper button */ }
.button-line, .button-light, .button-ghost, .dg-btn.is-ghost, .btn-outline-secondary {
  border-color: var(--df-line-2); background: var(--df-card); color: var(--df-ink) !important; box-shadow: none;
}
.button-line:hover, .button-light:hover, .button-ghost:hover, .dg-btn.is-ghost:hover, .btn-outline-secondary:hover { border-color: var(--df-copper); background: var(--df-card-2); color: var(--df-copper-2) !important; }
.button-small, .btn-sm { min-height: 32px; padding: 5px 12px; font-size: .84rem; }
.btn-outline-danger { border-radius: var(--df-radius-sm); font-weight: 800; }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--df-gold-soft); color: #7a4b0c; font-size: .72rem; font-weight: 900; letter-spacing: .02em; }
.badge.bg-warning { background: var(--df-gold-soft) !important; color: #7a4b0c !important; }
.badge-paid, .badge-fulfilled, .badge-active, .badge-published, .badge-completed, .badge-open { background: var(--df-ok-soft); color: var(--df-ok); }
.badge-pending, .badge-review, .badge-processing, .badge-waiting { background: var(--df-gold-soft); color: #7a4b0c; }
.badge-cancelled, .badge-expired, .badge-failed, .badge-rejected, .badge-closed { background: var(--df-err-soft); color: var(--df-err); }
.notice, .alert { margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--df-line); border-radius: var(--df-radius-sm); background: var(--df-card-2); color: var(--df-ink); font-weight: 700; }
.notice-error, .alert-danger { border-color: #e9b8ae; background: var(--df-err-soft); color: #7e2214; }
.notice-success, .alert-success { border-color: #b8d8bd; background: var(--df-ok-soft); color: #22502c; }
.alert-info, .alert-warning { border-color: #ecd29b; background: var(--df-gold-soft); color: #6b4309; }

/* ---------- 4. Shell: header, footer ---------- */
.site-shell > header { position: sticky; top: 0; z-index: 1030; background: linear-gradient(180deg, var(--df-wood-2), var(--df-wood)); box-shadow: 0 2px 0 rgba(226, 163, 54, .35), 0 8px 18px -12px rgba(0, 0, 0, .6); }
.site-shell > header .navbar { max-width: var(--df-wrap); min-height: 60px; margin: 0 auto; padding: 6px 16px !important; display: flex; flex-wrap: nowrap; align-items: center; gap: 18px; }
.navbar-brand { margin: 0; padding: 0; }
.navbar-brand img { display: block; width: 116px; height: auto; }
.public-nav-links { flex: 1; min-width: 0; }
.studio-main-nav { display: flex; flex-direction: row; gap: 2px; margin: 0; padding: 0; list-style: none; }
.studio-main-nav .nav-link { display: block; padding: 7px 12px !important; border-radius: 9px; color: #f3e3cc !important; font-weight: 800; font-size: .93rem; }
.studio-main-nav .nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff !important; }
.studio-main-nav .nav-link.is-active { background: rgba(226, 163, 54, .18); color: #ffd58a !important; box-shadow: 0 0 0 1px rgba(226, 163, 54, .35) inset; }
.public-nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.public-nav-actions .dg-btn { min-height: 36px; padding: 6px 14px; }
.public-nav-actions .dg-btn.is-ghost { border-color: rgba(243, 227, 204, .45); background: transparent; color: #f3e3cc !important; }
.public-nav-actions .dg-btn.is-ghost:hover { border-color: var(--df-gold); color: #fff !important; }
.dg-header-cart { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.dg-header-cart:hover { background: rgba(255, 255, 255, .12); }
.dg-header-cart img { width: 26px; height: 26px; }
.dg-header-cart span { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--df-gold); color: var(--df-wood); font-size: .7rem; font-weight: 900; line-height: 18px; text-align: center; }
.site-footer { margin-top: auto; padding: 26px 0 14px; background: var(--df-wood); color: #d9c4a8; }
.site-footer a { display: block; padding: 2px 0; color: #f3e3cc; font-weight: 700; }
.site-footer a:hover { color: var(--df-gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 20px; }
.footer-grid strong { display: block; margin-bottom: 6px; color: var(--df-gold); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-brand img { width: 120px; height: auto; margin-bottom: 8px; }
.footer-brand p { max-width: 280px; font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(243, 227, 204, .14); font-size: .84rem; }
.footer-bottom a { display: inline; }

/* ---------- 5. Page head: one compact card on every page (golden rule 16.10) ---------- */
.page-hero, .dg-page-hero, .account-head { position: relative; }
.page-hero { padding: 16px 0 6px; }
.page-hero > .shell, .dg-page-hero, .account-head {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: calc(var(--df-wrap) - 32px); margin: 0 auto;
  padding: 16px 300px 16px 22px; border: 1px solid var(--df-line); border-radius: var(--df-radius);
  background: var(--df-card) url('/img/commerce/network-header.webp') right center / auto 100% no-repeat;
  box-shadow: var(--df-shadow);
}
.page-hero > .shell::before, .dg-page-hero::before, .account-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--df-card) 0, var(--df-card) calc(100% - 330px), rgba(255, 250, 243, .55) calc(100% - 210px), rgba(255, 250, 243, 0) 100%);
}
.page-hero .eyebrow, .dg-page-hero .eyebrow, .account-head .eyebrow { display: none; }
.page-hero h1, .dg-page-hero h1, .account-head h1 { margin: 0 0 3px; font-size: 1.45rem; }
.page-hero .lead, .dg-page-hero p, .account-head p { margin: 0; color: var(--df-ink-2); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.page-hero .hero-note { margin-top: 6px; font-size: .86rem; color: var(--df-ink-2); }
.dg-page-hero { margin-bottom: 16px; background-size: auto 100% !important; background-position: right center !important; background-repeat: no-repeat !important; }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding-right: 22px; background-image: none; }
.account-head::before { background: linear-gradient(90deg, var(--df-card), var(--df-card-2)); }
.account-head > .button, .account-head > a.button { flex: 0 0 auto; }
.market-tools { display: flex; gap: 8px; max-width: 620px; margin-top: 10px; }
.market-tools .form-control { min-height: 38px; }
.market-tools select.form-control { max-width: 190px; }

/* ---------- 6. Cards and grids ---------- */
.panel, .form-card, .card, .dg-card, .feature-card, .plan-card, .listing-card, .stat-card, .quick-card, .order-summary, .studio-faq-card, .coupon-card, .news-item {
  border: 1px solid var(--df-line); border-radius: var(--df-radius); background: var(--df-card); box-shadow: var(--df-shadow);
}
.panel, .form-card, .dg-card, .order-summary { padding: 18px 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.panel-head h3 { margin: 0; }
.card { overflow: hidden; }
.card-header { padding: 12px 18px; border-bottom: 1px solid var(--df-line); background: var(--df-card-2); font-weight: 900; }
.card-body { padding: 16px 18px; }
.product-grid, .studio-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--df-line); border-radius: var(--df-radius); background: var(--df-card); box-shadow: var(--df-shadow); transition: transform .15s ease, box-shadow .15s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--df-shadow-lift); }
.product-visual { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--df-bg-2); border-bottom: 1px solid var(--df-line); color: var(--df-ink); }
.product-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cover-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 14px; background: linear-gradient(135deg, var(--df-wood-2), var(--df-copper)); color: #fff; }
.cover-fallback small { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .3); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.cover-fallback strong { font-size: 1.15rem; line-height: 1.15; }
.sale-tag { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 8px; background: var(--df-err); color: #fff; font-size: .78rem; font-weight: 900; }
.product-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.product-body .badge { align-self: flex-start; }
.product-body h3 { margin: 0; font-size: 1rem; }
.product-body h3 a { color: var(--df-ink); }
.product-body h3 a:hover { color: var(--df-copper); }
.product-body > p { margin: 0; font-size: .87rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--df-line); }
.product-price .price { color: var(--df-ink); font-size: 1.1rem; font-weight: 900; }
.product-price .price s { color: var(--df-muted); font-size: .8rem; font-weight: 700; }
.product-price small { color: var(--df-muted); font-size: .8rem; }
.product-price > .button, .product-price > form { margin-left: auto; }
.product-price form { margin: 0 0 0 auto; }
.blog-card .product-price { justify-content: flex-end; }
.feature-grid, .services-grid, .plan-grid, .directory-grid, .coupon-grid, .stat-grid, .quick-grid { display: grid; gap: 14px; }
.feature-grid, .services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.plan-card-wide { grid-column: 1 / -1; }
.plan-card .badge { float: right; margin-left: 8px; }
.directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.coupon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card, .plan-card, .listing-card { padding: 16px 18px; }
.feature-card h3, .plan-card h3, .listing-card h3 { margin: 0 0 6px; }
.feature-card p, .plan-card p, .listing-card p { margin: 0 0 6px; font-size: .9rem; color: var(--df-ink-2); }
.plan-card .price, .order-summary .price, .cart-item .price, .product-info .price { color: var(--df-ink); font-size: 1.2rem; font-weight: 900; }
.listing-card { display: flex; flex-direction: column; gap: 4px; }
.listing-card .badge { align-self: flex-start; }
.listing-url { margin-top: auto; font-weight: 800; }
.coupon-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.coupon-card > b { display: grid; place-items: center; flex: 0 0 64px; height: 64px; border-radius: 12px; background: var(--df-gold-soft); color: #7a4b0c; font-size: 1.25rem; font-weight: 900; }
.coupon-card code { font-size: 1.05rem; }
.coupon-card p { margin: 4px 0 0; font-size: .85rem; }
.services-cta { display: flex; gap: 10px; margin-top: 14px; }
.market-count { margin: 4px 0 10px; color: var(--df-muted); font-size: .86rem; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.filter { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--df-line-2); border-radius: 999px; background: var(--df-card); color: var(--df-ink-2); font-size: .85rem; font-weight: 800; }
.filter small { color: var(--df-muted); font-weight: 800; }
.filter:hover { border-color: var(--df-copper); color: var(--df-copper-2); }
.filter.active { border-color: var(--df-copper); background: var(--df-copper); color: #fff; }
.filter.active small { color: #ffe1c9; }
.table-wrap, .table-responsive { overflow-x: auto; }
.data-table, .table { width: 100%; margin: 0; border-collapse: collapse; color: var(--df-ink); font-size: .9rem; --bs-table-bg: transparent; }
.data-table th, .table th { padding: 8px 10px; border-bottom: 2px solid var(--df-line); color: var(--df-muted); font-size: .74rem; font-weight: 900; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.data-table td, .table td { padding: 9px 10px; border-bottom: 1px solid var(--df-line); background: transparent; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.page-link { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--df-line-2) !important; border-radius: 10px !important; background: var(--df-card); color: var(--df-ink); font-weight: 800; }
.page-item.active .page-link { border-color: var(--df-copper) !important; background: var(--df-copper); color: #fff; }

/* ---------- 7. Forms ---------- */
.form-control, .form-select, .field input, .field select, .field textarea, .form-card input, .form-card select, .form-card textarea, .order-summary input {
  width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--df-line-2); border-radius: var(--df-radius-sm);
  background: #fffdf9; color: var(--df-ink); font: 700 .93rem var(--df-font); box-shadow: none;
}
textarea.form-control, .field textarea { min-height: 96px; }
.form-control:focus, .form-select:focus, .field input:focus, .field select:focus, .field textarea:focus, .order-summary input:focus { border-color: var(--df-copper); outline: 0; box-shadow: 0 0 0 3px rgba(181, 85, 43, .15); }
.form-label, .field label, .form-grid > label { display: block; margin-bottom: 4px; color: var(--df-ink-2); font-size: .84rem; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.form-grid > label .form-control { margin-top: 4px; }
.form-grid > label.w-100, .field-full { grid-column: 1 / -1; }
.field small { display: block; margin-top: 4px; }
.form-actions { margin-top: 14px; }

/* ---------- 8. Pages ---------- */
/* Home */
.home-hero { padding: 16px 0 4px; }
.home-hero-card {
  position: relative; overflow: hidden; isolation: isolate; min-height: 250px; display: flex; align-items: center;
  padding: 26px 30px; border: 1px solid var(--df-line); border-radius: 18px;
  background: var(--df-card) url('/img/commerce/network-hero.webp') right center / auto 100% no-repeat; box-shadow: var(--df-shadow);
}
.home-hero-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--df-card) 0, var(--df-card) 45%, rgba(255, 250, 243, .7) 60%, rgba(255, 250, 243, 0) 78%); }
.home-hero-copy { max-width: 560px; }
.home-hero h1 { margin: 0 0 8px; font-size: 2.05rem; line-height: 1.12; }
.home-hero h1 span { display: block; color: var(--df-copper); }
.home-hero .lead { margin-bottom: 14px; font-size: .98rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.site-strip, .studio-network { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.site-strip a, .studio-network a { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--df-line); border-radius: 12px; background: var(--df-card); color: var(--df-ink); box-shadow: var(--df-shadow); }
.site-strip a:hover, .studio-network a:hover { border-color: var(--df-copper); }
.site-strip img, .studio-network img { flex: 0 0 76px; width: 76px; height: 46px; border-radius: 8px; object-fit: cover; object-position: top left; }
.site-strip span, .studio-network span { min-width: 0; }
.site-strip b, .studio-network b { display: block; font-size: .92rem; }
.site-strip small, .studio-network small { display: block; color: var(--df-muted); font-size: .78rem; line-height: 1.3; }
.format-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.format-card { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--df-line); border-radius: 12px; background: var(--df-card-2); color: var(--df-ink); }
.format-card:hover { border-color: var(--df-copper); background: var(--df-card); color: var(--df-ink); }
.format-card img { flex: 0 0 36px; width: 36px; height: 36px; }
.format-card b { display: block; font-size: .92rem; }
.format-card small { display: block; color: var(--df-muted); font-size: .78rem; line-height: 1.3; }
.format-card strong { color: var(--df-copper-2); }
.news-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.news-mini-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--df-line); border-radius: var(--df-radius); background: var(--df-card); color: var(--df-ink); box-shadow: var(--df-shadow); }
.news-mini-item:hover { border-color: var(--df-copper); color: var(--df-ink); }
.news-mini-item small { color: var(--df-copper); font-weight: 900; }
.news-mini-item b { line-height: 1.3; }
.news-mini-item span { color: var(--df-muted); font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Advertise */
.ads-where { padding-bottom: 6px; }
.ads-where h2 { margin-bottom: 10px; }
.ads-where .muted { margin: 8px 0 0; font-size: .85rem; }
.ads-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.ads-tabs a { display: flex; flex-direction: column; padding: 9px 12px; border: 1px solid var(--df-line); border-radius: 12px; background: var(--df-card); color: var(--df-ink); }
.ads-tabs a b { font-size: .95rem; }
.ads-tabs a small { color: var(--df-muted); font-size: .78rem; }
.ads-tabs a:hover { border-color: var(--df-copper); }
.ads-tabs a.is-active { border-color: var(--df-copper); background: var(--df-copper); color: #fff; box-shadow: 0 6px 14px -8px rgba(150, 66, 29, .7); }
.ads-tabs a.is-active small { color: #ffe1c9; }
.ads-pane h2 { margin: 0 0 4px; }
.ads-pane > .muted { font-size: .9rem; }
.ads-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 12px; }
.ads-pack { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--df-line-2); border-radius: 12px; background: #fffdf9; cursor: pointer; }
.ads-pack input { position: absolute; opacity: 0; pointer-events: none; }
.ads-pack b { font-size: 1rem; }
.ads-pack em { color: var(--df-muted); font-style: normal; font-size: .8rem; font-weight: 700; }
.ads-pack span { color: var(--df-copper-2); font-weight: 900; }
.ads-pack small { color: var(--df-muted); font-size: .78rem; }
.ads-pack:has(input:checked) { border-color: var(--df-copper); background: var(--df-copper-soft); box-shadow: 0 0 0 2px rgba(181, 85, 43, .25); }
.ads-pack:has(input:focus-visible) { outline: 2px solid var(--df-copper); outline-offset: 2px; }
.ads-check { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.ads-check input { width: 18px; height: 18px; accent-color: var(--df-copper); }
.ads-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 14px 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--df-card-2); border: 1px solid var(--df-line); }
.ads-total span { color: var(--df-muted); font-weight: 800; }
.ads-total b { font-size: 1.35rem; font-weight: 900; }

/* Product */
.product-detail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 22px; align-items: start; padding-top: 18px; padding-bottom: 24px; }
.crumbs { grid-column: 1 / -1; font-size: .85rem; color: var(--df-muted); }
.product-stage { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--df-line); border-radius: var(--df-radius); background: var(--df-bg-2); box-shadow: var(--df-shadow); }
.product-stage img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.product-gallery { margin-top: 14px; }
.product-gallery h2 { font-size: 1.05rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery-grid figure { margin: 0; }
.gallery-grid img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1px solid var(--df-line); border-radius: 10px; }
.gallery-grid a[data-zoom] { display: block; cursor: zoom-in; }
.gallery-grid figcaption { margin-top: 4px; color: var(--df-muted); font-size: .76rem; line-height: 1.3; }
.product-gallery > .muted { margin-top: 8px; font-size: .82rem; }
.product-info { position: sticky; top: 76px; padding: 18px 20px; border: 1px solid var(--df-line); border-radius: var(--df-radius); background: var(--df-card); box-shadow: var(--df-shadow); }
.product-info h1 { margin: 0 0 6px; font-size: 1.45rem; }
.product-info .lead { font-size: .93rem; }
.product-info .price { display: block; margin: 4px 0 10px; font-size: 1.6rem; }
.product-info .price s { color: var(--df-muted); font-size: .95rem; }
.product-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.product-cta form { margin: 0; }
.spec-list { margin: 0 0 14px; }
.spec-list > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--df-line); font-size: .87rem; }
.spec-list dt { color: var(--df-muted); font-weight: 800; }
.spec-list dd { margin: 0; }
.studio-build-timeline h3 { font-size: 1rem; }
.studio-build-timeline ol { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; counter-reset: step; }
.studio-build-timeline li { position: relative; padding-left: 34px; counter-increment: step; font-size: .87rem; }
.studio-build-timeline li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--df-copper-soft); color: var(--df-copper-2); font-weight: 900; font-size: .8rem; }
.studio-build-timeline b { display: block; }
.studio-build-timeline span { color: var(--df-muted); }

/* News */
.page-news .dg-section { padding: 16px 0 24px; }
.page-news .dg-section, .site-concept > .dg-section { max-width: var(--df-wrap); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.news-list { display: grid; gap: 12px; }
.news-item { padding: 16px 20px; }
.news-item > small { color: var(--df-copper); font-weight: 900; }
.news-item h2 { margin: 2px 0 8px; font-size: 1.15rem; }
.news-text { max-height: 6.2em; overflow: hidden; color: var(--df-ink-2); font-size: .92rem; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.news-item.is-open .news-text { max-height: none; -webkit-mask-image: none; mask-image: none; }
.news-more { margin-top: 6px; }
.page-news .card { margin-bottom: 0; }

/* Blog */
.blog-article { max-width: 780px; padding-top: 18px; padding-bottom: 10px; }
.blog-crumbs { margin-bottom: 10px; color: var(--df-muted); font-size: .85rem; }
.blog-head h1 { font-size: 1.85rem; }
.blog-cover { display: block; width: 100%; margin: 6px 0 18px; border-radius: var(--df-radius); border: 1px solid var(--df-line); }
.blog-prose { font-size: 1.02rem; line-height: 1.75; font-weight: 600; color: #3a2a1e; }
.blog-prose h2 { margin: 1.6rem 0 .6rem; font-size: 1.3rem; }
.blog-prose h3 { margin: 1.2rem 0 .5rem; font-size: 1.1rem; }
.blog-prose a { text-decoration: underline; }
.blog-prose img { border-radius: 12px; }
.blog-prose table { width: 100%; margin: 0 0 1rem; border-collapse: collapse; display: block; overflow-x: auto; }
.blog-prose th, .blog-prose td { padding: 6px 10px; border: 1px solid var(--df-line); }
.blog-pages { display: flex; gap: 6px; margin-top: 16px; }

/* Cart, checkout */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; padding-top: 14px; padding-bottom: 24px; }
.cart-layout > .empty { grid-column: 1 / -1; }
.cart-items { display: grid; gap: 10px; }
.cart-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--df-line); border-radius: var(--df-radius); background: var(--df-card); box-shadow: var(--df-shadow); }
.cart-item > div { flex: 1; min-width: 0; }
.cart-item h3 { margin: 4px 0 2px; font-size: 1rem; }
.cart-item form { margin: 0; }
.order-summary h3 { margin-bottom: 10px; }
.summary-line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--df-line); }
.summary-total { border-bottom: 0; font-size: 1.1rem; font-weight: 900; }

/* Sign in */
.auth-wrap { display: grid; place-items: center; padding: 28px 16px; }
.auth-card { width: min(430px, 100%); padding: 22px 24px; border: 1px solid var(--df-line); border-radius: 16px; background: var(--df-card); box-shadow: var(--df-shadow-lift); }
.auth-card h1, .auth-card h2 { margin: 0 0 4px; font-size: 1.4rem; }
.auth-card .eyebrow { display: block; }
.auth-card .field { margin-bottom: 12px; }
.auth-card > .button { width: 100%; }
.auth-options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--df-line); }
.auth-options span { width: 100%; color: var(--df-muted); font-size: .84rem; }
.auth-options .button { flex: 1; }
.auth-captcha { margin: 0 0 14px; padding: 10px 12px 12px; border: 1px solid var(--df-line-2); border-radius: var(--df-radius-sm); }
.auth-captcha legend { display: flex; align-items: center; gap: 10px; float: none; width: auto; margin: 0; padding: 0 4px; font-size: .88rem; font-weight: 800; }
.auth-captcha legend img { display: block; border: 2px solid var(--df-gold); border-radius: 10px; }
.auth-captcha > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.auth-captcha label { position: relative; margin: 0; cursor: pointer; }
.auth-captcha input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.auth-captcha label > span { display: block; overflow: hidden; border: 2px solid transparent; border-radius: 12px; transition: border-color .15s, transform .15s; }
.auth-captcha label img { display: block; width: 100%; height: auto; }
.auth-captcha input:checked + span { border-color: var(--df-copper); transform: scale(.96); }
.auth-captcha input:focus-visible + span { outline: 2px solid var(--df-copper); outline-offset: 2px; }

/* FAQ */
.studio-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.studio-faq-card { padding: 16px 18px; }
.studio-faq-card > span { color: var(--df-copper); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.studio-faq-card h2 { margin: 4px 0 6px; font-size: 1.05rem; }
.studio-faq-card p { margin: 0; color: var(--df-ink-2); font-size: .92rem; }
.studio-faq-help { background: var(--df-copper-soft); }
.studio-faq-help .button { margin-top: 10px; }

/* Content pages (terms, privacy, support, listing, unsubscribe) */
.content-page .shell > h1, .content-page article > h1 { margin: 0 0 6px; }
.content-page article.shell { max-width: 820px; }
.content-page .split > article { padding: 20px 22px; border: 1px solid var(--df-line); border-radius: var(--df-radius); background: var(--df-card); box-shadow: var(--df-shadow); }
.form-card ul { padding-left: 1.1rem; }
.dg-public-hero { max-width: 760px; margin: 30px auto; padding: 26px; border: 1px solid var(--df-line); border-radius: var(--df-radius); background: var(--df-card); text-align: center; box-shadow: var(--df-shadow); }
.dg-public-hero-actions { margin-top: 12px; }

/* ---------- 9. Account area ---------- */
.commerce-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.dg-appbar { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 6px 16px; background: linear-gradient(180deg, var(--df-wood-2), var(--df-wood)); box-shadow: 0 2px 0 rgba(226, 163, 54, .35); }
.dg-appbar-brand img { display: block; width: 110px; height: auto; }
.dg-appbar-actions { display: flex; align-items: center; gap: 8px; }
.dg-appbar-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .06); color: #f3e3cc; }
.dg-appbar-btn:hover, .dg-appbar-btn.is-active { background: rgba(226, 163, 54, .22); color: #fff; }
.dg-appbar-btn img { width: 26px; height: 26px; }
.user-shell-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; width: 100%; max-width: var(--df-wrap); margin: 0 auto; padding: 18px 16px 26px; flex: 1; }
.dg-user-navigation { position: relative; }
.dg-account-menu { position: sticky; top: 76px; padding: 12px; border: 1px solid var(--df-line); border-radius: var(--df-radius); background: var(--df-card); box-shadow: var(--df-shadow); }
.dg-account-menu .dg-kicker { padding: 2px 6px 8px; }
.dg-account-navigation { display: grid; gap: 4px; }
.dg-account-navigation a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--df-ink); }
.dg-account-navigation a:hover { background: var(--df-card-2); color: var(--df-ink); }
.dg-account-navigation a.is-active { background: var(--df-copper-soft); box-shadow: 0 0 0 1px rgba(181, 85, 43, .3) inset; }
.dg-account-navigation img { width: 32px; height: 32px; }
.dg-account-navigation strong { display: block; font-size: .92rem; }
.dg-account-navigation small { display: block; color: var(--df-muted); font-size: .76rem; }
.mobile-navigation { display: none; }
.content, .commerce-content { min-width: 0; }
.dg-page > * + * { margin-top: 16px; }
.dg-note { color: var(--df-muted); font-size: .88rem; }
.stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; }
.stat-card { padding: 12px 16px; }
.stat-card small { display: block; color: var(--df-muted); font-size: .74rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.stat-card b { font-size: 1.5rem; font-weight: 900; }
.quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; color: var(--df-ink); }
.quick-card:hover { border-color: var(--df-copper); color: var(--df-ink); }
.quick-card small { color: var(--df-copper); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.quick-card span { color: var(--df-copper); font-weight: 800; font-size: .88rem; }
.dg-support-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border: 1px solid var(--df-line); border-radius: var(--df-radius); background: var(--df-card); }
.dg-ticket-thread { border: 1px solid var(--df-line); border-radius: var(--df-radius); background: var(--df-card); box-shadow: var(--df-shadow); overflow: hidden; }
.dg-ticket-thread-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--df-line); background: var(--df-card-2); }
.dg-ticket-messages { display: grid; gap: 10px; padding: 14px 16px; }
.dg-ticket-message { max-width: 86%; padding: 10px 14px; border: 1px solid var(--df-line); border-radius: 14px 14px 14px 4px; background: #fffdf9; }
.dg-ticket-message.is-user { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--df-copper-soft); }
.dg-ticket-message-meta { color: var(--df-muted); font-size: .78rem; font-weight: 800; }
.dg-ticket-message-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.badge-new, .badge-answered { background: var(--df-ok-soft); color: var(--df-ok); }

/* ---------- 10. Overlays: lightbox, sign-in popup, ad slots, result modal ---------- */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 64px 24px; background: rgba(28, 18, 10, .88); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 14px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); cursor: default; }
.lightbox p { margin: 0; color: #f6ead8; font-weight: 800; text-align: center; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 248, 238, .92); color: #3b2614; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: #fff; }
.lightbox-close { top: 14px; right: 16px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }
body.lightbox-open { overflow: hidden; }
.df-auth-backdrop { position: fixed; inset: 0; z-index: 2100; background: rgba(36, 22, 10, .55); backdrop-filter: blur(3px); }
.df-auth-modal { position: fixed; z-index: 2110; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(430px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; }
.df-auth-modal .auth-card { margin: 0; }
.df-auth-close { position: absolute; top: 8px; right: 12px; z-index: 2; border: 0; background: none; color: var(--df-muted); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.df-auth-ad { display: flex; justify-content: center; margin-top: 12px; }
.df-auth-ad img, .df-auth-ad iframe { max-width: 100%; height: auto; }
.ad-slot, .dg-horizontal-ad { overflow: hidden; max-width: var(--df-wrap); margin-left: auto !important; margin-right: auto !important; border: 0; background: transparent; box-shadow: none; text-align: center; }
.ad-slot:empty { display: none; }
.modal-content { border: 1px solid var(--df-line); border-radius: 16px; background: var(--df-card); color: var(--df-ink); }

/* ---------- 11. Small screens ---------- */
@media (max-width: 1100px) {
  .product-grid, .studio-product-grid, .feature-grid, .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .format-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .site-shell > header .navbar { flex-wrap: wrap; row-gap: 4px; padding-bottom: 4px !important; }
  .public-nav-links { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
  .public-nav-links::-webkit-scrollbar { display: none; }
  .studio-main-nav { flex-wrap: nowrap; }
  .studio-main-nav .nav-link { white-space: nowrap; padding: 5px 10px !important; font-size: .88rem; }
  .product-grid, .studio-product-grid, .feature-grid, .services-grid, .directory-grid, .coupon-grid, .news-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-strip, .studio-network { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ads-tabs { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .product-detail, .split, .cart-layout { grid-template-columns: 1fr; }
  .product-info { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .user-shell-body { grid-template-columns: 1fr; padding-bottom: 86px; }
  .dg-account-menu { display: none; }
  .mobile-navigation { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, var(--df-wood-2), var(--df-wood)); box-shadow: 0 -2px 0 rgba(226, 163, 54, .35); }
  .mobile-navigation a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; border-radius: 10px; color: #e9d6bb; font-size: .72rem; font-weight: 800; }
  .mobile-navigation a.is-active { background: rgba(226, 163, 54, .2); color: #fff; }
  .mobile-navigation img { width: 26px; height: 26px; }
  .mobile-navigation .tab-long { display: none; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .page-hero > .shell, .dg-page-hero { padding: 12px 120px 12px 14px; background-size: auto 100%; }
  .page-hero > .shell::before, .dg-page-hero::before { background: linear-gradient(90deg, var(--df-card) 0, var(--df-card) calc(100% - 150px), rgba(255, 250, 243, .45) calc(100% - 60px), rgba(255, 250, 243, .1) 100%); }
  .page-hero h1, .dg-page-hero h1, .account-head h1 { font-size: 1.2rem; }
  .page-hero .lead, .dg-page-hero p { font-size: .86rem; }
  .account-head { padding: 12px 14px; }
  .account-head p { display: none; }
  .market-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .market-tools input[type=search] { grid-column: 1 / -1; }
  .market-tools select.form-control { max-width: none; }
  .page-hero .shell:has(.market-tools) .lead, .page-hero .shell:has(.hero-note) .lead { display: none; }
  .home-hero-card { min-height: 0; padding: 18px 16px 170px; background-size: auto 190px; background-position: right -40px bottom; }
  .home-hero-card::before { background: linear-gradient(180deg, var(--df-card) 0, var(--df-card) 55%, rgba(255, 250, 243, .2) 80%, rgba(255, 250, 243, 0) 100%); }
  .home-hero h1 { font-size: 1.5rem; }
  .section-head { align-items: flex-start; }
  .product-grid, .studio-product-grid, .feature-grid, .services-grid, .directory-grid, .coupon-grid, .news-mini, .plan-grid, .studio-faq-grid, .quick-grid { grid-template-columns: 1fr; }
  .format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-strip a, .studio-network a { flex-direction: column; align-items: flex-start; min-width: 0; }
  .site-strip img, .studio-network img { width: 100%; flex-basis: auto; height: 70px; }
  .page-hero .hero-note { font-size: .8rem; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-item { flex-wrap: wrap; }
  .public-nav-actions .dg-btn { padding: 5px 10px; font-size: .84rem; }
  .navbar-brand img { width: 96px; }
  .lightbox { padding: 60px 10px 20px; }
  .lightbox-nav { top: auto; bottom: 14px; transform: none; }
  .dg-ticket-message { max-width: 100%; }
}
