/* ============================================================================
   SportMyLife — Luxury 3D Obsidian & Emerald/Gold Member Cockpit
   File: userCabinetLuxury.css (loaded after styles.css in index.html)
   Covers #sml-auth-modal across Dark & Light themes, RTL, and 320px–1600px.
   Laws #17, #18, #19, #22: 100% capsule symmetry, 0px overflow, WCAG AA.
   ============================================================================ */

/* --------------------------------------------------------------------------
   1. MODAL SHELL, OBSIDIAN SPECULAR RIM & GLOBAL BOX-SIZING
   -------------------------------------------------------------------------- */
#sml-auth-modal,
#sml-auth-modal *,
#sml-auth-modal *::before,
#sml-auth-modal *::after {
  box-sizing: border-box;
}

#sml-auth-modal {
  padding: 16px;
}

#sml-auth-modal .sml-auth-backdrop {
  background: radial-gradient(ellipse 70% 60% at 50% 25%, rgba(16, 62, 38, 0.34), rgba(4, 9, 7, 0.84));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#sml-auth-modal .sml-auth-dialog {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  width: min(448px, 100%);
  max-width: 100%;
  max-height: calc(100dvh - 32px);
  border-radius: 22px;
  padding: 20px 20px 18px;
  background-color: #09130e;
  background-image:
    radial-gradient(ellipse 75% 45% at 12% 0%, rgba(22, 134, 79, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 65% 42% at 90% 4%, rgba(230, 196, 115, 0.14) 0%, transparent 62%),
    linear-gradient(175deg, #0d1c14 0%, #09130e 48%, #060e0a 100%);
  color: #f4f1e8;
  border: 1px solid rgba(230, 196, 115, 0.34);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.66),
    0 4px 18px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(246, 220, 147, 0.28);
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 196, 115, 0.36) transparent;
}

#sml-auth-modal .sml-auth-dialog.is-cabinet-open {
  width: min(568px, 100%);
}

#sml-auth-modal .sml-auth-dialog::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2px;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(
    90deg,
    rgba(230, 196, 115, 0.1) 0%,
    rgba(16, 185, 129, 0.65) 22%,
    rgba(246, 220, 147, 0.96) 50%,
    rgba(16, 185, 129, 0.65) 78%,
    rgba(230, 196, 115, 0.1) 100%
  );
}

#sml-auth-modal .sml-auth-dialog::-webkit-scrollbar {
  width: 6px;
}

#sml-auth-modal .sml-auth-dialog::-webkit-scrollbar-track {
  background: transparent;
}

#sml-auth-modal .sml-auth-dialog::-webkit-scrollbar-thumb {
  background: rgba(230, 196, 115, 0.32);
  border-radius: 999px;
}

html[data-theme='light'] #sml-auth-modal .sml-auth-dialog {
  background-color: #fbfaf5;
  background-image:
    radial-gradient(ellipse 75% 42% at 10% 0%, rgba(22, 134, 79, 0.08) 0%, transparent 62%),
    radial-gradient(ellipse 65% 40% at 90% 4%, rgba(180, 130, 28, 0.09) 0%, transparent 62%),
    linear-gradient(178deg, #ffffff 0%, #f8f6ee 52%, #f2f4ee 100%);
  color: #142018;
  border-color: rgba(25, 86, 54, 0.24);
  box-shadow:
    0 24px 64px rgba(10, 26, 18, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

#sml-auth-modal .sml-auth-head {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(230, 196, 115, 0.16);
}

html[data-theme='light'] #sml-auth-modal .sml-auth-head {
  border-bottom-color: rgba(25, 86, 54, 0.14);
}

#sml-auth-modal .sml-auth-title {
  font-family: var(--font-display, 'Barlow Condensed', 'Oswald', sans-serif);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.12;
  color: #f6dc93;
}

html[dir='rtl'] #sml-auth-modal .sml-auth-title {
  font-family: var(--font-sans, 'Inter', sans-serif);
  letter-spacing: 0;
  font-size: 19px;
}

html[data-theme='light'] #sml-auth-modal .sml-auth-title {
  color: #12482c;
}

#sml-auth-modal .sml-auth-sub {
  font-size: 12px;
  line-height: 1.38;
  color: rgba(214, 228, 219, 0.8);
}

html[data-theme='light'] #sml-auth-modal .sml-auth-sub {
  color: #46574a;
}

#sml-auth-modal .sml-auth-close {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 999px;
  border: 1px solid rgba(230, 196, 115, 0.34);
  background: rgba(255, 255, 255, 0.05);
  color: #f6dc93;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#sml-auth-modal .sml-auth-close:hover {
  transform: scale(1.05);
  background: rgba(230, 196, 115, 0.18);
  border-color: #f6dc93;
  color: #ffffff;
}

html[data-theme='light'] #sml-auth-modal .sml-auth-close {
  background: #ffffff;
  border-color: rgba(25, 86, 54, 0.24);
  color: #16492d;
}

html[data-theme='light'] #sml-auth-modal .sml-auth-close:hover {
  background: #16492d;
  border-color: #16492d;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   2. MEMBER COCKPIT ROOT & LUXURY OBSIDIAN-GOLD MEMBER ID HEADER CARD
   -------------------------------------------------------------------------- */
.sml-cab-root {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

/* Signature Obsidian-Emerald-Gold VIP Credential Pass (High-contrast in BOTH Dark & Light themes!) */
.sml-cab-hero,
html[data-theme='light'] .sml-cab-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px 15px 13px;
  border-radius: 18px;
  background-color: #07130d;
  background-image:
    radial-gradient(ellipse 68% 72% at 92% 10%, rgba(240, 195, 90, 0.24) 0%, transparent 62%),
    radial-gradient(ellipse 64% 70% at 8% 100%, rgba(16, 185, 129, 0.24) 0%, transparent 60%),
    linear-gradient(142deg, #0d2217 0%, #08150e 52%, #050d09 100%);
  border: 1px solid rgba(230, 196, 115, 0.42);
  color: #f6f4ec;
  box-shadow:
    0 14px 32px rgba(3, 10, 7, 0.38),
    inset 0 1px 0 rgba(255, 244, 212, 0.22);
}

.sml-cab-hero.is-vip-admin,
html[data-theme='light'] .sml-cab-hero.is-vip-admin {
  border-color: rgba(246, 220, 147, 0.68);
  box-shadow:
    0 16px 36px rgba(3, 10, 7, 0.44),
    0 0 0 1px rgba(246, 220, 147, 0.16),
    inset 0 1px 0 rgba(255, 244, 212, 0.34);
}

.sml-cab-hero-top {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

/* Gleaming Metallic Gold Avatar Ring */
.sml-cab-avatar-ring {
  position: relative;
  width: 58px;
  height: 58px;
  padding: 3px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 0;
  background: linear-gradient(135deg, #fff1c2 0%, #e6c473 36%, #9b701e 68%, #f6dc93 100%);
  background-origin: border-box;
  background-clip: border-box;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.48),
    0 0 18px rgba(230, 196, 115, 0.32);
}

.sml-cab-avatar-ring.is-admin {
  background: linear-gradient(135deg, #fff6d6 0%, #f5ce6b 34%, #10b981 72%, #f6dc93 100%);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.52),
    0 0 22px rgba(246, 220, 147, 0.44);
}

.sml-cab-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(155deg, #132c1f, #09160f);
  border: 2px solid #09130e;
  color: #f6dc93;
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.sml-cab-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.sml-cab-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-width: 0;
}

.sml-cab-name {
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sml-cab-pass-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 8px;
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  border: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(14, 92, 56, 0.72));
  background-origin: border-box;
  background-clip: border-box;
  box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.56);
  color: #d1fae5;
}

.sml-cab-pass-badge.is-admin {
  background: linear-gradient(135deg, #f6dc93 0%, #cfa13c 100%);
  background-origin: border-box;
  background-clip: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 3px 10px rgba(230, 196, 115, 0.34);
  color: #111812;
}

.sml-cab-contact,
html[data-theme='light'] .sml-cab-hero .sml-cab-contact {
  font-size: 12px;
  line-height: 1.3;
  color: rgba(218, 233, 224, 0.82);
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sml-cab-prov-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1px;
}

.sml-cab-provider-pill,
html[data-theme='light'] .sml-cab-hero .sml-cab-provider-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  color: #f6dc93;
  background: rgba(230, 196, 115, 0.12);
  border: 1px solid rgba(230, 196, 115, 0.34);
}

/* 3 Mini KPI Pills inside Header */
.sml-cab-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sml-cab-kpi-pill {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #f6f4ec;
  text-align: center;
  font: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

button.sml-cab-kpi-pill.is-interactive {
  cursor: pointer;
}

button.sml-cab-kpi-pill.is-interactive:hover {
  transform: translateY(-1px);
  border-color: rgba(246, 220, 147, 0.56);
  background: rgba(230, 196, 115, 0.14);
}

.sml-cab-kpi-val {
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.05;
  color: #f6dc93;
  font-variant-numeric: tabular-nums;
}

.sml-cab-kpi-lbl {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.03em;
  color: rgba(224, 236, 229, 0.82);
  overflow-wrap: break-word;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   3. 3-TAB SEGMENTED COCKPIT BAR (SYMMETRIC 1 ROW ON 320px–1600px)
   -------------------------------------------------------------------------- */
.sml-cab-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(230, 196, 115, 0.22);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.28);
}

html[data-theme='light'] .sml-cab-tabs {
  background: #ecefe6;
  border-color: rgba(25, 86, 54, 0.18);
  box-shadow: inset 0 1px 3px rgba(15, 35, 24, 0.08);
}

.sml-cab-tab {
  position: relative;
  min-width: 0;
  max-width: 100%;
  min-height: 40px;
  padding: 6px 6px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: rgba(224, 235, 228, 0.78);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.18;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.14s ease;
}

html[data-theme='light'] .sml-cab-tab {
  color: #3a4c40;
}

.sml-cab-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme='light'] .sml-cab-tab:hover {
  color: #12482c;
  background: rgba(255, 255, 255, 0.65);
}

.sml-cab-tab.is-active,
html[data-theme='light'] .sml-cab-tab.is-active {
  border: 0;
  background: linear-gradient(135deg, #1b6b43 0%, #11472c 100%);
  background-origin: border-box;
  background-clip: border-box;
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(110, 231, 183, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 5px 14px rgba(12, 68, 40, 0.32);
}

.sml-cab-tab-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sml-cab-tab-txt {
  min-width: 0;
  overflow-wrap: break-word;
}

.sml-cab-tab-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 800;
  background: rgba(246, 220, 147, 0.22);
  color: #f6dc93;
  flex-shrink: 0;
}

html[data-theme='light'] .sml-cab-tab:not(.is-active) .sml-cab-tab-cnt {
  background: rgba(25, 86, 54, 0.14);
  color: #14532d;
}

.sml-cab-panel {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   4. SHARED CARDS, SECTION HEADERS & FORMS
   -------------------------------------------------------------------------- */
.sml-cab-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  min-width: 0;
  max-width: 100%;
}

html[data-theme='light'] .sml-cab-card {
  background: #ffffff;
  border-color: rgba(22, 64, 42, 0.13);
  box-shadow: 0 4px 14px rgba(15, 35, 24, 0.05);
}

.sml-cab-section-kicker {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f6dc93;
}

html[dir='rtl'] .sml-cab-section-kicker {
  font-family: var(--font-sans, 'Inter', sans-serif);
  letter-spacing: 0;
  font-size: 11.5px;
}

html[data-theme='light'] .sml-cab-section-kicker {
  color: #82590c;
}

.sml-cab-mt-sm {
  margin-top: 4px;
}

.sml-cab-sub-label {
  margin-top: -2px;
}

.sml-cab-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.sml-cab-card-title-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f6dc93;
  min-width: 0;
}

html[data-theme='light'] .sml-cab-card-title-row {
  color: #155534;
}

.sml-cab-card-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}

html[data-theme='light'] .sml-cab-card-title {
  color: #132118;
}

.sml-cab-card-sub {
  margin: -4px 0 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(206, 220, 211, 0.78);
}

html[data-theme='light'] .sml-cab-card-sub {
  color: #4b5d50;
}

.sml-cab-count-pill {
  padding: 2px 9px;
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(110, 231, 183, 0.42);
  color: #a7f3d0;
  white-space: nowrap;
  flex-shrink: 0;
}

html[data-theme='light'] .sml-cab-count-pill {
  background: rgba(22, 101, 52, 0.1);
  border-color: rgba(22, 101, 52, 0.3);
  color: #14532d;
}

.sml-cab-edit-form {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

/* --------------------------------------------------------------------------
   5. TAB 1 · EXECUTIVE ADMIN COMMAND CENTER CARD
   -------------------------------------------------------------------------- */
.sml-cab-admin-card,
html[data-theme='light'] .sml-cab-admin-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 75% 80% at 90% 10%, rgba(246, 220, 147, 0.2), transparent 62%),
    linear-gradient(148deg, #10281c 0%, #091710 62%, #07110b 100%);
  border: 1px solid rgba(246, 220, 147, 0.48);
  color: #f8f6ee;
  box-shadow:
    0 12px 28px rgba(4, 12, 8, 0.34),
    inset 0 1px 0 rgba(255, 245, 214, 0.24);
}

.sml-cab-admin-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sml-cab-admin-title-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f6dc93;
}

.sml-cab-admin-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.sml-cab-admin-sub {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.38;
  color: rgba(218, 234, 224, 0.8);
}

.sml-cab-admin-cta {
  min-height: 42px;
  border: 0;
  background: linear-gradient(135deg, #f6dc93 0%, #d4a43c 55%, #198754 140%);
  background-origin: border-box;
  background-clip: border-box;
  color: #0e1711;
  font-weight: 800;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.sml-cab-admin-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.sml-cab-admin-jumps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.sml-cab-jump-pill {
  min-width: 0;
  max-width: 100%;
  min-height: 34px;
  padding: 5px 6px;
  border-radius: 10px;
  border: 1px solid rgba(246, 220, 147, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: #f3ece0;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.14s ease, border-color 0.14s ease, background-color 0.14s ease, color 0.14s ease;
}

.sml-cab-jump-pill svg {
  color: #f6dc93;
  flex-shrink: 0;
}

.sml-cab-jump-pill:hover {
  transform: translateY(-1px);
  border-color: #f6dc93;
  background: rgba(230, 196, 115, 0.2);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   6. TAB 1 · FAVORITE SPORTS CHIPS, FAVORITE CLUB & ACCOUNT CONTROLS
   -------------------------------------------------------------------------- */
.sml-cab-sports-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.sml-cab-sport-chip {
  min-width: 0;
  max-width: 100%;
  min-height: 34px;
  padding: 5px 7px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(232, 240, 234, 0.88);
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
  cursor: pointer;
  overflow-wrap: break-word;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

html[data-theme='light'] .sml-cab-sport-chip {
  background: #f5f7f1;
  border-color: rgba(22, 64, 42, 0.16);
  color: #203125;
}

.sml-cab-sport-chip:hover {
  border-color: rgba(230, 196, 115, 0.65);
  transform: translateY(-1px);
}

.sml-cab-sport-chip.is-selected,
html[data-theme='light'] .sml-cab-sport-chip.is-selected {
  border: 0;
  background: linear-gradient(135deg, #1b6d43 0%, #11482c 100%);
  background-origin: border-box;
  background-clip: border-box;
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(110, 231, 183, 0.68),
    0 4px 12px rgba(16, 122, 69, 0.28);
}

.sml-cab-club-form {
  margin-top: 2px;
}

.sml-cab-club-row,
.sml-cab-ref-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.sml-cab-club-input,
.sml-cab-ref-input {
  min-width: 0;
  min-height: 38px;
  font-size: 13px;
}

.sml-cab-ref-input {
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
}

.sml-cab-mini-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(135deg, #1c6e44 0%, #11492c 100%);
  background-origin: border-box;
  background-clip: border-box;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.45);
  transition: transform 0.14s ease, filter 0.14s ease;
}

.sml-cab-mini-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.sml-cab-mini-btn.is-gold {
  background: linear-gradient(135deg, #f3d383 0%, #ca9836 100%);
  background-origin: border-box;
  background-clip: border-box;
  color: #121a13;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.sml-cab-account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sml-cab-account-actions .sml-auth-confirm-box {
  grid-column: 1 / -1;
}

/* --------------------------------------------------------------------------
   7. TAB 2 · SAVED EVENTS, CURATED 2026 BOX OFFICE & ALERT SWITCHES
   -------------------------------------------------------------------------- */
.sml-cab-empty-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(230, 196, 115, 0.34);
  background: rgba(230, 196, 115, 0.06);
  font-size: 12px;
  line-height: 1.45;
  color: rgba(236, 241, 234, 0.86);
}

html[data-theme='light'] .sml-cab-empty-note {
  background: #f9f6ea;
  border-color: rgba(140, 99, 18, 0.34);
  color: #39483b;
}

.sml-cab-event-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sml-cab-event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.04);
  min-width: 0;
  transition: border-color 0.15s ease, transform 0.14s ease;
}

.sml-cab-event-item:hover {
  border-color: rgba(230, 196, 115, 0.5);
}

.sml-cab-event-item.is-featured {
  border-inline-start: 3px solid #e6c473;
  background: linear-gradient(135deg, rgba(230, 196, 115, 0.09), rgba(255, 255, 255, 0.03));
}

html[data-theme='light'] .sml-cab-event-item {
  background: #f8faf6;
  border-color: rgba(22, 64, 42, 0.14);
}

html[data-theme='light'] .sml-cab-event-item.is-featured {
  border-inline-start: 3px solid #9a6c13;
  background: linear-gradient(135deg, rgba(214, 177, 94, 0.12), #ffffff);
}

.sml-cab-event-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.sml-cab-event-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.sml-cab-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e4eee7;
  white-space: nowrap;
}

.sml-cab-tag.is-soft {
  opacity: 0.88;
}

.sml-cab-tag.is-gold {
  background: rgba(230, 196, 115, 0.18);
  border-color: rgba(230, 196, 115, 0.44);
  color: #f6dc93;
}

.sml-cab-tag.is-emerald {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(110, 231, 183, 0.42);
  color: #a7f3d0;
}

html[data-theme='light'] .sml-cab-tag {
  background: rgba(20, 44, 30, 0.07);
  border-color: rgba(20, 44, 30, 0.14);
  color: #203125;
}

html[data-theme='light'] .sml-cab-tag.is-gold {
  background: rgba(168, 122, 24, 0.14);
  border-color: rgba(168, 122, 24, 0.36);
  color: #784f08;
}

html[data-theme='light'] .sml-cab-tag.is-emerald {
  background: rgba(22, 101, 52, 0.12);
  border-color: rgba(22, 101, 52, 0.3);
  color: #14532d;
}

.sml-cab-event-title {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.28;
  color: #ffffff;
  overflow-wrap: break-word;
}

html[data-theme='light'] .sml-cab-event-title {
  color: #122016;
}

.sml-cab-event-meta {
  font-size: 11.5px;
  line-height: 1.35;
  color: rgba(206, 220, 211, 0.8);
  overflow-wrap: break-word;
}

html[data-theme='light'] .sml-cab-event-meta {
  color: #485b4e;
}

.sml-cab-event-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sml-cab-event-cta {
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #1b6d43 0%, #11472c 100%);
  background-origin: border-box;
  background-clip: border-box;
  color: #ffffff;
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.48);
  transition: transform 0.14s ease, filter 0.14s ease;
}

.sml-cab-event-cta.is-featured {
  background: linear-gradient(135deg, #f3d383 0%, #ca9836 100%);
  background-origin: border-box;
  background-clip: border-box;
  color: #111812;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.sml-cab-event-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.sml-cab-event-remove {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.36);
  background: rgba(185, 28, 28, 0.14);
  color: #fecaca;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.sml-cab-event-remove:hover {
  background: #b91c1c;
  border-color: #ef4444;
  color: #ffffff;
}

html[data-theme='light'] .sml-cab-event-remove {
  background: rgba(185, 28, 28, 0.08);
  border-color: rgba(185, 28, 28, 0.28);
  color: #991b1b;
}

html[data-theme='light'] .sml-cab-event-remove:hover {
  background: #b91c1c;
  color: #ffffff;
}

.sml-cab-browse-btn {
  margin-top: 2px;
  min-height: 36px;
  font-size: 12px;
}

/* Matchday Alert Toggle Switches */
.sml-cab-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sml-cab-toggle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.14s ease;
}

.sml-cab-toggle-row:hover {
  border-color: rgba(230, 196, 115, 0.38);
}

html[data-theme='light'] .sml-cab-toggle-row {
  background: #f6f8f3;
  border-color: rgba(22, 64, 42, 0.13);
}

.sml-cab-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sml-cab-toggle-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  color: #f6f4ec;
}

html[data-theme='light'] .sml-cab-toggle-title {
  color: #142218;
}

.sml-cab-toggle-sub {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(202, 216, 207, 0.78);
}

html[data-theme='light'] .sml-cab-toggle-sub {
  color: #4b5d50;
}

.sml-cab-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.sml-cab-switch-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.sml-cab-switch-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.18s ease, border-color 0.18s ease;
}

html[data-theme='light'] .sml-cab-switch-track {
  background: #d8dfd9;
  border-color: rgba(22, 64, 42, 0.22);
}

.sml-cab-switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.sml-cab-switch-input:checked + .sml-cab-switch-track {
  border-color: #34d399;
  background: linear-gradient(135deg, #10b981 0%, #0f6a40 100%);
  background-origin: border-box;
  background-clip: border-box;
}

.sml-cab-switch-input:checked + .sml-cab-switch-track::after {
  transform: translateX(20px);
  background: #fffbeb;
}

html[dir='rtl'] .sml-cab-switch-track::after {
  left: auto;
  right: 2px;
}

html[dir='rtl'] .sml-cab-switch-input:checked + .sml-cab-switch-track::after {
  transform: translateX(-20px);
}

.sml-cab-switch-input:focus-visible + .sml-cab-switch-track {
  outline: 2px solid #f6dc93;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   8. TAB 3 · VIP & PERKS (WHITE-HAT MONETIZATION ENGINE CARDS)
   -------------------------------------------------------------------------- */
.sml-cab-perk-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px 14px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.035);
  min-width: 0;
  max-width: 100%;
}

.sml-cab-perk-card.is-vip-gold {
  border-color: rgba(246, 220, 147, 0.44);
  background:
    radial-gradient(ellipse 70% 80% at 95% 0%, rgba(246, 220, 147, 0.16), transparent 62%),
    linear-gradient(155deg, rgba(28, 24, 12, 0.88), rgba(10, 19, 14, 0.94));
}

.sml-cab-perk-card.is-esim {
  border-color: rgba(52, 211, 153, 0.36);
  background:
    radial-gradient(ellipse 70% 80% at 95% 0%, rgba(16, 185, 129, 0.16), transparent 62%),
    linear-gradient(155deg, rgba(10, 32, 24, 0.88), rgba(8, 17, 13, 0.94));
}

.sml-cab-perk-card.is-baku {
  border-color: rgba(230, 196, 115, 0.34);
  background:
    radial-gradient(ellipse 70% 80% at 95% 0%, rgba(212, 175, 55, 0.14), transparent 62%),
    linear-gradient(155deg, rgba(16, 27, 21, 0.9), rgba(8, 15, 12, 0.94));
}

html[data-theme='light'] .sml-cab-perk-card {
  background: #ffffff;
  border-color: rgba(22, 64, 42, 0.14);
  box-shadow: 0 4px 14px rgba(15, 35, 24, 0.05);
}

html[data-theme='light'] .sml-cab-perk-card.is-vip-gold {
  border-color: rgba(168, 122, 24, 0.38);
  background: linear-gradient(155deg, #fffcf2 0%, #f8f1dc 100%);
}

html[data-theme='light'] .sml-cab-perk-card.is-esim {
  border-color: rgba(22, 101, 52, 0.3);
  background: linear-gradient(155deg, #f6fdf8 0%, #eaf6ef 100%);
}

html[data-theme='light'] .sml-cab-perk-card.is-baku {
  border-color: rgba(168, 122, 24, 0.32);
  background: linear-gradient(155deg, #fdfbf4 0%, #f5f2e4 100%);
}

.sml-cab-perk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.sml-cab-perk-badge {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 8px;
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sml-cab-perk-badge.is-gold {
  background: rgba(246, 220, 147, 0.2);
  border: 1px solid rgba(246, 220, 147, 0.48);
  color: #f6dc93;
}

.sml-cab-perk-badge.is-emerald {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(110, 231, 183, 0.45);
  color: #a7f3d0;
}

.sml-cab-perk-badge.is-neutral {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2ebe5;
}

html[data-theme='light'] .sml-cab-perk-badge.is-gold {
  background: rgba(168, 122, 24, 0.14);
  border-color: rgba(168, 122, 24, 0.4);
  color: #784f08;
}

html[data-theme='light'] .sml-cab-perk-badge.is-emerald {
  background: rgba(22, 101, 52, 0.12);
  border-color: rgba(22, 101, 52, 0.34);
  color: #14532d;
}

html[data-theme='light'] .sml-cab-perk-badge.is-neutral {
  background: rgba(20, 44, 30, 0.08);
  border-color: rgba(20, 44, 30, 0.18);
  color: #213427;
}

.sml-cab-promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px dashed rgba(110, 231, 183, 0.56);
  background: rgba(16, 185, 129, 0.12);
  color: #d1fae5;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.sml-cab-promo-pill:hover {
  background: rgba(16, 185, 129, 0.26);
  border-color: #6ee7b7;
}

html[data-theme='light'] .sml-cab-promo-pill {
  background: #ffffff;
  border-color: rgba(22, 101, 52, 0.46);
  color: #14532d;
}

.sml-cab-ref-shares {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 700;
  color: #a7f3d0;
}

html[data-theme='light'] .sml-cab-ref-shares {
  color: #14532d;
}

.sml-cab-perk-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.24;
  color: #ffffff;
}

html[data-theme='light'] .sml-cab-perk-title {
  color: #122016;
}

.sml-cab-perk-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(214, 228, 219, 0.84);
}

html[data-theme='light'] .sml-cab-perk-desc {
  color: #425447;
}

.sml-cab-perk-actions {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.sml-cab-perk-actions.is-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sml-cab-perk-btn {
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.sml-cab-perk-btn.is-full {
  width: 100%;
  margin-top: 2px;
}

.sml-cab-perk-btn.is-gold {
  background: linear-gradient(135deg, #f3d383 0%, #c99735 100%);
  background-origin: border-box;
  background-clip: border-box;
  color: #111812;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    0 5px 14px rgba(0, 0, 0, 0.24);
}

.sml-cab-perk-btn.is-emerald {
  background: linear-gradient(135deg, #1b7246 0%, #104b2d 100%);
  background-origin: border-box;
  background-clip: border-box;
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(110, 231, 183, 0.5),
    0 5px 14px rgba(12, 74, 43, 0.26);
}

.sml-cab-perk-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.sml-cab-perk-btn svg {
  flex-shrink: 0;
}

/* Official Partners 2x2 Tile Grid */
.sml-cab-partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.sml-cab-partner-tile {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: #f6f4ec;
  text-decoration: none;
  transition: transform 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}

.sml-cab-partner-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(246, 220, 147, 0.62);
  background: rgba(230, 196, 115, 0.12);
}

html[data-theme='light'] .sml-cab-partner-tile {
  background: #f6f8f3;
  border-color: rgba(22, 64, 42, 0.14);
  color: #142218;
}

html[data-theme='light'] .sml-cab-partner-tile:hover {
  border-color: #165c38;
  background: #ecf5ef;
}

.sml-cab-partner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sml-cab-partner-top strong {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.sml-cab-partner-top svg {
  color: #f6dc93;
  flex-shrink: 0;
}

html[data-theme='light'] .sml-cab-partner-top svg {
  color: #165c38;
}

.sml-cab-partner-sub {
  font-size: 10.5px;
  line-height: 1.3;
  color: rgba(204, 218, 209, 0.78);
}

html[data-theme='light'] .sml-cab-partner-sub {
  color: #4b5d50;
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE SYMMETRY (320px – 560px) & REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (max-width: 520px) {
  #sml-auth-modal {
    padding: 10px;
  }

  #sml-auth-modal .sml-auth-dialog {
    padding: 16px 13px 15px;
    border-radius: 18px;
    max-height: calc(100dvh - 20px);
  }

  .sml-cab-tabs {
    gap: 3px;
    padding: 3px;
  }

  .sml-cab-tab {
    flex-direction: column;
    gap: 3px;
    min-height: 48px;
    padding: 6px 4px;
    font-size: 10.5px;
    line-height: 1.12;
  }

  .sml-cab-tab-cnt {
    position: absolute;
    top: 3px;
    inset-inline-end: 4px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    font-size: 9px;
  }

  .sml-cab-admin-jumps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .sml-cab-event-item {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }

  .sml-cab-event-actions {
    width: 100%;
    justify-content: space-between;
  }

  .sml-cab-event-cta {
    flex: 1 1 auto;
  }
}

@media (max-width: 374px) {
  #sml-auth-modal {
    padding: 8px;
  }

  #sml-auth-modal .sml-auth-dialog {
    padding: 14px 11px 13px;
  }

  .sml-cab-hero,
  html[data-theme='light'] .sml-cab-hero {
    padding: 12px 11px 11px;
  }

  .sml-cab-avatar-ring {
    width: 48px;
    height: 48px;
  }

  .sml-cab-name {
    font-size: 15px;
  }

  .sml-cab-kpi-strip {
    gap: 5px;
  }

  .sml-cab-kpi-val {
    font-size: 16.5px;
  }

  .sml-cab-kpi-lbl {
    font-size: 9px;
  }

  .sml-cab-tab {
    font-size: 9.8px;
    padding: 5px 2px;
  }

  .sml-cab-perk-actions.is-two-col,
  .sml-cab-account-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .sml-cab-club-row,
  .sml-cab-ref-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  #sml-auth-modal *,
  #sml-auth-modal *::before,
  #sml-auth-modal *::after {
    transition: none !important;
  }
}
