﻿:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --ink: #17211b;
  --muted: #5f6c64;
  --line: #dce4dc;
  --accent: #0c6b4b;
  --accent-dark: #084a35;
  --warning-bg: #fff6df;
  --warning-text: #7a5200;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.95rem;
}

.hero {
  padding: 72px 0 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 32px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.82rem;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
}

.price-card,
.bundle-card,
.info-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.price-card {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  margin: 12px 0 22px;
  padding: 14px 18px;
}

.price-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.price-card strong {
  font-size: 2rem;
  line-height: 1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

.btn:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.secondary-btn {
  min-height: 42px;
  justify-content: flex-start;
  background: #eef5ef;
  color: var(--accent-dark);
  border: 1px solid var(--line);
}

.secondary-btn:hover {
  background: #deeadf;
  color: var(--accent-dark);
}

.testing-note {
  display: inline-block;
  margin: 0;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--warning-bg);
  color: var(--warning-text);
  font-size: 0.92rem;
}

.delivery-note,
.muted-copy {
  color: var(--muted);
}

.compact-section {
  padding-top: 16px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading p {
  max-width: 620px;
  color: var(--muted);
}

.product-price-card {
  display: flex;
  width: fit-content;
}

.ebook-cover-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  max-width: 760px;
  margin: 0 auto;
}

.ebook-cover-grid figure {
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  text-align: center;
}

.ebook-cover-grid img {
  display: block;
  width: 100%;
  max-width: 125px;
  height: 175px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
}

.ebook-cover-grid figcaption {
  display: none;
}

.app-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.app-list li {
  color: var(--muted);
}

.app-list strong {
  color: var(--ink);
}

.disclaimer-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.disclaimer-block p {
  margin-bottom: 0;
  color: var(--muted);
}

.bundle-card {
  padding: 24px;
}

.bundle-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.bundle-card label {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 700;
}

.bundle-card input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  background: #ffffff;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
}

.checkbox-line input {
  width: auto;
  min-height: 0;
  margin-top: 5px;
}

.notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.notice p {
  margin: 0;
}

.notice p+p {
  margin-top: 8px;
}

.notice.error {
  border-color: #f0b8ad;
  background: #fff1ef;
  color: #8a2d1e;
}

.lounge-summary {
  margin-bottom: 18px;
}

.library-section {
  margin: 20px 0;
}

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

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

.product-card p:last-child {
  margin-bottom: 0;
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.disabled-btn,
.disabled-btn:hover {
  background: #c5cec7;
  color: #425049;
  cursor: not-allowed;
  text-decoration: none;
}

.admin-count {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #eef5ef;
  color: var(--ink);
  font-weight: 700;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-inline-form {
  display: grid;
  gap: 8px;
  min-width: 180px;
  margin: 0 0 10px;
}

.admin-inline-form:last-child {
  margin-bottom: 0;
}

.admin-inline-form textarea {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.admin-action-btn {
  min-height: 38px;
  padding: 8px 12px;
}

.section {
  padding: 20px 0 64px;
}

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

.info-grid article {
  padding: 22px;
}

.info-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {

  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid,
  .info-grid,
  .library-grid {
    grid-template-columns: 1fr;
  }

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

  .ebook-cover-grid {
    gap: 10px;
    max-width: 280px;
  }

  .ebook-cover-grid figure {
    padding: 7px;
    border-radius: 10px;
  }

  .ebook-cover-grid img {
    max-width: 105px;
    height: 150px;
  }

  .primary-cta {
    width: 100%;
  }

  .site-nav,
  .site-footer nav {
    gap: 12px;
  }
}

@media (max-width: 380px) {
  .ebook-cover-grid {
    gap: 8px;
    max-width: 250px;
  }

  .ebook-cover-grid img {
    max-width: 95px;
    height: 138px;
  }
}

/* Phase 14A Hotfix 2: force compact ebook proof grid */
body .ebook-cover-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 10px !important;
  max-width: 680px !important;
  margin: 0 auto !important;
  align-items: start !important;
}

body .ebook-cover-grid figure {
  margin: 0 !important;
  padding: 6px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
  text-align: center !important;
}

body .ebook-cover-grid img {
  display: block !important;
  width: auto !important;
  max-width: 110px !important;
  height: 155px !important;
  max-height: 155px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  border-radius: 6px !important;
}

body .ebook-cover-grid figcaption {
  display: none !important;
}

@media (max-width: 760px) {
  body .ebook-cover-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    max-width: 240px !important;
  }

  body .ebook-cover-grid figure {
    padding: 5px !important;
    border-radius: 8px !important;
  }

  body .ebook-cover-grid img {
    max-width: 95px !important;
    height: 135px !important;
    max-height: 135px !important;
  }
}

@media (max-width: 380px) {
  body .ebook-cover-grid {
    max-width: 220px !important;
    gap: 7px !important;
  }

  body .ebook-cover-grid img {
    max-width: 85px !important;
    height: 122px !important;
    max-height: 122px !important;
  }
}

/* Phase 15A: affiliate operational UI */
.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.13), transparent 34%),
    linear-gradient(135deg, #f8fafc 0%, #eef2f7 52%, #e5e7eb 100%);
}

.operational-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  backdrop-filter: blur(10px);
}

.operational-header .brand img {
  width: 38px;
  height: 38px;
}

.operational-main {
  padding: 44px 0 64px;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.auth-panel,
.auth-card,
.dashboard-card,
.form-section {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.auth-panel,
.auth-card,
.dashboard-card {
  padding: 28px;
}

.auth-panel h1,
.auth-card h1,
.dashboard-title h1 {
  margin-bottom: 14px;
}

.feature-mini-grid,
.dashboard-grid,
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-mini-card,
.stat-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
}

.feature-mini-card h2,
.stat-card h2 {
  margin-bottom: 6px;
  font-size: 0.96rem;
}

.feature-mini-card p,
.stat-card p,
.auth-muted {
  color: var(--muted);
}

.step-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 20px;
}

.form-section {
  padding: 18px;
  margin-bottom: 18px;
}

.auth-card form {
  display: grid;
  gap: 14px;
}

.form-section h2 {
  margin-bottom: 14px;
}

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

.form-grid label,
.auth-card label,
.form-section label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

.form-grid input,
.auth-card input,
.auth-card select,
.auth-card textarea,
.form-section input,
.form-section select,
.form-section textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  background: #ffffff;
}

.form-grid textarea,
.auth-card textarea,
.form-section textarea {
  min-height: 96px;
  resize: vertical;
}

.full-span {
  grid-column: 1 / -1;
}

.notice-success,
.notice-error,
.notice-warning,
.notice-info {
  margin: 0 0 18px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.86);
}

.notice-success {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
}

.notice-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.notice-warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.notice-info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
}

.affiliate-link-card {
  padding: 16px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 16px;
  background: #eef2ff;
  overflow-wrap: anywhere;
}

.affiliate-link-card strong {
  display: block;
  margin-bottom: 6px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.86rem;
  font-weight: 700;
}

.dashboard-title {
  margin-bottom: 22px;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-indigo {
  background: #4f46e5;
}

.btn-indigo:hover {
  background: #4338ca;
}

@media (max-width: 860px) {

  .auth-grid,
  .feature-mini-grid,
  .dashboard-grid,
  .status-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .auth-panel,
  .auth-card,
  .dashboard-card {
    padding: 22px;
  }

  .operational-main {
    padding-top: 28px;
  }
}

/* Phase 15A Hotfix 1: Affiliate operational UI */

.operational-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 32rem),
    linear-gradient(135deg, #f1f5f9 0%, #f8fafc 45%, #e2e8f0 100%);
  color: #0f172a;
}

.operational-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.operational-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.operational-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  text-decoration: none;
}

.operational-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #4f46e5;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.operational-brand-title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.operational-brand-subtitle {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: #64748b;
}

.operational-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.operational-nav a {
  color: #475569;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 600;
}

.operational-nav a:hover {
  color: #0f172a;
}

.operational-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.operational-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 32px;
  align-items: start;
}

.operational-intro {
  min-width: 0;
}

.operational-kicker {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.operational-title {
  margin: 0;
  max-width: 720px;
  color: #0f172a;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.operational-lead {
  margin: 22px 0 0;
  max-width: 680px;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.8;
}

.operational-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.operational-mini-card,
.operational-card,
.operational-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.operational-mini-card {
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.operational-mini-card h3,
.operational-card h2,
.operational-panel h2 {
  margin-top: 0;
  color: #0f172a;
}

.operational-mini-card h3 {
  margin-bottom: 8px;
  font-size: 0.98rem;
  color: #4338ca;
}

.operational-mini-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.55;
}

.operational-card {
  margin-top: 28px;
  padding: 28px;
}

.operational-card h2 {
  margin-bottom: 18px;
  font-size: 1.35rem;
}

.operational-steps {
  display: grid;
  gap: 18px;
}

.operational-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.operational-step-number {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #4f46e5;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.operational-step strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
}

.operational-step p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.6;
}

.operational-panel {
  padding: 28px;
}

.operational-panel-kicker {
  color: #4338ca;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.operational-panel h2 {
  margin: 8px 0 10px;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.operational-panel p {
  color: #64748b;
  line-height: 1.65;
}

.form-section {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.form-section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.form-section-title {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 800;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.form-field {
  display: grid !important;
  gap: 7px !important;
  margin: 0 !important;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea,
.affiliate-form input[type="text"],
.affiliate-form input[type="email"],
.affiliate-form input[type="password"],
.affiliate-form textarea,
.affiliate-form select {
  width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid #cbd5e1 !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  border-radius: 16px !important;
  padding: 13px 14px !important;
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  outline: none !important;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease !important;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.affiliate-form input:focus,
.affiliate-form textarea:focus,
.affiliate-form select:focus {
  border-color: #4f46e5 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12) !important;
}

.form-help {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.45;
}

.checkbox-line,
.affiliate-form .checkbox-line {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  color: #475569 !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
}

.checkbox-line input {
  margin-top: 4px !important;
  width: auto !important;
}

.operational-btn,
.affiliate-form button,
.affiliate-form .btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  background: #4f46e5;
  color: #ffffff !important;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.22);
}

.operational-btn:hover,
.affiliate-form button:hover,
.affiliate-form .btn:hover {
  background: #4338ca;
}

.operational-secondary-link {
  color: #4338ca;
  font-weight: 800;
  text-decoration: none;
}

.operational-muted-box,
.operational-warning-box {
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.operational-muted-box {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #f8fafc;
  color: #64748b;
}

.operational-warning-box {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.notice,
.notice-success,
.notice-error,
.notice-info,
.notice-warning {
  border-radius: 18px;
  padding: 16px;
  margin: 0 0 18px;
  line-height: 1.6;
}

.notice-success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.notice-error,
.notice.error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.notice-info {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
}

.notice-warning {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.operational-footer-links {
  margin-top: 20px;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

.operational-footer-links a {
  color: #4338ca;
  font-weight: 800;
  text-decoration: none;
}

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

.stat-card,
.dashboard-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.stat-card .label,
.dashboard-card .label {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.stat-card .value,
.dashboard-card .value {
  margin-top: 8px;
  color: #0f172a;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 960px) {
  .operational-layout {
    grid-template-columns: 1fr;
  }

  .operational-feature-grid,
  .dashboard-grid,
  .affiliate-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .operational-title {
    font-size: clamp(2rem, 12vw, 3.4rem);
  }
}

@media (max-width: 640px) {
  .operational-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .operational-nav {
    gap: 12px;
  }

  .operational-main {
    padding: 32px 16px 48px;
  }

  .operational-panel,
  .operational-card {
    padding: 22px;
    border-radius: 22px;
  }

  .operational-panel h2 {
    font-size: 1.75rem;
  }
}

/* Phase 15A Hotfix 2: affiliate form spacing polish */
.affiliate-form .checkbox-line {
  margin: 4px 0 18px !important;
}

.affiliate-form .operational-btn,
.affiliate-form button[type="submit"] {
  margin-top: 8px !important;
}

.operational-panel .form-section:last-of-type {
  padding-bottom: 4px !important;
}

.operational-panel {
  padding-bottom: 32px !important;
}

@media (max-width: 640px) {
  .affiliate-form .checkbox-line {
    margin: 6px 0 20px !important;
  }

  .affiliate-form .operational-btn,
  .affiliate-form button[type="submit"] {
    margin-top: 10px !important;
  }
}

/* Phase 15A Hotfix 3: force affiliate agreement/button spacing */
.affiliate-form .checkbox-line {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin: 8px 0 26px !important;
  padding-bottom: 0 !important;
}

.affiliate-form .checkbox-line+button,
.affiliate-form .checkbox-line+.operational-btn,
.affiliate-form button[type="submit"] {
  margin-top: 16px !important;
}

.affiliate-form .form-section:has(.checkbox-line) {
  margin-bottom: 24px !important;
}

.affiliate-agreement-block {
  margin: 10px 0 28px !important;
}

.operational-panel .affiliate-form {
  display: block !important;
}

.operational-panel .affiliate-form button[type="submit"] {
  width: 100% !important;
  margin-top: 18px !important;
}

@media (max-width: 640px) {
  .affiliate-form .checkbox-line {
    margin: 10px 0 28px !important;
  }

  .operational-panel .affiliate-form button[type="submit"] {
    margin-top: 20px !important;
  }
}

/* Phase 15A Hotfix 4: affiliate header real logo */
.operational-brand-logo {
  display: block;
  width: auto;
  height: 42px;
  max-width: 160px;
  object-fit: contain;
}

.operational-brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .operational-brand-logo {
    height: 36px;
    max-width: 140px;
  }
}

/* Phase 15A Hotfix 5: enlarge affiliate header logo slightly */
.operational-brand-logo {
  height: 54px !important;
  max-width: 190px !important;
}

.operational-brand-logo-wrap {
  min-height: 54px !important;
  display: flex !important;
  align-items: center !important;
}

@media (max-width: 640px) {
  .operational-brand-logo {
    height: 42px !important;
    max-width: 160px !important;
  }

  .operational-brand-logo-wrap {
    min-height: 42px !important;
  }
}

/* Phase 15A Hotfix 6: make affiliate logo visibly larger */
.operational-brand-logo {
  height: 72px !important;
  max-width: 260px !important;
}

.operational-brand-logo-wrap {
  min-height: 72px !important;
  display: flex !important;
  align-items: center !important;
}

.operational-header-inner {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

@media (max-width: 640px) {
  .operational-brand-logo {
    height: 52px !important;
    max-width: 210px !important;
  }

  .operational-brand-logo-wrap {
    min-height: 52px !important;
  }
}

/* Phase 15A Hotfix 7: affiliate login secondary link spacing */
.affiliate-form .operational-btn+a,
.affiliate-form button[type="submit"]+a,
.affiliate-form .operational-secondary-link,
.operational-panel .operational-secondary-link {
  display: inline-block !important;
  margin-top: 14px !important;
}

.affiliate-form .operational-footer-links {
  margin-top: 26px !important;
}

.operational-panel .affiliate-form button[type="submit"] {
  margin-bottom: 12px !important;
}

@media (max-width: 640px) {

  .affiliate-form .operational-btn+a,
  .affiliate-form button[type="submit"]+a,
  .affiliate-form .operational-secondary-link,
  .operational-panel .operational-secondary-link {
    margin-top: 16px !important;
  }

  .affiliate-form .operational-footer-links {
    margin-top: 28px !important;
  }
}

/* Phase 15A Hotfix 8: direct forgot password spacing */
.affiliate-forgot-link {
  margin-top: 18px !important;
  margin-bottom: 22px !important;
  display: block !important;
}

.affiliate-forgot-link a {
  display: inline-block !important;
  color: #4338ca !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.affiliate-forgot-link a:hover {
  text-decoration: underline !important;
}

@media (max-width: 640px) {
  .affiliate-forgot-link {
    margin-top: 20px !important;
    margin-bottom: 24px !important;
  }
}

/* Phase 15B: support centre operational UI */
.support-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.support-category-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.support-category-card h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.35;
}

.support-category-card ul,
.support-checklist ul,
.support-checklist-list {
  margin: 0;
  padding-left: 20px;
  color: #64748b;
  line-height: 1.65;
}

.support-category-card a {
  color: #4338ca;
  font-weight: 800;
  text-decoration: none;
}

.support-category-card a:hover {
  text-decoration: underline;
}

.support-ticket-actions {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.support-ticket-actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.support-ticket-actions-inline .operational-btn {
  width: auto;
  min-width: 190px;
}

.operational-btn-secondary {
  background: #eef2ff !important;
  color: #4338ca !important;
  border: 1px solid #c7d2fe !important;
  box-shadow: none !important;
}

.operational-btn-secondary:hover {
  background: #e0e7ff !important;
}

.support-checklist {
  display: grid;
  gap: 18px;
}

.support-form textarea {
  min-height: 130px;
  resize: vertical;
}

.support-success-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.support-ticket-number {
  display: inline-flex;
  margin: 12px 0 18px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.support-lookup-layout {
  grid-template-columns: minmax(0, 1fr) 380px;
}

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

.support-status-grid div,
.support-summary-box,
.support-event-item {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #f8fafc;
  border-radius: 18px;
  padding: 14px;
}

.support-status-grid span,
.support-summary-box span,
.support-event-item span,
.support-event-item small {
  display: block;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.support-status-grid strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.45;
}

.support-status-badge {
  display: inline-flex !important;
  width: fit-content;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca !important;
  padding: 6px 10px;
}

.support-summary-box {
  margin-top: 16px;
}

.support-summary-box p {
  margin: 8px 0 0;
  color: #0f172a;
  line-height: 1.65;
}

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

.support-event-item strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
}

.support-event-item p {
  margin: 10px 0;
  color: #334155;
  line-height: 1.65;
}

@media (max-width: 960px) {

  .support-category-grid,
  .support-status-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .support-ticket-actions-inline {
    display: grid;
  }

  .support-ticket-actions-inline .operational-btn {
    width: 100%;
    min-width: 0;
  }

  .support-ticket-number {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    font-size: 1.1rem;
  }
}

/* Phase 15C: member lounge operational UI */
.member-form .form-section:first-of-type {
  padding-top: 0;
}

.member-secondary-link {
  margin-top: 18px;
  text-align: center;
}

.member-secondary-link a {
  color: #4338ca;
  font-weight: 800;
  text-decoration: none;
}

.member-secondary-link a:hover {
  text-decoration: underline;
}

.member-auth-card {
  max-width: 680px;
  margin: 0 auto;
}

.member-auth-card h1 {
  margin: 10px 0 12px;
  color: #0f172a;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.member-inline-button {
  width: fit-content;
  min-width: 190px;
  margin-top: 16px;
}

.member-status-card,
.member-access-card,
.member-library-card,
.member-product-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.member-status-card {
  padding: 16px;
  margin: 18px 0 4px;
  background: #f8fafc;
}

.member-status-card p {
  margin: 6px 0;
  color: #475569;
}

.member-lounge-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.member-access-card {
  padding: 24px;
}

.member-access-card h2 {
  margin: 0 0 14px;
  color: #0f172a;
}

.member-access-card p {
  margin: 8px 0;
  color: #475569;
  line-height: 1.55;
}

.member-access-card .operational-btn {
  margin-top: 16px;
  width: 100%;
}

.member-section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.member-section-heading h2 {
  margin: 10px 0 8px;
  color: #0f172a;
  font-size: 1.6rem;
  line-height: 1.2;
}

.member-section-heading p {
  color: #64748b;
  line-height: 1.7;
}

.member-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.member-product-card {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.member-product-card img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 142px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 8px;
}

.member-product-card span {
  display: block;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
}

.member-product-card h3 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.3;
}

.member-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 12px;
  background: #4f46e5;
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  padding: 8px 10px;
}

.member-download-link:hover {
  background: #4338ca;
}

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

.member-library-card {
  padding: 20px;
}

.member-library-card h3 {
  margin: 0 0 8px;
  color: #0f172a;
}

.member-library-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

.member-library-card a {
  display: inline-block;
  margin-top: 12px;
}

@media (max-width: 1080px) {
  .member-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .member-lounge-hero {
    grid-template-columns: 1fr;
  }

  .member-library-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .member-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

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

  .member-product-card img {
    height: 128px;
  }

  .member-inline-button {
    width: 100%;
  }
}

/* Phase 15D: compact internal admin UI */
.admin-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 34rem),
    linear-gradient(135deg, #f1f5f9 0%, #f8fafc 48%, #e2e8f0 100%);
  color: #0f172a;
}

.admin-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.admin-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  text-decoration: none;
}

.admin-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #4f46e5;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.admin-brand-title,
.admin-brand-subtitle {
  display: block;
  line-height: 1.2;
}

.admin-brand-title {
  font-size: 1rem;
  font-weight: 900;
}

.admin-brand-subtitle {
  margin-top: 2px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-nav a {
  color: #475569;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.admin-nav a:hover {
  color: #0f172a;
}

.admin-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 20px 56px;
}

.admin-hero,
.admin-section,
.admin-login-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
}

.admin-hero {
  padding: 24px;
  margin-bottom: 20px;
}

.admin-kicker {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-page-title {
  margin: 12px 0 8px;
  color: #0f172a;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.admin-page-lead {
  max-width: 820px;
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

.admin-stat-grid,
.admin-card-grid,
.admin-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-stat-card,
.admin-dashboard-card {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.admin-stat-label,
.admin-dashboard-card h3 {
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-stat-value,
.admin-dashboard-card .admin-stat-value {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 1.9rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
}

.admin-stat-copy,
.admin-dashboard-card p {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
}

.admin-section {
  margin-top: 18px;
  padding: 20px;
}

.admin-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-section-title {
  margin: 0;
  color: #0f172a;
  font-size: 1.15rem;
}

.admin-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.admin-button,
.admin-button-secondary,
.admin-dashboard-card a,
.admin-table a,
.admin-inline-form button,
.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #4f46e5;
  color: #ffffff !important;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.admin-button:hover,
.admin-dashboard-card a:hover,
.admin-table a:hover,
.admin-inline-form button:hover,
.admin-action-btn:hover {
  background: #4338ca;
}

.admin-button-secondary {
  background: #eef2ff;
  color: #4338ca !important;
  border: 1px solid #c7d2fe;
}

.admin-button-secondary:hover {
  background: #e0e7ff;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.admin-table th,
.admin-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-table tbody tr:hover {
  background: #f8fafc;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-muted {
  color: #64748b;
}

.admin-notice,
.admin-notice-error,
.admin-notice-success,
.admin-notice-warning {
  border-radius: 16px;
  padding: 14px 16px;
  margin: 14px 0;
  line-height: 1.55;
}

.admin-notice-error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.admin-notice-success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

/* Phase 16C: affiliate terms legal content */
.legal-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px;
}

.legal-content h1 {
  margin: 0 0 18px;
  color: #0f172a;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.legal-content p,
.legal-content li {
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.75;
}

.legal-content ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-content a {
  color: #4338ca;
  font-weight: 800;
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-meta {
  margin: 22px 0 26px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: #f8fafc;
}

.legal-meta p {
  margin: 0 0 12px;
}

.legal-meta p:last-child {
  margin-bottom: 0;
}

.legal-section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.legal-section h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 1.25rem;
  line-height: 1.25;
}

.legal-content code {
  display: inline-block;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 8px;
  background: #eef2ff;
  color: #3730a3;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .legal-content {
    padding: 24px 20px;
  }
}

/* Phase 17A: member billing and printable receipt */
.member-billing-list {
  display: grid;
  gap: 16px;
}

.member-billing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 20px;
  background: #f8fafc;
}

.member-billing-card h2 {
  margin: 8px 0 12px;
  color: #0f172a;
}

.member-billing-card p {
  margin: 6px 0;
  color: #475569;
}

.member-billing-actions {
  min-width: 180px;
}

.receipt-document {
  max-width: 860px;
  margin: 0 auto;
  padding: 38px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 24px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 2px solid #e2e8f0;
}

.receipt-header h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.receipt-header p,
.receipt-footer p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.receipt-header strong {
  font-size: 1.8rem;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.receipt-grid div {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.receipt-grid span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.receipt-grid strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.receipt-section {
  margin-top: 24px;
}

.receipt-section h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
}

.receipt-table th,
.receipt-table td {
  padding: 12px;
  border: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.receipt-table th {
  background: #f8fafc;
}

.receipt-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.receipt-actions {
  display: flex;
  max-width: 860px;
  margin: 18px auto 0;
  gap: 12px;
}

@media (max-width: 760px) {

  .member-billing-card,
  .receipt-header,
  .receipt-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .member-billing-actions {
    min-width: 0;
  }

  .receipt-document {
    padding: 24px 18px;
    border-radius: 18px;
  }

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

@media print {
  body.receipt-page {
    background: #ffffff !important;
  }

  .receipt-no-print,
  .receipt-actions,
  .operational-header {
    display: none !important;
  }

  .operational-main {
    max-width: none !important;
    padding: 0 !important;
  }

  .receipt-document {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

/* Phase 17B: affiliate dashboard referral link formats */
.affiliate-link-card span {
  display: block;
  margin-top: 6px;
  font-weight: 700;
}

/* Phase 17B Hotfix 3: clean affiliate referral links */
.affiliate-link-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.affiliate-link-box {
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: #eef2ff;
  border-radius: 16px;
  padding: 14px 16px;
}

.affiliate-link-label {
  display: block;
  margin-bottom: 6px;
  color: #4338ca;
  font-size: 0.82rem;
  font-weight: 800;
}

.affiliate-link-url {
  display: block;
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}

.affiliate-link-url:hover {
  color: #4338ca;
  text-decoration: underline;
}

.affiliate-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.affiliate-action-row .operational-btn {
  width: auto;
}

.affiliate-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
}

.affiliate-secondary-button:hover {
  background: #eef2ff;
  color: #4338ca;
}

@media (max-width: 640px) {

  .affiliate-action-row .operational-btn,
  .affiliate-secondary-button {
    width: 100%;
  }
}

.admin-notice-warning,
.admin-notice {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.admin-form,
.admin-inline-form {
  display: grid;
  gap: 10px;
}

.admin-form label,
.admin-inline-form label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-inline-form input,
.admin-inline-form select,
.admin-inline-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 12px;
  padding: 10px 11px;
  font-size: 0.9rem;
}

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

.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login-card {
  width: min(100%, 460px);
  padding: 28px;
}

.admin-login-card .admin-brand {
  margin-bottom: 22px;
}

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

.admin-detail-item {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px;
}

.admin-detail-item span {
  display: block;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-detail-item strong,
.admin-detail-item pre {
  display: block;
  margin: 6px 0 0;
  color: #0f172a;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 1100px) {

  .admin-stat-grid,
  .admin-card-grid,
  .admin-link-grid,
  .admin-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-main {
    padding: 24px 14px 44px;
  }

  .admin-stat-grid,
  .admin-card-grid,
  .admin-link-grid,
  .admin-form-grid,
  .admin-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-section-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Phase 18G: Member Lounge desktop-first layout */
.member-v2-body {
  margin: 0;
  min-height: 100vh;
  background: #e7ece8;
  color: #10231d;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.member-v2-body *,
.member-v2-body *::before,
.member-v2-body *::after {
  box-sizing: border-box;
}

.member-v2-body img {
  max-width: 100%;
  height: auto;
}

.member-v2-menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.member-v2-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.member-v2-header-inner,
.member-v2-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.member-v2-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.member-v2-menu-button {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #053b2e;
  background: #eaf7f0;
  border: 1px solid rgba(4, 120, 87, 0.12);
  border-radius: 14px;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.member-v2-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: #10231d;
  text-decoration: none;
}

.member-v2-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.member-v2-brand strong,
.member-v2-brand small {
  display: block;
}

.member-v2-brand strong {
  color: #10231d;
  font-size: 1.18rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.member-v2-brand small {
  margin-top: 6px;
  color: #64746c;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.member-v2-emergency-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}

.member-v2-emergency-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  color: #053b2e;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  position: relative;
  z-index: 2;
}

.member-v2-emergency-nav a:hover {
  color: #047857;
  background: #eaf7f0;
}

.member-v2-date-card {
  min-width: 240px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.member-v2-date-card::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 3px solid #047857;
  border-radius: 7px;
  box-shadow: inset 0 8px 0 -5px #047857;
}

.member-v2-date-card span,
.member-v2-date-card strong {
  grid-column: 2;
  display: block;
}

.member-v2-date-card span {
  color: #0f3f32;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-v2-date-card strong {
  margin-top: 4px;
  color: #64746c;
  font-size: 0.82rem;
  font-weight: 700;
}

.member-v2-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: min(330px, 86vw);
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 18px;
  color: #ffffff;
  background: linear-gradient(145deg, #064132 0%, #003326 62%, #00160f 100%);
  box-shadow: 18px 0 38px rgba(15, 23, 42, 0.28);
  transform: translateX(-110%);
  transition: transform 0.18s ease;
}

.member-v2-menu-toggle:checked~.member-v2-drawer {
  transform: translateX(0);
}

.member-v2-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.38);
  opacity: 0;
  pointer-events: none;
}

.member-v2-menu-toggle:checked~.member-v2-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.member-v2-drawer-profile {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.member-v2-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #064132;
  background: #f2f7f4;
  border-radius: 14px;
  font-weight: 950;
}

.member-v2-drawer-profile strong,
.member-v2-drawer-profile span,
.member-v2-drawer-profile em {
  display: block;
}

.member-v2-drawer-profile strong,
.member-v2-drawer-profile span {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-v2-drawer-profile strong {
  font-size: 0.86rem;
}

.member-v2-drawer-profile span {
  margin-top: 3px;
  opacity: 0.85;
  font-size: 0.76rem;
}

.member-v2-drawer-profile em {
  width: max-content;
  margin-top: 7px;
  padding: 5px 9px;
  color: #ffffff;
  background: #0aa34f;
  border-radius: 999px;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.member-v2-drawer-nav {
  display: grid;
  gap: 7px;
}

.member-v2-drawer-nav a,
.member-v2-drawer-details summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  color: #ffffff;
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.member-v2-drawer-nav a:hover,
.member-v2-drawer-details[open] summary {
  background: rgba(34, 197, 94, 0.22);
}

.member-v2-drawer-details summary::-webkit-details-marker {
  display: none;
}

.member-v2-drawer-details div {
  display: grid;
  gap: 4px;
  margin: 6px 0 8px 34px;
}

.member-v2-drawer-details div a {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.07);
}

.member-v2-menu-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.member-v2-menu-icon::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.member-v2-page {
  padding: 18px 0 64px;
}

.member-v2-hero {
  position: relative;
  min-height: 262px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
  gap: 22px;
  align-items: center;
  overflow: hidden;
  padding: 34px 58px 42px;
  color: #ffffff;
  background: radial-gradient(circle at 72% 18%, rgba(14, 165, 113, 0.18), transparent 18rem), linear-gradient(135deg, #04392d 0%, #052d24 56%, #001912 100%);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.member-v2-hero-content span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  color: #d8fbe4;
  background: rgba(34, 197, 94, 0.22);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-v2-hero-content h1 {
  max-width: 470px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.member-v2-hero-content p {
  max-width: 440px;
  margin: 16px 0 0;
  color: #d7f8e3;
  font-size: 1rem;
  line-height: 1.55;
}

.member-v2-hero-content a,
.member-v2-account-panel>a,
.member-v2-product-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #0aa34f;
  border-radius: 11px;
  font-weight: 950;
  text-decoration: none;
}

.member-v2-hero-content a {
  min-height: 42px;
  margin-top: 22px;
  padding: 0 18px;
  font-size: 0.88rem;
}

.member-v2-hero-media {
  position: relative;
  min-height: 190px;
}

.member-v2-hero-media img {
  position: absolute;
  width: 116px;
  height: 164px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.32);
}

.member-v2-hero-media img:nth-child(1) {
  top: 0;
  right: 220px;
  z-index: 2;
}

.member-v2-hero-media img:nth-child(2) {
  top: 18px;
  right: 112px;
  z-index: 3;
}

.member-v2-hero-media img:nth-child(3) {
  top: 36px;
  right: 0;
  z-index: 4;
}

.member-v2-hero-banner-img {
  position: static !important;
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: 260px;
  object-fit: contain;
  border-radius: 18px;
}

.member-v2-hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(4, 120, 87, 0.86);
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.member-v2-hero-arrow-left {
  left: 18px;
}

.member-v2-hero-arrow-right {
  right: 18px;
}

.member-v2-hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.member-v2-hero-dots span {
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
}

.member-v2-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.member-v2-category-panel,
.member-v2-account-panel,
.member-v2-announcement-panel,
.member-v2-product-panel,
.member-v2-extra-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.member-v2-category-panel,
.member-v2-account-panel {
  padding: 22px;
}

.member-v2-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.member-v2-panel-title h2,
.member-v2-account-panel h2,
.member-v2-announcement-panel h2 {
  margin: 0;
  color: #10231d;
  font-size: 1.15rem;
  line-height: 1.2;
}

.member-v2-panel-title a,
.member-v2-category-toggle {
  color: #047857;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 950;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.member-v2-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.member-v2-category-card {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 8px;
  color: #10231d;
  text-align: center;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.member-v2-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 950;
}

.member-v2-icon-book::before {
  content: "B";
}

.member-v2-icon-gift::before {
  content: "+";
}

.member-v2-icon-audio::before {
  content: "A";
}

.member-v2-icon-phone::before {
  content: "P";
}

.member-v2-icon-template::before {
  content: "T";
}

.member-v2-icon-sheet::before {
  content: "S";
}

.member-v2-icon-ai::before {
  content: "AI";
  font-size: 0.68rem;
}

.member-v2-icon-image::before {
  content: "I";
}

.member-v2-icon-video::before {
  content: "V";
}

.member-v2-icon-slides::before {
  content: "G";
}

.member-v2-icon-script::before {
  content: "W";
}

.member-v2-icon-docs::before {
  content: "D";
}

.member-v2-icon-receipt::before {
  content: "RM";
  font-size: 0.66rem;
}

.member-v2-icon-book,
.member-v2-icon-image,
.member-v2-icon-sheet {
  color: #02964f;
  background: #dcfce7;
}

.member-v2-icon-gift,
.member-v2-icon-receipt {
  color: #e36900;
  background: #fff4df;
}

.member-v2-icon-audio,
.member-v2-icon-video {
  color: #e11d48;
  background: #ffe4e6;
}

.member-v2-icon-phone,
.member-v2-icon-ai {
  color: #1d4ed8;
  background: #dbeafe;
}

.member-v2-icon-template {
  color: #7c3aed;
  background: #ede9fe;
}

.member-v2-icon-slides,
.member-v2-icon-script,
.member-v2-icon-docs {
  color: #0f766e;
  background: #ccfbf1;
}

.member-v2-category-extra {
  display: none;
}

.member-v2-category-panel.is-expanded .member-v2-category-extra {
  display: flex;
}

.member-v2-category-card strong {
  color: #10231d;
  font-size: 0.8rem;
  line-height: 1.15;
}

.member-v2-category-card small {
  color: #64746c;
  font-size: 0.68rem;
  line-height: 1.15;
}

.member-v2-icon-wrap {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

.member-v2-category-icon-img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
}

.member-v2-account-panel dl {
  margin: 16px 0 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.member-v2-account-panel dl div {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.member-v2-account-panel dl div:last-child {
  border-bottom: 0;
}

.member-v2-account-panel dt,
.member-v2-account-panel dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}

.member-v2-account-panel dt {
  color: #10231d;
  font-weight: 900;
}

.member-v2-account-panel dd {
  color: #334155;
}

.member-v2-account-panel dd span {
  display: inline-flex;
  padding: 4px 10px;
  color: #047857;
  background: #dcfce7;
  border-radius: 999px;
  font-weight: 900;
}

.member-v2-account-panel>a {
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
}

.member-v2-announcement-panel {
  min-height: 104px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 18px;
  padding: 24px;
}

.member-v2-announcement-label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.member-v2-megaphone {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #047857;
  background: #dcfce7;
  border-radius: 999px;
  font-weight: 950;
}

.member-v2-megaphone::before {
  content: "!";
}

.member-v2-announcement-content {
  display: grid;
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.member-v2-announcement-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-width: 0;
}

.member-v2-announcement-panel strong,
.member-v2-announcement-panel small,
.member-v2-announcement-panel p {
  margin: 0;
}

.member-v2-announcement-panel strong {
  display: block;
  min-width: 0;
  color: #10231d;
  font-size: 0.98rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.member-v2-announcement-panel em {
  display: inline-flex;
  margin-left: 6px;
  padding: 3px 7px;
  color: #ffffff;
  background: #f59e0b;
  border-radius: 999px;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
}

.member-v2-announcement-panel small {
  display: inline-block;
  flex: 0 0 auto;
  color: #64746c;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.member-v2-announcement-panel p {
  color: #334155;
  font-size: 0.86rem;
  line-height: 1.45;
}

.member-v2-product-panel,
.member-v2-extra-panel {
  margin-top: 18px;
  padding: 20px;
}

.member-v2-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.member-v2-product-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  background: #f8faf9;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 12px;
}

.member-v2-product-card img {
  width: 100%;
  max-width: 104px;
  height: 146px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.member-v2-product-card span {
  color: #047857;
  font-size: 0.72rem;
  font-weight: 950;
}

.member-v2-product-card h3 {
  margin: 4px 0 9px;
  color: #10231d;
  font-size: 0.84rem;
  line-height: 1.3;
}

.member-v2-product-card a {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.72rem;
}

.member-v2-extra-panel>div:last-child {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.member-v2-extra-panel article {
  padding: 14px;
  background: #f8faf9;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 12px;
}

.member-v2-extra-panel strong {
  color: #10231d;
}

.member-v2-extra-panel p {
  margin: 8px 0 0;
  color: #64746c;
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .member-v2-main-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .member-v2-category-grid,
  .member-v2-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {

  .member-v2-header-inner,
  .member-v2-page {
    width: calc(100% - 28px);
  }

  .member-v2-header {
    background: linear-gradient(145deg, #064132 0%, #00291f 100%);
    border: 0;
    border-bottom-right-radius: 24px;
    border-bottom-left-radius: 24px;
  }

  .member-v2-header-inner {
    min-height: 74px;
    gap: 12px;
  }

  .member-v2-menu-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .member-v2-brand {
    flex: 1;
    color: #ffffff;
  }

  .member-v2-brand img {
    width: 44px;
    height: 44px;
    filter: brightness(0) invert(1);
  }

  .member-v2-brand strong {
    color: #ffffff;
    font-size: 1rem;
  }

  .member-v2-brand small {
    color: #baf7d3;
    font-size: 0.64rem;
  }

  .member-v2-date-card {
    min-width: 0;
    max-width: 120px;
    grid-template-columns: 1fr;
    padding: 8px 10px;
    background: #dff7ea;
    border: 0;
  }

  .member-v2-date-card::before,
  .member-v2-date-card span {
    display: none;
  }

  .member-v2-date-card strong {
    grid-column: 1;
    margin: 0;
    color: #064132;
    overflow: hidden;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .member-v2-page {
    padding-top: 14px;
    padding-bottom: 38px;
  }

  .member-v2-hero {
    min-height: 176px;
    grid-template-columns: minmax(0, 1fr) 108px;
    padding: 18px;
    border-radius: 18px;
  }

  .member-v2-hero-content span {
    margin-bottom: 8px;
    font-size: 0.64rem;
  }

  .member-v2-hero-content h1 {
    font-size: 1.24rem;
  }

  .member-v2-hero-content p {
    margin-top: 9px;
    font-size: 0.78rem;
  }

  .member-v2-hero-content a {
    min-height: 36px;
    margin-top: 12px;
    padding: 0 13px;
    font-size: 0.76rem;
  }

  .member-v2-hero-media {
    min-height: 130px;
  }

  .member-v2-hero-media img {
    width: 58px;
    height: 86px;
  }

  .member-v2-hero-media img:nth-child(1) {
    top: 0;
    right: 38px;
  }

  .member-v2-hero-media img:nth-child(2) {
    top: 31px;
    right: 0;
  }

  .member-v2-hero-media img:nth-child(3) {
    top: 44px;
    right: 66px;
    width: 44px;
    height: 64px;
  }

  .member-v2-hero-arrow {
    display: none;
  }

  .member-v2-main-grid {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .member-v2-category-panel,
  .member-v2-account-panel {
    padding: 16px;
  }

  .member-v2-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .member-v2-category-card {
    min-height: 88px;
  }

  .member-v2-account-panel dl div {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .member-v2-announcement-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .member-v2-announcement-label {
    gap: 10px;
  }

  .member-v2-megaphone {
    width: 40px;
    height: 40px;
  }

  .member-v2-announcement-content {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .member-v2-announcement-meta {
    display: grid;
    gap: 4px;
  }

  .member-v2-announcement-panel small {
    white-space: normal;
  }

  .member-v2-product-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .member-v2-product-card {
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
  }

  .member-v2-product-card img {
    width: 58px;
    height: 82px;
  }

  .member-v2-extra-panel>div:last-child {
    grid-template-columns: 1fr;
  }
}

/* EMERGENCY FIX 18X — force Member Lounge usable layout */

/* Make background obviously grey so we know this CSS is loaded */
body.member-v2-body {
  background: #b8bec2 !important;
}

/* Keep drawer usable and logout reachable */
.member-v2-drawer,
.member-v2-side-menu {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding-bottom: 140px !important;
  z-index: 9999 !important;
}

/* When drawer is closed, it must not block the page */
.member-v2-menu-toggle:not(:checked)~.member-v2-drawer,
.member-v2-menu-toggle:not(:checked)~.member-v2-side-menu {
  transform: translateX(-110%) !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* When drawer is open */
.member-v2-menu-toggle:checked~.member-v2-drawer,
.member-v2-menu-toggle:checked~.member-v2-side-menu {
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Backdrop only active when drawer open */
.member-v2-menu-backdrop,
.member-v2-drawer-backdrop {
  pointer-events: none !important;
  opacity: 0 !important;
}

.member-v2-menu-toggle:checked~.member-v2-menu-backdrop,
.member-v2-menu-toggle:checked~.member-v2-drawer-backdrop {
  pointer-events: auto !important;
  opacity: 1 !important;
}

/* HARD RESET Pengumuman panel — works for both old and new class names */
.member-v2-announcement,
.member-v2-announcement-panel,
.member-v2-announcement-strip {
  width: 100% !important;
  min-height: 110px !important;
  display: grid !important;
  grid-template-columns: 230px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 28px !important;
  padding: 24px 28px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 20px !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08) !important;
}

/* Left side: icon + Pengumuman label */
.member-v2-announcement>.member-v2-megaphone,
.member-v2-announcement-label,
.member-v2-announcement-left {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-width: 0 !important;
}

/* If old markup uses only icon then text beside it */
.member-v2-announcement>.member-v2-megaphone {
  width: 52px !important;
  height: 52px !important;
  flex: 0 0 52px !important;
}

/* Announcement icon */
.member-v2-megaphone,
.member-v2-announcement-icon {
  width: 52px !important;
  height: 52px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #dff7e8 !important;
  color: #047857 !important;
  border-radius: 999px !important;
  font-size: 1.2rem !important;
  font-weight: 900 !important;
}

/* Force label text */
.member-v2-announcement-label strong,
.member-v2-announcement-left span {
  display: inline-block !important;
  margin: 0 !important;
  color: #10231d !important;
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}

/* Right side content */
.member-v2-announcement-content,
.member-v2-announcement-right,
.member-v2-announcement>div {
  min-width: 0 !important;
  display: grid !important;
  gap: 8px !important;
  align-items: center !important;
}

/* Title + date row */
.member-v2-announcement-meta,
.member-v2-announcement-top {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px 16px !important;
  margin: 0 !important;
}

/* Title */
.member-v2-announcement strong,
.member-v2-announcement-panel strong,
.member-v2-announcement-strip strong {
  margin: 0 !important;
  color: #10231d !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
}

/* Date */
.member-v2-announcement small,
.member-v2-announcement-panel small,
.member-v2-announcement-strip small {
  display: inline-block !important;
  margin: 0 !important;
  color: #64746c !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

/* Message */
.member-v2-announcement p,
.member-v2-announcement-panel p,
.member-v2-announcement-strip p {
  margin: 0 !important;
  color: #334155 !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

/* Mobile */
@media (max-width: 760px) {

  .member-v2-announcement,
  .member-v2-announcement-panel,
  .member-v2-announcement-strip {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 20px !important;
  }
}

.member-v2-force-menu-button {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #dff7e8 !important;
  color: #063b2e !important;
  border: 1px solid rgba(4, 120, 87, 0.22) !important;
  border-radius: 14px !important;
  font-size: 1.6rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 10001 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.member-v2-header-inner {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}


/* EMERGENCY FIX 18Y — visible floating hamburger and drawer clickability */
.member-v2-floating-menu-button {
  position: fixed !important;
  top: 18px !important;
  left: 18px !important;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #dff7e8 !important;
  color: #063b2e !important;
  border: 1px solid rgba(4, 120, 87, .30) !important;
  border-radius: 16px !important;
  font-size: 30px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  z-index: 100000 !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .18) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  text-decoration: none !important;
}

.member-v2-menu-toggle {
  position: fixed !important;
  left: -9999px !important;
  opacity: 0 !important;
}

.member-v2-drawer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: min(340px, 86vw) !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding-bottom: 140px !important;
  transform: translateX(-110%) !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 99999 !important;
  transition: transform .2s ease, visibility .2s ease !important;
}

.member-v2-menu-toggle:checked~.member-v2-drawer {
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.member-v2-drawer-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, .45) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 99990 !important;
  transition: opacity .2s ease, visibility .2s ease !important;
}

.member-v2-menu-toggle:checked~.member-v2-drawer-backdrop {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.member-v2-drawer-nav a,
.member-v2-drawer-details summary {
  pointer-events: auto !important;
}

@media (max-width: 760px) {
  .member-v2-floating-menu-button {
    top: 12px !important;
    left: 12px !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 26px !important;
  }
}

/* MANUAL FIX 18X2 — compact date/time card */
.member-v2-date-card {
  min-width: 210px !important;
  max-width: 260px !important;
  padding: 8px 12px !important;
  border-radius: 12px !important;
  column-gap: 8px !important;
}

.member-v2-date-card::before {
  width: 22px !important;
  height: 22px !important;
  border-width: 3px !important;
  border-radius: 6px !important;
}

.member-v2-date-card span {
  font-size: 0.68rem !important;
  line-height: 1.1 !important;
}

.member-v2-date-card strong {
  margin-top: 2px !important;
  font-size: 0.76rem !important;
  line-height: 1.25 !important;
}

/* MANUAL FIX 18X4 — date/time card balanced width */
body.member-v2-body .member-v2-header .member-v2-date-card {
  min-width: 245px !important;
  max-width: 280px !important;
  width: 280px !important;
  padding: 7px 12px !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  column-gap: 9px !important;
  border-radius: 10px !important;
}

body.member-v2-body .member-v2-header .member-v2-date-card::before {
  width: 20px !important;
  height: 20px !important;
  border-width: 3px !important;
  border-radius: 6px !important;
}

body.member-v2-body .member-v2-header .member-v2-date-card span {
  font-size: 0.64rem !important;
  line-height: 1 !important;
  letter-spacing: 0.04em !important;
}

body.member-v2-body .member-v2-header .member-v2-date-card strong {
  margin-top: 2px !important;
  font-size: 0.72rem !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}

/* MANUAL FIX 18X5 — widen Maklumat Akaun panel */
@media (min-width: 900px) {
  body.member-v2-body .member-v2-main-grid {
    grid-template-columns: minmax(0, 1.75fr) minmax(400px, 0.95fr) !important;
    gap: 22px !important;
  }

  body.member-v2-body .member-v2-account-panel {
    min-width: 400px !important;
  }

  body.member-v2-body .member-v2-account-panel dl div {
    grid-template-columns: 120px minmax(0, 1fr) !important;
  }

  body.member-v2-body .member-v2-account-panel dd {
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }
}

/* MANUAL FIX 18HERO2 — use full uploaded hero banner */
body.member-v2-body .member-v2-hero-image-only {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18) !important;
}

body.member-v2-body .member-v2-hero-full-banner {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 18px !important;
}

/* Hide old hero elements if any survived */
body.member-v2-body .member-v2-hero-image-only .member-v2-hero-content,
body.member-v2-body .member-v2-hero-image-only .member-v2-hero-media,
body.member-v2-body .member-v2-hero-image-only .member-v2-hero-arrow,
body.member-v2-body .member-v2-hero-image-only .member-v2-hero-dots {
  display: none !important;
}

.member-v2-hero-slider {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18) !important;
}

.member-v2-slider-track {
  position: relative;
  width: 100%;
}

.member-v2-slide {
  display: none;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.member-v2-slide.active {
  display: block;
}

.member-v2-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
}

.member-v2-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(6, 59, 46, 0.72);
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.member-v2-slider-prev {
  left: 16px;
}

.member-v2-slider-next {
  right: 16px;
}

.member-v2-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.member-v2-slider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  cursor: pointer;
}

.member-v2-slider-dots button.active {
  width: 24px;
  background: #ffffff;
}

/* MANUAL FIX 18SLIDER2 — force hero slider to show one banner only */

body.member-v2-body .member-v2-hero-slider {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18) !important;
}

body.member-v2-body .member-v2-slider-track {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1920 / 640 !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  background: #052d23 !important;
}

body.member-v2-body .member-v2-slide {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.45s ease !important;
  z-index: 1 !important;
}

body.member-v2-body .member-v2-slide.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2 !important;
}

body.member-v2-body .member-v2-slide img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  border-radius: 18px !important;
}

body.member-v2-body .member-v2-slider-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 5 !important;
  width: 44px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(4, 120, 87, 0.92) !important;
  color: #ffffff !important;
  font-size: 2rem !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

body.member-v2-body .member-v2-slider-prev {
  left: 18px !important;
}

body.member-v2-body .member-v2-slider-next {
  right: 18px !important;
}

body.member-v2-body .member-v2-slider-dots {
  position: absolute !important;
  left: 50% !important;
  bottom: 18px !important;
  transform: translateX(-50%) !important;
  z-index: 6 !important;
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  justify-content: center !important;
}

body.member-v2-body .member-v2-slider-dots button {
  width: 10px !important;
  height: 10px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.55) !important;
  cursor: pointer !important;
}

body.member-v2-body .member-v2-slider-dots button.active {
  background: #ffffff !important;
}

@media (max-width: 760px) {
  body.member-v2-body .member-v2-slider-track {
    aspect-ratio: 16 / 7 !important;
  }

  body.member-v2-body .member-v2-slider-arrow {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.6rem !important;
  }

  body.member-v2-body .member-v2-slider-prev {
    left: 10px !important;
  }

  body.member-v2-body .member-v2-slider-next {
    right: 10px !important;
  }
}

/* MANUAL FIX 18CAT2 — hide extra categories by default and style toggle */

body.member-v2-body .member-v2-category-panel .member-v2-category-extra {
  display: none !important;
}

body.member-v2-body .member-v2-category-panel.is-expanded .member-v2-category-extra {
  display: flex !important;
}

body.member-v2-body .member-v2-category-toggle {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  color: #047857 !important;
  font: inherit !important;
  font-size: 0.92rem !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
}

body.member-v2-body .member-v2-category-toggle:hover {
  color: #065f46 !important;
  text-decoration: underline !important;
}

/* MANUAL FIX 18CAT3 — account panel expand products button */
body.member-v2-body .member-v2-account-expand-products {
  width: 100% !important;
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #10a354 !important;
  color: #ffffff !important;
  font: inherit !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

body.member-v2-body .member-v2-account-expand-products:hover {
  background: #078947 !important;
}

/* MANUAL FIX 18MOBILELIGHT — brighten mobile cards and icons */
@media (max-width: 760px) {
  body.member-v2-body {
    background: #e7ece8 !important;
  }

  body.member-v2-body .member-v2-category-panel,
  body.member-v2-body .member-v2-account-panel,
  body.member-v2-body .member-v2-announcement-panel {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
  }

  body.member-v2-body .member-v2-category-card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
  }

  body.member-v2-body .member-v2-icon-wrap {
    width: 56px !important;
    height: 56px !important;
    border-radius: 16px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.member-v2-body .member-v2-category-icon-img {
    width: 54px !important;
    height: 54px !important;
    opacity: 1 !important;
    filter: saturate(1.25) brightness(1.06) contrast(1.04) !important;
  }

  body.member-v2-body .member-v2-category-card strong,
  body.member-v2-body .member-v2-panel-title h2,
  body.member-v2-body .member-v2-account-panel h2,
  body.member-v2-body .member-v2-announcement-label h2 {
    color: #061f16 !important;
  }

  body.member-v2-body .member-v2-category-card small {
    color: #5f6c64 !important;
  }

  body.member-v2-body .member-v2-category-toggle {
    color: #047857 !important;
  }
}

/* MANUAL FIX 18MOBILELIGHT-C — force mobile lounge to light theme */
@media (max-width: 760px) {

  html,
  body {
    background: #e7ece8 !important;
    overflow-x: hidden !important;
  }

  body.member-v2-body {
    background: #e7ece8 !important;
    color: #10231d !important;
  }

  body.member-v2-body .member-v2-header {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
  }

  body.member-v2-body .member-v2-header-inner {
    background: #ffffff !important;
  }

  body.member-v2-body .member-v2-brand strong,
  body.member-v2-body .member-v2-brand small {
    color: #10231d !important;
  }

  body.member-v2-body .member-v2-emergency-nav {
    display: none !important;
  }

  body.member-v2-body .member-v2-date-card {
    display: none !important;
  }

  body.member-v2-body .member-v2-page {
    background: #e7ece8 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.member-v2-body .member-v2-category-panel,
  body.member-v2-body .member-v2-account-panel,
  body.member-v2-body .member-v2-announcement-panel {
    background: #ffffff !important;
    color: #10231d !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10) !important;
  }

  body.member-v2-body .member-v2-panel-title h2,
  body.member-v2-body .member-v2-account-panel h2,
  body.member-v2-body .member-v2-announcement-label h2 {
    color: #10231d !important;
  }

  body.member-v2-body .member-v2-category-toggle {
    color: #047857 !important;
  }

  body.member-v2-body .member-v2-category-card {
    background: #ffffff !important;
    color: #10231d !important;
    border: 1px solid rgba(15, 23, 42, 0.10) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
  }

  body.member-v2-body .member-v2-category-card strong {
    color: #10231d !important;
  }

  body.member-v2-body .member-v2-category-card small {
    color: #5f6c64 !important;
  }

  body.member-v2-body .member-v2-icon-wrap {
    width: 58px !important;
    height: 58px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.member-v2-body .member-v2-category-icon-img {
    width: 54px !important;
    height: 54px !important;
    opacity: 1 !important;
    filter: saturate(1.25) brightness(1.08) contrast(1.05) !important;
  }

  body.member-v2-body .member-v2-account-panel dl {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
  }

  body.member-v2-body .member-v2-account-panel dl div {
    border-color: rgba(15, 23, 42, 0.08) !important;
  }

  body.member-v2-body .member-v2-account-panel dt,
  body.member-v2-body .member-v2-account-panel dd {
    color: #10231d !important;
  }

  body.member-v2-body .member-v2-announcement-content,
  body.member-v2-body .member-v2-announcement-item,
  body.member-v2-body .member-v2-announcement-meta,
  body.member-v2-body .member-v2-announcement-panel p {
    color: #10231d !important;
  }

  body.member-v2-body .member-v2-announcement-meta small {
    color: #64746c !important;
  }
}

/* MANUAL FIX 18MOBILEWHITEICONS — white mobile icons on dark mobile UI */
@media (max-width: 760px) {

  /* Make header logo visible on dark mobile header */
  body.member-v2-body .member-v2-brand img {
    filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
  }

  /* Keep mobile category cards dark */
  body.member-v2-body .member-v2-category-card {
    background: #181818 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
  }

  /* Remove pastel icon box effect */
  body.member-v2-body .member-v2-icon-wrap {
    width: 58px !important;
    height: 58px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
  }

  /* Force SVG image to appear white on mobile */
  body.member-v2-body .member-v2-category-icon-img {
    width: 44px !important;
    height: 44px !important;
    opacity: 1 !important;
    filter: brightness(0) invert(1) !important;
  }

  body.member-v2-body .member-v2-category-card strong {
    color: #ffffff !important;
  }

  body.member-v2-body .member-v2-category-card small {
    color: rgba(255, 255, 255, 0.72) !important;
  }
}

/* MANUAL FIX 18MOBILERESTORE — restore bright mobile icons */
@media (max-width: 760px) {
  body.member-v2-body .member-v2-brand img {
    filter: none !important;
    opacity: 1 !important;
  }

  body.member-v2-body .member-v2-category-panel {
    background: #ffffff !important;
    color: #10231d !important;
  }

  body.member-v2-body .member-v2-category-card {
    background: #ffffff !important;
    color: #10231d !important;
    border: 1px solid rgba(15, 23, 42, 0.10) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
  }

  body.member-v2-body .member-v2-icon-wrap {
    width: 58px !important;
    height: 58px !important;
    border-radius: 16px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.member-v2-body .member-v2-category-icon-img {
    width: 54px !important;
    height: 54px !important;
    opacity: 1 !important;
    filter: none !important;
  }

  body.member-v2-body .member-v2-category-card strong {
    color: #10231d !important;
  }

  body.member-v2-body .member-v2-category-card small {
    color: #5f6c64 !important;
  }

  body.member-v2-body .member-v2-panel-title h2 {
    color: #10231d !important;
  }

  body.member-v2-body .member-v2-category-toggle {
    color: #047857 !important;
  }
}

/* MANUAL FIX 18MOBILEWHITECARDS — white category cards on mobile */
@media (max-width: 760px) {
  body.member-v2-body .member-v2-category-card {
    background: #ffffff !important;
    color: #10231d !important;
    border: 1px solid rgba(15, 23, 42, 0.10) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
  }

  body.member-v2-body .member-v2-category-card strong {
    color: #10231d !important;
  }

  body.member-v2-body .member-v2-category-card small {
    color: #5f6c64 !important;
  }

  body.member-v2-body .member-v2-icon-wrap {
    background: transparent !important;
    box-shadow: none !important;
  }

  body.member-v2-body .member-v2-category-icon-img {
    filter: none !important;
    opacity: 1 !important;
  }
}

/* MANUAL FIX 18MOBILETOP-A — mobile top/header only */
@media (max-width: 760px) {

  html,
  body {
    overflow-x: hidden !important;
  }

  body.member-v2-body .member-v2-header {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
  }

  body.member-v2-body .member-v2-header-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    background: #ffffff !important;
  }

  body.member-v2-body .member-v2-menu-button,
  body.member-v2-body .member-v2-force-menu-button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 13px !important;
    background: #dff7e8 !important;
    color: #063b2e !important;
    border: 1px solid rgba(4, 120, 87, 0.22) !important;
    box-shadow: none !important;
    font-size: 1.35rem !important;
  }

  body.member-v2-body .member-v2-brand {
    min-width: 0 !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #10231d !important;
    text-decoration: none !important;
  }

  body.member-v2-body .member-v2-brand img {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    object-fit: contain !important;
    filter: none !important;
  }

  body.member-v2-body .member-v2-brand span {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  body.member-v2-body .member-v2-brand strong,
  body.member-v2-body .member-v2-brand small {
    display: block !important;
    color: #10231d !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.member-v2-body .member-v2-brand strong {
    font-size: 0.95rem !important;
    line-height: 1.05 !important;
    font-weight: 950 !important;
  }

  body.member-v2-body .member-v2-brand small {
    margin-top: 4px !important;
    font-size: 0.66rem !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    letter-spacing: 0.07em !important;
    color: #64746c !important;
  }

  body.member-v2-body .member-v2-emergency-nav,
  body.member-v2-body .member-v2-date-card {
    display: none !important;
  }
}

/* MANUAL FIX 18ANNOUNCE-NO-BANG — hide old exclamation mark */
body.member-v2-body .member-v2-megaphone::before,
body.member-v2-body .member-v2-megaphone::after,
body.member-v2-body .member-v2-megaphone-img-wrap::before,
body.member-v2-body .member-v2-megaphone-img-wrap::after {
  content: none !important;
  display: none !important;
}

/* MANUAL FIX 18MOBILEHERO-FIT — show full mobile banner */
@media (max-width: 760px) {
  body.member-v2-body .member-v2-slider-track {
    aspect-ratio: 4 / 1 !important;
  }

  body.member-v2-body .member-v2-slide picture {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  body.member-v2-body .member-v2-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #052d23 !important;
  }
}
/* HOTFIX 2026-05-28: profile page mobile-only dashboard link visibility */
body.member-v2-body a.member-v2-profile-mobile-dashboard {
  display: none !important;
  visibility: hidden !important;
}

@media (max-width: 560px) {
  body.member-v2-body a.member-v2-profile-mobile-dashboard {
    display: inline-flex !important;
    visibility: visible !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(4, 120, 87, 0.2) !important;
    border-radius: 13px !important;
    background: #dff7e8 !important;
    color: #063b2e !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }
}

/* Phase 19: Panduan Utama dashboard panel repair */
body.member-v2-body .member-v2-panduan-panel {
  margin: 18px 0 22px;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

body.member-v2-body .member-v2-panduan-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 22px;
  align-items: center;
}

body.member-v2-body .member-v2-panduan-content {
  min-width: 0;
}

body.member-v2-body .member-v2-panduan-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #dcfce7;
  color: #047857;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1;
}

body.member-v2-body .member-v2-panduan-content h2 {
  margin: 0 0 10px;
  color: #10231d;
  font-size: 1.24rem;
  line-height: 1.2;
}

body.member-v2-body .member-v2-panduan-content p {
  margin: 0 0 8px;
  color: #52635b;
  font-size: 0.92rem;
  line-height: 1.55;
}

body.member-v2-body .member-v2-panduan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 13px;
  background: #0aa34f;
  color: #ffffff;
  font-weight: 950;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(10, 163, 79, 0.18);
}

body.member-v2-body .member-v2-panduan-button:hover {
  background: #065f46;
  color: #ffffff;
}

body.member-v2-body .member-v2-panduan-cover-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

body.member-v2-body .member-v2-panduan-cover {
  display: block;
  width: min(100%, 230px);
  height: auto;
  max-height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(15, 23, 42, 0.16));
}

@media (max-width: 760px) {
  body.member-v2-body .member-v2-panduan-panel {
    margin: 14px 0 16px;
    padding: 16px;
    border-radius: 18px;
  }

  body.member-v2-body .member-v2-panduan-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.member-v2-body .member-v2-panduan-content h2 {
    font-size: 1.22rem;
  }

  body.member-v2-body .member-v2-panduan-content p {
    font-size: 0.9rem;
  }

  body.member-v2-body .member-v2-panduan-cover-wrap {
    order: -1;
  }

  body.member-v2-body .member-v2-panduan-cover {
    width: min(68%, 190px);
    max-height: 205px;
  }

body.member-v2-body .member-v2-panduan-button {
    width: 100%;
  }
}

/* Phase Affiliate Lounge V2 Phase 1 */
body.affiliate-v2-body {
  margin: 0;
  min-height: 100vh;
  background: #b8bec2 !important;
  color: #10231d;
  overflow-x: hidden;
}

body.affiliate-v2-body *,
body.affiliate-v2-body *::before,
body.affiliate-v2-body *::after {
  box-sizing: border-box;
}

body.affiliate-v2-body img {
  max-width: 100%;
  height: auto;
}

body.affiliate-v2-body .member-v2-menu-toggle {
  position: fixed !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.affiliate-v2-body .member-v2-header {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

body.affiliate-v2-body .member-v2-header-inner {
  width: min(1120px, calc(100% - 48px));
  max-width: min(1120px, calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

body.affiliate-v2-body .member-v2-menu-button {
  width: 46px;
  height: 46px;
  min-width: 46px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #dff7e8;
  border: 1px solid rgba(4, 120, 87, 0.2);
  border-radius: 14px;
  color: #063b2e;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

body.affiliate-v2-body .member-v2-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
  color: #10231d;
  text-decoration: none;
}

body.affiliate-v2-body .member-v2-brand img {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  object-fit: contain;
}

body.affiliate-v2-body .member-v2-brand strong,
body.affiliate-v2-body .member-v2-brand small {
  display: block;
  letter-spacing: 0;
}

body.affiliate-v2-body .member-v2-brand strong {
  color: #10231d;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.05;
}

body.affiliate-v2-body .member-v2-brand small {
  margin-top: 5px;
  color: #64746c;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.affiliate-v2-body .member-v2-emergency-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

body.affiliate-v2-body .member-v2-emergency-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  color: #053b2e;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

body.affiliate-v2-body .affiliate-v2-header-bell,
body.affiliate-v2-body .affiliate-v2-drawer-link-with-badge {
  position: relative;
}

body.affiliate-v2-body .affiliate-v2-header-bell {
  width: 42px;
  min-width: 42px;
  padding: 0;
  font-size: 1.05rem;
}

body.affiliate-v2-body .affiliate-v2-header-bell em,
body.affiliate-v2-body .affiliate-v2-drawer-link-with-badge em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

body.affiliate-v2-body .affiliate-v2-header-bell em {
  position: absolute;
  top: -7px;
  right: -7px;
}

body.affiliate-v2-body .affiliate-v2-drawer-link-with-badge {
  justify-content: space-between;
  gap: 10px;
}

body.affiliate-v2-body .affiliate-v2-drawer-link-with-badge span {
  min-width: 0;
}

body.affiliate-v2-body .affiliate-v2-simple-header {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

body.affiliate-v2-body .member-v2-drawer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 99999 !important;
  width: min(330px, 86vw) !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 22px 18px 140px !important;
  color: #ffffff;
  background: linear-gradient(145deg, #064132 0%, #003326 62%, #00160f 100%);
  box-shadow: 18px 0 38px rgba(15, 23, 42, 0.28);
  transform: translateX(-110%) !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: transform 0.18s ease, visibility 0.18s ease !important;
}

body.affiliate-v2-body .member-v2-menu-toggle:checked~.member-v2-drawer {
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.affiliate-v2-body .member-v2-drawer-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99990 !important;
  background: rgba(15, 23, 42, 0.45) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.18s ease, visibility 0.18s ease !important;
}

body.affiliate-v2-body .member-v2-menu-toggle:checked~.member-v2-drawer-backdrop {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.affiliate-v2-body .member-v2-drawer-profile {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

body.affiliate-v2-body .member-v2-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #064132;
  background: #f2f7f4;
  border-radius: 14px;
  font-weight: 950;
}

body.affiliate-v2-body .member-v2-drawer-profile strong,
body.affiliate-v2-body .member-v2-drawer-profile span,
body.affiliate-v2-body .member-v2-drawer-profile em {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.affiliate-v2-body .member-v2-drawer-profile span {
  margin-top: 3px;
  opacity: 0.85;
  font-size: 0.76rem;
}

body.affiliate-v2-body .member-v2-drawer-profile em {
  width: max-content;
  margin-top: 7px;
  padding: 5px 9px;
  color: #ffffff;
  background: #0aa34f;
  border-radius: 999px;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

body.affiliate-v2-body .member-v2-drawer-nav {
  display: grid;
  gap: 7px;
}

body.affiliate-v2-body .member-v2-drawer-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #ffffff;
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

body.affiliate-v2-body .member-v2-drawer-nav a:hover {
  background: rgba(34, 197, 94, 0.22);
}

body.affiliate-v2-body .affiliate-v2-page {
  display: grid;
  gap: 18px;
  width: min(1120px, calc(100% - 48px));
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 22px;
  padding-bottom: 64px;
}

.affiliate-v2-hero,
.affiliate-v2-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.affiliate-v2-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
  gap: 18px;
  align-items: stretch;
  padding: 22px;
}

.affiliate-v2-kicker,
.affiliate-v2-section-heading span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #dcfce7;
  color: #047857;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1;
}

.affiliate-v2-hero h1,
.affiliate-v2-section-heading h2 {
  margin: 0 0 8px;
  color: #10231d;
  letter-spacing: 0;
}

.affiliate-v2-hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.02;
}

.affiliate-v2-hero p,
.affiliate-v2-section-heading p {
  max-width: 720px;
  margin: 0;
  color: #52635b;
  font-size: 0.95rem;
  line-height: 1.6;
}

.affiliate-v2-hero-card {
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 18px;
  border-radius: 16px;
  background: #f2f7f3;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.affiliate-v2-hero-card span,
.affiliate-v2-stat-grid article span,
.affiliate-v2-link-grid article span {
  color: #64746c;
  font-size: 0.78rem;
  font-weight: 900;
}

.affiliate-v2-hero-card strong {
  color: #063b2e;
  font-size: 1.35rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.affiliate-v2-hero-card small {
  color: #52635b;
  font-size: 0.86rem;
  line-height: 1.35;
}

.affiliate-v2-panel {
  padding: 20px;
}

.affiliate-v2-section-heading {
  margin-bottom: 16px;
}

.affiliate-v2-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.affiliate-v2-link-grid article,
.affiliate-v2-stat-grid article,
.affiliate-v2-caption-box {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8faf8;
}

.affiliate-v2-link-grid article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
}

.affiliate-v2-link-grid article strong {
  color: #10231d;
  font-size: 0.95rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.affiliate-v2-copy-btn,
.affiliate-v2-share-actions button,
.affiliate-v2-share-actions a,
.affiliate-v2-primary-link,
.affiliate-v2-quick-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: #0aa34f;
  color: #ffffff !important;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.affiliate-v2-copy-btn:hover,
.affiliate-v2-share-actions button:hover,
.affiliate-v2-share-actions a:hover,
.affiliate-v2-primary-link:hover,
.affiliate-v2-quick-actions a:hover {
  background: #078947;
  text-decoration: none;
}

.affiliate-v2-caption-box {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
}

.affiliate-v2-campaign-help {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px dashed rgba(4, 120, 87, 0.28);
  border-radius: 14px;
  background: #f3fbf6;
}

.affiliate-v2-campaign-help strong,
.affiliate-v2-campaign-help span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.affiliate-v2-campaign-help strong {
  color: #063b2e;
  font-size: 0.88rem;
}

.affiliate-v2-campaign-help span {
  color: #52635b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.affiliate-v2-caption-box label {
  color: #10231d;
  font-size: 0.9rem;
  font-weight: 950;
}

.affiliate-v2-caption-box select,
.affiliate-v2-caption-box textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #ffffff;
  color: #10231d;
  font: inherit;
}

.affiliate-v2-caption-box select {
  min-height: 44px;
  padding: 10px 12px;
}

.affiliate-v2-caption-box textarea {
  min-height: 150px;
  padding: 12px;
  resize: vertical;
}

.affiliate-v2-share-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.affiliate-v2-copy-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: #047857;
  font-size: 0.88rem;
  font-weight: 900;
}

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

.affiliate-v2-stat-grid article {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 15px;
}

.affiliate-v2-stat-grid article strong {
  color: #063b2e;
  font-size: 1.35rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.affiliate-v2-stat-grid article small {
  color: #64746c;
  font-size: 0.78rem;
  font-weight: 900;
}

.affiliate-v2-money-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.affiliate-v2-table-wrap {
  border-radius: 14px;
}

.affiliate-v2-table {
  min-width: 760px;
}

.affiliate-v2-table th {
  background: #eef7f0;
  color: #10231d;
}

.affiliate-v2-account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.affiliate-v2-account-grid p {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8faf8;
  color: #52635b;
  overflow-wrap: anywhere;
}

.affiliate-v2-account-grid strong {
  color: #10231d;
}

.affiliate-v2-announcements-page {
  padding-bottom: 44px;
}

.affiliate-v2-announcement-panel {
  display: grid;
  gap: 12px;
}

.affiliate-v2-announcement-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8faf8;
}

.affiliate-v2-announcement-item.is-unread {
  border-color: rgba(220, 38, 38, 0.24);
  background: #fff8f8;
}

.affiliate-v2-announcement-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.affiliate-v2-announcement-meta strong {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: #10231d;
  font-size: 1rem;
  line-height: 1.25;
}

.affiliate-v2-announcement-meta em {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #047857;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 950;
}

.affiliate-v2-announcement-item.is-unread .affiliate-v2-announcement-meta em:last-child {
  background: #fee2e2;
  color: #b91c1c;
}

.affiliate-v2-announcement-meta small {
  flex: 0 0 auto;
  color: #64746c;
  font-size: 0.78rem;
  font-weight: 850;
}

.affiliate-v2-announcement-item p {
  margin: 0;
  color: #52635b;
  font-size: 0.93rem;
  line-height: 1.6;
}

.affiliate-v2-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.affiliate-v2-primary-link {
  width: fit-content;
  padding: 0 18px;
}

body.affiliate-v2-body .status-pill {
  background: #dcfce7;
  color: #047857;
}

@media (max-width: 920px) {
  .affiliate-v2-hero,
  .affiliate-v2-link-grid,
  .affiliate-v2-account-grid,
  .affiliate-v2-quick-actions {
    grid-template-columns: 1fr;
  }

  .affiliate-v2-stat-grid,
  .affiliate-v2-money-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .affiliate-v2-share-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.affiliate-v2-body .member-v2-header-inner {
    grid-template-columns: 46px minmax(0, 1fr) 42px !important;
  }

  body.affiliate-v2-body .affiliate-v2-top-nav {
    display: flex !important;
  }

  body.affiliate-v2-body .affiliate-v2-top-nav a:not(.affiliate-v2-header-bell) {
    display: none !important;
  }

  body.affiliate-v2-body .affiliate-v2-simple-header {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  body.affiliate-v2-body .affiliate-v2-page {
    padding: 14px 12px 34px !important;
  }

  .affiliate-v2-hero,
  .affiliate-v2-panel {
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  }

  .affiliate-v2-hero,
  .affiliate-v2-panel {
    padding: 16px;
  }

  .affiliate-v2-stat-grid,
  .affiliate-v2-money-grid,
  .affiliate-v2-share-actions {
    grid-template-columns: 1fr;
  }

  .affiliate-v2-stat-grid article {
    min-height: 92px;
  }

  .affiliate-v2-share-actions button,
  .affiliate-v2-share-actions a,
  .affiliate-v2-quick-actions a,
  .affiliate-v2-primary-link {
    width: 100%;
  }
}

/* Affiliate Lounge V2 Phase 1 mobile-only layout repair */
@media (max-width: 430px) {

  html,
  body.affiliate-v2-body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body.affiliate-v2-body .member-v2-header {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  body.affiliate-v2-body .member-v2-header-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 62px !important;
    margin: 0 !important;
    padding: 9px 12px !important;
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    gap: 9px !important;
    align-items: center !important;
  }

  body.affiliate-v2-body .affiliate-v2-simple-header {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  body.affiliate-v2-body .member-v2-menu-button,
  body.affiliate-v2-body .member-v2-force-menu-button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 12px !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
  }

  body.affiliate-v2-body .member-v2-brand {
    min-width: 0 !important;
    gap: 9px !important;
  }

  body.affiliate-v2-body .member-v2-brand img {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
  }

  body.affiliate-v2-body .member-v2-brand span {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  body.affiliate-v2-body .member-v2-brand strong,
  body.affiliate-v2-body .member-v2-brand small {
    display: block !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: 0 !important;
  }

  body.affiliate-v2-body .member-v2-brand strong {
    font-size: 0.92rem !important;
    line-height: 1.05 !important;
  }

  body.affiliate-v2-body .member-v2-brand small {
    margin-top: 3px !important;
    font-size: 0.66rem !important;
    line-height: 1.1 !important;
  }

  body.affiliate-v2-body .member-v2-drawer {
    width: min(318px, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;
  }

  body.affiliate-v2-body .affiliate-v2-page {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 10px 30px !important;
    gap: 12px !important;
    overflow-x: hidden !important;
  }

  body.affiliate-v2-body .affiliate-v2-hero,
  body.affiliate-v2-body .affiliate-v2-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 14px !important;
    border-radius: 14px !important;
  }

  body.affiliate-v2-body .affiliate-v2-hero {
    gap: 12px !important;
  }

  body.affiliate-v2-body .affiliate-v2-hero h1 {
    font-size: 1.8rem !important;
    line-height: 1.05 !important;
    margin-bottom: 8px !important;
  }

  body.affiliate-v2-body .affiliate-v2-section-heading {
    margin-bottom: 12px !important;
  }

  body.affiliate-v2-body .affiliate-v2-section-heading h2 {
    font-size: 1.12rem !important;
    line-height: 1.2 !important;
  }

  body.affiliate-v2-body .affiliate-v2-hero p,
  body.affiliate-v2-body .affiliate-v2-section-heading p {
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
  }

  body.affiliate-v2-body .affiliate-v2-announcement-meta {
    display: grid !important;
    gap: 6px !important;
  }

  body.affiliate-v2-body .affiliate-v2-announcement-item {
    padding: 12px !important;
    border-radius: 12px !important;
  }

  body.affiliate-v2-body .affiliate-v2-hero-card {
    padding: 13px !important;
    border-radius: 13px !important;
  }

  body.affiliate-v2-body .affiliate-v2-hero-card strong {
    font-size: 1.08rem !important;
  }

  body.affiliate-v2-body .affiliate-v2-link-grid {
    gap: 10px !important;
    margin-bottom: 10px !important;
  }

  body.affiliate-v2-body .affiliate-v2-link-grid article,
  body.affiliate-v2-body .affiliate-v2-stat-grid article,
  body.affiliate-v2-body .affiliate-v2-account-grid p,
  body.affiliate-v2-body .affiliate-v2-caption-box {
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 12px !important;
    border-radius: 12px !important;
  }

  body.affiliate-v2-body .affiliate-v2-link-grid article strong,
  body.affiliate-v2-body .affiliate-v2-account-grid p,
  body.affiliate-v2-body .affiliate-v2-stat-grid article strong {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  body.affiliate-v2-body .affiliate-v2-caption-box {
    gap: 8px !important;
    margin-bottom: 10px !important;
  }

  body.affiliate-v2-body .affiliate-v2-caption-box select,
  body.affiliate-v2-body .affiliate-v2-caption-box textarea {
    max-width: 100% !important;
    min-width: 0 !important;
    border-radius: 11px !important;
    font-size: 0.88rem !important;
  }

  body.affiliate-v2-body .affiliate-v2-caption-box select {
    min-height: 42px !important;
    padding: 8px 10px !important;
  }

  body.affiliate-v2-body .affiliate-v2-caption-box textarea {
    min-height: 128px !important;
    padding: 10px !important;
    line-height: 1.45 !important;
  }

  body.affiliate-v2-body .affiliate-v2-share-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.affiliate-v2-body .affiliate-v2-share-actions button,
  body.affiliate-v2-body .affiliate-v2-share-actions a,
  body.affiliate-v2-body .affiliate-v2-copy-btn,
  body.affiliate-v2-body .affiliate-v2-quick-actions a,
  body.affiliate-v2-body .affiliate-v2-primary-link {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 9px 10px !important;
    border-radius: 11px !important;
    font-size: 0.82rem !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  body.affiliate-v2-body .affiliate-v2-stat-grid,
  body.affiliate-v2-body .affiliate-v2-money-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  body.affiliate-v2-body .affiliate-v2-stat-grid article {
    min-height: 86px !important;
    gap: 5px !important;
  }

  body.affiliate-v2-body .affiliate-v2-stat-grid article span {
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
  }

  body.affiliate-v2-body .affiliate-v2-stat-grid article strong {
    font-size: 1.02rem !important;
    line-height: 1.15 !important;
  }

  body.affiliate-v2-body .affiliate-v2-account-grid,
  body.affiliate-v2-body .affiliate-v2-quick-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  body.affiliate-v2-body .admin-table-wrap.affiliate-v2-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 12px !important;
  }

  body.affiliate-v2-body .affiliate-v2-table {
    min-width: 680px !important;
    width: max-content !important;
    font-size: 0.78rem !important;
  }

  body.affiliate-v2-body .affiliate-v2-table th,
  body.affiliate-v2-body .affiliate-v2-table td {
    padding: 8px 9px !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 370px) {
  body.affiliate-v2-body .affiliate-v2-page {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  body.affiliate-v2-body .affiliate-v2-share-actions,
  body.affiliate-v2-body .affiliate-v2-stat-grid,
  body.affiliate-v2-body .affiliate-v2-money-grid {
    grid-template-columns: 1fr !important;
  }

  body.affiliate-v2-body .affiliate-v2-hero h1 {
    font-size: 1.55rem !important;
  }

  body.affiliate-v2-body .affiliate-v2-table {
    min-width: 620px !important;
  }
}
