/* ==========================================================================
   Instituto Juspraxis — design tokens & base styles
   Alinhado ao Manual de Identidade Visual (IDV) — Abril/2026.
   Paleta: #081D3C · #FFFFFF · #C5A034
   Tipografia (Identidade): Tw Cen MT (body) + Losta Masta (display)
   ========================================================================== */

/* ---- @font-face: brand fonts shipped in /fonts ---------------------- */
@font-face {
  font-family: 'Tw Cen MT';
  src: url('/fonts/tw-cen-mt/TwCenMT.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face { font-family: 'Losta Masta'; src: url('/fonts/losta-masta/LostaMasta-Thin.ttf') format('truetype');     font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Losta Masta'; src: url('/fonts/losta-masta/LostaMasta-Light.ttf') format('truetype');    font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Losta Masta'; src: url('/fonts/losta-masta/LostaMasta-Regular.ttf') format('truetype');  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Losta Masta'; src: url('/fonts/losta-masta/LostaMasta-Medium.ttf') format('truetype');   font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Losta Masta'; src: url('/fonts/losta-masta/LostaMasta-Bold.ttf') format('truetype');     font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Losta Masta'; src: url('/fonts/losta-masta/LostaMasta-ExtraBold.ttf') format('truetype');font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Losta Masta'; src: url('/fonts/losta-masta/LostaMasta-Black.ttf') format('truetype');    font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('/fonts/playfair-display/PlayfairDisplay-SemiBold.ttf') format('truetype')}

:root {
  /* ----- IDV palette (exact) ------------------------------------------- */
  --navy:      #081D3C;   /* azul escuro institucional */
  --white:     #FFFFFF;
  --gold:      #C5A034;
  --gold-dark: #A8882B;

  /* tonal helpers derived from the three IDV colors */
  --navy-800: #0D2550;
  --navy-700: #112D5E;
  --navy-card: #0F2547;

  --gold-soft:    rgba(197, 160, 52, 0.12);
  --cream:        #F7F2E8;
  --cream-2:      #F0E9D9;
  --cream-3:      #EBE2D1;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: rgba(255, 255, 255, 0.72);
  --text-on-light: #081D3C;
  --text-on-light-muted: rgba(8, 29, 60, 0.7);

  /* ----- type ----------------------------------------------------------- */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', ui-sans-serif, system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.25);
  --shadow-pop: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-book-dark: 0 18px 44px rgba(8, 29, 60, 0.2), 0 4px 14px rgba(8, 29, 60, 0.12);
  --shadow-book-light: 0 18px 44px rgba(8, 29, 60, 0.09), 0 4px 14px rgba(8, 29, 60, 0.05);

  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-on-dark);
  background: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.95rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ----- buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease, color 150ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-dark); color: var(--navy); }
.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.06); color: var(--white); }
.btn-ghost-dark {
  background: transparent;
  color: var(--text-on-light);
  border: 1px solid rgba(8, 29, 60, 0.18);
}
.btn-ghost-dark:hover { background: rgba(8, 29, 60, 0.04); }

.btn-arrow svg { transition: transform 150ms ease; }
.btn:hover .btn-arrow svg { transform: translateX(3px); }

/* ----- pill / badge ---------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(197, 160, 52, 0.3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.gold { color: var(--gold); }

/* ----- header ---------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  background: rgba(8, 29, 60, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand-img { height: 100px; width: auto; display: block; }
.brand-img.brand-img-sm { height: 130px; }

.nav-main {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.95rem;
}
.nav-main a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  transition: background-color 150ms ease, color 150ms ease;
}
.nav-main a:hover {
  background: var(--navy-700);
  color: var(--gold);
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.375rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-user-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(197, 160, 52, 0.58);
  border-radius: var(--radius-sm);
  color: var(--gold);
  background: rgba(255, 255, 255, 0.03);
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.header-user-link:hover {
  background: rgba(197, 160, 52, 0.1);
  border-color: rgba(197, 160, 52, 0.86);
  color: var(--gold);
}

.site-header .btn-primary[data-cta="header"] {
  padding: 0.3rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(197, 160, 52, 0.82);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.mobile-site-header {
  display: none;
}

/* ----- hero ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 9rem 0 4rem;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5vh;
  min-height: 140px;
  background: linear-gradient(to bottom, rgba(8, 29, 60, 0) 0%, rgba(8, 29, 60, 0.68) 38%, var(--cream) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/img/hammer-photo.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}
.hero-divider {
  position: absolute;
  top: 78px; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(197, 160, 52, 0.4), transparent);
}
.hero .container { position: relative; z-index: 1; transform: translateY(-3rem); }
.hero-logo {
  display: block;
  width: min(190px, 70vw);
  height: auto;
  margin-bottom: 0.5rem;
}
.hero h1 {
  color: var(--white);
  max-width: 22ch;
  line-height: 0.92;
  margin-bottom: 1rem;
  text-transform: none;
}
.hero .lede {
  color: var(--text-on-dark-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.45;
  max-width: 92ch;
  margin-bottom: 1rem;
}
.hero-cta { margin-bottom: 0; }
.hero-cta .btn {
  border-radius: var(--radius-sm);
  padding: 0.48rem 2.25rem;
  font-weight: 600;
}
.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 660px;
  margin: 2.5rem auto 0;
}
.hero-card {
  min-height: 132px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-on-dark-muted);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.hero-card:hover {
  border-color: rgba(197, 160, 52, 0.95);
  background: rgba(255, 255, 255, 0.10);
  color: var(--text-on-dark-muted);
  transform: translateY(-2px);
}
.hero-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.hero-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.16);
  color: var(--gold);
}
.hero-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0.2rem 0.75rem;
  border: 1px solid rgba(197, 160, 52, 0.65);
  border-radius: 999px;
  background: rgba(197, 160, 52, 0.14);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
}
.hero-card h2 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.hero-card-kicker,
.hero-card-link {
  color: var(--gold);
}
.hero-card p {
  margin-bottom: 0.3rem;
  line-height: 1.45;
}
.hero-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.hero-card:hover .hero-card-link {
  opacity: 1;
  transform: translateY(0);
}

/* ----- section: Livro -------------------------------------------------- */
.section { padding: 6rem 0; }
.section.light { background: var(--cream); color: var(--text-on-light); }
.section.dark  { background: var(--navy); color: var(--text-on-dark); }

#livro {
  position: relative;
  overflow: hidden;
}
#livro::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.25rem;
  background: linear-gradient(to bottom, rgba(247, 242, 232, 0) 0%, var(--cream-3) 42%, var(--cream-3) 100%);
  pointer-events: none;
  z-index: 0;
}
#livro > .container {
  position: relative;
  z-index: 1;
}

#livro .livro-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 3.75rem;
}
#livro .head {
  grid-column: 1;
  max-width: 60ch;
}
#livro .head h2 { color: var(--text-on-light); margin-bottom: 0.5rem; }
#livro .head h2 .gold { color: var(--gold); }
#livro .lede { color: var(--text-on-light-muted); font-size: 1.05rem; }

.eyebrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--gold);
}
.eyebrow-icon svg {
  width: 22px;
  height: 22px;
}

.livro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.75rem;
  align-items: stretch;
}
@media (max-width: 960px) { .livro-grid { grid-template-columns: 1fr; } }

.livro-features {
  background: var(--navy);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-book-dark);
}
.livro-features::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(197, 160, 52, 0.3);
  border-radius: 12px;
  pointer-events: none;
}
.livro-features ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.livro-features li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.95rem; line-height: 1.45; }
.icon-check { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.book-mockup-column {
  display: flex;
  align-self: start;
  min-width: 0;
}

.book-summary-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 635px;
  max-height: 900px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.75rem 1.6rem;
  color: var(--white);
  box-shadow: var(--shadow-book-dark);
  position: relative;
  overflow: hidden;
}
.book-summary-card::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(197, 160, 52, 0.3);
  border-radius: 12px;
  pointer-events: none;
}
.book-summary-head {
  text-align: center;
  margin-bottom: 0.85rem;
}
.book-summary-head h3 {
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 0;
}
.book-summary-head::after {
  content: '';
  display: block;
  width: 72%;
  height: 1px;
  margin: 0.5rem auto 0;
  background: linear-gradient(to right, transparent, rgba(197, 160, 52, 0.8), transparent);
}
.book-summary-scroll {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.75rem;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.12);
  scrollbar-width: thin;
}
.book-summary-scroll::-webkit-scrollbar {
  width: 8px;
}
.book-summary-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
.book-summary-scroll::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 999px;
}
.book-summary-scroll:focus {
  outline: 2px solid rgba(197, 160, 52, 0.75);
  outline-offset: 4px;
}
.book-summary-content {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  line-height: 1.55;
}
.book-summary-content p {
  margin-bottom: 1rem;
}
.book-summary-pre {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: inherit;
  font-size: inherit;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}
.book-summary-list {
  display: flex;
  flex-direction: column;
}
.summary-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.45rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  line-height: 1.42;
}
.summary-spacer {
  height: 0.9rem;
}
.summary-number {
  color: var(--gold);
  font-weight: 700;
}
.summary-title {
  min-width: 0;
}
.summary-intro,
.summary-level-1 {
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.summary-intro,
.summary-note {
  display: block;
}
.summary-level-1 .summary-number {
  font-size: 1.05em;
}
.summary-level-2 {
  padding-left: 0.55rem;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 550;
}
.summary-level-3 {
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 400;
}
.summary-level-4 {
  padding-left: 1.65rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.86rem;
}
.summary-note {
  padding-left: 1.1rem;
  color: rgba(197, 160, 52, 0.9);
  font-weight: 600;
}

.book-mockup-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-book-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100%;
}
.book-mockup-card::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(197, 160, 52, 0.3);
  border-radius: 12px;
  pointer-events: none;
}
.book-mockup-card .novo-pill {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--gold);
  color: var(--navy);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  z-index: 2;
}
.book-mockup-card .jx {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}
.book-mockup-card .org {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.75rem;
}
.book-mockup-card .book-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  text-transform: none;
}
.book-mockup-card .book-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}

/* book-side stats */
.book-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.45rem 1.2rem;
  margin-top: 0;
}
.book-stat {
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.book-stats .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 0.95;
}
.book-stats .lbl {
  font-size: 0.86rem;
  color: var(--text-on-light-muted);
  margin-top: 0.25rem;
  line-height: 1.28;
}

/* video / CTA card */
.video-card {
  background: var(--text-on-dark-muted);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(8, 29, 60, 0.06);
  display: flex;
  flex-direction: column;
}
.video-card h3 { margin: 0 0 1rem; font-size: 1.2rem; font-family: var(--font-display); color: var(--text-on-light); }
.video-card p {
  color: var(--text-on-light-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}
.video-card-featured {
  grid-column: 2;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.video-hero {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 16/9;
  margin-bottom: 0.85rem;
  box-shadow: 0 18px 42px rgba(8, 29, 60, 0.16);
}
.video-hero img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.video-hero iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-hero .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--white);
}
.video-hero .play .ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}
.video-hero .play .label { font-weight: 700; }
.video-card .cta-block {
  margin-top: auto;
  padding-top: 1rem;
}
.video-card .cta-block .btn { width: 100%; padding: 1rem 1.6rem; font-size: 1rem; }

.standby-card {
  min-height: 100%;
  border-radius: var(--radius-lg);
  background: transparent;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-panel {
  background: var(--text-on-dark-muted);
  border: 1px solid rgba(8, 29, 60, 0.08);
  border-radius: 20px;
  padding: 1.15rem;
  color: var(--text-on-light);
  box-shadow: var(--shadow-book-light);
  text-align: center;
}
.book-numbers-card {
  flex: 0 0 auto;
  min-height: 235px;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-book-dark);
  position: relative;
  overflow: hidden;
}
.book-numbers-card::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(197, 160, 52, 0.3);
  border-radius: 12px;
  pointer-events: none;
}
.book-numbers-card .book-stats,
.book-numbers-card .book-numbers-title {
  position: relative;
  z-index: 1;
}
.book-numbers-card .lbl {
  color: rgba(255, 255, 255, 0.76);
}
.purchase-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.purchase-card h3 {
  color: var(--text-on-light);
  font-size: 1.25rem;
  margin: 0 0 0.45rem;
}
.book-numbers-title {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.35rem;
}
.book-numbers-title::after {
  content: '';
  display: block;
  width: 72%;
  height: 1px;
  margin: 0.5rem auto 0;
  background: linear-gradient(to right, transparent, rgba(197, 160, 52, 0.8), transparent);
}
.purchase-card p {
  color: var(--text-on-light-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}
.purchase-card .btn {
  width: 100%;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}
.purchase-card .purchase-note {
  color: var(--gold-dark);
  font-size: 0.88rem;
  margin: 0.75rem 0 0;
  text-align: center;
}

@media (max-width: 720px) {
  #livro .livro-intro {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: start;
  }

  #livro .head,
  .video-card-featured {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }

  .standby-card {
    min-height: 180px;
  }
}

/* ----- section: Sobre -------------------------------------------------- */
#sobre {
  position: relative;
  overflow: hidden;
}
#sobre::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(235, 226, 209, 0) 0%, var(--navy) 72%, var(--navy) 100%);
  pointer-events: none;
  z-index: 0;
}
#sobre > .container {
  position: relative;
  z-index: 1;
}
#sobre h2 { color: var(--text-on-light); margin-bottom: 1rem; }
#sobre .lede {
  color: var(--text-on-light-muted);
  font-size: 1.05rem;
  line-height: 1.48;
  margin-bottom: 0.8rem;
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 960px) { .sobre-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.sobre-photo-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--navy-800);
}
.sobre-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.sobre-photo-wrap .badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sobre-photo-wrap .badge img.brand-mark-img { height: 38px; width: auto; }
.sobre-photo-wrap .badge .label-1 {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.sobre-photo-wrap .badge .label-2 { color: var(--text-on-light); font-weight: 600; font-size: 0.95rem; }

/* ----- CTA banner ------------------------------------------------------ */
.cta-banner {
  background: var(--navy);
  padding: 3.5rem 0;
}
.cta-banner .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-banner h2 { color: var(--white); margin: 0 0 0.5rem; }
.cta-banner h2 .gold { color: var(--gold); }
.cta-banner p {
  color: var(--text-on-dark-muted);
  margin: 0;
  max-width: none;
  white-space: nowrap;
}
.cta-banner .actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ----- footer ---------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-logo-row {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 1fr) minmax(280px, 1fr);
  gap: 4rem;
  align-items: start;
  margin-bottom: 3rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-about {
  max-width: 34ch;
}
.footer-about p {
  margin: 0;
  line-height: 1.65;
}
.footer-grid h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.1rem;
  margin: 0 0 1rem;
}
.footer-grid p, .footer-grid a, .footer-grid li { color: var(--text-on-dark-muted); font-size: 0.92rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-grid ul a:hover { color: var(--gold); }
.contact-list li,
.footer-link-list li { display: flex; align-items: center; gap: 0.75rem; }
.contact-list .icon,
.footer-link-list .icon { color: var(--gold); flex-shrink: 0; }
.footer-disabled-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-on-dark-muted);
}
.footer-badge {
  flex-shrink: 0;
}
.footer-error-report {
  width: fit-content;
  margin-top: 1rem;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
}
.socials { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: background-color 150ms ease, color 150ms ease;
}
.social-btn:hover { background: rgba(197, 160, 52, 0.15); color: var(--gold); }
.footer-bottom {
  position: relative;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
}
.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(-50%);
}
.footer-bottom .copy { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-bottom .links { display: inline-flex; gap: 1.5rem; flex-wrap: wrap; }

/* ----- legal pages ----------------------------------------------------- */
.legal-shell {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 8rem 0 5rem;
  background:
    linear-gradient(to bottom, rgba(247, 242, 232, 0.96), rgba(235, 226, 209, 0.98)),
    var(--cream);
  color: var(--text-on-light);
}
body:has(.legal-shell) {
  background: var(--cream);
}
.legal-page {
  max-width: 820px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(8, 29, 60, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 18px 42px rgba(8, 29, 60, 0.08);
}
.legal-page h1 {
  color: var(--text-on-light);
  margin-bottom: 1rem;
}
.legal-page h2 {
  color: var(--text-on-light);
  font-size: 1.45rem;
  margin-top: 2rem;
  margin-bottom: 0.55rem;
}
.legal-page p,
.legal-page a {
  font-size: 1.05rem;
}
.legal-page p {
  color: var(--text-on-light-muted);
  line-height: 1.7;
}
.legal-page .lede {
  font-size: 1.08rem;
}
.legal-page a {
  color: var(--gold-dark);
  font-weight: 700;
}
.legal-page .eyebrow {
  margin-bottom: 1rem;
}

/* ----- generic responsive tweaks --------------------------------------- */
@media (max-width: 720px) {
  .landing-page > .site-header {
    display: none;
  }
  .landing-page .mobile-site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    display: block;
    background: rgba(8, 29, 60, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
  }
  .mobile-header-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    height: 64px;
    padding: 0 1rem;
  }
  .mobile-brand {
    min-width: 0;
  }
  .mobile-brand-img {
    width: auto;
    height: 62px;
    max-width: min(62vw, 240px);
    object-fit: contain;
  }
  .mobile-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
  }
  .mobile-header-icon-link,
  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(197, 160, 52, 0.56);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: var(--gold);
  }
  .mobile-menu-button {
    flex-direction: column;
    gap: 5px;
    padding: 0;
    cursor: pointer;
  }
  .mobile-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }
  .landing-page .mobile-site-header.is-menu-open .mobile-menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .landing-page .mobile-site-header.is-menu-open .mobile-menu-button span:nth-child(2) {
    opacity: 0;
  }
  .landing-page .mobile-site-header.is-menu-open .mobile-menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .mobile-header-menu {
    padding: 0.5rem 1rem 1rem;
    background: rgba(8, 29, 60, 0.98);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  }
  .mobile-header-menu[hidden] {
    display: none;
  }
  .mobile-nav-main {
    display: grid;
    gap: 0.2rem;
  }
  .mobile-nav-main a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
  }
  .mobile-nav-main a:hover {
    background: var(--navy-700);
    color: var(--gold);
  }
  .mobile-header-cta {
    width: 100%;
    min-height: 46px;
    margin-top: 0.85rem;
    white-space: normal;
    text-align: center;
  }
  .nav-main { gap: 1rem; font-size: 0.85rem; }
  .site-header .container { height: 64px; }
  .brand-img { height: 60px; }
  .landing-page .hero {
    padding-top: 8rem;
  }
  .landing-page .hero-divider {
    top: 64px;
  }
  .landing-page .hero .container {
    transform: translateY(-2.25rem);
  }
  .hero-cards { grid-template-columns: 1fr; margin-top: 2.5rem; }
  .cta-banner .row { grid-template-columns: 1fr; gap: 1.5rem; }
  .cta-banner .actions { justify-content: flex-start; }
  .cta-banner p { white-space: normal; }
}

/* ----- auth / dashboard (secondary pages) ------------------------------ */
.auth-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.25rem 4rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 52%, var(--navy-700) 100%);
  overflow: hidden;
}
.auth-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/img/hammer-photo.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  pointer-events: none;
}
.auth-shell::after {
  content: '';
  position: absolute;
  top: 78px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(197, 160, 52, 0.4), transparent);
  pointer-events: none;
}
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: rgba(15, 37, 71, 0.88);
  border: 1px solid rgba(197, 160, 52, 0.28);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  color: var(--white);
  box-shadow: var(--shadow-pop);
  backdrop-filter: blur(10px);
}
.auth-card::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(197, 160, 52, 0.18);
  border-radius: 12px;
  pointer-events: none;
}
.auth-card h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0.55rem;
  text-align: center;
}
.auth-card h1::after {
  content: '';
  display: block;
  width: 58%;
  height: 1px;
  margin: 0.75rem auto 0;
  background: linear-gradient(to right, transparent, rgba(197, 160, 52, 0.85), transparent);
}
.auth-card p.sub {
  color: var(--text-on-dark-muted);
  margin-bottom: 1.65rem;
  font-size: 0.98rem;
  text-align: center;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}
.field input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 0.82rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.field input:focus {
  outline: none;
  border-color: rgba(197, 160, 52, 0.9);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(197, 160, 52, 0.16);
}
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--white);
  box-shadow: 0 0 0 1000px var(--navy-card) inset;
}
.forgot-password-link {
  align-self: flex-end;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
}
.forgot-password-link:hover {
  color: var(--gold-dark);
}
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.25rem 0 1.1rem;
  color: var(--text-on-dark-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.auth-check input {
  width: 16px;
  height: 16px;
  margin-top: 0.15rem;
  accent-color: var(--gold);
  flex: 0 0 auto;
}
.auth-check a {
  color: var(--gold);
  font-weight: 700;
}
.auth-check a:hover {
  color: var(--gold-dark);
}
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-error { background: rgba(220, 38, 38, 0.16); border: 1px solid rgba(248, 113, 113, 0.36); color: #fecaca; }
.alert-info  { background: rgba(197, 160, 52, 0.12); border: 1px solid rgba(197, 160, 52, 0.3); color: #92600a; }
.nfe-error-alert { margin-top: 0.75rem; margin-bottom: 0; }
.password-wrapper { position: relative; width: 100%; }
.password-wrapper input { padding-right: 2.75rem; width: 100%; box-sizing: border-box; }
.password-toggle {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 0; cursor: pointer;
  color: #8893A6; display: flex; align-items: center; line-height: 1;
}
.password-toggle:hover { color: #C5A034; }
.auth-card .btn {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-top: 0.25rem;
}
.auth-card .footer-link { margin-top: 1.25rem; text-align: center; font-size: 0.92rem; color: var(--text-on-dark-muted); }
.auth-card .footer-link a { color: var(--gold); font-weight: 700; }
.auth-status-card {
  text-align: center;
}
.checkout-status-card {
  text-align: center;
}
.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1rem;
  border: 1px solid rgba(197, 160, 52, 0.58);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(197, 160, 52, 0.1);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.status-note {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.35rem;
}
.checkout-card {
  max-width: 1080px;
  padding: 0;
  overflow: hidden;
}
.checkout-card::after {
  display: none;
}
.checkout-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 0;
}
.checkout-form-panel {
  padding: 2.4rem;
}
.checkout-section-title {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 1.65rem 0 0.85rem;
}
.checkout-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}
.checkout-field-wide {
  grid-column: 1 / -1;
}
.checkout-option,
.checkout-info-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(197, 160, 52, 0.28);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
}
.checkout-option input {
  margin-top: 0.25rem;
  accent-color: var(--gold);
}
.checkout-option span,
.checkout-info-box {
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.checkout-option strong,
.checkout-info-box strong {
  display: block;
  color: var(--white);
  font-size: 0.96rem;
  margin-bottom: 0.2rem;
}
.checkout-option small,
.checkout-info-box span {
  display: block;
}
.checkout-info-box {
  flex-direction: column;
  gap: 0.2rem;
}
.checkout-terms {
  margin-top: 1.25rem;
}
.checkout-summary {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: rgba(8, 29, 60, 0.72);
  border-left: 1px solid rgba(197, 160, 52, 0.22);
}
.checkout-book-cover {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--navy);
}
.checkout-summary-content {
  padding: 1.5rem;
}
.checkout-summary-label {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.checkout-summary h2 {
  color: var(--white);
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}
.checkout-summary p {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.checkout-summary-row,
.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
}
.checkout-summary-row strong,
.checkout-summary-total strong {
  color: var(--white);
  text-align: right;
}
.checkout-summary-total {
  margin-top: 0.25rem;
  color: var(--white);
}
.checkout-summary-total strong {
  color: var(--gold);
}
.checkout-summary-note {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.88rem;
}
.auth-header-btn {
  padding: 0.4rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}
.site-header .auth-header-btn.btn-ghost-light {
  border-color: rgba(197, 160, 52, 0.58);
  color: var(--gold);
}
.site-header .auth-header-btn.btn-ghost-light:hover {
  background: rgba(197, 160, 52, 0.1);
  border-color: rgba(197, 160, 52, 0.86);
  color: var(--gold);
}

@media (max-width: 860px) {
  .checkout-main {
    grid-template-columns: 1fr;
  }
  .checkout-summary {
    border-left: 0;
    border-top: 1px solid rgba(197, 160, 52, 0.22);
  }
  .checkout-book-cover {
    max-height: 360px;
  }
}

@media (max-width: 620px) {
  .checkout-form-panel,
  .checkout-summary-content {
    padding: 1.5rem;
  }
  .checkout-field-grid {
    grid-template-columns: 1fr;
  }
}

.page-shell {
  min-height: 100vh;
  background: var(--cream);
  color: var(--text-on-light);
  padding: 7rem 0 4rem;
}
.page-shell h1 { font-family: var(--font-display); margin-bottom: 1rem; }

.dashboard-page {
  background: var(--cream);
}
.dashboard-header-actions {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
}
.dashboard-header-name {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}
.dashboard-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(8, 29, 60, 0.1);
}
.dashboard-hero .eyebrow {
  margin-bottom: 0.75rem;
}
.dashboard-hero h1 {
  color: var(--text-on-light);
  margin-bottom: 0.4rem;
}
.dashboard-hero p {
  max-width: 64ch;
  color: var(--text-on-light-muted);
  margin: 0;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1.25rem;
  align-items: start;
}
.dashboard-panel {
  background: var(--white);
  border: 1px solid rgba(8, 29, 60, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(8, 29, 60, 0.06);
}
.orders-panel {
  grid-row: span 2;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.panel-head h2 {
  color: var(--text-on-light);
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}
.panel-head p {
  color: var(--text-on-light-muted);
  font-size: 0.94rem;
  line-height: 1.45;
  margin: 0;
}
.dashboard-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}
.dashboard-form .field label,
.dashboard-panel .field label {
  color: rgba(8, 29, 60, 0.78);
}
.dashboard-form .field input,
.dashboard-panel .field input {
  background: var(--cream);
  border-color: rgba(8, 29, 60, 0.14);
  color: var(--text-on-light);
}
.dashboard-form .field input:focus,
.dashboard-panel .field input:focus {
  background: var(--white);
}
.dashboard-form .field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text-on-light);
  box-shadow: 0 0 0 1000px var(--cream) inset;
}
.dashboard-field-wide,
.dashboard-form .btn {
  grid-column: 1 / -1;
}
.dashboard-form .btn {
  justify-self: flex-start;
  border-radius: var(--radius-sm);
}
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.return-order-action {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.65rem;
}
.return-order-action p {
  color: rgba(8, 29, 60, 0.5);
  font-size: 0.72rem;
  line-height: 1.45;
  margin: 0;
}
.return-order-action a:not(.btn) {
  color: rgba(8, 29, 60, 0.65);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.return-order-btn {
  border-radius: var(--radius-sm);
  padding: 0.48rem 0.72rem;
  font-size: 0.76rem;
}
.dashboard-loading,
.empty-state {
  border: 1px dashed rgba(8, 29, 60, 0.18);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  color: var(--text-on-light-muted);
  background: var(--cream);
}
.empty-state h3 {
  color: var(--text-on-light);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.empty-state p {
  margin-bottom: 1rem;
}
.order-card {
  border: 1px solid rgba(8, 29, 60, 0.1);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  background: var(--cream);
}
.order-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.order-kicker {
  display: block;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.order-card h3 {
  color: var(--text-on-light);
  font-size: 1.12rem;
  margin-bottom: 0.3rem;
}
.order-card p {
  color: var(--text-on-light-muted);
  font-size: 0.92rem;
  margin: 0;
}
.order-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.order-status-grid > div {
  min-height: 72px;
  border: 1px solid rgba(8, 29, 60, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.62);
}
.order-status-grid span {
  display: block;
  color: var(--text-on-light-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.26rem 0.65rem;
  font-size: 0.84rem;
  line-height: 1.2;
}
.status-ok {
  background: rgba(22, 101, 52, 0.1);
  color: #166534;
}
.status-waiting {
  background: var(--gold-soft);
  color: var(--gold-dark);
}
.status-error {
  background: rgba(185, 28, 28, 0.1);
  color: #991b1b;
}
.status-muted {
  background: rgba(8, 29, 60, 0.08);
  color: rgba(8, 29, 60, 0.68);
}
.order-links {
  display: flex;
  flex-direction: column;
  margin-top: 0.85rem;
  gap: 0.4rem;
}
.tracking-link {
  display: inline-flex;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.9rem;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(8, 29, 60, 0.08);
}
.pagination span {
  font-size: 0.88rem;
  color: var(--text-on-light-muted);
  min-width: 4rem;
  text-align: center;
}
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.admin-toolbar .admin-filters {
  margin-bottom: 0;
}
.admin-date-filter {
  font-size: 0.875rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(8, 29, 60, 0.15);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--text-on-light);
  cursor: pointer;
}
.danger-panel {
  border-color: rgba(153, 27, 27, 0.2);
}
.support-panel .panel-head {
  margin-bottom: 0.9rem;
}
.error-report-btn {
  border-radius: var(--radius-sm);
  padding: 0.48rem 0.72rem;
  font-size: 0.76rem;
}
.btn-danger {
  color: #fff;
  background: #991b1b;
  border: 1px solid #991b1b;
  border-radius: var(--radius-sm);
}
.btn-danger:hover {
  background: #7f1d1d;
  color: #fff;
}
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.admin-metric {
  min-height: 112px;
  padding: 1.15rem;
  border: 1px solid rgba(8, 29, 60, 0.08);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(8, 29, 60, 0.06);
}
.admin-metric span {
  display: block;
  color: var(--text-on-light-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.admin-metric strong {
  display: block;
  color: var(--text-on-light);
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
}
.admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 1.25rem;
  align-items: start;
}
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.admin-filter {
  min-height: 34px;
  padding: 0.38rem 0.75rem;
  border: 1px solid rgba(8, 29, 60, 0.14);
  border-radius: 999px;
  background: var(--cream);
  color: var(--text-on-light-muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}
.admin-filter.is-active,
.admin-filter:hover {
  border-color: rgba(197, 160, 52, 0.6);
  background: var(--gold-soft);
  color: var(--gold-dark);
}
.admin-orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.admin-order-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(8, 29, 60, 0.1);
  border-radius: var(--radius-md);
  background: var(--cream);
  color: var(--text-on-light);
  text-align: left;
  font-family: var(--font-body);
  cursor: pointer;
}
.admin-order-row:hover,
.admin-order-row.is-selected {
  border-color: rgba(197, 160, 52, 0.58);
  background: rgba(197, 160, 52, 0.1);
}
.admin-order-row strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}
.admin-order-row small {
  display: block;
  color: var(--text-on-light-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}
.admin-order-statuses {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex: 0 0 auto;
}
.admin-order-statuses em {
  font-style: normal;
  white-space: nowrap;
}
.admin-detail-panel {
  min-width: 0;
  border-left: 1px solid rgba(8, 29, 60, 0.08);
  padding-left: 1.25rem;
}
.admin-detail-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
.admin-detail-list div {
  padding: 0.85rem;
  border: 1px solid rgba(8, 29, 60, 0.08);
  border-radius: var(--radius-sm);
  background: var(--cream);
}
.admin-detail-list dt {
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.admin-detail-list dd {
  margin: 0;
  color: var(--text-on-light);
  line-height: 1.45;
}
.admin-order-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}
.admin-order-form .field label {
  color: rgba(8, 29, 60, 0.78);
}
.admin-order-form select,
.admin-order-form textarea {
  width: 100%;
  background: var(--cream);
  border: 1px solid rgba(8, 29, 60, 0.14);
  color: var(--text-on-light);
  border-radius: var(--radius-md);
  padding: 0.82rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.admin-order-form select:focus,
.admin-order-form textarea:focus {
  outline: none;
  border-color: rgba(197, 160, 52, 0.9);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(197, 160, 52, 0.16);
}
.admin-order-form .btn {
  grid-column: 1 / -1;
  justify-self: flex-start;
}
.admin-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.enrollment-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(8, 29, 60, 0.06);
}
.enrollment-card h3 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }
.enrollment-card p { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--text-on-light-muted); }
.enrollment-card .btn { margin-left: auto; }

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .admin-metrics,
  .admin-workspace {
    grid-template-columns: 1fr;
  }
  .dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .orders-panel {
    grid-row: auto;
  }
  .admin-detail-panel {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(8, 29, 60, 0.08);
    padding-top: 1.25rem;
  }
}

@media (max-width: 620px) {
  .dashboard-header-name {
    display: none;
  }
  .dashboard-panel {
    padding: 1.2rem;
  }
  .return-order-btn {
    white-space: normal;
  }
  .dashboard-form,
  .order-status-grid,
  .admin-order-form {
    grid-template-columns: 1fr;
  }
  .dashboard-form .btn,
  .dashboard-hero .btn {
    width: 100%;
  }
  .admin-order-row {
    flex-direction: column;
  }
  .admin-order-statuses {
    align-items: flex-start;
  }
  .admin-order-form .btn,
  .admin-quick-actions .btn {
    width: 100%;
  }
}

/* ── Confirm / Alert Dialog ─────────────────────────────────────────────── */
.confirm-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 420px;
  width: calc(100% - 32px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.confirm-dialog::backdrop {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
}
.confirm-dialog-inner {
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.confirm-dialog-inner p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text, #1a1a1a);
}
.confirm-dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
