:root {
  --bg: #0b0713;
  --bg-2: #120a1f;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-solid: #17102a;
  --ink: #f3f0fb;
  --ink-soft: #b9b2d0;
  --muted: #8a83a3;
  --line: rgba(255, 255, 255, 0.09);
  --primary: #7c5cff;
  --primary-2: #a884ff;
  --primary-ink: #b9a5ff;
  --primary-soft: rgba(124, 92, 255, 0.16);
  --accent: #22d3a6;
  --accent-soft: rgba(34, 211, 166, 0.14);
  --amber: #f6b73c;
  --amber-soft: rgba(246, 183, 60, 0.14);
  --red: #ff5d5d;
  --red-soft: rgba(255, 93, 93, 0.14);
  --topbar-bg: rgba(11, 7, 19, 0.72);
  --page-bg: var(--bg);
  --hero-panel-bg: linear-gradient(160deg, #1c1140, #0d0820);
  --toast-bg: #1a1230;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.55);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root[data-theme="light"] {
  --bg: #f7f8fc;
  --bg-2: #eef2ff;
  --surface: rgba(15, 23, 42, 0.045);
  --surface-2: rgba(15, 23, 42, 0.075);
  --surface-solid: #ffffff;
  --ink: #171427;
  --ink-soft: #57506b;
  --muted: #7b738b;
  --line: rgba(30, 41, 59, 0.13);
  --primary: #7657ff;
  --primary-2: #9b74ff;
  --primary-ink: #6447df;
  --primary-soft: rgba(118, 87, 255, 0.12);
  --accent: #12b997;
  --accent-soft: rgba(18, 185, 151, 0.12);
  --amber-soft: rgba(246, 183, 60, 0.16);
  --red-soft: rgba(255, 93, 93, 0.13);
  --topbar-bg: rgba(255, 255, 255, 0.78);
  --page-bg: linear-gradient(180deg, #f9fbff 0%, #eef8f7 100%);
  --hero-panel-bg: linear-gradient(160deg, #ffffff, #eaf2ff);
  --toast-bg: #ffffff;
  --shadow-md: 0 18px 42px rgba(45, 39, 90, 0.12);
  --shadow-lg: 0 28px 60px rgba(45, 39, 90, 0.18);
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--page-bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 40% at 15% -5%, rgba(124, 92, 255, 0.4), transparent 60%),
    radial-gradient(45% 40% at 90% 0%, rgba(168, 132, 255, 0.28), transparent 60%),
    radial-gradient(60% 50% at 50% 100%, rgba(34, 211, 166, 0.1), transparent 65%);
}
:root[data-theme="light"] .aurora {
  background:
    radial-gradient(45% 35% at 12% -4%, rgba(124, 92, 255, 0.18), transparent 62%),
    radial-gradient(40% 35% at 86% 0%, rgba(34, 211, 166, 0.14), transparent 64%),
    radial-gradient(55% 42% at 50% 100%, rgba(14, 165, 233, 0.1), transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Buttons */
.btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  color: var(--ink);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 10px 26px rgba(124, 92, 255, 0.4);
}
.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(124, 92, 255, 0.5);
}
.btn-outline {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
}
.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.btn-lg {
  padding: 0.8rem 1.5rem;
  font-size: 0.98rem;
}
.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}
.btn-block {
  width: 100%;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 1.6rem;
  background: var(--topbar-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand-lockup {
  min-width: 0;
}
.brand-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 186px;
  height: 56px;
  padding: 0.32rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(16, 24, 64, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.brand-logo-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(16, 24, 64, 0.16);
}
.brand-logo-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 24px rgba(124, 92, 255, 0.4);
}
.premium-mark {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brand-mark.brand-logo {
  padding: 0;
  overflow: hidden;
  background: transparent;
}
.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-text strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-text strong span {
  color: var(--primary-ink);
}
.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
}
.nav-tabs {
  display: flex;
  gap: 0.3rem;
  margin-left: 0.5rem;
  background: var(--surface-2);
  padding: 0.25rem;
  border-radius: 999px;
}
.nav-tab {
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.nav-tab svg,
.icon-pill svg {
  width: 1rem;
  height: 1rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}
.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.theme-toggle {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.48rem 0.8rem;
  cursor: pointer;
}
.theme-toggle:hover {
  color: var(--primary-ink);
  border-color: var(--primary);
}
.chip {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}
.status-chip.premium {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--primary);
  display: grid;
  place-items: center;
  color: #fff;
  background-color: #183fb8;
  font-weight: 900;
  cursor: pointer;
}

/* Shell / views */
.shell {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.6rem 4rem;
}
.view-section {
  display: none;
  animation: fade 0.35s ease;
}
.view-section.active {
  display: block;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.14), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 2.4rem;
  margin-bottom: 2.5rem;
  overflow: hidden;
}
.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-ink);
  background: var(--primary-soft);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.hero-copy h1 {
  font-size: 2.15rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0.9rem 0 0.7rem;
}
.hero-copy p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 44ch;
  margin: 0 0 1.4rem;
}
.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.hero-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}
.hero-meta li + li {
  position: relative;
  padding-left: 0.75rem;
}
.hero-meta li + li::before {
  content: "";
  position: absolute;
  left: -0.2rem;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line);
  transform: translateY(-50%);
}
.hero-panel {
  position: relative;
  border-radius: 20px;
  background: var(--hero-panel-bg);
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.hero-panel-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.9), transparent 70%);
  filter: blur(12px);
  animation: float 6s ease-in-out infinite;
}
.hero-orb {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.hero-orb.logo-orb {
  padding: 0;
  overflow: hidden;
  background: transparent;
}
.hero-orb.logo-orb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-panel-caption {
  position: absolute;
  bottom: 1rem;
  z-index: 1;
  color: var(--ink-soft);
  font-size: 0.8rem;
  margin: 0;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(-12px);
  }
  50% {
    transform: translateY(12px);
  }
}

/* Section head */
.section-head {
  margin-bottom: 1.3rem;
}
.section-head h2 {
  font-size: 1.4rem;
  margin: 0 0 0.3rem;
}
.section-head p {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
}

/* Channel grid */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1.1rem;
}
.channel-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.05rem 0.95rem;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.channel-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.55);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.08), var(--surface-solid));
  box-shadow: 0 18px 38px rgba(65, 55, 120, 0.16);
}
.channel-button {
  border: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-family: inherit;
  color: inherit;
}
.channel-button.display-only,
.channel-button.display-only:disabled {
  cursor: default;
  opacity: 1;
}
.channel-button.display-only:disabled * {
  pointer-events: none;
}
.gpt-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gpt-icon.has-image {
  background: transparent;
}
.gpt-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.channel-meta {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.channel-meta strong {
  font-size: 1rem;
  transition: color 0.18s ease;
}
.channel-card:hover .gpt-icon {
  transform: scale(1.04);
  box-shadow: 0 14px 28px rgba(33, 24, 80, 0.18);
}
.channel-card:hover .channel-meta strong {
  color: var(--primary-ink);
}
.channel-meta span {
  font-size: 0.76rem;
  color: var(--muted);
}
.channel-cookie {
  margin-top: 0.4rem;
  font-size: 0.72rem !important;
  font-weight: 600;
  color: var(--muted);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-2);
  display: inline-block;
}
.channel-cookie.ready {
  color: var(--accent);
  background: var(--accent-soft);
}
.channel-cookie.warn {
  color: var(--amber);
  background: var(--amber-soft);
}
.access-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.access-badge.premium {
  color: var(--accent);
  background: var(--accent-soft);
}
.access-badge.lock {
  color: #6b6382;
  background: rgba(107, 99, 130, 0.12);
}
.empty-block {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* Account dashboard */
.account-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.4rem;
  align-items: start;
}
.acct-tabs {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  background: var(--surface-2);
  padding: 0.3rem;
  border-radius: 14px;
  margin-bottom: 1.3rem;
}
.acct-tab {
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--ink-soft);
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
}
.acct-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}
.acct-panel {
  display: none;
}
.acct-panel.active {
  display: block;
  animation: fade 0.3s ease;
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}
.glass-card + .glass-card {
  margin-top: 1.2rem;
}
.card-title {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1.3rem;
}
.card-title.tight {
  align-items: center;
  margin-bottom: 1rem;
}
.card-title h3 {
  margin: 0;
  font-size: 1.1rem;
}
.card-title small {
  color: var(--muted);
  font-size: 0.82rem;
}
.card-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: var(--primary-soft);
}
.count-badge {
  font-size: 0.72rem;
  color: var(--ink-soft);
  background: var(--surface-2);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.3rem;
}

/* Subscription card */
.sub-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.sub-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  flex: 0 0 auto;
}
.sub-info {
  flex: 1;
  min-width: 0;
}
.sub-info h3 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sub-info .meta {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.sub-price {
  text-align: right;
}
.sub-price strong {
  font-size: 1.5rem;
}
.sub-price span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}
.pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.pill.green {
  color: var(--accent);
  background: var(--accent-soft);
}
.pill.gray {
  color: var(--muted);
  background: var(--surface-2);
}
.sub-cta {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.discount-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(124, 92, 255, 0.28);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 90% 20%, rgba(34, 211, 166, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(124, 92, 255, 0.15), var(--surface));
  box-shadow: var(--shadow-md);
}
.discount-card.unavailable {
  opacity: 0.78;
}
.discount-info {
  min-width: 0;
}
.discount-info h4 {
  margin: 0.4rem 0 0.3rem;
  font-size: 1.05rem;
}
.discount-info p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.discount-badge {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.discount-price {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}
.discount-price strong {
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}
.price-before {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: line-through;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}
.plan-card {
  position: relative;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
}
.plan-card.featured {
  border-color: rgba(34, 211, 166, 0.42);
  background: linear-gradient(145deg, var(--accent-soft), var(--surface));
}
.plan-card h4 {
  margin: 0;
  font-size: 1rem;
}
.plan-card p {
  min-height: 2.4em;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.plan-badge {
  width: fit-content;
  color: var(--primary-ink);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}
.plan-price {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

/* Transactions */
.txn-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
.txn-item + .txn-item {
  margin-top: 0.8rem;
}
.txn-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  flex: 0 0 auto;
}
.txn-info {
  flex: 1;
  min-width: 0;
}
.txn-info strong {
  display: block;
  font-size: 1rem;
}
.txn-info small {
  color: var(--muted);
  font-size: 0.78rem;
  display: block;
  line-height: 1.5;
}
.txn-amount {
  text-align: right;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}

/* stat row (access) */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.3rem;
}
.stat-box {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}
.stat-box span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  margin-bottom: 0.35rem;
}
.stat-box strong {
  font-size: 1.15rem;
}
.log-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.log-row:last-child {
  border-bottom: none;
}
.log-row small {
  color: var(--muted);
}

/* Login logs / sessions */
.session-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.8rem;
  background: var(--surface);
}
.session-item.active {
  border-color: rgba(34, 211, 166, 0.5);
  background: rgba(34, 211, 166, 0.06);
}
.session-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.session-head .dev {
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.session-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.76rem;
  margin: 0.15rem 0;
}
.session-line.here {
  color: var(--accent);
}
.notice-card {
  display: flex;
  gap: 0.8rem;
  background: rgba(124, 92, 255, 0.08);
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-top: 1.2rem;
}
.notice-card strong {
  font-size: 0.9rem;
}
.notice-card p {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Request form */
.req-form {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.3rem;
}
.req-form select,
.req-form textarea {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  resize: vertical;
}
.req-form select:focus,
.req-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.muted {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}
.muted code,
.steps code {
  background: var(--surface-2);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-size: 0.85em;
}
.steps {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.8;
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}
.extension-download {
  margin: 1rem 0 1.1rem;
}
.extension-empty {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0.9rem 1rem;
  font-size: 0.86rem;
}
.extension-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 1rem;
}
.extension-file div {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}
.extension-file strong {
  overflow-wrap: anywhere;
}
.extension-file small {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%) translateY(20px);
  z-index: 40;
  background: var(--toast-bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.85rem 1.3rem;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  max-width: min(90vw, 480px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast:not([hidden]) {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast[data-type="success"] {
  border-color: rgba(34, 211, 166, 0.5);
}
.toast[data-type="warning"] {
  border-color: rgba(246, 183, 60, 0.5);
}
.toast[data-type="error"] {
  border-color: rgba(255, 93, 93, 0.5);
}

/* Modal */
.modal {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0;
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  width: 92vw;
  background: var(--surface-solid);
  color: var(--ink);
}
.modal::backdrop {
  background: rgba(5, 3, 10, 0.7);
  backdrop-filter: blur(4px);
}
.modal-body {
  position: relative;
  padding: 2.2rem 2rem;
  text-align: center;
}
.modal-icon {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
}
.modal-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.modal-body p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 1.5rem;
}
.modal-actions {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: var(--surface-2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.modal-close:hover {
  background: var(--line);
}

/* Admin-specific (/yazid515969) */
.admin-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.6rem 4rem;
  position: relative;
  z-index: 1;
}
.admin-gate {
  display: grid;
  place-items: center;
  min-height: 60vh;
}
.admin-gate-card {
  text-align: center;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.admin-gate-card h2 {
  margin: 0 0 0.6rem;
}
.admin-gate-card p {
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}
.admin-columns {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.3rem;
  align-items: start;
}
.extension-admin-card {
  margin-top: 1.3rem;
}
.users-admin-card {
  margin-top: 1.3rem;
}
.tutorial-admin-card {
  margin-top: 1.3rem;
}
.extension-package-form {
  max-width: 560px;
}
.tutorial-form {
  max-width: 720px;
}
.form {
  display: grid;
  gap: 1rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.field input {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
}
.field input:focus {
  outline: none;
  border-color: var(--primary);
}
.field input[type="file"] {
  padding: 0.5rem;
  font-size: 0.82rem;
}
.upload-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.icon-preview {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  overflow: hidden;
  font-size: 0.85rem;
}
.icon-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hidden-json {
  display: none;
}
.status-line {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  min-height: 1.1em;
}
.admin-channel {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  margin-bottom: 0.7rem;
  background: var(--surface);
}
.channel-admin-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  overflow: hidden;
  flex: 0 0 auto;
}
.channel-admin-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-channel-info {
  flex: 1;
  min-width: 0;
}
.admin-channel-info strong {
  display: block;
}
.cookie-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.cookie-pill.ready {
  color: var(--accent);
  background: var(--accent-soft);
}
.admin-action-stack {
  display: grid;
  gap: 0.35rem;
  min-width: 150px;
}
.admin-action-stack label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: grid;
  gap: 0.15rem;
}
.admin-action-stack input {
  font-family: inherit;
  font-size: 0.72rem;
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
}
.admin-action-stack button {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.74rem;
  color: var(--red);
  background: var(--red-soft);
  border: none;
  padding: 0.35rem;
  border-radius: 8px;
  cursor: pointer;
}
.admin-user-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}
.admin-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  background: var(--surface);
}
.admin-user-info {
  min-width: 0;
}
.admin-user-info strong,
.admin-user-info small {
  display: block;
  overflow-wrap: anywhere;
}
.admin-user-info small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.admin-user-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.admin-user-controls select {
  min-width: 130px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.48rem 0.65rem;
  color: var(--ink);
  background: var(--surface-solid);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
}
.admin-user-controls button {
  border: none;
  border-radius: 10px;
  padding: 0.52rem 0.75rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

/* User redesign */
.app-topbar {
  min-height: 74px;
  padding: 0.95rem 2rem;
  box-shadow: 0 10px 34px rgba(46, 40, 93, 0.08);
}
.top-nav-tabs {
  margin-left: 2rem;
}
.theme-segment {
  display: flex;
  gap: 0.2rem;
  padding: 0.28rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-md);
}
.theme-segment button {
  border: none;
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  color: var(--ink-soft);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}
.theme-segment button.active {
  color: var(--primary-ink);
  background: var(--primary-soft);
}
.icon-pill {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--surface-solid);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.app-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 74px);
}
.side-rail {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 2rem 1.35rem;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.36);
}
:root[data-theme="dark"] .side-rail {
  background: rgba(11, 7, 19, 0.45);
}
.side-menu {
  display: grid;
  gap: 0.55rem;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 0.82rem 0.9rem;
  color: var(--ink-soft);
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.side-link span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--primary-ink);
  font-size: 0.72rem;
}
.side-link svg,
.side-card-icon svg,
.card-icon svg,
.sub-icon svg,
.txn-icon svg,
.notice-icon svg,
.empty-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.side-link svg {
  width: 1rem;
  height: 1rem;
}
.side-link.active,
.side-link:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 16px 32px rgba(124, 92, 255, 0.28);
}
.side-link.active span,
.side-link:hover span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}
.side-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: var(--surface-solid);
  box-shadow: var(--shadow-md);
}
.side-card strong {
  display: block;
  margin-bottom: 0.35rem;
}
.side-card p {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}
.side-card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  color: var(--primary-ink);
  background: var(--primary-soft);
  font-weight: 900;
}
.side-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto;
  border-radius: 14px;
  color: var(--primary-ink);
  background: var(--primary-soft);
}
.empty-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
.help-card {
  margin-top: auto;
}
.content-shell {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 2rem;
}
.hero-modern {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  border: none;
  border-radius: 20px;
  padding: 2.3rem;
  color: #fff;
  background:
    radial-gradient(circle at 80% 35%, rgba(255, 255, 255, 0.28), transparent 2px),
    radial-gradient(circle at 92% 70%, rgba(255, 255, 255, 0.25), transparent 3px),
    linear-gradient(135deg, #5f55c9 0%, #254f9f 100%);
  box-shadow: 0 24px 60px rgba(53, 66, 151, 0.3);
}
.hero-modern .hero-copy {
  max-width: 760px;
}
.hero-modern .hero-copy p {
  color: rgba(255, 255, 255, 0.86);
}
.hero-modern .hero-badge {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}
.hero-modern .btn-outline {
  color: #172042;
  background: #fff;
  border-color: transparent;
}
.hero-pills {
  gap: 0.55rem;
}
.hero-pills li {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.48rem 0.78rem;
}
.hero-meta li + li {
  padding-left: 0.78rem;
}
.hero-pills li + li::before {
  display: none;
}
.channel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.tutorial-section {
  margin: 0 0 1.9rem;
}
.tutorial-head {
  margin-bottom: 0.8rem;
}
.tutorial-card {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.85rem;
  color: var(--ink);
  background: var(--surface-solid);
  box-shadow: var(--shadow-md);
  transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.tutorial-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, 0.52);
  background: linear-gradient(145deg, rgba(124, 92, 255, 0.08), var(--surface-solid));
  box-shadow: 0 22px 46px rgba(57, 47, 116, 0.16);
}
.tutorial-empty-card {
  cursor: default;
}
.tutorial-empty-card:hover {
  transform: none;
}
.tutorial-thumb,
.tutorial-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #25145c, #13b99c);
}
.tutorial-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tutorial-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 0, 0, 0.88);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, background 0.18s ease;
}
.tutorial-card:hover .tutorial-play {
  transform: translate(-50%, -50%) scale(1.05);
  background: #ff0000;
}
.tutorial-play svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}
.tutorial-placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.86);
}
.tutorial-placeholder svg {
  width: 3.6rem;
  height: 3.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tutorial-body {
  min-width: 0;
  padding: 0.4rem 0.35rem;
}
.tutorial-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  padding: 0.24rem 0.65rem;
  color: var(--primary-ink);
  background: var(--primary-soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.tutorial-body h3 {
  margin: 0 0 0.42rem;
  font-size: 1.15rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.tutorial-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.tutorial-action {
  display: inline-flex;
  align-items: center;
  margin-top: 0.85rem;
  border-radius: 999px;
  padding: 0.48rem 0.85rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-size: 0.82rem;
  font-weight: 800;
}
.modern-channel-grid {
  grid-template-columns: repeat(auto-fill, 190px);
  justify-content: start;
  align-items: start;
}
.modern-channel-grid .channel-card {
  width: 190px;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-solid);
  box-shadow: var(--shadow-md);
}
.modern-channel-grid .channel-button {
  gap: 0.72rem;
}
.modern-channel-grid .gpt-icon {
  width: 88px;
  height: 72px;
  border-radius: 16px;
}
.modern-channel-grid .channel-meta strong {
  font-size: 0.98rem;
}
.detail-pill {
  margin-top: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  color: var(--primary-ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.58rem 0.9rem;
  font-weight: 800;
  font-size: 0.82rem !important;
}

/* Responsive */
@media (max-width: 940px) {
  .hero,
  .account-grid,
  .admin-columns {
    grid-template-columns: 1fr;
  }
  .side-card {
    display: none;
  }
  .content-shell {
    padding: 1.2rem;
  }
  .modern-channel-grid {
    grid-template-columns: repeat(auto-fill, 180px);
  }
  .modern-channel-grid .channel-card {
    width: 180px;
    min-height: 180px;
  }
}
@media (min-width: 641px) and (max-width: 940px) {
  .app-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .side-rail {
    padding: 1.35rem 1rem;
  }
  .side-link {
    gap: 0.62rem;
    padding: 0.76rem 0.72rem;
    font-size: 0.86rem;
  }
}
@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .topbar,
  .app-layout,
  .content-shell,
  .view-section {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
  }
  .app-topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    min-height: 0;
    padding: 0.65rem 0.75rem;
    align-items: stretch;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }
  .app-layout {
    display: block;
    min-height: calc(100vh - 120px);
  }
  .app-topbar > * {
    min-width: 0;
    max-width: 100%;
  }
  .brand {
    width: 100%;
    justify-content: center;
  }
  .brand-logo-link {
    width: 132px;
    height: 42px;
    padding: 0.22rem 0.42rem;
    border-radius: 12px;
  }
  .app-topbar .top-nav-tabs {
    display: none;
  }
  .app-topbar .topbar-right {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: 100%;
    min-width: 0;
    margin-left: 0;
    justify-content: initial;
    gap: 0.45rem;
  }
  .status-chip {
    display: none;
  }
  .topbar-right .btn {
    flex: 1;
    min-width: 0;
    padding: 0.52rem 0.78rem;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .avatar {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
  .nav-tabs {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-left: 0;
    padding: 0.2rem;
    gap: 0.22rem;
  }
  .nav-tab {
    min-width: 0;
    justify-content: center;
    padding: 0.46rem 0.55rem;
    font-size: 0.78rem;
    overflow: hidden;
    white-space: nowrap;
  }
  .nav-tab svg {
    width: 0.9rem;
    height: 0.9rem;
  }
  .shell {
    padding: 1.4rem 1rem 3rem;
  }
  .side-rail {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 0.45rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom));
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    border-right: none;
    border-top: 1px solid var(--line);
    border-bottom: none;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 -16px 34px rgba(45, 39, 90, 0.14);
  }
  :root[data-theme="dark"] .side-rail {
    background: rgba(12, 8, 20, 0.92);
  }
  .side-menu {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.18rem;
    overflow: visible;
    padding-bottom: 0;
    width: 100%;
    min-width: 0;
  }
  .side-link {
    flex: initial;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 0.18rem;
    padding: 0.42rem 0.12rem;
    border-radius: 12px;
    font-size: 0.58rem;
    line-height: 1.05;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .side-link span {
    width: 24px;
    height: 24px;
    border-radius: 9px;
    flex: 0 0 auto;
  }
  .side-link svg {
    width: 0.92rem;
    height: 0.92rem;
  }
  .side-link.active,
  .side-link:hover {
    box-shadow: none;
  }
  .content-shell {
    padding: 0.9rem 0.75rem calc(6rem + env(safe-area-inset-bottom));
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .hero {
    padding: 1.6rem;
  }
  .hero-modern {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 1.05rem;
    border-radius: 16px;
    margin-bottom: 1.45rem;
    overflow: hidden;
  }
  .hero-copy,
  .hero-copy h1,
  .hero-copy p {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow-wrap: anywhere;
  }
  .hero-copy h1 {
    font-size: 1.24rem;
    line-height: 1.18;
    margin: 0.65rem 0 0.55rem;
  }
  .hero-copy p {
    font-size: 0.84rem;
    line-height: 1.45;
    margin-bottom: 1rem;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.9rem;
  }
  .hero-actions .btn {
    min-width: 0;
    padding: 0.62rem 0.75rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .hero-pills {
    gap: 0.35rem;
  }
  .hero-pills li {
    padding: 0.34rem 0.48rem;
    font-size: 0.7rem;
  }
  .theme-segment {
    flex: 0 0 auto;
    padding: 0.18rem;
    border-radius: 13px;
    box-shadow: none;
  }
  .theme-segment button {
    padding: 0.42rem 0.52rem;
    font-size: 0.72rem;
    border-radius: 10px;
  }
  .icon-pill {
    display: none;
  }
  .tutorial-section {
    margin-bottom: 1.45rem;
  }
  .tutorial-head {
    margin-bottom: 0.7rem;
  }
  .tutorial-head h2 {
    font-size: 1.25rem;
    margin: 0 0 0.2rem;
  }
  .tutorial-head p {
    font-size: 0.78rem;
    line-height: 1.35;
  }
  .tutorial-card {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 0.72rem;
    border-radius: 16px;
  }
  .tutorial-thumb,
  .tutorial-placeholder {
    border-radius: 13px;
  }
  .tutorial-body {
    padding: 0.15rem 0.1rem 0.25rem;
  }
  .tutorial-badge {
    display: none;
  }
  .tutorial-body h3 {
    font-size: 0.98rem;
  }
  .tutorial-body p {
    display: none;
  }
  .tutorial-action {
    display: none;
  }
  .channel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
  }
  .channel-head h2 {
    font-size: 1.25rem;
    margin: 0;
  }
  .channel-head p {
    font-size: 0.78rem;
    line-height: 1.35;
  }
  .channel-head > .btn,
  .channel-head > button {
    display: none;
  }
  .modern-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .modern-channel-grid .channel-card {
    width: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 0.72rem;
    border-radius: 14px;
  }
  .modern-channel-grid .channel-button {
    gap: 0.5rem;
  }
  .modern-channel-grid .gpt-icon {
    width: clamp(58px, 19vw, 72px);
    height: clamp(58px, 19vw, 72px);
    border-radius: 14px;
  }
  .modern-channel-grid .channel-meta strong {
    font-size: 0.82rem;
    line-height: 1.15;
  }
  .stat-row {
    grid-template-columns: 1fr;
  }
  .sub-card,
  .txn-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .discount-card {
    align-items: stretch;
    flex-direction: column;
    padding: 0.95rem;
  }
  .discount-price strong {
    font-size: 1.35rem;
  }
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .sub-price,
  .txn-amount {
    text-align: left;
  }
  .extension-file {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-user-row,
  .admin-user-controls {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .admin-user-row {
    display: grid;
  }
  .admin-user-controls {
    display: grid;
  }
  .theme-toggle {
    padding-inline: 0.7rem;
  }
}
@media (max-width: 420px) {
  .modern-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
