:root{--blue:#0f4c8a;--blue2:#073866;--green:#2f9e44;--bg:#eef3f8;--text:#1d2a38;--muted:#637282;--border:#d7e0e8}
*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}a{text-decoration:none;color:inherit}.topbar{background:linear-gradient(#155b9f,#0b447b);color:#fff;padding:18px 0;border-bottom:4px solid #07345f}.wrap{width:min(1100px,94%);margin:auto}.brand{font-size:28px;font-weight:700}.nav{display:flex;gap:18px;align-items:center}.header-row{display:flex;justify-content:space-between;align-items:center}.hero{background:#fff;border:1px solid var(--border);margin:24px auto;padding:30px;border-radius:6px;text-align:center}.hero h1{font-size:34px;margin:0 0 10px}.packages{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin:24px 0}.card{background:#fff;border:1px solid var(--border);border-radius:6px;padding:22px;box-shadow:0 2px 8px rgba(16,51,82,.06)}.price{font-size:42px;color:var(--blue);font-weight:700}.btn{display:inline-block;border:0;border-radius:4px;padding:12px 18px;background:var(--green);color:white;font-weight:700;cursor:pointer}.btn.blue{background:var(--blue)}.btn.gray{background:#6c7a89}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.stat{background:#fff;border:1px solid var(--border);padding:18px;border-radius:6px}.stat b{display:block;font-size:26px;color:var(--blue)}table{width:100%;border-collapse:collapse;background:white}th,td{padding:12px;border-bottom:1px solid var(--border);text-align:left}th{background:#f5f8fb}.admin-layout{display:grid;grid-template-columns:230px 1fr;min-height:100vh}.sidebar{background:#102f4d;color:#fff;padding:20px}.sidebar a{display:block;padding:11px;border-radius:4px;margin-bottom:5px}.sidebar a:hover{background:#19486f}.content{padding:24px}.form-group{margin-bottom:15px}label{display:block;font-weight:700;margin-bottom:6px}input,select,textarea{width:100%;padding:11px;border:1px solid var(--border);border-radius:4px;background:#fff}.notice{padding:12px;border-radius:4px;background:#e8f5e9;color:#236b2c;margin-bottom:15px}@media(max-width:760px){.admin-layout{grid-template-columns:1fr}.sidebar{display:flex;gap:5px;overflow:auto}.sidebar a{white-space:nowrap}.hero h1{font-size:27px}.header-row{align-items:flex-start;gap:12px;flex-direction:column}}
/* v24 analytics: extends the existing SpinMyTraffic identity without replacing it */
.analytics-summary{margin:18px 0}.analytics-card{margin-top:18px}.analytics-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.performance-badge{background:#e8f1f9;color:var(--blue);border:1px solid #c9dbea;border-radius:999px;padding:9px 14px;font-weight:700;white-space:nowrap}.analytics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.analytics-row{margin:14px 0}.analytics-label{display:flex;justify-content:space-between;gap:12px;margin-bottom:6px;color:var(--text)}.analytics-track{height:9px;background:#e9eff5;border-radius:999px;overflow:hidden}.analytics-track span{display:block;height:100%;background:linear-gradient(90deg,var(--blue),#2f76b5);border-radius:999px}.analytics-empty{color:var(--muted)}.mini-chart{height:190px;display:flex;align-items:flex-end;gap:5px;padding:16px 4px 4px;border-bottom:1px solid var(--border);overflow:hidden}.mini-day{height:100%;flex:1;min-width:5px;display:flex;align-items:flex-end;justify-content:center;gap:1px}.mini-day .bar{display:block;width:42%;min-height:2px;border-radius:3px 3px 0 0}.mini-day .impressions{background:var(--blue)}.mini-day .clicks{background:var(--green)}.chart-legend{display:flex;gap:20px;color:var(--muted);font-size:13px;margin-top:10px}.chart-legend span:before{content:"";display:inline-block;width:9px;height:9px;border-radius:2px;background:var(--blue);margin-right:6px}.chart-legend span+span:before{background:var(--green)}
@media(max-width:760px){.analytics-grid{grid-template-columns:1fr}.analytics-heading{flex-direction:column}.performance-badge{white-space:normal}.mini-chart{height:150px;gap:3px}}

/* v25 live three-banner rotation; preserves the original SpinMyTraffic identity */
.live-ad-wall{margin:18px 0 8px}.live-ad-heading{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:10px;font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#47647e}.live-dot{width:8px;height:8px;border-radius:50%;background:#20b26b;box-shadow:0 0 0 5px rgba(32,178,107,.12);animation:livePulse 1.8s ease-in-out infinite}.live-ad-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.live-ad-slot{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;min-height:92px;border:1px solid #d7e0e8;border-radius:12px;background:#fff;box-shadow:0 8px 24px rgba(15,76,138,.08);transition:opacity .26s ease,transform .26s ease,box-shadow .2s ease}.live-ad-slot:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(15,76,138,.13)}.live-ad-slot.is-changing{opacity:0;transform:scale(.985)}.live-ad-slot img{display:block;width:100%;height:auto;max-height:150px;object-fit:contain}.live-ad-slot:after{content:'AD';position:absolute;top:5px;right:6px;padding:2px 5px;border-radius:4px;background:rgba(0,0,0,.48);color:#fff;font-size:8px;font-weight:700;line-height:1.2;pointer-events:none}@keyframes livePulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.82)}}@media(max-width:700px){.live-ad-wall{margin-top:10px}.live-ad-heading{margin-bottom:7px;font-size:11px}.live-ad-grid{gap:6px}.live-ad-slot{min-height:58px;border-radius:8px}.live-ad-slot img{max-height:90px}.live-ad-slot:after{top:3px;right:3px;font-size:7px;padding:1px 3px}}


/* v26 requested additions only */
.live-ad-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.live-advertise-here{background:linear-gradient(135deg,#155b9f,#073866);color:#fff;text-align:center;cursor:pointer}
.live-advertise-here:after{content:'ADVERTISE';background:rgba(255,255,255,.18)}
.live-advertise-here span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:12px}
.live-advertise-here b{font-size:20px}.live-advertise-here small{font-size:11px;opacity:.82}
.banner-or{text-align:center;position:relative;margin:18px 0}.banner-or:before{content:"";position:absolute;left:0;right:0;top:50%;border-top:1px solid var(--border)}.banner-or span{position:relative;background:#fff;padding:0 12px;color:var(--muted);font-size:12px;font-weight:700}
.banner-library-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}.banner-library-item img{width:100%;height:150px;object-fit:contain;background:#f5f8fb;border:1px solid var(--border);border-radius:5px}.banner-library-meta{display:flex;flex-direction:column;gap:5px;margin:12px 0;word-break:break-all}.banner-library-meta small{color:var(--muted)}.banner-library-error{background:#fdecec;color:#8b1e1e}.btn:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:700px){.live-ad-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.live-advertise-here span{padding:5px 2px;gap:2px}.live-advertise-here b{font-size:11px}.live-advertise-here small{font-size:7px}.live-advertise-here:after{font-size:5px}}

/* v28 audit fix: reserve all three live slots so they can populate without a page refresh */
.live-ad-slot.is-empty{visibility:hidden;pointer-events:none;box-shadow:none}

/* Large vertical sponsored-ad wall */
.live-ad-wall{margin:26px 0 14px}
.live-ad-heading{justify-content:flex-start;max-width:960px;margin:0 auto 12px;padding:0 2px;font-size:14px;color:#263f56}
.live-ad-grid{display:flex;flex-direction:column;align-items:center;gap:18px;width:100%;max-width:960px;margin:0 auto}
.live-ad-slot{flex:none;width:min(900px,100%);margin:0 auto;min-height:180px;border-radius:14px;border-color:#cbd8e3;background:#fff}
.live-ad-slot img{width:100%;height:auto;max-height:420px;object-fit:contain}
.live-ad-slot:after{content:'SPONSORED AD';top:10px;right:10px;padding:5px 8px;border-radius:6px;background:rgba(7,56,102,.82);font-size:10px;letter-spacing:.04em}
.live-advertise-here{min-height:150px;background:linear-gradient(135deg,#155b9f 0%,#073866 100%);border-color:#073866;color:#fff;box-shadow:0 12px 30px rgba(7,56,102,.22)}
.live-advertise-here span{padding:28px;gap:7px}
.live-advertise-here b{font-size:25px;color:#fff}
.live-advertise-here small{font-size:13px;color:#dcecff;opacity:1}
.live-advertise-here:after{content:'ADVERTISE HERE';background:rgba(255,255,255,.16)}
@media(max-width:700px){.live-ad-wall{margin-top:16px}.live-ad-heading{font-size:12px;margin-bottom:9px}.live-ad-grid{display:flex;flex-direction:column;align-items:center;gap:12px}.live-ad-slot{width:100%;margin:0 auto;min-height:108px;border-radius:10px}.live-ad-slot img{max-height:260px}.live-ad-slot:after{top:6px;right:6px;padding:3px 6px;font-size:8px}.live-advertise-here{min-height:112px}.live-advertise-here span{padding:22px 12px;gap:5px}.live-advertise-here b{font-size:20px}.live-advertise-here small{font-size:12px}.live-advertise-here:after{font-size:7px}}

/* Clickable uploaded site logo */
.brand{display:inline-flex;align-items:center}
.brand img{display:block;width:auto;height:46px;max-width:260px;object-fit:contain}
.sidebar .brand{margin-bottom:16px}.sidebar .brand img{height:42px;max-width:185px}
@media(max-width:700px){.brand img{height:40px;max-width:220px}}

/* Classic SpinMyTraffic reference identity */
.topbar{background:#30343a;border-bottom:0;padding:19px 0;box-shadow:none}
.topbar .wrap{width:min(1380px,96%)}
.header-row{min-height:56px}
.topbar .brand{color:#fff;text-transform:uppercase;letter-spacing:-.03em}
.topbar .brand img{height:48px;max-width:285px}
.topbar .nav{gap:14px}
.topbar .nav a{display:inline-flex;align-items:center;justify-content:center;min-width:145px;padding:14px 22px;border-radius:999px;color:#fff;font-size:14px;font-weight:800;text-transform:uppercase;box-shadow:0 4px 10px rgba(0,0,0,.18);transition:transform .2s ease,filter .2s ease}
.topbar .nav a:first-child{background:#d93254}
.topbar .nav a:last-child{background:#35afe7}
.topbar .nav a:hover{transform:translateY(-2px);filter:brightness(1.06)}
.classic-hero{background:#35afe7;color:#fff;padding:42px 0 34px}
.classic-hero-inner{width:min(1180px,92%);margin:0 auto;text-align:center}
.classic-hero h1{margin:0;font-size:38px;line-height:1.2;font-weight:400;letter-spacing:.015em}
.classic-hero p{max-width:1050px;margin:48px auto 38px;font-size:20px;line-height:1.55;color:#f8fdff}
.classic-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:80px;align-items:end}
.classic-step{display:flex;flex-direction:column;align-items:center;gap:14px;color:#111}
.classic-step svg{width:126px;height:126px;fill:none;stroke:#fff;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.classic-step b{font-size:26px;font-weight:500;line-height:1.1}
@media(max-width:760px){.topbar{padding:13px 0}.topbar .wrap{width:92%}.header-row{align-items:center;flex-direction:row;flex-wrap:wrap}.topbar .brand img{height:39px;max-width:210px}.topbar .nav{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:9px}.topbar .nav a{min-width:0;padding:11px 9px;font-size:12px}.classic-hero{padding:30px 0 28px}.classic-hero h1{font-size:27px}.classic-hero p{margin:24px auto 30px;font-size:16px;line-height:1.5}.classic-steps{grid-template-columns:1fr;gap:29px}.classic-step{gap:7px}.classic-step svg{width:88px;height:88px}.classic-step b{font-size:20px}}

/* Advertise-here card aligned with the current charcoal/cyan identity */
.live-advertise-here{background:linear-gradient(135deg,#30343a 0%,#25292e 68%,#1d2024 100%);border:2px solid #35afe7;color:#fff;box-shadow:0 14px 34px rgba(48,52,58,.24),inset 0 0 0 1px rgba(53,175,231,.18);animation:advertisePulse 2.4s ease-in-out infinite}
.live-advertise-here:hover{border-color:#5cc7f2;box-shadow:0 17px 38px rgba(48,52,58,.3),0 0 0 4px rgba(53,175,231,.12);animation-play-state:paused}
.live-advertise-here b{color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.24)}
.live-advertise-here small{color:#bfeaff;opacity:1}
.live-advertise-here:after{color:#fff;background:#35afe7;box-shadow:0 3px 9px rgba(0,0,0,.18)}
@keyframes advertisePulse{0%,100%{transform:scale(1);box-shadow:0 14px 34px rgba(48,52,58,.24),0 0 0 0 rgba(53,175,231,0),inset 0 0 0 1px rgba(53,175,231,.18)}50%{transform:scale(1.008);box-shadow:0 17px 38px rgba(48,52,58,.28),0 0 0 8px rgba(53,175,231,.11),inset 0 0 0 1px rgba(53,175,231,.28)}}
@media(prefers-reduced-motion:reduce){.live-advertise-here{animation:none}}
