:root{
 --gold-1:#fff7cf;--gold-2:#f8db78;--gold-3:#d8a928;--gold-4:#9c6c08;
 --amber:#f59e0b;--rose:#be123c;--emerald:#047857;--navy:#172033;
 --ink:#211a0b;--muted:#746849;--bg:#fffaf0;--card:#fff;--line:#eadcb6;
 --shadow:0 14px 40px rgba(112,76,5,.12)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:radial-gradient(circle at top left,#fff9da 0,transparent 34%),var(--bg);color:var(--ink);line-height:1.5}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}button,input,select,textarea{font:inherit}
header{position:sticky;top:0;z-index:50;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px max(4%,calc((100% - 1180px)/2));background:rgba(255,255,255,.94);border-bottom:1px solid rgba(216,169,40,.28);backdrop-filter:blur(14px);box-shadow:0 5px 20px rgba(91,62,7,.06)}
.brand{display:flex;align-items:center;gap:10px;font-weight:950;font-size:clamp(19px,2.4vw,25px);letter-spacing:-.5px;background:linear-gradient(120deg,var(--gold-4),var(--gold-3),var(--rose));-webkit-background-clip:text;background-clip:text;color:transparent}.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;color:#fff;background:linear-gradient(145deg,var(--gold-2),var(--gold-4) 65%,var(--rose));box-shadow:0 7px 18px rgba(156,108,8,.22)}
nav{display:flex;gap:8px;align-items:center;flex-wrap:wrap}nav a{padding:9px 11px;border-radius:10px;font-weight:700;font-size:14px}nav a:hover{background:#fff4ca}
.pill,.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;background:linear-gradient(135deg,var(--gold-2),var(--gold-3) 45%,var(--gold-4));color:#281b00;padding:11px 18px;border-radius:13px;border:1px solid rgba(130,87,0,.18);font-weight:900;cursor:pointer;box-shadow:0 8px 18px rgba(156,108,8,.18);transition:.2s transform,.2s box-shadow}.pill:hover,.btn:hover{transform:translateY(-1px);box-shadow:0 12px 24px rgba(156,108,8,.24)}.btn.secondary{background:#fff;color:#6f4e08;border-color:var(--line);box-shadow:none}.btn.danger{background:linear-gradient(135deg,#fb7185,#be123c);color:#fff}.btn.success{background:linear-gradient(135deg,#6ee7b7,#047857);color:#fff}
.hero{position:relative;overflow:hidden;padding:clamp(46px,8vw,88px) 5%;background:linear-gradient(125deg,#211603,#6f4e08 38%,#d8a928 72%,#9f1239);color:white}.hero:before,.hero:after{content:"";position:absolute;border-radius:50%;filter:blur(2px);opacity:.22}.hero:before{width:340px;height:340px;background:#fff2a8;right:-80px;top:-130px}.hero:after{width:220px;height:220px;background:#fb7185;left:42%;bottom:-160px}.hero>*{position:relative;z-index:1}.hero h1{font-size:clamp(36px,6vw,72px);line-height:1.02;max-width:900px;margin:0 0 16px;letter-spacing:-2px}.hero p{max-width:700px;font-size:clamp(16px,2vw,20px);opacity:.93}
.wrap,main>section{width:min(1180px,92%);margin:28px auto}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.card{background:linear-gradient(180deg,#fff,#fffdf8);border:1px solid var(--line);border-radius:20px;padding:20px;box-shadow:var(--shadow);overflow:hidden}.card h1,.card h2,.card h3{margin-top:0}.badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:linear-gradient(135deg,#fff5b8,#f8db78);color:#684500;font-size:12px;font-weight:900;border:1px solid #eed376}.price{font-size:24px;font-weight:950;color:#8a5c00}.muted{color:var(--muted)}
form{display:grid;gap:13px}label{font-weight:800;font-size:13px;color:#594610}input,select,textarea{width:100%;min-height:46px;padding:12px 13px;border:1px solid #d9c894;border-radius:12px;background:#fff;outline:none;transition:.2s}textarea{min-height:110px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--gold-3);box-shadow:0 0 0 4px rgba(216,169,40,.16)}
.table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:16px;border:1px solid var(--line);background:#fff}table{width:100%;min-width:680px;border-collapse:collapse;background:#fff}th,td{padding:13px 12px;border-bottom:1px solid #f0e5c6;text-align:left;white-space:nowrap}th{background:#fff8df;color:#684b0b;font-size:13px}tr:last-child td{border-bottom:0}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}.stat{padding:18px;border-radius:17px;background:linear-gradient(145deg,#fff,#fff6d5);border:1px solid var(--line);box-shadow:0 8px 24px rgba(112,76,5,.08)}.stat b{font-size:29px;display:block;color:#8a5c00}.notice{padding:13px 14px;border-radius:12px;background:#e8fff6;color:#076a49;border:1px solid #a7f3d0}.error{background:#fff0f1;color:#a5182e;border-color:#fecdd3}.searchbar{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;max-width:860px}.actions{display:flex;gap:9px;flex-wrap:wrap}
footer{text-align:center;padding:30px 5%;margin-top:44px;color:#67552a;background:linear-gradient(135deg,#fff5c7,#f7d977 50%,#efc24d);border-top:1px solid #d7ab36;font-weight:750}footer a{font-weight:950;color:#5d3e00}footer small{display:block;margin-top:4px;font-weight:600;color:#7a611d}
.install-page{min-height:100vh;display:grid;place-items:center;padding:22px;background:linear-gradient(135deg,#241701,#885d08 40%,#e5b936 72%,#9f1239)}.install-shell{width:min(760px,100%)}.install-card{padding:0;border:0;box-shadow:0 26px 80px rgba(0,0,0,.28)}.install-head{padding:24px;background:linear-gradient(120deg,#fff8d2,#f3cf5a);border-bottom:1px solid #d9ad38}.install-head h1{margin:0;font-size:clamp(26px,5vw,40px)}.install-head p{margin:6px 0 0;color:#6d5314}.install-body{padding:24px}.install-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.install-grid .full{grid-column:1/-1}.step-title{display:flex;align-items:center;gap:9px;margin:14px 0 5px;color:#6f4e08}.step-no{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,var(--gold-2),var(--gold-4));font-weight:950;color:#271900}.install-popup{position:fixed;inset:0;z-index:999;display:grid;place-items:center;padding:18px;background:rgba(22,14,1,.72);backdrop-filter:blur(8px)}.install-popup .install-shell{animation:pop .25s ease-out}@keyframes pop{from{opacity:0;transform:scale(.94) translateY(15px)}to{opacity:1;transform:none}}
@media(max-width:760px){header{padding:11px 4%;align-items:center}.brand-mark{width:33px;height:33px}nav{gap:3px;justify-content:flex-end}nav a{padding:8px 8px;font-size:13px}.hero{padding:42px 5%}.hero h1{letter-spacing:-1px}.wrap,main>section{width:min(94%,1180px);margin:20px auto}.grid{grid-template-columns:1fr}.card{padding:16px;border-radius:17px}.searchbar{grid-template-columns:1fr}.actions>.btn,.actions>.pill{flex:1 1 145px}.install-grid{grid-template-columns:1fr}.install-grid .full{grid-column:auto}.install-body,.install-head{padding:18px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){header{flex-direction:column;align-items:stretch;gap:8px}.brand{justify-content:center}nav{justify-content:center;border-top:1px solid #f0e3bd;padding-top:7px}nav a{flex:1;text-align:center}.hero{text-align:center}.hero p{margin-left:auto;margin-right:auto}.stats{grid-template-columns:1fr}.btn,.pill{width:100%}footer{font-size:14px;padding:24px 4%}}
/* Homepage promotional content and admin CRUD */
.hero-kicker,.eyebrow{display:inline-block;margin-bottom:7px;font-size:12px;line-height:1;font-weight:950;letter-spacing:1.5px;text-transform:uppercase;color:#8a5c00}.hero-kicker{color:#ffe9a2}.section-title-row{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:16px}.section-title-row h2{margin:0;font-size:clamp(25px,4vw,38px);letter-spacing:-.8px}.section-note{font-size:13px;font-weight:800;color:var(--muted)}
.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:13px}.category-card{text-align:center;padding:19px 10px;border-radius:19px;background:linear-gradient(150deg,#fff,#fff6d4);border:1px solid var(--line);box-shadow:0 8px 24px rgba(112,76,5,.08)}.category-icon{display:block;font-size:36px;margin-bottom:6px}.category-card h3{margin:0;font-size:15px}
.homepage-section{position:relative}.promo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(255px,1fr));gap:18px}.promo-card{position:relative;overflow:hidden;display:flex;flex-direction:column;min-height:100%;border:1px solid #e8d28d;border-radius:22px;background:linear-gradient(155deg,#fffdf6,#fff3c0);box-shadow:0 16px 38px rgba(117,78,4,.12);transition:.22s transform,.22s box-shadow}.promo-card:hover{transform:translateY(-4px);box-shadow:0 22px 46px rgba(117,78,4,.18)}.promo-card:after{content:"";position:absolute;width:140px;height:140px;border-radius:50%;right:-65px;bottom:-75px;background:rgba(216,169,40,.12)}.promo-image{height:165px;background-size:cover;background-position:center}.promo-body{position:relative;z-index:1;padding:19px;display:flex;flex:1;flex-direction:column}.promo-body h3{font-size:22px;line-height:1.12;margin:10px 0 5px}.promo-subtitle{margin:0 0 6px;font-weight:850;color:#76520a}.promo-body .muted{margin:5px 0 13px}.promo-badge{align-self:flex-start;padding:6px 10px;border-radius:999px;background:#211603;color:#ffe99a;font-size:11px;font-weight:950;letter-spacing:.7px}.promo-meta{display:flex;gap:9px;align-items:baseline;flex-wrap:wrap;margin-top:auto;margin-bottom:12px}.promo-meta strong{font-size:19px;color:#9f1239}.promo-meta del{color:#8b7a54}.coupon-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;margin-bottom:13px;border:1px dashed #cf9c1b;border-radius:11px;background:rgba(255,255,255,.65);font-size:12px;font-weight:800}.coupon-line code,.content-admin-group code{padding:4px 7px;border-radius:7px;background:#2b1c00;color:#ffe89a;font-weight:950;letter-spacing:.6px}.promo-card .btn{align-self:flex-start}.voucher-card{background:linear-gradient(145deg,#241702,#795207 55%,#d4a629);color:#fff}.voucher-card .muted,.voucher-card .promo-subtitle{color:#fff3c8}.voucher-card .promo-badge{background:#fff2bc;color:#604000}.voucher-card .coupon-line{border-color:#f8d875;background:rgba(255,255,255,.12)}.voucher-card .coupon-line code{background:#fff3c3;color:#5e3f00}.deal-section{padding:24px;border-radius:26px;background:linear-gradient(125deg,#2a1901,#775105 50%,#be123c);color:#fff}.deal-section .eyebrow,.deal-section .section-note{color:#ffeeb0}.deal-section .promo-card{color:var(--ink)}.deal-live{padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.14);font-size:12px;font-weight:950;color:#fff}.new-card{border-top:5px solid var(--gold-3)}.store-card{display:flex;flex-direction:column}.store-card .btn{margin-top:auto;align-self:flex-start}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.page-heading h1{margin:3px 0;font-size:clamp(28px,4vw,44px)}.admin-editor-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:18px;margin-top:18px}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.check-row{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid var(--line);border-radius:12px;background:#fffaf0}.check-row input{width:20px;min-height:20px}.admin-help{align-self:start;position:sticky;top:88px}.content-admin-group{margin-top:28px}.row-actions{display:flex;align-items:center;gap:6px}.row-actions form{display:block}.btn.compact{min-height:34px;padding:7px 10px;border-radius:9px;font-size:12px}.status-live{background:#d7fae9;color:#076642;border-color:#91e5be}.status-off{background:#f2f0ea;color:#776c54;border-color:#ddd6c8}.admin-shortcuts{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 26px}
@media(max-width:850px){.admin-editor-grid{grid-template-columns:1fr}.admin-help{position:static}.page-heading{align-items:flex-start;flex-direction:column}.page-heading .btn{width:auto}.section-title-row{align-items:flex-start}.section-note{display:none}}
@media(max-width:760px){.promo-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 2px 14px;gap:13px}.promo-card{flex:0 0 min(84vw,330px);scroll-snap-align:start}.deal-section{width:100%;border-radius:0;padding:22px 4%;margin-left:0;margin-right:0}.category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.category-card{padding:14px 5px}.category-icon{font-size:29px}.category-card h3{font-size:12px}.form-two{grid-template-columns:1fr}.row-actions{min-width:220px}.page-heading .btn{width:100%}}
@media(max-width:480px){.promo-card .btn{width:100%}.section-title-row h2{font-size:27px}.deal-live{font-size:10px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v4 colourful mobile marketplace redesign */
main{overflow:hidden}.hero{border-radius:0 0 34px 34px;box-shadow:0 20px 60px rgba(91,48,7,.18)}
.searchbar{grid-template-columns:minmax(0,2fr) minmax(160px,1fr) auto;max-width:850px;padding:8px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.28);border-radius:18px;backdrop-filter:blur(10px)}.searchbar input{border:0;min-height:52px}.searchbar .btn{min-height:52px}
.category-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px}.category-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;min-height:150px;padding:18px;border:0;border-radius:23px;overflow:hidden;color:#fff;box-shadow:0 14px 26px rgba(31,26,15,.12);transition:.22s transform,.22s box-shadow}.category-card:hover{transform:translateY(-4px);box-shadow:0 20px 35px rgba(31,26,15,.18)}.category-card:after{content:"";position:absolute;width:90px;height:90px;border-radius:50%;background:rgba(255,255,255,.16);right:-28px;top:-25px}.category-card:nth-child(6n+1){background:linear-gradient(145deg,#ff6a4d,#e23c73)}.category-card:nth-child(6n+2){background:linear-gradient(145deg,#8567f6,#5146c8)}.category-card:nth-child(6n+3){background:linear-gradient(145deg,#26b98b,#09866a)}.category-card:nth-child(6n+4){background:linear-gradient(145deg,#ff9c38,#e65a24)}.category-card:nth-child(6n+5){background:linear-gradient(145deg,#21a9df,#1870b8)}.category-card:nth-child(6n+6){background:linear-gradient(145deg,#f5ba2e,#d48808)}.category-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:17px;background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.28);font-size:0}.category-icon svg{width:31px;height:31px}.category-copy h3{margin:10px 0 1px;font-size:16px}.category-copy small{opacity:.85;font-size:11px}.category-arrow{position:absolute;right:15px;bottom:13px;font-size:27px;opacity:.75}
.section-shell,.offers-shell{position:relative;width:min(1220px,94%);padding:28px;border-radius:30px}.offers-shell{background:linear-gradient(135deg,#fff3d1,#ffe7ed)}.voucher-section{background:linear-gradient(135deg,#e8f4ff,#f1eaff)}.deal-section{background:linear-gradient(135deg,#221400,#7a3306 48%,#b51852);color:#fff}.new-market-section{background:linear-gradient(135deg,#e7fff5,#e4f7ff)}.section-shell .section-note,.section-shell .eyebrow,.section-shell .muted{color:inherit;opacity:.78}.promo-card{border:0;box-shadow:0 15px 32px rgba(55,35,12,.13)}.offer-card{background:linear-gradient(180deg,#fff,#fff8eb)}.voucher-card{background:linear-gradient(180deg,#fff,#f5f1ff)}.new-card{background:linear-gradient(180deg,#fff,#edfff8)}.deal-card{color:var(--ink)}
.nav-toggle{display:none;border:0;background:#fff4cf;border-radius:12px;width:43px;height:43px;font-size:20px;color:#704700}.toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0 22px}.switch-card{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fffaf0}.switch-card input{width:20px;min-height:20px}.switch-card span{font-weight:800}
@media(max-width:900px){.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.category-card{min-height:130px}.searchbar{grid-template-columns:1fr 1fr}.searchbar .btn{grid-column:1/-1}.nav-toggle{display:grid;place-items:center}header nav{display:none;position:absolute;top:68px;left:3%;right:3%;padding:12px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);flex-direction:column;align-items:stretch}body.nav-open header nav{display:flex}header nav a{text-align:center}}
@media(max-width:600px){body{background:#fffdf8}header{padding:10px 4%}.brand-mark{width:34px;height:34px}.hero{padding:35px 4% 30px;border-radius:0 0 26px 26px}.hero h1{font-size:36px;letter-spacing:-1.3px}.hero p{font-size:15px}.searchbar{display:grid;grid-template-columns:1fr;padding:7px;border-radius:16px}.searchbar .btn{grid-column:auto;width:100%}.wrap,main>section{width:92%;margin:21px auto}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.category-card{min-height:112px;padding:13px;border-radius:19px}.category-icon{width:44px;height:44px;border-radius:14px}.category-icon svg{width:25px;height:25px}.category-copy h3{font-size:14px;margin-top:7px}.category-copy small{font-size:10px}.section-shell,.offers-shell{width:100%;padding:22px 4%;border-radius:0;margin:20px 0}.promo-grid{padding-left:1px;padding-right:1px}.promo-card{flex-basis:86vw}.toggle-grid{grid-template-columns:1fr}.admin-editor-grid{gap:14px}.card{padding:16px;border-radius:17px}.admin-page{width:94%!important}.table-wrap{border-radius:13px}.row-actions{flex-wrap:wrap;min-width:270px}.btn.compact{min-height:38px}}

/* v5 reference-matched colourful homepage */
.market-hero{width:min(1540px,94%);margin:18px auto 16px;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(330px,.7fr);align-items:center;min-height:245px;padding:30px 42px;border:1px solid #f3ded1;border-radius:26px;background:radial-gradient(circle at 15% 20%,rgba(255,255,255,.95),transparent 34%),linear-gradient(105deg,#fff9ee 0%,#fff2ee 46%,#ffddec 100%);box-shadow:0 12px 34px rgba(97,38,39,.08);overflow:hidden;position:relative}
.market-hero:before{content:"";position:absolute;left:0;top:0;width:110px;height:90px;background-image:radial-gradient(#f6d5ad 2px,transparent 2px);background-size:11px 11px;opacity:.55}.market-hero-copy{position:relative;z-index:2}.hero-chip{display:inline-flex;padding:7px 18px;border-radius:999px;background:#fff1d7;color:#e54a19;font-size:14px;font-weight:900}.market-hero h1{margin:14px 0 6px;font-size:clamp(38px,4vw,64px);line-height:1.05;letter-spacing:-2.5px;color:#17110d}.market-hero h1::first-letter{color:inherit}.market-hero p{margin:0;color:#4f3f36;font-size:clamp(16px,1.45vw,21px)}.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:18px}.explore-btn{display:inline-flex;align-items:center;gap:10px;padding:14px 24px;border-radius:12px;background:linear-gradient(110deg,#ff9b00,#f20d58);color:#fff;font-weight:950;font-size:18px;box-shadow:0 12px 24px rgba(242,13,88,.22)}.explore-btn b{font-size:24px}.trust-pill{display:inline-flex;align-items:center;gap:7px;padding:10px 14px;border:1px solid #f1e0d5;background:rgba(255,255,255,.83);border-radius:10px;font-weight:800;font-size:13px}.market-search{display:grid;grid-template-columns:1.5fr 1fr auto;gap:8px;max-width:760px;margin-top:14px}.market-search input{min-height:44px;border-color:#eadbcf;background:rgba(255,255,255,.92)}.search-btn{border:0;border-radius:10px;padding:0 18px;background:#17110d;color:#fff;font-weight:900}.market-hero-art{display:flex;justify-content:center;align-items:center;height:100%}.market-hero-art img{max-width:470px;width:100%;height:245px;object-fit:contain;filter:drop-shadow(0 14px 18px rgba(97,24,40,.12))}
.market-home-section{width:min(1540px,94%);margin:14px auto}.category-grid-v5{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.category-tile{display:flex;align-items:center;gap:14px;min-height:86px;padding:12px 16px;border:1px solid #eadfd8;border-radius:16px;background:#fff;box-shadow:0 7px 20px rgba(42,28,21,.05);transition:.2s}.category-tile:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(42,28,21,.1)}.category-round-icon{display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;border-radius:50%;color:#fff;box-shadow:0 8px 18px rgba(0,0,0,.13)}.category-round-icon svg{width:31px;height:31px}.category-tile strong,.category-tile small{display:block}.category-tile strong{font-size:16px}.category-tile small{font-size:12px;color:#51453d;margin-top:2px}.category-tile.c1{background:linear-gradient(105deg,#fff9ef,#fff)}.c1 .category-round-icon{background:linear-gradient(145deg,#ffbd43,#ff8511)}.category-tile.c2{background:linear-gradient(105deg,#fff1f6,#fff)}.c2 .category-round-icon{background:linear-gradient(145deg,#ff5ca0,#ec0d59)}.category-tile.c3{background:linear-gradient(105deg,#f0ffef,#fff)}.c3 .category-round-icon{background:linear-gradient(145deg,#79e34c,#2ab524)}.category-tile.c4{background:linear-gradient(105deg,#f8f0ff,#fff)}.c4 .category-round-icon{background:linear-gradient(145deg,#a96cff,#7025d9)}.category-tile.c5{background:linear-gradient(105deg,#ebffff,#fff)}.c5 .category-round-icon{background:linear-gradient(145deg,#24d2d5,#04a7b4)}.category-tile.c6{background:linear-gradient(105deg,#eff5ff,#fff)}.c6 .category-round-icon{background:linear-gradient(145deg,#5c92ff,#2466df)}
.dashboard-grid{display:grid;grid-template-columns:1fr 1fr 1.05fr;gap:16px}.market-panel{background:#fff;border:1px solid #eee5df;border-radius:18px;box-shadow:0 9px 28px rgba(42,28,21,.06);overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;border-bottom:1px solid #f1e8e2}.panel-head h2{margin:0;font-size:20px}.panel-head a{color:#f20d58;font-weight:900;font-size:13px}.offer-list,.voucher-list{padding:8px}.offer-row{display:grid;grid-template-columns:56px minmax(0,1fr) 120px 16px;gap:10px;align-items:center;padding:8px;border:1px solid #f0e8e2;border-radius:12px;margin-bottom:8px}.brand-box{display:grid;place-items:center;height:50px;padding:5px;border-radius:10px;color:#fff;font-size:11px;font-weight:950;text-align:center;line-height:1.05}.brand-1{background:#dd0b2d}.brand-2{background:#f5bf16;color:#261b00}.brand-3{background:#238a2d}.offer-copy strong,.offer-copy small,.voucher-copy strong,.voucher-copy small{display:block}.offer-copy small,.voucher-copy small{color:#675950;font-size:12px;margin-top:2px}.discount-box{padding:7px 8px;text-align:center;border-radius:9px;background:#effbed;color:#198135}.discount-box b,.discount-box small{display:block}.discount-box b{font-size:14px}.discount-box small{font-size:9px;color:#3d6047}.row-arrow{font-size:25px;color:#75675f}.voucher-row{display:grid;grid-template-columns:82px minmax(0,1fr) 108px;align-items:center;border:1px solid #eadff0;border-radius:12px;margin-bottom:8px;overflow:hidden;background:#fff}.voucher-value{display:flex;min-height:60px;flex-direction:column;align-items:center;justify-content:center;border-right:1px dashed #d8c6de}.voucher-value small{font-size:9px}.voucher-value b{font-size:17px}.voucher-copy{padding:8px 12px}.voucher-action{padding:8px;text-align:center}.voucher-action b{display:block;padding:7px;border-radius:7px;color:#fff;font-size:11px}.voucher-action small{display:block;margin-top:4px;font-size:9px;font-weight:900}.v1 .voucher-value{background:#ffe5ef;color:#e40850}.v1 .voucher-action b{background:#f0165d}.v1 .voucher-action small{color:#e40850}.v2 .voucher-value{background:#f0e6ff;color:#7621dc}.v2 .voucher-action b{background:#8d27e4}.v2 .voucher-action small{color:#7621dc}.v3 .voucher-value{background:#e5efff;color:#1265d7}.v3 .voucher-action b{background:#2478e8}.v3 .voucher-action small{color:#1265d7}.deal-timer{padding:5px 10px;border-radius:8px;background:#ffe8ef;color:#ef1a58;font-weight:950;font-size:12px}.deal-card-v5{display:grid;grid-template-columns:42% 1fr;gap:14px;padding:12px}.deal-card-v5>img{width:100%;height:205px;object-fit:cover;border-radius:12px}.deal-info h3{margin:4px 0 2px;font-size:18px}.deal-info p{margin:0;color:#52463e;font-size:13px}.rating{margin:12px 0;color:#1ea144;font-weight:950}.rating span{color:#675950;font-weight:500}.deal-price{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.deal-price b{font-size:25px}.deal-price del{color:#74665d}.deal-price span{padding:5px 9px;border-radius:8px;background:#ffe4eb;color:#ec1d55;font-weight:900;font-size:11px}.grab-btn{display:flex;justify-content:center;margin-top:12px;padding:11px;border-radius:9px;background:#f10f52;color:#fff;font-weight:950}.new-market-panel{padding-bottom:10px}.new-market-scroll{display:flex;gap:12px;padding:10px 14px 14px;overflow-x:auto}.new-market-card{display:grid;grid-template-columns:46px minmax(150px,1fr) auto;align-items:center;gap:10px;flex:1 0 230px;padding:10px;border:1px solid #eee6e0;border-radius:12px;background:#fff}.new-icon{font-size:30px}.new-market-card strong,.new-market-card small{display:block}.new-market-card small{font-size:11px;color:#62564f}.new-market-card em{padding:4px 7px;border-radius:6px;background:#e8f9e9;color:#13842a;font-size:10px;font-style:normal;font-weight:950}.nearby-section{padding:8px 0 26px}.nearby-note{color:#71635a;font-size:13px}.nearby-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding-top:14px}.nearby-card{padding:17px;border:1px solid #eee3dc;border-radius:15px;background:#fff;box-shadow:0 7px 18px rgba(42,28,21,.05)}.nearby-card h3{margin:8px 0 4px}.nearby-card p{margin:0 0 12px;color:#6a5e56;font-size:13px}.nearby-card a{color:#ef1456;font-weight:900}.nearby-category{display:inline-flex;padding:4px 8px;border-radius:999px;background:#fff1d7;color:#b36406;font-size:10px;font-weight:950}.empty-mini{padding:18px;color:#776c65;text-align:center}
@media(max-width:1100px){.market-hero{grid-template-columns:1fr 360px;padding:28px}.category-grid-v5{grid-template-columns:repeat(3,1fr)}.dashboard-grid{grid-template-columns:1fr 1fr}.deal-panel{grid-column:1/-1}.nearby-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.market-hero{grid-template-columns:1fr;padding:24px 18px}.market-hero h1{font-size:40px;letter-spacing:-1.5px}.market-hero-art{order:-1;height:160px}.market-hero-art img{height:170px}.hero-actions{gap:8px}.trust-pill{font-size:11px;padding:8px 10px}.market-search{grid-template-columns:1fr}.category-grid-v5{grid-template-columns:repeat(2,1fr);gap:10px}.category-tile{min-height:74px;padding:9px 11px}.category-round-icon{width:48px;height:48px;flex-basis:48px}.category-round-icon svg{width:26px;height:26px}.dashboard-grid{display:block}.market-panel{margin-bottom:14px}.offer-row{grid-template-columns:46px minmax(0,1fr) 95px 10px}.brand-box{height:44px}.discount-box b{font-size:11px}.discount-box small{font-size:8px}.voucher-row{grid-template-columns:70px minmax(0,1fr) 90px}.deal-card-v5{grid-template-columns:1fr}.deal-card-v5>img{height:210px}.nearby-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.market-hero{width:100%;margin-top:0;border-radius:0 0 24px 24px}.market-hero h1{font-size:34px}.explore-btn{width:100%;justify-content:center}.trust-pill{flex:1}.market-home-section{width:94%}.category-tile{gap:8px}.category-tile strong{font-size:13px}.category-tile small{font-size:10px}.panel-head h2{font-size:17px}.offer-row{grid-template-columns:42px minmax(0,1fr) 88px}.row-arrow{display:none}.offer-copy small{max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.voucher-row{grid-template-columns:64px minmax(0,1fr) 82px}.voucher-copy{padding:7px}.voucher-copy strong{font-size:12px}.voucher-copy small{font-size:9px}.nearby-grid{grid-template-columns:1fr}}


/* =========================================================
   MAGIC APP V6 RESPONSIVE PATCH
   Fixes SVG oversizing, improves mobile header/hero/cards/admin.
   ========================================================= */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-x:hidden}
svg{max-width:100%;max-height:100%}

/* Hard containment: category icons can never escape their circles. */
.category-round-icon{
  display:grid!important;place-items:center!important;
  flex:0 0 52px!important;width:52px!important;height:52px!important;
  min-width:52px!important;min-height:52px!important;
  max-width:52px!important;max-height:52px!important;
  padding:0!important;overflow:hidden!important;line-height:0!important;
  border-radius:50%!important;isolation:isolate;
}
.category-round-icon>svg,
.category-round-icon svg{
  display:block!important;position:static!important;
  width:24px!important;height:24px!important;
  min-width:24px!important;min-height:24px!important;
  max-width:24px!important;max-height:24px!important;
  flex:0 0 24px!important;margin:0!important;padding:0!important;
  transform:none!important;overflow:hidden!important;
  stroke-width:1.8!important;
}
.category-tile{min-width:0;overflow:hidden}
.category-tile>span:last-child{min-width:0}
.category-tile strong,.category-tile small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Header polish */
header{min-height:68px}
.nav-toggle{display:none;width:42px;height:42px;min-height:42px;padding:0;border:1px solid #eadfd8;border-radius:11px;background:#fff;color:#17110d;font-size:21px;box-shadow:0 6px 18px rgba(42,28,21,.06);cursor:pointer}
header nav a{position:relative}
header nav a:hover{background:#fff1f5;color:#e70e52}
body:not(.nav-open) header nav .nav-discover{color:#ee0d55}
body:not(.nav-open) header nav .nav-discover:after{content:"";position:absolute;left:11px;right:11px;bottom:1px;height:2px;border-radius:2px;background:#ee0d55}

/* Hero: stable dimensions and smaller mobile artwork */
.market-hero{overflow:hidden}
.market-hero-copy,.market-hero-art{min-width:0}
.market-hero-art img{display:block;width:min(100%,470px);max-height:245px;object-fit:contain}
.hero-actions{display:flex;align-items:center;flex-wrap:wrap}

/* Better content card resilience */
.offer-row,.voucher-row,.deal-card-v5,.new-market-card{min-width:0}
.offer-copy,.voucher-copy,.deal-info{min-width:0}
.offer-copy strong,.offer-copy small,.voucher-copy strong,.voucher-copy small,.deal-info h3,.deal-info p{overflow-wrap:anywhere}
.market-panel{min-width:0}
.panel-head h2{line-height:1.2}

/* Admin/forms/tables improvements */
.admin-page .card,.admin-editor-grid>*{min-width:0}
.admin-editor-grid{align-items:start}
.table-wrap{max-width:100%}
.table-wrap table{font-size:13px}
.row-actions .btn,.row-actions button{white-space:nowrap}
input,select,textarea,button{max-width:100%}

@media(max-width:1100px){
  header{padding-left:3%;padding-right:3%}
  .brand{font-size:21px}
  header nav a{padding:9px 8px;font-size:13px}
}

@media(max-width:900px){
  header{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:10px;min-height:62px}
  .brand{min-width:0;font-size:19px}
  .brand span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .nav-toggle{display:grid;place-items:center}
  header nav{display:none;position:absolute;top:calc(100% + 6px);left:3%;right:3%;z-index:60;padding:10px;background:#fff;border:1px solid #eadfd8;border-radius:16px;box-shadow:0 18px 46px rgba(42,28,21,.14);flex-direction:column;align-items:stretch;gap:4px}
  body.nav-open header nav{display:flex}
  header nav a{width:100%;padding:12px 14px;text-align:left;border-radius:10px}
  body:not(.nav-open) header nav .nav-discover:after{display:none}
  .dashboard-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:760px){
  .market-hero{padding:20px 16px 22px;gap:10px}
  .market-hero-art{order:-1;height:118px;margin:-6px 0 0}
  .market-hero-art img{height:128px;max-height:128px;width:min(100%,310px)}
  .market-hero h1{font-size:clamp(30px,9vw,40px);line-height:1.03;letter-spacing:-1.2px;margin-bottom:9px}
  .market-hero p{font-size:14px;margin:0 0 12px}
  .hero-chip{font-size:10px;padding:6px 10px}
  .hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .explore-btn{grid-column:1/-1;min-height:46px}
  .trust-pill{justify-content:center;min-width:0;padding:8px 7px;font-size:10px}
  .market-search{margin-top:10px;gap:7px}
  .market-search input{min-height:42px}
  .search-btn{min-height:43px}

  .category-grid-v5{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .category-tile{min-height:68px!important;padding:9px 10px!important;gap:9px!important;border-radius:14px}
  .category-round-icon{flex-basis:42px!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-width:42px!important;max-height:42px!important}
  .category-round-icon>svg,.category-round-icon svg{width:19px!important;height:19px!important;min-width:19px!important;min-height:19px!important;max-width:19px!important;max-height:19px!important;flex-basis:19px!important}
  .category-tile strong{font-size:13px;line-height:1.15}
  .category-tile small{font-size:9px;margin-top:3px}

  .dashboard-grid{display:block}
  .panel-head{padding:11px 12px}
  .panel-head h2{font-size:17px}
  .panel-head a{font-size:11px}
  .offer-list,.voucher-list{padding:7px}
  .offer-row{grid-template-columns:42px minmax(0,1fr) 82px;gap:7px;padding:7px}
  .offer-row .row-arrow{display:none}
  .brand-box{height:40px;font-size:9px;border-radius:8px}
  .offer-copy strong{font-size:12px}
  .offer-copy small{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .discount-box{padding:6px 5px}
  .discount-box b{font-size:10px;line-height:1.15}
  .discount-box small{font-size:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .voucher-row{grid-template-columns:60px minmax(0,1fr) 76px}
  .voucher-value{min-height:56px}
  .voucher-value b{font-size:14px}
  .voucher-copy{padding:6px 7px}
  .voucher-copy strong{font-size:11px}
  .voucher-copy small{font-size:8px;line-height:1.25}
  .voucher-action{padding:6px}
  .voucher-action b{padding:6px 3px;font-size:9px}
  .voucher-action small{font-size:7px}
  .deal-card-v5{grid-template-columns:1fr;padding:10px}
  .deal-card-v5>img{height:190px}
  .new-market-card{flex-basis:215px;grid-template-columns:38px minmax(0,1fr) auto}
  .new-icon{font-size:24px}

  .admin-page{width:94%!important}
  .admin-editor-grid{grid-template-columns:1fr!important}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stat{padding:14px}
  .stat b{font-size:24px}
  .row-actions{min-width:230px;gap:6px}
  .row-actions .btn,.row-actions button{min-height:36px;padding:8px 10px;font-size:11px}
}

@media(max-width:480px){
  header{padding:9px 3.5%;grid-template-columns:minmax(0,1fr) 40px;min-height:58px}
  .brand{justify-content:flex-start;font-size:16px;gap:8px}
  .brand-mark{width:32px;height:32px;border-radius:10px;flex:0 0 32px}
  .nav-toggle{width:40px;height:40px;min-height:40px}
  header nav{left:3.5%;right:3.5%}

  .market-home-section{width:95%;margin:10px auto}
  .market-hero{width:100%;border-radius:0 0 22px 22px;padding:16px 13px 18px}
  .market-hero-art{height:95px}
  .market-hero-art img{height:105px;max-height:105px;width:min(100%,250px)}
  .market-hero h1{font-size:29px}
  .hero-actions{grid-template-columns:1fr}
  .trust-pill{display:none}

  .category-grid-v5{gap:7px}
  .category-tile{min-height:62px!important;padding:8px!important;gap:7px!important}
  .category-round-icon{flex-basis:38px!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;max-width:38px!important;max-height:38px!important}
  .category-round-icon>svg,.category-round-icon svg{width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;max-width:17px!important;max-height:17px!important;flex-basis:17px!important}
  .category-tile strong{font-size:12px}
  .category-tile small{font-size:8px}

  .panel-head h2{font-size:15px}
  .offer-row{grid-template-columns:38px minmax(0,1fr) 72px;gap:6px}
  .brand-box{height:36px;font-size:8px}
  .discount-box b{font-size:9px}
  .voucher-row{grid-template-columns:54px minmax(0,1fr) 68px}
  .deal-card-v5>img{height:165px}
  .nearby-grid{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr 1fr}
  footer{margin-top:24px;padding:20px 4%;font-size:12px}
}

@media(max-width:360px){
  .category-grid-v5{grid-template-columns:1fr 1fr}
  .category-tile{gap:6px!important;padding:7px!important}
  .category-round-icon{flex-basis:34px!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;max-width:34px!important;max-height:34px!important}
  .category-round-icon>svg,.category-round-icon svg{width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;max-width:15px!important;max-height:15px!important;flex-basis:15px!important}
  .category-tile strong{font-size:11px}
  .category-tile small{font-size:7px}
  .offer-row{grid-template-columns:34px minmax(0,1fr) 66px}
  .voucher-row{grid-template-columns:50px minmax(0,1fr) 62px}
}
