/* ==========================================================================
   30 jili - layer stylesheet
   Prefix contract: every class and CSS variable uses "cd7dfe-".
   Canvas: 320-430px mobile frame, centered on wide screens.
   Palette anchors: #FFEF94 / #1C2833 / #CC99FF / #BA55D3 / #6A5ACD
   ========================================================================== */

:root {
  --cd7dfe-ink: #1C2833;
  --cd7dfe-ink-deep: #141c26;
  --cd7dfe-ink-floor: #0e141c;
  --cd7dfe-gold: #FFEF94;
  --cd7dfe-gold-dim: #e7cf76;
  --cd7dfe-lilac: #CC99FF;
  --cd7dfe-orchid: #BA55D3;
  --cd7dfe-slateblue: #6A5ACD;
  --cd7dfe-text: #f2edfa;
  --cd7dfe-text-soft: #b9aecf;
  --cd7dfe-text-mute: #8f86a6;
  --cd7dfe-line: rgba(204, 153, 255, 0.22);
  --cd7dfe-line-soft: rgba(204, 153, 255, 0.12);
  --cd7dfe-glass: rgba(20, 28, 38, 0.94);
  --cd7dfe-shadow: 0 14px 38px rgba(5, 8, 12, 0.55);
  --cd7dfe-header-h: 106px;
  --cd7dfe-dock-h: 74px;
  --cd7dfe-r-lg: 22px;
  --cd7dfe-r-md: 14px;
  --cd7dfe-r-sm: 10px;
  --cd7dfe-font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: var(--cd7dfe-ink-floor);
  color: var(--cd7dfe-text);
  font-family: var(--cd7dfe-font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

button {
  font-family: inherit;
  border: 0;
  cursor: pointer;
  color: inherit;
  background: none;
  padding: 0;
}

a { color: var(--cd7dfe-lilac); text-decoration: none; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }

ul, ol { padding: 0; list-style: none; }

.cd7dfe-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--cd7dfe-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Phone canvas shell - keeps the 430px frame centered on desktop widths
   -------------------------------------------------------------------------- */

.cd7dfe-page {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(340px 260px at 12% -40px, rgba(106, 90, 205, 0.35), transparent 70%),
    radial-gradient(300px 240px at 96% 6%, rgba(186, 85, 211, 0.22), transparent 72%),
    radial-gradient(420px 320px at 50% 108%, rgba(106, 90, 205, 0.18), transparent 76%),
    linear-gradient(178deg, #1d2a3a 0%, var(--cd7dfe-ink) 42%, #16202c 100%);
  box-shadow: 0 0 0 1px rgba(204, 153, 255, 0.14), 0 30px 90px rgba(0, 0, 0, 0.6);
  overflow-x: hidden;
}

.cd7dfe-main {
  padding: calc(var(--cd7dfe-header-h) + 14px) 14px calc(var(--cd7dfe-dock-h) + 34px);
}

/* --------------------------------------------------------------------------
   Fixed top bar - centered identity row plus dedicated action strip
   -------------------------------------------------------------------------- */

.cd7dfe-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: linear-gradient(180deg, rgba(16, 22, 31, 0.98), rgba(20, 28, 38, 0.94));
  border-bottom: 1px solid var(--cd7dfe-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 10px 10px;
}

.cd7dfe-topbar-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
}

.cd7dfe-menu-trigger {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: rgba(106, 90, 205, 0.2);
  border: 1px solid var(--cd7dfe-line);
  color: var(--cd7dfe-lilac);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cd7dfe-menu-trigger:hover,
.cd7dfe-menu-trigger:focus-visible {
  background: rgba(186, 85, 211, 0.32);
  color: var(--cd7dfe-gold);
}

.cd7dfe-menu-trigger svg { width: 22px; height: 22px; display: block; }

.cd7dfe-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.cd7dfe-logo {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid rgba(255, 239, 148, 0.4);
  box-shadow: 0 3px 10px rgba(106, 90, 205, 0.45);
  flex: none;
}

.cd7dfe-brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cd7dfe-gold);
  white-space: nowrap;
}

.cd7dfe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 12px;
  min-height: 44px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.18s ease;
}

.cd7dfe-btn:active { transform: translateY(1px); }

.cd7dfe-btn-login {
  padding: 0 16px;
  font-size: 13.5px;
  color: var(--cd7dfe-gold);
  background: rgba(255, 239, 148, 0.08);
  border: 1px solid rgba(255, 239, 148, 0.55);
}

.cd7dfe-btn-login:hover,
.cd7dfe-btn-login:focus-visible {
  background: rgba(255, 239, 148, 0.18);
}

.cd7dfe-topbar-cta { margin-top: 8px; }

.cd7dfe-btn-register {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  color: #23281c;
  background: linear-gradient(94deg, var(--cd7dfe-gold) 8%, #ffd76e 55%, #f7c95c 100%);
  border: 1px solid rgba(255, 239, 148, 0.85);
  box-shadow: 0 6px 18px rgba(255, 215, 110, 0.28);
}

.cd7dfe-btn-register:hover,
.cd7dfe-btn-register:focus-visible {
  background: linear-gradient(94deg, #fff6b8 8%, #ffe08a 55%, #ffd76e 100%);
}

/* --------------------------------------------------------------------------
   Slide-up route panel (site menu)
   -------------------------------------------------------------------------- */

.cd7dfe-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(8, 11, 16, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.cd7dfe-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 102%);
  width: 100%;
  max-width: 430px;
  max-height: 78vh;
  overflow-y: auto;
  z-index: 80;
  background: linear-gradient(180deg, #202b3b 0%, #182130 100%);
  border: 1px solid var(--cd7dfe-line);
  border-bottom: 0;
  border-radius: var(--cd7dfe-r-lg) var(--cd7dfe-r-lg) 0 0;
  padding: 14px 16px calc(var(--cd7dfe-dock-h) + 18px);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.55);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0.24, 1);
}

.cd7dfe-sheet.cd7dfe-is-open { transform: translate(-50%, 0); }
.cd7dfe-sheet-backdrop.cd7dfe-is-open { opacity: 1; visibility: visible; }

.cd7dfe-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cd7dfe-line-soft);
}

.cd7dfe-sheet-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cd7dfe-lilac);
}

.cd7dfe-sheet-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(106, 90, 205, 0.18);
  border: 1px solid var(--cd7dfe-line-soft);
  color: var(--cd7dfe-text-soft);
  transition: color 0.25s ease, background-color 0.25s ease;
}

.cd7dfe-sheet-close:hover { color: var(--cd7dfe-gold); background: rgba(186, 85, 211, 0.28); }
.cd7dfe-sheet-close svg { width: 18px; height: 18px; display: block; }

.cd7dfe-route-group { margin-top: 14px; }

.cd7dfe-route-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cd7dfe-text-mute);
  margin-bottom: 8px;
}

.cd7dfe-route-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cd7dfe-route {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: var(--cd7dfe-r-md);
  background: rgba(204, 153, 255, 0.07);
  border: 1px solid var(--cd7dfe-line-soft);
  color: var(--cd7dfe-text);
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cd7dfe-route svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--cd7dfe-orchid);
  transition: color 0.25s ease;
}

.cd7dfe-route:hover,
.cd7dfe-route:focus-visible {
  background: rgba(186, 85, 211, 0.2);
  color: var(--cd7dfe-gold);
  border-color: rgba(255, 239, 148, 0.4);
}

.cd7dfe-route:hover svg,
.cd7dfe-route:focus-visible svg { color: var(--cd7dfe-gold); }

.cd7dfe-route.cd7dfe-is-current {
  background: rgba(255, 239, 148, 0.12);
  border-color: rgba(255, 239, 148, 0.5);
  color: var(--cd7dfe-gold);
}

.cd7dfe-route.cd7dfe-is-current svg { color: var(--cd7dfe-gold); }

/* --------------------------------------------------------------------------
   Hero block
   -------------------------------------------------------------------------- */

.cd7dfe-hero {
  padding: 16px 2px 4px;
}

.cd7dfe-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cd7dfe-lilac);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--cd7dfe-line);
  background: rgba(106, 90, 205, 0.14);
}

.cd7dfe-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cd7dfe-gold);
  box-shadow: 0 0 8px rgba(255, 239, 148, 0.8);
}

.cd7dfe-hero h1 {
  margin-top: 12px;
  font-size: 27px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--cd7dfe-text);
}

.cd7dfe-hero h1 .cd7dfe-hi {
  color: var(--cd7dfe-gold);
}

.cd7dfe-hero-copy {
  margin-top: 12px;
  color: var(--cd7dfe-text-soft);
  font-size: 14.5px;
}

.cd7dfe-hero-copy + .cd7dfe-hero-copy { margin-top: 10px; }

.cd7dfe-stat-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cd7dfe-stat {
  padding: 10px 8px 9px;
  border-radius: var(--cd7dfe-r-md);
  background: rgba(20, 28, 38, 0.7);
  border: 1px solid var(--cd7dfe-line-soft);
  text-align: center;
}

.cd7dfe-stat-n {
  display: block;
  font-size: 19px;
  font-weight: 800;
  color: var(--cd7dfe-gold);
  letter-spacing: -0.02em;
}

.cd7dfe-stat-t {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--cd7dfe-text-mute);
}

.cd7dfe-hero-actions {
  margin-top: 16px;
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.cd7dfe-cta-main {
  flex: 1 1 auto;
  padding: 13px 16px;
  font-size: 15px;
  border-radius: 14px;
  color: #23281c;
  background: linear-gradient(94deg, var(--cd7dfe-gold) 0%, #ffd76e 60%, #f5c85b 100%);
  border: 1px solid rgba(255, 239, 148, 0.8);
  box-shadow: 0 8px 22px rgba(255, 215, 110, 0.25);
}

.cd7dfe-cta-main:hover,
.cd7dfe-cta-main:focus-visible {
  background: linear-gradient(94deg, #fff6b8 0%, #ffe08a 60%, #ffd76e 100%);
}

.cd7dfe-cta-ghost {
  flex: 0 0 auto;
  padding: 12px 15px;
  font-size: 13.5px;
  border-radius: 14px;
  color: var(--cd7dfe-lilac);
  border: 1px dashed rgba(204, 153, 255, 0.5);
  background: rgba(106, 90, 205, 0.1);
}

.cd7dfe-cta-ghost:hover,
.cd7dfe-cta-ghost:focus-visible {
  color: var(--cd7dfe-gold);
  border-color: rgba(255, 239, 148, 0.55);
}

/* --------------------------------------------------------------------------
   Promo carousel
   -------------------------------------------------------------------------- */

.cd7dfe-carousel {
  position: relative;
  margin-top: 18px;
  border-radius: var(--cd7dfe-r-lg);
  overflow: hidden;
  border: 1px solid var(--cd7dfe-line);
  box-shadow: var(--cd7dfe-shadow);
  touch-action: pan-y;
}

.cd7dfe-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.33, 0.7, 0.25, 1);
}

.cd7dfe-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  display: block;
}

.cd7dfe-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #101822;
}

.cd7dfe-slide-cap {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  border-radius: var(--cd7dfe-r-md);
  background: linear-gradient(90deg, rgba(14, 20, 28, 0.88), rgba(14, 20, 28, 0.55));
  border: 1px solid rgba(255, 239, 148, 0.35);
}

.cd7dfe-slide-cap b {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--cd7dfe-gold);
  letter-spacing: -0.01em;
}

.cd7dfe-slide-cap span {
  font-size: 10.5px;
  font-weight: 700;
  color: #23281c;
  background: var(--cd7dfe-gold);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.cd7dfe-dots {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}

.cd7dfe-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(242, 237, 250, 0.4);
  transition: width 0.28s ease, background-color 0.28s ease;
}

.cd7dfe-dot.cd7dfe-is-on {
  width: 22px;
  background: var(--cd7dfe-gold);
}

/* --------------------------------------------------------------------------
   Category anchor chips
   -------------------------------------------------------------------------- */

.cd7dfe-chiprow {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.cd7dfe-chiprow::-webkit-scrollbar { display: none; }

.cd7dfe-chip {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cd7dfe-text-soft);
  background: rgba(20, 28, 38, 0.75);
  border: 1px solid var(--cd7dfe-line-soft);
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.cd7dfe-chip svg { width: 15px; height: 15px; color: var(--cd7dfe-orchid); transition: color 0.25s ease; }

.cd7dfe-chip:hover,
.cd7dfe-chip:focus-visible {
  color: var(--cd7dfe-gold);
  border-color: rgba(255, 239, 148, 0.45);
  background: rgba(186, 85, 211, 0.16);
}

.cd7dfe-chip:hover svg { color: var(--cd7dfe-gold); }

/* --------------------------------------------------------------------------
   Section headings and game lobby grids
   -------------------------------------------------------------------------- */

.cd7dfe-sec { margin-top: 26px; scroll-margin-top: calc(var(--cd7dfe-header-h) + 10px); }

.cd7dfe-sec-head { display: flex; align-items: baseline; gap: 10px; }

.cd7dfe-sec-no {
  flex: none;
  font-size: 12px;
  font-weight: 800;
  color: #23281c;
  background: var(--cd7dfe-lilac);
  border-radius: 8px;
  padding: 3px 7px;
  letter-spacing: 0.02em;
}

.cd7dfe-sec h2 {
  font-size: 19.5px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cd7dfe-text);
}

.cd7dfe-sec h2 .cd7dfe-hi { color: var(--cd7dfe-gold); }

.cd7dfe-sec-note {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--cd7dfe-text-soft);
}

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

@media (min-width: 391px) {
  .cd7dfe-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
}

.cd7dfe-game {
  display: flex;
  flex-direction: column;
  border-radius: var(--cd7dfe-r-md);
  background: linear-gradient(165deg, rgba(106, 90, 205, 0.26), rgba(28, 40, 51, 0.9) 62%);
  border: 1px solid var(--cd7dfe-line-soft);
  padding: 5px 5px 0;
  text-align: center;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.18s ease;
}

.cd7dfe-game:hover,
.cd7dfe-game:focus-visible {
  border-color: rgba(255, 239, 148, 0.6);
  background: linear-gradient(165deg, rgba(186, 85, 211, 0.34), rgba(28, 40, 51, 0.9) 62%);
}

.cd7dfe-game:active { transform: translateY(1px); }

.cd7dfe-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px 9px 0 0;
  background: #101822;
}

.cd7dfe-game-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 32px;
  padding: 5px 3px 7px;
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 600;
  color: #f6f0dd;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Winners feed (recent activity list)
   -------------------------------------------------------------------------- */

.cd7dfe-feed {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cd7dfe-feed-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(20, 28, 38, 0.66);
  border: 1px solid var(--cd7dfe-line-soft);
}

.cd7dfe-feed-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--cd7dfe-lilac);
  background: rgba(106, 90, 205, 0.2);
  border-radius: 8px;
  padding: 4px 0;
  text-align: center;
}

.cd7dfe-feed-game { font-size: 13.5px; font-weight: 600; color: var(--cd7dfe-text); }

.cd7dfe-feed-game small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--cd7dfe-text-mute);
}

.cd7dfe-feed-amount {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--cd7dfe-gold);
  white-space: nowrap;
}

.cd7dfe-feed-note {
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--cd7dfe-text-mute);
}

/* --------------------------------------------------------------------------
   Category highlight tiles
   -------------------------------------------------------------------------- */

.cd7dfe-hl-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.cd7dfe-hl {
  padding: 12px 12px 11px;
  border-radius: 16px;
  background: rgba(20, 28, 38, 0.7);
  border: 1px solid var(--cd7dfe-line-soft);
  border-top: 2px solid rgba(186, 85, 211, 0.65);
}

.cd7dfe-hl-ic {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(106, 90, 205, 0.24);
  color: var(--cd7dfe-lilac);
}

.cd7dfe-hl-ic svg { width: 18px; height: 18px; }

.cd7dfe-hl-t {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--cd7dfe-gold);
}

.cd7dfe-hl p {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--cd7dfe-text-soft);
}

/* --------------------------------------------------------------------------
   Tricks list
   -------------------------------------------------------------------------- */

.cd7dfe-tricks {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cd7dfe-trick {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(20, 28, 38, 0.66);
  border: 1px solid var(--cd7dfe-line-soft);
}

.cd7dfe-trick-n {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #23281c;
  background: linear-gradient(140deg, var(--cd7dfe-gold), #f2ca62);
}

.cd7dfe-trick b { font-size: 13.5px; font-weight: 700; color: var(--cd7dfe-text); }

.cd7dfe-trick p {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--cd7dfe-text-soft);
}

/* --------------------------------------------------------------------------
   Comparison rows
   -------------------------------------------------------------------------- */

.cd7dfe-compare {
  margin-top: 12px;
  border: 1px solid var(--cd7dfe-line-soft);
  border-radius: var(--cd7dfe-r-lg);
  overflow: hidden;
  background: rgba(20, 28, 38, 0.6);
}

.cd7dfe-cmp-row {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 10px;
  padding: 11px 13px;
}

.cd7dfe-cmp-row + .cd7dfe-cmp-row { border-top: 1px solid var(--cd7dfe-line-soft); }

.cd7dfe-cmp-key {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cd7dfe-lilac);
  line-height: 1.4;
}

.cd7dfe-cmp-val { font-size: 13px; line-height: 1.55; color: var(--cd7dfe-text-soft); }

.cd7dfe-cmp-val b { color: var(--cd7dfe-gold); font-weight: 700; }

/* --------------------------------------------------------------------------
   Term definitions
   -------------------------------------------------------------------------- */

.cd7dfe-terms {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cd7dfe-term {
  padding: 11px 13px;
  border-radius: 13px;
  border-left: 3px solid var(--cd7dfe-orchid);
  background: rgba(106, 90, 205, 0.12);
}

.cd7dfe-term-dt {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--cd7dfe-gold);
}

.cd7dfe-term-dd {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--cd7dfe-text-soft);
}

/* --------------------------------------------------------------------------
   Steps (getting started)
   -------------------------------------------------------------------------- */

.cd7dfe-steps {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: cd7dfe-step;
}

.cd7dfe-step {
  counter-increment: cd7dfe-step;
  position: relative;
  padding: 12px 13px 12px 46px;
  border-radius: 13px;
  background: rgba(20, 28, 38, 0.66);
  border: 1px solid var(--cd7dfe-line-soft);
  font-size: 13px;
  line-height: 1.55;
  color: var(--cd7dfe-text-soft);
}

.cd7dfe-step::before {
  content: counter(cd7dfe-step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #23281c;
  background: var(--cd7dfe-lilac);
}

.cd7dfe-step b { color: var(--cd7dfe-text); }

/* --------------------------------------------------------------------------
   Security / payments note strip
   -------------------------------------------------------------------------- */

.cd7dfe-guard {
  margin-top: 12px;
  border-radius: var(--cd7dfe-r-lg);
  padding: 14px 14px 13px;
  background:
    radial-gradient(220px 150px at 90% 0%, rgba(186, 85, 211, 0.2), transparent 70%),
    rgba(20, 28, 38, 0.8);
  border: 1px solid var(--cd7dfe-line-soft);
}

.cd7dfe-guard p { font-size: 13px; line-height: 1.6; color: var(--cd7dfe-text-soft); }
.cd7dfe-guard p + p { margin-top: 8px; }
.cd7dfe-guard b { color: var(--cd7dfe-gold); }

.cd7dfe-guard-list {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cd7dfe-guard-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cd7dfe-lilac);
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--cd7dfe-line-soft);
  background: rgba(106, 90, 205, 0.14);
}

.cd7dfe-guard-tag svg { width: 13px; height: 13px; }

/* --------------------------------------------------------------------------
   Homepage extended footer: directory > brand > promotions > disclaimer
   -------------------------------------------------------------------------- */

.cd7dfe-xfooter {
  margin-top: 30px;
  padding: 18px 14px 16px;
  border-radius: var(--cd7dfe-r-lg) var(--cd7dfe-r-lg) 0 0;
  background: linear-gradient(180deg, rgba(16, 22, 31, 0.6), rgba(12, 17, 24, 0.94));
  border-top: 1px solid var(--cd7dfe-line);
}

.cd7dfe-xf-block + .cd7dfe-xf-block { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--cd7dfe-line-soft); }

.cd7dfe-xf-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cd7dfe-lilac);
}

.cd7dfe-xf-title svg { width: 15px; height: 15px; color: var(--cd7dfe-orchid); }

.cd7dfe-xf-dir {
  margin-top: 11px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 12px;
}

.cd7dfe-xf-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(204, 153, 255, 0.06);
  border: 1px solid var(--cd7dfe-line-soft);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cd7dfe-text);
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.cd7dfe-xf-link svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--cd7dfe-orchid);
  transition: color 0.25s ease;
}

.cd7dfe-xf-link:hover,
.cd7dfe-xf-link:focus-visible {
  color: var(--cd7dfe-gold);
  border-color: rgba(255, 239, 148, 0.4);
  background: rgba(186, 85, 211, 0.14);
}

.cd7dfe-xf-link:hover svg,
.cd7dfe-xf-link:focus-visible svg { color: var(--cd7dfe-gold); }

.cd7dfe-xf-brand {
  margin-top: 11px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.cd7dfe-xf-brand img {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  object-fit: cover;
  border: 1px solid rgba(255, 239, 148, 0.4);
  flex: none;
}

.cd7dfe-xf-brand p { font-size: 12.5px; line-height: 1.6; color: var(--cd7dfe-text-soft); }
.cd7dfe-xf-brand b { color: var(--cd7dfe-gold); }

.cd7dfe-xf-promos {
  margin-top: 11px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cd7dfe-xf-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 10px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cd7dfe-gold);
  background: rgba(106, 90, 205, 0.2);
  border: 1px solid var(--cd7dfe-line);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cd7dfe-xf-cta svg { width: 17px; height: 17px; flex: none; }

.cd7dfe-xf-cta:hover,
.cd7dfe-xf-cta:focus-visible {
  color: #23281c;
  background: linear-gradient(94deg, var(--cd7dfe-gold), #ffd76e);
  border-color: rgba(255, 239, 148, 0.8);
}

.cd7dfe-xf-cta.cd7dfe-is-wide {
  grid-column: 1 / -1;
  min-height: 54px;
  font-size: 14.5px;
  color: #23281c;
  background: linear-gradient(94deg, var(--cd7dfe-gold) 6%, #ffd76e 60%, #f5c85b 100%);
  border-color: rgba(255, 239, 148, 0.85);
  box-shadow: 0 8px 20px rgba(255, 215, 110, 0.22);
}

.cd7dfe-xf-cta.cd7dfe-is-wide:hover,
.cd7dfe-xf-cta.cd7dfe-is-wide:focus-visible {
  background: linear-gradient(94deg, #fff6b8 6%, #ffe08a 60%, #ffd76e 100%);
}

.cd7dfe-xf-note {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--cd7dfe-text-mute);
}

/* --------------------------------------------------------------------------
   Common footer + floating dock (bottom navigation)
   -------------------------------------------------------------------------- */

.cd7dfe-footer {
  padding: 12px 14px calc(var(--cd7dfe-dock-h) + 26px);
  text-align: center;
  font-size: 11.5px;
  color: var(--cd7dfe-text-mute);
  border-top: 1px solid var(--cd7dfe-line-soft);
}

.cd7dfe-footer b { color: var(--cd7dfe-text-soft); font-weight: 700; }

.cd7dfe-dock {
  position: fixed;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 410px;
  z-index: 65;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 7px 6px 6px;
  border-radius: 20px;
  background: var(--cd7dfe-glass);
  border: 1px solid var(--cd7dfe-line);
  box-shadow: var(--cd7dfe-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cd7dfe-dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 4px 2px;
  border-radius: 14px;
  color: var(--cd7dfe-text-mute);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.cd7dfe-dock-item svg {
  width: 21px;
  height: 21px;
  display: block;
}

.cd7dfe-dock-item::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: var(--cd7dfe-gold);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0.24, 1);
}

.cd7dfe-dock-item:hover,
.cd7dfe-dock-item:focus-visible { color: var(--cd7dfe-lilac); }

.cd7dfe-dock-item.cd7dfe-is-active {
  color: var(--cd7dfe-gold);
  background: rgba(255, 239, 148, 0.1);
}

.cd7dfe-dock-item.cd7dfe-is-active::before { transform: translateX(-50%) scaleX(1); }

/* --------------------------------------------------------------------------
   Motion restraint
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
