/* MAHASONA SEEK — premium futuristic dark theme (2026-11-30 showcase).
 * Mobile-first, no frameworks. Black/charcoal surfaces, crimson accent
 * (#d71932, restrained), silver/off-white type. Prices are the heroes. */
:root {
  --bg: #0b0b0e;
  --surface: #141419;
  --surface-2: #1a1a21;
  --border: #26262e;
  --border-strong: #34343f;
  --text: #f4f4f2;
  --silver: #c5c8ce;
  --muted: #9ba0a8;
  --accent: #d71932;
  --accent-dark: #a81126;
  --green: #3ecf6f;
  --amber: #e8b93c;
  --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, "Noto Sans Sinhala", sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; }
main { max-width: 960px; margin: 0 auto; padding: 16px; }
a { color: #e8e9eb; }
h1 { font-size: 1.55rem; line-height: 1.25; }
h2 { font-size: 1.2rem; margin-top: 28px; }
::placeholder { color: #6d727b; }

/* Header */
.site-header { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: #101014; color: var(--text); flex-wrap: wrap; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.site-header .brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 800; font-size: 1.08rem; letter-spacing: .4px; text-decoration: none; }
.brand-logo { border-radius: 8px; display: block; }
.brand-accent { color: var(--accent); }
.site-header nav { display: flex; gap: 14px; flex-wrap: wrap; }
.site-header nav a { color: var(--silver); text-decoration: none; font-size: .95rem; padding: 6px 2px; }
.site-header nav a:hover { color: #fff; }
.lang-toggle { margin-left: auto; color: var(--text); border: 1px solid var(--border-strong); border-radius: 8px; padding: 7px 12px; text-decoration: none; font-size: .9rem; }

/* Hero */
.hero { text-align: center; padding: 34px 0 10px; background: radial-gradient(560px 210px at 50% -40px, rgba(215,25,50,.16), transparent 70%); }
.hero-logo { border-radius: 18px; margin-bottom: 6px; }
.hero h1 { font-size: 1.9rem; margin: 8px 0 6px; letter-spacing: .2px; }
.hero p { color: var(--silver); max-width: 560px; margin: 0 auto; }
.search-form { position: relative; display: flex; gap: 8px; margin: 16px 0; }
.search-form input[type="search"] { flex: 1; min-height: 48px; min-width: 0; padding: 10px 14px; font-size: 1rem; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); color: var(--text); }
.search-form input[type="search"]:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.search-big input[type="search"] { min-height: 54px; font-size: 1.05rem; border-radius: 12px; }
.search-form button, .filters button, form button { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-size: 1rem; font-weight: 600; cursor: pointer; }
.search-form button:hover, .filters button:hover, form button:hover { background: var(--accent-dark); }
.suggest { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 10px; z-index: 20; text-align: left; overflow: hidden; }
.suggest a { display: block; padding: 12px 14px; color: var(--text); text-decoration: none; }
.suggest a:hover { background: #23232c; }
.hero-cats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-cats a { border: 1px solid var(--border-strong); border-radius: 999px; padding: 9px 18px; text-decoration: none; background: var(--surface); color: var(--silver); font-size: .95rem; }
.hero-cats a:hover { border-color: var(--accent); color: #fff; }

/* Trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 4px; }
.trust-strip > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; border-top: 3px solid var(--accent); }
.trust-strip strong { display: block; font-size: .98rem; }
.trust-strip span { color: var(--muted); font-size: .83rem; }
@media (max-width: 560px) { .trust-strip { grid-template-columns: 1fr; } }

/* Cards */
.section-note { color: var(--muted); font-size: .9rem; margin-top: -8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-decoration: none; color: inherit; }
.card:hover { border-color: var(--accent); }
.card-name { font-weight: 600; }
.card-variant { color: var(--muted); font-size: .9rem; }
.card-price { font-size: 1.3rem; font-weight: 800; margin-top: 8px; }
.card-save { display: inline-block; margin-top: 6px; background: var(--accent); color: #fff; font-weight: 700; font-size: .85rem; border-radius: 999px; padding: 3px 11px; }
.card-meta { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.how-steps > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.how-steps p { color: var(--silver); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 16px; }
.filters select { min-height: 44px; padding: 6px 8px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); border-radius: 8px; }
.filters .check { display: flex; align-items: center; gap: 6px; min-height: 44px; }
.filters input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }

/* Product page + offers */
table.specs { border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
table.specs th, table.specs td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
table.specs th { color: var(--silver); font-weight: 600; }
.from-price { font-size: 1.15rem; color: var(--silver); margin: 6px 0 0; }
.from-price strong { color: #fff; font-size: 1.5rem; font-weight: 800; }
.offers { display: flex; flex-direction: column; gap: 10px; }
.offer-row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.offer-row.offer-oos { opacity: .6; }
.offer-row.offer-expired { opacity: .5; border-style: dashed; }
.offer-row.offer-stale { border-color: var(--amber); }
.offer-main { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.offer-shop { font-weight: 700; text-decoration: none; color: #fff; }
.offer-district { color: var(--muted); }
.offer-price { font-size: 1.55rem; font-weight: 800; margin: 4px 0; }
.offer-meta { color: var(--muted); font-size: .85rem; }
.offer-meta a { color: var(--silver); }
.offer-note { color: var(--silver); font-size: .9rem; font-style: italic; }
.offer-actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.offer-stock { color: var(--silver); font-size: .88rem; }
.btn { display: inline-block; min-height: 44px; line-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-strong); color: #fff; text-decoration: none; }
.btn:hover { border-color: var(--accent); }
.badge { border-radius: 999px; padding: 2px 10px; font-size: .8rem; background: #23232c; color: var(--silver); border: 1px solid var(--border-strong); }
.badge-verified { background: rgba(62,207,111,.14); color: var(--green); border-color: rgba(62,207,111,.4); }
.badge-lowest { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
.fresh { color: var(--muted); }
.fresh-stale, .fresh-expired { color: var(--amber); font-weight: 600; }
.disclaimer { background: rgba(232,185,60,.08); border: 1px solid rgba(232,185,60,.45); border-radius: 10px; padding: 10px 12px; color: var(--silver); }
.unclaimed { background: var(--surface-2); border-radius: 8px; padding: 8px 12px; color: var(--silver); }
.from-shop { background: var(--surface-2); border-radius: var(--radius); padding: 12px; }
.data-quality { color: var(--muted); }
.report-link { font-size: .85rem; color: var(--muted); }
.variant { color: var(--muted); }

/* Footer */
.site-footer { max-width: 960px; margin: 28px auto 0; padding: 18px 16px 26px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--border); }
.site-footer a { color: var(--silver); }
.site-footer .powered { color: var(--silver); font-weight: 600; letter-spacing: .3px; }

/* Forms, accounts, watches, reviews, chat, admin */
.stack-form { display: flex; flex-direction: column; gap: 12px; max-width: 480px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.stack-form input, .stack-form select, .stack-form textarea { min-height: 44px; padding: 8px 10px; font-size: 1rem; border: 1px solid var(--border-strong); border-radius: 8px; width: 100%; background: var(--surface-2); color: var(--text); }
textarea { max-width: 100%; background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 10px; font-size: 1rem; }
.inline-form { display: inline; }
.btn-secondary { min-height: 44px; padding: 10px 18px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); color: #fff; font-size: 1rem; cursor: pointer; }
.btn-secondary:hover { border-color: var(--accent); background: var(--surface-2); }
.btn-mini { min-height: 36px; padding: 6px 12px; border: 0; border-radius: 8px; background: #2c2c38; color: #fff; font-size: .9rem; cursor: pointer; }
.form-error { background: rgba(215,25,50,.12); border: 1px solid var(--accent); border-radius: 8px; padding: 10px 12px; }
.notice { background: rgba(62,207,111,.1); border: 1px solid rgba(62,207,111,.45); border-radius: 8px; padding: 10px 12px; }
.plain-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plain-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.watch-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-top: 16px; }
.watch-box input[type="number"] { min-height: 44px; padding: 8px 10px; font-size: 1rem; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface-2); color: var(--text); }
.reviews { margin-top: 24px; }
.rating-summary { font-size: 1.1rem; font-weight: 600; }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.review-mine { border-color: var(--accent); }
.review-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.review-date { color: var(--muted); font-size: .85rem; }
.stars { color: var(--amber); letter-spacing: 2px; }
.review-reply { background: var(--surface-2); border-radius: 8px; padding: 8px 12px; margin-top: 8px; }
.review-form { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin: 12px 0; }
.review-form select, .review-form textarea { min-height: 44px; padding: 8px 10px; font-size: 1rem; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface-2); color: var(--text); }
.chat-form { display: flex; gap: 8px; margin: 16px 0; }
.chat-form input[type="text"] { flex: 1; min-width: 0; min-height: 48px; padding: 10px 12px; font-size: 1rem; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); color: var(--text); }
.chat-answer { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 12px 16px; }
.admin-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-nav a { border: 1px solid var(--border-strong); border-radius: 999px; padding: 8px 14px; text-decoration: none; background: var(--surface); color: var(--silver); }
.admin-row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.admin-row input[type="number"], .admin-row select { min-height: 36px; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface-2); color: var(--text); }
.shop-list li { margin-bottom: 6px; }

/* Product image slots (DS-1): generated tiles until rights-held images exist */
.tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 120px; border-radius: 10px; margin-bottom: 10px; color: #f4f4f2; overflow: hidden; text-align: center; padding: 8px; border: 1px solid var(--border); }
.tile-glyph { width: 56px; height: 50px; opacity: .9; }
.tile-mono { position: absolute; top: 8px; left: 10px; font-weight: 800; font-size: 1.3rem; opacity: .35; }
.tile-name { font-size: .8rem; font-weight: 600; opacity: .85; }
.tile-lg { height: 180px; }
.tile-lg .tile-glyph { width: 84px; height: 76px; }
.tile-lg .tile-name { font-size: .95rem; }
.tile-img { width: 100%; height: 120px; object-fit: contain; background: var(--surface-2); border-radius: 10px; margin-bottom: 10px; }
.tile-img.tile-lg { height: 180px; }
.product-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.product-head .tile, .product-head .tile-img { width: 260px; max-width: 100%; flex: none; }
.shop-logo { max-height: 64px; max-width: 220px; object-fit: contain; margin-bottom: 8px; background: #fff; border-radius: 8px; padding: 4px; }
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.55rem; }
  .site-header nav { order: 3; width: 100%; }
}
