:root {
  color-scheme: dark;
  --bg: #071426;
  --bg-soft: #0b1d34;
  --surface: #10243e;
  --surface-2: #132b49;
  --surface-3: #193451;
  --text: #edf5ff;
  --muted: #9db0c7;
  --muted-2: #7188a4;
  --line: rgba(160, 190, 220, .15);
  --line-strong: rgba(160, 190, 220, .25);
  --brand: #0e477a;
  --accent: #19d5c2;
  --accent-2: #5ce9dc;
  --accent-ink: #032d37;
  --success: #36d6a3;
  --warning: #f2bd62;
  --danger: #ff7884;
  --purple: #ad9bff;
  --shadow: 0 22px 60px rgba(0, 0, 0, .22);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, .14);
  --radius: 22px;
  --radius-sm: 14px;
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f7fc;
  --bg-soft: #eaf1f8;
  --surface: #ffffff;
  --surface-2: #f7fafd;
  --surface-3: #edf4fa;
  --text: #10233b;
  --muted: #5e7189;
  --muted-2: #8393a7;
  --line: rgba(20, 54, 88, .10);
  --line-strong: rgba(20, 54, 88, .18);
  --brand: #123d68;
  --accent: #08aa9e;
  --accent-2: #17cbbb;
  --accent-ink: #ffffff;
  --success: #079b70;
  --warning: #b77a13;
  --danger: #cf4556;
  --purple: #7257ce;
  --shadow: 0 22px 60px rgba(24, 50, 80, .10);
  --shadow-soft: 0 12px 34px rgba(24, 50, 80, .08);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  transition: background .2s ease, color .2s ease;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .52; cursor: not-allowed; }
a { color: inherit; }
[hidden] { display: none !important; }

.ambient {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .13;
}
.ambient-one { top: -260px; left: 24%; background: #0aaea7; }
.ambient-two { right: -270px; bottom: -250px; background: #2368bd; }
.eyebrow, .section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 10px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.subtle, .muted { color: var(--muted); }
.small-text { font-size: 12px; }
.fine-print { color: var(--muted-2); font-size: 11px; line-height: 1.55; margin: 14px 0 0; }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
h1, h2, h3, h4 { font-family: Manrope, "DM Sans", sans-serif; }
h1 { font-size: clamp(30px, 3vw, 42px); line-height: 1.12; letter-spacing: -.045em; margin: 8px 0 10px; font-weight: 800; }
h2 { font-size: 23px; line-height: 1.2; letter-spacing: -.035em; margin: 5px 0 8px; font-weight: 800; }
h3 { font-size: 17px; line-height: 1.25; letter-spacing: -.02em; margin: 6px 0 8px; font-weight: 800; }
p { margin-top: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(25, 213, 194, .48);
  outline-offset: 2px;
}

/* Buttons and fields */
.button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
  font-size: 13px;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  color: #032b35;
  background: linear-gradient(135deg, #43e5d2, #16c5b6);
  box-shadow: 0 9px 22px rgba(12, 190, 177, .18);
}
.button-primary:hover { background: linear-gradient(135deg, #67f1e2, #24d5c5); box-shadow: 0 12px 26px rgba(12, 190, 177, .25); }
.button-secondary {
  color: var(--text);
  background: var(--surface-3);
  border-color: var(--line-strong);
}
.button-secondary:hover { border-color: var(--accent); background: var(--surface-2); }
.button-danger { color: #fff; background: #c94b5b; border-color: #c94b5b; }
.button-quiet-danger { color: var(--danger); background: transparent; border-color: rgba(255, 120, 132, .3); }
.button-quiet-danger:hover { background: rgba(255, 120, 132, .09); }
.button-quiet { background: transparent; border-color: var(--line); color: var(--accent); }
.button-small { min-height: 34px; padding: 7px 11px; font-size: 11px; border-radius: 9px; }
.button-wide { width: 100%; min-height: 50px; }
.link-button, .text-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.link-button:hover, .text-link:hover { color: var(--accent-2); text-decoration: underline; }
.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 19px;
  transition: .16s ease;
}
.icon-button:hover { border-color: var(--accent); color: var(--accent); }

label {
  display: block;
  margin: 0 0 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
}
input, textarea, select {
  width: 100%;
  min-height: 45px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 11px 13px;
  background: var(--surface-2);
  color: var(--text);
  outline: none;
  font-size: 13px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(25, 213, 194, .11); }
input[type="datetime-local"] { color-scheme: inherit; }
.form-stack { display: grid; gap: 10px; }
.form-row { display: flex; align-items: end; flex-wrap: wrap; gap: 13px; }
.field-grow { flex: 1 1 190px; min-width: 0; }
.field-grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-hint { display: block; color: var(--muted-2); font-size: 11px; margin-top: 6px; }
.optional-label { color: var(--muted-2); font-weight: 500; }
.form-error { min-height: 0; color: var(--danger); font-size: 12px; margin-top: 7px; }
.success-message { color: var(--success); font-size: 12px; margin-top: 8px; }
.inline-status { min-height: 18px; color: var(--muted); font-size: 12px; }
.input-wrap { position: relative; }
.input-wrap input { padding-left: 42px; min-height: 49px; }
.input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 17px; z-index: 1; }

/* Login experience */
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
  max-width: 1680px;
  margin: 0 auto;
  padding: 24px;
  gap: 22px;
}
.login-story {
  position: relative;
  min-height: calc(100vh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 4vw, 58px);
  border: 1px solid rgba(94, 175, 205, .15);
  border-radius: 30px;
  background:
    radial-gradient(circle at 54% 36%, rgba(14, 175, 190, .18), transparent 34%),
    linear-gradient(145deg, #07172b 0%, #092441 55%, #07394c 100%);
  box-shadow: var(--shadow);
  color: #effaff;
}
.login-brand, .sidebar-brand { display: flex; align-items: center; gap: 12px; }
.login-brand img { width: 48px; height: 48px; object-fit: contain; }
.login-brand strong, .sidebar-brand strong { display: block; font-family: Manrope, sans-serif; font-size: 13px; letter-spacing: .12em; }
.login-brand span, .sidebar-brand span { display: block; margin-top: 3px; color: #7da5bb; font-size: 9px; letter-spacing: .17em; font-weight: 800; }
.login-hero { position: relative; width: min(100%, 430px); margin: 18px auto 10px; display: grid; place-items: center; min-height: 280px; }
.login-logo { position: relative; z-index: 2; width: min(100%, 360px); max-height: 300px; object-fit: contain; filter: drop-shadow(0 18px 35px rgba(0, 218, 204, .16)); }
.hero-orbit { position: absolute; border: 1px solid rgba(49, 217, 211, .24); border-radius: 50%; transform: rotate(-22deg); }
.orbit-a { width: 94%; height: 52%; }
.orbit-b { width: 74%; height: 75%; transform: rotate(42deg); border-color: rgba(69, 142, 205, .22); }
.hero-chip { position: absolute; z-index: 3; bottom: 6px; padding: 8px 14px; border: 1px solid rgba(73, 226, 217, .23); border-radius: 99px; background: rgba(2, 24, 43, .62); color: #a7e9e6; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(54, 214, 163, .12); vertical-align: middle; }
.hero-chip .live-dot { margin-right: 8px; }
.story-copy { max-width: 610px; margin: auto auto 0; }
.story-copy .eyebrow { color: #56d9d1; }
.story-copy h1 { margin-top: 12px; color: #f2fbff; font-size: clamp(34px, 4vw, 55px); }
.story-copy h1 span { color: #55e3d6; }
.story-copy > p:not(.eyebrow) { max-width: 540px; color: #a8bfd0; font-size: 15px; line-height: 1.75; }
.story-points { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 25px; color: #c6dce8; font-size: 12px; }
.story-points span { display: inline-flex; align-items: center; gap: 8px; }
.story-points i { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: rgba(32, 211, 190, .14); color: #5ce9d7; font-style: normal; font-weight: 900; }
.login-story-foot { display: flex; justify-content: space-between; margin-top: 34px; color: #6d8fa7; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.login-side { display: flex; flex-direction: column; padding: 7px 12px 7px 26px; }
.login-side-top { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.secure-label { color: var(--muted); font-size: 9px; letter-spacing: .14em; font-weight: 800; }
.secure-label .live-dot { margin-right: 8px; }
.login-card { width: min(100%, 480px); margin: auto; padding: clamp(26px, 4vw, 44px); border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.login-card-mark { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 16px; background: linear-gradient(135deg, rgba(25, 213, 194, .2), rgba(29, 106, 164, .25)); color: var(--accent); font-size: 28px; }
.login-card h2 { margin: 8px 0; font-size: 28px; }
.login-card .subtle { font-size: 13px; margin-bottom: 24px; }
.login-form { display: grid; gap: 10px; }
.login-form label:not(:first-child) { margin-top: 5px; }
.login-form .button { margin-top: 12px; }
.recovery-link { display: block; margin: 20px auto 0; }
.recovery-panel { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); }
.recovery-panel h3 { margin-top: 0; }
.recovery-panel .subtle { font-size: 12px; }
.login-assurance { display: flex; gap: 11px; align-items: flex-start; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.login-assurance span { width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(25, 213, 194, .13); color: var(--accent); font-weight: 900; }
.login-assurance p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.login-side-foot { margin: 0 auto 12px; color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.login-side-foot span { margin: 0 8px; color: var(--accent); }

/* Application shell */
.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 264px;
  height: 100vh;
  min-height: 650px;
  flex: 0 0 264px;
  display: flex;
  flex-direction: column;
  padding: 25px 17px 18px;
  background: linear-gradient(180deg, #07182d 0%, #0a2039 60%, #082a3b 100%);
  border-right: 1px solid rgba(117, 181, 203, .12);
  color: #eaf6ff;
}
.sidebar-brand { padding: 0 9px 25px; border-bottom: 1px solid rgba(155, 196, 216, .13); }
.sidebar-brand img { width: 42px; height: 42px; object-fit: contain; }
.sidebar-brand strong { font-size: 11px; letter-spacing: .1em; color: #f2fbff; }
.sidebar-brand span { font-size: 8px; color: #6e9ab0; }
.sidebar-account { display: flex; align-items: center; gap: 10px; padding: 18px 8px 22px; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(72, 232, 216, .3); border-radius: 12px; background: linear-gradient(135deg, #0c7282, #153d65); color: #c8fff8; font-family: Manrope, sans-serif; font-weight: 800; }
.account-copy { min-width: 0; flex: 1; }
.account-copy strong { display: block; max-width: 150px; overflow: hidden; color: #eff8ff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-copy span { display: block; margin-top: 3px; color: #7396ae; font-size: 8px; letter-spacing: .12em; font-weight: 800; }
.account-live { width: 7px; height: 7px; border-radius: 50%; background: #39dba7; box-shadow: 0 0 0 4px rgba(57, 219, 167, .1); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 3px 0; }
.nav-label { margin: 0 10px 10px; color: #66879f; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.nav-label-spaced { margin-top: 28px; }
.nav-item { position: relative; width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; margin: 3px 0; padding: 0 11px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #a9bfd0; text-align: left; font-size: 12px; font-weight: 650; transition: .15s ease; }
.nav-item:hover { background: rgba(255, 255, 255, .055); color: #f2fbff; }
.nav-item.active { border-color: rgba(44, 221, 204, .18); background: linear-gradient(90deg, rgba(17, 179, 169, .2), rgba(21, 107, 141, .13)); color: #e8fffc; }
.nav-item.active::before { position: absolute; left: -1px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #39dfd0; content: ""; }
.nav-icon { width: 20px; color: #67cfc9; font-size: 17px; text-align: center; }
.nav-pill { margin-left: auto; padding: 3px 6px; border-radius: 5px; background: rgba(25, 213, 194, .13); color: #70e9dc; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.nav-count { min-width: 19px; height: 19px; display: inline-grid; place-items: center; margin-left: auto; border-radius: 50%; background: #16b7a9; color: #042c35; font-size: 10px; font-weight: 900; }
.sidebar-bottom { padding-top: 14px; border-top: 1px solid rgba(155, 196, 216, .13); }
.sidebar-status { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, .045); }
.sidebar-status strong { display: block; color: #cce5ed; font-size: 10px; }
.sidebar-status small { display: block; margin-top: 2px; color: #7694a9; font-size: 9px; }
.sidebar-logout { width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: #9db5c8; text-align: left; font-size: 11px; font-weight: 700; }
.sidebar-logout:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar-logout span { color: #5bd8cf; font-size: 17px; }
.sidebar-version { margin: 14px 10px 0; color: #56788f; font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.sidebar-version span { margin-left: 6px; color: #52d9d0; }
.app-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 10; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px clamp(20px, 3vw, 42px); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); }
.topbar-left, .topbar-actions, .topbar-user { display: flex; align-items: center; gap: 14px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: 11px; }
.breadcrumb b { color: var(--line-strong); }
.breadcrumb strong { color: var(--text); font-weight: 750; }
.topbar-live { color: var(--success); font-size: 8px; font-weight: 900; letter-spacing: .13em; white-space: nowrap; }
.topbar-live .live-dot { margin-right: 7px; }
.topbar-user { padding-left: 13px; border-left: 1px solid var(--line); }
.topbar-user strong { display: block; color: var(--text); font-size: 11px; }
.topbar-user span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 9px; }
.avatar-small { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }
.mobile-menu-button { display: none; }
.content-area { width: 100%; max-width: 1540px; margin: 0 auto; padding: clamp(22px, 3vw, 42px); flex: 1; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-heading h1 { margin: 7px 0 8px; }
.page-heading .subtle { max-width: 720px; margin: 0; font-size: 13px; }
.heading-badge { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.heading-badge .live-dot { width: 6px; height: 6px; }
.admin-heading-badge { border-color: rgba(25, 213, 194, .25); color: var(--accent); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.content-section { margin-top: 32px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.section-heading h2 { margin: 6px 0 4px; }
.section-heading p.subtle { margin: 0; font-size: 12px; }
.home-quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.quick-card { min-width: 0; display: flex; align-items: center; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); color: var(--text); text-align: left; box-shadow: var(--shadow-soft); transition: .16s ease; }
.quick-card:hover { transform: translateY(-2px); border-color: rgba(25, 213, 194, .45); }
.quick-card-primary { border-color: rgba(25, 213, 194, .28); background: linear-gradient(130deg, var(--surface), color-mix(in srgb, var(--accent) 9%, var(--surface))); }
.quick-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; background: rgba(25, 213, 194, .12); color: var(--accent); font-size: 22px; }
.quick-card span:nth-child(2) { min-width: 0; flex: 1; }
.quick-card strong, .quick-card small { display: block; }
.quick-card strong { font-family: Manrope, sans-serif; font-size: 12px; }
.quick-card small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.quick-card b { color: var(--accent); font-size: 18px; }
.home-footer-note { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--muted-2); font-size: 11px; }
.home-footer-note span { color: var(--accent); font-size: 18px; }

/* ExpressVPN license status */
.license-card { position: relative; display: flex; align-items: center; gap: 18px; overflow: hidden; padding: 23px 26px; border-radius: 19px; }
.license-card::after { position: absolute; right: -70px; top: -95px; width: 250px; height: 250px; border: 1px solid currentColor; border-radius: 50%; opacity: .08; content: ""; box-shadow: 0 0 0 25px currentColor, 0 0 0 50px currentColor; }
.license-symbol { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 15px; background: rgba(25, 213, 194, .14); color: var(--accent); font-size: 23px; }
.license-main { min-width: 0; flex: 1; }
.license-main h2 { margin: 5px 0; font-size: 20px; }
.license-main p { margin: 0; font-size: 12px; }
.license-meta { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.license-meta strong { color: var(--success); font-family: Manrope, sans-serif; font-size: 24px; font-weight: 800; }
.license-meta span { color: var(--muted); font-size: 10px; }
.license-ok { border-color: rgba(54, 214, 163, .22); }
.license-reminder { border-color: rgba(242, 189, 98, .3); }
.license-reminder .license-symbol, .license-reminder .license-meta strong { color: var(--warning); }
.license-warning, .license-critical { border-color: rgba(255, 159, 82, .35); }
.license-warning .license-symbol, .license-warning .license-meta strong, .license-critical .license-symbol, .license-critical .license-meta strong { color: #ffad67; }
.license-expired, .license-blocked { border-color: rgba(255, 120, 132, .35); }
.license-expired .license-symbol, .license-expired .license-meta strong, .license-blocked .license-symbol, .license-blocked .license-meta strong { color: var(--danger); }
.license-unknown .license-meta strong { color: var(--muted); }
.license-block-message { display: flex; align-items: flex-start; gap: 14px; margin: 18px 0; padding: 17px 20px; border: 1px solid rgba(255, 120, 132, .3); border-radius: 15px; background: rgba(255, 120, 132, .08); }
.block-message-icon { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: rgba(255, 120, 132, .16); color: var(--danger); font-weight: 900; }
.license-block-message strong { font-size: 13px; }
.license-block-message p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }

/* OTP view */
.otp-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .8fr); gap: 18px; }
.otp-card { padding: clamp(22px, 3vw, 34px); text-align: center; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 30px; }
.card-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(25, 213, 194, .13); color: var(--accent); font-size: 21px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.pulse-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(54, 214, 163, .12); }
.otp-card > .eyebrow { color: var(--muted-2); }
.otp-code { margin: 12px 0 7px; color: var(--text); font-family: "DM Sans", ui-monospace, monospace; font-size: clamp(42px, 6vw, 72px); font-weight: 800; letter-spacing: .15em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.otp-state { min-height: 21px; color: var(--muted); font-size: 12px; }
.otp-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 26px 0 22px; }
.otp-expiry { display: flex; justify-content: center; align-items: center; gap: 10px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.otp-expiry strong { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 14px; }
.otp-side { display: grid; gap: 18px; align-content: start; }
.info-card, .sync-card { padding: 22px; }
.card-icon-soft { background: rgba(25, 213, 194, .08); }
.info-card h3, .sync-card h3 { margin: 7px 0 12px; }
.info-card ol { margin: 0; padding-left: 19px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.info-card li { padding: 3px 0 3px 3px; }
.sync-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sync-frequency { padding: 6px 8px; border-radius: 7px; background: rgba(54, 214, 163, .1); color: var(--success); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.sync-status { color: var(--text); font-size: 12px; font-weight: 750; }
.sync-card .link-button { margin-top: 14px; }
.sync-description { margin: 9px 0 0; }

/* TV apps library and TV credentials */
.app-disclaimer { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; padding: 15px 17px; border: 1px solid rgba(25, 213, 194, .2); border-radius: 14px; background: rgba(25, 213, 194, .06); }
.app-disclaimer > span { color: var(--accent); font-size: 19px; }
.app-disclaimer p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.app-library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.app-card { min-width: 0; display: flex; flex-direction: column; padding: 21px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-soft); transition: transform .18s ease, border-color .18s ease; }
.app-card:hover { transform: translateY(-3px); border-color: rgba(25, 213, 194, .38); }
.app-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 17px; }
.app-brand-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; font-family: Manrope, sans-serif; font-size: 17px; font-weight: 900; }
.app-icon-tv { background: linear-gradient(135deg, #1c7d8e, #113c62); color: #b5fff6; }
.app-icon-apple { background: #202d42; color: #fff; }
.app-icon-s { background: linear-gradient(135deg, #5b43c4, #b85ba8); color: #fff; }
.app-icon-kodi { background: linear-gradient(135deg, #1974a5, #28b8d4); color: #fff; }
.app-icon-vlc { background: linear-gradient(135deg, #e4a72d, #ef762e); color: #fff; }
.app-platform { color: var(--muted-2); font-size: 8px; font-weight: 900; letter-spacing: .12em; text-align: right; }
.app-card h3 { margin: 0 0 8px; font-size: 18px; }
.app-card p { min-height: 62px; margin: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.app-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 16px; }
.app-tags span { padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 8px; font-weight: 700; }
.app-link { width: 100%; }
.app-card .text-link { margin-top: 12px; text-align: center; }
.app-source-note { margin-top: 18px; }
.tv-credentials-card { max-width: 860px; padding: clamp(22px, 3vw, 34px); }
.tv-credentials-head { display: flex; align-items: flex-start; gap: 15px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.tv-credentials-head h2 { margin: 5px 0; }
.tv-credentials-head p.subtle { margin: 0; font-size: 12px; }
.tv-empty-state { padding: 28px 10px 8px; color: var(--muted); font-size: 13px; text-align: center; }
.tv-credentials-details { display: grid; gap: 13px; padding-top: 22px; }
.credential-field { padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.credential-field > span { display: block; margin-bottom: 7px; color: var(--muted-2); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.credential-field > div { display: flex; align-items: center; gap: 10px; }
.credential-field code { min-width: 0; flex: 1; overflow-wrap: anywhere; color: var(--text); font-size: 13px; font-weight: 700; }
.copy-field-btn { padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--accent); font-size: 10px; font-weight: 800; }
.copy-field-btn:hover { border-color: var(--accent); }
.credential-updated { color: var(--muted-2); font-size: 10px; }
.tv-credentials-details > .button { justify-self: start; }

/* Announcements */
.announcement-list { display: grid; gap: 12px; }
.announcement-list-page { max-width: 920px; }
.announcement-card { padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-soft); }
.announcement-card.priority-important { border-left-color: var(--warning); }
.announcement-card.priority-urgent { border-left-color: var(--danger); }
.announcement-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.announcement-priority { color: var(--accent); font-size: 8px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.priority-important .announcement-priority { color: var(--warning); }
.priority-urgent .announcement-priority { color: var(--danger); }
.announcement-card time { color: var(--muted-2); font-size: 9px; }
.announcement-card h4 { margin: 8px 0 5px; font-size: 15px; }
.announcement-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.announcement-admin-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 10px; }
.announcement-delete { margin-top: 11px; }
.empty-row { padding: 24px; border: 1px dashed var(--line-strong); border-radius: 13px; color: var(--muted-2); font-size: 12px; text-align: center; }

/* Admin dashboard */
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow-soft); }
.stat-icon { grid-column: 2; grid-row: 1 / span 2; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(25, 213, 194, .12); color: var(--accent); font-size: 18px; }
.stat-icon-green { background: rgba(54, 214, 163, .12); color: var(--success); }
.stat-icon-amber { background: rgba(242, 189, 98, .12); color: var(--warning); }
.stat-icon-purple { background: rgba(173, 155, 255, .13); color: var(--purple); }
.stat-label { color: var(--muted); font-size: 10px; font-weight: 700; }
.stat-card strong { font-family: Manrope, sans-serif; font-size: 28px; line-height: 1.1; font-weight: 800; }
.stat-card small { color: var(--muted-2); font-size: 9px; }
.admin-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.overview-panel { padding: 23px; }
.overview-panel h2 { margin: 7px 0 14px; }
.overview-status { display: flex; align-items: center; gap: 10px; margin: 14px 0 5px; font-size: 13px; }
.overview-panel > .button { margin-top: 18px; }
.overview-actions { display: grid; gap: 8px; }
.quick-action { padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); text-align: left; font-size: 11px; font-weight: 700; }
.quick-action:hover { border-color: var(--accent); color: var(--accent); }
.admin-form-panel { padding: clamp(20px, 3vw, 30px); }
.section-index { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; color: var(--accent); font-family: Manrope, sans-serif; font-size: 11px; font-weight: 800; }
.create-form { margin-top: 18px; }
.credential-result { display: grid; gap: 12px; margin-top: 18px; padding: 16px; border: 1px solid rgba(54, 214, 163, .25); border-radius: 13px; background: rgba(54, 214, 163, .07); }
.credential-result strong { font-size: 13px; }
.credential-result p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.credential-result-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.credential-result-line span { color: var(--text); font-size: 12px; font-weight: 800; }
.credential-result-line code { padding: 7px 9px; border-radius: 7px; background: var(--surface); color: var(--accent); font-size: 12px; }
.user-list-header { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 14px; padding: 0 15px 9px; color: var(--muted-2); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.users-list { display: grid; gap: 10px; }
.user-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(180px, .9fr) minmax(210px, 1.2fr); align-items: center; gap: 15px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.user-meta { min-width: 0; display: grid; gap: 5px; }
.user-name-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.user-meta strong { font-family: Manrope, sans-serif; font-size: 13px; }
.user-meta > span { color: var(--muted-2); font-size: 9px; }
.user-state { padding: 3px 7px; border-radius: 99px; font-size: 8px !important; font-weight: 900; }
.state-active { background: rgba(54, 214, 163, .12); color: var(--success) !important; }
.state-disabled { background: rgba(255, 120, 132, .12); color: var(--danger) !important; }
.user-meta .tv-assigned { color: var(--success); }
.user-meta .tv-not-assigned { color: var(--muted-2); }
.user-expiry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 7px; align-items: center; }
.user-expiry label { grid-column: 1 / -1; margin: 0; color: var(--muted-2); font-size: 9px; }
.user-expiry input { min-height: 34px; padding: 6px 7px; font-size: 10px; }
.user-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.log-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.logs-list { display: grid; gap: 0; }
.log-row { display: flex; justify-content: space-between; gap: 15px; padding: 12px 3px; border-bottom: 1px solid var(--line); }
.log-row:last-child { border-bottom: 0; }
.log-row strong { color: var(--text); font-size: 11px; }
.log-row span { color: var(--muted-2); font-size: 10px; white-space: nowrap; }
.recovery-status { margin: 12px 0; color: var(--muted); font-size: 12px; }
.recovery-result { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; padding: 12px; border: 1px solid rgba(54, 214, 163, .25); border-radius: 11px; background: rgba(54, 214, 163, .07); }
.recovery-result code { min-width: 0; flex: 1; overflow-wrap: anywhere; color: var(--success); font-size: 12px; }
.security-note { display: flex; align-items: flex-start; gap: 14px; max-width: 850px; margin-top: 16px; padding: 20px; }
.security-note h3 { margin-top: 0; }
.security-note p { margin-bottom: 7px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.security-note code { color: var(--accent); }

/* Modal, footer and feedback */
.modal-dialog { width: min(560px, calc(100vw - 28px)); max-width: 560px; max-height: calc(100vh - 28px); padding: 0; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 0 28px 100px rgba(0, 0, 0, .45); }
.modal-dialog::backdrop { background: rgba(1, 9, 20, .72); backdrop-filter: blur(6px); }
.modal-card { padding: 25px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.modal-head h2 { margin: 5px 0; }
.modal-head p.subtle { margin: 0; font-size: 11px; }
.modal-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.modal-spacer { flex: 1; }
.app-footer { display: flex; justify-content: space-between; gap: 12px; padding: 18px clamp(22px, 3vw, 42px); border-top: 1px solid var(--line); color: var(--muted-2); font-size: 9px; letter-spacing: .08em; }
.app-footer b { margin-left: 6px; color: var(--accent); }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(420px, calc(100vw - 48px)); padding: 13px 17px; border: 1px solid rgba(25, 213, 194, .25); border-radius: 12px; background: #0b2940; color: #e9fffb; box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.password-panel { margin: 0 auto; max-width: 720px; padding: 28px; }
.password-panel h2 { margin: 8px 0; }
.password-panel > .subtle { font-size: 12px; }
.password-panel .form-row { margin-top: 18px; }
.app-screen .view-panel { animation: view-in .22s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive layout */
@media (max-width: 1200px) {
  .app-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-row { grid-template-columns: minmax(130px, 1fr) minmax(160px, .9fr); }
  .user-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .user-list-header { display: none; }
}
@media (max-width: 980px) {
  .login-screen { grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); }
  .sidebar { width: 235px; flex-basis: 235px; }
  .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-quick-grid { grid-template-columns: 1fr; }
  .otp-layout { grid-template-columns: minmax(0, 1.3fr) minmax(240px, .8fr); }
}
@media (max-width: 760px) {
  input, textarea, select { font-size: 16px; }
  .login-screen { display: flex; flex-direction: column; padding: 12px; gap: 12px; }
  .login-story { min-height: auto; padding: 20px; border-radius: 22px; }
  .login-brand img { width: 38px; height: 38px; }
  .login-hero { min-height: 170px; margin: 6px auto; }
  .login-logo { width: min(100%, 230px); max-height: 180px; }
  .hero-chip { bottom: -2px; font-size: 7px; }
  .story-copy { margin-top: 16px; }
  .story-copy h1 { font-size: 32px; }
  .story-copy > p:not(.eyebrow) { font-size: 12px; }
  .story-points { margin-top: 13px; gap: 8px 14px; font-size: 10px; }
  .login-story-foot { margin-top: 22px; }
  .login-side { padding: 5px 4px 12px; }
  .login-side-top { margin-bottom: 10px; }
  .login-card { margin: 0 auto 10px; padding: 25px; }
  .login-side-foot { margin-top: auto; }
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; height: 100dvh; min-height: 0; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 18px 0 55px rgba(0, 0, 0, .28); }
  .sidebar.sidebar-open { transform: translateX(0); }
  .mobile-menu-button { display: inline-grid; }
  .topbar { min-height: 66px; padding: 10px 15px; }
  .topbar-live { display: none; }
  .topbar-actions { gap: 8px; }
  .topbar-user { padding-left: 8px; gap: 7px; }
  .topbar-user > div:last-child { display: none; }
  .content-area { padding: 23px 15px 30px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 20px; }
  .page-heading h1 { font-size: 31px; }
  .heading-badge { align-self: flex-start; }
  .license-card { align-items: flex-start; flex-wrap: wrap; padding: 18px; }
  .license-meta { width: 100%; align-items: flex-start; padding-left: 65px; text-align: left; }
  .home-quick-grid { gap: 9px; }
  .quick-card { padding: 14px; }
  .otp-layout { grid-template-columns: 1fr; }
  .otp-card { padding: 21px 15px; }
  .otp-code { font-size: clamp(36px, 11vw, 56px); letter-spacing: .1em; }
  .otp-side { grid-template-columns: 1fr; }
  .app-library-grid { grid-template-columns: 1fr; }
  .app-card p { min-height: 0; }
  .admin-stat-grid { gap: 9px; }
  .stat-card { padding: 14px; }
  .stat-card strong { font-size: 24px; }
  .admin-overview-grid { grid-template-columns: 1fr; }
  .field-grid-two { grid-template-columns: 1fr; }
  .form-row { align-items: stretch; flex-direction: column; }
  .form-row > .button { width: 100%; }
  .user-row { grid-template-columns: 1fr; gap: 12px; }
  .user-actions { justify-content: flex-start; }
  .user-expiry { grid-template-columns: minmax(0, 1fr) auto; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .log-actions { width: 100%; }
  .log-actions .button { flex: 1; }
  .app-footer { padding: 15px; font-size: 8px; }
}
@media (max-width: 420px) {
  .topbar .breadcrumb { gap: 6px; font-size: 9px; }
  .topbar .icon-button { width: 35px; height: 35px; }
  .topbar-user { display: none; }
  .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { grid-template-columns: 1fr; }
  .stat-icon { grid-column: 1; grid-row: auto; }
  .announcement-card-top { align-items: flex-start; flex-direction: column; gap: 4px; }
  .modal-card { padding: 18px; }
  .modal-actions { align-items: stretch; flex-direction: column; }
  .modal-spacer { display: none; }
  .modal-actions .button { width: 100%; }
}


/* VPN ACCESS HUB V7.1 — STABLE SIDEBAR AND INLINE ICONS
   The original V6.1 navigation structure is intentionally retained. */
.sidebar {
  box-sizing: border-box;
  width: 264px;
  flex: 0 0 264px;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 8px 22px;
}
.sidebar-brand img {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}
.sidebar-brand > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sidebar-brand strong { display: block; font-size: 11px; line-height: 1.35; white-space: nowrap; }
.sidebar-brand span { display: block; font-size: 9px; line-height: 1.3; }
.sidebar-account { flex: 0 0 auto; min-width: 0; }
.sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(112, 160, 181, .28) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(112, 160, 181, .28); border-radius: 8px; }
.sidebar-nav > div[hidden] { display: none !important; }
.nav-item {
  box-sizing: border-box;
  min-height: 45px;
  gap: 11px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1.35;
}
.nav-item > span:nth-child(2) { min-width: 0; flex: 1 1 auto; }
.nav-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}
.nav-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-bottom { flex: 0 0 auto; }
.sidebar-status { min-height: 54px; }
.sidebar-logout { min-height: 42px; }
.sidebar-version { padding-bottom: 2px; }

@media (max-height: 760px) and (min-width: 761px) {
  .sidebar { padding-top: 16px; padding-bottom: 12px; }
  .sidebar-brand { padding-bottom: 14px; }
  .sidebar-account { padding-top: 12px; padding-bottom: 13px; }
  .nav-label-spaced { margin-top: 16px; }
  .nav-item { min-height: 39px; margin-top: 2px; margin-bottom: 2px; }
  .sidebar-bottom { padding-top: 8px; }
  .sidebar-status { min-height: 45px; padding-top: 7px; padding-bottom: 7px; }
  .sidebar-logout { min-height: 36px; margin-top: 5px; padding-top: 7px; padding-bottom: 7px; }
  .sidebar-version { margin-top: 7px; }
}

/* App directory: typography and card layout are scoped to this page. */
.app-page-heading { align-items: flex-start; gap: 18px; }
.app-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.app-disclaimer { display: flex; align-items: flex-start; gap: 13px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.app-disclaimer > span { flex: 0 0 auto; font-size: 20px; line-height: 1.2; color: var(--accent); }
.app-disclaimer p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
.platform-showcase { margin: 24px 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.platform-showcase-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.platform-showcase-heading h2 { margin: 4px 0 0; font-size: 21px; }
.platform-brand-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.platform-brand-chip { min-width: 0; min-height: 76px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; padding: 10px 7px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); text-align: center; }
.platform-brand-chip img { display: block; width: 34px; height: 34px; object-fit: contain; }
.platform-brand-chip strong { font-size: 11px; line-height: 1.3; }
.platform-brand-fallback { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(25, 213, 194, .12); color: var(--accent); font-size: 12px; font-weight: 800; }
.app-library-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 12px; margin-bottom: 18px; }
.app-search-wrap { position: relative; }
.app-search-wrap input { width: 100%; padding-left: 42px; }
.app-search-symbol { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 22px; line-height: 1; }
.app-library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.app-card-managed { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-soft); }
.app-card-managed .app-card-top { min-height: 68px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.app-logo-wrap { width: 64px; height: 64px; flex: 0 0 64px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); }
.app-logo-wrap img { display: block; width: 100%; height: 100%; padding: 6px; object-fit: contain; }
.app-logo-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(145deg, rgba(25, 213, 194, .18), rgba(42, 104, 151, .16)); color: var(--accent); font-size: 22px; font-weight: 850; }
.app-official-badge { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid rgba(54, 190, 145, .25); border-radius: 999px; background: rgba(54, 190, 145, .08); color: var(--success); font-size: 10px; font-weight: 750; }
.app-card-managed h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }
.app-card-description { min-height: 74px; margin: 0 0 15px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.app-card-managed .app-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: auto 0 17px; }
.app-card-managed .app-tags span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 11px; }
.app-card-managed .app-link { width: 100%; justify-content: center; font-size: 13px; }
.app-empty { grid-column: 1 / -1; }
.app-source-note { margin-top: 18px; }

/* Admin app manager */
.app-manager-panel { padding: 24px; }
.app-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.app-form-wide { grid-column: 1 / -1; }
.app-manager-flags { display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 18px 0; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.app-manager-flags label { display: flex; align-items: flex-start; gap: 9px; margin: 0; cursor: pointer; }
.app-manager-flags input { width: 17px; height: 17px; min-height: 17px; margin: 3px 0 0; accent-color: var(--accent); }
.app-manager-flags span { display: grid; gap: 3px; }
.app-manager-flags strong { font-size: 13px; }
.app-manager-flags small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.app-logo-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--surface-2); }
.app-logo-preview { width: 66px; height: 66px; flex: 0 0 66px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.app-logo-preview img { display: block; width: 100%; height: 100%; padding: 5px; object-fit: contain; }
.app-logo-preview .app-logo-fallback { font-size: 18px; }
.app-logo-file-wrap { flex: 1 1 230px; min-width: 0; }
.app-logo-file-wrap input { width: 100%; min-height: 42px; padding: 7px; font-size: 12px; }
.app-logo-file-wrap small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.app-admin-section { margin-top: 30px; }
.admin-app-list { display: grid; gap: 10px; }
.admin-app-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto auto; align-items: center; gap: 15px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.app-logo-wrap-compact { width: 58px; height: 58px; flex-basis: 58px; border-radius: 13px; }
.admin-app-details { min-width: 0; }
.admin-app-details strong { display: block; margin-bottom: 4px; font-size: 15px; }
.admin-app-details p { margin: 0 0 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.admin-app-platforms { color: var(--muted-2); font-size: 10px; }
.app-status { padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.app-status-published { color: var(--success); background: rgba(54, 190, 145, .1); }
.app-status-draft { color: var(--warning); background: rgba(220, 165, 67, .12); }
.admin-app-actions { display: flex; gap: 7px; }
.platform-logo-manager { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.platform-logo-card { min-width: 0; display: flex; align-items: center; flex-direction: column; gap: 9px; padding: 15px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: center; }
.platform-logo-preview { width: 54px; height: 54px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.platform-logo-preview img { width: 100%; height: 100%; padding: 6px; object-fit: contain; }
.platform-logo-preview .platform-brand-fallback { width: 100%; height: 100%; border-radius: 0; }
.platform-logo-card strong { font-size: 12px; }
.platform-upload-label { position: relative; overflow: hidden; cursor: pointer; }
.platform-upload-label input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; cursor: pointer; }
.brand-resource-links { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.brand-resource-links a { color: var(--accent); font-size: 12px; font-weight: 650; text-decoration: none; }
.brand-resource-links a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  .app-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-brand-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .platform-logo-manager { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    flex: 0 0 280px;
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: 18px 0 55px rgba(0, 0, 0, .28);
  }
  .sidebar.sidebar-open { transform: translateX(0); }
  .sidebar-nav { min-height: 0; }
  .app-library-grid { grid-template-columns: 1fr; }
  .app-library-toolbar { grid-template-columns: 1fr; }
  .platform-brand-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .platform-logo-manager { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-form-grid { grid-template-columns: 1fr; }
  .app-form-wide { grid-column: auto; }
  .admin-app-row { grid-template-columns: 50px minmax(0, 1fr); gap: 10px; }
  .admin-app-row .app-status { grid-column: 2; justify-self: start; }
  .admin-app-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .app-heading-actions { width: 100%; justify-content: flex-start; }
  .platform-showcase-heading { align-items: flex-start; flex-direction: column; }
  .app-manager-panel { padding: 18px; }
}

@media (max-width: 980px) and (min-width: 761px) {
  .sidebar { width: 235px; flex-basis: 235px; }
}
.content-area h1 { font-size: clamp(30px, 3vw, 42px); line-height: 1.14; }
.content-area h2 { font-size: clamp(21px, 2vw, 26px); line-height: 1.25; }
.content-area .subtle { font-size: 14px; line-height: 1.65; }
.content-area label { font-size: 13px; }
.content-area input:not([type="checkbox"]):not([type="radio"]),
.content-area textarea,
.content-area select { font-size: 14px; min-height: 46px; }
.content-area textarea { min-height: 105px; }

@media (max-width: 760px) {
  .content-area input:not([type="checkbox"]):not([type="radio"]),
  .content-area textarea,
  .content-area select { font-size: 16px; }
  .app-heading-actions { justify-content: flex-start; }
}

.nav-icon svg,
#mobile-menu-btn svg,
.sidebar-logout svg,
.theme-icon svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-logout > span { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: 0 0 20px; }
.theme-icon { display: inline-flex; align-items: center; justify-content: center; }

.app-form-status { min-height: 22px; margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.app-disclaimer > span svg,
.app-search-icon {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.app-search-wrap input { padding-left: 43px; }


/* V7.2 — TV subscription term and expiry status */
.tv-subscription-editor {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.tv-subscription-editor > .eyebrow { margin: 0; }
.tv-expiry-preview {
  padding: 11px 13px;
  border: 1px solid rgba(25, 213, 194, .2);
  border-radius: 10px;
  background: rgba(25, 213, 194, .07);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}
.tv-subscription-status {
  margin: 12px 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.tv-subscription-ok {
  border-color: rgba(54, 190, 145, .25);
  background: rgba(54, 190, 145, .08);
  color: var(--success);
}
.tv-subscription-warning {
  border-color: rgba(220, 165, 67, .3);
  background: rgba(220, 165, 67, .1);
  color: var(--warning);
}
.tv-subscription-expired {
  border-color: rgba(229, 91, 91, .28);
  background: rgba(229, 91, 91, .09);
  color: var(--danger);
}
.tv-subscription-neutral {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--muted);
}
.user-meta .tv-assigned,
.user-meta .tv-not-assigned {
  line-height: 1.5;
}
#license-card[hidden] { display: none !important; }
@media (max-width: 760px) {
  .tv-subscription-editor { padding: 13px; }
  .tv-subscription-status { font-size: 12px; }
}

/* V8.3 — Secure OTP request quotas, member service indicator and password visibility */
.password-input-wrap { position: relative; width: 100%; min-width: 0; }
.password-input-wrap input { width: 100%; padding-right: 52px; }
.input-wrap.password-input-wrap input { padding-left: 42px; padding-right: 52px; }
.password-visibility-toggle {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 8px;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
}
.password-visibility-toggle:hover { background: var(--surface-3); color: var(--accent); }
.password-visibility-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mobile-login-brand { display: none; }

.otp-quota-note {
  min-height: 20px;
  margin: 4px 0 0;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 650;
}
.member-service-status {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}
.service-indicator-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 4px rgba(255,120,132,.1); }
.service-indicator-dot.is-active { background: var(--success); box-shadow: 0 0 0 4px rgba(54,214,163,.12); }
.service-indicator-dot.is-inactive { background: var(--danger); }

.user-row { grid-template-columns: minmax(145px, 1.05fr) minmax(165px, .85fr) minmax(180px, .9fr) minmax(210px, 1.2fr); }
.user-list-header { grid-template-columns: 1.05fr .85fr .9fr 1.2fr; }
.user-otp-quota-control { min-width: 0; display: grid; gap: 6px; align-content: center; }
.user-otp-quota-control > label { margin: 0; color: var(--muted-2); font-size: 10px; }
.user-otp-quota-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; align-items: center; }
.user-otp-quota-row select { min-width: 0; min-height: 34px; padding: 6px 8px; font-size: 11px; }
.user-otp-quota-usage { color: var(--muted); font-size: 10px; }
.user-otp-quota-control .link-button { justify-self: start; font-size: 10px; }

@media (max-width: 760px) {
  .login-screen {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  }
  .login-story { display: none !important; }
  .login-side { width: 100%; max-width: 480px; padding: 0; align-items: stretch; }
  .mobile-login-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 22px; }
  .mobile-login-brand img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(25,213,194,.14)); }
  .mobile-login-brand strong { display: block; color: var(--text); font-family: Manrope, sans-serif; font-size: 13px; letter-spacing: .12em; }
  .mobile-login-brand small { display: block; margin-top: 4px; color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
  .login-side-top { width: 100%; margin: 0 0 12px; justify-content: flex-end; }
  .secure-label { font-size: 9px; }
  .login-card { width: 100%; max-width: none; margin: 0; padding: clamp(23px, 6vw, 32px); border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
  .login-card-mark { width: 46px; height: 46px; margin-bottom: 18px; border-radius: 14px; }
  .login-card h2 { font-size: clamp(24px, 7vw, 29px); line-height: 1.15; }
  .login-card .subtle { font-size: 13px; line-height: 1.6; margin-bottom: 20px; }
  .login-card label { font-size: 13px; margin-bottom: 6px; }
  .login-card input { min-height: 52px; font-size: 16px; }
  .login-card .button-wide { min-height: 53px; font-size: 14px; }
  .login-assurance { margin-top: 21px; padding-top: 17px; }
  .login-side-foot { margin: 17px auto 0; text-align: center; font-size: 8px; }
  .user-row { grid-template-columns: 1fr; }
  .user-list-header { display: none; }
  .user-otp-quota-row { grid-template-columns: minmax(0,1fr) auto; }
  .member-service-status { padding: 12px 14px; }
}
@media (max-width: 420px) {
  .login-screen { padding-left: 12px; padding-right: 12px; }
  .login-card { padding: 22px 19px; }
  .login-side-top { margin-bottom: 9px; }
  .mobile-login-brand { margin-bottom: 16px; }
  .mobile-login-brand img { width: 43px; height: 43px; }
  .otp-actions { flex-direction: column; }
  .otp-actions .button { width: 100%; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .user-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .user-list-header { display: none; }
  .user-actions { justify-content: flex-start; }
}


/* Editable platform catalogue */
.platform-manager-form{margin:16px 0 22px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2,var(--surface))}
.platform-edit-card{display:grid;grid-template-columns:64px minmax(120px,1fr) auto auto auto;align-items:center;gap:12px}
.platform-edit-details{display:flex;flex-direction:column;gap:4px;min-width:0}
.platform-edit-details small{font-size:11px;overflow-wrap:anywhere}
.platform-edit-actions{display:flex;gap:6px;flex-wrap:wrap}
.platform-logo-manager{display:grid;grid-template-columns:1fr;gap:10px}
.platform-logo-card .platform-logo-preview{width:58px;height:58px}
.platform-logo-card .platform-upload-label{white-space:nowrap}
.platform-logo-input{max-width:1px}
@media(max-width:760px){
 .platform-edit-card{grid-template-columns:54px 1fr;gap:10px}
 .platform-edit-actions{grid-column:1/-1}
 .platform-edit-card>.platform-upload-label,.platform-edit-card>button{grid-column:span 1}
 .platform-edit-card .platform-logo-preview{width:50px;height:50px}
}
