@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Sora:wght@600;700&display=swap");

:root {
  --bg-base: #07070c;
  --bg-accent: #130a1f;
  --ink: #f2eaff;
  --muted: #b9aad1;
  --card: #161124;
  --line: #302244;
  --primary: #a855f7;
  --primary-hover: #9333ea;
  --ring: rgba(168, 85, 247, 0.28);
  --stat-bg: #1b1530;
  --panel-bg: #1a142b;
  --card-bg: var(--card);
  --input-bg: #120f1f;
  --border-color: var(--line);
  --text-color: var(--ink);
  --text-muted: var(--muted);
  --text-accent: #d0b6ff;
  --color-primary: var(--primary);
  --danger: #b4232c;
}

[data-theme="dark"] {
  --bg-base: #040407;
  --bg-accent: #0f0718;
  --ink: #f6f0ff;
  --muted: #c4b3de;
  --card: #130e21;
  --line: #372651;
  --primary: #c084fc;
  --primary-hover: #a855f7;
  --ring: rgba(192, 132, 252, 0.3);
  --stat-bg: #1c1533;
  --panel-bg: #18122b;
  --card-bg: var(--card);
  --input-bg: #120d21;
  --border-color: var(--line);
  --text-color: var(--ink);
  --text-muted: var(--muted);
  --text-accent: #dfc7ff;
  --color-primary: var(--primary);
  --danger: #f87171;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 12%, rgba(168, 85, 247, 0.2), transparent 45%),
    radial-gradient(circle at 84% 88%, rgba(126, 34, 206, 0.16), transparent 38%),
    linear-gradient(145deg, var(--bg-base), var(--bg-accent));
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Sora", "Manrope", sans-serif;
  letter-spacing: -0.015em;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(36px);
  z-index: -1;
  opacity: 0.3;
}

.bg-shape-1 {
  width: 360px;
  height: 360px;
  background: #a855f7;
  top: -140px;
  right: -80px;
}

.bg-shape-2 {
  width: 300px;
  height: 300px;
  background: #6b21a8;
  bottom: -120px;
  left: -90px;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.center-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.card {
  width: min(520px, 100%);
  background: color-mix(in srgb, var(--card) 92%, #ffffff 8%);
  border: 1px solid color-mix(in srgb, var(--line) 82%, #ffffff 18%);
  border-radius: 24px;
  padding: 32px;
  box-shadow:
    0 24px 50px rgba(17, 45, 88, 0.12),
    0 2px 0 rgba(255, 255, 255, 0.5) inset;
  backdrop-filter: blur(10px);
  animation: slideIn 0.5s ease-out;
}

.auth-card {
  position: relative;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--primary), #c084fc);
}

.dashboard-shell {
  width: min(920px, 100%);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: color-mix(in srgb, var(--primary) 24%, transparent);
  color: #f3e8ff;
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  overflow: hidden;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hidden {
  display: none;
}

.stats-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.stat-item {
  border: 1px solid var(--line);
  background: var(--stat-bg);
  border-radius: 14px;
  padding: 12px;
}

.stat-item h2 {
  margin: 0 0 6px;
  font-size: 0.86rem;
  color: var(--muted);
}

.stat-item p {
  margin: 0;
  font-weight: 700;
  word-break: break-word;
}

.panel-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.panel-box {
  border: 1px solid var(--line);
  background: var(--panel-bg);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 25px rgba(88, 28, 135, 0.14);
}

.panel-box h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.panel-box p {
  margin: 0;
}

.status-list p + p {
  margin-top: 6px;
}

.compact-form {
  margin-top: 8px;
}

.pill-list {
  display: grid;
  gap: 8px;
}

.pill {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
}

.pill.warning {
  border-color: color-mix(in srgb, var(--primary) 55%, #f59e0b 45%);
  background: color-mix(in srgb, var(--primary) 18%, transparent);
}

.pill.info {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 20%, transparent);
}

.pill.success {
  border-color: color-mix(in srgb, var(--primary) 75%, #10b981 25%);
  background: color-mix(in srgb, var(--primary) 18%, transparent);
}

.activity-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.activity-list li {
  line-height: 1.35;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.activity-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 10px;
}

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

.pager {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.pager .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.muted {
  margin-top: 8px !important;
  color: var(--muted);
  font-size: 0.92rem;
}

.tips-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
}

.tips-list li + li {
  margin-top: 6px;
}

.dashboard-actions {
  margin-top: 16px;
}

.home-layout {
  min-height: 100vh;
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 28px 0 52px;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin: 0 0 0.45rem;
}

.section-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
}

.section-subtitle {
  margin: 0.45rem 0 0;
  color: var(--muted);
  max-width: 70ch;
}

.home-hero {
  width: 100%;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feature-card {
  width: 100%;
  padding: 18px;
}

.feature-card h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.home-cta {
  width: 100%;
  padding: 20px;
  text-align: left;
}

.home-cta h2 {
  margin: 0 0 8px;
}

.home-cta p {
  margin: 0;
  color: var(--muted);
}

h1 {
  margin: 10px 0 8px;
  line-height: 1.2;
}

.lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.badge {
  display: inline-block;
  margin: 0;
  background: color-mix(in srgb, var(--primary) 12%, white 88%);
  color: var(--primary);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input {
  width: 100%;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

select {
  width: 100%;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px;
  font-size: 0.98rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.45;
}

input:focus {
  outline: 3px solid var(--ring);
  border-color: var(--primary);
}

select:focus {
  outline: 3px solid var(--ring);
  border-color: var(--primary);
}

textarea:focus {
  outline: 3px solid var(--ring);
  border-color: var(--primary);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 800;
  font-family: "Manrope", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(168, 85, 247, 0.24);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  box-shadow: 0 12px 24px rgba(168, 85, 247, 0.32);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-danger {
  color: #fff;
  background: #9d2828;
}

.btn-danger:hover {
  background: #7b1a1a;
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--input-bg) 75%, white 25%);
}

.message {
  display: block;
  min-height: 22px;
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  font-weight: 600;
}

.message.success {
  color: #236640;
  background: #eaf7ef;
  border-color: #b8e1c7;
}

.message.error {
  color: #8c1f1f;
  background: #fbeeee;
  border-color: #efc3c3;
}

.auth-separator {
  position: relative;
  margin: 14px 0;
  text-align: center;
}

.auth-separator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: color-mix(in srgb, var(--line) 80%, #ffffff 20%);
}

.auth-separator span {
  position: relative;
  display: inline-block;
  padding: 0 10px;
  color: var(--muted);
  font-weight: 700;
  background: color-mix(in srgb, var(--card) 92%, #ffffff 8%);
}

.btn-discord-login {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--primary) 45%, #5865f2 55%);
  color: #ecf0ff;
  background: linear-gradient(135deg, #5865f2, #404eed);
  box-shadow: 0 12px 24px rgba(88, 101, 242, 0.32);
}

.btn-discord-login svg {
  width: 18px;
  height: 18px;
}

.btn-discord-login:hover {
  background: #404eed;
  box-shadow: 0 14px 26px rgba(88, 101, 242, 0.4);
}

.switch-link {
  margin: 14px 0 0;
  color: var(--muted);
}

.switch-link a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.switch-link a:hover {
  text-decoration: underline;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 580px) {
  .card {
    padding: 22px;
    border-radius: 16px;
  }

  .dashboard-header {
    align-items: flex-start;
  }

  .avatar {
    width: 48px;
    height: 48px;
    font-size: 0.85rem;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .activity-filters {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    flex-direction: column;
  }

  .pager {
    flex-direction: column;
    align-items: stretch;
  }

  .actions {
    flex-direction: column;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* Theme toggle */
.theme-toggle {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 100;
  background: color-mix(in srgb, var(--card) 82%, #ffffff 18%);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(88, 28, 135, 0.24);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

/* Discord Floating Button */
.discord-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 64px;
  height: 64px;
  background: #5865f2;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 99;
  text-decoration: none;
  padding: 0;
  color: white;
}

.discord-button svg {
  width: 34px;
  height: 34px;
}

.discord-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  background: #4752c4;
}

.discord-button:active {
  transform: scale(0.95);
}

/* Instagram Floating Button */
.instagram-button {
  position: fixed;
  bottom: 96px;
  left: 20px;
  width: 64px;
  height: 64px;
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 8%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 99;
  text-decoration: none;
  padding: 0;
  color: white;
}

.instagram-button svg {
  width: 32px;
  height: 32px;
}

.instagram-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.instagram-button:active {
  transform: scale(0.95);
}

/* Header Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 1rem 0;
  background: color-mix(in srgb, var(--bg-base) 76%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  padding: 0.6rem 1rem;
  background: var(--input-bg);
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.94rem;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: var(--card);
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.nav-link.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.34);
}

.connected-account-actions {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.connected-account-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.42rem 0.75rem 0.42rem 0.45rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  background: color-mix(in srgb, var(--card) 86%, white 14%);
  text-decoration: none;
  color: var(--ink);
  max-width: min(260px, 100%);
}

.connected-account-logout {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  line-height: 1;
}

.connected-account-avatar-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.connected-account-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.84rem;
  color: #f3e8ff;
  background: color-mix(in srgb, var(--primary) 34%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent);
}

.connected-account-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent);
}

.connected-account-meta {
  display: grid;
  min-width: 0;
}

.connected-account-meta strong {
  font-size: 0.86rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  width: min(480px, 92vw);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.modal-box h3 {
  margin: 0 0 12px;
}

.modal-box img {
  display: block;
  margin: 12px auto;
  border-radius: 8px;
}

/* Sessions table */
.sessions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 8px;
}

.sessions-table th,
.sessions-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
}

.sessions-table th {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.sessions-table .current-badge {
  background: color-mix(in srgb, var(--primary) 24%, transparent);
  color: #f3e8ff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

[data-theme="dark"] .sessions-table .current-badge {
  background: color-mix(in srgb, var(--primary) 28%, transparent);
  color: #f5ecff;
}

/* Drag & drop upload */
.drop-zone {
  border: 2px dashed var(--line);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.drop-zone.drag-over {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}

.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.drop-zone-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 8px auto 0;
  display: block;
}

/* Charts */
.chart-container {
  position: relative;
  height: 180px;
  margin-top: 10px;
}

/* Admin table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 12px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 8px 8px;
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge {
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-badge.active { background: color-mix(in srgb, var(--primary) 24%, transparent); color: #f3e8ff; }
.status-badge.suspended { background: #f8d7da; color: #721c24; }
[data-theme="dark"] .status-badge.active { background: color-mix(in srgb, var(--primary) 32%, transparent); color: #f8f0ff; }
[data-theme="dark"] .status-badge.suspended { background: #4d1e1e; color: #f97171; }

.admin-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-search input {
  flex: 1;
}

.page-main {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.section-spaced {
  margin-top: 1.5rem;
}

.header-actions {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.cart-btn {
  position: relative;
  border: none;
  background: color-mix(in srgb, var(--card) 78%, #ffffff 22%);
  border-radius: 12px;
  width: 48px;
  height: 48px;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(17, 45, 88, 0.14);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.cart-modal {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  z-index: 1000;
  flex-direction: column;
  background: var(--card);
  border-left: 1px solid var(--border-color);
  box-shadow: -12px 0 30px rgba(10, 28, 54, 0.22);
}

.cart-modal-header {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-modal-close {
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}

.cart-modal-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.cart-modal-footer {
  padding: 1rem 1.25rem 1.2rem;
  border-top: 1px solid var(--border-color);
}

.cart-total-row {
  margin-bottom: 1rem;
  font-size: 1.07rem;
}

.cart-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.34);
  z-index: 999;
}

.w-100 {
  width: 100%;
}

.mt-sm {
  margin-top: 0.35rem;
}

.mb-sm {
  margin-bottom: 0.5rem;
}

.cart-empty {
  text-align: center;
  padding: 2rem;
}

.cart-row {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cart-row-main {
  flex: 1;
  min-width: 0;
}

.cart-price {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cart-qty-btn {
  border: none;
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--ink);
  padding: 0.25rem 0.55rem;
  cursor: pointer;
}

.cart-qty-value {
  min-width: 30px;
  text-align: center;
}

.cart-remove-wrap {
  margin-left: 0.35rem;
}

.cart-remove-btn {
  background: transparent;
  border: none;
  color: var(--danger);
  font-size: 1.25rem;
  cursor: pointer;
}

.tab-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tab-button {
  padding: 0.7rem 1.2rem;
  background: var(--input-bg);
  color: var(--text-muted);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.tab-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-button.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.pagination-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.form-block {
  margin-top: 1.25rem;
}

.editor-textarea {
  min-height: 300px;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.9rem;
}

.form-meta {
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.info-note {
  margin-top: 1.75rem;
  padding: 1rem;
  border-radius: 12px;
  border-left: 4px solid var(--color-primary);
  background: var(--input-bg);
}

.info-note p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.code-snippet {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 6px;
  margin: 0.5rem 0;
  overflow-x: auto;
  font-size: 0.85rem;
}

.delivery-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  background: var(--input-bg);
  color: var(--text-color);
  font-size: 0.9rem;
}

.faq-card {
  max-width: 820px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .header-inner {
    justify-content: center;
  }

  .connected-account-chip {
    width: auto;
    max-width: min(280px, 100%);
    justify-content: flex-start;
  }

  .connected-account-actions {
    position: static;
    transform: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .cart-modal {
    max-width: 100%;
  }
}
