:root{
  --bg:#050814;
  --bg2:#08111f;
  --panel:#0c1728;
  --panel2:#101d32;
  --card:rgba(15,27,46,.86);
  --card2:rgba(11,20,35,.92);
  --line:rgba(148,163,184,.16);
  --line2:rgba(125,92,255,.48);
  --text:#f8fafc;
  --muted:#a7b4cc;
  --muted2:#718096;
  --accent:#7c5cff;
  --accent2:#22d3ee;
  --accent3:#38f8b4;
  --danger:#fb7185;
  --ok:#4ade80;
  --shadow:0 24px 80px rgba(0,0,0,.48);
  --shadow2:0 14px 38px rgba(0,0,0,.36);
  --radius:22px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:
    radial-gradient(circle at 18% -8%,rgba(124,92,255,.26),transparent 32rem),
    radial-gradient(circle at 90% 5%,rgba(34,211,238,.18),transparent 28rem),
    linear-gradient(180deg,#050814 0%,#08111f 48%,#050814 100%);
  overflow-x:hidden;
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg,rgba(255,255,255,.045),transparent 18%),
    radial-gradient(circle at 50% 0,rgba(255,255,255,.04),transparent 34rem);
  opacity:.85;
}
body:after{
  content:"";
  position:fixed;
  inset:auto -8rem -12rem auto;
  width:34rem;
  height:34rem;
  border-radius:999px;
  background:radial-gradient(circle,rgba(124,92,255,.18),transparent 68%);
  filter:blur(10px);
  pointer-events:none;
}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
.hidden{display:none!important}
.ambient{
  position:fixed;
  width:420px;
  height:420px;
  left:-140px;
  top:36%;
  border-radius:999px;
  background:radial-gradient(circle,rgba(34,211,238,.14),transparent 66%);
  filter:blur(10px);
  pointer-events:none;
}
.glass,.card,.player-card,.search-card{
  background:linear-gradient(180deg,var(--card),var(--card2));
  border:1px solid var(--line);
  box-shadow:var(--shadow2);
  backdrop-filter:blur(18px);
}
.site-header{
  position:sticky;
  top:0;
  z-index:10;
  width:min(1320px,calc(100% - 28px));
  margin:0 auto;
  padding:14px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.site-header:before{
  content:"";
  position:fixed;
  left:0;
  right:0;
  top:0;
  height:72px;
  background:linear-gradient(180deg,rgba(5,8,20,.92),rgba(5,8,20,.58),transparent);
  backdrop-filter:blur(18px);
  pointer-events:none;
  z-index:-1;
}
.site-header.compact{position:relative;padding-bottom:8px}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand-mark{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:46px;
  height:46px;
  border-radius:18px;
  color:#fff;
  font-weight:1000;
  background:
    radial-gradient(circle at 35% 28%,rgba(255,255,255,.36),transparent 24%),
    linear-gradient(135deg,var(--accent),#5eead4);
  box-shadow:0 18px 42px rgba(124,92,255,.34),inset 0 1px 0 rgba(255,255,255,.34);
}
.brand strong{
  display:block;
  letter-spacing:.02em;
  text-transform:uppercase;
  font-weight:950;
  font-size:15px;
}
.brand small{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.mini-link,.live-dot{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:9px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  color:#dce7ff;
  background:rgba(15,27,46,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  font-size:13px;
}
.mini-link:hover,.live-dot:hover{border-color:rgba(124,92,255,.44);background:rgba(23,37,61,.82)}
.live-dot i{width:8px;height:8px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 6px rgba(74,222,128,.12),0 0 20px rgba(74,222,128,.65)}
.hero{
  position:relative;
  z-index:1;
  width:min(1320px,calc(100% - 28px));
  margin:18px auto 22px;
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(310px,.62fr);
  gap:18px;
  align-items:stretch;
}
.hero-copy,.search-card{border-radius:30px}
.hero-copy{
  min-height:360px;
  padding:42px clamp(24px,5vw,66px);
  border:1px solid rgba(148,163,184,.16);
  background:
    linear-gradient(90deg,rgba(5,8,20,.92) 0%,rgba(5,8,20,.72) 48%,rgba(5,8,20,.22) 100%),
    radial-gradient(circle at 83% 35%,rgba(124,92,255,.35),transparent 28rem),
    linear-gradient(135deg,#111c32,#121a2d 52%,#0b1220);
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
}
.hero-copy:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(115deg,transparent 0 52%,rgba(255,255,255,.08) 52% 53%,transparent 53% 100%),
    radial-gradient(circle at 75% 18%,rgba(34,211,238,.28),transparent 14rem);
  pointer-events:none;
}
.hero-copy:after{
  content:"☁";
  position:absolute;
  right:clamp(18px,5vw,70px);
  bottom:18px;
  font-size:clamp(110px,15vw,210px);
  line-height:1;
  color:rgba(255,255,255,.06);
  filter:drop-shadow(0 24px 50px rgba(124,92,255,.26));
  pointer-events:none;
}
.eyebrow{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 14px;
  color:#c9d4ff;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.13em;
  font-size:12px;
}
.eyebrow:before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  box-shadow:0 0 18px rgba(124,92,255,.88);
}
.eyebrow.small{font-size:11px;margin-bottom:9px;color:#b7c5df}
.hero h1,.watch-shell h1{
  position:relative;
  z-index:1;
  font-size:clamp(42px,6vw,88px);
  line-height:.9;
  margin:0;
  letter-spacing:-.07em;
  max-width:920px;
}
.watch-shell h1{font-size:clamp(24px,4vw,48px);letter-spacing:-.045em;line-height:1.03}
.subtitle,.toolbar p,.media-card p,.folder-card p,.player-head p,.search-help,.alert.soft{color:var(--muted);line-height:1.65}
.subtitle{position:relative;z-index:1;max-width:650px;font-size:17px;margin:18px 0 0}
.hero-stats{
  position:relative;
  z-index:1;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:34px;
}
.hero-stats div{
  min-width:118px;
  padding:14px 16px;
  border-radius:19px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.07);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.hero-stats strong{display:block;font-size:25px;line-height:1}.hero-stats span{display:block;margin-top:6px;color:#bcc8da;font-size:13px}
.search-card{
  position:relative;
  padding:24px;
  align-self:stretch;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  background:
    radial-gradient(circle at 82% 10%,rgba(34,211,238,.20),transparent 14rem),
    linear-gradient(180deg,rgba(15,27,46,.9),rgba(8,16,29,.92));
  overflow:hidden;
}
.search-card:before{
  content:"Stream";
  position:absolute;
  left:18px;
  top:8px;
  color:rgba(255,255,255,.035);
  font-size:76px;
  font-weight:1000;
  letter-spacing:-.08em;
  pointer-events:none;
}
.search-card label{display:block;margin-bottom:12px;color:#ecf4ff;font-weight:850;position:relative}.search-row{display:flex;gap:10px;position:relative}.search-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px;position:relative}.search-buttons button{flex:1;min-width:132px}.search-row input,.copy-field input{
  width:100%;
  background:rgba(4,9,20,.9);
  border:1px solid rgba(148,163,184,.2);
  color:var(--text);
  padding:14px 16px;
  border-radius:16px;
  outline:none;
  min-width:0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.search-row input::placeholder,.mini-search input::placeholder{color:#6d7c96}
.search-row input:focus,.copy-field input:focus{border-color:rgba(124,92,255,.72);box-shadow:0 0 0 4px rgba(124,92,255,.15)}
.search-help{font-size:13px;margin-top:14px;position:relative}.search-help a{color:#d8d2ff}
button,.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:0;
  border-radius:16px;
  padding:12px 16px;
  background:linear-gradient(135deg,var(--accent),#4fd1ff);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  white-space:nowrap;
  box-shadow:0 12px 26px rgba(124,92,255,.22),inset 0 1px 0 rgba(255,255,255,.24);
  transition:.18s transform,.18s filter,.18s border-color,.18s background;
}
button:hover,.button:hover{transform:translateY(-2px);filter:brightness(1.06)}
button:active,.button:active{transform:translateY(0)}
.button.ghost,.ghost{
  border:1px solid rgba(148,163,184,.18);
  background:rgba(15,27,46,.72);
  color:#e6edf8;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.button.ghost:hover,.ghost:hover{border-color:rgba(124,92,255,.44);background:rgba(30,42,68,.86)}
.container{position:relative;z-index:1;width:min(1320px,calc(100% - 28px));margin:0 auto 64px}.container.narrow{width:min(760px,calc(100% - 28px));padding-top:40px}
.drive-tabs{
  display:flex;
  gap:10px;
  overflow:auto;
  padding:4px 0 14px;
  margin-bottom:16px;
  scrollbar-width:thin;
}
.drive-tabs::-webkit-scrollbar{height:6px}.drive-tabs::-webkit-scrollbar-thumb{background:rgba(148,163,184,.28);border-radius:999px}
.tab{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:11px 16px;
  border:1px solid rgba(148,163,184,.16);
  border-radius:999px;
  color:#bdc9dc;
  background:rgba(15,27,46,.76);
  white-space:nowrap;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.tab.active{background:linear-gradient(135deg,rgba(124,92,255,.26),rgba(34,211,238,.14));border-color:rgba(124,92,255,.5);color:#fff;box-shadow:0 16px 34px rgba(124,92,255,.14)}
.toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:18px 0 24px;
  padding:20px;
  border-radius:26px;
  background:linear-gradient(180deg,rgba(15,27,46,.86),rgba(9,17,31,.9));
}
.toolbar h2{margin:0;font-size:clamp(24px,3vw,40px);letter-spacing:-.04em}.toolbar p{margin:8px 0 0}.toolbar-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.mini-search{display:flex;gap:8px;min-width:min(100%,380px)}.mini-search input{width:100%;min-width:0;background:rgba(4,9,20,.86);border:1px solid rgba(148,163,184,.18);color:var(--text);padding:12px 14px;border-radius:15px;outline:none}.mini-search input:focus{border-color:rgba(124,92,255,.68);box-shadow:0 0 0 4px rgba(124,92,255,.12)}.mini-search button{padding:11px 14px;border-radius:15px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:30px 0 14px}.section-head h3{margin:0;font-size:23px;letter-spacing:-.025em}.section-head span{color:#c4cde0;font-size:13px;border:1px solid rgba(148,163,184,.16);border-radius:999px;padding:7px 10px;background:rgba(15,27,46,.75)}
.grid{display:grid;gap:16px}.folders{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}.media-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.card{border-radius:var(--radius);overflow:hidden;transition:.2s transform,.2s border-color,.2s background,.2s box-shadow}.card:hover{transform:translateY(-5px);border-color:var(--line2);background:linear-gradient(180deg,rgba(23,36,60,.96),rgba(12,22,39,.96));box-shadow:0 22px 58px rgba(0,0,0,.42),0 0 0 1px rgba(124,92,255,.18)}.folder-card{display:flex;align-items:center;gap:16px;padding:17px;background:linear-gradient(135deg,rgba(15,27,46,.88),rgba(9,17,31,.92))}.icon{width:54px;height:54px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(135deg,rgba(124,92,255,.28),rgba(34,211,238,.16));color:#e6e2ff;font-size:25px;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}.folder-card h4,.media-card h4{margin:0;font-size:15px;line-height:1.32}.folder-card p,.media-card p{margin:7px 0 0;font-size:12.5px}.arrow{margin-left:auto;color:#93a1b8;font-size:28px}.media-card{position:relative;background:linear-gradient(180deg,rgba(14,25,43,.96),rgba(8,15,28,.96))}.thumb{height:292px;background:linear-gradient(135deg,rgba(124,92,255,.24),rgba(34,211,238,.12) 56%,rgba(56,248,180,.08));display:grid;place-items:center;color:rgba(255,255,255,.84);font-size:48px;position:relative;overflow:hidden}.thumb:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 0 52%,rgba(0,0,0,.58) 100%);z-index:1;pointer-events:none}.thumb:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at top right,rgba(255,255,255,.22),transparent 44%);pointer-events:none}.thumb img{width:100%;height:100%;object-fit:cover;transition:.35s transform}.media-card:hover .thumb img{transform:scale(1.045)}.thumb span{position:relative;z-index:2;width:72px;height:72px;border-radius:999px;display:grid;place-items:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(12px)}.thumb b{position:absolute;left:12px;top:12px;z-index:3;font-size:10.5px;text-transform:uppercase;letter-spacing:.1em;border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:6px 9px;background:rgba(5,8,20,.62);backdrop-filter:blur(12px);color:#fff}.media-body{padding:14px}.media-body h4{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.actions{display:flex;gap:8px;margin-top:15px;flex-wrap:wrap}.actions .button,.actions button{padding:9px 12px;border-radius:13px;font-size:12.5px;flex:1;min-width:max-content}.alert,.empty{border:1px solid rgba(148,163,184,.18);background:rgba(15,27,46,.82);padding:16px;border-radius:20px;color:#e2e8f0}.alert.danger{color:#ffd6df;border-color:rgba(251,113,133,.34);background:rgba(251,113,133,.09)}.alert.soft{margin-top:16px;font-size:14px}.alert code{background:rgba(4,9,20,.86);padding:2px 6px;border-radius:8px;color:#e4e9ff}.pagination{text-align:center;margin-top:30px}.footer{position:relative;z-index:1;text-align:center;color:#7f8da6;padding:38px 16px;border-top:1px solid rgba(148,163,184,.12)}
.watch-page{
  background:
    radial-gradient(circle at 16% -6%,rgba(124,92,255,.28),transparent 34rem),
    radial-gradient(circle at 86% 0,rgba(34,211,238,.16),transparent 26rem),
    linear-gradient(180deg,#050814,#08111f 55%,#050814);
}
.watch-shell{position:relative;z-index:1;width:min(1180px,calc(100% - 28px));margin:0 auto;padding:18px 0 56px}.player-card{padding:20px;border-radius:30px;background:linear-gradient(180deg,rgba(15,27,46,.9),rgba(7,13,25,.94));box-shadow:var(--shadow)}.player-head{display:flex;flex-direction:column;gap:16px;align-items:stretch;margin-bottom:18px}.player-head>div:first-child{min-width:0}.player-head h1{max-width:100%;overflow-wrap:anywhere;word-break:break-word;margin-bottom:8px}.player-head p{margin:0}.player-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-start;padding:12px;border:1px solid rgba(148,163,184,.14);border-radius:20px;background:rgba(5,8,20,.36);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}.player-actions .button,.player-actions button{min-width:138px;flex:0 1 auto}.video-frame{overflow:hidden;border-radius:24px;background:#000;border:1px solid rgba(255,255,255,.13);aspect-ratio:16/9;box-shadow:0 30px 96px rgba(0,0,0,.54),0 0 0 1px rgba(124,92,255,.12)}.fallback-video,.main-video{width:100%;height:100%;display:block;background:#000}.player-status{margin-top:12px;padding:13px 15px;border-radius:17px;border:1px solid rgba(148,163,184,.16);background:rgba(15,27,46,.72);color:var(--muted);font-size:14px}.player-status.is-error{color:#ffd6df;border-color:rgba(251,113,133,.35);background:rgba(251,113,133,.08)}.url-panel{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}.url-row{border:1px solid rgba(148,163,184,.16);background:rgba(15,27,46,.72);border-radius:22px;padding:14px}.url-row label{display:block;color:#edf4ff;font-size:13px;font-weight:850;margin-bottom:10px}.copy-field{display:flex;gap:10px}.copy-field input{font-size:13px;color:#dbeafe}.copy-field .button{padding:11px 14px}.url-note{display:block;margin-top:10px;color:var(--muted);font-size:12px;line-height:1.45}.toast{position:fixed;z-index:50;left:50%;bottom:22px;transform:translate(-50%,18px);opacity:0;pointer-events:none;background:rgba(9,17,31,.96);border:1px solid rgba(124,92,255,.45);box-shadow:0 18px 50px rgba(0,0,0,.44);padding:12px 16px;border-radius:999px;color:#f2f7ff;font-weight:800;font-size:14px;transition:.2s ease}.toast.show{opacity:1;transform:translate(-50%,0)}.checklist{padding:14px}.check-row{display:flex;justify-content:space-between;gap:14px;padding:14px;border-bottom:1px solid rgba(148,163,184,.14)}.check-row:last-child{border-bottom:0}.ok{color:var(--ok)}.bad{color:var(--danger)}
@media(max-width:1100px){.media-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}.thumb{height:250px}}

@media(min-width:901px){.player-head{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}.player-head>div:first-child{width:100%}.player-head h1{line-height:1.14;margin-bottom:10px;padding-right:0}}
@media(max-width:900px){.site-header{position:relative}.site-header:before{display:none}.hero{grid-template-columns:1fr}.hero-copy{min-height:320px}.search-card{align-self:auto}.url-panel{grid-template-columns:1fr}.player-actions{justify-content:stretch}.player-actions .button,.player-actions button{flex:1 1 calc(33.333% - 10px);min-width:150px}.thumb{height:230px}}
@media(max-width:680px){body{background:linear-gradient(180deg,#050814,#08111f 50%,#050814)}.search-buttons,.mini-search{flex-direction:column}.site-header{align-items:flex-start}.header-actions{display:none}.hero{width:calc(100% - 22px);margin-top:8px}.hero-copy{padding:30px 20px;border-radius:26px;min-height:280px}.hero h1{font-size:42px}.watch-shell h1{font-size:clamp(22px,7vw,34px);line-height:1.12}.subtitle{font-size:15px}.hero-stats div{flex:1;min-width:94px}.search-row,.copy-field{flex-direction:column}.toolbar{align-items:stretch;flex-direction:column}.media-grid,.folders{grid-template-columns:1fr}.thumb{height:230px}.actions .button,.actions button{flex:1}.player-actions{display:grid;grid-template-columns:1fr;gap:9px;padding:10px;border-radius:18px}.player-actions .button,.player-actions button{width:100%;min-width:0;flex:none;padding:11px 12px}.video-frame{border-radius:18px}.player-card{padding:14px;border-radius:24px}.site-header,.container,.watch-shell{width:calc(100% - 22px)}.mini-link{font-size:12px}.brand strong{font-size:14px}.url-row{padding:12px}.toast{width:calc(100% - 32px);text-align:center}}

.player-actions.below-player{margin-top:16px;justify-content:center}.player-actions.below-player .button,.player-actions.below-player button{min-width:150px}
@media(min-width:901px){.player-actions.below-player{justify-content:center;margin-top:18px;margin-bottom:4px;padding:14px 16px}.player-actions.below-player .button,.player-actions.below-player button{flex:0 0 auto}}


/* Login UI Desktop & Mobile */
.login-page{min-height:100vh;overflow-x:hidden}.login-shell{position:relative;z-index:1;width:min(1120px,calc(100% - 28px));min-height:100vh;margin:0 auto;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.72fr);gap:22px;align-items:center;padding:34px 0}.login-visual,.login-card{position:relative;overflow:hidden;border-radius:34px;background:linear-gradient(180deg,rgba(15,27,46,.88),rgba(7,13,25,.95));box-shadow:var(--shadow)}.login-visual{min-height:560px;padding:42px;display:flex;flex-direction:column;justify-content:flex-end}.login-visual:before{content:"";position:absolute;inset:-30%;background:radial-gradient(circle at 18% 10%,rgba(124,92,255,.38),transparent 28%),radial-gradient(circle at 78% 18%,rgba(34,211,238,.26),transparent 32%),radial-gradient(circle at 70% 82%,rgba(56,248,180,.16),transparent 34%);pointer-events:none}.login-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 0 48%,rgba(5,8,20,.72) 100%),repeating-linear-gradient(90deg,rgba(255,255,255,.035) 0 1px,transparent 1px 78px);pointer-events:none}.login-visual>*{position:relative;z-index:1}.login-brand-mark{width:88px;height:88px;border-radius:28px;display:grid;place-items:center;margin-bottom:auto;background:linear-gradient(135deg,var(--primary),var(--cyan));box-shadow:0 20px 70px rgba(34,211,238,.2),inset 0 1px 0 rgba(255,255,255,.25);font-size:36px;color:#fff}.login-visual h1{margin:6px 0 12px;font-size:clamp(44px,7vw,84px);line-height:.92;letter-spacing:-.07em}.login-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:28px}.login-feature-grid div{border:1px solid rgba(148,163,184,.16);border-radius:18px;padding:14px;background:rgba(5,8,20,.36);backdrop-filter:blur(14px)}.login-feature-grid b{display:block;color:#fff;font-size:14px}.login-feature-grid span{display:block;color:var(--muted);font-size:12px;margin-top:5px}.login-card{padding:28px}.login-card:before{content:"";position:absolute;inset:-1px;background:radial-gradient(circle at top right,rgba(124,92,255,.18),transparent 42%);pointer-events:none}.login-card>*{position:relative;z-index:1}.login-card-head{display:flex;align-items:center;gap:14px;margin-bottom:24px}.login-card-head h2{margin:0;font-size:34px;letter-spacing:-.045em}.login-form{display:grid;gap:15px}.login-form label{display:grid;gap:9px;color:#edf4ff;font-weight:800;font-size:13px}.login-form input{width:100%;min-height:52px;border:1px solid rgba(148,163,184,.18);border-radius:17px;background:rgba(4,9,20,.72);color:var(--text);padding:0 15px;outline:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}.login-form input:focus{border-color:rgba(34,211,238,.62);box-shadow:0 0 0 4px rgba(34,211,238,.1),inset 0 1px 0 rgba(255,255,255,.05)}.login-submit{width:100%;min-height:54px;margin-top:6px;border-radius:18px;font-size:15px;font-weight:950}.login-help{margin:18px 0 0;color:var(--muted);font-size:12.5px;line-height:1.55}.login-help code{background:rgba(4,9,20,.82);border:1px solid rgba(148,163,184,.14);border-radius:8px;padding:2px 6px;color:#e4e9ff}.login-alert{margin-bottom:15px}.compact-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:900px){.login-shell{grid-template-columns:1fr;align-items:start;padding:20px 0 34px}.login-visual{min-height:300px;padding:28px;border-radius:28px}.login-brand-mark{width:66px;height:66px;border-radius:22px;font-size:28px}.login-visual h1{font-size:clamp(38px,12vw,62px)}.login-card{padding:22px;border-radius:28px}.login-feature-grid{grid-template-columns:1fr 1fr 1fr;margin-top:20px}.compact-actions{width:100%;justify-content:space-between}}
@media(max-width:560px){.login-shell{width:calc(100% - 22px);gap:14px}.login-visual{min-height:245px;padding:22px}.login-feature-grid{grid-template-columns:1fr;gap:8px}.login-feature-grid div{padding:11px 12px}.login-card-head h2{font-size:29px}.login-card{padding:18px}.login-form input,.login-submit{min-height:50px;border-radius:15px}.login-help{font-size:12px}.compact-actions{gap:8px}.compact-actions .mini-link{flex:1;text-align:center}}


/* Login layout fixed: clean desktop + mobile */
body.login-page{
  min-height:100svh;
  display:block;
  overflow-x:hidden;
  background:
    radial-gradient(circle at 12% 10%,rgba(124,92,255,.24),transparent 30rem),
    radial-gradient(circle at 88% 20%,rgba(34,211,238,.16),transparent 28rem),
    linear-gradient(180deg,#050814 0%,#08111f 52%,#050814 100%);
}
body.login-page .ambient{display:block;opacity:.9}
.login-shell{
  width:min(1120px,calc(100% - 32px))!important;
  min-height:100svh!important;
  margin:0 auto!important;
  padding:32px 0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(360px,430px)!important;
  gap:24px!important;
  align-items:center!important;
}
.login-visual,
.login-card{
  min-width:0!important;
  border:1px solid rgba(148,163,184,.18)!important;
  border-radius:30px!important;
  background:linear-gradient(180deg,rgba(15,27,46,.88),rgba(7,13,25,.96))!important;
  box-shadow:0 28px 84px rgba(0,0,0,.42)!important;
  backdrop-filter:blur(18px)!important;
}
.login-visual{
  min-height:520px!important;
  padding:34px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  gap:24px!important;
}
.login-visual .eyebrow{margin:0 0 10px!important}
.login-visual h1{
  margin:0 0 12px!important;
  max-width:680px!important;
  font-size:clamp(38px,5.6vw,76px)!important;
  line-height:.96!important;
  letter-spacing:-.065em!important;
  overflow-wrap:anywhere!important;
}
.login-visual .subtitle{
  max-width:560px!important;
  margin:0!important;
  font-size:16px!important;
  line-height:1.65!important;
  color:#cbd5e1!important;
}
.login-brand-mark{
  width:78px!important;
  height:78px!important;
  border-radius:24px!important;
  margin:0!important;
  flex:0 0 auto!important;
}
.login-feature-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  margin:0!important;
}
.login-feature-grid div{
  min-width:0!important;
  padding:14px!important;
  border-radius:18px!important;
  background:rgba(5,8,20,.42)!important;
}
.login-feature-grid b,
.login-feature-grid span{
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.login-card{
  width:100%!important;
  max-width:430px!important;
  justify-self:end!important;
  padding:28px!important;
  overflow:hidden!important;
}
.login-card-head{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  margin:0 0 22px!important;
}
.login-card-head .brand-mark{
  width:48px!important;
  height:48px!important;
  border-radius:17px!important;
}
.login-card-head h2{
  margin:0!important;
  font-size:32px!important;
  line-height:1!important;
}
.login-card-head .eyebrow.small{margin:0 0 5px!important;font-size:11px!important}
.login-form{
  display:grid!important;
  gap:15px!important;
  width:100%!important;
}
.login-form label{
  display:grid!important;
  gap:8px!important;
  width:100%!important;
  margin:0!important;
}
.login-form label span{
  color:#eaf2ff!important;
  font-size:13px!important;
  font-weight:900!important;
}
.login-form input{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  height:52px!important;
  min-height:52px!important;
  border-radius:16px!important;
  border:1px solid rgba(148,163,184,.22)!important;
  background:rgba(4,9,20,.72)!important;
  color:#f8fafc!important;
  padding:0 15px!important;
  outline:none!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
}
.login-form input::placeholder{color:#76869f!important}
.login-form input:focus{
  border-color:rgba(34,211,238,.68)!important;
  box-shadow:0 0 0 4px rgba(34,211,238,.12),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
.login-submit{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:54px!important;
  min-height:54px!important;
  margin:6px 0 0!important;
  border:0!important;
  border-radius:17px!important;
  cursor:pointer!important;
  color:#ffffff!important;
  font-weight:950!important;
  letter-spacing:.01em!important;
  background:linear-gradient(135deg,var(--accent),var(--accent2))!important;
  box-shadow:0 18px 44px rgba(34,211,238,.16),0 14px 34px rgba(124,92,255,.18)!important;
}
.login-submit:hover{filter:brightness(1.06)!important;transform:translateY(-1px)!important}
.login-help{
  margin:16px 0 0!important;
  color:#a7b4cc!important;
  font-size:12.5px!important;
  line-height:1.55!important;
  overflow-wrap:anywhere!important;
}
.login-alert{
  margin:0 0 15px!important;
  border-radius:16px!important;
}

@media(max-width:900px){
  .login-shell{
    width:min(560px,calc(100% - 24px))!important;
    min-height:100svh!important;
    padding:18px 0 26px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    gap:14px!important;
  }
  .login-visual,
  .login-card{
    width:100%!important;
    max-width:none!important;
    justify-self:auto!important;
    border-radius:24px!important;
  }
  .login-visual{
    min-height:auto!important;
    padding:22px!important;
    gap:18px!important;
  }
  .login-brand-mark{
    width:58px!important;
    height:58px!important;
    border-radius:19px!important;
    font-size:25px!important;
  }
  .login-visual h1{
    font-size:clamp(32px,9vw,48px)!important;
    line-height:1!important;
    letter-spacing:-.055em!important;
  }
  .login-visual .subtitle{
    font-size:14px!important;
    line-height:1.55!important;
  }
  .login-feature-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .login-feature-grid div{padding:10px!important;border-radius:14px!important}
  .login-feature-grid b{font-size:12.5px!important}
  .login-feature-grid span{font-size:10.8px!important;line-height:1.35!important}
  .login-card{padding:20px!important}
}

@media(max-width:520px){
  .login-shell{
    width:calc(100% - 20px)!important;
    padding:12px 0 18px!important;
    justify-content:flex-start!important;
  }
  .login-visual{padding:18px!important}
  .login-card{padding:18px!important}
  .login-card-head{gap:12px!important;margin-bottom:18px!important}
  .login-card-head .brand-mark{width:42px!important;height:42px!important;border-radius:15px!important}
  .login-card-head h2{font-size:28px!important}
  .login-feature-grid{grid-template-columns:1fr!important}
  .login-feature-grid div{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
  .login-form{gap:13px!important}
  .login-form input,.login-submit{height:50px!important;min-height:50px!important;border-radius:15px!important}
  .login-help{font-size:12px!important}
}


/* Premium centered login redesign */
body.login-premium-center{
  min-height:100svh!important;
  display:block!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 50% -10%,rgba(124,92,255,.30),transparent 32rem),
    radial-gradient(circle at 100% 18%,rgba(34,211,238,.18),transparent 26rem),
    radial-gradient(circle at 0% 88%,rgba(56,248,180,.12),transparent 30rem),
    linear-gradient(135deg,#030611 0%,#08111f 52%,#02040c 100%)!important;
}
body.login-premium-center:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(rgba(255,255,255,.026) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.026) 1px,transparent 1px);
  background-size:54px 54px;
  mask-image:radial-gradient(circle at center,#000 0 50%,transparent 78%);
  opacity:.55;
}
.login-premium-center .ambient{
  display:block!important;
  opacity:.85!important;
}
.login-orb{
  position:fixed;
  z-index:0;
  border-radius:999px;
  filter:blur(20px);
  pointer-events:none;
  opacity:.72;
}
.login-orb.orb-one{
  width:210px;
  height:210px;
  left:10%;
  top:16%;
  background:rgba(124,92,255,.22);
}
.login-orb.orb-two{
  width:260px;
  height:260px;
  right:8%;
  bottom:12%;
  background:rgba(34,211,238,.14);
}
.login-orb.orb-three{
  width:160px;
  height:160px;
  left:58%;
  top:10%;
  background:rgba(56,248,180,.10);
}
.login-center-shell{
  position:relative;
  z-index:2;
  width:100%;
  min-height:100svh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.login-center-card{
  position:relative;
  width:min(100%,460px)!important;
  max-width:460px!important;
  min-width:0!important;
  margin:auto!important;
  padding:28px!important;
  border-radius:34px!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.14)!important;
  background:
    linear-gradient(180deg,rgba(17,29,52,.84),rgba(5,10,22,.94))!important;
  box-shadow:
    0 34px 110px rgba(0,0,0,.58),
    0 0 0 1px rgba(124,92,255,.10),
    inset 0 1px 0 rgba(255,255,255,.10)!important;
  backdrop-filter:blur(24px)!important;
}
.login-center-card:before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(circle at 50% 0%,rgba(124,92,255,.28),transparent 36%),
    radial-gradient(circle at 100% 18%,rgba(34,211,238,.16),transparent 36%);
  pointer-events:none;
}
.login-center-card:after{
  content:"";
  position:absolute;
  left:18%;
  right:18%;
  top:0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(34,211,238,.75),rgba(124,92,255,.75),transparent);
  pointer-events:none;
}
.login-center-card>*{
  position:relative;
  z-index:1;
}
.login-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:20px;
  color:#9fb0cb;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
}
.login-home-link{
  color:#eff6ff;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.login-home-link:before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  box-shadow:0 0 18px rgba(34,211,238,.75);
}
.login-logo-wrap{
  position:relative;
  width:102px;
  height:102px;
  margin:0 auto 18px;
  display:grid;
  place-items:center;
}
.login-brand-mark.premium{
  position:relative;
  z-index:2;
  width:76px!important;
  height:76px!important;
  margin:0!important;
  border-radius:26px!important;
  display:grid!important;
  place-items:center!important;
  color:#fff!important;
  font-size:31px!important;
  background:linear-gradient(135deg,#7c5cff 0%,#22d3ee 55%,#38f8b4 100%)!important;
  box-shadow:
    0 24px 64px rgba(34,211,238,.22),
    0 16px 42px rgba(124,92,255,.24),
    inset 0 1px 0 rgba(255,255,255,.28)!important;
}
.login-ring{
  position:absolute;
  inset:0;
  border-radius:34px;
  border:1px solid rgba(255,255,255,.16);
  background:linear-gradient(135deg,rgba(124,92,255,.10),rgba(34,211,238,.06));
  box-shadow:inset 0 0 28px rgba(124,92,255,.10);
  transform:rotate(10deg);
}
.login-title-block{
  text-align:center;
  margin:0 auto 20px;
}
.login-title-block .eyebrow{
  margin:0 0 8px!important;
  justify-content:center;
  color:#8be9ff!important;
}
.login-title-block h1{
  margin:0!important;
  color:#fff!important;
  font-size:clamp(32px,5vw,46px)!important;
  line-height:.98!important;
  letter-spacing:-.055em!important;
  overflow-wrap:anywhere!important;
}
.login-title-block p{
  margin:12px auto 0!important;
  max-width:370px;
  color:#b9c6db!important;
  font-size:14px!important;
  line-height:1.58!important;
}
.login-mini-features{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:0 0 18px;
}
.login-mini-features span{
  min-width:0;
  text-align:center;
  padding:10px 8px;
  border-radius:999px;
  color:#dbeafe;
  font-size:11px;
  font-weight:950;
  letter-spacing:.08em;
  border:1px solid rgba(148,163,184,.16);
  background:rgba(4,9,20,.42);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.login-center-form{
  gap:14px!important;
}
.login-field{
  display:grid!important;
  gap:8px!important;
  margin:0!important;
  color:#edf4ff!important;
}
.login-field>span{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  color:#eaf2ff!important;
  font-size:13px!important;
  font-weight:950!important;
}
.login-input-wrap{
  display:flex;
  align-items:center;
  gap:11px;
  width:100%;
  height:54px;
  border-radius:18px;
  padding:0 14px;
  border:1px solid rgba(148,163,184,.20);
  background:rgba(3,7,18,.62);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  transition:.18s ease;
}
.login-input-wrap:focus-within{
  border-color:rgba(34,211,238,.70);
  box-shadow:0 0 0 4px rgba(34,211,238,.12),inset 0 1px 0 rgba(255,255,255,.06);
  background:rgba(3,7,18,.76);
}
.login-input-wrap i{
  flex:0 0 auto;
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  font-style:normal;
  font-size:15px;
  opacity:.9;
}
.login-input-wrap input{
  height:100%!important;
  min-height:0!important;
  width:100%!important;
  min-width:0!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:#f8fafc!important;
  box-shadow:none!important;
  border-radius:0!important;
}
.login-input-wrap input:focus{
  box-shadow:none!important;
  border:0!important;
}
.premium-submit{
  position:relative;
  overflow:hidden;
  height:56px!important;
  margin-top:4px!important;
  border-radius:18px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  color:#fff!important;
  background:linear-gradient(135deg,#7c5cff 0%,#22d3ee 100%)!important;
  box-shadow:0 20px 52px rgba(34,211,238,.18),0 16px 40px rgba(124,92,255,.25)!important;
}
.premium-submit:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);
  transform:translateX(-120%);
  transition:.45s ease;
}
.premium-submit:hover:before{
  transform:translateX(120%);
}
.premium-submit span,
.premium-submit b{
  position:relative;
  z-index:1;
}
.premium-submit b{
  width:28px;
  height:28px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.16);
  font-size:18px;
}
.center-help{
  text-align:center!important;
  margin-top:16px!important;
}
.login-premium-center .login-alert{
  margin:0 0 15px!important;
  border-radius:17px!important;
  text-align:center;
}

@media(max-width:620px){
  body.login-premium-center{
    overflow:auto!important;
  }
  .login-center-shell{
    min-height:100svh;
    padding:16px 12px;
    align-items:center;
  }
  .login-center-card{
    width:100%!important;
    max-width:430px!important;
    padding:20px!important;
    border-radius:28px!important;
  }
  .login-topline{
    font-size:10px;
    letter-spacing:.08em;
    margin-bottom:17px;
  }
  .login-logo-wrap{
    width:86px;
    height:86px;
    margin-bottom:14px;
  }
  .login-brand-mark.premium{
    width:64px!important;
    height:64px!important;
    border-radius:22px!important;
    font-size:27px!important;
  }
  .login-title-block h1{
    font-size:clamp(29px,9.4vw,38px)!important;
  }
  .login-title-block p{
    font-size:13px!important;
    line-height:1.52!important;
  }
  .login-mini-features{
    gap:7px;
    margin-bottom:16px;
  }
  .login-mini-features span{
    padding:9px 6px;
    font-size:10px;
  }
  .login-input-wrap{
    height:52px;
    border-radius:16px;
  }
  .premium-submit{
    height:53px!important;
    border-radius:16px!important;
  }
  .center-help{
    font-size:11.5px!important;
  }
}

@media(max-width:380px){
  .login-center-shell{padding:10px}
  .login-center-card{padding:17px!important;border-radius:24px!important}
  .login-topline{display:none}
  .login-logo-wrap{width:78px;height:78px;margin-bottom:12px}
  .login-brand-mark.premium{width:58px!important;height:58px!important;border-radius:20px!important}
  .login-mini-features{grid-template-columns:1fr;}
}


/* Login centering + spacing refinement */
body.login-premium-center{
  overflow-x:hidden!important;
}
.login-center-shell{
  width:min(100%, 560px)!important;
  max-width:560px!important;
  margin:0 auto!important;
  padding:32px 18px!important;
  box-sizing:border-box!important;
}
.login-center-card{
  width:100%!important;
  max-width:100%!important;
  margin:0 auto!important;
  padding:30px 26px!important;
}
.login-title-block,
.login-center-form,
.center-help,
.login-mini-features,
.login-alert{
  width:100%!important;
  max-width:100%!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}
.login-field,
.login-input-wrap{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.login-input-wrap{
  padding-left:16px!important;
  padding-right:16px!important;
}
.login-input-wrap input{
  display:block!important;
}
.premium-submit{
  width:100%!important;
}
@media (min-width: 900px){
  .login-center-shell{
    width:min(100%, 600px)!important;
    max-width:600px!important;
    padding:40px 26px!important;
  }
  .login-center-card{
    padding:34px 30px!important;
    border-radius:36px!important;
  }
}
@media (max-width: 620px){
  .login-center-shell{
    width:100%!important;
    max-width:100%!important;
    padding:18px 14px 22px!important;
  }
  .login-center-card{
    width:100%!important;
    max-width:460px!important;
    padding:22px 18px!important;
    border-radius:26px!important;
  }
}
@media (max-width: 420px){
  .login-center-shell{
    padding:14px 12px 20px!important;
  }
  .login-center-card{
    padding:18px 15px!important;
    border-radius:22px!important;
  }
  .login-input-wrap{
    height:50px!important;
    border-radius:15px!important;
  }
  .premium-submit{
    height:50px!important;
    border-radius:15px!important;
  }
}


/* === Merged login UI from uploaded HTML, recolored to home page dark/cloud theme === */
.login-center-card{
  border-color:rgba(124,92,255,.24)!important;
}
.login-center-card .login-title-block h1{
  background:linear-gradient(135deg,#fff 0%,#c8d7ff 44%,#81f3ff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent!important;
}
.login-options{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:2px 0 4px;
  color:#c5d2e8;
  font-size:13px;
}
.login-options a{
  color:#8be9ff;
  font-weight:900;
  text-decoration:none;
}
.login-options a:hover{
  color:#dffbff;
  text-decoration:underline;
}
.remember-check{
  display:inline-flex!important;
  align-items:center!important;
  gap:9px!important;
  margin:0!important;
  cursor:pointer;
  user-select:none;
  color:#c5d2e8!important;
  font-weight:800!important;
}
.remember-check input{
  appearance:none;
  -webkit-appearance:none;
  width:18px!important;
  height:18px!important;
  min-height:18px!important;
  border-radius:6px!important;
  border:1px solid rgba(148,163,184,.34)!important;
  background:rgba(3,7,18,.62)!important;
  padding:0!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06)!important;
}
.remember-check input:checked{
  border-color:rgba(34,211,238,.86)!important;
  background:linear-gradient(135deg,var(--accent),var(--accent2))!important;
}
.remember-check input:checked:after{
  content:"✓";
  color:#fff;
  font-size:13px;
  font-weight:950;
  line-height:1;
}
.password-wrap{
  padding-right:8px!important;
}
.password-toggle{
  flex:0 0 auto;
  width:38px!important;
  height:38px!important;
  min-height:38px!important;
  padding:0!important;
  border:1px solid rgba(148,163,184,.18)!important;
  border-radius:13px!important;
  background:rgba(15,27,46,.78)!important;
  color:#e8f3ff!important;
  display:grid!important;
  place-items:center!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06)!important;
}
.password-toggle:hover{
  border-color:rgba(34,211,238,.55)!important;
  background:rgba(23,37,61,.9)!important;
  transform:none!important;
  filter:none!important;
}
.logout-trigger{
  cursor:pointer;
}
button.mini-link{
  border:1px solid var(--line);
}
.logout-modal{
  position:fixed;
  inset:0;
  z-index:120;
  display:grid;
  place-items:center;
  padding:18px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease, visibility .18s ease;
}
.logout-modal.show{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.logout-backdrop{
  position:absolute;
  inset:0;
  background:rgba(1,5,15,.66);
  backdrop-filter:blur(14px);
}
.logout-card{
  position:relative;
  z-index:1;
  width:min(100%,390px);
  padding:26px;
  border-radius:28px;
  text-align:center;
  transform:translateY(14px) scale(.96);
  transition:transform .2s ease;
  background:linear-gradient(180deg,rgba(17,29,52,.95),rgba(5,10,22,.98))!important;
  border-color:rgba(124,92,255,.28)!important;
  box-shadow:0 34px 100px rgba(0,0,0,.62),0 0 0 1px rgba(34,211,238,.10)!important;
}
.logout-modal.show .logout-card{
  transform:translateY(0) scale(1);
}
.logout-icon{
  width:58px;
  height:58px;
  margin:0 auto 14px;
  display:grid;
  place-items:center;
  border-radius:22px;
  background:linear-gradient(135deg,rgba(251,113,133,.22),rgba(124,92,255,.18));
  border:1px solid rgba(251,113,133,.22);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10);
  font-size:26px;
}
.logout-card h3{
  margin:0;
  color:#fff;
  font-size:22px;
  letter-spacing:-.025em;
}
.logout-card p{
  margin:10px auto 0;
  color:#b9c6db;
  font-size:14px;
  line-height:1.55;
}
.logout-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:22px;
}
.button.danger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  border-radius:15px;
  border:1px solid rgba(251,113,133,.34);
  color:#fff;
  background:linear-gradient(135deg,#fb7185,#f43f5e);
  box-shadow:0 18px 45px rgba(244,63,94,.18);
  font-weight:950;
}
@media(max-width:520px){
  .login-options{
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
  }
  .logout-actions{
    grid-template-columns:1fr;
  }
}

/* remove login bottom help spacing */
.login-center-form{margin-bottom:0!important;}


/* Login cleanup: remove extra top labels and tidy logo/name */
.login-topline,
.login-mini-features{display:none!important}
.tidy-logo-wrap{
  width:88px!important;
  height:88px!important;
  margin:0 auto 14px!important;
}
.tidy-logo-wrap .login-brand-mark.premium{
  width:68px!important;
  height:68px!important;
  border-radius:22px!important;
  font-size:28px!important;
}
.tidy-logo-wrap .login-ring{
  border-radius:28px!important;
  opacity:.9!important;
}
.tidy-title-block{
  margin:0 auto 18px!important;
  max-width:100%!important;
}
.tidy-title-block h1{
  font-size:clamp(30px,4vw,40px)!important;
  line-height:1.05!important;
  letter-spacing:-.04em!important;
  text-align:center!important;
  margin:0 auto!important;
}
.tidy-title-block p{
  max-width:330px!important;
  margin:10px auto 0!important;
  font-size:13px!important;
  line-height:1.5!important;
  color:#b8c5da!important;
}
.login-center-card{
  padding-top:26px!important;
}
@media (max-width:620px){
  .tidy-logo-wrap{
    width:80px!important;
    height:80px!important;
    margin-bottom:12px!important;
  }
  .tidy-logo-wrap .login-brand-mark.premium{
    width:60px!important;
    height:60px!important;
    border-radius:20px!important;
    font-size:25px!important;
  }
  .tidy-title-block h1{
    font-size:clamp(28px,8vw,34px)!important;
  }
  .tidy-title-block p{
    max-width:290px!important;
    font-size:12.5px!important;
  }
}


/* Mobile login optimization */
@media (max-width: 768px){
  body.login-premium-center{
    overflow-y:auto!important;
  }
  .login-orb.orb-one{left:-8%;top:8%;width:150px;height:150px;opacity:.55}
  .login-orb.orb-two{right:-10%;bottom:8%;width:170px;height:170px;opacity:.45}
  .login-orb.orb-three{left:58%;top:5%;width:100px;height:100px;opacity:.35}
  .login-center-shell{
    min-height:100svh!important;
    width:100%!important;
    max-width:100%!important;
    padding:16px 14px 24px!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
  }
  .login-center-card{
    width:100%!important;
    max-width:430px!important;
    margin:0 auto!important;
    padding:22px 18px!important;
    border-radius:24px!important;
  }
  .tidy-logo-wrap{
    width:74px!important;
    height:74px!important;
    margin:0 auto 12px!important;
  }
  .tidy-logo-wrap .login-brand-mark.premium{
    width:56px!important;
    height:56px!important;
    border-radius:18px!important;
    font-size:24px!important;
  }
  .tidy-logo-wrap .login-ring{border-radius:24px!important}
  .tidy-title-block{margin-bottom:16px!important}
  .tidy-title-block .eyebrow{
    font-size:11px!important;
    letter-spacing:.12em!important;
  }
  .tidy-title-block h1{
    font-size:clamp(26px,8vw,34px)!important;
    line-height:1.06!important;
  }
  .tidy-title-block p{
    font-size:12.5px!important;
    line-height:1.5!important;
    max-width:280px!important;
  }
  .login-center-form{gap:12px!important}
  .login-field{gap:7px!important}
  .login-field > span{
    font-size:12px!important;
  }
  .login-input-wrap{
    height:50px!important;
    border-radius:15px!important;
    padding:0 13px!important;
    gap:10px!important;
  }
  .login-input-wrap i{
    width:20px!important;
    height:20px!important;
    font-size:14px!important;
  }
  .login-input-wrap input{
    font-size:14px!important;
  }
  .password-toggle{
    width:34px!important;
    height:34px!important;
    min-height:34px!important;
    border-radius:11px!important;
  }
  .login-options{
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:9px!important;
    margin-top:2px!important;
  }
  .login-options a,
  .remember-check span{
    font-size:12.5px!important;
  }
  .premium-submit{
    height:50px!important;
    border-radius:15px!important;
    font-size:14px!important;
    margin-top:4px!important;
  }
  .premium-submit b{
    width:24px!important;
    height:24px!important;
    font-size:16px!important;
  }
}

@media (max-width: 420px){
  .login-center-shell{
    padding:12px 10px 18px!important;
  }
  .login-center-card{
    max-width:100%!important;
    padding:18px 14px!important;
    border-radius:20px!important;
  }
  .tidy-title-block h1{
    font-size:24px!important;
  }
  .tidy-title-block p{
    font-size:12px!important;
    max-width:250px!important;
  }
  .login-input-wrap{
    height:48px!important;
    padding:0 12px!important;
  }
  .premium-submit{
    height:48px!important;
  }
}


/* Logout modal mobile polish */
.logout-modal{
  -webkit-tap-highlight-color:transparent;
}
.logout-actions .button,
.logout-actions button{
  width:100%;
  text-align:center;
}
@media (max-width: 680px){
  .logout-modal{
    place-items:end center!important;
    padding:14px 12px calc(14px + env(safe-area-inset-bottom))!important;
  }
  .logout-backdrop{
    background:rgba(1,5,15,.72)!important;
    backdrop-filter:blur(18px)!important;
  }
  .logout-card{
    width:100%!important;
    max-width:420px!important;
    padding:22px 18px 18px!important;
    border-radius:26px!important;
    transform:translateY(34px) scale(.98)!important;
    background:linear-gradient(180deg,rgba(17,29,52,.98),rgba(4,8,19,.99))!important;
    box-shadow:0 -10px 80px rgba(0,0,0,.62),0 0 0 1px rgba(34,211,238,.12)!important;
  }
  .logout-modal.show .logout-card{
    transform:translateY(0) scale(1)!important;
  }
  .logout-icon{
    width:52px!important;
    height:52px!important;
    margin-bottom:12px!important;
    border-radius:18px!important;
    font-size:23px!important;
  }
  .logout-card h3{
    font-size:20px!important;
    line-height:1.18!important;
  }
  .logout-card p{
    max-width:300px!important;
    margin-top:9px!important;
    font-size:13px!important;
    line-height:1.5!important;
  }
  .logout-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    margin-top:18px!important;
  }
  .logout-actions .button,
  .logout-actions button,
  .logout-actions .button.danger{
    min-height:50px!important;
    width:100%!important;
    border-radius:16px!important;
    font-size:14px!important;
    font-weight:950!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  .logout-actions .button.ghost{
    background:rgba(15,27,46,.86)!important;
    border-color:rgba(148,163,184,.18)!important;
    color:#eaf2ff!important;
  }
  .logout-actions .button.danger{
    background:linear-gradient(135deg,#fb7185,#f43f5e)!important;
    border-color:rgba(251,113,133,.42)!important;
    box-shadow:0 16px 42px rgba(244,63,94,.22)!important;
  }
}
@media (max-width: 420px){
  .logout-modal{
    padding-left:10px!important;
    padding-right:10px!important;
  }
  .logout-card{
    max-width:100%!important;
    padding:20px 15px 15px!important;
    border-radius:23px!important;
  }
  .logout-icon{
    width:48px!important;
    height:48px!important;
    border-radius:17px!important;
  }
  .logout-card h3{
    font-size:19px!important;
  }
  .logout-card p{
    font-size:12.5px!important;
    max-width:270px!important;
  }
  .logout-actions .button,
  .logout-actions button,
  .logout-actions .button.danger{
    min-height:48px!important;
    border-radius:15px!important;
  }
}


/* Home page logout button */
.home-logout-area{
  margin-top:18px;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.home-logout-btn{
  min-width:132px;
  height:46px;
  border-radius:16px!important;
  font-size:14px;
  letter-spacing:.02em;
}
@media(max-width:680px){
  .home-logout-area{
    margin-top:16px;
    width:100%;
  }
  .home-logout-btn{
    width:100%;
    min-height:48px;
    border-radius:15px!important;
  }
  .site-header .header-actions{
    display:flex!important;
    width:100%;
    justify-content:space-between;
    margin-top:10px;
  }
  .site-header .header-actions .live-dot{
    display:none;
  }
}


/* Removed home check/logout buttons */
.home-logout-area,.home-logout-btn,.logout-trigger,.logout-modal{display:none!important;}


/* Home page mobile logo + logout button refinement */
.brand-copy{display:block;min-width:0}
.brand-copy strong,.brand-copy small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* restore home logout after previous removal */
.home-logout-area{display:flex!important;align-items:center;gap:10px;flex-wrap:wrap}
.home-logout-btn{display:inline-flex!important;align-items:center;justify-content:center}
@media(max-width:680px){
  .site-header{
    gap:12px!important;
    align-items:center!important;
  }
  .brand{
    min-width:0!important;
    width:100%!important;
  }
  .brand-mark{
    width:40px!important;
    height:40px!important;
    border-radius:15px!important;
    font-size:18px!important;
  }
  .brand-copy{
    min-width:0!important;
    max-width:calc(100vw - 90px)!important;
  }
  .brand strong{
    font-size:13px!important;
    line-height:1.15!important;
  }
  .brand small{
    font-size:10.5px!important;
    line-height:1.15!important;
    margin-top:3px!important;
  }
  .hero-copy{
    padding:28px 18px!important;
  }
  .home-logout-area{
    margin-top:14px!important;
    width:100%!important;
  }
  .home-logout-btn{
    width:100%!important;
    min-height:48px!important;
    border-radius:15px!important;
    font-size:14px!important;
  }
}
@media(max-width:400px){
  .brand-copy{
    max-width:calc(100vw - 84px)!important;
  }
  .brand strong{
    font-size:12.5px!important;
  }
  .brand small{
    font-size:10px!important;
  }
  .home-logout-btn{
    min-height:46px!important;
  }
}


/* FM Movie mobile name refinement */
.brand-copy{display:block;min-width:0}
.brand-copy strong,.brand-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hero-copy .eyebrow,.hero-copy h1,.hero-copy .subtitle{overflow-wrap:anywhere}
@media(max-width:680px){
  .site-header{
    align-items:center!important;
    gap:10px!important;
  }
  .brand{
    width:100%!important;
    min-width:0!important;
    gap:10px!important;
  }
  .brand-mark{
    width:40px!important;
    height:40px!important;
    border-radius:15px!important;
    font-size:18px!important;
  }
  .brand-copy{
    min-width:0!important;
    max-width:calc(100vw - 84px)!important;
  }
  .brand strong{
    font-size:13px!important;
    line-height:1.1!important;
    letter-spacing:.01em!important;
  }
  .brand small{
    font-size:10.5px!important;
    margin-top:3px!important;
    line-height:1.15!important;
  }
  .hero-copy{padding:28px 18px!important}
  .hero-copy .eyebrow{
    font-size:11px!important;
    margin-bottom:10px!important;
    letter-spacing:.12em!important;
  }
  .hero h1{
    font-size:34px!important;
    line-height:1.02!important;
    letter-spacing:-.045em!important;
    margin-bottom:10px!important;
  }
  .hero-copy .subtitle{
    font-size:13px!important;
    line-height:1.45!important;
    max-width:250px!important;
  }
}
@media(max-width:400px){
  .brand-copy{max-width:calc(100vw - 80px)!important}
  .brand strong{font-size:12px!important}
  .brand small{font-size:10px!important}
  .hero h1{font-size:30px!important}
  .hero-copy .subtitle{font-size:12px!important}
}
