:root {
    --bg: #fbf7ef;
    --bg-2: #f4ecdf;
    --ink: #17201f;
    --muted: #68706f;
    --line: rgba(23, 32, 31, .12);
    --border: rgba(23, 32, 31, .12);
    --card: rgba(255, 255, 255, .82);
    --green: #05634f;
    --green-2: #0a7a61;
    --green-soft: #e3f1eb;
    --coral: #dc775d;
    --coral-soft: #fff0ea;
    --gold: #d8a546;
    --danger: #c94b48;
    --shadow: 0 22px 70px rgba(57, 43, 24, .10);
    --shadow-strong: 0 28px 90px rgba(28, 35, 30, .16);
    --radius: 24px;
    --radius-lg: 34px;
    --container: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Tajawal", "Inter", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 18%, rgba(5, 99, 79, .12), transparent 28%),
        radial-gradient(circle at 86% 12%, rgba(220, 119, 93, .10), transparent 30%),
        linear-gradient(180deg, #fffdfa 0%, var(--bg) 60%, #f6efe4 100%);
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
.container { width: min(var(--container), calc(100% - 34px)); margin-inline: auto; }
.page-shell { overflow: clip; min-height: 100vh; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 253, 248, .88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.topbar-inner { min-height: 74px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 25px; letter-spacing: -.4px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--green), #0b9273); box-shadow: 0 14px 30px rgba(5,99,79,.22); font-size: 13px; }
.nav-links { display: flex; justify-content: center; gap: clamp(22px, 4vw, 44px); font-weight: 900; }
.nav-links a { position: relative; padding: 10px 0; }
.nav-links a:first-child::after { content: ""; position: absolute; inset-inline: 32% 32%; bottom: 0; height: 2px; background: var(--green); border-radius: 99px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.btn, .lang-link, .avatar-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255,255,255,.72);
    font-weight: 900;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.btn:hover, .lang-link:hover, .avatar-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 14px; border-radius: 13px; }
.btn-solid { background: linear-gradient(135deg, var(--green), #0a8268); color: #fff; border-color: transparent; box-shadow: 0 18px 44px rgba(5,99,79,.20); }
.btn-ghost { background: rgba(255,255,255,.76); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; border-color: transparent; }
.menu-button { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 11px; }
.menu-button span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 99px; }
.mobile-menu { display: none; }
.flash-wrap { margin-top: 18px; display: grid; gap: 10px; }
.flash { padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: #fff; font-weight: 800; box-shadow: var(--shadow); }
.flash-success { background: var(--green-soft); color: var(--green); }
.flash-danger { background: #fff0f0; color: var(--danger); }
.flash-warning { background: #fff7df; color: #8a6100; }
.hero { position: relative; padding: 42px 0 52px; }
.hero::after { content: ""; position: absolute; inset-inline-end: 2%; top: 90px; width: 138px; height: 138px; background-image: radial-gradient(rgba(5,99,79,.20) 1.5px, transparent 1.5px); background-size: 18px 18px; opacity: .55; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(390px, .9fr) minmax(430px, 1.1fr); gap: clamp(26px, 4.6vw, 64px); align-items: center; }
.hero-content { position: relative; z-index: 2; }
.trust-pill { width: fit-content; display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px; background: var(--coral-soft); border: 1px solid rgba(220,119,93,.22); color: #6d554b; font-weight: 900; margin-bottom: 18px; }
.trust-pill span { color: var(--coral); }
.hero h1 { margin: 0; max-width: 610px; font-size: clamp(36px, 4.9vw, 58px); line-height: 1.08; letter-spacing: -1.7px; font-weight: 900; }
.hero h1 span { display: block; color: var(--coral); position: relative; }
.hero h1 span::after { content: ""; position: absolute; inset-inline-start: 6%; bottom: 1px; width: 168px; height: 8px; background: rgba(220,119,93,.25); transform: rotate(-2deg); border-radius: 99px; }
.hero p { color: var(--muted); font-size: 17px; line-height: 1.85; max-width: 600px; margin: 18px 0 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.proof-line { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; color: #4b5552; font-weight: 800; }
.proof-line span { display: inline-flex; align-items: center; gap: 8px; }
.proof-line svg { color: var(--green); }
.hero-showcase { position: relative; min-height: 455px; direction: rtl; }
.showcase-orb { position: absolute; width: 205px; height: 205px; border-radius: 50%; background: linear-gradient(135deg, #0c6d58, #77ad90); inset-block-start: 20px; inset-inline-start: 8px; opacity: .86; }
.market-window { position: absolute; inset-block-start: 52px; inset-inline: 54px 0; min-height: 318px; padding: 20px; border-radius: 30px; background: rgba(255,255,255,.80); border: 1px solid rgba(23,32,31,.12); box-shadow: var(--shadow-strong); backdrop-filter: blur(14px); }
.window-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid rgba(23,32,31,.1); }
.window-head div { display: flex; gap: 8px; }
.window-head span { width: 11px; height: 11px; border-radius: 999px; display: block; }
.window-head span:nth-child(1) { background: #ff7365; }
.window-head span:nth-child(2) { background: #f5c85f; }
.window-head span:nth-child(3) { background: #62c580; }
.window-head strong { font-size: 18px; }
.showcase-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 18px; }
.showcase-product { position: relative; display: grid; gap: 7px; padding: 10px; border-radius: 19px; background: rgba(255,255,255,.90); border: 1px solid rgba(23,32,31,.1); min-height: 188px; box-shadow: 0 12px 28px rgba(37,31,22,.06); transition: transform .22s ease; }
.showcase-product:hover { transform: translateY(-4px); }
.product-heart, .heart-dot { position: absolute; inset-block-start: 13px; inset-inline-start: 13px; width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(23,32,31,.12); color: var(--ink); }
.showcase-screen { border-radius: 14px; min-height: 78px; background: linear-gradient(135deg, #111f1c, #1f463c 55%, #f2efe5); padding: 14px; display: grid; align-content: end; gap: 7px; }
.showcase-screen i { display: block; height: 8px; border-radius: 99px; background: rgba(255,255,255,.55); }
.showcase-screen i:nth-child(1) { width: 78%; }
.showcase-screen i:nth-child(2) { width: 60%; }
.showcase-screen i:nth-child(3) { width: 44%; background: var(--coral); }
.showcase-product strong { font-size: 15px; line-height: 1.4; }
.showcase-product small { color: var(--muted); font-weight: 700; }
.showcase-product b { color: var(--green); font-size: 17px; }
.show-all { display: inline-flex; margin-top: 18px; color: var(--green); font-weight: 900; }
.floating-chart, .floating-code, .safe-chip { position: absolute; z-index: 3; border: 1px solid var(--line); background: rgba(255,255,255,.90); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.floating-chart { inset-block-start: 255px; inset-inline-start: 0; width: 150px; border-radius: 22px; padding: 17px; }
.floating-chart strong { font-size: 14px; }
.floating-chart b { color: #159465; }
.chart-line { height: 58px; margin: 12px 0; border-radius: 13px; background: linear-gradient(180deg, rgba(5,99,79,.05), rgba(5,99,79,.13)); position: relative; overflow: hidden; }
.chart-line span { position: absolute; width: 130%; height: 3px; background: var(--green); left: -12px; bottom: 14px; transform: rotate(-14deg); border-radius: 99px; }
.floating-code { inset-block-start: 210px; inset-inline-end: 0; border-radius: 18px; padding: 18px; background: #15221f; color: #d7fff2; font: 700 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; transform: rotate(-2deg); }
.safe-chip { inset-block-end: 34px; inset-inline-end: 42px; display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-radius: 18px; background: linear-gradient(135deg, var(--green), #0c876b); color: #fff; }
.safe-chip small { display: block; opacity: .8; margin-top: 2px; }
.category-strip, .stats-strip { position: relative; z-index: 3; margin-top: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.76); border-radius: 22px; box-shadow: var(--shadow); }
.category-strip { display: grid; grid-template-columns: repeat(5, 1fr); overflow: hidden; }
.category-strip a { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 900; border-inline-end: 1px solid var(--line); }
.category-strip a:last-child { border-inline-end: 0; }
.category-strip span { color: var(--green); font-size: 22px; }
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); padding: 18px; gap: 10px; }
.stats-strip div { text-align: center; border-inline-end: 1px solid var(--line); }
.stats-strip div:last-child { border-inline-end: 0; }
.stats-strip span { display: block; color: var(--muted); font-weight: 800; }
.stats-strip strong { display: block; margin-top: 8px; font-size: 24px; }
.section { padding: 56px 0; }
.section-tight { padding-top: 26px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-kicker { color: var(--green); font-weight: 900; letter-spacing: .3px; }
.section h2, .page-hero h1, .dash-head h1 { margin: 8px 0 0; font-size: clamp(27px, 3.2vw, 40px); line-height: 1.15; }
.section p, .page-hero p { color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 680px; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.82); box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-strong); }
.product-visual { position: relative; min-height: 190px; display: block; background: linear-gradient(135deg, #f8f0e3, #fffaf1); border-bottom: 1px solid var(--line); overflow: hidden; }
.product-visual::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(5,99,79,.16); inset-block-start: 38px; inset-inline-end: -48px; }
.mini-browser { position: absolute; inset-block-start: 18px; inset-inline-end: 18px; display: flex; gap: 7px; }
.mini-browser span, .large-browser span { width: 10px; height: 10px; border-radius: 50%; display: block; background: var(--coral); }
.mini-browser span:nth-child(2), .large-browser span:nth-child(2) { background: var(--gold); }
.mini-browser span:nth-child(3), .large-browser span:nth-child(3) { background: #64bd7d; }
.code-lines { position: absolute; inset: 68px 28px auto 28px; display: grid; gap: 12px; }
.code-lines i { height: 12px; border-radius: 99px; background: rgba(5,99,79,.20); }
.code-lines i:nth-child(1) { width: 78%; }
.code-lines i:nth-child(2) { width: 60%; }
.code-lines i:nth-child(3) { width: 90%; }
.code-lines i:nth-child(4) { width: 45%; background: rgba(220,119,93,.25); }
.visual-price { position: absolute; inset-block-end: 18px; inset-inline-start: 18px; background: #fff; padding: 9px 13px; border-radius: 13px; color: var(--green); font-weight: 900; box-shadow: 0 12px 28px rgba(23,32,31,.1); }
.product-body { padding: 17px; }
.product-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-weight: 800; font-size: 14px; }
.product-meta b { display: inline-flex; align-items: center; gap: 5px; color: var(--green); }
.product-card h3 { font-size: 19px; margin: 14px 0 8px; line-height: 1.3; }
.product-card p { color: var(--muted); line-height: 1.7; min-height: 54px; }
.tech-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-chip, .mini-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.8); color: var(--green); font-weight: 900; font-size: 13px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.price { font-size: 21px; color: var(--ink); }
.round-action { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; background: var(--green); color: #fff; }
.page-main { padding-bottom: 54px; }
.page-hero { padding: 42px 0 22px; background: linear-gradient(180deg, rgba(255,255,255,.46), transparent); }
.filter-card, .detail-card, .buy-box, .panel-card, .table-card, .empty-card, .auth-card, .mega-form { border: 1px solid var(--line); background: rgba(255,255,255,.82); border-radius: 28px; box-shadow: var(--shadow); }
.filter-card { padding: 18px; margin-bottom: 24px; }
.filter-card form { display: grid; grid-template-columns: 1fr 240px auto; gap: 12px; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 15px; padding: 13px 14px; background: #fffdfa; color: var(--ink); outline: none; }
input:focus, textarea:focus, select:focus { border-color: rgba(5,99,79,.45); box-shadow: 0 0 0 4px rgba(5,99,79,.08); }
.product-hero { padding: 38px 0 16px; }
.product-hero-grid { display: grid; grid-template-columns: 1fr 330px; gap: 28px; align-items: start; }
.large-visual { min-height: 285px; border-radius: 34px; position: relative; overflow: hidden; background: linear-gradient(135deg, #f7efe4, #ffffff); border: 1px solid var(--line); box-shadow: var(--shadow); }
.large-visual::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(5,99,79,.16); inset-block-start: 48px; inset-inline-end: 32px; }
.large-browser { position: absolute; inset-block-start: 24px; inset-inline-start: 24px; display: flex; gap: 8px; }
.large-code { position: absolute; inset-block-start: 78px; inset-inline-start: 40px; background: #14221f; color: #dafdee; padding: 20px; border-radius: 20px; font: 800 14px/1.8 ui-monospace, monospace; box-shadow: var(--shadow); transform: rotate(-2deg); }
.large-visual-text { position: absolute; inset-inline-end: 40px; inset-block-end: 40px; display: grid; gap: 8px; }
.large-visual-text strong { font-size: 28px; max-width: 360px; }
.large-visual-text small { color: var(--muted); font-weight: 900; }
.badges-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.badge { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 900; }
.badge-success { background: var(--green-soft); color: var(--green); }
.badge-accent { background: var(--coral-soft); color: var(--coral); }
.product-main h1 { font-size: clamp(29px, 3.8vw, 44px); line-height: 1.1; margin: 0; }
.product-main p { color: var(--muted); font-size: 16px; line-height: 1.85; }
.buy-box { position: sticky; top: 110px; padding: 24px; display: grid; gap: 13px; }
.buy-box span { color: var(--muted); font-weight: 900; }
.buy-box strong { font-size: 31px; color: var(--green); }
.buy-box form { display: grid; }
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.detail-stack { display: grid; gap: 20px; }
.detail-card { padding: 20px; }
.detail-card h2 { margin: 0 0 14px; font-size: 22px; }
.detail-card ul { margin: 0; padding-inline-start: 22px; color: var(--muted); line-height: 1.9; }
.detail-card p { color: var(--muted); line-height: 1.8; overflow-wrap: anywhere; }
.video-box { border-radius: 22px; overflow: hidden; aspect-ratio: 16/9; background: #111; }
.video-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.auth-page { min-height: 72vh; display: grid; place-items: center; padding: 48px 17px; }
.auth-card { width: min(980px, 100%); display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; }
.auth-art { padding: 44px; background: linear-gradient(135deg, var(--green), #0a8268); color: #fff; display: grid; align-content: center; gap: 10px; }
.auth-art span { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; background: rgba(255,255,255,.14); font-weight: 900; font-size: 24px; }
.auth-art h1 { font-size: 35px; margin: 0; }
.auth-art p { opacity: .85; line-height: 1.8; }
.auth-form { padding: 38px; }
.auth-form form, .stack-form { display: grid; gap: 15px; }
.auth-form label, .stack-form label, .mega-form label { display: grid; gap: 8px; font-weight: 900; color: #32413d; }
.auth-switch { margin-top: 18px; font-weight: 900; color: var(--green); }
.dashboard-page { padding-top: 34px; }
.dashboard-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.side-panel { position: sticky; top: 110px; border: 1px solid var(--line); background: rgba(255,255,255,.84); border-radius: 28px; padding: 18px; box-shadow: var(--shadow); }
.side-user { display: grid; gap: 7px; padding: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.side-user span { width: 46px; height: 46px; border-radius: 16px; background: var(--green); color: #fff; display: grid; place-items: center; }
.side-user small { color: var(--muted); overflow-wrap: anywhere; }
.side-links { display: grid; gap: 8px; }
.side-links a { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border-radius: 14px; font-weight: 900; color: #34403d; }
.side-links a:hover, .side-links a.is-active { background: var(--green-soft); color: var(--green); }
.dash-content { min-width: 0; }
.dash-head { margin-bottom: 20px; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.dash-stats div { border: 1px solid var(--line); background: rgba(255,255,255,.84); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); }
.dash-stats span { color: var(--muted); font-weight: 900; }
.dash-stats strong { display: block; font-size: 28px; margin-top: 10px; }
.panel-card, .table-card { padding: 24px; }
.table-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.responsive-table { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: start; padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 14px; }
td strong { display: block; margin-bottom: 5px; }
td small { color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px; background: #f3efe6; color: #665b4b; font-weight: 900; font-size: 13px; }
.status-approved { background: var(--green-soft); color: var(--green); }
.status-pending_review { background: #fff4d7; color: #8b640b; }
.status-rejected { background: #ffe7e7; color: var(--danger); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.row-actions form, .inline-action-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-actions input, .inline-action-form input { min-width: 150px; padding: 10px 12px; }
.mega-form { padding: 24px; display: grid; gap: 24px; }
.form-section { display: grid; gap: 16px; }
.form-section h2 { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.check-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0; }
.check-row label { display: flex; align-items: center; gap: 7px; }
.check-row input[type="checkbox"] { width: auto; }
.footer { border-top: 1px solid var(--line); padding: 28px 0; background: rgba(255,255,255,.56); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer-inner div { display: grid; gap: 5px; }
.footer-inner span { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 16px; }
.footer-links a { color: var(--green); font-weight: 900; font-size: 14px; }
@media (max-width: 1100px) {
    .topbar-inner { grid-template-columns: auto 1fr auto; }
    .nav-links { display: none; }
    .menu-button { display: block; }
    .top-actions { justify-content: end; }
    .hero-grid, .product-hero-grid, .detail-grid { grid-template-columns: 1fr; }
    .hero-showcase { min-height: 520px; max-width: 760px; width: 100%; margin-inline: auto; }
    .buy-box, .side-panel { position: static; }
    .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .topbar-inner { min-height: 72px; gap: 10px; }
    .brand { font-size: 22px; }
    .brand-mark { width: 38px; height: 38px; }
    .top-actions { display: none; }
    .mobile-menu { display: none; padding: 0 17px 17px; border-top: 1px solid var(--line); background: rgba(255,253,248,.96); }
    .mobile-menu.is-open { display: grid; gap: 8px; }
    .mobile-menu a { padding: 13px 14px; border-radius: 14px; background: rgba(255,255,255,.85); border: 1px solid var(--line); font-weight: 900; }
    .hero { padding: 42px 0 50px; }
    .hero h1 { font-size: clamp(38px, 12vw, 58px); letter-spacing: -1.2px; }
    .hero p { font-size: 17px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-showcase { min-height: auto; display: grid; gap: 14px; }
    .showcase-orb { width: 180px; height: 180px; inset-block-start: 10px; }
    .market-window, .floating-chart, .floating-code, .safe-chip { position: relative; inset: auto; transform: none; }
    .market-window { min-height: auto; padding: 18px; }
    .showcase-products { grid-template-columns: 1fr; }
    .floating-chart, .floating-code, .safe-chip { width: 100%; }
    .category-strip { grid-template-columns: 1fr; }
    .category-strip a { border-inline-end: 0; border-bottom: 1px solid var(--line); }
    .stats-strip, .products-grid, .form-grid, .dash-stats, .auth-card { grid-template-columns: 1fr; }
    .stats-strip div { border-inline-end: 0; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
    .stats-strip div:last-child { border-bottom: 0; }
    .section-head, .footer-inner, .table-head { align-items: stretch; flex-direction: column; }
    .filter-card form { grid-template-columns: 1fr; }
    .large-visual { min-height: 280px; }
    .large-code { inset-inline: 18px auto; inset-block-start: 78px; max-width: calc(100% - 36px); }
    .large-visual-text { inset-inline: 22px; inset-block-end: 22px; }
    .large-visual-text strong { font-size: 25px; }
    .auth-art, .auth-form { padding: 28px; }
    .row-actions, .inline-action-form { flex-direction: column; align-items: stretch; }
    .btn, .lang-link, .avatar-link { width: 100%; }
}

/* Phase 5: secure delivery, source files, favorites, reviews */
.card-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.card-actions form {
    margin: 0;
}
.round-action.is-liked {
    background: var(--coral);
    color: #fff;
    border-color: var(--coral);
}
.panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.delivery-state {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 16px;
    border-radius: 20px;
    background: #fff7f1;
    border: 1px solid rgba(220, 107, 83, .22);
}
.delivery-state svg {
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(220, 107, 83, .12);
    fill: var(--coral);
}
.delivery-state strong,
.delivery-state span {
    display: block;
}
.delivery-state span {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}
.delivery-state.is-ready {
    background: rgba(5, 111, 89, .08);
    border-color: rgba(5, 111, 89, .2);
}
.delivery-state.is-ready svg {
    background: rgba(5, 111, 89, .12);
    fill: var(--emerald);
}
.upload-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 16px;
    margin: 18px 0;
    padding: 18px;
    border-radius: 24px;
    background: rgba(5, 111, 89, .06);
    border: 1px dashed rgba(5, 111, 89, .3);
}
.upload-card label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}
.upload-card input[type=file] {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}
.review-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.review-item:last-child {
    border-bottom: 0;
}
.review-item strong,
.review-item span {
    display: inline-flex;
    align-items: center;
    margin-inline-end: 10px;
}
.review-item span {
    color: #d99a17;
    letter-spacing: 2px;
}
.review-item p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.8;
}
.review-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.muted-note {
    display: inline-flex;
    max-width: 260px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 13px;
}
.compact-grid.products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .panel-grid,
    .upload-card,
    .compact-grid.products-grid {
        grid-template-columns: 1fr;
    }
    .upload-card .btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .card-actions {
        width: 100%;
        justify-content: space-between;
    }
    .delivery-state {
        align-items: flex-start;
    }
    .row-actions .btn,
    .row-actions form {
        width: 100%;
    }
    .row-actions form button {
        width: 100%;
    }
}


/* Phase 6: visual scale refinement + real project screenshots + public pages */
.product-visual.has-image {
    min-height: 190px;
    background: #f5efe5;
}
.product-visual.has-image img,
.large-visual.has-image img,
.screenshot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-visual.has-image::before,
.large-visual.has-image::before {
    display: none;
}
.product-visual.has-image::after,
.large-visual.has-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23,32,31,0) 35%, rgba(23,32,31,.34) 100%);
    pointer-events: none;
}
.large-visual.has-image {
    min-height: 285px;
}
.large-visual.has-image .large-browser,
.large-visual.has-image .large-visual-text,
.large-visual.has-image .large-code {
    z-index: 2;
}
.large-visual.has-image .large-visual-text strong,
.large-visual.has-image .large-visual-text small {
    color: #fff;
    text-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.image-field {
    padding: 16px;
    border-radius: 18px;
    background: rgba(5,99,79,.045);
    border: 1px dashed rgba(5,99,79,.22);
}
.image-field input[type=file] {
    background: #fff;
}
.hint-text {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    font-weight: 700;
}
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.screenshot-card {
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f7efe4;
    box-shadow: 0 12px 28px rgba(37,31,22,.06);
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.info-card {
    min-height: 210px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255,255,255,.82);
    box-shadow: var(--shadow);
    display: grid;
    align-content: start;
    gap: 12px;
}
.info-card span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--green-soft);
    color: var(--green);
    font-weight: 900;
}
.info-card h3 {
    margin: 0;
    font-size: 21px;
}
.info-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 15px;
}
.seller-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.seller-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255,255,255,.84);
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
}
.seller-avatar {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--green), #0a8268);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(5,99,79,.18);
}
.seller-card h3 {
    margin: 0;
    font-size: 22px;
}
.seller-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}
.seller-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.seller-stats span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}
.seller-profile-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 24px;
}
.seller-profile-head .seller-avatar {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    font-size: 22px;
}
.seller-profile-head h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
}
.seller-profile-head p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

@media (min-width: 861px) and (max-width: 1200px) {
    .top-actions .btn-small span,
    .top-actions .lang-link span,
    .top-actions .avatar-link span {
        display: none;
    }
    .top-actions .btn-small,
    .top-actions .lang-link,
    .top-actions .avatar-link {
        width: 44px;
        padding: 0;
    }
}
@media (max-width: 1100px) {
    .hero-showcase { min-height: 455px; }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-content {
        max-width: 760px;
        margin-inline: auto;
        text-align: center;
    }
    .trust-pill,
    .hero-actions,
    .proof-line {
        margin-inline: auto;
        justify-content: center;
    }
}
@media (max-width: 860px) {
    .hero { padding: 28px 0 38px; }
    .hero h1 { font-size: clamp(31px, 9.5vw, 44px); letter-spacing: -1px; }
    .hero p { font-size: 15.5px; }
    .hero-showcase { transform: scale(.96); transform-origin: top center; }
    .market-window { border-radius: 24px; }
    .showcase-product { min-height: auto; }
    .product-visual, .product-visual.has-image { min-height: 170px; }
    .page-hero { padding: 30px 0 16px; }
    .section { padding: 40px 0; }
    .info-grid, .seller-grid, .screenshots-grid { grid-template-columns: 1fr; }
    .seller-profile-head { grid-template-columns: 1fr; text-align: center; }
    .seller-profile-head .seller-avatar { margin-inline: auto; }
}
@media (max-width: 520px) {
    .container { width: min(100% - 24px, var(--container)); }
    .topbar-inner { min-height: 66px; }
    .brand-text { font-size: 20px; }
    .hero h1 { font-size: clamp(28px, 9vw, 38px); }
    .trust-pill { font-size: 13px; }
    .proof-line { gap: 10px; font-size: 13px; }
    .floating-code { font-size: 12px; }
    .large-visual, .large-visual.has-image { min-height: 235px; border-radius: 24px; }
    .large-code { font-size: 12px; padding: 14px; }
    .buy-box strong { font-size: 25px; }
    .product-main h1 { font-size: 27px; }
    .screenshots-grid { gap: 10px; }
}

/* Phase 7 management refinements */
.status-pending, .status-new { background: #fff4d7; color: #8b640b; }
.status-approved, .status-read, .status-active { background: var(--green-soft); color: var(--green); }
.status-rejected, .status-suspended { background: #ffe7e7; color: var(--danger); }
.status-hidden, .status-closed { background: #f3efe6; color: #665b4b; }
.panel-card .stack-form, .table-card .stack-form { display: grid; gap: 14px; }
.table-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.table-card td p { max-width: 420px; }
.dash-stats strong { overflow-wrap: anywhere; }
.side-links a { min-height: 40px; font-size: 14px; }
.dashboard-grid { grid-template-columns: 260px 1fr; }
@media (max-width: 860px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .side-panel { position: static; }
    .side-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .side-links a { justify-content: center; text-align: center; }
}
@media (max-width: 520px) {
    .side-links { grid-template-columns: 1fr; }
    .row-actions form, .inline-action-form { width: 100%; }
    .row-actions .btn, .inline-action-form .btn { width: 100%; }
}

/* Phase 8: Seller activation and 403 prevention */
.compact-hero {
    min-height: auto;
    padding: 54px 0 42px;
}

.seller-start-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 28px;
    align-items: stretch;
}

.seller-start-grid h1 {
    max-width: 760px;
    margin-bottom: 16px;
    font-size: clamp(34px, 5vw, 64px);
}

.seller-start-grid p {
    max-width: 780px;
    color: var(--text-soft);
    line-height: 1.9;
    font-weight: 600;
}

.seller-start-grid form {
    margin: 26px 0 12px;
}

.seller-start-grid small {
    color: var(--text-muted);
    font-weight: 700;
}

.seller-start-card {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(31, 45, 42, .11);
    box-shadow: var(--shadow-soft);
}

.seller-start-card strong {
    display: block;
    margin-bottom: 18px;
    color: var(--text-main);
    font-size: 22px;
}

.seller-start-card ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.seller-start-card li {
    position: relative;
    padding-inline-start: 28px;
    color: var(--text-soft);
    font-weight: 800;
}

.seller-start-card li::before {
    content: '✓';
    position: absolute;
    inset-inline-start: 0;
    color: var(--primary);
    font-weight: 900;
}

@media (max-width: 860px) {
    .seller-start-grid {
        grid-template-columns: 1fr;
    }

    .compact-hero {
        padding: 36px 0 28px;
    }
}

/* Phase 9: messages, notifications, reports */
.notify-link{position:relative;overflow:visible}.notify-link b{position:absolute;inset-block-start:-7px;inset-inline-end:-7px;min-width:21px;height:21px;padding:0 6px;border-radius:999px;background:#df725d;color:#fff;font-size:11px;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 8px 22px rgba(223,114,93,.28)}
.seller-message-card{border-color:rgba(0,112,89,.18);background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(239,247,243,.9))}.report-card{background:#fffaf7;border-color:rgba(223,114,93,.18)}
.thread-list{display:grid;gap:14px}.thread-card{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:start;padding:18px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 10px 30px rgba(33,29,22,.045);transition:.2s ease}.thread-card:hover{transform:translateY(-2px);border-color:rgba(0,112,89,.22)}.thread-card strong{display:block;font-size:18px;color:var(--ink)}.thread-card span{display:block;margin-top:5px;color:var(--muted);font-weight:800}.thread-card small{display:block;margin-top:7px;color:var(--muted)}.thread-card p{margin:10px 0 0;color:#5d625f;line-height:1.7}.thread-card aside{display:flex;flex-direction:column;align-items:flex-end;gap:10px}.unread-badge{display:inline-flex;padding:6px 10px;border-radius:999px;background:#0b7d68;color:#fff;font-size:12px}.conversation-box{background:#fff;border:1px solid var(--line);border-radius:26px;padding:22px;box-shadow:0 14px 42px rgba(33,29,22,.055)}.conversation-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--line)}.conversation-head h2{margin:0 0 7px;font-size:24px}.conversation-head p{margin:0;color:var(--muted);font-weight:700}.message-stream{display:grid;gap:14px;margin:18px 0}.message-bubble{padding:16px 18px;border:1px solid rgba(0,112,89,.12);border-radius:22px;background:linear-gradient(180deg,#fff,#f8fbf8)}.message-bubble header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.message-bubble strong{color:#0b6d5d}.message-bubble small{color:var(--muted);font-size:12px}.message-bubble p{margin:0;line-height:1.9;color:var(--ink)}.reply-form{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.notifications-list{display:grid;gap:12px}.notification-item{display:grid;grid-template-columns:1fr auto;gap:16px;padding:16px 18px;border:1px solid var(--line);border-radius:20px;background:#fff}.notification-item.is-unread{border-color:rgba(0,112,89,.25);background:linear-gradient(90deg,rgba(0,112,89,.06),#fff)}.notification-item strong{display:block;color:var(--ink);font-size:17px}.notification-item p{margin:7px 0;color:var(--muted);line-height:1.7}.notification-item small{color:#8a8f8c}.card-head-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.card-head-actions h2{margin:0}.status-open{background:#e8f7f2;color:#08705d}.status-reviewing{background:#fff1d9;color:#8a5b00}
@media(max-width:760px){.thread-card,.notification-item,.conversation-head{grid-template-columns:1fr;display:grid}.thread-card aside,.notification-item aside{align-items:stretch}.conversation-box{padding:16px}.conversation-head h2{font-size:20px}.message-bubble header{align-items:flex-start;flex-direction:column}.card-head-actions{align-items:stretch;flex-direction:column}.card-head-actions .btn{width:100%}}

/* Phase 10: header and hero refinement */
.btn-outline {
    background: rgba(255,255,255,.92);
    border-color: rgba(5,99,79,.18);
    color: var(--green);
}
.btn-outline:hover {
    background: #fff;
}
.topbar {
    background: rgba(255, 252, 246, .92);
    box-shadow: 0 10px 35px rgba(38, 33, 23, .05);
}
.topbar-inner {
    min-height: 84px;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 14px;
}
.brand {
    gap: 12px;
}
.brand-copy {
    display: grid;
    gap: 3px;
}
.brand-text {
    display: block;
    font-size: 23px;
    line-height: 1;
}
.brand-copy small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}
.nav-links {
    justify-self: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(23, 32, 31, .08);
    border-radius: 18px;
    background: rgba(255,255,255,.74);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.nav-links a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 13px;
    color: #293330;
}
.nav-links a.is-active {
    background: rgba(5,99,79,.08);
    color: var(--green);
}
.nav-links a::after,
.nav-links a:first-child::after {
    display: none;
}
.top-tools,
.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.top-actions {
    justify-content: flex-end;
}
.compact-control {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
}
.hero {
    padding: 28px 0 34px;
}
.hero-shell {
    display: grid;
    gap: 16px;
}
.hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr);
    gap: 34px;
    align-items: center;
}
.hero-content {
    max-width: 610px;
}
.hero-topline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.hero-mini-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(23, 32, 31, .09);
    background: rgba(255,255,255,.76);
    color: #47524e;
    font-size: 13px;
    font-weight: 900;
}
.hero h1 {
    max-width: 590px;
    font-size: clamp(34px, 4.1vw, 54px);
    line-height: 1.08;
    letter-spacing: -1.2px;
}
.hero h1 span {
    margin-top: 6px;
}
.hero h1 span::after {
    width: 144px;
    height: 7px;
    inset-inline-start: 4%;
    bottom: 2px;
}
.hero p {
    max-width: 580px;
    font-size: 16px;
    line-height: 1.88;
    margin-top: 16px;
}
.hero-actions {
    margin-top: 20px;
}
.proof-line {
    margin-top: 18px;
}
.hero-stat-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}
.hero-stat-cards article {
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(23, 32, 31, .08);
    background: rgba(255,255,255,.76);
    box-shadow: 0 12px 34px rgba(40, 31, 20, .05);
}
.hero-stat-cards strong {
    display: block;
    font-size: 22px;
    line-height: 1;
    color: var(--green);
}
.hero-stat-cards span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.hero-showcase {
    min-height: 430px;
}
.showcase-orb {
    width: 180px;
    height: 180px;
    inset-block-start: 14px;
    inset-inline-start: 18px;
}
.market-window {
    inset-block-start: 34px;
    inset-inline: 34px 0;
    min-height: 302px;
    padding: 18px;
    border-radius: 28px;
}
.window-head {
    padding-bottom: 14px;
}
.window-head strong {
    font-size: 17px;
}
.window-link {
    margin-inline-start: auto;
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}
.showcase-products {
    gap: 12px;
}
.showcase-product {
    min-height: 172px;
    padding: 10px;
}
.showcase-screen {
    min-height: 72px;
}
.showcase-product strong {
    font-size: 14px;
}
.window-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.window-footer span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(23, 32, 31, .08);
    background: rgba(255,255,255,.84);
    color: #48524d;
    font-size: 13px;
    font-weight: 900;
}
.floating-chart,
.floating-code,
.safe-chip,
.tech-ribbon {
    box-shadow: var(--shadow);
}
.floating-chart {
    inset-block-start: 230px;
    inset-inline-start: -8px;
    width: 155px;
}
.floating-code {
    inset-block-start: 178px;
    inset-inline-end: -10px;
}
.safe-chip {
    inset-block-end: 30px;
    inset-inline-end: 26px;
}
.tech-ribbon {
    position: absolute;
    inset-block-end: -6px;
    inset-inline-start: 74px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.92);
    z-index: 3;
}
.tech-ribbon span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
}
.category-strip-wrap {
    margin-top: 10px;
}
.category-strip,
.stats-strip {
    border-radius: 24px;
}
.category-strip a,
.stats-strip span,
.stats-strip strong {
    text-align: center;
}
@media (max-width: 1200px) {
    .topbar-inner {
        grid-template-columns: auto 1fr auto auto;
    }
    .top-actions .btn-small span,
    .top-tools .compact-control span {
        display: none;
    }
    .top-actions .btn-small,
    .top-tools .compact-control {
        width: 44px;
        padding: 0;
    }
    .hero-grid {
        gap: 26px;
    }
}
@media (max-width: 1100px) {
    .topbar-inner {
        grid-template-columns: auto 1fr auto auto;
        min-height: 78px;
    }
    .nav-links {
        display: none;
    }
    .menu-button {
        display: block;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-content {
        max-width: 760px;
        margin-inline: auto;
        text-align: center;
    }
    .hero-topline,
    .hero-actions,
    .proof-line,
    .hero-stat-cards {
        justify-content: center;
        margin-inline: auto;
    }
    .hero-showcase {
        max-width: 760px;
        width: 100%;
        margin-inline: auto;
    }
}
@media (max-width: 860px) {
    .topbar-inner {
        min-height: 72px;
        grid-template-columns: auto 1fr auto;
        gap: 10px;
    }
    .brand-copy small,
    .top-actions {
        display: none;
    }
    .brand-text {
        font-size: 21px;
    }
    .hero {
        padding: 18px 0 24px;
    }
    .hero h1 {
        font-size: clamp(28px, 8.6vw, 42px);
        letter-spacing: -.8px;
    }
    .hero p {
        font-size: 15.5px;
    }
    .hero-stat-cards {
        grid-template-columns: 1fr;
    }
    .hero-showcase {
        min-height: auto;
        display: grid;
        gap: 12px;
    }
    .showcase-orb {
        width: 150px;
        height: 150px;
        inset-block-start: 8px;
        inset-inline-start: 10px;
    }
    .market-window,
    .floating-chart,
    .floating-code,
    .safe-chip,
    .tech-ribbon {
        position: relative;
        inset: auto;
        width: 100%;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
    }
    .market-window {
        min-height: auto;
    }
    .showcase-products {
        grid-template-columns: 1fr;
    }
    .tech-ribbon {
        justify-content: center;
        flex-wrap: wrap;
    }
}
@media (max-width: 520px) {
    .top-tools .compact-control {
        width: 42px;
        min-height: 42px;
        padding: 0;
    }
    .hero-mini-note {
        width: 100%;
        justify-content: center;
    }
    .hero-stat-cards article {
        padding: 14px 16px;
    }
    .window-head {
        flex-wrap: wrap;
    }
    .window-link {
        width: 100%;
        margin-inline-start: 0;
        text-align: center;
    }
}

/* Phase 11: payments and invoices */
.mini-link {
    display: inline-flex;
    margin-top: 7px;
    color: var(--green);
    font-weight: 900;
    font-size: 13px;
}
.payment-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: start;
}
.payment-instructions p {
    color: var(--muted);
    line-height: 1.9;
}
.payment-total {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--green), #0a8268);
    color: #fff;
    margin: 14px 0 18px;
}
.payment-total span {
    opacity: .82;
    font-weight: 800;
}
.payment-total strong {
    font-size: 32px;
    line-height: 1;
}
.invoice-page {
    padding: 34px 0 54px;
}
.invoice-wrap {
    display: grid;
    gap: 16px;
}
.invoice-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.invoice-card {
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.invoice-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    background: linear-gradient(135deg, #fffaf1, #f3fbf7);
    border-bottom: 1px solid var(--line);
}
.invoice-head > div {
    display: grid;
    gap: 8px;
}
.invoice-head h1,
.invoice-head p {
    margin: 0;
}
.invoice-head p {
    color: var(--muted);
    line-height: 1.7;
}
.invoice-head aside {
    display: grid;
    gap: 7px;
    text-align: end;
    color: var(--muted);
    font-weight: 800;
}
.invoice-head aside strong {
    color: var(--ink);
    font-size: 30px;
    line-height: 1;
}
.invoice-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--line);
}
.invoice-parties div {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    background: #fffdf8;
}
.invoice-parties h3 {
    margin: 0 0 9px;
}
.invoice-parties p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}
.invoice-table {
    padding: 0 28px 22px;
}
.invoice-summary {
    width: min(470px, calc(100% - 56px));
    margin-inline-start: auto;
    margin-inline-end: 28px;
    margin-bottom: 22px;
    display: grid;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
}
.invoice-summary div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
}
.invoice-summary div:last-child {
    border-bottom: 0;
}
.invoice-summary span {
    color: var(--muted);
    font-weight: 900;
}
.invoice-summary strong {
    color: var(--ink);
}
.invoice-summary .invoice-total {
    background: var(--green);
    color: #fff;
}
.invoice-summary .invoice-total span,
.invoice-summary .invoice-total strong {
    color: #fff;
}
.invoice-note {
    padding: 18px 28px;
    background: #fffaf3;
    border-top: 1px solid var(--line);
}
.invoice-note p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    font-weight: 800;
}
@media (max-width: 860px) {
    .payment-grid,
    .invoice-parties {
        grid-template-columns: 1fr;
    }
    .invoice-head,
    .invoice-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .invoice-head aside {
        text-align: start;
    }
    .invoice-summary {
        width: calc(100% - 32px);
        margin-inline: 16px;
    }
    .invoice-table {
        padding: 0 16px 18px;
    }
}
@media print {
    .topbar,
    .footer,
    .invoice-toolbar,
    .flash-wrap {
        display: none !important;
    }
    body {
        background: #fff !important;
    }
    .invoice-page {
        padding: 0;
    }
    .invoice-card {
        box-shadow: none;
        border-radius: 0;
        border: 0;
    }
    .container {
        width: 100%;
    }
}

/* Phase 12: currency and platform payment methods */
.payment-method-list {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}
.payment-method-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(5,99,79,.14);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(239,247,243,.76));
    box-shadow: 0 12px 30px rgba(37,31,22,.05);
}
.payment-method-card strong {
    color: var(--ink);
    font-size: 17px;
}
.payment-method-card span {
    width: fit-content;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-weight: 900;
    font-size: 12px;
}
.payment-method-card p,
.payment-method-card small {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.payment-methods-admin .panel-card textarea,
.payment-methods-admin .table-card p {
    overflow-wrap: anywhere;
}
.payment-total strong {
    direction: ltr;
    unicode-bidi: embed;
}
.status-hidden {
    background: #f5efe4;
    color: #66543f;
}
.status-active {
    background: var(--green-soft);
    color: var(--green);
}
@media (max-width: 760px) {
    .payment-method-card {
        padding: 14px;
    }
}

/* Phase 13: header organization cleanup */
.topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 252, 246, .95);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(23, 32, 31, .08);
    box-shadow: 0 12px 30px rgba(39, 28, 15, .04);
}
.topbar .container {
    width: min(1240px, calc(100% - 28px));
}
.topbar-inner {
    min-height: 86px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}
.header-side,
.header-center,
.top-tools,
.top-actions {
    display: flex;
    align-items: center;
}
.header-side-right {
    justify-content: flex-start;
}
.header-side-left {
    justify-content: flex-end;
    gap: 12px;
}
.header-center {
    justify-content: center;
}
.brand {
    gap: 12px;
    white-space: nowrap;
}
.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 15px;
    box-shadow: 0 10px 24px rgba(5, 99, 79, .14);
}
.brand-copy {
    display: grid;
    gap: 2px;
}
.brand-text {
    display: block;
    font-size: 20px;
    line-height: 1.05;
}
.brand-copy small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
}
.nav-links {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(23, 32, 31, .08);
    border-radius: 18px;
    background: rgba(255,255,255,.78);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}
.nav-links a {
    position: relative;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 12px;
    color: #25302e;
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
    transition: .22s ease;
}
.nav-links a:hover {
    background: rgba(5, 99, 79, .05);
    color: var(--green);
}
.nav-links a.is-active {
    background: rgba(5, 99, 79, .09);
    color: var(--green);
}
.nav-links a::after,
.nav-links a:first-child::after {
    display: none;
}
.top-tools {
    gap: 8px;
}
.compact-control {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(23, 32, 31, .08);
    background: rgba(255,255,255,.82);
    color: #25302e;
    font-size: 14px;
    font-weight: 900;
}
.compact-control:hover {
    background: #fff;
    border-color: rgba(5, 99, 79, .18);
}
.notify-link {
    position: relative;
}
.notify-link b {
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef7d61;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
}
.top-actions {
    gap: 10px;
}
.header-cta {
    min-height: 44px;
    padding-inline: 18px;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(5, 99, 79, .16);
}
.menu-button {
    display: none;
    width: 46px;
    height: 46px;
    padding: 11px;
    border: 1px solid rgba(23, 32, 31, .08);
    border-radius: 14px;
    background: rgba(255,255,255,.88);
}
.mobile-menu {
    display: none;
    padding: 0 14px 16px;
    border-top: 1px solid rgba(23, 32, 31, .08);
    background: rgba(255, 252, 246, .98);
}
.mobile-menu.is-open {
    display: block;
}
.mobile-menu-head {
    display: grid;
    gap: 4px;
    padding: 16px 2px 14px;
}
.mobile-menu-head strong {
    font-size: 18px;
}
.mobile-menu-head span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.mobile-menu-links {
    display: grid;
    gap: 8px;
}
.mobile-menu a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(23, 32, 31, .08);
    font-weight: 900;
}
.mobile-menu a:hover {
    background: #fff;
}
@media (max-width: 1180px) {
    .topbar-inner {
        grid-template-columns: auto minmax(0,1fr) auto;
        gap: 14px;
    }
    .nav-links a {
        padding-inline: 12px;
        font-size: 14px;
    }
    .compact-control span {
        display: none;
    }
    .compact-control {
        width: 42px;
        padding: 0;
        justify-content: center;
    }
    .header-cta span {
        display: none;
    }
    .header-cta {
        width: 44px;
        padding: 0;
        justify-content: center;
    }
}
@media (max-width: 980px) {
    .topbar-inner {
        min-height: 74px;
        grid-template-columns: auto 1fr auto;
    }
    .header-center {
        display: none;
    }
    .top-tools,
    .top-actions {
        display: none;
    }
    .menu-button {
        display: block;
    }
}
@media (max-width: 640px) {
    .topbar .container {
        width: min(100% - 18px, 1240px);
    }
    .topbar-inner {
        min-height: 68px;
        gap: 10px;
    }
    .brand-mark {
        width: 40px;
        height: 40px;
    }
    .brand-text {
        font-size: 18px;
    }
    .brand-copy small {
        display: none;
    }
}

/* Phase 14: coupons */
.coupon-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin: 16px 0;
    padding: 14px;
    border: 1px dashed rgba(5, 99, 79, .25);
    border-radius: 18px;
    background: rgba(227, 241, 235, .55);
}
.coupon-form label {
    display: grid;
    gap: 7px;
    font-weight: 900;
}
.coupon-form small {
    grid-column: 1 / -1;
    color: var(--muted);
    font-weight: 800;
    line-height: 1.7;
}
.coupon-applied-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--green-soft);
    color: var(--green);
    font-weight: 900;
}
.coupon-applied-box strong {
    color: var(--green);
    font-size: 20px;
}
@media (max-width: 640px) {
    .coupon-form {
        grid-template-columns: 1fr;
    }
    .coupon-form .btn {
        width: 100%;
    }
}

/* Phase 15: support tickets and help center */
.support-create-card textarea,
.support-ticket-box textarea {
    min-height: 130px;
}
.ticket-grid {
    display: grid;
    gap: 12px;
}
.ticket-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 12px 30px rgba(39, 28, 15, .045);
    transition: .2s ease;
}
.ticket-card:hover {
    transform: translateY(-2px);
    border-color: rgba(5,99,79,.22);
    background: #fff;
}
.ticket-card strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.5;
}
.ticket-card span,
.ticket-card small {
    display: block;
    color: var(--muted);
    font-weight: 800;
    margin-top: 5px;
}
.ticket-card p {
    margin: 10px 0 0;
    color: #5f6865;
    line-height: 1.7;
}
.ticket-card aside {
    display: grid;
    justify-items: end;
    gap: 9px;
}
.ticket-card b,
.support-ticket-box .badge {
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}
.ticket-card em {
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--coral);
    color: #fff;
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
}
.status-open { background: #e8f7f2; color: #08705d; }
.status-pending { background: #fff4d7; color: #8b640b; }
.status-answered { background: #eef2ff; color: #314a90; }
.status-closed { background: #f3efe6; color: #665b4b; }
.status-low { background: #eef8f2; color: #167a52; }
.status-normal { background: #f2f0e8; color: #675b44; }
.status-high { background: #fff0e8; color: #a14a22; }
.status-urgent { background: #ffe7e7; color: #c94b48; }
.support-ticket-box .conversation-head .row-actions {
    align-items: center;
}
.support-ticket-box .conversation-head form {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}
.message-bubble.is-admin-reply {
    background: linear-gradient(180deg, #eff8f5, #ffffff);
    border-color: rgba(5,99,79,.16);
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.faq-card h2 {
    font-size: 21px;
}
.faq-card p {
    margin-bottom: 0;
}
@media (max-width: 760px) {
    .ticket-card {
        grid-template-columns: 1fr;
    }
    .ticket-card aside {
        justify-items: stretch;
    }
    .support-ticket-box .conversation-head form {
        width: 100%;
        display: grid;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Phase 16: core marketplace experience, comparison, and visible refinements */
.market-luxury-section {
    padding-top: 28px;
}
.market-luxury-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr) minmax(220px, .8fr);
    gap: 18px;
}
.market-luxury-card {
    position: relative;
    overflow: hidden;
    min-height: 245px;
    padding: 28px;
    border: 1px solid rgba(23,32,31,.09);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(249,241,230,.86));
    box-shadow: 0 20px 60px rgba(44, 35, 22, .08);
}
.market-luxury-card::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(5,99,79,.08);
    inset-block-start: -70px;
    inset-inline-end: -55px;
}
.market-luxury-card.is-main {
    background: linear-gradient(135deg, #12322c, #0b6f59);
    color: #fff;
}
.market-luxury-card.is-main .section-kicker,
.market-luxury-card.is-main p {
    color: rgba(255,255,255,.82);
}
.market-luxury-card h2,
.market-luxury-card h3 {
    position: relative;
    margin: 10px 0 10px;
    line-height: 1.2;
}
.market-luxury-card h2 {
    font-size: clamp(28px, 3.1vw, 46px);
}
.market-luxury-card h3 {
    font-size: 23px;
}
.market-luxury-card p {
    position: relative;
    color: var(--muted);
    line-height: 1.85;
}
.market-luxury-card strong {
    position: relative;
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: var(--green-soft);
    color: var(--green);
    font-weight: 900;
}
.luxury-actions {
    position: relative;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.market-page-hero .container {
    display: grid;
    gap: 10px;
}
.compare-top-link {
    margin-top: 10px;
}
.smart-filter-card {
    padding: 20px;
    border-radius: 28px;
    background: rgba(255,255,255,.88);
}
.smart-filter-card form {
    display: grid;
    gap: 14px;
}
.filter-main-row,
.filter-sub-row {
    display: grid;
    gap: 12px;
    align-items: end;
}
.filter-main-row {
    grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(160px, .75fr));
}
.filter-sub-row {
    grid-template-columns: repeat(2, minmax(120px, .55fr)) minmax(130px, .5fr) minmax(130px, .5fr) auto auto;
}
.smart-filter-card label {
    display: grid;
    gap: 7px;
    font-weight: 900;
    color: #2b3734;
}
.smart-filter-card label > span {
    font-size: 13px;
    color: var(--muted);
}
.check-filter {
    min-height: 48px;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 9px !important;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
}
.check-filter input {
    width: auto;
}
.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 12px 16px;
    border: 1px solid rgba(23,32,31,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.72);
}
.results-toolbar a {
    color: var(--green);
    font-weight: 900;
}
.product-card-upgraded .product-visual {
    min-height: 205px;
}
.visual-score {
    position: absolute;
    inset-block-start: 18px;
    inset-inline-end: 18px;
    min-width: 74px;
    padding: 9px 10px;
    border-radius: 16px;
    background: rgba(255,255,255,.90);
    box-shadow: 0 14px 34px rgba(20,20,20,.10);
    text-align: center;
}
.visual-score b,
.visual-score small {
    display: block;
}
.visual-score b {
    color: var(--green);
    font-size: 17px;
}
.visual-score small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}
.quality-meter {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}
.quality-meter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 900;
}
.quality-meter-head span,
.quality-meter small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}
.quality-meter-head strong {
    color: var(--green);
}
.quality-bar {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(5,99,79,.10);
}
.quality-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), #27a37f, var(--gold));
}
.compare-action.is-liked,
.round-action.is-liked {
    background: var(--coral);
}
.buy-quality {
    padding: 4px 0 6px;
}
.credential-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.78);
    margin-top: 10px;
}
.credential-row span {
    display: grid;
    gap: 4px;
}
.credential-row small {
    color: var(--muted);
    font-weight: 800;
    overflow-wrap: anywhere;
}
.copy-btn {
    border: 0;
    border-radius: 12px;
    background: var(--green-soft);
    color: var(--green);
    font-weight: 900;
    padding: 8px 12px;
    cursor: pointer;
}
.quality-passport-card {
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(232,246,239,.72));
}
.passport-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px;
    margin-top: 16px;
}
.passport-checks span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 13px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 900;
    color: #34413d;
}
.passport-checks svg {
    color: var(--green);
}
.compare-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 16px;
    align-items: stretch;
}
.compare-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
    padding: 20px;
    border: 1px solid rgba(23,32,31,.1);
    border-radius: 26px;
    background: rgba(255,255,255,.90);
    box-shadow: 0 18px 55px rgba(39,30,19,.07);
}
.compare-card-head {
    display: grid;
    gap: 10px;
}
.compare-card h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.35;
}
.compare-card-head strong {
    color: var(--green);
    font-size: 22px;
}
.compare-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.compare-list li {
    display: grid;
    gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(23,32,31,.08);
}
.compare-list span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}
.compare-list b {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.6;
}
.compare-actions {
    display: grid;
    gap: 9px;
    margin-top: auto;
}
.compare-actions form,
.compare-actions .btn {
    width: 100%;
}
.compare-actions .btn {
    display: flex;
}
.compare-empty {
    text-align: center;
    padding: 40px;
}
@media (max-width: 1120px) {
    .market-luxury-grid,
    .compare-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .market-luxury-card.is-main {
        grid-column: 1 / -1;
    }
    .filter-main-row,
    .filter-sub-row {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}
@media (max-width: 720px) {
    .market-luxury-grid,
    .compare-grid,
    .filter-main-row,
    .filter-sub-row,
    .passport-checks {
        grid-template-columns: 1fr;
    }
    .results-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .check-filter {
        justify-content: flex-start;
    }
    .smart-filter-card .btn,
    .smart-filter-card a.btn {
        width: 100%;
    }
}

/* Phase 20: clean readable form and table labels */
label,
.btn,
.nav-links a,
.side-links a,
.status-pill,
.badge,
th,
td,
select,
option {
    line-height: 1.45;
}
select {
    min-height: 52px;
    text-overflow: ellipsis;
}
.check-row label {
    align-items: center;
    gap: 8px;
    line-height: 1.55;
}
.product-meta span,
.tech-chip,
.mini-chip,
.status-pill {
    white-space: normal;
}
.form-grid label > span,
.filter-card label > span {
    display: block;
    margin-bottom: 8px;
    font-weight: 900;
}
@media (max-width: 640px) {
    .nav-links a,
    .side-links a,
    .btn,
    .compact-control,
    label,
    select,
    input,
    textarea {
        font-size: 14px;
    }
}

/* Phase 23: launch polish, responsive pages, and product editor */
:root {
    --container: 1180px;
}
body {
    text-rendering: optimizeLegibility;
}
.page-main,
.section,
.dashboard-page {
    width: 100%;
}
.section {
    padding-block: 54px;
}
.section-head {
    margin-bottom: 24px;
}
.section-head h2,
.dash-head h1,
.page-hero h1 {
    letter-spacing: -.5px;
}
.topbar {
    box-shadow: 0 12px 42px rgba(49, 38, 22, .055);
}
.topbar .container {
    width: min(1240px, calc(100% - 28px));
}
.topbar-inner {
    min-height: 80px;
    gap: 14px;
}
.nav-links {
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(23,32,31,.08);
    border-radius: 18px;
    padding: 7px;
    gap: 4px;
}
.nav-links a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 15px;
}
.nav-links a:first-child::after,
.nav-links a::after {
    display: none;
}
.nav-links a:hover,
.nav-links a.is-active {
    background: var(--green-soft);
    color: var(--green);
}
.brand-copy small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}
.btn-outline {
    background: rgba(255,255,255,.86);
    color: var(--green);
    border-color: rgba(5,99,79,.18);
}
.btn-outline:hover {
    background: #fff;
}
.hero {
    min-height: auto;
    padding-block: 38px 30px;
}
.hero-grid {
    align-items: center;
    gap: clamp(22px, 4vw, 54px);
}
.hero h1 {
    font-size: clamp(34px, 4.8vw, 58px);
    line-height: 1.08;
}
.hero p {
    font-size: 16px;
    max-width: 620px;
}
.products-grid {
    gap: 20px;
}
.product-card {
    border-radius: 26px;
    display: flex;
    flex-direction: column;
}
.product-card p {
    min-height: unset;
}
.product-footer {
    margin-top: auto;
    gap: 12px;
}
.filter-card,
.detail-card,
.buy-box,
.panel-card,
.table-card,
.empty-card,
.auth-card,
.mega-form {
    border-color: rgba(23,32,31,.09);
    background: rgba(255,255,255,.88);
}
.dashboard-page {
    padding-block: 30px 56px;
}
.dashboard-grid {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 22px;
}
.side-panel {
    top: 98px;
    border-radius: 24px;
}
.side-links {
    max-height: calc(100vh - 190px);
    overflow: auto;
    padding-inline-end: 2px;
}
.side-links::-webkit-scrollbar {
    width: 6px;
}
.side-links::-webkit-scrollbar-thumb {
    background: rgba(5,99,79,.22);
    border-radius: 99px;
}
.dash-content {
    display: grid;
    gap: 18px;
}
.dash-head {
    border: 1px solid rgba(23,32,31,.08);
    background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,247,239,.82));
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 16px 46px rgba(57, 43, 24, .07);
    margin-bottom: 0;
}
.dash-head h1 {
    margin: 0;
}
.dash-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 0;
}
.dash-stats div {
    padding: 18px;
    border-radius: 20px;
}
.table-card,
.panel-card,
.mega-form {
    padding: clamp(18px, 2.5vw, 28px);
}
.table-head {
    flex-wrap: wrap;
}
.responsive-table {
    border-radius: 18px;
}
table {
    min-width: 860px;
}
th {
    background: rgba(5,99,79,.045);
    color: #43514e;
    font-size: 13px;
    white-space: nowrap;
}
td {
    background: rgba(255,255,255,.35);
}
.row-actions {
    align-items: center;
}
.row-actions .btn,
.row-actions button {
    white-space: nowrap;
}
.mega-form.product-editor {
    position: relative;
    overflow: visible;
}
.edit-product-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(23,32,31,.08);
    background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(227,241,235,.58));
    border-radius: 26px;
    padding: clamp(18px, 2.5vw, 28px);
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}
.edit-product-head h2,
.edit-product-head p {
    margin: 0;
}
.edit-product-head p {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.8;
}
.form-section {
    border: 1px solid rgba(23,32,31,.08);
    background: rgba(255,255,255,.56);
    border-radius: 22px;
    padding: clamp(16px, 2vw, 22px);
}
.form-section-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(135deg, rgba(5,99,79,.08), rgba(220,119,93,.08));
}
.form-section-hero p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}
.editor-state span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-weight: 900;
    white-space: nowrap;
}
.form-grid {
    gap: 16px;
}
.product-editor input,
.product-editor textarea,
.product-editor select,
.auth-form input,
.auth-form select,
.auth-form textarea,
.stack-form input,
.stack-form select,
.stack-form textarea {
    width: 100%;
    min-height: 48px;
    border-radius: 15px;
    border: 1px solid rgba(23,32,31,.12);
    background: rgba(255,255,255,.92);
    padding: 12px 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.product-editor textarea,
.auth-form textarea,
.stack-form textarea {
    min-height: 110px;
    resize: vertical;
}
.product-editor input:focus,
.product-editor textarea:focus,
.product-editor select:focus,
.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus,
.stack-form input:focus,
.stack-form textarea:focus,
.stack-form select:focus {
    border-color: rgba(5,99,79,.46);
    box-shadow: 0 0 0 4px rgba(5,99,79,.09);
    background: #fff;
}
.current-media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.current-media-grid figure {
    margin: 0;
    border: 1px solid rgba(23,32,31,.08);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}
.current-media-grid img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.current-media-grid figcaption {
    padding: 9px 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}
.editor-check-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 10px;
    align-items: stretch;
}
.editor-check-row label {
    border: 1px solid rgba(23,32,31,.08);
    background: rgba(255,255,255,.7);
    border-radius: 16px;
    padding: 12px;
}
.editor-check-row input[type="checkbox"] {
    width: auto;
    min-height: auto;
}
.sticky-form-actions {
    position: sticky;
    bottom: 12px;
    z-index: 8;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(23,32,31,.09);
    border-radius: 20px;
    background: rgba(255,253,248,.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 42px rgba(57,43,24,.12);
}
.footer {
    margin-top: 40px;
}
.footer-inner {
    align-items: flex-start;
}
.footer-links a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(5,99,79,.06);
}
@media (max-width: 1180px) {
    .top-actions .btn span,
    .top-actions .lang-link span,
    .top-actions .avatar-link span {
        display: none;
    }
    .top-actions .btn,
    .top-actions .lang-link,
    .top-actions .avatar-link {
        width: 44px;
        padding: 0;
    }
    .nav-links a {
        padding-inline: 10px;
    }
    .dashboard-grid {
        grid-template-columns: 250px minmax(0, 1fr);
    }
}
@media (max-width: 980px) {
    .topbar-inner {
        grid-template-columns: auto 1fr auto;
    }
    .nav-links {
        display: none;
    }
    .menu-button {
        display: block;
        justify-self: end;
    }
    .top-actions {
        justify-content: end;
    }
    .mobile-menu {
        padding: 12px 17px 18px;
        border-top: 1px solid var(--line);
        background: rgba(255,253,248,.98);
    }
    .mobile-menu.is-open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .mobile-menu a {
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 12px;
        border-radius: 14px;
        border: 1px solid var(--line);
        background: rgba(255,255,255,.86);
        font-weight: 900;
        text-align: center;
    }
    .hero-grid,
    .seller-start-grid,
    .detail-grid,
    .auth-card {
        grid-template-columns: 1fr;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .side-panel {
        position: relative;
        top: auto;
    }
    .side-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-height: none;
        overflow: visible;
    }
    .dash-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .current-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .editor-check-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .container,
    .topbar .container {
        width: min(100% - 20px, var(--container));
    }
    .topbar-inner {
        min-height: 68px;
    }
    .brand-text,
    .brand {
        font-size: 20px;
    }
    .brand-copy small {
        display: none;
    }
    .top-actions {
        display: none;
    }
    .mobile-menu.is-open {
        grid-template-columns: 1fr;
    }
    .hero {
        padding-block: 22px;
    }
    .hero h1,
    .page-hero h1 {
        font-size: clamp(30px, 9vw, 42px);
    }
    .section {
        padding-block: 34px;
    }
    .section-head,
    .footer-inner,
    .table-head,
    .edit-product-head,
    .form-section-hero,
    .sticky-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .products-grid,
    .cards-grid,
    .stats-strip,
    .category-strip,
    .form-grid {
        grid-template-columns: 1fr !important;
    }
    .product-footer,
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .product-footer .btn,
    .hero-actions .btn,
    .sticky-form-actions .btn {
        width: 100%;
    }
    .side-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .table-card,
    .panel-card,
    .mega-form,
    .dash-head {
        border-radius: 22px;
    }
    .row-actions,
    .row-actions form,
    .inline-action-form {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }
    .row-actions .btn,
    .row-actions button,
    .inline-action-form .btn {
        width: 100%;
    }
}
@media (max-width: 520px) {
    .dash-stats,
    .side-links,
    .current-media-grid,
    .editor-check-row {
        grid-template-columns: 1fr;
    }
    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }
    .brand-text,
    .brand {
        font-size: 18px;
    }
    .table-card,
    .panel-card,
    .mega-form,
    .dash-head,
    .form-section {
        padding: 16px;
    }
    table {
        min-width: 720px;
    }
    th, td {
        padding: 11px;
    }
    .footer-links {
        justify-content: stretch;
    }
    .footer-links a {
        width: 100%;
        justify-content: center;
    }
}

/* Phase 24: featured category project cards under home categories */
.featured-category-strip {
    margin-top: 18px;
}
.featured-category-cards {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}
.featured-category-card {
    position: relative;
    overflow: hidden;
    min-height: 218px;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(23, 32, 31, .08);
    background:
        radial-gradient(circle at top left, rgba(5,99,79,.12), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,250,241,.86));
    box-shadow: 0 22px 55px rgba(38, 31, 20, .08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
[dir="ltr"] .featured-category-card {
    background:
        radial-gradient(circle at top right, rgba(5,99,79,.12), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,250,241,.86));
}
.featured-category-card::before {
    content: "";
    position: absolute;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    inset-block-start: -36px;
    inset-inline-end: -28px;
    background: rgba(231, 122, 96, .12);
}
.featured-category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(5,99,79,.18);
    box-shadow: 0 28px 70px rgba(38, 31, 20, .12);
}
.featured-category-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 25px;
    font-weight: 900;
}
.featured-category-card strong {
    font-size: 18px;
    line-height: 1.3;
    color: var(--ink);
}
.featured-category-card p {
    min-height: 74px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}
.featured-category-card small {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.featured-category-card small b {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(5,99,79,.08);
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
}
.featured-category-card em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-height: 34px;
    margin-top: 2px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--green);
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
}
@media (max-width: 1180px) {
    .featured-category-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .featured-category-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .featured-category-card {
        min-height: auto;
        padding: 18px;
    }
    .featured-category-card p {
        min-height: auto;
    }
}

/* Phase 25: keep category cards only and lift featured projects directly below them */
.featured-category-strip,
.category-strip-wrap:has(.featured-category-strip) {
    display: none !important;
}
.featured-category-cards {
    margin-top: 24px;
    margin-bottom: 0;
}
.home-featured-products-section {
    padding-top: 34px;
}
.home-featured-products-section .section-head {
    margin-bottom: 18px;
}
.home-stats-section {
    padding-top: 0;
}
@media (max-width: 760px) {
    .featured-category-cards {
        margin-top: 16px;
    }
    .home-featured-products-section {
        padding-top: 24px;
    }
}

/* Phase 26: refined footer, contact channels, missing static pages */
.site-footer {
    margin-top: 34px;
    padding: 54px 0 24px;
    background:
        radial-gradient(circle at 8% 0%, rgba(239, 125, 97, .08), transparent 34%),
        radial-gradient(circle at 92% 10%, rgba(5, 99, 79, .10), transparent 38%),
        linear-gradient(180deg, rgba(255,255,255,.86), rgba(248,244,235,.96));
    border-top: 1px solid rgba(23, 32, 31, .08);
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) repeat(4, minmax(140px, .8fr));
    gap: 26px;
    align-items: start;
}
.footer-brand {
    padding: 24px;
    border: 1px solid rgba(23, 32, 31, .08);
    border-radius: 28px;
    background: rgba(255,255,255,.74);
    box-shadow: 0 18px 45px rgba(40, 31, 20, .06);
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 900;
}
.footer-brand p,
.footer-column p {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.9;
    font-weight: 700;
}
.footer-contact-lines {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}
.footer-contact-lines a {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-weight: 900;
}
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}
.social-link {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(23, 32, 31, .08);
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(39, 28, 15, .04);
}
.social-whatsapp { color: #057a55; }
.social-telegram { color: #1676a3; }
.social-instagram { color: #b13a72; }
.social-facebook { color: #2356a6; }
.footer-column {
    display: grid;
    gap: 11px;
    padding-top: 8px;
}
.footer-column h3 {
    margin: 0 0 4px;
    font-size: 16px;
    color: var(--ink);
}
.footer-column a:not(.btn) {
    color: #44514e;
    font-size: 14px;
    font-weight: 900;
}
.footer-column a:not(.btn):hover {
    color: var(--green);
}
.footer-cta {
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(5, 99, 79, .11);
    background: rgba(255,255,255,.72);
}
.footer-cta .btn {
    justify-content: center;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(23, 32, 31, .08);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.contact-layout {
    display: grid;
    grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
    gap: 22px;
    align-items: start;
}
.contact-panel,
.contact-form-card {
    border-radius: 30px;
    border: 1px solid rgba(23, 32, 31, .08);
    background: rgba(255,255,255,.82);
    box-shadow: 0 20px 55px rgba(40, 31, 20, .06);
}
.contact-panel {
    padding: 28px;
}
.contact-panel h2 {
    margin: 10px 0 0;
    font-size: clamp(26px, 3vw, 40px);
}
.contact-panel p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.9;
    font-weight: 700;
}
.contact-panel h3 {
    margin: 22px 0 0;
}
.contact-methods {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}
.contact-methods a {
    display: grid;
    gap: 5px;
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid rgba(23, 32, 31, .08);
    background: rgba(248, 244, 235, .72);
}
.contact-methods strong {
    color: var(--ink);
}
.contact-methods span {
    color: var(--green);
    font-weight: 900;
}
.contact-socials {
    margin-top: 12px;
}
.contact-form-card {
    padding: 28px;
}
.info-grid .info-card {
    min-height: 180px;
}
@media (max-width: 1180px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 780px) {
    .site-footer {
        padding-top: 36px;
    }
    .footer-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .footer-brand,
    .footer-cta,
    .contact-panel,
    .contact-form-card {
        border-radius: 24px;
        padding: 20px;
    }
    .footer-bottom {
        display: grid;
        text-align: center;
        justify-content: center;
    }
    .footer-column {
        padding: 18px 0 0;
        border-top: 1px solid rgba(23, 32, 31, .08);
    }
    .footer-column a:not(.btn) {
        min-height: 38px;
        display: flex;
        align-items: center;
    }
}
