:root{
  --bg:#050b14;--panel:#0d1626;--panel2:#111d31;--border:#263a5c;
  --text:#f4f7fb;--muted:#aebbd0;--blue:#2f6df6;--green:#22c55e;
  --yellow:#facc15;--red:#ef4444;
}
*{box-sizing:border-box}
body{
  margin:0;font-family:Inter,Arial,sans-serif;
  background:radial-gradient(circle at 20% 10%, rgba(47,109,246,.25), transparent 30%),
  radial-gradient(circle at 90% 20%, rgba(34,197,94,.15), transparent 28%),var(--bg);
  color:var(--text);
}
.page{max-width:1280px;margin:0 auto;padding:34px 22px}.hidden{display:none!important}
.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.brand{font-weight:900;letter-spacing:2px;font-size:22px}.brand span{color:#b7c6e4}
.pill{border:1px solid var(--border);background:#111a2d;padding:10px 18px;border-radius:999px;color:#c8d6f0;font-weight:700}
.card{background:linear-gradient(180deg,rgba(17,29,49,.96),rgba(10,18,31,.96));border:1px solid var(--border);border-radius:24px;box-shadow:0 18px 60px rgba(0,0,0,.25)}
.hero{display:grid;grid-template-columns:1.45fr .75fr;gap:28px;padding:34px}
.eyebrow{text-transform:uppercase;color:#8fb0ff;font-weight:900;letter-spacing:1.5px}
h1{font-size:56px;line-height:1.02;margin:10px 0 16px}.sub{font-size:18px;color:var(--muted);max-width:720px;line-height:1.6}
.quick-grid{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
button{border:none;border-radius:14px;padding:14px 20px;font-weight:900;font-size:16px;cursor:pointer;transition:.15s;min-height:50px}
button:hover{transform:scale(1.035);box-shadow:0 10px 30px rgba(0,0,0,.28)}
.primary{background:linear-gradient(135deg,#2f6df6,#5b8cff);color:white}.secondary{background:#15233a;color:#f3f7ff;border:1px solid #30466c}
.small{min-height:42px;padding:10px 16px}.big{font-size:18px}.full{width:100%;margin-top:12px}
.custom-row{display:flex;align-items:center;gap:10px;margin-top:16px;color:var(--muted);font-weight:800;flex-wrap:wrap}
input,select{background:#08111f;border:1px solid #2c4268;color:white;border-radius:14px;min-height:50px;padding:0 14px;font-weight:800;font-size:16px}
.custom-row input{width:100px}.trust-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.trust-row span{background:#0b1424;border:1px solid #243b60;color:#bfd0ec;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:800}
.mini-preview{background:#02060c;border:1px solid #243655;border-radius:22px;padding:24px;display:flex;flex-direction:column;justify-content:center;min-height:260px}
.preview-brand{text-align:center;color:#8ca0be;font-weight:900;text-transform:uppercase;letter-spacing:1px}
.preview-time{text-align:center;font-size:86px;font-weight:900;margin:18px 0}
.preview-bar,.progress,.stage-progress{height:16px;background:#24324c;border-radius:999px;overflow:hidden}
.preview-bar span,.progress span,.stage-progress span{display:block;height:100%;width:70%;background:var(--green);transition:.2s}
.preview-note{text-align:center;color:var(--muted);margin-top:14px;font-weight:800}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:16px}.feature{padding:22px}.feature h3{margin:0 0 10px}.feature p{color:var(--muted);line-height:1.5}
.muted{color:var(--muted)}.controller-layout{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:18px}.preview-panel,.share-panel{padding:24px}
.display-card{background:#02060c;border:1px solid #223758;border-radius:24px;min-height:340px;padding:22px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.display-logo{text-transform:uppercase;font-weight:900;color:#8da0bd;letter-spacing:2px}.title-input{background:transparent;border:none;color:white;text-align:center;font-size:34px;font-weight:900;margin-top:18px;width:100%;outline:none}
.timer-text{font-size:118px;font-weight:950;line-height:1;margin:18px 0}.status{color:var(--muted);font-weight:900;margin-top:14px}
.mode-box{margin-top:18px;display:grid;grid-template-columns:140px 1fr;gap:12px;align-items:center}.mode-box label,.duration-box label,.share-panel label{display:block;color:#bfd0ec;font-weight:900}
.control-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.adjust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}
.adjust-grid button{background:#0f1b2e;color:white;border:1px solid #2a4168}.duration-box{margin-top:18px;border-top:1px solid #263a5c;padding-top:18px}
.duration-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.duration-row input{width:90px}.copy-row{display:flex;gap:8px}.copy-row input{flex:1;min-width:0}
#qrcode{background:white;padding:14px;border-radius:18px;display:inline-block;margin:20px auto 8px;min-height:156px}
.share-panel{text-align:left}.share-panel h2{margin-top:0}.tips{display:grid;gap:8px;margin-top:22px;color:var(--muted);border-top:1px solid #263a5c;padding-top:18px}
.timers-box{margin-top:22px;border-top:1px solid #263a5c;padding-top:18px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-title h2{margin:0}
.timer-list{display:grid;gap:10px;margin-top:12px}.timer-item{display:grid;grid-template-columns:1fr 110px 90px;gap:10px;align-items:center;background:#0b1424;border:1px solid #263a5c;border-radius:16px;padding:12px;cursor:pointer}
.timer-item.active{border-color:#5b8cff;background:#10244c}.timer-item strong{font-size:16px}.timer-item span{color:#bfd0ec;font-weight:900}.timer-item button{min-height:38px;padding:8px 10px;font-size:13px}
.display-page{max-width:none;padding:0}.stage-screen{height:100vh;width:100vw;background:#02060c;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:5vh}
.stage-title{font-size:clamp(28px,5vw,74px);font-weight:950;margin-top:24px}.stage-time{font-size:clamp(96px,22vw,300px);font-weight:1000;line-height:.9;margin:24px 0}
.stage-progress{width:min(920px,90vw);height:20px}.stage-status{font-size:clamp(18px,2.5vw,36px);font-weight:900;color:#c3d0e5;margin-top:24px}.stage-next{margin-top:16px;color:#8fa3c0;font-weight:800}
.warning-yellow .stage-time,.warning-yellow .timer-text{color:var(--yellow)}.warning-red .stage-time,.warning-red .timer-text{color:var(--red)}
.warning-yellow .stage-progress span,.warning-yellow .progress span{background:var(--yellow)}.warning-red .stage-progress span,.warning-red .progress span{background:var(--red)}
.finished .stage-time,.finished .timer-text{color:var(--red);animation:pulse 1s infinite}@keyframes pulse{50%{opacity:.55}}
@media(max-width:900px){
  h1{font-size:40px}.hero,.controller-layout,.feature-grid{grid-template-columns:1fr}.timer-text{font-size:78px}.control-row,.adjust-grid{grid-template-columns:1fr 1fr}.topbar{gap:12px;align-items:flex-start}.pill{display:none}.mode-box{grid-template-columns:1fr}.timer-item{grid-template-columns:1fr}
}

.sync-status{margin-top:14px;font-size:13px;color:#8fa3c0;font-weight:800}


.message-box{
  margin-top:22px;
  border-top:1px solid #263a5c;
  padding-top:18px;
}
.message-row{
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:10px;
  align-items:center;
}
.message-row input{
  width:100%;
}
.stage-message-overlay{
  position:fixed;
  inset:0;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:6vw;
  background:rgba(0,0,0,.72);
  color:#fff;
  font-size:clamp(44px,9vw,150px);
  font-weight:1000;
  line-height:1.08;
  letter-spacing:.02em;
  text-shadow:0 12px 50px rgba(0,0,0,.7);
  animation:messagePop .2s ease-out;
}
.stage-message-overlay.hidden{
  display:none!important;
}
@keyframes messagePop{
  from{opacity:0;transform:scale(.96)}
  to{opacity:1;transform:scale(1)}
}
@media(max-width:900px){
  .message-row{grid-template-columns:1fr}
}


/* V6 Clean Stage Display */
.stage-screen{
  position:relative;
  overflow:hidden;
  justify-content:center;
}
.stage-screen .display-logo{
  position:absolute;
  top:5vh;
  left:50%;
  transform:translateX(-50%);
  font-size:clamp(14px,1.4vw,24px);
  opacity:.82;
}
.stage-time{
  font-size:clamp(120px,28vw,420px)!important;
  letter-spacing:-.08em;
  margin:0!important;
  text-shadow:0 12px 70px rgba(0,0,0,.4);
}
.stage-title{
  font-size:clamp(22px,3vw,52px)!important;
  margin:0 0 2vh!important;
  opacity:.92;
}
.stage-status{
  display:none!important;
}
.stage-next{
  position:absolute;
  bottom:8vh;
  left:50%;
  transform:translateX(-50%);
  font-size:clamp(14px,1.4vw,24px)!important;
  opacity:.72;
}
.stage-progress{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  width:100vw!important;
  height:clamp(18px,4vh,46px)!important;
  border-radius:0!important;
  background:#1f2937!important;
  z-index:5;
}
.stage-progress span{
  border-radius:0!important;
  background:#22c55e;
  transition:width .18s linear, background .18s linear;
}
.warning-yellow .stage-progress span{background:#f59e0b!important;}
.warning-red .stage-progress span{background:#ef4444!important;}
.warning-red .stage-time{
  text-shadow:0 0 38px rgba(239,68,68,.35), 0 12px 70px rgba(0,0,0,.5);
}
.finished .stage-time{
  animation:dangerPulse .8s infinite;
}
@keyframes dangerPulse{
  0%,100%{transform:scale(1);opacity:1}
  50%{transform:scale(1.015);opacity:.86}
}
.simple-mode .stage-title,
.simple-mode .stage-next{
  display:none!important;
}
.event-mode .stage-title,
.event-mode .stage-next{
  display:block;
}
.stage-message-overlay{
  background:rgba(0,0,0,.82)!important;
  color:#ffffff!important;
  font-size:clamp(52px,10vw,180px)!important;
}

/* V6.1 message overlay fix */
.stage-message-overlay{
  z-index:9999!important;
  display:flex;
}
.stage-message-overlay.hidden{
  display:none!important;
}


/* V6.2 fixes */
.stage-message-overlay{
  position:fixed!important;
  inset:0!important;
  z-index:999999!important;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:6vw;
  background:rgba(0,0,0,.86)!important;
  color:#fff!important;
  font-size:clamp(52px,10vw,180px)!important;
  font-weight:1000!important;
  line-height:1.08!important;
  letter-spacing:.02em;
  text-shadow:0 12px 55px rgba(0,0,0,.75);
}
.stage-message-overlay.hidden{
  display:none!important;
}


/* V6.3 final fix */
.stage-message-overlay{
  position:fixed!important;
  inset:0!important;
  z-index:999999!important;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:6vw;
  background:rgba(0,0,0,.86)!important;
  color:#fff!important;
  font-size:clamp(52px,10vw,180px)!important;
  font-weight:1000!important;
  line-height:1.08!important;
  letter-spacing:.02em;
  text-shadow:0 12px 55px rgba(0,0,0,.75);
}
.stage-message-overlay.hidden{
  display:none!important;
}


/* V6.4 Message below timer */
.stage-message-overlay{
  display:none!important;
}
.stage-message-below{
  margin-top:clamp(14px,2vh,28px);
  max-width:min(1100px,88vw);
  padding:clamp(10px,1.5vw,22px) clamp(18px,3vw,42px);
  border-radius:999px;
  background:rgba(250,204,21,.12);
  border:1px solid rgba(250,204,21,.38);
  color:#facc15;
  font-size:clamp(28px,4.5vw,82px);
  font-weight:1000;
  line-height:1.08;
  text-align:center;
  text-transform:uppercase;
  letter-spacing:.02em;
  text-shadow:0 8px 35px rgba(0,0,0,.55);
  z-index:10;
}
.stage-message-below.hidden{
  display:none!important;
}
.simple-mode .stage-message-below,
.event-mode .stage-message-below{
  display:block;
}
.simple-mode .stage-message-below.hidden,
.event-mode .stage-message-below.hidden{
  display:none!important;
}


/* V7 Pro Core */
.warning-btn{background:#f59e0b;color:#111827;}
.danger-btn{background:#ef4444;color:#fff;}
.pro-upgrade{background:linear-gradient(135deg,#f59e0b,#facc15);color:#111827;border:none;}
.pro-tools-box{margin-top:22px;border-top:1px solid #263a5c;padding-top:18px;}
.pro-tool-grid{display:grid;gap:14px;}
.toggle-line{display:flex;align-items:center;gap:10px;background:#0b1424;border:1px solid #263a5c;border-radius:16px;padding:12px 14px;color:#bfd0ec;font-weight:900;}
.toggle-line input{min-height:auto;width:20px;height:20px;}
.schedule-row{display:grid;grid-template-columns:150px 1fr auto auto;gap:10px;align-items:center;}
.schedule-row label{color:#bfd0ec;font-weight:900;}
.small-note{font-size:13px;}
.pricing-teaser{margin-top:18px;padding:24px;}
.pricing-teaser h2{margin:6px 0 16px;font-size:clamp(26px,3vw,42px);}
.pricing-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}
.pricing-mini-grid div{background:#0b1424;border:1px solid #263a5c;border-radius:16px;padding:16px;}
.pricing-mini-grid strong{display:block;font-size:20px;}
.pricing-mini-grid span{display:block;margin-top:6px;color:#aebbd0;line-height:1.4;}
.stage-message-below.warning{background:rgba(245,158,11,.16);border-color:rgba(245,158,11,.55);color:#fbbf24;}
.stage-message-below.flash{background:rgba(239,68,68,.18);border-color:rgba(239,68,68,.7);color:#fff;animation:flashMessagePulse .55s infinite;}
@keyframes flashMessagePulse{0%,100%{transform:scale(1);box-shadow:0 0 0 rgba(239,68,68,0)}50%{transform:scale(1.035);box-shadow:0 0 42px rgba(239,68,68,.5)}}
@media(max-width:900px){
  .message-row{grid-template-columns:1fr!important}
  .schedule-row{grid-template-columns:1fr}
  .pricing-mini-grid{grid-template-columns:1fr}
}


/* V7.1 reliable scheduled start */
.schedule-box{
  display:grid;
  gap:10px;
}
.manual-schedule-row{
  display:grid;
  grid-template-columns:90px 90px 100px auto auto;
  gap:10px;
  align-items:center;
}
.quick-schedule-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.manual-schedule-row input,
.manual-schedule-row select{
  min-height:50px;
}
@media(max-width:900px){
  .manual-schedule-row,
  .quick-schedule-row{
    grid-template-columns:1fr;
  }
}


/* V8 Future Scheduling */
.future-date-row{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.future-date-row input{
  width:100%;
  min-height:50px;
}
.scheduled-countdown{
  font-size:clamp(18px,2.5vw,42px);
  font-weight:1000;
  letter-spacing:.16em;
  color:#93c5fd;
  margin-bottom:clamp(8px,1.2vh,18px);
  text-transform:uppercase;
}
.scheduled-countdown.hidden{
  display:none!important;
}
.scheduled-waiting .stage-time{
  color:#93c5fd!important;
}
.scheduled-waiting .stage-progress span{
  background:#3b82f6!important;
}
.schedule-box label{
  color:#bfd0ec;
  font-weight:900;
}


/* V8.1 scheduled display fix */
.scheduled-countdown{
  font-size:clamp(22px,3vw,54px)!important;
  font-weight:1000!important;
  letter-spacing:.18em!important;
  color:#93c5fd!important;
  margin-bottom:clamp(10px,1.5vh,24px)!important;
  text-transform:uppercase!important;
}
.scheduled-countdown.hidden{
  display:none!important;
}
.scheduled-waiting .stage-time{
  color:#93c5fd!important;
  text-shadow:0 0 45px rgba(59,130,246,.28)!important;
}
.scheduled-waiting .stage-progress span{
  background:#3b82f6!important;
}


/* V10 SaaS Core */
.saas-bar{
  position:fixed;
  top:14px;
  right:16px;
  z-index:9998;
  display:flex;
  gap:8px;
  align-items:center;
  background:rgba(5,11,20,.74);
  border:1px solid rgba(59,130,246,.28);
  border-radius:999px;
  padding:8px;
  backdrop-filter:blur(12px);
}
.saas-bar button{
  min-height:38px;
  padding:8px 12px;
  font-size:13px;
  border-radius:999px;
}
.saas-plan-pill{
  color:#bfdbfe;
  font-weight:1000;
  padding:8px 12px;
  border-radius:999px;
  background:#0b1424;
  border:1px solid #263a5c;
  font-size:13px;
}
.modal{
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(0,0,0,.78);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
}
.modal.hidden{display:none!important;}
.modal-card{
  width:min(1100px,96vw);
  max-height:92vh;
  overflow:auto;
  background:linear-gradient(180deg,#111d31,#08111f);
  border:1px solid #263a5c;
  border-radius:24px;
  padding:28px;
  box-shadow:0 30px 100px rgba(0,0,0,.55);
  position:relative;
}
.modal-card.wide{width:min(1250px,96vw);}
.modal-close{
  position:absolute;
  top:14px;
  right:14px;
  width:42px;
  height:42px;
  min-height:42px;
  border-radius:50%;
  background:#0b1424;
  color:#fff;
  border:1px solid #263a5c;
  font-size:24px;
  line-height:1;
}
.pricing-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:20px;
}
.price-card{
  background:#0b1424;
  border:1px solid #263a5c;
  border-radius:20px;
  padding:22px;
}
.price-card.featured{
  border-color:#5b8cff;
  box-shadow:0 0 0 1px rgba(91,140,255,.25),0 20px 60px rgba(47,109,246,.18);
}
.price{
  font-size:38px;
  font-weight:1000;
  margin:8px 0;
}
.price-card ul{
  padding-left:20px;
  color:#c8d6f0;
  line-height:1.8;
}
.dashboard-grid{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:16px;
  margin-top:20px;
}
.dash-panel{
  background:#0b1424;
  border:1px solid #263a5c;
  border-radius:20px;
  padding:20px;
}
.dash-panel label{
  display:block;
  margin-top:12px;
  margin-bottom:8px;
  color:#bfd0ec;
  font-weight:900;
}
.dash-panel input[type="text"],
.dash-panel input:not([type]){
  width:100%;
}
.saved-rooms-list{
  display:grid;
  gap:10px;
  margin:12px 0;
}
.saved-room-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  background:#08111f;
  border:1px solid #263a5c;
  border-radius:14px;
  padding:12px;
}
.saved-room-item code{
  color:#bfdbfe;
  font-weight:900;
}
.saved-room-item button{
  min-height:38px;
  padding:8px 12px;
}
.saas-core-section{
  margin-top:18px;
  padding:24px;
}
.saas-core-section h2{
  font-size:clamp(26px,3vw,42px);
  margin:8px 0 18px;
}
.saas-feature-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
.saas-feature-grid div{
  background:#0b1424;
  border:1px solid #263a5c;
  border-radius:16px;
  padding:16px;
}
.saas-feature-grid strong{
  display:block;
  font-size:18px;
}
.saas-feature-grid span{
  display:block;
  margin-top:6px;
  color:#aebbd0;
  line-height:1.4;
}
@media(max-width:900px){
  .saas-bar{
    left:8px;
    right:8px;
    top:auto;
    bottom:8px;
    justify-content:center;
    flex-wrap:wrap;
    border-radius:18px;
  }
  .pricing-grid,.dashboard-grid,.saas-feature-grid{
    grid-template-columns:1fr;
  }
}


/* V11 SaaS Foundation */
.app-account-bar{
  position:fixed;
  top:14px;
  right:16px;
  z-index:9998;
  display:flex;
  gap:8px;
  align-items:center;
  background:rgba(5,11,20,.58);
  border:1px solid rgba(59,130,246,.25);
  border-radius:999px;
  padding:8px;
  backdrop-filter:blur(12px);
}
.app-account-bar button{
  min-height:36px;
  padding:8px 12px;
  font-size:13px;
  border-radius:999px;
}
.mini-plan{
  color:#bfdbfe;
  font-weight:1000;
  padding:8px 12px;
  border-radius:999px;
  background:#0b1424;
  border:1px solid #263a5c;
  font-size:13px;
}
body.output-clean .app-account-bar{
  display:none!important;
}
.overlay-page{
  max-width:none!important;
  padding:0!important;
  background:transparent!important;
}
.overlay-timer{
  font-family:Inter,Arial,sans-serif;
  font-size:clamp(80px,18vw,260px);
  font-weight:1000;
  line-height:.9;
  color:#fff;
  text-shadow:0 6px 30px rgba(0,0,0,.55);
  padding:2vw;
}
body.overlay-mode{
  background:transparent!important;
}
body.overlay-mode .app-account-bar,
body.overlay-mode .topbar,
body.overlay-mode .saas-bar{
  display:none!important;
}


/* V11.1 Clean App UI */
body{
  background:
    radial-gradient(circle at 18% 0%, rgba(47,109,246,.18), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(34,197,94,.13), transparent 30%),
    #050b14!important;
}
#home{
  max-width:1280px!important;
  padding-top:36px!important;
}
.clean-app-bar{
  top:18px!important;
  right:28px!important;
  background:rgba(3,10,22,.72)!important;
  border:1px solid rgba(96,165,250,.22)!important;
  box-shadow:0 12px 40px rgba(0,0,0,.25);
}
.clean-app-bar button{
  background:#f4f7fb!important;
  color:#050b14!important;
  border:none!important;
  font-size:14px!important;
  font-weight:1000!important;
}
.clean-app-bar .upgrade-mini{
  background:linear-gradient(135deg,#f59e0b,#facc15)!important;
  color:#111827!important;
}
.clean-app-bar .mini-plan{
  background:#0b1424!important;
  color:#bfdbfe!important;
  border-color:#1f4f99!important;
}
.hero-card{
  margin-top:28px!important;
  padding:clamp(28px,4vw,48px)!important;
  border-radius:26px!important;
  background:linear-gradient(135deg,rgba(17,29,49,.96),rgba(7,17,32,.94))!important;
  box-shadow:0 24px 90px rgba(0,0,0,.28);
}
.hero-title,
.hero-card h1{
  font-size:clamp(44px,5vw,76px)!important;
  line-height:1.05!important;
  letter-spacing:-.04em!important;
}
.hero-card p{
  max-width:640px!important;
}
.hero-actions button:nth-child(1),
.hero-card button[onclick*="createRoom"]{
  box-shadow:0 12px 34px rgba(47,109,246,.24);
}
.preview-card{
  border-radius:24px!important;
}
.feature-grid,
.cards-grid{
  margin-top:22px!important;
}
.feature-card,
.info-card{
  min-height:150px!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,rgba(17,29,49,.94),rgba(8,17,31,.94))!important;
}
.pricing-teaser,
.saas-core-section{
  display:none!important;
}
.clean-app-footer{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  color:#91a4c4;
  padding:30px 10px 10px;
  font-weight:700;
}
.clean-app-footer a{
  color:#60a5fa;
  text-decoration:none;
}
@media(max-width:900px){
  #home{padding-top:92px!important}
  .clean-app-bar{
    left:12px!important;
    right:12px!important;
    top:8px!important;
    bottom:auto!important;
    justify-content:center!important;
    border-radius:18px!important;
  }
}


/* V11.2 Clean app flow */
#home .dashboard-grid,
#home .dash-panel,
#home #pricingModal,
#home #dashboardModal,
#home .modal{
  display:none!important;
}
body.display-view .app-account-bar,
body.overlay-view .app-account-bar,
body.output-clean .app-account-bar,
body.display-view .clean-app-bar,
body.overlay-mode .clean-app-bar{
  display:none!important;
}
body.display-view #pricingModal,
body.display-view #dashboardModal,
body.display-view .dashboard-grid,
body.display-view .dash-panel,
body.overlay-view #pricingModal,
body.overlay-view #dashboardModal{
  display:none!important;
}
#display{
  max-width:none!important;
  padding:0!important;
}
#display .stage-screen{
  min-height:100vh!important;
}


/* V11.3 Professional App UI */
body{
  background:
    radial-gradient(circle at 18% 0%, rgba(47,109,246,.16), transparent 34%),
    radial-gradient(circle at 92% 6%, rgba(14,165,233,.10), transparent 30%),
    radial-gradient(circle at 80% 88%, rgba(34,197,94,.10), transparent 30%),
    #050b14!important;
  color:#f8fbff!important;
}

.professional-top-nav{
  position:sticky;
  top:0;
  z-index:9999;
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:22px;
  align-items:center;
  padding:20px clamp(18px,3vw,42px);
  background:rgba(3,10,22,.78);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(96,165,250,.16);
  box-shadow:0 12px 50px rgba(0,0,0,.26);
}

.pro-brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:260px;
}
.pro-logo-mark{
  width:46px;
  height:46px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#0b1424,#12294c);
  border:1px solid rgba(96,165,250,.28);
  color:#60a5fa;
  font-size:24px;
  box-shadow:0 0 30px rgba(47,109,246,.18);
}
.pro-brand-title{
  font-size:clamp(20px,2vw,30px);
  line-height:1;
  font-weight:1000;
  letter-spacing:.04em;
}
.pro-brand-title span{
  color:#5b8cff;
}
.pro-brand-sub{
  margin-top:6px;
  color:#aebbd0;
  font-size:14px;
  font-weight:700;
}

.pro-main-nav{
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px;
  border-radius:18px;
  background:rgba(8,17,31,.84);
  border:1px solid rgba(96,165,250,.18);
}
.pro-main-nav a{
  min-height:44px;
  display:flex;
  align-items:center;
  padding:0 20px;
  border-radius:14px;
  color:#dbeafe;
  text-decoration:none;
  font-weight:900;
  white-space:nowrap;
}
.pro-main-nav a.active{
  background:rgba(47,109,246,.16);
  color:#fff;
  box-shadow:inset 0 -2px 0 #2f6df6;
}

.pro-actions{
  display:flex;
  align-items:center;
  gap:12px;
}
.pro-upgrade-btn,
.pro-ghost-btn{
  min-height:48px!important;
  border-radius:16px!important;
  padding:0 22px!important;
  font-weight:1000!important;
}
.pro-upgrade-btn{
  background:linear-gradient(135deg,#2f6df6,#5b8cff)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.08)!important;
  box-shadow:0 14px 40px rgba(47,109,246,.35)!important;
}
.pro-ghost-btn{
  background:rgba(8,17,31,.70)!important;
  color:#fff!important;
  border:1px solid rgba(96,165,250,.20)!important;
}

/* hide old floating bars */
.app-account-bar,
.clean-app-bar,
.saas-bar{
  display:none!important;
}

/* app spacing */
#home,#controller{
  max-width:1440px!important;
  padding-top:28px!important;
}

/* controller page premium panel */
#controller{
  position:relative;
}
#controller > .topbar,
#controller .room-header{
  margin-top:0!important;
}
#controller .main-grid,
#controller .controller-grid,
#controller .control-grid{
  gap:22px!important;
}

/* make the main controller area look like a single polished card */
#controller .app-shell,
#controller .controller-shell{
  border-radius:26px!important;
}

/* Generic cards on app */
.card,
.display-card,
.share-card,
.panel,
.control-panel{
  border-radius:24px!important;
  border:1px solid rgba(96,165,250,.18)!important;
  background:linear-gradient(180deg,rgba(17,29,49,.94),rgba(7,17,32,.94))!important;
  box-shadow:0 24px 80px rgba(0,0,0,.22)!important;
}

/* timer display preview */
.display-card{
  overflow:hidden!important;
  box-shadow:inset 0 0 70px rgba(47,109,246,.05),0 18px 60px rgba(0,0,0,.28)!important;
}
#timer,
.timer-value{
  text-shadow:0 16px 55px rgba(0,0,0,.48)!important;
}

/* start/control buttons more premium */
button.primary,
.primary,
button[onclick="play()"],
button[onclick*="createRoom"],
button[onclick*="createEventRoom"]{
  background:linear-gradient(135deg,#2f6df6,#5b8cff)!important;
  border:none!important;
  box-shadow:0 12px 34px rgba(47,109,246,.24)!important;
}

button[onclick*="createRoom('countdown'"],
button[onclick*='createRoom("countdown"']{
  background:linear-gradient(135deg,#16a34a,#22c55e)!important;
}

button[onclick*="createEventRoom"]{
  background:linear-gradient(135deg,#7e22ce,#a855f7)!important;
}

button.secondary,
.secondary{
  background:rgba(17,29,49,.9)!important;
  border:1px solid rgba(96,165,250,.20)!important;
  color:#f8fbff!important;
}

/* Share card */
#qrcode{
  background:#fff!important;
  border-radius:16px!important;
  padding:10px!important;
  display:inline-block!important;
}
#shareLink{
  background:#06101f!important;
  border:1px solid rgba(96,165,250,.25)!important;
}

/* Remove visual clutter from home bottom old SaaS blocks */
.pricing-teaser,
.saas-core-section,
.dashboard-grid,
.dash-panel{
  display:none!important;
}

/* Footer polish */
.clean-app-footer{
  border-top:1px solid rgba(96,165,250,.12);
  margin-top:36px;
  padding-top:26px!important;
}

/* Display output remains clean */
body.display-view .professional-top-nav,
body.overlay-view .professional-top-nav,
body.output-clean .professional-top-nav,
body.overlay-mode .professional-top-nav{
  display:none!important;
}

/* Top Save Current Room accidental bar */
body > button,
body > a{
  font-family:inherit;
}
body > a[href="/pricing/"],
body > a[href="/dashboard/"],
body > a[href="/login/"]{
  display:none!important;
}

/* Button-like accidental top links cleanup */
body > a:first-child,
body > a:nth-child(2),
body > a:nth-child(3){
  display:none!important;
}

@media(max-width:1100px){
  .professional-top-nav{
    grid-template-columns:1fr;
    gap:14px;
  }
  .pro-main-nav{
    overflow:auto;
    justify-content:flex-start;
  }
  .pro-actions{
    justify-content:flex-start;
    flex-wrap:wrap;
  }
}

@media(max-width:700px){
  .professional-top-nav{
    padding:14px 12px;
  }
  .pro-brand-sub{
    display:none;
  }
  .pro-main-nav a{
    padding:0 14px;
    font-size:14px;
  }
  .pro-upgrade-btn,.pro-ghost-btn{
    min-height:42px!important;
    padding:0 14px!important;
  }
}


/* V12 Auth + Dashboard polish */
.auth-user-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#bfdbfe;
  font-weight:900;
  font-size:13px;
}
body.display-view .auth-user-chip,
body.overlay-view .auth-user-chip{
  display:none!important;
}


/* V12.1 Plan Guard */
.locked-plan-note{
  background:#0b1424;
  border:1px solid #facc15;
  color:#facc15;
  border-radius:14px;
  padding:12px;
  font-weight:900;
}


/* V12.2 Upgrade prompt system */
.upgrade-prompt-modal{
  position:fixed;
  inset:0;
  z-index:999999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(10px);
}
.upgrade-prompt-modal.hidden{display:none!important;}
.upgrade-prompt-card{
  width:min(520px,94vw);
  background:linear-gradient(180deg,#111d31,#08111f);
  border:1px solid rgba(96,165,250,.28);
  border-radius:28px;
  padding:30px;
  text-align:center;
  box-shadow:0 30px 110px rgba(0,0,0,.55);
  position:relative;
}
.upgrade-close{
  position:absolute;
  top:14px;
  right:14px;
  width:42px;
  height:42px;
  min-height:42px;
  border-radius:50%;
  background:#0b1424!important;
  color:#fff!important;
  border:1px solid #263a5c!important;
  font-size:24px;
}
.upgrade-icon{
  width:70px;
  height:70px;
  display:grid;
  place-items:center;
  margin:0 auto 14px;
  border-radius:24px;
  background:linear-gradient(135deg,#2f6df6,#5b8cff);
  font-size:34px;
  box-shadow:0 18px 48px rgba(47,109,246,.35);
}
.upgrade-prompt-card h2{
  font-size:clamp(26px,4vw,40px);
  margin:8px 0 10px;
}
.upgrade-prompt-card p{
  color:#aebbd0;
  line-height:1.6;
  margin:0 auto 18px;
}
.upgrade-benefits{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:20px 0;
}
.upgrade-benefits div{
  background:#0b1424;
  border:1px solid #263a5c;
  border-radius:14px;
  padding:12px;
  color:#dbeafe;
  font-weight:900;
}
.upgrade-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
@media(max-width:700px){
  .upgrade-benefits,.upgrade-actions{grid-template-columns:1fr;}
}
