:root{
  --bg:#f6f7fb;--panel:#fff;--ink:#0d1020;--muted:#6f7488;--line:#e7e8f1;--soft:#f0edff;--violet:#6f47ff;--violet-2:#4f2edc;--green:#18a85b;--green-bg:#eaf8f0;--amber:#b97805;--amber-bg:#fff6dc;--red:#c33a49;--red-bg:#fff0f2;--blue:#2174d8;--blue-bg:#edf6ff;--sidebar:#0a0b11;--sidebar-soft:#171823;--shadow:0 18px 50px rgba(25,27,45,.08);--radius:20px
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);font-size:15px}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button{cursor:pointer}.boot{min-height:100vh;display:grid;place-items:center;align-content:center;gap:14px;color:var(--muted)}.spinner{width:36px;height:36px;border-radius:50%;border:3px solid #e5e1ff;border-top-color:var(--violet);animation:spin .75s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}

/* Auth */
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(520px,.82fr) minmax(560px,1.18fr);gap:58px;align-items:center;padding:68px clamp(34px,7vw,170px);background:
  radial-gradient(circle at 72% 20%,rgba(102,54,255,.72) 0,rgba(92,45,243,.22) 17%,transparent 35%),
  radial-gradient(circle at -5% 88%,rgba(91,46,255,.58) 0,rgba(91,46,255,.18) 15%,transparent 31%),
  linear-gradient(135deg,#0b1022 0%,#151735 48%,#0b0e1d 100%);position:relative;overflow:hidden}
.auth-shell:before{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:68px 68px;mask-image:linear-gradient(to bottom,black 0 70%,transparent 100%)}
.auth-shell:after{content:"";position:absolute;width:420px;height:420px;border:1px solid rgba(126,83,255,.75);border-radius:50%;right:-240px;top:90px;box-shadow:0 0 60px rgba(94,54,255,.24),inset 0 0 55px rgba(94,54,255,.12);pointer-events:none}
.auth-panel,.auth-visual{position:relative;z-index:1;min-width:0}
.auth-panel{padding:0;display:flex;justify-content:center}
.auth-card{max-width:620px;width:100%;background:rgba(255,255,255,.985);border:1px solid rgba(255,255,255,.72);border-radius:24px;padding:34px 42px 32px;box-shadow:0 28px 75px rgba(4,6,22,.34),0 0 0 1px rgba(118,83,255,.07)}
.auth-card-login{max-width:600px}.auth-card-signup{max-width:680px}
.brand-lockup{display:flex;align-items:center;gap:14px;margin-bottom:38px}.brand-lockup img{width:48px;height:48px}.brand-lockup strong{font-size:19px;line-height:1.05}.brand-lockup small{display:block;color:#626a91;font-size:10px;letter-spacing:.19em;margin-top:7px}
.auth-card h1{font-size:45px;line-height:1;letter-spacing:-.048em;margin:0 0 11px}.auth-card>p{color:#626986;line-height:1.6;margin:0 0 28px;font-size:16px}
.auth-card .field{display:grid;gap:8px;margin-bottom:16px}.auth-card .field label{font-weight:850;font-size:13px}.auth-card .input,.auth-card .select,.auth-card .textarea{width:100%;border:1px solid #cfd3e7;border-radius:13px;background:#f8f9ff;color:var(--ink);padding:14px 15px;outline:none;transition:.2s;box-shadow:inset 0 1px 0 rgba(255,255,255,.82)}.auth-card .input:focus,.auth-card .select:focus,.auth-card .textarea:focus{border-color:#7958ff;box-shadow:0 0 0 4px rgba(111,71,255,.10)}
.auth-submit{margin-top:5px;font-size:16px;min-height:52px;background:linear-gradient(100deg,#7147ff,#5530ed)!important;box-shadow:0 13px 28px rgba(91,51,238,.28)!important}
.auth-switch{text-align:center;margin:20px 0 0;color:#686f8c}.auth-switch a{color:var(--violet);font-weight:850;text-decoration:underline;text-underline-offset:2px}
.auth-legal-links{display:flex;justify-content:center;gap:28px;flex-wrap:wrap;margin-top:28px;padding-top:20px;border-top:1px solid #e2e4ef;font-size:12px}.auth-legal-links a{color:#596080;text-decoration:none}.auth-legal-links a:hover{text-decoration:underline;text-underline-offset:3px}
.form-error{min-height:20px;color:var(--red);font-size:13px;margin:6px 0 0}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.full{grid-column:1/-1}
.role-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.role-option{border:1px solid #dfe1ee;background:#fff;border-radius:15px;text-align:left;padding:16px;min-height:96px}.role-option strong{display:block;font-size:15px}.role-option small{display:block;color:var(--muted);line-height:1.45;margin-top:5px}.role-option.active{border-color:var(--violet);box-shadow:0 0 0 3px rgba(111,71,255,.09);background:#faf9ff}
.auth-visual{color:#fff;display:flex;align-items:center;min-height:620px}.auth-copy{width:100%;max-width:700px}.auth-copy .kicker{color:#bbaaff;font-size:13px;letter-spacing:.24em}.auth-copy h2{font-size:clamp(54px,5vw,82px);letter-spacing:-.058em;line-height:.94;margin:17px 0 26px}.auth-copy h2 span{background:linear-gradient(90deg,#fff 3%,#c9b5ff 58%,#a076ff 100%);-webkit-background-clip:text;background-clip:text;color:transparent}.auth-copy>p{font-size:18px;line-height:1.62;color:#d2d5e3;max-width:680px;margin:0}
.auth-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:34px}.auth-feature-grid article{min-height:186px;border:1px solid rgba(129,91,255,.48);border-radius:18px;padding:21px;background:linear-gradient(145deg,rgba(76,58,139,.36),rgba(16,18,45,.68));backdrop-filter:blur(9px);box-shadow:inset 0 1px 0 rgba(255,255,255,.035)}.auth-feature-icon{width:46px;height:46px;border-radius:12px;background:linear-gradient(145deg,#6543d8,#4e2ab3);display:grid;place-items:center;color:#cfc1ff;font-size:21px;margin-bottom:18px}.auth-feature-grid strong{display:block;font-size:16px;margin-bottom:9px}.auth-feature-grid small{display:block;color:#bbc0d6;line-height:1.5;font-size:13px}
.auth-shell-signup{align-items:start;padding-top:48px;padding-bottom:48px}.auth-shell-signup .auth-visual{position:sticky;top:48px}
.btn{border:0;border-radius:13px;padding:13px 18px;font-weight:850;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px}.btn.primary{background:linear-gradient(135deg,var(--violet),#5a35ed);color:#fff;box-shadow:0 10px 24px rgba(98,60,240,.20)}.btn.secondary{background:#fff;border:1px solid #dfe1ea;color:var(--ink)}.btn.dark{background:#10121a;color:#fff}.btn.ghost{background:transparent;color:var(--violet);padding-left:0;padding-right:0}.btn.danger{background:var(--red-bg);color:var(--red)}.btn.small{padding:8px 11px;min-height:34px;border-radius:10px;font-size:12px}.btn:disabled{opacity:.45;cursor:not-allowed}.auth-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:8px}
@media(max-width:1180px){.auth-shell{grid-template-columns:minmax(460px,.9fr) 1.1fr;gap:40px;padding:50px 44px}.auth-feature-grid{grid-template-columns:1fr}.auth-feature-grid article{min-height:0}.auth-copy h2{font-size:58px}}
@media(max-width:940px){.auth-shell{grid-template-columns:1fr;padding:28px 20px 44px;overflow:visible}.auth-panel{order:1}.auth-visual{order:2;min-height:0;padding:18px 8px 8px}.auth-copy{max-width:620px;margin:0 auto}.auth-copy h2{font-size:48px}.auth-feature-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.auth-card{max-width:640px}.auth-shell:after{display:none}.auth-shell-signup .auth-visual{position:relative;top:auto}}
@media(max-width:680px){.auth-card{padding:28px 22px 26px;border-radius:20px}.auth-card h1{font-size:37px}.brand-lockup{margin-bottom:30px}.auth-copy h2{font-size:42px}.auth-copy>p{font-size:16px}.auth-feature-grid{grid-template-columns:1fr}.form-grid,.role-grid{grid-template-columns:1fr}.auth-legal-links{gap:16px}}

/* App shell */
.workspace{min-height:100vh;display:grid;grid-template-columns:246px minmax(0,1fr)}.sidebar{background:var(--sidebar);color:#fff;padding:24px 18px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.side-brand{display:flex;align-items:center;gap:11px;padding:4px 10px 25px;border-bottom:1px solid #242630}.side-brand img{width:35px;height:35px}.side-brand strong{font-size:15px;line-height:1}.side-brand small{display:block;font-size:8px;letter-spacing:.16em;color:#8d92a6;margin-top:5px}.side-section{font-size:9px;letter-spacing:.18em;color:#74798e;font-weight:900;padding:28px 10px 9px}.side-nav{display:grid;gap:5px}.side-nav a{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:12px;color:#c7cad8;font-weight:750;font-size:13px}.side-nav a:hover{background:#151722;color:#fff}.side-nav a.active{background:#222034;color:#fff;box-shadow:inset 3px 0 0 var(--violet)}.nav-icon{width:21px;height:21px;border-radius:7px;background:#181a27;color:#9277ff;display:grid;place-items:center;font-size:11px;flex:0 0 auto}.side-nav a.active .nav-icon{background:#372a74;color:#fff}.nav-count{margin-left:auto;background:#262836;color:#aeb2c3;border-radius:999px;padding:3px 7px;font-size:10px}.side-footer{margin-top:auto;border-top:1px solid #242630;padding-top:16px}.side-user{padding:10px;border-radius:12px;background:#11131b}.side-user strong,.side-user small{display:block}.side-user small{color:#858a9e;font-size:11px;margin-top:4px}.side-signout{width:100%;margin-top:10px;border:1px solid #2c2f3b;background:transparent;color:#d5d7df;border-radius:10px;padding:10px;font-weight:750}.main{min-width:0}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(22px,4vw,48px);position:sticky;top:0;z-index:10}.topbar h1{font-size:19px;margin:0;letter-spacing:-.02em}.topbar p{margin:4px 0 0;color:var(--muted);font-size:11px}.top-actions{display:flex;align-items:center;gap:10px}.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#24233a,var(--violet));color:#fff;font-size:12px;font-weight:900}.menu-btn{display:none;width:42px;height:42px;border:1px solid var(--line);border-radius:12px;background:#fff}.content{padding:34px clamp(22px,4vw,48px) 70px;max-width:1480px;margin:0 auto}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:26px}.eyebrow{font-size:10px;letter-spacing:.18em;font-weight:950;color:var(--violet);text-transform:uppercase;margin:0 0 8px}.page-head h2{font-size:34px;letter-spacing:-.045em;margin:0}.page-head p{margin:8px 0 0;color:var(--muted);line-height:1.5}.hero-panel{border-radius:24px;background:linear-gradient(130deg,#111321 0,#181a2f 57%,#281f5a);color:#fff;padding:34px;display:grid;grid-template-columns:1.2fr .8fr;gap:25px;overflow:hidden;position:relative;margin-bottom:28px}.hero-panel:after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;right:-70px;top:-140px;background:rgba(115,77,255,.28);filter:blur(5px)}.hero-panel h2{font-size:38px;letter-spacing:-.045em;margin:7px 0 10px;max-width:650px}.hero-panel p{color:#c6c9d8;line-height:1.6;max-width:650px}.hero-panel .hero-aside{position:relative;z-index:1;display:flex;justify-content:flex-end;align-items:center}.hero-number{font-size:72px;letter-spacing:-.07em;font-weight:900;color:#fff}.hero-caption{font-size:12px;color:#b6bbcc}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:28px}.metric{background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px}.metric .m-icon{width:34px;height:34px;border-radius:10px;background:var(--soft);color:var(--violet);display:grid;place-items:center;margin-bottom:20px;font-weight:900}.metric b{font-size:27px;display:block;letter-spacing:-.04em}.metric small{color:var(--muted);display:block;margin-top:6px}.grid-2{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:18px}.panel{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.panel-head{padding:20px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.panel-head h3{margin:0;font-size:16px}.panel-head p{margin:5px 0 0;color:var(--muted);font-size:12px}.panel-body{padding:22px}.empty{border:1px dashed #d9dbea;border-radius:16px;padding:36px;text-align:center;background:#fcfcff}.empty strong{display:block;font-size:18px;margin-bottom:8px}.empty p{margin:0 auto 18px;color:var(--muted);max-width:480px;line-height:1.6}.status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:900;text-transform:capitalize}.status.open,.status.accepted,.status.approved,.status.paid{background:var(--green-bg);color:var(--green)}.status.pending,.status.draft{background:var(--amber-bg);color:var(--amber)}.status.rejected,.status.closed{background:var(--red-bg);color:var(--red)}.status.referral{background:var(--blue-bg);color:var(--blue)}.campaign-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.campaign-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;display:flex;flex-direction:column;min-height:270px;transition:.2s}.campaign-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.campaign-card .top{display:flex;justify-content:space-between;gap:12px;align-items:center}.campaign-card h3{font-size:19px;letter-spacing:-.025em;margin:24px 0 7px}.campaign-card .business{color:var(--muted);font-size:12px}.campaign-card .summary{color:#575c70;line-height:1.55;font-size:13px;margin:14px 0 20px}.campaign-card .reward{color:var(--violet);font-size:19px;font-weight:900;margin-top:auto}.campaign-card .actions{display:flex;gap:8px;margin-top:16px}.type-icon{width:42px;height:42px;border-radius:13px;background:var(--soft);color:var(--violet);display:grid;place-items:center;font-weight:900}.filter-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.search{flex:1;min-width:240px}.chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 12px;font-size:12px;font-weight:750}.chip.active{border-color:#c5b8ff;background:var(--soft);color:var(--violet)}.list{display:grid}.list-row{display:grid;grid-template-columns:minmax(180px,1.4fr) minmax(120px,.8fr) minmax(110px,.6fr) auto;gap:16px;padding:15px 20px;border-bottom:1px solid var(--line);align-items:center}.list-row:last-child{border-bottom:0}.list-row strong{font-size:13px}.list-row small{color:var(--muted);display:block;margin-top:4px}.kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.kv>div{border:1px solid var(--line);border-radius:14px;padding:15px}.kv small{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em}.kv strong{display:block;margin-top:7px}.callout{padding:16px 18px;border-radius:14px;background:#f5f2ff;border:1px solid #e6e0ff;color:#40336e;line-height:1.55}.campaign-detail{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:20px}.detail-main,.detail-side{background:#fff;border:1px solid var(--line);border-radius:18px}.detail-main{padding:28px}.detail-main h2{font-size:32px;letter-spacing:-.04em;margin:14px 0 7px}.detail-main .summary{color:var(--muted);line-height:1.7;font-size:15px}.detail-main h3{margin-top:28px}.check-list{list-style:none;padding:0;margin:14px 0 0;display:grid;gap:10px}.check-list li{position:relative;padding-left:25px;color:#4e5368;line-height:1.5}.check-list li:before{content:"✓";position:absolute;left:0;top:0;color:var(--green);font-weight:900}.detail-side{padding:22px;height:max-content;position:sticky;top:98px}.detail-side .reward-big{font-size:30px;color:var(--violet);font-weight:950;letter-spacing:-.04em}.detail-side p{color:var(--muted);line-height:1.55}.form-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;max-width:880px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}.section-title{font-size:23px;letter-spacing:-.03em;margin:0 0 4px}.section-copy{color:var(--muted);margin:0 0 20px;line-height:1.6}.ref-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px}.ref-link{display:flex;gap:8px;margin:14px 0}.ref-link .input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.table-wrap{overflow-x:auto}.table{width:100%;border-collapse:collapse;min-width:680px}.table th,.table td{text-align:left;border-bottom:1px solid var(--line);padding:13px 16px;font-size:12px}.table th{font-size:9px;letter-spacing:.11em;text-transform:uppercase;color:#858aa0}.table tr:last-child td{border-bottom:0}.toast{position:fixed;right:24px;bottom:24px;background:#10121a;color:#fff;padding:13px 16px;border-radius:12px;box-shadow:0 16px 40px rgba(0,0,0,.22);transform:translateY(18px);opacity:0;pointer-events:none;transition:.2s;z-index:100}.toast.show{opacity:1;transform:none}.modal-backdrop{position:fixed;inset:0;background:rgba(9,10,18,.58);display:grid;place-items:center;padding:20px;z-index:50}.modal{width:min(720px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:20px;box-shadow:0 24px 80px rgba(0,0,0,.25)}.modal-head{padding:22px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.modal-head h3{margin:0;font-size:21px}.modal-body{padding:24px}.modal-foot{padding:16px 24px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.icon-btn{width:38px;height:38px;border:1px solid var(--line);border-radius:11px;background:#fff}.notice{padding:13px 15px;border-radius:12px;background:#fff9e8;color:#7d5b0d;border:1px solid #f2e2ad;font-size:13px;line-height:1.5}

/* Admin */
.admin-body{background:#f3f4f8}.admin-shell{min-height:100vh;display:grid;grid-template-columns:260px minmax(0,1fr)}.admin-side{background:#080910;color:#fff;padding:24px 18px;position:sticky;top:0;height:100vh}.admin-side .side-brand{margin-bottom:18px}.admin-content{min-width:0}.admin-top{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px}.admin-top h1{font-size:19px;margin:0}.admin-main{padding:30px 36px 70px;max-width:1500px;margin:auto}.admin-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.admin-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px}.admin-card b{font-size:26px;display:block;margin-top:20px}.admin-card small{color:var(--muted)}.admin-two{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);gap:18px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.codebox{background:#0d101a;color:#d7dbef;border-radius:13px;padding:14px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;overflow-wrap:anywhere}.setup-shell{min-height:100vh;display:grid;place-items:center;padding:30px;background:radial-gradient(circle at top left,#ece7ff,transparent 40%),#f8f8fc}.setup-card{width:min(520px,100%);background:#fff;border:1px solid var(--line);border-radius:22px;padding:30px;box-shadow:var(--shadow)}.setup-card .brand-lockup{margin-bottom:28px}.setup-card h1{font-size:34px;letter-spacing:-.04em;margin:0 0 10px}.setup-card>p{color:var(--muted);line-height:1.6}

/* Referral public page */
.referral-body{background:#f7f7fb}.ref-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,.75fr)}.ref-hero{background:linear-gradient(145deg,#0c0e18,#201a47);color:#fff;padding:clamp(35px,6vw,82px);display:flex;flex-direction:column;justify-content:space-between}.ref-hero h1{font-size:clamp(45px,6vw,78px);letter-spacing:-.055em;line-height:.97;margin:30px 0 20px}.ref-hero p{color:#ced1dd;line-height:1.7;max-width:620px;font-size:16px}.ref-form{display:grid;place-items:center;padding:40px}.ref-form-card{width:min(520px,100%);background:#fff;border:1px solid var(--line);border-radius:22px;padding:28px;box-shadow:var(--shadow)}.ref-form-card h2{font-size:28px;letter-spacing:-.04em;margin:0 0 8px}.ref-form-card>p{color:var(--muted);line-height:1.6}.success-box{text-align:center;padding:30px 10px}.success-mark{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:var(--green-bg);color:var(--green);font-size:28px;margin:0 auto 18px}

@media(max-width:1080px){.campaign-grid{grid-template-columns:repeat(2,1fr)}.metrics,.admin-grid{grid-template-columns:repeat(2,1fr)}.grid-2,.admin-two{grid-template-columns:1fr}.hero-panel{grid-template-columns:1fr}.hero-aside{display:none!important}.auth-shell{grid-template-columns:1fr}.auth-visual{display:none}.ref-shell{grid-template-columns:1fr}.ref-hero{min-height:420px}}
@media(max-width:780px){.workspace,.admin-shell{grid-template-columns:1fr}.sidebar,.admin-side{position:fixed;left:-280px;top:0;width:260px;z-index:40;transition:.2s}.sidebar.open,.admin-side.open{left:0}.menu-btn{display:grid;place-items:center}.topbar,.admin-top{padding:0 18px}.content,.admin-main{padding:24px 18px 60px}.campaign-grid,.metrics,.admin-grid,.form-grid,.two-col,.settings-grid,.campaign-detail{grid-template-columns:1fr}.detail-side{position:static}.list-row{grid-template-columns:1fr auto}.list-row>*:nth-child(2),.list-row>*:nth-child(3){display:none}.page-head{align-items:flex-start;flex-direction:column}.role-grid{grid-template-columns:1fr}.auth-panel{padding:28px 22px}.auth-card h1{font-size:36px}.hero-panel{padding:24px}.hero-panel h2{font-size:31px}.ref-form{padding:22px}.ref-hero{padding:32px 24px}.modal{border-radius:17px}.modal-body{padding:18px}.modal-foot{padding:14px 18px}.toast{left:18px;right:18px;bottom:18px;text-align:center}}

/* Legal documents, consent and signup gates */
.auth-legal-links{display:flex;gap:14px;flex-wrap:wrap;margin-top:18px;font-size:12px}.auth-legal-links a{color:var(--muted);text-decoration:underline;text-underline-offset:3px}.legal-signup-block{margin:8px 0 14px}.consent-row{display:flex;align-items:flex-start;gap:10px;padding:10px 0;color:#4f5468;font-size:12px;line-height:1.5}.consent-row input{margin-top:3px;width:16px;height:16px;flex:0 0 auto;accent-color:var(--violet)}.consent-row a{color:var(--violet);font-weight:750;text-decoration:underline;text-underline-offset:2px}.consent-row.optional{border-top:1px solid var(--line);margin-top:4px;padding-top:13px}.legal-page-shell{min-height:100vh;background:#f6f6fa;padding:28px clamp(18px,5vw,70px) 70px}.legal-page-top{max-width:980px;margin:0 auto 20px;display:flex;align-items:center;justify-content:space-between;gap:16px}.legal-page-top .brand-lockup{margin:0}.legal-paper{max-width:980px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);overflow:hidden}.legal-meta{padding:18px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:12px}.legal-meta span:first-child{font-weight:850;color:var(--ink)}.legal-copy{padding:30px clamp(20px,4vw,46px) 46px}.legal-copy h1{font-size:34px;letter-spacing:-.04em;margin:0 0 26px}.legal-copy h2{font-size:20px;margin:30px 0 10px}.legal-copy p,.legal-copy li{color:#4e5368;line-height:1.75;font-size:14px}.legal-copy ul{padding-left:22px}.legal-gate .brand-lockup{margin-bottom:26px}.legal-admin-stack{display:grid;gap:18px}.legal-editor{min-height:420px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.55}.legal-actions{display:flex;justify-content:flex-end;gap:10px;padding:16px 22px;border-top:1px solid var(--line);flex-wrap:wrap}
@media(max-width:780px){.legal-page-shell{padding:20px 14px 50px}.legal-page-top{align-items:flex-start;flex-direction:column}.legal-meta{flex-direction:column;gap:6px}.legal-copy{padding:22px 18px 36px}.legal-copy h1{font-size:29px}.legal-editor{min-height:330px}}


/* Admin platform and legal settings */
.settings-card{max-width:none}
.settings-section{padding:0 0 22px;margin:0 0 22px;border-bottom:1px solid var(--line)}
.settings-section:last-of-type{border-bottom:0;margin-bottom:8px}
.settings-section-head{display:flex;justify-content:space-between;gap:16px;margin-bottom:16px}
.settings-section-head h3{margin:0;font-size:18px;letter-spacing:-.02em}
.settings-section-head p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.legal-identity{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}
.legal-identity>div{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px}
.legal-identity small{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:5px}
.legal-identity strong{display:block;font-size:12px;overflow-wrap:anywhere}
@media(max-width:900px){.legal-identity{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.legal-identity{grid-template-columns:1fr}}

/* Profiles, social verification and campaign media */
.profile-layout{display:grid;grid-template-columns:minmax(230px,.42fr) minmax(0,1fr);gap:18px;margin-bottom:18px;align-items:start}
.profile-media-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;display:grid;justify-items:center;gap:13px;text-align:center}
.profile-media-card>small{color:var(--muted);font-size:11px}
.profile-photo{width:72px;height:72px;border-radius:50%;object-fit:cover;background:var(--soft);display:grid;place-items:center;font-weight:950;color:var(--violet)}
.profile-photo.large{width:132px;height:132px;border-radius:50%;font-size:28px}
.profile-fallback{background:linear-gradient(145deg,#ece7ff,#f7f5ff);border:1px solid #e0d9ff}
.profile-photo-wrap{display:grid;place-items:center}
.upload-label{cursor:pointer;width:100%}
.business-cover-preview{display:block;width:100%;aspect-ratio:16/7;object-fit:cover;border-radius:13px;border:1px solid var(--line);margin-top:6px}
.business-cover-preview.cover-empty{background:#f7f6fb;display:grid;place-items:center;color:var(--muted);font-size:12px}
.profile-verification-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 18px}.profile-verification-line small{color:var(--muted)}
.profile-social-panel{margin-top:18px}.social-add-form{margin-top:22px;border-top:1px solid var(--line);padding-top:20px}
.social-stack{display:grid;gap:12px}.social-row{border:1px solid var(--line);border-radius:14px;padding:15px;background:#fff}.social-main{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.social-main strong,.social-main small{display:block}.social-main small{color:var(--muted);margin-top:4px;font-size:11px;overflow-wrap:anywhere}.social-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.verification-code{margin-top:13px;padding:12px 13px;background:#f8f7ff;border:1px solid #e7e2ff;border-radius:12px}.verification-code small{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em}.verification-code code{display:block;font-weight:900;color:var(--violet);font-size:15px;margin:5px 0}.verification-code p{margin:0;color:#666b80;font-size:11px;line-height:1.5}
.empty.compact{padding:20px}.empty.compact strong{font-size:14px}.empty.compact p{font-size:12px;margin-bottom:0}
.file-input{padding:9px}.file-input::file-selector-button{border:0;background:var(--soft);color:var(--violet);font-weight:850;border-radius:9px;padding:9px 11px;margin-right:10px;cursor:pointer}
.campaign-card-image{width:calc(100% + 40px);height:150px;object-fit:cover;margin:-20px -20px 18px;border-bottom:1px solid var(--line)}
.campaign-image-empty{display:grid;place-items:center;background:#f5f4fa;color:var(--muted);font-size:11px}
.campaign-detail-image{display:block;width:calc(100% + 56px);height:260px;object-fit:cover;margin:-28px -28px 24px;border-radius:18px 18px 0 0;border-bottom:1px solid var(--line)}
.table-campaign{display:flex;align-items:center;gap:10px;min-width:210px}.table-campaign img,.table-campaign-empty{width:48px;height:38px;border-radius:8px;object-fit:cover;background:#f0edff;display:grid;place-items:center;color:var(--violet);flex:0 0 auto}.creator-cell{display:flex;align-items:center;gap:10px}.mini-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;display:grid;place-items:center;font-weight:900;color:var(--violet);flex:0 0 auto}
.ref-campaign-image{display:block;width:100%;max-height:310px;object-fit:cover;border-radius:20px;margin:24px 0 34px;border:1px solid rgba(255,255,255,.12)}
@media(max-width:900px){.profile-layout{grid-template-columns:1fr}.profile-media-card{justify-items:start;text-align:left}.profile-photo.large{width:110px;height:110px}.upload-label{width:auto}}
@media(max-width:780px){.campaign-card-image{height:135px}.campaign-detail-image{height:190px}.social-main{flex-direction:column}.ref-campaign-image{max-height:230px}}


/* Profile avatars */
.avatar-link{overflow:hidden;text-decoration:none;cursor:pointer;padding:0;transition:transform .18s ease,box-shadow .18s ease}
.avatar-link:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(52,39,120,.18)}
.avatar-link:focus-visible{outline:3px solid rgba(111,72,255,.28);outline-offset:3px}
.top-avatar-image{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}
.top-avatar-fallback{width:100%;height:100%;display:grid;place-items:center;border-radius:50%}


/* v10 audit hardening + accessibility polish */
.setup-card .field,.form-card .field{display:grid;gap:8px;margin-bottom:16px}
.setup-card .field label,.form-card .field label{font-weight:850;font-size:13px}
.setup-card .input,.setup-card .select,.setup-card .textarea,.form-card .input,.form-card .select,.form-card .textarea{width:100%;border:1px solid #cfd3e7;border-radius:13px;background:#f8f9ff;color:var(--ink);padding:14px 15px;outline:none;transition:.2s}
.setup-card .input:focus,.setup-card .select:focus,.setup-card .textarea:focus,.form-card .input:focus,.form-card .select:focus,.form-card .textarea:focus{border-color:#7958ff;box-shadow:0 0 0 4px rgba(111,71,255,.10)}
.auth-copy h2{letter-spacing:-.04em;line-height:1.04}
.auth-feature-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.field-label-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.field-label-row a{font-size:12px;color:var(--violet);font-weight:750}
.mobile-auth-note{display:none!important;font-size:12px!important;color:var(--muted)!important;text-align:center;margin:14px 0 0!important}
.text-button{border:0;background:transparent;padding:0;color:var(--violet);font:inherit;font-weight:800;text-decoration:underline;cursor:pointer}
.legal-summary-actions{display:flex;gap:10px;flex-wrap:wrap}
:where(a,button,input,select,textarea):focus-visible{outline:3px solid rgba(111,72,255,.32);outline-offset:3px}
@media(max-width:940px){.mobile-auth-note{display:block!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.runtime-status{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.turnstile-mount{margin:12px 0 16px;min-height:0}
.admin-body .setup-shell{background:radial-gradient(circle at 72% 10%,rgba(111,72,255,.55),transparent 26%),linear-gradient(135deg,#090c25 0%,#171246 52%,#080b20 100%);background-color:#0b0d24}.admin-body .setup-card{box-shadow:0 24px 80px rgba(0,0,0,.28)}

/* Dashboard system — restrained operational layout */
.dashboard-shell{background:#f4f4f5}
.dashboard-shell .sidebar,.dashboard-shell.admin-shell .admin-side{background:#17191c;color:#f7f7f8;padding:18px 12px;width:auto}
.dashboard-shell .side-brand{padding:0 8px 16px;border-bottom:1px solid #2b2d31;gap:10px;margin-bottom:0}
.dashboard-shell .side-brand img{width:34px;height:34px}
.dashboard-shell .side-brand strong{font-size:14px;line-height:1.08;letter-spacing:-.01em}
.dashboard-shell .side-brand small{font-size:8px;color:#7f838b;letter-spacing:.15em;margin-top:4px}
.dashboard-shell .side-section{padding:24px 12px 8px;color:#787c85;font-size:9px;letter-spacing:.16em}
.dashboard-shell .side-nav{gap:4px}
.dashboard-shell .side-nav a{border-radius:8px;padding:9px 11px;color:#b5b8bf;font-size:12px;font-weight:650;gap:10px;box-shadow:none}
.dashboard-shell .side-nav a:hover{background:#222428;color:#fff}
.dashboard-shell .side-nav a.active{background:#2a2c30;color:#fff;box-shadow:none}
.dashboard-shell .nav-icon{width:21px;height:21px;border-radius:0;background:transparent;color:#8b9099;display:grid;place-items:center}
.dashboard-shell .side-nav a.active .nav-icon{background:transparent;color:#fff}
.dashboard-shell .nav-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.dashboard-shell .nav-count{margin-left:auto;background:#35383e;color:#d9dbe0;padding:2px 7px;font-size:9px}
.dashboard-shell .side-footer{border-top:1px solid #2b2d31;padding-top:12px}
.dashboard-shell .side-user{display:flex;align-items:center;gap:10px;padding:8px;border-radius:8px;background:transparent;color:#fff;text-decoration:none;min-width:0}
.dashboard-shell .side-user:hover{background:#222428}
.dashboard-shell .side-user>div{min-width:0}
.dashboard-shell .side-user strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-shell .side-user small{font-size:9px;color:#8c9098;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-shell .side-user .top-avatar-image,.dashboard-shell .side-user .top-avatar-fallback,.sidebar-avatar{width:28px;height:28px;flex:0 0 28px;border-radius:50%;object-fit:cover;background:#30333a;color:#fff;display:grid;place-items:center;font-size:10px;font-weight:800}
.dashboard-shell .side-signout{display:flex;align-items:center;gap:9px;border:0;background:transparent;border-radius:8px;padding:9px 10px;color:#aeb1b8;text-align:left;font-size:11px}
.dashboard-shell .side-signout:hover{background:#222428;color:#fff}
.dashboard-shell .signout-icon{font-size:15px;color:#8d9199}
.dashboard-shell .main,.dashboard-shell .admin-content{background:#f4f4f5;min-height:100vh}
.dashboard-shell .topbar,.dashboard-shell .admin-top{height:64px;padding:0 24px;background:#fff;border-bottom:1px solid #dedfe2;position:sticky;top:0;z-index:12}
.dashboard-shell .topbar h1,.dashboard-shell .admin-top h1{font-size:18px;font-weight:750;letter-spacing:-.025em}
.dashboard-shell .avatar{width:34px;height:34px;background:#26272b;font-size:10px}
.dashboard-shell .content,.dashboard-shell .admin-main{padding:24px;max-width:none;margin:0}
.dashboard-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}
.dashboard-intro h2{font-size:22px;letter-spacing:-.035em;margin:0;color:#111318}
.dashboard-intro p{margin:5px 0 0;color:#777b84;font-size:12px;line-height:1.5}
.dashboard-intro .btn{min-height:38px;border-radius:8px;padding:9px 14px;font-size:11px}
.dashboard-metrics,.dashboard-shell .admin-grid{gap:14px;margin-bottom:22px}
.dashboard-metrics .metric,.dashboard-shell .admin-card{background:#fff;border:1px solid #dedfe2;border-radius:9px;padding:16px;min-height:92px;box-shadow:none}
.metric-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.metric-head>span:first-child{font-size:9px;letter-spacing:.055em;color:#686c75;font-weight:650}
.metric-symbol{width:22px;height:22px;display:grid;place-items:center;color:#676cf5}
.metric-symbol.warning{color:#e89b18}
.metric-symbol svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.dashboard-metrics .metric b,.dashboard-shell .admin-card b{font-size:25px;display:block;margin-top:13px;letter-spacing:-.035em;color:#0f1115}
.dashboard-metrics .metric small,.dashboard-shell .admin-card small{display:none}
.dashboard-panels{gap:16px}
.dashboard-shell .panel,.dashboard-shell .form-card,.dashboard-shell .profile-media-card,.dashboard-shell .ref-card{border:1px solid #dedfe2;border-radius:9px;box-shadow:none}
.dashboard-shell .panel-head{padding:16px 18px;border-bottom:1px solid #e5e6e8}
.dashboard-shell .panel-head h3{font-size:13px;letter-spacing:-.01em}
.dashboard-shell .panel-head p{font-size:10px;color:#858993;margin-top:4px}
.dashboard-shell .panel-body{padding:18px}
.panel-link{font-size:10px;color:#555be8;font-weight:700;text-decoration:none;white-space:nowrap}
.panel-link:hover{text-decoration:underline}
.compact-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid #ececef}
.compact-row:last-child{border-bottom:0}
.compact-row strong{font-size:11px}
.compact-row small{display:block;color:#858993;font-size:9px;margin-top:4px}
.dashboard-kv{gap:9px}
.dashboard-kv>div{border:1px solid #e4e5e7;border-radius:8px;padding:12px}
.dashboard-kv small{font-size:8px;color:#7b7f87}
.dashboard-kv strong{font-size:14px;margin-top:5px}
.dashboard-shell .list-row{padding:12px 18px;font-size:11px}
.dashboard-shell .table th,.dashboard-shell .table td{padding:12px 14px}
.dashboard-shell .btn{border-radius:8px}
.dashboard-shell .btn.primary{box-shadow:none;background:#5f46e8}
.dashboard-shell .status{font-size:9px;padding:4px 8px}
.dashboard-shell .page-head{margin-bottom:20px}
.dashboard-shell .page-head h2{font-size:25px}
.dashboard-shell .page-head p{font-size:11px}
.dashboard-shell .campaign-card{border-radius:9px;box-shadow:none}
.dashboard-shell .campaign-card:hover{box-shadow:0 8px 20px rgba(24,27,32,.06);transform:translateY(-1px)}
.dashboard-shell .filter-row .input,.dashboard-shell .input,.dashboard-shell .select,.dashboard-shell .textarea{border-radius:8px}
.dashboard-shell .chip{border-radius:8px}
.dashboard-shell .modal,.dashboard-shell .detail-main,.dashboard-shell .detail-side{border-radius:10px}
@media(max-width:780px){.dashboard-shell .content,.dashboard-shell .admin-main{padding:18px}.dashboard-intro{align-items:flex-start;flex-direction:column}.dashboard-shell .topbar,.dashboard-shell .admin-top{height:60px;padding:0 16px}.dashboard-shell .sidebar,.dashboard-shell.admin-shell .admin-side{width:240px;left:-260px}}

/* Workflow completion, application review and modal form polish */
.modal .field{display:grid;gap:8px;margin-bottom:18px}
.modal .field label{font-size:12px;font-weight:850;color:#22252d}
.modal .input,.modal .select,.modal .textarea{width:100%;border:1px solid #cfd3dc;border-radius:9px;background:#fff;color:var(--ink);padding:11px 12px;outline:none;transition:border-color .18s ease,box-shadow .18s ease}
.modal .input:focus,.modal .select:focus,.modal .textarea:focus{border-color:#6b59ef;box-shadow:0 0 0 3px rgba(91,74,225,.11)}
.modal .textarea{min-height:105px;resize:vertical;line-height:1.5}
.modal .file-input{padding:8px;background:#fafafa}
.modal .field small,.field-help{font-size:10px;line-height:1.5;color:#7c8089}
.modal-kicker{display:block;color:#737782;font-size:9px;letter-spacing:.14em;font-weight:800;margin-bottom:4px}
.modal-compact{width:min(560px,100%)}
.field-optional{font-weight:500;color:#8b8f98;margin-left:4px}
.dashboard-shell .modal{border:1px solid #dcdde1;box-shadow:0 24px 70px rgba(17,19,24,.2)}
.dashboard-shell .modal-head{padding:18px 20px}.dashboard-shell .modal-head h3{font-size:18px}
.dashboard-shell .modal-body{padding:20px}.dashboard-shell .modal-foot{padding:14px 20px;background:#fafafa}

.application-table{min-width:920px}
.application-table td:last-child{min-width:285px}
.workflow-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.workflow-copy{color:#737780;font-size:11px;line-height:1.45}
.workflow-note{display:block;margin-top:7px;color:#767a83;line-height:1.45}
.referral-ready-panel{margin-bottom:16px}.referral-ready-list{display:grid;gap:0}.referral-ready-list .compact-row{padding:12px 0;border-bottom:1px solid #ececee}.referral-ready-list .compact-row:last-child{border-bottom:0}

.application-review-list{display:grid;gap:12px}
.application-review-card{background:#fff;border:1px solid #dedfe2;border-radius:9px;padding:18px}
.application-review-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:14px;border-bottom:1px solid #ececee}
.creator-cell.large .mini-avatar{width:48px;height:48px}.creator-cell.large strong{font-size:14px}.creator-cell.large small{display:block;margin-top:4px;color:#777b84;font-size:11px}
.review-statuses,.review-actions,.creator-links,.decision-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.application-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:15px 0}
.application-review-grid>div{background:#fafafa;border:1px solid #ececee;border-radius:8px;padding:11px 12px}
.application-review-grid .span-2{grid-column:1/-1}.application-review-grid small,.submission-review small{display:block;color:#868a92;font-size:9px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:5px}.application-review-grid strong{font-size:12px}.application-review-grid p,.submission-review p{margin:0;color:#5f636d;font-size:11px;line-height:1.55}
.creator-links{padding-top:2px}.social-pill{display:inline-flex;align-items:center;border:1px solid #dfe0e4;background:#fff;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:700;color:#555961}.social-pill.verified{border-color:#ccebd8;background:#f2fbf5;color:#23804b}.muted-inline{color:#858992;font-size:11px}
.review-actions{margin-top:14px;padding-top:14px;border-top:1px solid #ececee}
.submission-review{margin-top:15px;padding:14px;border:1px solid #dadce2;background:#fbfbfc;border-radius:8px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.submission-review a strong{font-size:12px;color:#5148d7}.business-feedback{margin-top:8px!important;padding:8px 10px;background:#fff7df;border:1px solid #f0dfad;border-radius:7px}.awaiting-submission{display:grid;gap:4px}.awaiting-submission strong{font-size:12px}.awaiting-submission small{font-size:10px;color:#7d8189;line-height:1.45}

.admin-record-list{display:grid;gap:10px}
.admin-record{background:#fff;border:1px solid #dedfe2;border-radius:9px;overflow:hidden}
.admin-record>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px}.admin-record>summary::-webkit-details-marker{display:none}.admin-record[open]>summary{border-bottom:1px solid #e8e9eb;background:#fcfcfc}
.admin-record-primary{display:flex;align-items:center;gap:10px;min-width:0}.admin-record-primary strong,.admin-record-primary small{display:block}.admin-record-primary strong{font-size:13px}.admin-record-primary small{font-size:10px;color:#7c8088;margin-top:3px}
.admin-record-metrics{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.admin-record-metrics>span:not(.status){font-size:10px;color:#747881;background:#f5f5f6;border-radius:999px;padding:5px 8px}
.admin-record-body{padding:16px}.record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.record-grid>div{border:1px solid #ececee;background:#fafafa;border-radius:8px;padding:11px 12px}.record-grid .span-2{grid-column:1/-1}.record-grid small{display:block;font-size:9px;color:#858991;text-transform:uppercase;letter-spacing:.08em;margin-bottom:5px}.record-grid strong,.record-grid a{font-size:12px}.record-grid a{color:#5148d7;font-weight:700}.record-grid p{margin:4px 0 0;color:#62666f;font-size:11px;line-height:1.5;overflow-wrap:anywhere}.record-actions{display:flex;justify-content:flex-end;margin-top:12px}.admin-socials{display:flex;gap:7px;flex-wrap:wrap}.admin-inline-link{display:inline-block;margin:5px 8px 5px 0;color:#5148d7;font-weight:700;font-size:10px}

@media(max-width:780px){.application-review-top,.submission-review,.admin-record>summary{align-items:flex-start;flex-direction:column}.application-review-grid,.record-grid{grid-template-columns:1fr}.application-review-grid .span-2,.record-grid .span-2{grid-column:auto}.admin-record-metrics{justify-content:flex-start}.modal-backdrop{padding:10px}.modal{max-height:94vh}}

.topbar-left,.admin-top .topbar-left{display:flex;align-items:center;gap:14px;min-width:0}.top-home-link{font-size:11px;font-weight:850;color:#666b78;text-decoration:none;border:1px solid var(--line);background:#fafafd;border-radius:9px;padding:8px 10px;white-space:nowrap}.top-home-link:hover{color:var(--violet);border-color:#c9c2ff;background:var(--soft)}.page-actions,.table-actions,.deliverable-actions,.campaign-detail-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.back-link{font-size:11px;font-weight:850;color:var(--violet);text-decoration:none}.btn.danger{border:1px solid #f0c9ce;background:#fff4f5;color:#a82f3d}.btn.danger:hover{background:#ffecef}.deliverable-list{display:grid}.deliverable-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;border-bottom:1px solid var(--line)}.deliverable-row:last-child{border-bottom:0}.deliverable-row>div:first-child{min-width:0}.deliverable-row strong{display:block}.deliverable-row small{display:block;color:var(--muted);margin-top:4px}.deliverable-row p{margin:7px 0 0;color:#5d6271;font-size:11px;line-height:1.5}.deliverable-actions{justify-content:flex-end;flex:0 0 auto}.table-actions{justify-content:flex-end;min-width:260px}.campaign-detail-image{width:100%;max-height:380px;object-fit:cover;border-radius:12px;margin-bottom:18px}.campaign-detail-actions{justify-content:flex-start}.admin-record-list .admin-record-body{padding:20px}.application-review-top{display:flex;justify-content:space-between;gap:18px;align-items:center}.admin-inline-link{color:var(--violet);font-weight:850;text-decoration:none}.admin-inline-link:hover{text-decoration:underline}
@media(max-width:780px){.topbar-left h1,.admin-top .topbar-left h1{display:none}.top-home-link{padding:7px 9px}.deliverable-row{align-items:flex-start;flex-direction:column}.deliverable-actions{justify-content:flex-start}.table-actions{min-width:0;justify-content:flex-start}}




/* =========================================
   MODERN UI OVERRIDES
   Append to the bottom of styles.css
========================================= */

:root {
  /* Softer border colors and modern, diffuse drop shadows */
  --line-soft: rgba(228, 230, 235, 0.6);
  --modern-shadow: 0 4px 24px rgba(17, 19, 24, 0.04);
  --modern-shadow-hover: 0 12px 32px rgba(17, 19, 24, 0.08);
}

/* 1. Cards & Panels: Depth, rounded corners, and breathing room */
.admin-card, 
.metric, 
.dashboard-shell .panel,
.dashboard-shell .admin-card,
.form-card,
.ref-card,
.dashboard-metrics .metric {
    border: 1px solid var(--line-soft) !important;
    box-shadow: var(--modern-shadow) !important;
    border-radius: 16px !important;
    padding: 24px !important; 
    background: #ffffff;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Interactive Lift: Cards float slightly on hover */
.admin-card:hover, 
.dashboard-metrics .metric:hover,
.dashboard-shell .campaign-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--modern-shadow-hover) !important;
}

/* 3. Top Navigation: Remove the harsh bottom line for a floating feel */
.topbar, 
.admin-top,
.dashboard-shell .topbar {
    border-bottom: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02), 0 4px 16px rgba(0, 0, 0, 0.02) !important;
}

/* 4. Tables & Lists: Increased padding and row highlighting */
.table th, 
.table td, 
.list-row, 
.deliverable-row,
.dashboard-shell .table th, 
.dashboard-shell .table td {
    padding: 18px 22px !important; 
    border-bottom: 1px solid var(--line-soft) !important;
}

.table tbody tr, 
.list-row,
.compact-row {
    transition: background-color 0.15s ease;
}

/* Subtle background shift when scanning rows */
.table tbody tr:hover, 
.list-row:hover,
.compact-row:hover {
    background-color: #fbfbfc;
}

/* 5. Metric Typography Updates */
.dashboard-metrics .metric b, 
.dashboard-shell .admin-card b {
    font-size: 28px !important;
    font-weight: 800;
    color: #111827; /* Darker, sharper contrast for numbers */
}