
:root{
  --bg:#eef1f6;
  --bg-soft:#f6f8fc;
  --sidebar:#0f1420;
  --sidebar-2:#131a2a;
  --card:#ffffff;
  --line:#e5e9f2;
  --text:#0f172a;
  --muted:#6b7280;
  --blue:#4f6df5;
  --green:#22c55e;
  --orange:#fb923c;
  --cyan:#06b6d4;
  --red:#ef4444;
  --radius:14px;
  --shadow:0 8px 24px rgba(15,23,42,.08);
  font-synthesis: style;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* App layout */
.app{
  display:flex;
  min-height:100vh;
}
.sidebar{
  width:260px;
  /* Keep the sidebar from collapsing on pages with long URLs/tables */
  flex:0 0 260px;
  min-width:260px;
  background:linear-gradient(180deg,var(--sidebar),#0b1020 65%, #0a0f1c);
  color:#cbd5e1;
  padding:14px 12px;
  position:sticky;
  top:0;
  height:100vh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.sidebar .sidebar-brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800; letter-spacing:.02em; font-size:15px;
  padding:10px 12px; margin-bottom:8px;
}
.sidebar .sidebar-brand .logo{
  width:26px; height:26px; border-radius:6px;
  background:conic-gradient(from 120deg, #ff4d4d, #5b8cff, #7c3aed, #ff4d4d);
  box-shadow:0 0 0 2px rgba(255,255,255,.04) inset;
}
.sidebar-user{
  display:flex; flex-direction:column; align-items:center;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  padding:14px; border-radius:12px; margin:8px 8px 14px;
}
.sidebar-user .avatar{
  width:84px; height:84px; border-radius:50%;
  background:radial-gradient(circle at 30% 30%, #ffb703, #fb8500);
  display:grid; place-items:center; color:#0b1020; font-weight:900;
  margin-bottom:8px;
}
.sidebar-user .role{
  font-size:12px; letter-spacing:.18em; font-weight:800; color:#e2e8f0;
}

/* Sidebar groups (accordion) */
.nav-group{margin:0; padding:0;}
.nav-group-summary{
  list-style:none;
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:10px;
  color:#cbd5e1;
  cursor:pointer;
  user-select:none;
  font-weight:700;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.04em;
  opacity:.92;
}
.nav-group-summary::-webkit-details-marker{display:none;}
.nav-group-summary:hover{background:rgba(255,255,255,.06);}
.nav-group .chev{margin-left:auto; opacity:.85; transform:rotate(0deg); transition:transform .15s ease;}
.nav-group[open] .chev{transform:rotate(90deg);}
.nav-sub{display:flex; flex-direction:column; gap:4px; padding:4px 0 10px 18px;}
.nav-sub .nav-item{padding:9px 12px;}

.side-nav{display:flex; flex-direction:column; gap:6px; padding:0 8px 12px; flex:1; overflow:auto;}
.side-nav .nav-item{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:10px; color:#cbd5e1;
  text-decoration:none; font-weight:600; font-size:14px;
}
.side-nav .nav-item:hover{background:rgba(255,255,255,.06);}
.side-nav .nav-item.active{
  background:rgba(79,109,245,.18);
  color:#fff;
  box-shadow:0 0 0 1px rgba(79,109,245,.35) inset;
}
.side-nav .icon{
  width:20px; height:20px; display:inline-grid; place-items:center;
  font-size:16px; opacity:.95;
}

/* Main + header */
.main{
  flex:1;
  display:flex; flex-direction:column;
  /* Allow main content to shrink without forcing sidebar to shrink */
  min-width:0;
}
.header{
  height:56px;
  background:#0b1020;
  color:#e2e8f0;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 16px;
  box-shadow:0 2px 0 rgba(0,0,0,.2);
  position:sticky; top:0; z-index:5;
}
.header-right{display:flex; align-items:center; gap:12px; font-weight:700;}
.credits{
  display:flex; align-items:center; gap:6px;
  background:#0f172a; border:1px solid rgba(255,255,255,.08);
  padding:6px 10px; border-radius:999px; color:#e2e8f0; text-decoration:none; font-size:13px;
}
.credits .dot-green{
  width:8px; height:8px; border-radius:50%; background:#22c55e; box-shadow:0 0 8px rgba(34,197,94,.9);
}

.credits .dot-red{
  width:8px; height:8px; border-radius:50%; background:#ef4444; box-shadow:0 0 8px rgba(239,68,68,.9);
}
.user-menu{font-size:13px; opacity:.95}

/* Top-right dropdown (Change Password) */
.user-menu-wrap{position:relative; display:inline-flex; align-items:center;}
.user-menu{cursor:pointer; user-select:none; padding:6px 10px; border-radius:999px; background:#0f172a; border:1px solid rgba(255,255,255,.08); color:#e2e8f0;}
.user-menu:focus{outline:2px solid rgba(59,130,246,.6); outline-offset:2px;}
.user-dropdown{
  position:absolute; right:0; top:44px;
  width:260px; background:#fff; color:#0f172a;
  border:1px solid var(--line); border-radius:14px; box-shadow:0 18px 40px rgba(0,0,0,.18);
  padding:12px; display:none; z-index:20;
}
.user-dropdown.open{display:block;}
.ud-title{font-weight:900; font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:#475569; margin-bottom:10px;}
.ud-label{display:block; font-size:12px; color:#334155; margin:8px 0 4px;}
.ud-input{width:100%; padding:9px 10px; border:1px solid var(--line); border-radius:10px; background:#fff;}
.ud-input:focus{outline:2px solid rgba(59,130,246,.35); outline-offset:1px;}
.ud-btn{margin-top:10px; width:100%; padding:9px 10px; border-radius:12px; border:1px solid rgba(15,23,42,.2); background:#0f172a; color:#fff; cursor:pointer; font-weight:800;}
.ud-btn:hover{filter:brightness(1.05)}

/* Content container */
.container{
  padding:18px 18px 30px;
  min-width:0;
}

/* Prevent long URLs/text from blowing out the layout */
.container a,
.card a,
table a{
  overflow-wrap:anywhere;
  word-break:break-word;
}
.page{
  background:transparent;
}

/* Basic UI blocks */
h1,h2,h3{margin:0 0 10px}
h1{font-size:22px}
h2{font-size:18px; color:#0f172a}
.muted{color:var(--muted)}
.row{display:flex; gap:10px; flex-wrap:wrap; align-items:center}

.grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px}
.grid2{display:grid; grid-template-columns:2fr 1fr; gap:14px}
@media (max-width: 900px){ .grid2{grid-template-columns:1fr} }

/* Cards */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:var(--shadow);
}
.card .card-title{
  font-weight:800; font-size:13px; text-transform:uppercase; letter-spacing:.08em; color:#475569;
  margin-bottom:8px;
}

/* Stat tiles like screenshot */
.stats-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; margin-top:6px}
.stat{
  display:flex; gap:14px; align-items:center;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px; padding:16px;
  box-shadow:var(--shadow);
}
.stat .stat-icon{
  width:64px; height:64px; border-radius:14px; display:grid; place-items:center; color:white; font-size:28px; font-weight:900;
}
.stat.blue .stat-icon{background:linear-gradient(135deg,#5b8cff,#4f6df5)}
.stat.green .stat-icon{background:linear-gradient(135deg,#34d399,#22c55e)}
.stat.orange .stat-icon{background:linear-gradient(135deg,#fdba74,#fb923c)}
.stat.cyan .stat-icon{background:linear-gradient(135deg,#22d3ee,#06b6d4)}
.stat .stat-label{font-size:14px; color:#475569; font-weight:700}
.stat .stat-value{font-size:26px; font-weight:900; color:#0f172a}
.stat .stat-sub{font-size:12px; color:#64748b; margin-top:2px}

/* Forms + inputs */
input,select,textarea{
  width:100%; padding:9px 10px; border-radius:10px;
  border:1px solid var(--line); background:#fff; color:var(--text);
  outline:none; font-size:14px;
}

/* Don't force checkboxes/radios to full width (fixes alignment in lists/forms) */
input[type="checkbox"],
input[type="radio"]{
  width:auto;
  padding:0;
  border-radius:4px;
  box-shadow:none;
  background:transparent;
  accent-color: var(--blue);
}
textarea{min-height:110px; resize:vertical}
label{font-size:13px; font-weight:800; color:#334155; letter-spacing:.02em}
form .form-row{display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px; align-items:end}

/* Subscription editor (User Accounts) */
.sub-form{
  display:grid;
  grid-template-columns: minmax(260px, 2.2fr) minmax(140px, 1fr) minmax(220px, 1.3fr) minmax(220px, 1.3fr) minmax(170px, 1fr) minmax(170px, 1fr) auto;
  gap:12px;
  align-items:end;
  margin:10px 0 0;
  padding-top:12px;
  border-top:1px dashed var(--line);
}
.sub-form:first-of-type{border-top:none; padding-top:0;}
.sub-form .sub-check{display:flex; flex-direction:column; gap:6px;}
.sub-form .checkline{display:flex; gap:8px; align-items:center; margin:0;}
.sub-form .checkline span{font-size:12px; color:var(--muted); font-weight:700;}
.sub-form .sub-save{align-self:end;}
.sub-form button{white-space:nowrap;}
.sub-form input[type="datetime-local"]{min-width:220px;}

@media (max-width: 1100px){
  .sub-form{grid-template-columns: 1fr 1fr;}
  .sub-form .sub-save{grid-column:1 / -1; justify-self:flex-start;}
  .sub-form input[type="datetime-local"]{min-width:0;}
}
@media (max-width: 700px){
  .sub-form{grid-template-columns: 1fr;}
}

/* Buttons */
.btn,button{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background:var(--blue); color:white; border:0; border-radius:10px;
  padding:9px 12px; font-weight:800; cursor:pointer; font-size:14px;
  text-decoration:none; box-shadow:0 6px 16px rgba(79,109,245,.35);
}
.btn:hover,button:hover{filter:brightness(1.05)}
.btn-small{padding:6px 9px; font-size:12px; border-radius:8px}
button.danger,.btn.danger{background:var(--red); box-shadow:0 6px 16px rgba(239,68,68,.35)}

/* Table */
table{
  width:100%; border-collapse:collapse; font-size:14px; margin-top:8px; background:#fff;
  border:1px solid var(--line); border-radius:12px; overflow:hidden;
}
th,td{padding:10px 8px; border-bottom:1px solid var(--line); vertical-align:top}
th{
  text-align:left; font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:#475569; background:var(--bg-soft);
}
tr:hover td{background:#fafbff}

/* Pills */
.pill{
  display:inline-block; padding:3px 8px; border-radius:999px; font-size:12px; font-weight:900; letter-spacing:.04em;
}
.pill.good{background:rgba(34,197,94,.12); color:#16a34a; border:1px solid rgba(34,197,94,.25)}
.pill.bad{background:rgba(239,68,68,.10); color:#dc2626; border:1px solid rgba(239,68,68,.22)}

/* Code style */
.code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:12px; background:var(--bg-soft); border:1px dashed var(--line);
  padding:6px 8px; border-radius:8px; color:#0f172a;
}

/* Login pages */
.auth-wrap{
  min-height:100vh; display:grid; place-items:center; padding:20px;
  background:radial-gradient(1000px 500px at 10% -10%, #bcd6ff 0%, transparent 60%),
             radial-gradient(900px 500px at 110% 0%, #ffd8b3 0%, transparent 60%),
             var(--bg);
}
.auth-card{
  width:min(440px,96vw);
  background:var(--card); border:1px solid var(--line); border-radius:18px; padding:22px;
  box-shadow:var(--shadow);
}
.auth-card h1{font-size:22px; margin-bottom:4px}
.auth-card .sub{color:#64748b; margin-bottom:14px; font-size:14px}

/* Header left/title */
.header-left{display:flex; align-items:center; gap:10px;}
.header-title{font-weight:800; letter-spacing:.6px; font-size:14px; text-transform:uppercase; opacity:.95;}

/* Xtream-style dashboard tiles */
.xtream-tiles{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:16px;
  margin-top:12px;
}
.xtile{
  position:relative;
  border-radius:14px;
  padding:14px 16px;
  color:#0b1020;
  box-shadow:0 8px 18px rgba(0,0,0,.18);
  overflow:hidden;
  min-height:96px;
}
.xtile-left{display:flex; flex-direction:column; gap:6px;}
.xtile-value{font-size:22px; font-weight:900; letter-spacing:.2px;}
.xtile-label{font-size:12px; font-weight:800; opacity:.9;}
.xtile-right{
  position:absolute; right:14px; top:12px;
}
.xtile-circle{
  width:56px; height:56px; border-radius:50%;
  display:grid; place-items:center;
  background:rgba(255,255,255,.75);
  box-shadow:inset 0 0 0 8px rgba(255,255,255,.35);
  font-size:24px;
}
.xtile-arrow{font-size:14px; vertical-align:-1px;}
.xtile-green{background:linear-gradient(135deg,#16a34a 0%,#22c55e 55%,#86efac 100%);}
.xtile-blue{background:linear-gradient(135deg,#2563eb 0%,#3b82f6 55%,#93c5fd 100%);}
.xtile-yellow{background:linear-gradient(135deg,#f59e0b 0%,#fbbf24 60%,#fde68a 100%);}
.xtile-gray{background:linear-gradient(135deg,#e5e7eb 0%,#f3f4f6 60%,#ffffff 100%);}

@media (max-width: 1100px){
  .xtream-tiles{grid-template-columns:repeat(2,1fr);}
}
@media (max-width: 600px){
  .xtream-tiles{grid-template-columns:1fr;}
}

/* Checkbox rows */
.check-row{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  color:#0b1020;
}
.check-row input[type="checkbox"]{
  width:16px; height:16px;
  accent-color:#4f6cf7;
}


/* Reseller warning banner */
.notice{
  border:1px solid rgba(251,146,60,.35);
  background:rgba(251,146,60,.14);
  color:#7c2d12;
  border-radius:var(--radius);
  padding:12px 14px;
  margin:14px 0;
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.notice .notice-icon{font-size:18px; line-height:1; margin-top:1px;}
.notice .notice-title{font-weight:800; margin-bottom:2px;}
.notice .notice-text{color:#7c2d12; opacity:.92;}


/* Category/Channel Manager */
/* Two-column layout that stacks on smaller screens */
.grid12{
  display:grid;
  grid-template-columns: 1fr 2fr;
  gap:18px;
  align-items:start;
}
@media (max-width: 1100px){
  .grid12{grid-template-columns:1fr;}
}

/* Category list rows */
.cat-list{margin-top:10px;}
.cat-item{
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.cat-item.active{
  background:rgba(79,109,245,.07);
  border-radius:12px;
  padding:10px;
  margin:0 -10px;
  border-bottom:1px solid transparent;
}
.cat-head{
  display:flex;
  gap:10px;
  align-items:flex-start;
  justify-content:space-between;
}
.cat-title{min-width:0;}
.cat-link{
  font-weight:900;
  color:var(--text);
  text-decoration:none;
}
.cat-link:hover{text-decoration:underline;}

.cat-controls{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:8px;
}
.cat-form{
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:wrap;
  margin:0;
}
.cat-form input[type="text"]{
  width:220px;
  max-width:100%;
}
.cat-adult{
  display:flex;
  gap:6px;
  align-items:center;
  font-size:12px;
  font-weight:800;
  color:#334155;
}

/* Missing "gray" button style used in a few pages */
.btn.gray, button.gray{
  background:#0f172a;
  box-shadow:0 6px 16px rgba(15,23,42,.18);
}


/* Admin + Reseller: XTREAM-style top header + horizontal menu */
.admin-app,
.reseller-app{
  background: var(--bg);
}
.admin-main,
.reseller-main{
  min-width: 0;
}

.admin-app .xt-head,
.reseller-app .xt-head{
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-app .xt-head-top,
.reseller-app .xt-head-top{
  height: 64px;
  background: #0b1020;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.admin-app .xt-head-top::before,
.reseller-app .xt-head-top::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("login-bg.jpg") center/cover no-repeat;
  filter: blur(14px);
  transform: scale(1.12);
  opacity: .65;
}
.admin-app .xt-head-top::after,
.reseller-app .xt-head-top::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(11,16,32,.92), rgba(11,16,32,.60), rgba(11,16,32,.92));
}
.admin-app .xt-head-top-inner,
.reseller-app .xt-head-top-inner{
  position: relative;
  z-index: 1;
  height: 64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  gap: 16px;
}

.admin-app .xt-logo,
.reseller-app .xt-logo{
  display:flex;
  align-items:baseline;
  gap: 2px;
  color: #fff;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}
.admin-app .xt-x,
.reseller-app .xt-x{
  font-size: 24px;
  color: #ff2e2e;
  margin-right: 2px;
  text-shadow: 0 8px 20px rgba(255,46,46,.18);
}
.admin-app .xt-word,
.reseller-app .xt-word{ font-size: 20px; }
.admin-app .xt-ui,
.reseller-app .xt-ui{
  font-size: 13px;
  opacity: .92;
  margin-left: 2px;
  font-weight: 800;
}
.admin-app .xt-sub,
.reseller-app .xt-sub{
  margin-left: 10px;
  font-size: 12px;
  letter-spacing: .18em;
  opacity: .86;
  font-weight: 900;
}

.admin-app .xt-head-actions,
.reseller-app .xt-head-actions{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}

.admin-app .xt-pill.credits,
.reseller-app .xt-pill.credits{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15,23,42,.70);
  border: 1px solid rgba(255,255,255,.10);
  color: #e2e8f0;
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
}
.admin-app .xt-pill.credits:hover,
.reseller-app .xt-pill.credits:hover{ filter: brightness(1.05); }

.admin-app .xt-userlabel,
.reseller-app .xt-userlabel{
  color: #e2e8f0;
  font-weight: 800;
  font-size: 13px;
  opacity: .95;
  max-width: 180px;
  overflow:hidden;
  text-overflow: ellipsis;
}

.admin-app .xt-iconbtn,
.reseller-app .xt-iconbtn{
  display:inline-grid;
  place-items:center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(15,23,42,.70);
  border: 1px solid rgba(255,255,255,.10);
  color: #e2e8f0;
  text-decoration:none;
  cursor:pointer;
  user-select:none;
  font-size: 16px;
}
.admin-app .xt-iconbtn:hover,
.reseller-app .xt-iconbtn:hover{ filter: brightness(1.06); }
.admin-app .xt-iconbtn:focus,
.reseller-app .xt-iconbtn:focus{ outline: 2px solid rgba(59,130,246,.55); outline-offset: 2px; }

.admin-app .xt-dropdown,
.reseller-app .xt-dropdown{
  position:absolute;
  right: 18px;
  top: 64px;
  width: 270px;
  background: #fff;
  color: #0f172a;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  padding: 12px;
  display:none;
  z-index: 55;
}
.xt-dropdown.open{ display:block; }

/* Generic separators / items used in menus */
.xt-dd-sep{
  height: 1px;
  background: rgba(148,163,184,.25);
  margin: 8px 6px;
}
.xt-dd-item{
  display:block;
  padding: 9px 10px;
  border-radius: 10px;
  color: #0f172a;
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
}
.xt-dd-item:hover{ background: #f1f5f9; }

.admin-app .xt-dd-title,
.reseller-app .xt-dd-title{
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #475569;
  margin-bottom: 10px;
}
.admin-app .xt-dd-label,
.reseller-app .xt-dd-label{
  display:block;
  font-size: 12px;
  color: #334155;
  margin: 8px 0 4px;
}
.admin-app .xt-dd-input,
.reseller-app .xt-dd-input{
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.admin-app .xt-dd-input:focus,
.reseller-app .xt-dd-input:focus{ outline: 2px solid rgba(59,130,246,.35); outline-offset: 1px; }
.admin-app .xt-dd-btn,
.reseller-app .xt-dd-btn{
  margin-top: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.2);
  background: #0f172a;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}
.admin-app .xt-dd-btn:hover,
.reseller-app .xt-dd-btn:hover{ filter: brightness(1.05); }

/* Nav bar (mockup position) */
.admin-app .xt-nav,
.reseller-app .xt-nav{
  height: 52px;
  background: #3f4a58;
  border-bottom: 1px solid rgba(0,0,0,.25);
}
.admin-app .xt-nav-inner,
.reseller-app .xt-nav-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  height: 52px;
  display:flex;
  align-items:center;
  gap: 12px;
}

.admin-app .xt-nav-link,
.reseller-app .xt-nav-link{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  color: #eef2ff;
  text-decoration:none;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .01em;
}
.admin-app .xt-nav-link:hover,
.reseller-app .xt-nav-link:hover{ background: rgba(255,255,255,.10); }
.admin-app .xt-nav-link.active,
.reseller-app .xt-nav-link.active{ background: rgba(255,255,255,.18); color: #fff; }

.admin-app .xt-nav-btn,
.reseller-app .xt-nav-btn{
  background: transparent;
  border: 0;
  cursor: pointer;
}
.admin-app .xt-caret,
.reseller-app .xt-caret{ opacity: .9; font-size: 12px; }

.admin-app .xt-nav-dd,
.reseller-app .xt-nav-dd{ position: relative; }
.admin-app .xt-nav-dd.open .xt-nav-menu,
.reseller-app .xt-nav-dd.open .xt-nav-menu{ display:block; }

.admin-app .xt-nav-menu,
.reseller-app .xt-nav-menu{
  position:absolute;
  left: 0;
  top: 52px;
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  padding: 8px;
  display:none;
  z-index: 60;
}
.admin-app .xt-nav-menu a,
.reseller-app .xt-nav-menu a{
  display:block;
  padding: 9px 10px;
  border-radius: 10px;
  color: #0f172a;
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
}
.admin-app .xt-nav-menu a:hover,
.reseller-app .xt-nav-menu a:hover{ background: #f1f5f9; }

.admin-app .xt-nav-spacer,
.reseller-app .xt-nav-spacer{ flex: 1; }

/* Center content like the mockup */
.admin-app .container,
.reseller-app .container{
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

/* Keep notice from looking like an error */
.admin-app .admin-notice,
.reseller-app .admin-notice{
  margin-top: 14px;
}

/* Small button system used by XTREAM-style modals */
.xt-btn{
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(255,255,255,.08);
  color: #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}
.xt-btn:hover{ filter: brightness(1.05); }
.xt-btn-primary{
  border: 0;
  background: linear-gradient(135deg, #ff8a00, #ff2e2e);
  color: #0b1020;
}


/* XTREAM UI modal (password change) */
.xt-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 2000;
}
.xt-modal-overlay.open{ display:flex; }

.xt-modal{
  width: 420px;
  max-width: 100%;
  background: rgba(15,23,42,.92);
  color: #e2e8f0;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0,0,0,.45);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.xt-modal-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148,163,184,.18);
}
.xt-modal-title{
  font-weight: 900;
  letter-spacing: .02em;
}
.xt-modal-close{
  border: 0;
  background: rgba(255,255,255,.08);
  color: #e2e8f0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
}
.xt-modal-body{ padding: 14px 16px 16px; }
.xt-modal-label{
  display:block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #94a3b8;
  margin: 10px 0 6px;
}
.xt-modal-input{
  width:100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.24);
  background: rgba(2,6,23,.35);
  color: #e2e8f0;
  outline: none;
}
.xt-modal-input:focus{
  border-color: rgba(96,165,250,.55);
  box-shadow: 0 0 0 3px rgba(96,165,250,.18);
}
.xt-modal-actions{
  display:flex;
  gap: 10px;
  margin-top: 14px;
}
.xt-modal-msg{
  margin-top: 10px;
  font-size: 13px;
  color: #cbd5e1;
  min-height: 18px;
}
.xt-modal-msg.ok{ color: #22c55e; }
.xt-modal-msg.err{ color: #fb7185; }

/* Modal buttons */
.xt-btn{
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(255,255,255,.10);
  color: #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}
.xt-btn:hover{ filter: brightness(1.05); }
.xt-btn-primary{
  background: linear-gradient(135deg, #ffb703, #fb8500);
  color: #0b1020;
  border: 0;
}
