:root {
  --ink: #07080a;
  --charcoal: #111318;
  --graphite: #20242c;
  --muted: #67707f;
  --line: #e4e7ec;
  --soft: #f5f7fa;
  --paper: #ffffff;
  --silver: #cbd2dc;
  --blue: #2f6bff;
  --blue-soft: #e8efff;
  --success: #0e8f5a;
  --danger: #d92d20;
  --danger-soft: #fff0ee;
  --shadow: 0 24px 80px rgba(12, 16, 24, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max-width: 1280px;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Sora", "Manrope", "Segoe UI", sans-serif;
}

/* Customer workflow forms must grow with their legitimate content. Only the
   submitted-history list remains independently scrollable. */
.tool-card.order-history-card.customer-workflow-card {
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
}

.customer-workflow-card .dashboard-workflow {
  max-height: none;
  overflow: visible;
}

.customer-workflow-card .seller-enquiry-form,
.customer-workflow-card .studytech-form,
.customer-workflow-card .device-request-form {
  overflow: visible;
}

.field-label {
  color: var(--ink);
  display: grid;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
}

.field-label input,
.field-label select {
  width: 100%;
}

/* Focused production polish for the seller/request/pricing sections. */
.section.pricing-notice,
.section.seller-program,
.section.device-request-panel {
  margin: clamp(64px, 7vw, 96px) auto 0;
  max-width: var(--max-width);
  overflow: hidden;
  padding: clamp(36px, 4.5vw, 56px);
  width: min(calc(100% - clamp(32px, 6vw, 80px)), var(--max-width));
}

.section.pricing-notice > *,
.section.seller-program > *,
.section.device-request-panel > *,
.seller-enquiry-form > *,
.device-request-form > *,
.studytech-form > * {
  min-width: 0;
}

.section.pricing-notice {
  gap: clamp(18px, 3vw, 34px);
}

.section.seller-program .section-heading,
.section.device-request-panel .section-heading {
  margin-bottom: clamp(24px, 3vw, 38px);
}

.seller-flow-grid {
  gap: clamp(16px, 2vw, 24px);
  margin: clamp(22px, 3vw, 34px) 0;
}

.seller-enquiry-form,
.device-request-form,
.studytech-form {
  gap: clamp(16px, 2.4vw, 24px);
  max-width: 100%;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
}

.seller-path-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.35rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.seller-path-toggle label {
  flex: 1 1 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.seller-path-toggle label:has(input:checked) {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.seller-path-toggle input {
  width: auto;
  accent-color: currentColor;
}

.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.admin-filter-row label {
  display: grid;
  gap: 0.35rem;
  min-width: min(220px, 100%);
  color: var(--graphite);
  font-size: 0.82rem;
  font-weight: 800;
}

.seller-enquiry-form .form-grid,
.device-request-form .form-grid,
.studytech-form .form-grid {
  gap: clamp(14px, 2vw, 20px);
}

.seller-enquiry-form input[type="checkbox"] {
  accent-color: var(--ink);
  align-self: start;
  border-radius: 6px;
  flex: 0 0 24px;
  height: 24px;
  margin: 2px 0 0;
  min-height: 24px;
  min-width: 24px;
  padding: 0;
  width: 24px;
}

.seller-enquiry-form input[type="file"] {
  line-height: 1.35;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.declaration-grid {
  align-items: stretch;
  gap: clamp(14px, 2vw, 20px);
}

.declaration-grid .declaration-card {
  align-items: start;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(203, 210, 220, 0.78);
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(12, 16, 24, 0.06);
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: 26px minmax(0, 1fr);
  height: auto;
  line-height: 1.45;
  max-width: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
  width: 100%;
}

.declaration-content {
  display: grid;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.declaration-title {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.declaration-description {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.social-float {
  bottom: calc(18px + env(safe-area-inset-bottom));
}

.catalogue-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin: -8px 0 24px;
}

.catalogue-actions p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0;
}

.catalogue-preview .filters {
  display: none;
}

.catalogue-preview .shop-layout {
  grid-template-columns: 1fr;
}

.catalogue-preview .product-grid {
  width: 100%;
}

.guest-intent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
}

.guest-intent-card,
.compact-disclosure,
.dashboard-workflow {
  border: 1px solid rgba(228, 231, 236, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(17, 19, 24, 0.07);
}

.guest-intent-card {
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: clamp(18px, 2.4vw, 26px);
}

.guest-intent-card h3,
.guest-intent-card p {
  margin: 0;
}

.guest-intent-card p {
  color: var(--muted);
  line-height: 1.55;
}

.compact-disclosure,
.dashboard-workflow {
  overflow: hidden;
}

.compact-disclosure:not([open]) > :not(summary),
.dashboard-workflow:not([open]) > :not(summary) {
  display: none;
}

.compact-disclosure summary,
.dashboard-workflow summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  min-height: 48px;
  padding: 14px 18px;
  font-weight: 900;
}

.compact-disclosure summary::-webkit-details-marker,
.dashboard-workflow summary::-webkit-details-marker {
  display: none;
}

.compact-disclosure summary::after,
.dashboard-workflow summary::after {
  content: "+";
  color: var(--muted);
  font-size: 1.1rem;
}

.compact-disclosure[open] summary::after,
.dashboard-workflow[open] summary::after {
  content: "-";
}

.compact-disclosure .trade-form,
.dashboard-workflow .seller-enquiry-form,
.dashboard-workflow .device-request-form,
.dashboard-workflow .studytech-form {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.studytech-card {
  grid-column: span 2;
}

.studytech-fee-note {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(47, 107, 255, 0.18);
  border-radius: 18px;
  background: var(--blue-soft);
}

.studytech-fee-note strong {
  color: var(--ink);
}

.studytech-fee-note span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.5;
}

@media (max-width: 880px) {
  .section.pricing-notice,
  .section.seller-program,
  .section.device-request-panel {
    margin-top: clamp(48px, 7vw, 72px);
    padding: clamp(28px, 4.5vw, 40px);
    width: min(calc(100% - 32px), var(--max-width));
  }
}

@media (max-width: 520px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .section.pricing-notice,
  .section.seller-program,
  .section.device-request-panel {
    border-radius: 26px;
    margin-top: clamp(36px, 11vw, 52px);
    padding: 22px;
    width: min(calc(100% - 22px), var(--max-width));
  }

  .seller-enquiry-form,
  .device-request-form,
  .studytech-form {
    border-radius: 22px;
    gap: 16px;
    padding: 16px;
  }

  .seller-enquiry-form textarea,
  .device-request-form textarea,
  .studytech-form textarea {
    min-height: 112px;
  }

  .declaration-grid {
    gap: 14px;
  }

  .declaration-grid .declaration-card {
    border-radius: 18px;
    gap: 12px;
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 16px;
  }

  .declaration-title {
    font-size: 0.9rem;
  }

  .declaration-description {
    font-size: 0.84rem;
    line-height: 1.58;
  }

  .file-control {
    overflow: hidden;
  }

  .file-control input[type="file"] {
    font-size: 0.78rem;
    width: 100%;
  }

  .social-float {
    align-items: center;
    display: inline-flex;
    font-size: 0.78rem;
    height: auto;
    justify-content: center;
    margin: 28px auto calc(18px + env(safe-area-inset-bottom));
    padding: 12px 16px;
    position: static;
    width: fit-content;
  }

.social-float::before {
    content: none;
  }
}

/* Admin contrast/mobile guard: keep dark admin panels dark after shared glass-card styles. */
.admin-panel.dark-panel {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 90% 8%, rgba(64, 105, 255, 0.2), transparent 18rem),
    linear-gradient(145deg, #08090d, #1a202b);
}

.admin-panel.dark-panel h2,
.admin-panel.dark-panel h3,
.admin-panel.dark-panel strong,
.admin-panel.dark-panel .funnel-stack strong,
.admin-panel.dark-panel .admin-revenue-card strong {
  color: var(--paper);
}

.admin-panel.dark-panel p,
.admin-panel.dark-panel span,
.admin-panel.dark-panel small,
.admin-panel.dark-panel .eyebrow,
.admin-panel.dark-panel .admin-note {
  color: rgba(255, 255, 255, 0.74);
}

.admin-panel.dark-panel .admin-revenue-card,
.admin-panel.dark-panel .admin-signal-list div {
  background: rgba(255, 255, 255, 0.08);
}

.admin-panel:not(.dark-panel),
.admin-panel:not(.dark-panel) h2,
.admin-panel:not(.dark-panel) h3,
.admin-panel:not(.dark-panel) strong {
  color: var(--ink);
}

@media (max-width: 760px) {
  .admin-page {
    padding-bottom: 42px;
  }

  .admin-control-grid,
  .admin-metric-grid,
  .admin-action-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel,
  .admin-command-card,
  .admin-metric-card,
  .admin-affiliate-card {
    overflow-wrap: anywhere;
  }

  .admin-panel {
    padding: 18px;
  }

  .admin-card-actions,
  .admin-action-grid {
    align-items: stretch;
  }

  .admin-card-actions .mini-button,
  .admin-card-actions .danger-mini-button,
  .admin-card-actions .status-select,
  .admin-action-grid .mini-button,
  .admin-action-grid .danger-mini-button {
    flex: 1 1 150px;
    min-width: 0;
  }

  .admin-card-main {
    max-height: min(290px, 44svh);
  }

  .scroll-card-body {
    max-height: min(145px, 26svh);
  }

  .application-review-copy {
    max-height: min(190px, 32svh);
  }

  .admin-panel > .admin-stack,
  .admin-panel > .admin-table,
  .admin-panel > .inventory-list,
  .admin-panel > .ops-queue,
  .tool-card > .order-list,
  .admin-panel.wide-panel > .admin-stack,
  .admin-panel.wide-panel > .admin-table,
  .tool-card.order-history-card > .order-list {
    max-height: min(330px, 48svh);
  }

  .admin-row {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .admin-table {
    overflow-x: visible;
  }
}

.pricing-notice,
.seller-program,
.device-request-panel {
  background:
    radial-gradient(circle at 18% 10%, rgba(47, 107, 255, 0.1), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 250, 0.92));
  border: 1px solid rgba(228, 231, 236, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 60px rgba(12, 16, 24, 0.08);
  margin-inline: auto;
  max-width: var(--max-width);
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.pricing-notice {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.pricing-notice h2,
.seller-program h2,
.device-request-panel h2 {
  margin: 0;
}

.detail-pricing-note {
  border-radius: 18px;
  box-shadow: none;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
}

.pricing-notice p:last-child,
.seller-program p,
.device-request-panel p {
  color: var(--muted);
}

.seller-flow-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.4rem 0;
}

.seller-flow-grid article {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 22px;
  min-height: 124px;
  padding: 1rem;
}

.seller-flow-grid strong {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  margin-bottom: 0.75rem;
  width: 34px;
}

.seller-flow-grid span {
  color: var(--graphite);
  display: block;
  font-weight: 700;
  line-height: 1.35;
}

.seller-enquiry-form,
.device-request-form,
.studytech-form {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(228, 231, 236, 0.9);
  border-radius: 28px;
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
  max-width: 100%;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
}

.form-grid {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seller-enquiry-form input,
.seller-enquiry-form select,
.seller-enquiry-form textarea,
.device-request-form input,
.device-request-form select,
.device-request-form textarea,
.studytech-form input,
.studytech-form select,
.studytech-form textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 0.85rem 0.95rem;
  width: 100%;
}

.seller-enquiry-form textarea,
.device-request-form textarea,
.studytech-form textarea {
  min-height: 96px;
  resize: vertical;
}

.file-control {
  background: var(--soft);
  border: 1px dashed var(--silver);
  border-radius: 20px;
  color: var(--graphite);
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
}

.file-control span {
  font-weight: 800;
}

.file-control small,
.declaration-grid label {
  color: var(--muted);
  font-size: 0.86rem;
}

.declaration-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.declaration-grid label {
  align-items: flex-start;
  background: rgba(245, 247, 250, 0.74);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  gap: 0.55rem;
  padding: 0.8rem;
}

.private-request-card small {
  display: block;
}

.admin-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 880px) {
  .pricing-notice,
  .form-grid,
  .seller-flow-grid,
  .declaration-grid {
    grid-template-columns: 1fr;
  }

  .seller-flow-grid article {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .demo-environment-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 9px 14px;
    text-align: left;
  }

  .pricing-notice,
  .seller-program,
  .device-request-panel {
    border-radius: 26px;
    margin-inline: 0;
    padding: 1rem;
  }

  .seller-enquiry-form,
  .device-request-form,
  .studytech-form {
    border-radius: 22px;
    gap: 16px;
    padding: 16px;
  }

  .admin-card-actions,
  .admin-card-actions .mini-button,
  .admin-card-actions .danger-mini-button,
  .admin-card-actions .status-select {
    width: 100%;
  }
}

.eft-modal {
  width: min(860px, calc(100vw - 1.5rem));
}

.eft-card {
  background: rgba(250, 250, 252, 0.98);
  border-radius: 28px;
  color: var(--ink);
  max-height: min(88vh, 920px);
  overflow-y: auto;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.eft-reference-box {
  background: linear-gradient(135deg, #0b0d10, #2b3038);
  border-radius: 22px;
  color: #fff;
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
}

.eft-reference-box span,
.eft-details span,
.eft-qr span {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eft-reference-box strong {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  letter-spacing: 0.04em;
  margin-top: 0.35rem;
}

.eft-reference-box p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0.7rem 0 0;
}

.eft-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
}

.eft-details {
  display: grid;
  gap: 0.7rem;
}

.eft-details > div {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: 1fr auto;
  padding: 0.85rem;
}

.eft-details strong {
  grid-column: 1 / 2;
  word-break: break-word;
}

.eft-details .mini-button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.eft-qr,
.eft-upload-box {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 22px;
  padding: 1rem;
}

.eft-qr img {
  display: block;
  margin: 0.75rem auto;
  max-width: 190px;
  width: 100%;
}

.eft-upload-box {
  margin-top: 1rem;
}

.eft-instructions {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 22px;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
}

.eft-instructions h3 {
  margin: 0 0 0.6rem;
}

.eft-instructions ol {
  color: var(--muted);
  margin: 0;
  padding-left: 1.15rem;
}

.eft-instructions li + li {
  margin-top: 0.38rem;
}

.eft-upload-box input {
  margin: 0.6rem 0;
  width: 100%;
}

.warning-copy {
  color: #b42318;
}

@media (max-width: 720px) {
  .eft-grid {
    grid-template-columns: 1fr;
  }

  .eft-qr {
    display: none;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(47, 107, 255, 0.16), transparent 32rem),
    linear-gradient(135deg, #f9fafc 0%, #eef1f6 48%, #ffffff 100%);
}

body.drawer-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
  overflow: hidden;
}

.demo-environment-notice {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 10px clamp(14px, 3vw, 32px);
  background: linear-gradient(135deg, rgba(12, 18, 32, 0.96), rgba(38, 47, 63, 0.96));
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.4;
  text-align: center;
}

.demo-environment-notice strong {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #dbeafe;
}

.demo-environment-notice span {
  max-width: 920px;
  color: rgba(248, 250, 252, 0.9);
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: min(calc(100% - 28px), var(--max-width));
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 48px rgba(17, 19, 24, 0.08);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--paper);
  font-weight: 800;
  letter-spacing: -0.06em;
  background: linear-gradient(145deg, #0a0b0e, #303743);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1;
  letter-spacing: -0.04em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.73rem;
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 10px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  color: #1d4ed8;
  background: rgba(239, 246, 255, 0.92);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--graphite);
  font-size: 0.91rem;
  font-weight: 700;
}

.desktop-nav a {
  opacity: 0.78;
  transition: opacity 180ms ease, transform 180ms ease;
}

.desktop-nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ghost-button,
.icon-button,
.menu-button,
.primary-button,
.secondary-button,
.danger-button,
.dev-tools-bar button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.ghost-button {
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--graphite);
  background: transparent;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 999px;
  color: var(--paper);
  background: var(--ink);
}

.icon-button strong {
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  font-size: 0.75rem;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--soft);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--ink);
}

.mobile-nav {
  position: fixed;
  inset: 86px 14px auto;
  z-index: 45;
  display: none;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav a,
.mobile-nav-action {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--soft);
  border: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.section,
.section-grid {
  width: min(calc(100% - 36px), var(--max-width));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: center;
  gap: 48px;
  min-height: 680px;
  padding: 72px 0 56px;
}

.hero-copy,
.hero-visual,
.section-grid > *,
.admin-panel,
.dashboard-card,
.tool-card {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 790px;
  margin-bottom: 22px;
  font-size: clamp(2.85rem, 6.5vw, 5.45rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 4.2vw, 3.8rem);
  line-height: 1.03;
}

h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.hero-text,
.section-heading p,
.info-card p,
.role-card p,
.referral-copy p,
.site-footer p,
.faq-list p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 650px;
  font-size: 1.16rem;
}

.hero-slogan {
  margin: 18px 0 -8px;
  color: var(--graphite);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.dashboard-catalogue-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(235, 240, 249, 0.8));
  box-shadow: 0 18px 45px rgba(17, 19, 24, 0.06);
}

.dashboard-catalogue-intro .eyebrow { margin-bottom: 10px; }
.dashboard-catalogue-intro h2 { max-width: 690px; margin-bottom: 8px; font-size: clamp(1.55rem, 3.2vw, 2.45rem); }
.dashboard-catalogue-intro p:not(.eyebrow) { max-width: 670px; margin-bottom: 0; color: var(--muted); line-height: 1.6; }

[data-dashboard-catalogue-content] { margin-top: 24px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 26px;
}

.primary-button,
.secondary-button,
.danger-button,
.dev-tools-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-width: max-content;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 14px 34px rgba(7, 8, 10, 0.18);
}

.secondary-button {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
}

.danger-button {
  color: var(--paper);
  background: linear-gradient(135deg, #8b1008, var(--danger));
  box-shadow: 0 14px 34px rgba(217, 45, 32, 0.24);
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover {
  transform: translateY(-2px);
}

.dev-tools-bar {
  width: min(calc(100% - 36px), var(--max-width));
  margin: 16px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  color: #9a3412;
  background: #fff7ed;
  font-size: 0.86rem;
  font-weight: 900;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.social-row a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(17, 19, 24, 0.06);
  transition: transform 180ms ease, background 180ms ease;
}

.social-row a:hover {
  transform: translateY(-2px);
  background: var(--paper);
}

.social-soon {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  font-weight: 900;
}

.social-row svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.trust-row span,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--graphite);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  font-weight: 800;
}

.trust-row span::before,
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.hero-visual {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
}

.orb-one {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.18), rgba(203, 210, 220, 0.22), transparent 68%);
}

.phone-stack {
  position: relative;
  width: 300px;
  height: 430px;
}

.phone-card {
  position: absolute;
  width: 222px;
  height: 426px;
  border: 9px solid #0d0f13;
  border-radius: 44px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.24);
}

.phone-card-back {
  left: 0;
  top: 28px;
  transform: rotate(-11deg);
  background: linear-gradient(150deg, #d9dee7, #f6f7fa 45%, #9da8b8);
}

.phone-card-front {
  right: 0;
  top: 0;
  overflow: hidden;
  transform: rotate(7deg);
  background:
    radial-gradient(circle at 50% 0%, rgba(47, 107, 255, 0.52), transparent 35%),
    linear-gradient(145deg, #090a0e, #1a1f2a 46%, #050609);
}

.phone-camera {
  position: absolute;
  top: 28px;
  left: 26px;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.35);
}

.phone-camera::before,
.phone-camera::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #303743;
  box-shadow: inset 0 0 0 5px #111318;
}

.phone-camera::before {
  left: 11px;
  top: 11px;
}

.phone-camera::after {
  right: 11px;
  bottom: 11px;
}

.phone-logo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 54px;
  border-radius: 45% 45% 48% 48%;
  background: rgba(255, 255, 255, 0.58);
}

.screen-pill {
  position: absolute;
  top: 17px;
  left: 50%;
  width: 86px;
  height: 25px;
  border-radius: 999px;
  background: #050609;
  transform: translateX(-50%);
}

.screen-shine {
  position: absolute;
  inset: -80px -90px auto auto;
  width: 210px;
  height: 330px;
  transform: rotate(32deg);
  background: rgba(255, 255, 255, 0.08);
}

.screen-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 26px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.screen-content span,
.screen-content small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
}

.screen-content strong {
  display: block;
  margin: 8px 0;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.floating-card {
  position: absolute;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.floating-card span,
.floating-card strong {
  display: block;
}

.floating-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.floating-card strong {
  margin-top: 4px;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.floating-price {
  left: 4%;
  bottom: 19%;
}

.floating-score {
  right: 3%;
  top: 17%;
}

/* Combined, original product illustration: StudyTech guidance alongside iPhones. */
.hero-tech-scene {
  position: relative;
  width: min(100%, 640px);
  min-height: 420px;
  display: grid;
  place-items: center;
}

.hero-laptop {
  position: absolute;
  left: 4%;
  bottom: 42px;
  width: 338px;
  height: 224px;
  transform: rotate(-6deg);
}

.hero-laptop-screen {
  position: relative;
  height: 203px;
  padding: 33px 30px;
  overflow: hidden;
  border: 9px solid #0d0f13;
  border-radius: 21px 21px 11px 11px;
  color: var(--paper);
  background:
    radial-gradient(circle at 83% 18%, rgba(47, 107, 255, 0.75), transparent 26%),
    linear-gradient(145deg, #151d31, #080a10 70%);
  box-shadow: 0 34px 85px rgba(7, 8, 10, 0.25);
}

.hero-laptop-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.13), transparent 28%);
  pointer-events: none;
}

.hero-laptop-screen::before {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 86px;
  height: 58px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px) 0 0 / 18px 18px,
    rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.laptop-kicker,
.hero-phone-copy span {
  position: relative;
  z-index: 1;
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-laptop-screen strong {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 185px;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.laptop-lines {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  width: 125px;
  margin-top: 21px;
}

.laptop-lines i,
.laptop-progress {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.laptop-lines i:nth-child(1) { width: 100%; }
.laptop-lines i:nth-child(2) { width: 78%; }
.laptop-lines i:nth-child(3) { width: 56%; }

.laptop-progress {
  position: relative;
  z-index: 1;
  width: 190px;
  height: 8px;
  margin-top: 23px;
}

.laptop-progress i {
  display: block;
  width: 66%;
  height: 100%;
  border-radius: inherit;
  background: #6e9cff;
}

.hero-laptop-base {
  position: absolute;
  z-index: 1;
  right: -18px;
  bottom: -16px;
  left: -18px;
  height: 22px;
  border-radius: 3px 3px 19px 19px;
  background: linear-gradient(180deg, #e9edf3, #9aa5b5);
  box-shadow: 0 14px 20px rgba(7, 8, 10, 0.2);
}

.hero-laptop-base::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 78px;
  height: 7px;
  border-radius: 0 0 8px 8px;
  background: #778396;
  transform: translateX(-50%);
}

.hero-laptop-base::before {
  content: "";
  position: absolute;
  right: 42px;
  bottom: 5px;
  left: 42px;
  height: 7px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(17, 24, 39, 0.22) 0 8px, transparent 8px 13px);
}

.hero-phone {
  position: absolute;
  right: 6%;
  bottom: 8px;
  width: 152px;
  height: 290px;
  overflow: hidden;
  border: 7px solid #0c0e12;
  border-radius: 31px;
  transform: rotate(9deg);
  color: var(--paper);
  background: linear-gradient(160deg, #1c2435, #050609 72%);
  box-shadow: 0 30px 72px rgba(7, 8, 10, 0.32);
}

.hero-phone-pill {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 58px;
  height: 16px;
  border-radius: 999px;
  background: #050609;
  transform: translateX(-50%);
}

.hero-phone-glow {
  position: absolute;
  inset: -40px -44px auto auto;
  width: 170px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 148, 255, 0.9), rgba(47, 107, 255, 0.06) 63%, transparent 70%);
}

.hero-phone::before {
  content: "";
  position: absolute;
  top: 54px;
  left: 20px;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 29% 31%, #f8fafc 0 5px, #111827 6px 10px, transparent 11px),
    radial-gradient(circle at 69% 31%, #f8fafc 0 5px, #111827 6px 10px, transparent 11px),
    radial-gradient(circle at 49% 69%, #f8fafc 0 5px, #111827 6px 10px, transparent 11px),
    rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 1;
}

.hero-phone::after {
  content: "";
  position: absolute;
  right: 21px;
  top: 74px;
  width: 62px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 17px 0 rgba(255, 255, 255, 0.14), 0 34px 0 rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.hero-phone-copy {
  position: absolute;
  right: 17px;
  bottom: 19px;
  left: 17px;
  z-index: 1;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-phone-copy strong,
.hero-phone-copy small {
  display: block;
}

.hero-phone-copy strong {
  margin: 6px 0 4px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: -0.06em;
}

.hero-phone-copy small { color: rgba(255, 255, 255, 0.7); }

.hero-tech-scene img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 620px);
  max-width: none;
  height: auto;
  border-radius: 34px;
  object-fit: contain;
  filter: drop-shadow(0 34px 72px rgba(15, 23, 42, 0.24));
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 20px 54px rgba(17, 19, 24, 0.06);
}

.metric-strip div {
  padding: 24px;
  border-radius: 24px;
  background: var(--paper);
}

.metric-strip strong,
.metric-strip span {
  display: block;
}

.metric-strip strong {
  margin-bottom: 7px;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.metric-strip span {
  color: var(--muted);
  font-size: 0.92rem;
}

.primary-services-section {
  padding-top: 72px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 220px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(228, 231, 236, 0.94);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(17, 19, 24, 0.06);
  backdrop-filter: blur(20px);
}

.service-card-featured {
  color: var(--paper);
  background:
    radial-gradient(circle at top right, rgba(47, 107, 255, 0.4), transparent 18rem),
    linear-gradient(145deg, #0a0d14, #171d2b);
  box-shadow: 0 24px 72px rgba(17, 19, 24, 0.16);
}

.service-card p {
  margin-bottom: 4px;
  color: var(--muted);
  line-height: 1.6;
}

.service-card-featured p {
  color: rgba(255, 255, 255, 0.76);
}

.service-kicker {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-card-featured .service-kicker {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.12);
}

.service-card .mini-button {
  width: fit-content;
  margin-top: auto;
}

.service-card-featured .mini-button {
  color: var(--ink);
  background: var(--paper);
}

.studytech-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.studytech-copy,
.studytech-explainer {
  border: 1px solid rgba(228, 231, 236, 0.94);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(17, 19, 24, 0.06);
  backdrop-filter: blur(20px);
}

.studytech-copy {
  display: grid;
  align-content: center;
  padding: 42px;
  background:
    radial-gradient(circle at top left, rgba(47, 107, 255, 0.16), transparent 18rem),
    rgba(255, 255, 255, 0.86);
}

.studytech-copy p {
  color: var(--muted);
  line-height: 1.72;
}

.studytech-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.studytech-explainer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.studytech-explainer article {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  border-radius: 24px;
  background: var(--paper);
}

.studytech-explainer span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.studytech-explainer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.studytech-fee-card {
  background:
    radial-gradient(circle at top right, rgba(47, 107, 255, 0.16), transparent 12rem),
    var(--soft) !important;
}

.loyalty-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  align-items: stretch;
}

.loyalty-copy,
.loyalty-card {
  border: 1px solid rgba(228, 231, 236, 0.94);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 50px rgba(17, 19, 24, 0.06);
  backdrop-filter: blur(20px);
}

.loyalty-copy {
  padding: 34px;
}

.loyalty-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(47, 107, 255, 0.18), transparent 18rem),
    rgba(255, 255, 255, 0.88);
}

.loyalty-label,
.dashboard-kicker {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.loyalty-card strong {
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.loyalty-card p,
.loyalty-card small {
  color: var(--muted);
  line-height: 1.6;
}

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dde3ee;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ink), var(--blue));
}

.section {
  padding: 106px 0 0;
}

.section-heading {
  max-width: 730px;
  margin-bottom: 34px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.filters,
.product-card,
.info-card,
.role-card,
.review-placeholder,
.faq-list,
.trade-form,
.affiliate-card {
  border: 1px solid rgba(228, 231, 236, 0.94);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 50px rgba(17, 19, 24, 0.06);
  backdrop-filter: blur(20px);
}

.filters {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
}

.filter-block {
  display: grid;
  gap: 8px;
}

label {
  color: var(--graphite);
  font-size: 0.83rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
}

textarea {
  min-height: 92px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(47, 107, 255, 0.62);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.product-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border-radius: var(--radius-lg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 68px rgba(17, 19, 24, 0.12);
}

.coming-soon-card {
  opacity: 0.78;
}

.coming-soon-card .product-photo-frame {
  filter: grayscale(0.2);
}

button:disabled,
.mini-button:disabled,
.primary-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.product-art {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 18%, var(--accent), transparent 36%),
    linear-gradient(145deg, #f8fafc, #dfe4ed);
}

.product-photo-frame {
  position: relative;
  display: grid;
  place-items: center;
  height: 208px;
  min-height: 208px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.95), transparent 8.5rem),
    radial-gradient(circle at 50% 18%, rgba(47, 107, 255, 0.13), transparent 38%),
    linear-gradient(145deg, #f8fafc, #dfe4ed);
}

.product-photo-frame::before,
.product-photo-frame::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.product-photo-frame::before {
  inset: 16px 20px auto;
  height: 92px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.product-photo-frame::after {
  right: 28px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.34);
  filter: blur(1px);
}

.product-photo-frame img {
  width: min(58%, 168px);
  max-height: 168px;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(7, 8, 10, 0.18));
}

.image-fallback {
  display: none;
  place-items: center;
  width: 72%;
  min-height: 210px;
  border: 7px solid #111318;
  border-radius: 34px;
  color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.2), transparent 30%),
    linear-gradient(145deg, #151923, #303746);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 22px;
}

.product-photo-frame.has-fallback img {
  display: none;
}

.product-photo-frame.has-fallback .image-fallback {
  display: grid;
}

.generated-phone-frame {
  min-height: 250px;
}

.premium-phone-frame {
  padding: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.95), transparent 8.5rem),
    radial-gradient(circle at 50% 18%, rgba(47, 107, 255, 0.13), transparent 38%),
    linear-gradient(145deg, #f8fafc, #dfe4ed);
}

.apple-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 16px 30px;
}

.detail-visual .apple-image-wrap {
  min-height: 420px;
}

.apple-product-image {
  width: min(58%, 168px);
  max-height: 168px;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(7, 8, 10, 0.18));
}

.detail-visual .apple-product-image {
  width: min(86%, 360px);
  max-height: 390px;
}

.apple-image-fallback {
  display: none;
  width: 118px;
  height: 224px;
  border: 7px solid #111318;
  border-radius: 30px;
  background: linear-gradient(145deg, #151923, #303746);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.image-missing .apple-product-image {
  display: none;
}

.image-missing .apple-image-fallback {
  display: block;
}

.catalog-card {
  align-content: start;
}

.variant-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.variant-pill {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.variant-pill:hover:not(:disabled),
.variant-pill.is-selected {
  border-color: #111318;
  color: var(--paper);
  background: #111318;
}

.variant-pill:hover:not(:disabled) {
  transform: translateY(-1px);
}

.variant-pill:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.choice-grid label {
  display: grid;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 900;
}

.choice-grid select {
  min-height: 36px;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.product-phone {
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 116px;
  height: 218px;
  border: 7px solid #111318;
  border-radius: 30px;
  background: linear-gradient(145deg, #151923, #303746);
  transform: translateX(-50%) rotate(var(--tilt));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.product-phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 42px;
  height: 13px;
  border-radius: 999px;
  background: #050609;
  transform: translateX(-50%);
}

.product-card h3 {
  margin-bottom: 0;
  font-size: 1.06rem;
}

.product-meta,
.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-meta span {
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--soft);
  font-size: 0.7rem;
  font-weight: 800;
}

.product-footer {
  display: grid;
  gap: 11px;
}

.price {
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.price-block {
  display: grid;
  gap: 2px;
}

.price-block small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.3;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-card .mini-button {
  flex: 1 1 max-content;
  min-width: max-content;
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.74rem;
  line-height: 1.15;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-width: max-content;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
}

.trust-cards,
.role-grid,
.student-choice-grid {
  display: grid;
  gap: 18px;
}

.trust-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.role-card,
.review-placeholder {
  padding: 26px;
  border-radius: var(--radius-lg);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  border-radius: 16px;
  color: var(--paper);
  background: var(--ink);
  font-weight: 900;
}

.referral-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 26px;
  align-items: center;
  margin-top: 106px;
  padding: 52px;
  border-radius: 42px;
  color: var(--paper);
  background:
    radial-gradient(circle at top right, rgba(47, 107, 255, 0.5), transparent 34rem),
    linear-gradient(145deg, #08090d, #1a202b);
}

.referral-panel .eyebrow,
.referral-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.process-list span {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  font-weight: 800;
}

.affiliate-card {
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

.affiliate-card > .primary-button,
.affiliate-card > .secondary-button {
  margin-top: 10px;
}

.affiliate-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.affiliate-top span,
.affiliate-stats small {
  color: var(--muted);
  font-weight: 800;
}

.affiliate-top strong {
  letter-spacing: -0.03em;
}

.affiliate-stats {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.affiliate-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-radius: 18px;
  background: var(--soft);
}

.affiliate-stats strong {
  font-size: 1.3rem;
}

.full-width {
  width: 100%;
}

.trade-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
}

.trade-interest-form .form-status {
  grid-column: 1 / -1;
  margin: 0;
}

.notification-toolbar,
.notification-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.notification-toolbar {
  margin: 12px 0;
}

.role-grid {
  grid-template-columns: repeat(4, 1fr);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.legal-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(228, 231, 236, 0.94);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(17, 19, 24, 0.06);
}

.legal-card h3,
.legal-card p {
  margin: 0;
}

.legal-card p {
  color: var(--muted);
}

.account-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.dashboard-page {
  padding-bottom: 80px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  gap: 28px;
  align-items: center;
  padding: 88px 0 0;
}

.dashboard-hero h1 {
  font-size: clamp(2.55rem, 5.8vw, 5.25rem);
}

.dashboard-hero-card {
  display: grid;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius-xl);
  color: var(--paper);
  background:
    radial-gradient(circle at top right, rgba(47, 107, 255, 0.55), transparent 18rem),
    linear-gradient(145deg, #08090d, #1a202b);
  box-shadow: var(--shadow);
}

.dashboard-hero-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-hero-card strong {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.045em;
}

.dashboard-hero-card p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
}

.dashboard-hero-card .progress-track {
  background: rgba(255, 255, 255, 0.16);
}

.dashboard-hero-card .progress-track span {
  background: linear-gradient(90deg, #ffffff, #8fb0ff);
}

.affiliate-page {
  padding-bottom: 80px;
}

.affiliate-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.72fr);
  gap: 30px;
  align-items: center;
  padding: 88px 0 0;
}

.affiliate-hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 5.55rem);
}

.affiliate-pass-card,
.affiliate-stat-card,
.affiliate-panel,
.affiliate-approval-card {
  border: 1px solid rgba(228, 231, 236, 0.94);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(17, 19, 24, 0.06);
  backdrop-filter: blur(20px);
}

.affiliate-pass-card {
  display: grid;
  gap: 16px;
  padding: 30px;
  border-radius: var(--radius-xl);
  color: var(--paper);
  background:
    radial-gradient(circle at 80% 10%, rgba(47, 107, 255, 0.62), transparent 18rem),
    linear-gradient(145deg, #08090d, #1a202b);
}

.affiliate-pass-card span,
.affiliate-stat-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.affiliate-pass-card strong {
  font-size: clamp(1.85rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.affiliate-pass-card p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.referral-link-box {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.affiliate-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.affiliate-approval-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 96% 8%, rgba(47, 107, 255, 0.14), transparent 18rem),
    rgba(255, 255, 255, 0.82);
}

.affiliate-approval-card h2 {
  margin-bottom: 8px;
}

.approval-summary {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: var(--soft);
}

.approval-summary span {
  width: fit-content;
  padding: 8px 11px;
  border-radius: 999px;
  color: #7a4d00;
  background: #fff1c6;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.approval-summary strong {
  font-size: 1.25rem;
}

.approval-summary small {
  color: var(--muted);
  line-height: 1.5;
}

.affiliate-stat-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.affiliate-stat-card span {
  color: var(--blue);
}

.affiliate-stat-card strong {
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: -0.045em;
}

.affiliate-stat-card p,
.affiliate-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.glow-card {
  color: var(--paper);
  background:
    radial-gradient(circle at top right, rgba(47, 107, 255, 0.5), transparent 18rem),
    linear-gradient(145deg, #08090d, #1a202b);
}

.glow-card span,
.glow-card p {
  color: rgba(255, 255, 255, 0.72);
}

.affiliate-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.affiliate-panel {
  display: grid;
  gap: 18px;
  padding: 26px;
  border-radius: var(--radius-lg);
}

.panel-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.dark-panel {
  color: var(--paper);
  background: linear-gradient(145deg, #08090d, #1a202b);
}

.dark-panel p,
.dark-panel .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.funnel-stack {
  display: grid;
  gap: 12px;
}

.funnel-stack div {
  display: grid;
  gap: 8px;
}

.funnel-stack span {
  display: block;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ink), var(--blue));
}

.funnel-stack strong {
  color: var(--graphite);
}

.payout-meter {
  display: grid;
  gap: 4px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.payout-meter strong {
  font-size: 3rem;
  letter-spacing: -0.06em;
}

.payout-meter span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.campus-list,
.share-kit {
  display: grid;
  gap: 10px;
}

.campus-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--soft);
}

.campus-list span {
  color: var(--muted);
  font-weight: 900;
}

.share-kit {
  grid-template-columns: repeat(2, 1fr);
}

.activity-panel {
  margin-top: 18px;
}

.activity-table {
  display: grid;
  gap: 8px;
}

.activity-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.15fr) minmax(120px, 0.9fr) minmax(110px, 0.85fr) minmax(130px, 0.9fr) minmax(90px, 0.7fr) minmax(90px, 0.65fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: var(--soft);
}

.activity-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.table-head {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.approved {
  color: #087443;
  background: #dff8eb;
}

.pending {
  color: #7a4d00;
  background: #fff1c6;
}

.hold {
  color: #334155;
  background: #e5eaf1;
}

.admin-page {
  padding-bottom: 86px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 30px;
  align-items: center;
  padding: 88px 0 0;
}

.admin-hero h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
}

.admin-command-card,
.admin-metric-card,
.admin-panel {
  border: 1px solid rgba(228, 231, 236, 0.94);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 50px rgba(17, 19, 24, 0.06);
  backdrop-filter: blur(20px);
}

.admin-command-card {
  display: grid;
  gap: 18px;
  padding: 30px;
  border-radius: var(--radius-xl);
  color: var(--paper);
  background:
    radial-gradient(circle at 88% 8%, rgba(217, 45, 32, 0.52), transparent 18rem),
    linear-gradient(145deg, #09090c, #1b1114 58%, #271313);
}

.admin-command-card span,
.admin-metric-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-command-card strong {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.8vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.admin-command-card p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.admin-signal-list,
.ops-queue,
.admin-action-grid,
.archive-toolbar,
.inventory-list,
.admin-stack {
  display: grid;
  gap: 10px;
}

.archive-toolbar {
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) auto auto auto;
  align-items: center;
  margin-bottom: 12px;
}

.archive-toolbar input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(17, 19, 24, 0.14);
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
}

.archive-date-group,
.archive-category-group {
  display: grid;
  gap: 10px;
}

.archive-date-group {
  padding: 12px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.archive-date-group h3 {
  margin: 0;
  font-size: 1rem;
}

.archive-category-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.archive-record-card {
  box-shadow: none;
}

.research-modal {
  width: min(980px, calc(100vw - 24px));
}

.research-card {
  display: grid;
  gap: 18px;
  max-height: min(86vh, 880px);
  overflow-y: auto;
  padding: clamp(20px, 4vw, 34px);
}

.research-brief-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.research-brief-grid div,
.research-brief-grid a {
  min-width: 0;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 12px;
  background: var(--soft);
  padding: 12px;
}

.research-brief-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.research-brief-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.research-form textarea {
  min-height: 132px;
  resize: vertical;
}

.admin-panel > .admin-stack,
.admin-panel > .admin-table,
.admin-panel > .inventory-list,
.admin-panel > .ops-queue,
.tool-card > .order-list {
  min-height: 0;
  max-height: min(390px, 54vh);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 6px;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.admin-panel.wide-panel > .admin-stack,
.admin-panel.wide-panel > .admin-table,
.tool-card.order-history-card > .order-list {
  max-height: min(470px, 58vh);
}

.admin-panel > .admin-stack::-webkit-scrollbar,
.admin-panel > .admin-table::-webkit-scrollbar,
.admin-panel > .inventory-list::-webkit-scrollbar,
.admin-panel > .ops-queue::-webkit-scrollbar,
.tool-card > .order-list::-webkit-scrollbar {
  width: 8px;
}

.admin-panel > .admin-stack::-webkit-scrollbar-thumb,
.admin-panel > .admin-table::-webkit-scrollbar-thumb,
.admin-panel > .inventory-list::-webkit-scrollbar-thumb,
.admin-panel > .ops-queue::-webkit-scrollbar-thumb,
.tool-card > .order-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(17, 19, 24, 0.24);
}

.admin-signal-list div,
.ops-queue div,
.inventory-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--soft);
}

.admin-command-card .admin-signal-list div,
.dark-panel .admin-signal-list div {
  background: rgba(255, 255, 255, 0.08);
}

.admin-signal-list small,
.inventory-list small,
.ops-queue span,
.admin-note {
  color: var(--muted);
  line-height: 1.5;
}

.admin-command-card .admin-signal-list small,
.dark-panel .admin-signal-list small {
  color: rgba(255, 255, 255, 0.68);
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.admin-metric-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.admin-metric-card span {
  color: var(--danger);
}

.admin-metric-card strong {
  font-family: var(--font-display);
  font-size: 2.1rem;
  letter-spacing: -0.045em;
}

.admin-metric-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-metric-card.critical {
  color: var(--paper);
  background:
    radial-gradient(circle at top right, rgba(217, 45, 32, 0.48), transparent 18rem),
    linear-gradient(145deg, #09090c, #231217);
}

.admin-metric-card.critical span,
.admin-metric-card.critical p {
  color: rgba(255, 255, 255, 0.72);
}

.admin-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.admin-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 26px;
  border-radius: var(--radius-lg);
}

.admin-panel,
.tool-card.order-history-card {
  min-height: 0;
  max-height: min(620px, 74vh);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.admin-panel .panel-heading {
  position: sticky;
  top: -1px;
  z-index: 3;
  margin: -2px -2px 0;
  padding: 2px 2px 8px;
  background: inherit;
  backdrop-filter: blur(18px);
}

.admin-panel::-webkit-scrollbar,
.tool-card.order-history-card::-webkit-scrollbar {
  width: 8px;
}

.admin-panel::-webkit-scrollbar-thumb,
.tool-card.order-history-card::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(17, 19, 24, 0.22);
}

.wide-panel {
  grid-column: span 2;
}

.admin-table {
  display: grid;
  gap: 8px;
  overflow: auto;
}

.admin-row {
  display: grid;
  grid-template-columns: 1.15fr 1.2fr 0.85fr 0.7fr;
  gap: 12px;
  align-items: center;
  min-width: 720px;
  padding: 14px;
  border-radius: 16px;
  background: var(--soft);
}

.admin-row span {
  display: grid;
  gap: 3px;
}

.admin-row small {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-affiliate-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}

.admin-affiliate-card h3 {
  margin: 8px 0 4px;
}

.admin-affiliate-card p,
.admin-affiliate-card small {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.45;
}

.admin-card-main,
.scroll-card-body {
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 6px;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.admin-card-main {
  max-height: min(360px, 48vh);
}

.scroll-card-body {
  display: grid;
  gap: 6px;
  max-height: min(170px, 28vh);
}

.card-fixed-head,
.card-fixed-actions {
  min-width: 0;
}

.card-fixed-head {
  display: grid;
  gap: 6px;
}

.admin-card-main::-webkit-scrollbar,
.scroll-card-body::-webkit-scrollbar,
.application-review-copy::-webkit-scrollbar {
  width: 7px;
}

.admin-card-main::-webkit-scrollbar-thumb,
.scroll-card-body::-webkit-scrollbar-thumb,
.application-review-copy::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(17, 19, 24, 0.2);
}

.application-review-copy {
  display: grid;
  gap: 8px;
  max-height: min(220px, 32vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.application-review-copy p {
  margin: 0;
  color: var(--ink);
  font-size: 0.84rem;
}

.application-review-copy strong {
  color: #0f172a;
}

.admin-card-actions,
.admin-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.danger-mini-button {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--danger);
  background: var(--danger-soft);
  cursor: pointer;
  font-weight: 900;
}

.admin-revenue-card {
  display: grid;
  gap: 6px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.admin-revenue-card strong {
  font-family: var(--font-display);
  font-size: 2.65rem;
  letter-spacing: -0.045em;
}

.admin-revenue-card span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.ops-queue div {
  display: grid;
}

.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.empty-admin-state {
  padding: 18px;
  border-radius: 18px;
  color: var(--muted);
  background: var(--soft);
}

.admin-login-modal {
  width: min(980px, calc(100% - 28px));
}

.admin-login-grid {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 28px;
  padding: 28px;
}

.admin-login-grid > section {
  display: grid;
  align-content: center;
  padding: 28px;
  border-radius: 24px;
  color: var(--paper);
  background:
    radial-gradient(circle at top right, rgba(217, 45, 32, 0.45), transparent 18rem),
    linear-gradient(145deg, #09090c, #221215);
}

.admin-login-grid > section p,
.admin-login-grid > section .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.admin-security-note {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.admin-security-note span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.profile-panel,
.dashboard-card {
  border: 1px solid rgba(228, 231, 236, 0.94);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(17, 19, 24, 0.06);
  backdrop-filter: blur(20px);
}

.profile-panel {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius-lg);
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  color: var(--paper);
  background: linear-gradient(145deg, var(--ink), var(--graphite));
  font-weight: 900;
}

.profile-top span,
.profile-list small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-top strong,
.profile-list strong {
  display: block;
  margin-top: 4px;
  letter-spacing: -0.03em;
}

.profile-list {
  display: grid;
  gap: 12px;
}

.profile-list div {
  padding: 13px;
  border-radius: 16px;
  background: var(--soft);
}

.customer-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 190px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.dashboard-card h3 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

.dashboard-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.highlight-card {
  grid-column: span 2;
  color: var(--paper);
  background:
    radial-gradient(circle at top right, rgba(47, 107, 255, 0.55), transparent 20rem),
    linear-gradient(145deg, #08090d, #1a202b);
}

.highlight-card p,
.highlight-card .dashboard-kicker {
  color: rgba(255, 255, 255, 0.74);
}

.highlight-card .progress-track {
  background: rgba(255, 255, 255, 0.16);
}

.highlight-card .progress-track span {
  background: linear-gradient(90deg, #ffffff, #8fb0ff);
}

.customer-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.tool-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(228, 231, 236, 0.94);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(17, 19, 24, 0.06);
  backdrop-filter: blur(20px);
}

.tool-card h3 {
  margin-bottom: 0;
}

.tool-form {
  display: grid;
  gap: 10px;
}

.test-db-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(228, 231, 236, 0.94);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(17, 19, 24, 0.06);
  backdrop-filter: blur(20px);
}

.test-db-panel h3 {
  margin-bottom: 8px;
}

.test-db-panel p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.db-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.student-choice-grid {
  grid-template-columns: repeat(3, 1fr);
}

.review-placeholder {
  border: 1px dashed rgba(103, 112, 127, 0.38);
  background:
    radial-gradient(circle at top right, rgba(47, 107, 255, 0.1), transparent 15rem),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 50px rgba(17, 19, 24, 0.06);
}

.review-placeholder small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.5;
}

.faq-list {
  padding: 12px;
  border-radius: var(--radius-lg);
}

details {
  padding: 18px 20px;
  border-radius: 18px;
}

details + details {
  border-top: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 12px 0 0;
}

.site-footer {
  width: min(calc(100% - 36px), var(--max-width));
  margin: 100px auto 22px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 34px;
  padding: 34px;
  border-radius: 34px;
  color: rgba(255, 255, 255, 0.76);
  background: var(--ink);
}

.footer-brand strong,
.footer-brand small {
  color: var(--paper);
}

.site-footer p {
  max-width: 430px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 6px;
}

.footer-socials a {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 0.78rem;
}

.social-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  padding: 14px 18px;
  border-radius: 999px;
  color: var(--paper);
  background: linear-gradient(135deg, #111318, #2f6bff);
  box-shadow: 0 18px 44px rgba(47, 107, 255, 0.26);
  font-weight: 900;
}

.modal {
  width: min(920px, calc(100% - 28px));
  max-height: min(88vh, 820px);
  overflow: auto;
  border: 0;
  border-radius: 30px;
  padding: 0;
  box-shadow: var(--shadow);
}

.modal .detail-grid,
.modal .auth-grid,
.modal .affiliate-application-grid {
  max-height: inherit;
  overflow: auto;
}

.action-dialog {
  width: min(520px, calc(100% - 28px));
}

.action-dialog-card {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.action-dialog-card h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  white-space: pre-wrap;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.modal::backdrop {
  background: rgba(7, 8, 10, 0.52);
  backdrop-filter: blur(8px);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  cursor: pointer;
  font-size: 1.4rem;
}

.detail-grid,
.auth-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 28px;
  padding: 28px;
}

.auth-modal {
  width: min(1040px, calc(100% - 28px));
}

.affiliate-application-modal {
  width: min(1120px, calc(100% - 28px));
}

.affiliate-application-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 24px;
  padding: 28px;
}

.affiliate-terms-panel,
.affiliate-application-form {
  display: grid;
  align-content: start;
  gap: 14px;
}

.affiliate-terms-panel {
  padding: 26px;
  border-radius: 24px;
  color: var(--paper);
  background:
    radial-gradient(circle at 86% 10%, rgba(47, 107, 255, 0.42), transparent 16rem),
    linear-gradient(145deg, #08090d, #1a202b);
}

.affiliate-terms-panel p,
.affiliate-terms-panel .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.terms-box {
  max-height: 360px;
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.terms-box strong {
  display: block;
  margin-bottom: 12px;
}

.terms-box ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.acknowledgement-box {
  max-height: none;
  color: var(--ink);
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

.acknowledgement-box label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.45;
}

.acknowledgement-box input {
  width: auto;
  margin-top: 4px;
}

.affiliate-application-form {
  padding: 14px 6px 6px;
}

.affiliate-application-form h3 {
  margin-bottom: 4px;
  font-size: 1.7rem;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.upload-grid label {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px dashed rgba(47, 107, 255, 0.32);
  border-radius: 18px;
  background: var(--soft);
}

.upload-grid span {
  font-weight: 900;
}

.upload-grid small {
  color: var(--muted);
  line-height: 1.45;
}

.detail-visual {
  min-height: 420px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 12%, var(--accent), transparent 40%),
    linear-gradient(145deg, #f8fafc, #dfe4ed);
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.spec-list div {
  padding: 14px;
  border-radius: 16px;
  background: var(--soft);
}

.spec-list small,
.spec-list strong {
  display: block;
}

.spec-list small {
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 800;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  width: min(430px, 100%);
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: -26px 0 90px rgba(7, 8, 10, 0.14);
  transform: translateX(105%);
  transition: transform 240ms ease;
  backdrop-filter: blur(22px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  box-sizing: border-box;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
}

.drawer-header .modal-close {
  position: static;
}

.cart-items {
  display: grid;
  gap: 12px;
  overflow: auto;
  flex: 0 0 auto;
  max-height: min(140px, 18vh);
  min-height: 0;
  padding-right: 3px;
}

.cart-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.cart-thumb {
  height: 62px;
  border-radius: 16px;
  background: linear-gradient(145deg, #e8ebf0, #cbd2dc);
}

.cart-item h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-empty-state {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}

.cart-empty-state small {
  color: var(--muted);
  line-height: 1.45;
}

.terms-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.terms-check input {
  margin-top: 3px;
}

.order-history-card {
  grid-column: 1 / -1;
}

.order-list {
  display: grid;
  gap: 10px;
}

.order-item {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}

.order-item small {
  color: var(--muted);
  line-height: 1.45;
}

.remove-button {
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.checkout-card {
  display: grid;
  gap: 12px;
  margin-top: 0;
  padding: 16px 12px 28px 16px;
  border-radius: 22px;
  background: var(--soft);
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
  overflow-y: scroll;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.cart-drawer > .checkout-card {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: scroll;
}

.cart-drawer::-webkit-scrollbar,
.checkout-card::-webkit-scrollbar,
.cart-items::-webkit-scrollbar {
  width: 8px;
}

.cart-drawer::-webkit-scrollbar-thumb,
.checkout-card::-webkit-scrollbar-thumb,
.cart-items::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(17, 19, 24, 0.22);
}

.checkout-card [data-submit-order] {
  position: sticky;
  bottom: 0;
  z-index: 2;
  box-shadow: 0 -10px 24px rgba(248, 249, 251, 0.92);
}

.withdrawal-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-weight: 900;
}

.checkout-card small {
  color: var(--muted);
  line-height: 1.5;
}

.status-select {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 800;
}

.auth-form {
  display: grid;
  align-content: center;
  gap: 12px;
}

.auth-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.register-fields {
  display: grid;
  gap: 12px;
}

.private-beta-field {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0.96));
}

.private-beta-field label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.private-beta-field small {
  color: var(--muted);
  font-size: 0.78rem;
}

.beta-invite-form,
.beta-token-box {
  display: grid;
  gap: 12px;
}

.beta-token-box {
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.88));
  padding: 16px;
}

.beta-token-box strong {
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.02em;
}

.beta-token-box p,
.beta-invite-card p {
  margin: 0;
}

.preference-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.preference-toggle input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--ink);
}

.preference-toggle strong,
.preference-toggle small {
  display: block;
}

.preference-toggle small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  background: var(--soft);
  font-size: 0.86rem;
  line-height: 1.55;
}

.collection-notice {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.5;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  animation: reveal 700ms ease both;
}

.delay-1 {
  animation-delay: 120ms;
}

.delay-2 {
  animation-delay: 220ms;
}

.delay-3 {
  animation-delay: 320ms;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1060px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero,
  .dashboard-hero,
  .affiliate-hero,
  .admin-hero,
  .split-section,
  .referral-panel,
  .loyalty-hero,
  .account-layout,
  .affiliate-approval-card,
  .affiliate-application-grid,
  .admin-login-grid,
  .test-db-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .dashboard-hero {
    padding-top: 72px;
  }

  .affiliate-hero,
  .admin-hero {
    padding-top: 72px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .metric-strip,
  .service-grid,
  .affiliate-stat-grid,
  .admin-metric-grid,
  .trust-cards,
  .role-grid,
  .legal-grid,
  .customer-dashboard,
  .customer-tools,
  .student-choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .studytech-info {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-photo-frame {
    height: 202px;
    min-height: 202px;
  }

  .apple-product-image {
    width: min(56%, 158px);
    max-height: 158px;
  }

  .product-card .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .affiliate-command-grid,
  .admin-control-grid {
    grid-template-columns: 1fr;
  }

  .wide-panel {
    grid-column: span 1;
  }

  .trade-form {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .profile-panel {
    position: static;
  }

  .db-actions {
    justify-content: stretch;
  }

  .db-actions .secondary-button {
    width: 100%;
  }
}

@media (min-width: 901px) and (max-width: 1060px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
    gap: 32px;
    min-height: 620px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .phone-stack {
    width: 270px;
    height: 390px;
  }

  .phone-card {
    width: 200px;
    height: 382px;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .hero {
    gap: 24px;
    min-height: auto;
    padding-bottom: 48px;
  }

  .hero-visual {
    display: grid;
    min-height: 420px;
    overflow: hidden;
  }

  .hero-tech-scene {
    width: min(520px, calc(100vw - 80px));
    min-height: 340px;
  }
}

@media (max-width: 700px) {
  html,
  body {
    overflow-x: hidden;
  }

  .site-shell {
    width: 100%;
    max-width: 100vw;
  }

  body {
    font-size: 15px;
  }

  .section,
  .section-grid {
    width: calc(100vw - 44px);
    max-width: calc(100vw - 44px);
  }

  .site-header {
    top: 8px;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    margin: 8px 8px 0;
    gap: 8px;
    padding: 8px 9px;
    border-radius: 22px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
    overflow: hidden;
    padding-right: 88px;
  }

  .brand-mark {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .brand strong {
    max-width: 142px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
    letter-spacing: -0.045em;
  }

  .header-actions {
    position: static;
    z-index: 70;
    transform: none;
    flex: 0 0 auto;
    gap: 6px;
    min-width: 0;
  }

  .icon-button,
  .menu-button {
    flex: 0 0 36px;
    min-width: 36px;
    width: 36px;
    height: 38px;
    padding: 0;
  }

  .icon-button {
    position: fixed;
    top: calc(19px + env(safe-area-inset-top));
    right: max(62px, calc(100vw - 328px));
    z-index: 70;
    gap: 0;
  }

  .menu-button {
    position: fixed;
    top: calc(19px + env(safe-area-inset-top));
    right: max(18px, calc(100vw - 372px));
    z-index: 70;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 26px rgba(17, 19, 24, 0.1);
  }

  .icon-button strong {
    min-width: 22px;
    height: 22px;
    padding: 0;
    font-size: 0.7rem;
  }

  .brand small,
  .ghost-button,
  .icon-button span {
    display: none;
  }

  .mobile-nav {
    inset: 74px 8px auto;
    padding: 10px;
    border-radius: 20px;
  }

  .mobile-nav a,
  .mobile-nav-action {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .hero {
    gap: 18px;
    padding-top: 28px;
    padding-bottom: 24px;
    overflow: hidden;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding-right: 8px;
  }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    line-height: 1.45;
  }

  h1 {
    max-width: 100%;
    margin-bottom: 16px;
    font-size: clamp(1.78rem, 8.1vw, 2.22rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
  }

  h2 {
    font-size: clamp(1.6rem, 7vw, 2.25rem);
    line-height: 1.06;
  }

  h3 {
    font-size: 1.05rem;
  }

  .dashboard-hero h1,
  .affiliate-hero h1,
  .admin-hero h1 {
    font-size: clamp(1.85rem, 8.7vw, 2.55rem);
    line-height: 1.04;
  }

  .hero-text {
    max-width: calc(100% - 36px);
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .hero-actions,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .dashboard-catalogue-intro {
    display: grid;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
  }

  .dashboard-catalogue-intro .primary-button { width: 100%; }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0 16px;
  }

  .hero-actions .primary-button:first-child {
    grid-column: 1 / -1;
  }

  .hero-affiliate-action {
    display: none;
  }

  .trust-row {
    gap: 7px;
  }

  .trust-row span {
    padding: 7px 9px;
    font-size: 0.72rem;
  }

  .primary-button,
  .secondary-button {
    min-height: 46px;
    justify-content: center;
    min-width: 0;
    padding: 0 16px;
    text-align: center;
  }

  .mini-button,
  .danger-mini-button {
    min-width: 0;
  }

  .admin-command-card {
    gap: 12px;
    padding: 18px;
    border-radius: 26px;
    max-height: min(430px, 56svh);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
  }

  .admin-command-card strong {
    font-size: clamp(1.65rem, 9.5vw, 2.25rem);
    line-height: 0.98;
  }

  .admin-command-card p,
  .admin-metric-card p {
    font-size: 0.86rem;
    line-height: 1.42;
  }

  .admin-signal-list div,
  .ops-queue div,
  .inventory-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
  }

  .admin-signal-list small,
  .ops-queue span,
  .inventory-list small {
    font-size: 0.74rem;
    line-height: 1.3;
  }

  .admin-metric-card {
    gap: 7px;
    padding: 16px;
    border-radius: 22px;
  }

  .admin-metric-card strong {
    font-size: 1.6rem;
  }

  .admin-panel,
  .tool-card.order-history-card {
    max-height: min(500px, 68svh);
    padding: 18px;
  }

  .dashboard-card {
    min-height: auto;
    max-height: min(360px, 52svh);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    border-radius: 24px;
  }

  .dashboard-card h3 {
    font-size: clamp(1rem, 8vw, 1.55rem);
    line-height: 1.05;
  }

  .dashboard-card p {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .hero-visual {
    display: grid;
    min-height: 285px;
    margin-top: -2px;
  }

  .orb-one {
    width: 280px;
    height: 280px;
  }

  .hero-tech-scene {
    width: min(100%, 360px);
    min-height: 250px;
  }

  .hero-tech-scene img {
    width: min(100%, 380px);
    border-radius: 24px;
  }

  .hero-laptop {
    left: 2%;
    bottom: 28px;
    width: 238px;
    height: 158px;
  }

  .hero-laptop-screen {
    height: 143px;
    padding: 22px 20px;
    border-width: 6px;
    border-radius: 16px 16px 8px 8px;
  }

  .hero-laptop-screen strong {
    max-width: 132px;
    margin-top: 7px;
    font-size: 1.12rem;
  }

  .laptop-lines { width: 90px; gap: 5px; margin-top: 13px; }
  .laptop-lines i { height: 4px; }
  .laptop-progress { width: 122px; height: 6px; margin-top: 14px; }
  .hero-laptop-base { right: -13px; bottom: -12px; left: -13px; height: 16px; }

  .hero-phone {
    right: 1%;
    bottom: 1px;
    width: 105px;
    height: 202px;
    border-width: 5px;
    border-radius: 23px;
  }

  .hero-phone-pill { top: 8px; width: 42px; height: 12px; }
  .hero-phone-copy { right: 10px; bottom: 11px; left: 10px; padding: 9px; border-radius: 12px; }
  .hero-phone-copy span { font-size: 0.48rem; }
  .hero-phone-copy strong { margin: 4px 0 2px; font-size: 0.96rem; }
  .hero-phone-copy small { font-size: 0.55rem; }

  .floating-card {
    padding: 8px 10px;
    max-width: 150px;
  }

  .floating-card span { font-size: 0.55rem; }
  .floating-card strong { font-size: 0.92rem; }
  .floating-price { left: 0; bottom: 8%; }
  .floating-score { right: 0; top: 5%; }

  .floating-card {
    padding: 12px 14px;
    max-width: min(250px, calc(100vw - 36px));
  }

  .metric-strip,
  .studytech-explainer,
  .affiliate-stat-grid,
  .affiliate-command-grid,
  .admin-metric-grid,
  .admin-control-grid,
  .filters,
  .product-grid,
  .trust-cards,
  .role-grid,
  .legal-grid,
  .customer-dashboard,
  .customer-tools,
  .student-choice-grid,
  .process-list,
  .trade-form,
  .site-footer,
  .detail-grid,
  .auth-grid,
  .affiliate-approval-card,
  .affiliate-application-grid,
  .admin-login-grid,
  .admin-action-grid,
  .upload-grid,
  .spec-list {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .metric-strip div {
    padding: 14px;
  }

  .metric-strip strong {
    font-size: 1.25rem;
  }

  .metric-strip span {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .product-photo-frame {
    height: 162px;
    min-height: 162px;
    border-radius: 20px;
  }

  .apple-image-wrap {
    padding: 12px 24px;
  }

  .apple-product-image {
    width: min(45%, 126px);
    max-height: 126px;
  }

  .product-card {
    gap: 10px;
    padding: 10px;
  }

  .product-card h3 {
    font-size: 1rem;
  }

  .product-meta,
  .product-badges {
    gap: 5px;
  }

  .product-meta span,
  .product-badges .badge,
  .product-badges .trust-badge {
    font-size: 0.66rem;
  }

  .price {
    font-size: 1rem;
  }

  .price-block small {
    font-size: 0.68rem;
  }

  .product-card .mini-button {
    min-width: 0;
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.72rem;
    white-space: normal;
    line-height: 1.15;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .product-card .quick-actions {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .activity-row {
    grid-template-columns: 1fr;
  }

  .admin-row {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .share-kit {
    grid-template-columns: 1fr;
  }

  .cart-drawer {
    width: 100vw;
    height: 100vh;
    height: 100svh;
    max-height: 100vh;
    max-height: 100svh;
    gap: 10px;
    padding: 12px 10px 16px;
    border-radius: 0;
  }

  .cart-items {
    max-height: min(128px, 18svh);
  }

  .checkout-card {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
    overflow-y: scroll;
    padding: 14px 10px 28px;
  }

  .cart-item {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .cart-item .danger-mini-button,
  .cart-item .mini-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .modal,
  .detail-grid,
  .auth-grid,
  .affiliate-application-grid,
  .admin-login-grid {
    width: min(calc(100vw - 20px), 100%);
    max-height: 90svh;
    overflow-y: auto;
  }

  .highlight-card {
    grid-column: span 1;
  }

  .referral-panel {
    padding: 26px;
    border-radius: 30px;
  }

  .section {
    padding-top: 78px;
  }

  .detail-grid,
  .auth-grid,
  .affiliate-application-grid,
  .admin-login-grid {
    padding: 22px;
  }
}

/* Keep long customer workflows in normal document flow at every breakpoint. */
.tool-card.order-history-card.customer-workflow-card {
  max-height: none !important;
  overflow: visible !important;
}

.customer-workflow-card .dashboard-workflow,
.customer-workflow-card .seller-enquiry-form,
.customer-workflow-card .studytech-form,
.customer-workflow-card .device-request-form {
  max-height: none;
  overflow: visible;
}

/* Final responsive guard: keep the mobile support link out of long forms. */
@media (max-width: 520px) {
  .social-float {
    display: flex;
    font-size: 0.78rem;
    height: auto;
    justify-content: center;
    margin: 28px auto calc(18px + env(safe-area-inset-bottom));
    padding: 12px 16px;
    position: static;
    right: auto;
    bottom: auto;
    width: fit-content;
  }

  .social-float::before {
    content: none;
  }
}

/* Focused mobile information-architecture cleanup for the public storefront. */
@media (max-width: 700px) {
  .catalogue-actions {
    align-items: stretch;
    display: grid;
    gap: 10px;
    margin: -4px 0 18px;
  }

  .catalogue-actions .primary-button,
  .guest-intent-card .primary-button,
  .guest-intent-card .secondary-button,
  .studytech-actions .primary-button,
  .studytech-actions .secondary-button {
    width: 100%;
  }

  .archive-toolbar {
    grid-template-columns: 1fr;
  }

  .archive-toolbar .mini-button,
  .archive-toolbar .danger-mini-button {
    width: 100%;
  }

  .research-brief-grid {
    grid-template-columns: 1fr;
  }

  .research-card {
    max-height: 84vh;
    padding: 18px;
  }

  .primary-services-section {
    padding-top: 46px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-card-featured {
    order: -1;
  }

  .service-card {
    min-height: auto;
    gap: 8px;
    padding: 14px;
  }

  .service-card p {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .service-card .mini-button {
    min-width: 0;
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.72rem;
  }

  .studytech-copy,
  .studytech-explainer {
    border-radius: 28px;
  }

  .studytech-copy {
    padding: 22px;
  }

  .studytech-explainer {
    padding: 10px;
  }

  .studytech-explainer article {
    padding: 16px;
    border-radius: 20px;
  }

  .catalogue-actions p {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .guest-intent-grid {
    grid-template-columns: 1fr;
  }

  .guest-intent-card {
    gap: 10px;
    padding: 16px;
  }

  .guest-intent-card h3 {
    font-size: 1.04rem;
  }

  .guest-intent-card p {
    font-size: 0.88rem;
  }

  .seller-flow-grid {
    grid-template-columns: 1fr;
  }

  .compact-disclosure summary,
  .dashboard-workflow summary {
    min-height: 46px;
    padding: 13px 15px;
  }

  .dashboard-workflow .seller-enquiry-form,
  .dashboard-workflow .device-request-form,
  .dashboard-workflow .studytech-form,
  .compact-disclosure .trade-form {
    padding: 14px;
  }

  .product-card {
    gap: 8px;
    padding: 9px;
  }

  .product-card.catalog-card {
    align-items: stretch;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 10px;
  }

  .catalog-card .product-photo-frame {
    align-self: stretch;
    grid-column: 1;
    grid-row: 1 / span 3;
    height: auto;
    min-height: 154px;
  }

  .catalog-card > div:not(.product-photo-frame),
  .catalog-card .product-meta,
  .catalog-card .product-footer {
    grid-column: 2;
  }

  .product-photo-frame {
    height: 132px;
    min-height: 132px;
  }

  .apple-image-wrap {
    padding: 8px 18px;
  }

  .apple-product-image {
    width: min(42%, 108px);
    max-height: 108px;
  }

  .catalog-card .apple-product-image {
    width: min(76%, 88px);
    max-height: 112px;
  }

  .product-card h3 {
    font-size: 0.98rem;
    line-height: 1.12;
  }

  .product-meta,
  .product-badges {
    gap: 4px;
  }

  .product-meta span,
  .product-badges .badge,
  .product-badges .trust-badge {
    font-size: 0.62rem;
    line-height: 1.1;
    padding: 5px 7px;
  }

  .product-footer {
    gap: 7px;
  }

  .price {
    font-size: 0.96rem;
  }

  .product-card .quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card .mini-button {
    min-width: 0;
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.68rem;
    line-height: 1.1;
  }
}
