:root {
  --yellow: #ffe000;
  --blue: #1456d9;
  --green: #129447;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f5f6f8;
  --surface: #fff;
  --soft-blue: #eaf1ff;
  --soft-green: #e9f8ef;
  --soft-yellow: #fff8cc;
  --danger: #dc2626;
  --shadow: 0 12px 30px rgba(31, 41, 55, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
h1, h2, h3, p { margin: 0; }
.shell { min-height: 100vh; }
.admin-shell { background: #eef4ff; }
.user-shell { background: linear-gradient(180deg,#fff7c4 0,#f5f6f8 210px); }
.wrap { width: min(1240px, calc(100% - 28px)); margin: 0 auto; }
.topline { background: var(--yellow); border-bottom: 1px solid rgba(0,0,0,.08); }
.topline .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: .8rem; font-weight: 700; }
.nav { position: sticky; top: 0; z-index: 20; background: var(--yellow); box-shadow: 0 6px 18px rgba(31,41,55,.13); }
.nav-main { display: grid; grid-template-columns: auto minmax(240px,1fr) auto; align-items: center; gap: 16px; padding: 13px 0; }
.brand { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; font-weight: 900; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 3px solid var(--blue); border-radius: 7px; background: #fff; color: var(--green); }
.brand small { display: block; color: #655800; font-size: .68rem; }
.search { display: grid; grid-template-columns: 1fr auto; min-height: 46px; border: 2px solid rgba(31,41,55,.18); border-radius: 6px; overflow: hidden; background: #fff; }
.search input { min-width: 0; border: 0; outline: 0; padding: 0 14px; }
.search button { width: 70px; border: 0; background: #f3f4f6; font-weight: 800; }
.nav-actions, .actions, .badges, .filters, .mini-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nav-link { border: 0; background: transparent; font-weight: 800; }
.page { padding: 22px 0 46px; }
.primary, .secondary, .ghost, .chip { min-height: 40px; padding: 0 14px; border-radius: 6px; font-weight: 800; transition: transform .15s ease; }
.primary { border: 0; background: var(--blue); color: #fff; }
.secondary { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.ghost { border: 0; background: transparent; color: var(--ink); }
.primary:hover, .secondary:hover, .ghost:hover, .chip:hover { transform: translateY(-1px); }
.wide { width: 100%; }
.mobile-nav { display: none; grid-template-columns: repeat(4,1fr); gap: 6px; padding-bottom: 10px; }
.mobile-nav button { min-height: 35px; border: 0; border-radius: 6px; background: rgba(255,255,255,.55); font-weight: 800; font-size: .75rem; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.hero-main { min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; padding: 34px; border-radius: 8px; color: #fff; background: linear-gradient(95deg,rgba(20,86,217,.93),rgba(18,148,71,.75)),url("https://images.unsplash.com/photo-1607082349566-187342175e2f?auto=format&fit=crop&w=1400&q=80") center/cover; box-shadow: var(--shadow); }
.hero h1 { max-width: 680px; font-size: clamp(2rem,5vw,4.7rem); line-height: .97; }
.hero p { max-width: 620px; margin-top: 14px; color: rgba(255,255,255,.92); line-height: 1.5; }
.hero-badges span, .badge, .status { padding: 7px 10px; border-radius: 999px; font-size: .76rem; font-weight: 900; }
.hero-badges span { display: inline-block; margin: 0 5px 8px 0; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.17); }
.hero-side { display: grid; gap: 12px; }
.deal { min-height: 164px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border-radius: 8px; background: linear-gradient(135deg,rgba(255,224,0,.94),rgba(255,255,255,.8)),url("https://images.unsplash.com/photo-1556742502-ec7c0e9f34b1?auto=format&fit=crop&w=900&q=80") center/cover; box-shadow: var(--shadow); }
.deal.green { color: #fff; background: linear-gradient(135deg,rgba(18,148,71,.92),rgba(20,86,217,.78)),url("https://images.unsplash.com/photo-1581092921461-39b9d08a9b21?auto=format&fit=crop&w=900&q=80") center/cover; }
.deal h3 { font-size: 1.55rem; }
.community-panel { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; border-left: 5px solid var(--green); }
.community-panel h2 { max-width: 740px; font-size: clamp(1.5rem,3vw,2.4rem); line-height: 1.08; }
.community-panel p { max-width: 780px; margin-top: 8px; color: var(--muted); line-height: 1.55; }
.shop-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(210px,.28fr); gap: 16px; align-items: stretch; margin-bottom: 16px; padding: 24px; border-radius: 8px; background: linear-gradient(112deg,#fff6b8 0,#fff 48%,#eaf1ff 100%); border: 1px solid rgba(20,86,217,.12); box-shadow: var(--shadow); }
.shop-hero h1 { max-width: 780px; font-size: clamp(1.7rem,4vw,3rem); line-height: 1.02; }
.shop-hero p { max-width: 760px; margin-top: 9px; color: var(--muted); line-height: 1.5; }
.shop-hero-card { display: grid; align-content: center; gap: 7px; padding: 18px; border-radius: 8px; background: var(--blue); color: #fff; }
.shop-hero-card strong { font-size: 2.5rem; line-height: 1; }
.shop-hero-card span { color: rgba(255,255,255,.86); font-weight: 800; line-height: 1.3; }
.shop-hero-card .secondary { border: 0; color: var(--blue); }
.featured-section { padding: 18px; border: 1px solid rgba(18,148,71,.18); border-radius: 8px; background: linear-gradient(180deg,#ffffff,#f7fff9); }
.section { margin-top: 24px; }
.section-head { display: flex; justify-content: space-between; gap: 14px; align-items: end; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.3rem,2.8vw,2rem); }
.section-head p, .muted, .form-note { margin-top: 5px; color: var(--muted); line-height: 1.45; }
.grid { display: grid; gap: 14px; }
.categories { grid-template-columns: repeat(7,minmax(110px,1fr)); }
.products { grid-template-columns: repeat(4,minmax(0,1fr)); }
.stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
.dashboard { grid-template-columns: 1.25fr .75fr; }
.category, .card, .panel, .stat, .form-card, .detail-media, .detail-info, .chat { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 7px 20px rgba(31,41,55,.07); }
.category { min-height: 108px; padding: 15px 12px; text-align: left; }
.category strong { display: block; margin-top: 12px; }
.category-icon { color: var(--blue); font-size: 1.35rem; font-weight: 900; }
.card { overflow: hidden; border: 0; }
.featured-card { outline: 2px solid rgba(255,224,0,.75); box-shadow: 0 10px 28px rgba(20,86,217,.12); }
.reserved-card { opacity: .88; }
.product-image { position: relative; aspect-ratio: 4/3; background: #e5e7eb; overflow: hidden; }
.product-image img, .detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.discount { position: absolute; top: 10px; left: 10px; padding: 6px 8px; border-radius: 5px; background: var(--yellow); font-size: .78rem; font-weight: 900; }
.featured-ribbon { position: absolute; left: 10px; bottom: 10px; padding: 6px 8px; border-radius: 5px; background: rgba(20,86,217,.96); color: #fff; font-size: .72rem; font-weight: 900; }
.favorite { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); font-weight: 900; }
.card-body { padding: 14px; }
.card-body h3 { min-height: 42px; margin-top: 9px; font-size: 1rem; line-height: 1.3; }
.price { margin-top: 9px; font-size: 1.5rem; font-weight: 900; }
.old-price { margin-top: 10px; color: var(--muted); text-decoration: line-through; font-size: .82rem; }
.locked { margin-top: 11px; padding: 10px; border-radius: 6px; background: var(--soft-yellow); color: #5c4c00; font-size: .86rem; font-weight: 800; }
.meta { display: flex; justify-content: space-between; gap: 8px; margin: 10px 0; color: var(--muted); font-size: .75rem; }
.badge { background: var(--soft-blue); color: var(--blue); }
.badge.green, .status.ok { background: var(--soft-green); color: var(--green); }
.badge.yellow, .status.wait { background: var(--soft-yellow); color: #685700; }
.badge.danger, .status.bad { background: #fee2e2; color: var(--danger); }
.toolbar { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; margin-bottom: 14px; }
.toolbar input, .toolbar select, .field input, .field select, .field textarea, .chat-input input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 0 12px; outline: 0; }
.field textarea { min-height: 94px; padding: 12px; resize: vertical; }
.chip { border: 1px solid var(--line); background: #fff; }
.chip.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.detail, .form-layout { display: grid; grid-template-columns: minmax(0,.95fr) minmax(320px,.65fr); gap: 16px; align-items: start; }
.detail-media { overflow: hidden; }
.main-photo { aspect-ratio: 1/.78; }
.video { padding: 14px; border-top: 1px solid var(--line); background: #f9fafb; }
.video a { color: var(--blue); font-weight: 800; word-break: break-all; }
.detail-info, .form-card, .panel, .chat { padding: 19px; }
.detail-info h1 { margin: 10px 0; font-size: clamp(1.6rem,4vw,2.6rem); line-height: 1.1; }
.seller { margin-top: 15px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f9fafb; }
.seller p { margin-top: 7px; color: var(--muted); }
.source-note { display: grid; gap: 4px; margin-top: 14px; padding: 13px; border: 1px solid #c7d7ff; border-radius: 8px; background: var(--soft-blue); }
.source-note a { color: var(--blue); font-weight: 900; }
.source-note span { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 15px; }
.field.full { grid-column: 1/-1; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .82rem; font-weight: 800; }
.image-preview { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; min-height: 92px; margin-bottom: 9px; padding: 10px; border: 1px dashed var(--line); border-radius: 6px; background: #f9fafb; color: var(--muted); font-weight: 700; }
.image-preview img { width: 92px; height: 72px; border-radius: 6px; object-fit: cover; }
.image-preview.empty { display: grid; place-items: center; text-align: center; }
.stat { padding: 16px; }
.stat strong { display: block; margin-top: 7px; font-size: 1.6rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.table th, .table td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--muted); font-size: .74rem; text-transform: uppercase; }
.compact-table th, .compact-table td { padding: 8px 7px; font-size: .86rem; vertical-align: middle; }
.thumb { width: 54px; height: 42px; border-radius: 6px; object-fit: cover; background: #e5e7eb; }
.admin-list-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin: 12px 0; }
.admin-list-filters { display: grid; grid-template-columns: minmax(120px,150px) minmax(180px,1fr) minmax(150px,220px); gap: 8px; }
.admin-list-filters.two-fields { grid-template-columns: minmax(180px,1fr) minmax(150px,220px); }
.admin-list-filters input, .admin-list-filters select { min-height: 40px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 0 10px; outline: 0; }
.icon-actions, .row-icons, .sub-tabs { display: flex; gap: 6px; align-items: center; }
.icon-actions button, .row-icons button, .sub-tabs button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: .72rem; font-weight: 900; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; min-width: 34px; padding: 0; border-radius: 50%; color: var(--blue); }
.icon-actions .icon-btn { background: var(--soft-blue); border-color: #c7d7ff; }
.row-icons .icon-btn:hover { background: var(--soft-blue); }
.danger-icon { color: var(--danger); }
.row-icons { flex-wrap: nowrap; }
.sub-tabs { margin: 14px 0 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.sub-tabs button.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.user-plan-row.partner-row td { background: #edf4ff; }
.user-plan-row.prime-row td { background: linear-gradient(90deg,#fff7d1,#fff); }
.user-plan-row.prime-row td:first-child { border-left: 4px solid #d4a700; }
.user-plan-row.partner-row td:first-child { border-left: 4px solid var(--blue); }
.table-edit { display: grid; gap: 7px; min-width: 190px; }
.table-edit label { color: var(--muted); font-size: .72rem; font-weight: 900; }
.table-edit input, .table-edit select, .table-edit textarea { width: 100%; min-height: 38px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 0 9px; outline: 0; }
.table-edit textarea { min-height: 82px; padding: 10px; resize: vertical; }
.photo-state { color: var(--muted); font-size: .78rem; font-weight: 800; }
.danger-action { color: var(--danger); }
.capacity-panel { border-left: 5px solid var(--blue); }
.capacity-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 14px 0; }
.capacity-summary div { padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: #f9fafb; }
.capacity-summary span { display: block; color: var(--muted); font-size: .76rem; font-weight: 800; }
.capacity-summary strong { display: block; margin-top: 6px; font-size: 1.22rem; }
.capacity-list { display: grid; gap: 10px; }
.capacity-row { display: grid; grid-template-columns: minmax(180px,1fr) minmax(180px,1.2fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.capacity-row strong, .capacity-row span { display: block; }
.capacity-row span { margin-top: 4px; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.capacity-meter { height: 11px; overflow: hidden; border-radius: 999px; background: #e5e7eb; }
.capacity-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--green),var(--blue)); }
.migration-note { margin-top: 12px; padding: 12px; border-radius: 7px; background: var(--soft-yellow); color: #5c4c00; font-size: .86rem; line-height: 1.45; }
.list { display: grid; gap: 10px; margin-top: 12px; }
.list-item { padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.list-item p { margin: 5px 0; color: var(--muted); }
.messages { display: grid; gap: 10px; margin: 14px 0; }
.message { max-width: 78%; padding: 10px 12px; border-radius: 8px; background: #f3f4f6; }
.message.me { justify-self: end; background: var(--soft-blue); }
.message.system { justify-self: center; max-width: 92%; background: var(--soft-yellow); color: #5c4c00; font-size: .82rem; font-weight: 800; }
.chat-input { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.chat-title { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.kanban { display: grid; grid-template-columns: repeat(5,minmax(210px,1fr)); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.kanban-col { min-width: 210px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f9fafb; }
.kanban-col:nth-child(1) { border-top: 5px solid var(--yellow); }
.kanban-col:nth-child(2), .kanban-col:nth-child(3) { border-top: 5px solid var(--blue); }
.kanban-col:nth-child(4) { border-top: 5px solid var(--green); }
.kanban-col:nth-child(5) { border-top: 5px solid var(--danger); }
.kanban-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.kanban-head span { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .78rem; font-weight: 900; }
.kanban-col:nth-child(1) .kanban-head span { background: var(--yellow); color: #5c4c00; }
.kanban-col:nth-child(4) .kanban-head span { background: var(--green); }
.kanban-col:nth-child(5) .kanban-head span { background: var(--danger); }
.kanban-col > p { min-height: 38px; margin-top: 6px; color: var(--muted); font-size: .76rem; line-height: 1.3; }
.kanban-list { display: grid; gap: 8px; margin-top: 10px; }
.deal-ticket { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.deal-ticket span { color: var(--green); font-weight: 900; }
.deal-ticket small { color: var(--muted); line-height: 1.35; }
.small-empty { padding: 12px; font-size: .78rem; }
.deal-stage-list { display: grid; gap: 8px; margin-top: 12px; }
.deal-stage-list button { display: grid; gap: 4px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; text-align: left; font-weight: 900; }
.deal-stage-list button small { color: var(--muted); font-weight: 700; line-height: 1.3; }
.deal-stage-list button.active { border-color: var(--blue); background: var(--soft-blue); color: var(--blue); }
.empty { padding: 24px; border: 1px dashed #cbd5e1; border-radius: 8px; background: #fff; color: var(--muted); text-align: center; font-weight: 700; }
.access-page { padding-top: 26px; }
.simple-access-page { min-height: calc(100vh - 120px); display: grid; align-items: start; }
.simple-auth { width: min(760px,100%); margin: 0 auto; display: grid; gap: 12px; }
.simple-auth-head { display: flex; gap: 12px; align-items: center; padding: 12px 0; }
.simple-auth-head h1 { font-size: clamp(1.6rem,4vw,2.4rem); line-height: 1; }
.simple-auth-head p { margin-top: 4px; color: var(--muted); }
.compact-login { padding: 14px; border-top: 4px solid var(--blue); }
.login-inline { display: grid; grid-template-columns: minmax(160px,1fr) minmax(120px,.8fr) auto; gap: 10px; align-items: end; }
.auth-toggle-row { display: flex; gap: 8px; align-items: center; justify-content: center; }
.clean-signup { border-top-color: var(--yellow); }
.simple-uf { border: 1px solid var(--line); border-top: 4px solid var(--yellow); border-radius: 8px; }
.admin-access-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 0; }
.admin-login-shell { width: min(460px, calc(100% - 28px)); margin: 0 auto; }
.admin-login-card { border-top: 6px solid var(--blue); box-shadow: 0 22px 50px rgba(20,86,217,.16); }
.admin-login-card h1 { color: var(--blue); font-size: clamp(2rem,5vw,3rem); line-height: 1; }
.access-layout { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(390px,.92fr); gap: 18px; align-items: start; }
.clean-access .signup-card { border-top-color: var(--yellow); }
.clean-access .signup-card .access-kicker { color: #6b5b00; }
.access-left { position: sticky; top: 92px; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.access-photo { min-height: 620px; display: flex; align-items: end; padding: 34px; color: #fff; background: linear-gradient(180deg,rgba(12,28,52,.05) 18%,rgba(10,30,46,.9) 100%),url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1400&q=85") center/cover; }
.access-offer { max-width: 620px; }
.access-offer h1 { margin: 13px 0; font-size: clamp(2.1rem,4.7vw,4.5rem); line-height: .98; }
.access-offer p { max-width: 520px; margin-bottom: 20px; color: rgba(255,255,255,.9); font-size: 1.02rem; line-height: 1.5; }
.uf-bar { display: grid; grid-template-columns: 1fr 110px; gap: 16px; align-items: center; padding: 18px 20px; border-top: 5px solid var(--yellow); background: #fff; }
.uf-bar strong, .uf-bar span { display: block; }
.uf-bar span { margin-top: 4px; color: var(--muted); font-size: .82rem; }
.uf-bar select { width: 100%; min-height: 46px; border: 2px solid var(--blue); border-radius: 6px; background: #fff; color: var(--blue); text-align: center; font-weight: 900; }
.auth-stack { display: grid; gap: 14px; }
.login-card, .signup-card { box-shadow: var(--shadow); }
.login-card { border-top: 5px solid var(--blue); }
.signup-card { border-top: 5px solid var(--green); }
.access-kicker { display: block; margin-bottom: 7px; color: var(--blue); font-size: .72rem; font-weight: 900; }
.signup-card .access-kicker { color: var(--green); }
.login-actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 13px 0; }
.check { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--blue); }
.terms { margin: 14px 0; }
.text-link { min-height: 32px; border: 0; background: transparent; color: var(--blue); font-size: .8rem; font-weight: 800; }
.login-card .wide + .wide { margin-top: 8px; }
.demo-access { display: grid; gap: 3px; margin-top: 13px; padding: 10px 12px; border-left: 4px solid var(--yellow); background: var(--soft-yellow); color: #5c4c00; font-size: .78rem; }
.plan-auto { display: grid; gap: 4px; padding: 12px; border: 1px solid #bde8cc; border-radius: 6px; background: var(--soft-green); color: var(--green); }
.plan-auto span { color: #38634a; font-size: .8rem; line-height: 1.4; }
.user-panel-head { border-bottom: 1px solid rgba(0,0,0,.08); background: var(--yellow); }
.user-panel-inner, .admin-bar-inner { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 17px 0; }
.user-panel-inner strong, .admin-bar-inner strong { display: block; font-size: 1.08rem; }
.user-tabs { display: flex; gap: 7px; align-items: center; }
.user-tabs button { min-height: 40px; padding: 0 15px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-weight: 800; }
.user-tabs button.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.account-toolbar { display: grid; grid-template-columns: minmax(180px,1fr) minmax(150px,240px); gap: 8px; margin: 14px 0; }
.account-toolbar input, .account-toolbar select { min-height: 42px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 0 12px; outline: 0; }
.admin-bar { background: #111827; color: #fff; }
.admin-shell .admin-bar { background: linear-gradient(90deg,#0f3fa8,#1456d9); }
.admin-bar span { display: block; margin-bottom: 4px; color: var(--yellow); font-size: .72rem; font-weight: 900; }
.table-select { min-height: 36px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 0 8px; font-weight: 700; }
.admin-page { padding-top: 18px; }
.admin-tabs { position: sticky; top: 82px; z-index: 12; display: flex; gap: 8px; overflow-x: auto; margin: 0 0 16px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.96); box-shadow: 0 8px 20px rgba(31,41,55,.08); }
.admin-tabs button { flex: 0 0 auto; min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-weight: 900; }
.admin-tabs button.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.admin-hero-panel { display: grid; grid-template-columns: 1fr minmax(220px,.32fr); gap: 16px; align-items: stretch; padding: 22px; border-radius: 8px; color: #fff; background: linear-gradient(115deg,rgba(17,24,39,.96),rgba(20,86,217,.82)),url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1400&q=80") center/cover; box-shadow: var(--shadow); }
.admin-hero-panel h2 { margin: 6px 0; font-size: clamp(1.8rem,4vw,3.2rem); line-height: 1; }
.admin-hero-panel p { max-width: 720px; color: rgba(255,255,255,.86); line-height: 1.5; }
.admin-hero-panel .access-kicker { color: var(--yellow); }
.admin-hero-metric { display: grid; align-content: center; padding: 18px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: rgba(255,255,255,.12); }
.admin-hero-metric span, .admin-hero-metric small { color: rgba(255,255,255,.8); font-weight: 800; }
.admin-hero-metric strong { margin: 6px 0; font-size: 2rem; }
.admin-kpis { margin-top: 14px; }
.stat small { display: block; margin-top: 5px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.compact-stats { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 14px; }
.mini-chart { display: grid; gap: 10px; margin-top: 13px; }
.chart-row { display: grid; grid-template-columns: minmax(110px,.8fr) minmax(120px,1.4fr) auto; gap: 10px; align-items: center; }
.chart-row span { color: var(--muted); font-size: .82rem; font-weight: 800; }
.chart-row div { height: 12px; overflow: hidden; border-radius: 999px; background: #e5e7eb; }
.chart-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--yellow),var(--green),var(--blue)); }
.chart-row b { font-size: .85rem; }
.sales-dashboard { display: grid; gap: 16px; }
.sales-kpis { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.sales-dashboard .kanban { grid-template-columns: repeat(5,minmax(180px,1fr)); }
.settings-tabs { display: grid; gap: 14px; }
.settings-tabs article { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f9fafb; }
.settings-tabs h4 { margin: 0 0 10px; }
.process-flow { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.process-flow div { padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.process-flow p { margin-top: 5px; color: var(--muted); line-height: 1.4; }
.upgrade-head { max-width: 760px; margin: 10px auto 24px; text-align: center; }
.upgrade-head h1 { margin: 13px 0; font-size: clamp(2rem,5vw,4rem); line-height: 1; }
.upgrade-head p { color: var(--muted); line-height: 1.55; }
.upgrade-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.upgrade-card { padding: 24px; border: 1px solid var(--line); border-top: 6px solid var(--blue); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.upgrade-card.prime { border-top-color: var(--green); }
.upgrade-card h2 { margin: 8px 0; }
.upgrade-card p { color: var(--muted); line-height: 1.5; }
.upgrade-card ul { margin: 18px 0; padding-left: 20px; line-height: 1.9; }
.whatsapp-button { display: flex; align-items: center; justify-content: center; text-decoration: none; background: var(--green); }
.footer { background: #111827; color: #fff; }
.footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 28px 0; }
.footer p { margin-top: 5px; color: #cbd5e1; }

@media (max-width: 980px) {
  .nav-main { grid-template-columns: 1fr; }
  .mobile-nav { display: grid; }
  .hero, .detail, .form-layout, .dashboard { grid-template-columns: 1fr; }
  .access-layout, .shop-hero { grid-template-columns: 1fr; }
  .upgrade-grid { grid-template-columns: 1fr; }
  .access-left { position: static; }
  .access-photo { min-height: 480px; }
  .categories { grid-template-columns: repeat(3,1fr); }
  .products, .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kanban { grid-template-columns: repeat(5,210px); }
  .capacity-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .capacity-row { grid-template-columns: 1fr; }
  .sales-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sales-dashboard .kanban { grid-template-columns: repeat(5,210px); }
  .admin-list-toolbar, .admin-list-filters, .process-flow { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .topline { display: none; }
  .wrap { width: min(100% - 18px,1240px); }
  .hero-main { min-height: 370px; padding: 23px; }
  .access-photo { min-height: 430px; padding: 23px; }
  .access-offer h1 { font-size: 2.4rem; }
  .uf-bar { grid-template-columns: 1fr 86px; padding: 15px; }
  .login-actions { align-items: flex-start; flex-direction: column; }
  .login-inline, .account-toolbar { grid-template-columns: 1fr; }
  .user-panel-inner, .admin-bar-inner { align-items: flex-start; flex-direction: column; }
  .user-tabs { width: 100%; overflow-x: auto; }
  .admin-tabs { top: 0; }
  .admin-hero-panel { grid-template-columns: 1fr; }
  .chart-row { grid-template-columns: 1fr; }
  .community-panel { grid-template-columns: 1fr; }
  .sales-kpis { grid-template-columns: 1fr; }
  .icon-actions { justify-content: flex-start; flex-wrap: wrap; }
  .categories, .products, .stats, .form-grid { grid-template-columns: 1fr; }
  .capacity-summary { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: 1fr; }
  .section-head, .footer .wrap { display: block; }
  .nav-actions { overflow-x: auto; flex-wrap: nowrap; }
}
