:root { --bg:#090c0b; --panel:#151a18; --panel-2:#1c221f; --text:#f5f7f5; --muted:#98a29c; --line:#2b332f; --gold:#ffd338; --gold-text:#161800; --green:#83df72; }
* { box-sizing:border-box; }
html { background:var(--bg); }
body { margin:0; background:radial-gradient(circle at 50% -20%, #283421 0, transparent 34%),var(--bg); color:var(--text); font-family:Arial,Helvetica,sans-serif; }
button,input,textarea,select { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.app-page { min-height:100vh; padding:24px; }
.app-shell { width:min(1120px,100%); margin:auto; }
.app-header,.identity,.offer-main,.promo-strip,.modal-header,.play-button,.other-brands button,.admin-top,.admin-top>div:last-child { display:flex; align-items:center; }
.app-header,.modal-header,.admin-top { justify-content:space-between; gap:20px; }
.identity { gap:12px; }
.flag,.brand-logo { width:52px;height:52px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(145deg,#2a322d,#111512);border:1px solid var(--line);font-weight:800; }
.eyebrow { color:var(--gold)!important;font-size:11px!important;font-weight:800;letter-spacing:.18em;margin:0 0 5px!important; }
h1,h2,p { margin:0; }
.app-header h1 { font-size:24px; }
.app-header p,.admin-top p { color:var(--muted);font-size:13px;margin-top:4px; }
.admin-link,.admin-top a { color:var(--text);text-decoration:none;border:1px solid var(--line);padding:10px 14px;border-radius:12px;background:var(--panel); }
.category-tabs,.admin-tabs { display:flex;gap:8px;margin:28px 0 18px;justify-content:center; }
.category-tabs button,.admin-tabs button { color:var(--muted);background:transparent;border:1px solid var(--line);padding:11px 18px;border-radius:12px;cursor:pointer; }
.category-tabs button.active,.admin-tabs button.active { background:var(--gold);color:var(--gold-text);border-color:var(--gold);font-weight:800; }
.offer-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px; }
.offer-card { background:var(--panel);border:1px solid var(--line);border-radius:20px;overflow:hidden;cursor:pointer;transition:transform .18s ease,border-color .18s ease; }
.offer-card:hover { transform:translateY(-2px);border-color:#566159; }
.offer-main { padding:16px;gap:12px; }
.brand-copy { flex:1;min-width:0; }
.brand-copy h2,.modal-header h2 { font-size:18px;margin-top:7px; }
.badges { display:flex;gap:6px;flex-wrap:wrap; }
.badges span { font-size:10px;text-transform:uppercase;padding:5px 8px;border-radius:7px;background:#2c392e;color:var(--green);font-weight:800; }
.badges span:first-child { background:#3a351d;color:var(--gold); }
.arrow-button,.close-button { width:44px;height:44px;border:0;border-radius:13px;display:grid;place-items:center;background:var(--gold);color:var(--gold-text);cursor:pointer; }
.promo-strip { min-height:50px;padding:10px 16px;border-top:1px solid var(--line);gap:12px; }
.promo-strip>span,.detail-block>span,.other-brands>span,.live-preview>span { color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.08em; }
.promo-strip strong { flex:1;text-align:center;font-size:13px; }
.promo-strip button,.promo-detail button { display:flex;align-items:center;gap:6px;border:0;background:transparent;color:var(--muted);cursor:pointer; }
.promo-strip svg,.promo-detail svg { width:16px;height:16px; }
.notice,footer { text-align:center;color:var(--muted);font-size:12px; }
.notice { margin:18px 0;min-height:16px; }
footer { display:flex;justify-content:center;gap:16px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:18px; }
.modal-backdrop { position:fixed;inset:0;z-index:20;background:rgba(0,0,0,.76);display:flex;align-items:flex-end;padding:18px;backdrop-filter:blur(5px); }
.detail-modal { width:min(1000px,100%);margin:0 auto;background:linear-gradient(180deg,#232925,var(--panel));border:1px solid var(--line);border-radius:24px;padding:18px;display:grid;gap:14px;max-height:92vh;overflow:auto; }
.modal-grip { display:none;width:42px;height:4px;background:var(--line);border-radius:3px;margin:-4px auto 2px; }
.close-button { background:#3b413e;color:var(--text);font-size:22px; }
.detail-block { background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:13px; }
.detail-block p { margin-top:7px;font-size:14px;line-height:1.55; }
.detail-block small { display:block;color:var(--muted);margin-top:8px; }
.promo-detail>div { display:flex;justify-content:space-between;align-items:center;margin-top:8px; }
.play-button { width:100%;justify-content:center;gap:8px;border:0;background:var(--gold);color:var(--gold-text);border-radius:13px;padding:14px;font-weight:900;cursor:pointer; }
.other-brands>div { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px; }
.other-brands button { text-align:left;gap:10px;background:var(--panel);border:1px solid var(--line);color:var(--text);border-radius:13px;padding:10px;cursor:pointer; }
.other-brands button i { width:36px;height:36px;display:grid;place-items:center;background:#292f2c;border-radius:10px;font-style:normal;font-size:11px;font-weight:800; }
.other-brands button span { flex:1;font-weight:700; }
.other-brands button small { display:block;color:var(--muted);font-weight:400;margin-top:3px; }
.other-brands button svg { width:17px;height:17px;color:var(--muted); }
.admin-page { min-height:100vh;padding:28px; }
.admin-shell { width:min(1180px,100%);margin:auto; }
.admin-top h1 { font-size:26px; }
.admin-top>div:last-child { gap:10px; }
.admin-top button,.test-button { background:var(--gold);color:var(--gold-text);border:0;border-radius:12px;padding:11px 15px;font-weight:800;cursor:pointer; }
.admin-workspace { display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.65fr);gap:18px;align-items:start; }
.editor,.live-preview { background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:18px; }
.editor h2 { font-size:15px;margin:4px 0 14px; }
.editor h2:not(:first-child) { margin-top:24px;padding-top:20px;border-top:1px solid var(--line); }
.form-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.form-grid label { display:grid;gap:7px;color:var(--muted);font-size:12px; }
.form-grid .full { grid-column:1/-1; }
input,textarea,select { width:100%;color:var(--text);background:#0e1210;border:1px solid var(--line);border-radius:11px;padding:11px;outline:none; }
input:focus,textarea:focus,select:focus { border-color:var(--gold); }
.switch-list { display:grid;gap:1px;overflow:hidden;border-radius:13px;border:1px solid var(--line); }
.switch-list label { display:flex;align-items:center;justify-content:space-between;padding:12px;background:#111613; }
.switch-list span { font-size:13px; }
.switch-list small { display:block;color:var(--muted);margin-top:3px; }
.switch-list input { width:18px;height:18px;accent-color:var(--gold); }
.test-button { margin-top:14px; }
.live-preview { position:sticky;top:18px; }
.preview-card { margin-top:10px;padding:14px;background:#0e1210;border:1px solid var(--line);border-radius:16px;display:grid;gap:14px; }
.preview-card p { color:var(--muted);font-size:13px;line-height:1.5; }
.preview-promo { display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px;font-size:12px; }
.preview-promo span { color:var(--muted); }
.preview-card>button { border:0;background:var(--gold);color:var(--gold-text);padding:12px;border-radius:11px;font-weight:900; }
.admin-status { text-align:center;color:var(--muted);font-size:12px;margin-top:16px; }
@media(max-width:720px){.app-page,.admin-page{padding:16px}.offer-grid,.admin-workspace{grid-template-columns:1fr}.app-header{align-items:flex-start}.offer-grid{gap:10px}.modal-backdrop{padding:0}.detail-modal{border-radius:24px 24px 0 0;border-width:1px 0 0;padding:16px}.modal-grip{display:block}.other-brands>div{grid-template-columns:1fr}.admin-top{align-items:flex-start}.admin-top>div:last-child{flex-wrap:wrap;justify-content:flex-end}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.live-preview{position:static}}
@media(max-width:420px){.category-tabs,.admin-tabs{display:grid;grid-template-columns:repeat(3,1fr)}.category-tabs button,.admin-tabs button{padding:10px 6px;font-size:12px}.brand-logo,.flag{width:46px;height:46px}.badges span{font-size:9px}.app-header h1{font-size:21px}}
