/* ==========================================================================
   1xbet mobi login - interface-mobile-6f412c.css
   Mobile-first "signal console" theme for a 320-430px phone canvas.
   Palette anchors: #A0522D sienna / #F5DEB3 wheat / #E8F5E8 mint
                     #212F3D navy base / #B2DFDB teal / #F5F5F5 paper
   Visual direction: near-square utility corners, light floating game
   cards, compact metric-explanation rhythm, square high-contrast CTAs.
   ========================================================================== */

:root {
  --c412cb-bg: #212F3D;
  --c412cb-bg-deep: #1a2530;
  --c412cb-surface: #2a3b4b;
  --c412cb-surface-2: #33475a;
  --c412cb-line: #3d5266;
  --c412cb-line-soft: #314455;
  --c412cb-ink: #f5f5f5;
  --c412cb-ink-dim: #c4d2dd;
  --c412cb-ink-mute: #8fa3b3;
  --c412cb-wheat: #f5deb3;
  --c412cb-sienna: #a0522d;
  --c412cb-sienna-hi: #b8623a;
  --c412cb-sienna-lo: #7e4224;
  --c412cb-teal: #b2dfdb;
  --c412cb-mint: #e8f5e8;
  --c412cb-r: 3px;
  --c412cb-r-lg: 6px;
  --c412cb-font-display: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --c412cb-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --c412cb-header-h: 108px;
  --c412cb-dock-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--c412cb-font-body);
  font-size: 15px;
  line-height: 1.62;
  color: var(--c412cb-ink);
  background: #141c25;
  overflow-x: hidden;
}

/* Phone canvas stays centered on wide screens */
.c412cb-shell {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--c412cb-bg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 0 44px rgba(0, 0, 0, 0.45);
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: var(--c412cb-teal); text-decoration: none; }
a:hover { color: var(--c412cb-wheat); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style-position: inside; }

:focus-visible {
  outline: 2px solid var(--c412cb-teal);
  outline-offset: 2px;
}

/* ==========================================================================
   Fixed top header: centered identity bar + action strip + drop menu
   ========================================================================== */

.c412cb-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: var(--c412cb-bg-deep);
  border-bottom: 1px solid var(--c412cb-line);
  transition: box-shadow 0.2s ease;
}

.c412cb-header.is-scrolled { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); }

.c412cb-idbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 8px;
}

/* Centered brand: real logo image + site name, nothing else */
.c412cb-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c412cb-ink);
}

.c412cb-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border: 1px solid var(--c412cb-line);
  border-radius: var(--c412cb-r);
  background: var(--c412cb-surface);
}

.c412cb-brand-name {
  font-family: var(--c412cb-font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c412cb-wheat);
  white-space: nowrap;
}

.c412cb-menubtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--c412cb-teal);
  border-radius: var(--c412cb-r);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.c412cb-menubtn:active { color: var(--c412cb-wheat); background: var(--c412cb-surface); }

.c412cb-menubtn svg { width: 22px; height: 22px; }

/* Decorative signal glyph balancing the left menu button */
.c412cb-signalglyph {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 44px;
  height: 44px;
  justify-content: center;
  padding-bottom: 11px;
  opacity: 0.75;
}

.c412cb-signalglyph span {
  width: 4px;
  background: var(--c412cb-teal);
  border-radius: 1px;
}
.c412cb-signalglyph span:nth-child(1) { height: 5px; }
.c412cb-signalglyph span:nth-child(2) { height: 9px; }
.c412cb-signalglyph span:nth-child(3) { height: 13px; background: var(--c412cb-wheat); }

/* Action strip: register / login live outside the brand zone */
.c412cb-actionbar {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8px;
  padding: 0 10px 10px;
}

.c412cb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 9px 14px;
  font-family: var(--c412cb-font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: var(--c412cb-r);
  transition: transform 0.12s ease, background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
}

.c412cb-btn:active { transform: scale(0.965); }

.c412cb-btn-primary {
  background: var(--c412cb-sienna);
  color: var(--c412cb-wheat);
  border: 1px solid var(--c412cb-sienna-hi);
}
.c412cb-btn-primary:hover { background: var(--c412cb-sienna-hi); color: #fff7e8; }

.c412cb-btn-ghost {
  background: transparent;
  color: var(--c412cb-teal);
  border: 1px solid var(--c412cb-line);
}
.c412cb-btn-ghost:hover { color: var(--c412cb-wheat); border-color: var(--c412cb-teal); }

/* Expandable drop menu */
.c412cb-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  background: var(--c412cb-bg-deep);
  border-bottom: 2px solid var(--c412cb-sienna);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.5);
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.c412cb-drawer.is-open { display: block; animation: c412cb-drawerdrop 0.18s ease both; }

@keyframes c412cb-drawerdrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.c412cb-drawer-group { padding: 10px 12px 4px; }

.c412cb-drawer-label {
  font-family: var(--c412cb-font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c412cb-ink-mute);
  padding: 4px 2px 6px;
  border-bottom: 1px solid var(--c412cb-line-soft);
  margin-bottom: 6px;
}

.c412cb-drawer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.c412cb-drawer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--c412cb-ink-dim);
  background: var(--c412cb-surface);
  border: 1px solid var(--c412cb-line-soft);
  border-left: 3px solid var(--c412cb-line);
  border-radius: var(--c412cb-r);
  font-size: 13.5px;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.c412cb-drawer-links a:hover {
  color: var(--c412cb-wheat);
  border-left-color: var(--c412cb-sienna-hi);
  background: var(--c412cb-surface-2);
}

.c412cb-drawer-links a.is-current {
  color: var(--c412cb-wheat);
  border-left-color: var(--c412cb-sienna);
}

.c412cb-drawer-dot {
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--c412cb-teal);
  border-radius: 1px;
}

/* ==========================================================================
   Main canvas rhythm
   ========================================================================== */

.c412cb-main {
  padding: calc(var(--c412cb-header-h) + 14px) 12px
    calc(var(--c412cb-dock-h) + env(safe-area-inset-bottom, 0px) + 28px);
}

.c412cb-section { margin-top: 26px; scroll-margin-top: 124px; }

.c412cb-sechead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.c412cb-sectag {
  font-family: var(--c412cb-font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c412cb-sienna-hi);
  border: 1px solid var(--c412cb-line);
  background: var(--c412cb-surface);
  border-radius: var(--c412cb-r);
  padding: 3px 8px;
  white-space: nowrap;
}

.c412cb-seccount {
  font-size: 11.5px;
  color: var(--c412cb-ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--c412cb-font-display);
}

h1.c412cb-h1 {
  font-family: var(--c412cb-font-display);
  font-size: 25px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--c412cb-ink);
  text-wrap: balance;
}

h2.c412cb-h2 {
  font-family: var(--c412cb-font-display);
  font-size: 19px;
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--c412cb-wheat);
  margin: 2px 0 8px;
  text-wrap: balance;
}

h3.c412cb-h3 {
  font-family: var(--c412cb-font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c412cb-teal);
  margin: 16px 0 6px;
}

.c412cb-lede,
.c412cb-p {
  color: var(--c412cb-ink-dim);
  font-size: 15px;
  margin-bottom: 10px;
}

.c412cb-p strong, .c412cb-lede strong { color: var(--c412cb-ink); font-weight: 600; }

.c412cb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--c412cb-font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c412cb-teal);
  margin-bottom: 8px;
}

.c412cb-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--c412cb-sienna-hi);
}

/* ==========================================================================
   Hero + compact metric rail
   ========================================================================== */

.c412cb-hero {
  border: 1px solid var(--c412cb-line);
  border-top: 3px solid var(--c412cb-sienna);
  background: linear-gradient(180deg, #263748 0%, #212f3d 78%);
  border-radius: var(--c412cb-r-lg);
  padding: 16px 14px 14px;
}

.c412cb-meterrail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.c412cb-meter {
  background: var(--c412cb-bg-deep);
  border: 1px solid var(--c412cb-line-soft);
  border-radius: var(--c412cb-r);
  padding: 9px 10px 8px;
}

.c412cb-meter b {
  display: block;
  font-family: var(--c412cb-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--c412cb-wheat);
  line-height: 1.1;
}

.c412cb-meter span {
  display: block;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--c412cb-ink-mute);
  margin-top: 3px;
}

.c412cb-steps {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: c412cb-step;
}

.c412cb-steps li {
  counter-increment: c412cb-step;
  position: relative;
  padding: 7px 0 7px 34px;
  border-top: 1px dashed var(--c412cb-line-soft);
  color: var(--c412cb-ink-dim);
  font-size: 14px;
}

.c412cb-steps li::before {
  content: counter(c412cb-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 9px;
  font-family: var(--c412cb-font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--c412cb-sienna-hi);
  border: 1px solid var(--c412cb-line);
  background: var(--c412cb-surface);
  border-radius: var(--c412cb-r);
  padding: 1px 5px;
}

/* ==========================================================================
   Banner carousel
   ========================================================================== */

.c412cb-carousel {
  position: relative;
  margin-top: 18px;
  border: 1px solid var(--c412cb-line);
  border-radius: var(--c412cb-r-lg);
  overflow: hidden;
  background: var(--c412cb-bg-deep);
}

.c412cb-cviewport {
  overflow: hidden;
  touch-action: pan-y;
}

.c412cb-ctrack {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.33, 0.8, 0.35, 1);
}

.c412cb-cslide {
  position: relative;
  flex: 0 0 100%;
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
}

.c412cb-cslide img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.c412cb-ccaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, rgba(26, 37, 48, 0) 0%, rgba(26, 37, 48, 0.94) 78%);
}

.c412cb-ccaption strong {
  display: block;
  font-family: var(--c412cb-font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--c412cb-wheat);
  line-height: 1.25;
}

.c412cb-ccaption small {
  display: block;
  font-size: 11px;
  color: var(--c412cb-teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--c412cb-font-display);
}

.c412cb-ccaption .c412cb-btn {
  min-height: 40px;
  padding: 7px 12px;
  font-size: 12.5px;
  flex: none;
}

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

.c412cb-cdot {
  width: 22px;
  height: 6px;
  padding: 0;
  background: rgba(245, 245, 245, 0.35);
  border-radius: 1px;
  transition: background-color 0.2s ease;
}

.c412cb-cdot.is-on { background: var(--c412cb-sienna-hi); }

/* ==========================================================================
   Category quick strip
   ========================================================================== */

.c412cb-catstrip {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.c412cb-catstrip::-webkit-scrollbar { display: none; }

.c412cb-catstrip a {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 12px;
  font-family: var(--c412cb-font-display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c412cb-ink-dim);
  background: var(--c412cb-surface);
  border: 1px solid var(--c412cb-line);
  border-radius: var(--c412cb-r);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.c412cb-catstrip a:hover { color: var(--c412cb-wheat); border-color: var(--c412cb-teal); }

.c412cb-catstrip a em {
  font-style: normal;
  color: var(--c412cb-sienna-hi);
  font-weight: 600;
}

/* ==========================================================================
   Game grid - light floating image cards
   ========================================================================== */

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

.c412cb-gcard {
  display: flex;
  flex-direction: column;
  padding: 5px 5px 7px;
  background: linear-gradient(180deg, var(--c412cb-surface-2) 0%, var(--c412cb-surface) 100%);
  border: 1px solid var(--c412cb-line-soft);
  border-radius: var(--c412cb-r);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
  text-align: center;
  transition: transform 0.12s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.c412cb-gcard:hover {
  border-color: var(--c412cb-teal);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.38);
}

.c412cb-gcard:active { transform: scale(0.94); }

.c412cb-gcard-img {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: var(--c412cb-bg-deep);
}

.c412cb-gcard-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.c412cb-gcard:hover .c412cb-gcard-img img { transform: scale(1.05); }

.c412cb-gcard-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.32;
  color: var(--c412cb-ink-dim);
  overflow-wrap: anywhere;
}

.c412cb-gcard:hover .c412cb-gcard-name { color: var(--c412cb-wheat); }

/* ==========================================================================
   Content modules
   ========================================================================== */

.c412cb-panel {
  border: 1px solid var(--c412cb-line);
  border-radius: var(--c412cb-r-lg);
  background: var(--c412cb-surface);
  padding: 14px 13px;
}

.c412cb-panel + .c412cb-panel { margin-top: 10px; }

/* pick-by-goal rows */
.c412cb-goalrow {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px dashed var(--c412cb-line-soft);
  align-items: start;
}

.c412cb-goalrow:first-of-type { border-top: 0; padding-top: 2px; }

.c412cb-goaltag {
  font-family: var(--c412cb-font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c412cb-wheat);
  background: var(--c412cb-bg-deep);
  border: 1px solid var(--c412cb-line);
  border-radius: var(--c412cb-r);
  padding: 5px 6px;
  text-align: center;
}

.c412cb-goalrow p { font-size: 13.5px; color: var(--c412cb-ink-dim); }

/* decision CTA block */
.c412cb-ctaband {
  border: 1px solid var(--c412cb-sienna-hi);
  border-left: 5px solid var(--c412cb-sienna);
  background: linear-gradient(135deg, #2e3f50 0%, #243544 70%);
  border-radius: var(--c412cb-r-lg);
  padding: 15px 13px;
}

.c412cb-ctaband .c412cb-btnrow { margin-top: 12px; }

.c412cb-btnrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.c412cb-btnrow .c412cb-btn { width: 100%; }

/* payment channel rows */
.c412cb-payrow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 9px 10px;
  margin-top: 8px;
  background: var(--c412cb-bg-deep);
  border: 1px solid var(--c412cb-line-soft);
  border-left: 3px solid var(--c412cb-teal);
  border-radius: var(--c412cb-r);
}

.c412cb-payrow b {
  font-family: var(--c412cb-font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c412cb-wheat);
}

.c412cb-payrow span { font-size: 13px; color: var(--c412cb-ink-mute); }

/* security list */
.c412cb-safelist { list-style: none; padding: 0; }

.c412cb-safelist li {
  position: relative;
  padding: 7px 0 7px 24px;
  border-top: 1px dashed var(--c412cb-line-soft);
  font-size: 14px;
  color: var(--c412cb-ink-dim);
}

.c412cb-safelist li:first-child { border-top: 0; }

.c412cb-safelist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--c412cb-teal);
  border-radius: 1px;
}

.c412cb-safelist li strong { color: var(--c412cb-ink); }

/* feature tiles */
.c412cb-featgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.c412cb-feat {
  background: var(--c412cb-bg-deep);
  border: 1px solid var(--c412cb-line-soft);
  border-top: 2px solid var(--c412cb-sienna);
  border-radius: var(--c412cb-r);
  padding: 10px 10px 9px;
}

.c412cb-feat b {
  display: block;
  font-family: var(--c412cb-font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c412cb-wheat);
  margin-bottom: 3px;
}

.c412cb-feat span { font-size: 12.5px; line-height: 1.45; color: var(--c412cb-ink-mute); display: block; }

/* checklist */
.c412cb-checklist { list-style: none; padding: 0; }

.c412cb-checklist li {
  position: relative;
  padding: 7px 0 7px 26px;
  border-top: 1px dashed var(--c412cb-line-soft);
  font-size: 14px;
  color: var(--c412cb-ink-dim);
}

.c412cb-checklist li:first-child { border-top: 0; }

.c412cb-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 12px;
  background: var(--c412cb-sienna);
  border-radius: 1px;
}

.c412cb-checklist li::after {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 14px;
  width: 5px;
  height: 8px;
  border: solid var(--c412cb-wheat);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

/* inline keyword note box */
.c412cb-note {
  margin-top: 10px;
  padding: 9px 11px;
  background: rgba(178, 223, 219, 0.08);
  border: 1px solid rgba(178, 223, 219, 0.35);
  border-radius: var(--c412cb-r);
  font-size: 13px;
  color: var(--c412cb-mint);
}

/* ==========================================================================
   Homepage extended footer
   ========================================================================== */

.c412cb-extfoot {
  margin-top: 30px;
  border: 1px solid var(--c412cb-line);
  border-radius: var(--c412cb-r-lg);
  background: var(--c412cb-bg-deep);
  padding: 14px 12px;
}

.c412cb-extfoot-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--c412cb-font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c412cb-teal);
  margin: 16px 0 8px;
}

.c412cb-extfoot-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c412cb-line);
}

.c412cb-extfoot-group:first-child .c412cb-extfoot-label { margin-top: 2px; }

.c412cb-dirgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.c412cb-dirgrid a {
  display: block;
  min-height: 40px;
  padding: 8px 9px;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--c412cb-ink-dim);
  background: var(--c412cb-surface);
  border: 1px solid var(--c412cb-line-soft);
  border-radius: var(--c412cb-r);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.c412cb-dirgrid a:hover { color: var(--c412cb-wheat); border-color: var(--c412cb-teal); }

.c412cb-dirgrid a small {
  display: block;
  font-size: 10.5px;
  color: var(--c412cb-ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--c412cb-font-display);
}

.c412cb-brandnote { font-size: 13px; color: var(--c412cb-ink-mute); }

.c412cb-promorow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.c412cb-promorow .c412cb-btn { width: 100%; min-height: 40px; font-size: 12px; padding: 7px 8px; letter-spacing: 0.06em; }

.c412cb-promolink {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--c412cb-font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c412cb-wheat);
  border-bottom: 2px solid var(--c412cb-sienna-hi);
  padding: 2px 1px;
}

.c412cb-promolink:hover { color: var(--c412cb-sienna-hi); }

.c412cb-disclaimer {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--c412cb-ink-mute);
  border-top: 1px solid var(--c412cb-line);
  padding-top: 10px;
}

/* ==========================================================================
   Common footer
   ========================================================================== */

.c412cb-footer {
  max-width: 430px;
  margin: 0 auto;
  padding: 14px 12px calc(var(--c412cb-dock-h) + env(safe-area-inset-bottom, 0px) + 18px);
  text-align: center;
  background: var(--c412cb-bg-deep);
  border-top: 1px solid var(--c412cb-line);
  font-size: 12px;
  color: var(--c412cb-ink-mute);
  letter-spacing: 0.04em;
}

.c412cb-footer strong { color: var(--c412cb-ink-dim); font-weight: 600; }

/* ==========================================================================
   Bottom dock: center-raised 5-role navigation
   ========================================================================== */

.c412cb-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--c412cb-dock-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  background: var(--c412cb-bg-deep);
  border-top: 1px solid var(--c412cb-line);
}

/* sliding indicator line above the active tab */
.c412cb-dockline {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 25%;
  background: var(--c412cb-sienna-hi);
  transition: transform 0.3s cubic-bezier(0.4, 0.9, 0.4, 1);
  will-change: transform;
}

.c412cb-dockitem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  color: var(--c412cb-ink-mute);
  transition: color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.c412cb-dockitem svg {
  width: 21px;
  height: 21px;
  opacity: 0.85;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.c412cb-dockitem span {
  font-family: var(--c412cb-font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.c412cb-dockitem:active { color: var(--c412cb-wheat); }
.c412cb-dockitem:active svg { transform: translateY(-1px); opacity: 1; }

.c412cb-dockitem.is-active { color: var(--c412cb-wheat); }
.c412cb-dockitem.is-active svg { opacity: 1; color: var(--c412cb-wheat); }

/* raised center action */
.c412cb-dockslot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c412cb-dockraise {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 56px;
  height: 56px;
  margin-top: -26px;
  background: linear-gradient(160deg, var(--c412cb-sienna-hi) 0%, var(--c412cb-sienna) 100%);
  border: 2px solid var(--c412cb-wheat);
  border-radius: var(--c412cb-r-lg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  color: var(--c412cb-wheat);
  transition: transform 0.14s ease, box-shadow 0.18s ease;
}

.c412cb-dockraise svg { width: 20px; height: 20px; }

.c412cb-dockraise span {
  font-family: var(--c412cb-font-display);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.c412cb-dockraise:active { transform: translateY(2px) scale(0.96); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5); }

/* ==========================================================================
   Wide-phone tuning
   ========================================================================== */

@media (min-width: 375px) {
  h1.c412cb-h1 { font-size: 27px; }
  .c412cb-grid { gap: 9px; }
  .c412cb-gcard-name { font-size: 11.5px; }
}

@media (min-width: 400px) {
  .c412cb-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .c412cb-meterrail { grid-template-columns: repeat(4, 1fr); }
  .c412cb-promorow { grid-template-columns: repeat(3, 1fr); }
  h1.c412cb-h1 { font-size: 28px; }
}

@media (max-width: 374px) {
  .c412cb-brand-name { font-size: 15.5px; }
  .c412cb-btn { font-size: 13px; letter-spacing: 0.06em; }
  .c412cb-meterrail b { font-size: 18px; }
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .c412cb-ctrack { transition: none; }
  .c412cb-dockline { transition: none; }
  .c412cb-drawer.is-open { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* Screen-reader helper (visually hidden, still focusable) */
.c412cb-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
