:root {
  --bg: #0a1223;
  --bg-2: #0f1830;
  --surface: rgba(18, 28, 52, 0.9);
  --surface-2: rgba(24, 38, 70, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --ink: #eff4ff;
  --muted: #9aabcb;
  --line: rgba(117, 140, 188, 0.18);
  --accent: #4ade80;
  --accent-2: #38bdf8;
  --danger: #fb7185;
  --warning: #fbbf24;
  --shadow: 0 26px 70px rgba(4, 10, 24, 0.3);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent 25%),
    radial-gradient(circle at 84% 12%, rgba(74, 222, 128, 0.09), transparent 18%),
    linear-gradient(180deg, #09101f, var(--bg) 45%, #07111f4, 0%);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.22;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

body.session-locked {
  min-height: , 0vh;
}

.shell {
  min-height: , 0vh;
  display: grid;
  grid-template-columns: 320px 1fr;
  max-width: ,680px;
  margin: 0 auto;
}

.session-locked .shell {
  grid-template-columns: minmax(0, 540px);
  justify-content: center;
  max-width: 620px;
  padding: 48px 20px;
}

.session-locked .sidebar {
  position: relative;
  height: auto;
  min-height: 0;
  border-right: none;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  background: rgba(10, 18, 35, 0.9);
  box-shadow: var(--shadow);
}

.session-locked .brand-block,
.session-locked .logout-link {
  display: none;
}

.session-locked .sidebar-topline {
  justify-content: flex-start;
  margin-bottom: 18px;
}

.session-locked .back-link {
  display: inline-flex;
  margin-bottom: 0;
}

.sidebar {
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(10, 18, 35, 0.82);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  height: , 0vh;
}

.sidebar-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.session-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.auth-indicator {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.back-link:hover { color: var(--ink); }

.logout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: linear-gradient(135deg, var(--accent-2), #4f46e5);
  color: white;
  border-radius: 999px;
  padding: 12px 19px;
  font-weight: 700;
  cursor: pointer;
  min-width: ,32px;
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.26);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.logout-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(79, 70, 229, 0.32);
}

.logout-link[hidden] {
  display: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 800;
}

.session-ready .auth-box,
.session-ready .brand-block,
.session-ready .sidebar-card {
  display: none;
}

.session-ready .shell {
  grid-template-columns: 1fr;
}

.session-ready .sidebar {
  position: static;
  height: auto;
  border-right: 0;
  background: transparent;
  backdrop-filter: none;
  padding: 20px 24px 0;
}

.brand-block h1 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: ,.02;
}

.sidebar-copy {
  margin: 0;
  color: var(--muted);
  line-height: ,.65;
}

.auth-box, .sidebar-card {
  margin-top: 22px;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-subpanel {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 10px;
}

.auth-subpanel[hidden] {
  display: none !important;
}

.link-button {
  border: none;
  background: transparent;
  color: var(--accent-2);
  padding: 0;
  font-weight: 700;
  cursor: pointer;
}

.link-button:hover {
  color: #7dd3fc;
}

.security-panel {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.security-panel-inner {
  display: grid;
  gap: 14px;
}

.security-card,
.security-form {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
}


.info-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.info-card-action {
  flex-shrink: 0;
}

.info-card-head .info-card-action {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 0.85rem;
}

.field-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 10px;
  align-items: center;
}

.field-icon-button {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  cursor: pointer;
}

.field-icon-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.security-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
}

.security-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.auth-box {
  position: relative;
  overflow: hidden;
}

.auth-box::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: ,70px;
  height: ,70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14), transparent 70%);
  pointer-events: none;
}

.auth-box h2, .sidebar-card h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.auth-tabs {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 16px;
  width: ,00%;
}

.auth-tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.auth-tab:hover {
  transform: translateY(-1px);
  color: var(--ink);
}

.auth-tab.active {
  color: #07111f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #22c55e);
}

.field { display: block; margin-bottom: 14px; }
.field span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.field input, .primary-button, .secondary-button {
  width: ,00%;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 13px 14px;
  background: var(--surface-2);
  color: var(--ink);
}
.field input::placeholder { color: #7587a9; }

.primary-button {
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #22c55e);
  color: #06230f;
  font-weight: 800;
}

.secondary-button {
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.button-stack { display: grid; gap: 10px; }

.hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: ,.55;
}

.sidebar-card a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 10px;
}
.sidebar-card a:last-child { margin-bottom: 0; }

.content { padding: 24px; }

body.session-locked .content {
  display: none;
}

.notice-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 18px;
}

.notice-bar.notice-info {
  border: 1px solid rgba(251, 191, 36, 0.16);
  background: rgba(251, 191, 36, 0.08);
  color: #fde8a6;
}

.notice-bar.notice-danger {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(127, 29, 29, 0.24);
  color: #ffe2e2;
}

.notice-icon {
  flex: 0 0 auto;
  font-size: 1.05rem;
  line-height: 1;
  margin-top: 1px;
}

.notice-copy {
  display: grid;
  gap: 2px;
}

.notice-copy strong {
  font-weight: 900;
  letter-spacing: 0.04em;
}

.notice-copy span {
  font-weight: 700;
}

.hero-panel, .metric-card, .panel {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(74, 222, 128, 0.08)),
    var(--surface);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 70%);
}

.hero-panel h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: ,.04;
  max-width: ,2ch;
}

.hero-copy {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  line-height: ,.7;
}

.hero-status { display: flex; align-items: flex-start; }

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-weight: 700;
}

.metrics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.45fr) minmax(0, 0.9fr);
  gap: 18px;
  margin-bottom: 20px;
  align-items: stretch;
}

.metric-card { padding: 18px; }
.metric-card,
.panel,
.info-card,
.access-card,
.list-item,
.plan-card,
.purchase-flow {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.metric-card:hover,
.panel:hover,
.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 90px rgba(4, 10, 24, 0.34);
  border-color: rgba(117, 140, 188, 0.24);
}
.metric-label {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 0.88rem;
}
.metric-card strong {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.metric-card p {
  margin: 0;
  color: var(--muted);
  line-height: ,.5;
}

.panel { padding: 20px; }
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  min-height: 48px;
}
.panel-head h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.panel-head .badge {
  align-self: flex-start;
}

.badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.plans-panel { margin-bottom: 20px; }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.plan-card {
  position: relative;
  border-radius: 22px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}
.plan-starter { box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.12); }
.plan-core { box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.16); }
.plan-yearly { box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.18); }

.plan-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.plan-name { font-weight: 800; font-size: 1.05rem; }
.plan-duration { color: var(--muted); font-size: 0.92rem; }
.plan-price {
  display: block;
  font-size: 2rem;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}
.plan-description { margin: 0 0 16px; color: var(--muted); line-height: ,.6; min-height: 78px; }
.plan-button {
  width: ,00%;
  border: none;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-2), #4f46e5);
  color: white;
}

.purchase-flow {
  position: relative;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}

.purchase-flow::before {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -60px;
  width: ,80px;
  height: ,80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.12), transparent 70%);
}
.purchase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.purchase-head h4 { margin: 6px 0 0; font-size: 1.12rem; }
.purchase-flow p { margin: 0 0 12px; color: var(--muted); line-height: ,.65; }
.purchase-note { color: #d8e3ff !important; }
.purchase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.primary-link, .secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
}
.primary-link {
  background: linear-gradient(135deg, var(--accent), #22c55e);
  color: #06230f;
}
.secondary-link {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255,255,255,0.02);
}

.content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: stretch;
}
.lower-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: stretch;
}

.panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.info-card, .access-card, .list-item {
  border-radius: 18px;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.info-card:hover,
.access-card:hover,
.list-item:hover,
.purchase-flow:hover {
  transform: translateY(-2px);
  border-color: rgba(117, 140, 188, 0.2);
}

.info-card span, .list-meta, .list-subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}
.info-card strong { display: block; margin-top: 8px; font-size: 1.02rem; }
.link-panel {
  margin-top: 14px;
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(117, 140, 188, 0.12);
}

.danger-panel {
  margin-top: 14px;
  border-radius: 18px;
  padding: 16px;
  background: rgba(251, 113, 133, 0.08);
  border: 1px solid rgba(251, 113, 133, 0.18);
}

.link-panel-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.link-panel-inner strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.link-panel-copy {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: ,.6;
}

.danger-panel-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.danger-panel-inner strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.danger-link,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 14px;
  padding: 13px 18px;
  background: linear-gradient(135deg, #fb7185, #ef4444);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(239, 68, 68, 0.24);
}

.danger-link:hover,
.danger-button:hover {
  transform: translateY(-1px);
}
.access-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.link-box { margin-top: 14px; }
.link-box strong {
  display: block;
  margin-top: 8px;
  line-height: ,.6;
  word-break: break-word;
}
.access-link-group {
  display: grid;
  gap: 14px;
}

.access-link-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  min-width: 0;
}

.access-link-scroll {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-weight: 700;
  scrollbar-width: thin;
}

.icon-button {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(117, 140, 188, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.qr-modal[hidden] {
  display: none;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.qr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 20, 0.7);
  backdrop-filter: blur(6px);
}

.qr-dialog {
  position: relative;
  width: min(92vw, 420px);
  margin: 8vh auto 0;
  padding: 26px;
  border-radius: 24px;
  background: rgba(10, 18, 35, 0.96);
  border: 1px solid rgba(117, 140, 188, 0.2);
  box-shadow: 0 36px 90px rgba(4, 10, 24, 0.45);
  text-align: center;
}

.qr-dialog h3 {
  margin: 0 0 18px;
  font-size: 1.4rem;
}

.qr-dialog img {
  width: min(,00%, 320px);
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border-radius: 22px;
  padding: 14px;
}

.qr-caption {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: ,.6;
}

.qr-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}

body.qr-open {
  overflow: hidden;
}

.delete-modal[hidden] {
  display: none;
}

.delete-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.delete-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 20, 0.78);
  backdrop-filter: blur(8px);
}

.delete-dialog {
  position: relative;
  width: min(92vw, 520px);
  margin: 10vh auto 0;
  padding: 28px;
  border-radius: 28px;
  background: rgba(10, 18, 35, 0.98);
  border: 1px solid rgba(251, 113, 133, 0.26);
  box-shadow: 0 40px 110px rgba(4, 10, 24, 0.48);
  text-align: center;
}

.delete-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(251, 113, 133, 0.08);
  border: 1px solid rgba(251, 113, 133, 0.22);
}

.delete-icon svg {
  width: 54px;
  height: 54px;
  fill: #fb7185;
}

.delete-dialog h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.delete-copy {
  margin: 0;
  color: #f4bfd0;
  line-height: ,.7;
}

.delete-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.delete-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}

body.delete-open {
  overflow: hidden;
}
.list-stack {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.panel-scroll-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  align-content: start;
}

.panel-support,
.panel-payments {
  min-height: 320px;
  max-height: 320px;
  min-width: 0;
}

.metric-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 154px;
}
.metric-status { grid-column: 1; }
.metric-support { grid-column: 2; }
.metric-access { grid-column: 3; }
.list-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
  margin-bottom: 6px;
}

.list-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 86px;
}

.list-subtitle {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-meta {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.empty-state {
  margin: 0;
  color: var(--muted);
  line-height: ,.65;
}
.tone-good { color: var(--accent); }
.tone-warn { color: var(--warning); }
.tone-danger { color: var(--danger); }

@media (max-width: ,,80px) {
  .shell, .content-grid, .lower-grid, .plans-grid, .metrics-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    position: static;
    height: auto;
  }
  .hero-panel { flex-direction: column; }

  .panel-support,
  .panel-payments {
    min-height: 280px;
    max-height: 280px;
  }
}

@media (max-width: 720px) {
  .sidebar-topline {
    flex-direction: column;
    align-items: stretch;
  }
  .session-actions {
    justify-content: space-between;
  }
  .auth-indicator {
    font-size: 0.9rem;
  }
  .link-panel-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .danger-panel-inner,
  .delete-actions {
    grid-template-columns: 1fr;
  }
  .danger-panel-inner {
    flex-direction: column;
    align-items: stretch;
  }
}


.profile-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 20px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 12px;
  background: #fff;
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.95rem;
}

.profile-notice .notice-icon {
  font-size: 1.1rem;
}

.profile-notice .notice-copy span {
  display: block;
}

.panel-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.panel-head-button {
  min-height: 38px;
  padding: 0 14px;
}

.device-link-box {
  margin-top: 10px;
}

.device-modal-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.device-modal[hidden] {
  display: none;
}

.device-modal {
  position: fixed;
  inset: 0;
  z-index: 65;
}

.device-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 20, 0.74);
  backdrop-filter: blur(7px);
}

.device-dialog {
  position: relative;
  width: min(92vw, 460px);
  margin: 9vh auto 0;
  padding: 24px;
  border-radius: 24px;
  background: rgba(10, 18, 35, 0.98);
  border: 1px solid rgba(117, 140, 188, 0.24);
  box-shadow: 0 34px 100px rgba(4, 10, 24, 0.45);
}

.device-dialog h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.device-caption {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.device-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.device-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
}

body.device-open {
  overflow: hidden;
}

.topup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.topup-amount {
  min-height: 42px;
  justify-content: center;
  padding: 0 10px;
}

@media (max-width: 680px) {
  .topup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.access-card,
.access-link-group,
.link-box,
.list-stack,
.list-item {
  min-width: 0;
}

.access-link-row {
  width: 100%;
  overflow: hidden;
}

.access-link-scroll {
  max-width: 100%;
}
