/* frontend/css/styles.css — Estilos Taku Go — Tema Rojo/Negro/Dorado */

/* ═══ VARIABLES DE MARCA ═══ */
:root {
  --brand-red: #C41E24;
  --brand-red-dark: #9B171C;
  --brand-red-light: #E8454B;
  --brand-black: #1A1A1A;
  --brand-dark: #2D2D2D;
  --brand-gold: #D4A017;
  --brand-gold-light: #E8C547;
  --brand-cream: #F5E6C8;
  --brand-cream-light: #FDF6EA;
  --sidebar-bg: #1A1A1A;
  --sidebar-hover: #2D2D2D;
  --mobile-nav-height: 68px;
  --brand-display: 'Saira Condensed', 'Segoe UI', sans-serif;
}

.takugo-title {
  font-family: var(--brand-display);
  font-weight: 800;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  line-height: 1.05;
}

.takugo-title-accent {
  background: linear-gradient(150deg, #fff6e5 0%, #f2c654 46%, #d83b3f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

/* Aplica la forma tipografica de marca a todos los titulos visibles del flujo auth + landing */
#auth-container h1,
#auth-container h2,
#auth-container h3,
#auth-container h4,
#auth-container h5,
#auth-container h6,
#app-container h1,
#app-container h2,
#app-container h3,
#app-container h4,
#app-container h5,
#app-container h6 {
  font-family: var(--brand-display);
  letter-spacing: 0.015em;
  font-weight: 700;
}

#auth-container .auth-hero-title,
#auth-container .landing-title,
#auth-container .auth-conv-title,
#auth-container .landing-block h3,
#auth-container .landing-card h4,
#auth-container .auth-greeting-title {
  text-transform: uppercase;
  font-weight: 800;
}

/* ═══ AUTH / LOGIN — Premium ═══ */
.auth-bg {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a0a0a 40%, #0f0f0f 100%);
  overflow-x: hidden;
  overflow-y: visible;
}

.taku-launch-bar {
  display: none;
}

.taku-launch-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.62rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #2f2418;
  text-align: center;
  position: relative;
  border-radius: 18px;
  border: 2px dashed rgba(68, 119, 62, 0.52);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.55), rgba(255,255,255,0) 48%),
    linear-gradient(90deg, #fff7e9 0%, #ffefcf 52%, #ffe9bf 100%);
  box-shadow:
    0 10px 24px rgba(28, 18, 10, 0.2),
    inset 0 0 0 1px rgba(255,255,255,0.5);
  overflow: hidden;
}

.launch-ribbon {
  position: absolute;
  top: 10px;
  left: -42px;
  transform: rotate(-26deg);
  padding: 0.22rem 2.2rem;
  font-size: 0.54rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fffdf2;
  background:
    repeating-linear-gradient(
      135deg,
      #bc2b2f,
      #bc2b2f 8px,
      #a32328 8px,
      #a32328 16px
    );
  border-top: 1px solid rgba(255, 231, 172, 0.5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 5px 10px rgba(0,0,0,0.25);
  z-index: 3;
}

.launch-ribbon::before,
.launch-ribbon::after {
  content: "";
  position: absolute;
  top: 100%;
  width: 0;
  height: 0;
  border-top: 6px solid #7d191d;
}

.launch-ribbon::before {
  left: 0;
  border-right: 7px solid transparent;
}

.launch-ribbon::after {
  right: 0;
  border-left: 7px solid transparent;
}

.taku-launch-inner::before,
.taku-launch-inner::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #f5e7cb;
  border: 1px solid rgba(68, 119, 62, 0.32);
  transform: translateY(-50%);
}

.taku-launch-inner::before {
  left: -7px;
}

.taku-launch-inner::after {
  right: -7px;
}

.launch-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #5a9b4e, #3f7e37);
  border: 1px solid rgba(42, 86, 33, 0.55);
  color: #f7ffed;
  box-shadow: 0 4px 10px rgba(63, 126, 55, 0.3);
  margin-left: 1.6rem;
}

.taku-launch-inner strong {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #3b2a1c;
}

.launch-cta {
  border: 1px solid rgba(126, 33, 33, 0.45);
  border-radius: 999px;
  background: linear-gradient(135deg, #d14b4b, #a72d2d);
  color: #fffdf6;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.38rem 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 5px 12px rgba(120, 28, 28, 0.25);
}

.launch-cta:hover {
  background: linear-gradient(135deg, #de5757, #b13535);
  transform: translateY(-1px) scale(1.02);
}
.auth-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.kitchen-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.kitchen-token {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(212,160,23,0.28);
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.22), rgba(255,255,255,0.04));
  color: rgba(255,240,203,0.95);
  box-shadow: 0 14px 28px rgba(0,0,0,0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  animation: kitchenDrift 7.5s ease-in-out infinite;
}

.kitchen-token i {
  font-size: 1.25rem;
  text-shadow: 0 4px 10px rgba(0,0,0,0.28);
}

.kitchen-token-pan {
  left: 6%;
  top: 20%;
  animation-delay: -0.7s;
}

.kitchen-token-fire {
  right: 10%;
  top: 25%;
  color: #ffb27d;
  animation-delay: -2.2s;
}

.kitchen-token-chef {
  left: 12%;
  bottom: 18%;
  animation-delay: -1.4s;
}

.kitchen-token-plating {
  right: 12%;
  bottom: 14%;
  animation-delay: -3.1s;
}

@keyframes kitchenDrift {
  0%, 100% {
    transform: translate3d(var(--px, 0px), calc(var(--py, 0px) + 0px), 0) scale(1);
  }
  50% {
    transform: translate3d(var(--px, 0px), calc(var(--py, 0px) - 10px), 0) scale(1.04);
  }
}
.auth-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: authFloat 20s ease-in-out infinite;
}
.auth-shape-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--brand-red) 0%, transparent 70%);
  top: -200px; left: -100px;
  animation-delay: 0s;
}
.auth-shape-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--brand-gold) 0%, transparent 70%);
  bottom: -150px; right: -100px;
  animation-delay: -7s;
  animation-duration: 25s;
}
.auth-shape-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(196,30,36,0.5) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
  animation-duration: 18s;
}
@keyframes authFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Layout split */
.auth-layout {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

/* ─── Hero Panel (left) ─── */
.auth-hero {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.35rem 2.2rem 1.6rem;
  color: #fff;
  position: relative;
}
.auth-hero::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(196,30,36,0.3), rgba(212,160,23,0.2), transparent);
}
.auth-hero-content {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  transform: translate3d(var(--hero-shift-x, 0px), var(--hero-shift-y, 0px), 0);
  transition: transform 220ms ease;
}
.auth-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(212,160,23,0.4);
  background: rgba(212,160,23,0.16);
  color: #f3d890;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 12px;
  margin-bottom: 12px;
}
.auth-hero-logo-wrap,
.auth-logo-mobile-wrap {
  display: none;
}

.auth-hero-title-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem;
  isolation: isolate;
  margin-bottom: 0.25rem;
}

.auth-hero-title-logo::before {
  content: "";
  position: absolute;
  inset: 10% 4% 8%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(212,160,23,0.42) 0%, rgba(212,160,23,0.1) 40%, transparent 75%);
  filter: blur(16px);
  z-index: 0;
  animation: takuGlowPulse 3.2s ease-in-out infinite;
}

.auth-hero-title-logo::after {
  content: "";
  position: absolute;
  inset: 18% 8% 14%;
  border-radius: 999px;
  background: conic-gradient(from 0deg, rgba(212,160,23,0.2), rgba(255,255,255,0.02), rgba(212,160,23,0.2));
  filter: blur(14px);
  z-index: 1;
  opacity: 0.6;
  animation: takuAuraDrift 8s linear infinite;
}

.auth-title-logo-img {
  width: min(380px, 94%);
  height: auto;
  display: inline-block;
  position: relative;
  z-index: 2;
  margin-bottom: -8px;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.32));
  transform-origin: center center;
  animation: takuLogoFloat 5.6s ease-in-out infinite, takuLogoBreath 3.6s ease-in-out infinite;
  transition: transform 240ms ease, filter 240ms ease;
}

.auth-title-logo-img:hover {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 16px 28px rgba(0,0,0,0.34)) drop-shadow(0 0 18px rgba(212,160,23,0.25));
}

.auth-logo-mobile-clean {
  animation: takuLogoFloat 6.2s ease-in-out infinite;
}
.auth-hero-title {
  font-family: var(--brand-display);
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, var(--brand-cream) 50%, var(--brand-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.auth-hero-headline {
  font-size: 1.06rem;
  line-height: 1.2;
  font-weight: 800;
  color: #ffe9b5;
  margin-bottom: 0.28rem;
  text-shadow: 0 8px 16px rgba(0,0,0,0.25);
}
.auth-hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 0.34rem;
}
.auth-hero-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid rgba(212,160,23,0.34);
  background: rgba(212,160,23,0.14);
  color: #f4dc9f;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.2rem 0.42rem;
}
.auth-hero-benefits i {
  color: #ffe2a4;
}

.auth-hero-subtitle {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.35;
  margin-bottom: 0.35rem;
}
.auth-hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.84);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.auth-hero-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.auth-hero-btn {
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
  cursor: pointer;
}
.auth-hero-btn-primary {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: #fff;
  box-shadow: 0 10px 20px rgba(196,30,36,0.3);
}
.auth-hero-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(196,30,36,0.34);
}
.auth-hero-btn-soft {
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}
.auth-hero-btn-soft:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.auth-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 0.5rem;
}
.auth-hero-metric {
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  padding: 0.36rem 0.46rem;
  transition: all 0.25s ease;
}
.auth-hero-metric b {
  display: block;
  font-size: 0.7rem;
  color: #fff;
  margin-bottom: 1px;
}
.auth-hero-metric span {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.2;
}
.auth-hero-metric:hover {
  transform: translateY(-1px);
  border-color: rgba(212,160,23,0.3);
  background: rgba(255,255,255,0.08);
}

/* Features list */
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.62rem;
  padding: 0.48rem 0.58rem;
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.auth-feature:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(196,30,36,0.2);
  transform: translateX(4px);
}
.auth-feature-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  color: #fff;
}
.auth-feature strong {
  display: block;
  font-size: 0.76rem;
  color: #fff;
  margin-bottom: 1px;
}
.auth-feature small {
  color: rgba(255,255,255,0.5);
  font-size: 0.66rem;
  line-height: 1.2;
}
.auth-hero-footer {
  margin-top: auto;
  padding-top: 2rem;
  color: rgba(255,255,255,0.3);
}

/* ─── Form Panel (right) ─── */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.3rem 2rem 1.4rem;
}
.auth-form-wrapper {
  width: 100%;
  max-width: 430px;
  position: relative;
  border-radius: 20px;
  padding: 0.95rem 0.95rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(165deg, rgba(33,12,16,0.72), rgba(18,9,12,0.78));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 40px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.08);
}

.auth-form-wrapper::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02) 40%, rgba(196,30,36,0.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
}

.conv-launch-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  padding: 0.18rem 0.35rem 0.18rem 0.18rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.conv-launch-ribbon {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.48rem;
  border-radius: 999px;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff6df;
  background: linear-gradient(135deg, #c23538, #931f25);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.conv-launch-copy {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,255,255,0.86);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.auth-form-panel.auth-focus-pulse .auth-form-wrapper {
  animation: authFormFocusPulse 860ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes authFormFocusPulse {
  0% {
    transform: translateY(0);
    filter: drop-shadow(0 0 0 rgba(212,160,23,0));
  }
  35% {
    transform: translateY(-4px);
    filter: drop-shadow(0 0 18px rgba(212,160,23,0.28));
  }
  100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 0 rgba(212,160,23,0));
  }
}
.auth-logo-mobile {
  width: auto;
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.28));
}

.auth-conv-strip {
  margin-bottom: 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0.75rem;
  box-shadow: 0 14px 24px rgba(0,0,0,0.2);
}
.auth-conv-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(212,160,23,0.36);
  background: rgba(212,160,23,0.16);
  color: #f3d890;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  padding: 5px 9px;
  margin-bottom: 7px;
}
.auth-conv-title {
  margin: 0;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.3;
  font-weight: 800;
  font-family: var(--brand-display);
  letter-spacing: 0.015em;
  text-transform: uppercase;
}
.auth-conv-sub {
  margin: 0.35rem 0 0;
  color: rgba(255,255,255,0.72);
  font-size: 0.83rem;
  line-height: 1.45;
}
.auth-conv-metrics {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.auth-conv-metrics span {
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.64rem;
  color: rgba(255,255,255,0.66);
  line-height: 1.25;
}
.auth-conv-metrics strong {
  color: #fff;
  font-size: 0.66rem;
}
.auth-conv-actions {
  margin-top: 0.55rem;
  display: flex;
  gap: 7px;
}
.auth-conv-btn {
  flex: 1;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.42rem 0.55rem;
  color: #fff;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.22s ease;
}
.auth-conv-btn-primary {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  box-shadow: 0 8px 16px rgba(196,30,36,0.28);
}
.auth-conv-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 18px rgba(196,30,36,0.32);
}
.auth-conv-btn-soft {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
}
.auth-conv-btn-soft:hover {
  background: rgba(255,255,255,0.14);
}

/* Greeting */
.auth-greeting {
  margin-bottom: 0.95rem;
  transition: opacity 0.3s ease;
}
.auth-greeting-title {
  font-size: 1.58rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--brand-display);
  letter-spacing: 0.015em;
  text-transform: uppercase;
  margin-bottom: 0.22rem;
  text-shadow: 0 6px 14px rgba(0,0,0,0.24);
}
.auth-greeting-sub {
  color: rgba(255,255,255,0.58);
  font-size: 0.86rem;
  margin: 0;
}

/* ─── Toggle tabs ─── */
.auth-toggle {
  display: flex;
  position: relative;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.auth-toggle-btn {
  flex: 1;
  padding: 0.58rem 0.5rem;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}
.auth-toggle-btn.active {
  color: #fff;
}
.auth-toggle-btn:hover:not(.active) {
  color: rgba(255,255,255,0.7);
}
.auth-toggle-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: linear-gradient(135deg, #df2640, #b2122e 55%, #8f0f25);
  border-radius: 10px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 18px rgba(196,30,36,0.4);
}
.auth-toggle-slider.right {
  transform: translateX(100%);
}

/* ─── Input fields ─── */
.auth-field {
  position: relative;
  margin-bottom: 1.1rem;
}
.auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.25);
  font-size: 1rem;
  z-index: 2;
  pointer-events: none;
  transition: color 0.3s ease;
}
.auth-input {
  width: 100%;
  padding: 0.85rem 0.85rem 0.85rem 2.75rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.auth-input::placeholder { color: transparent; }
.auth-input:focus {
  background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.07));
  border-color: rgba(226,74,88,0.9);
  box-shadow: 0 0 0 3px rgba(196,30,36,0.2), 0 8px 20px rgba(0,0,0,0.14);
}
.auth-input:focus ~ .auth-input-icon,
.auth-input:not(:placeholder-shown) ~ .auth-input-icon {
  color: var(--brand-red);
}
.auth-label {
  position: absolute;
  left: 2.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.35);
  font-size: 0.9rem;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-input:focus ~ .auth-label,
.auth-input:not(:placeholder-shown) ~ .auth-label {
  top: -8px;
  left: 12px;
  font-size: 0.72rem;
  color: var(--brand-red-light);
  background: linear-gradient(135deg, #0f0f0f, #1a0a0a);
  padding: 0 6px;
  border-radius: 4px;
}
.auth-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 4px;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.auth-eye:hover { color: var(--brand-red-light); }

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  transition: background-color 5000s ease-in-out 0s;
  box-shadow: inset 0 0 0 1000px rgba(255,255,255,0.08), 0 0 0 3px rgba(196,30,36,0.12);
  border: 1px solid rgba(255,255,255,0.14);
}

/* ─── Submit button ─── */
.auth-submit {
  width: 100%;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #e12245 0%, #bd1432 55%, #970d27 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  box-shadow: 0 12px 24px rgba(175, 18, 48, 0.35);
}
.auth-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.auth-submit:hover::before { transform: translateX(100%); }
.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(196,30,36,0.48);
}
.auth-submit:active { transform: translateY(0); }
.auth-submit.auth-submit-next {
  background: linear-gradient(135deg, var(--brand-gold), #B8890F);
}
.auth-submit.auth-submit-next:hover {
  box-shadow: 0 8px 25px rgba(212,160,23,0.4);
}
.auth-submit.auth-submit-back {
  width: auto;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.85rem 1.2rem;
}
.auth-submit.auth-submit-back:hover {
  background: rgba(255,255,255,0.15);
  box-shadow: none;
}
.auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* ─── Steps / Registration ─── */
.auth-step {
  animation: authFadeIn 0.4s ease forwards;
}
.auth-step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.auth-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-step-label {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  font-weight: 500;
}
.auth-progress {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.auth-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: all 0.3s ease;
}
.auth-dot.active {
  background: var(--brand-red);
  box-shadow: 0 0 8px rgba(196,30,36,0.5);
  width: 24px;
  border-radius: 4px;
}

/* Password strength */
.auth-password-strength { margin-bottom: 1rem; }
.auth-strength-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}
.auth-strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
  width: 0%;
}
.auth-strength-text {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

/* Alert */
.auth-alert {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  animation: authShake 0.4s ease;
}
.auth-alert.alert-danger {
  background: rgba(196,30,36,0.15);
  border: 1px solid rgba(196,30,36,0.3);
  color: #ff8a8a;
}
.auth-alert.alert-success {
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  color: #86efac;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ─── Forgot password link ─── */
.auth-forgot-link {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.3s ease;
}
.auth-forgot-link:hover {
  color: var(--brand-gold);
  text-decoration: underline;
}

.has-auth-motion .auth-hero-badge,
.has-auth-motion .auth-title-logo-img,
.has-auth-motion .auth-hero-title,
.has-auth-motion .auth-hero-subtitle,
.has-auth-motion .auth-hero-proof,
.has-auth-motion .auth-hero-actions,
.has-auth-motion .auth-hero-metrics,
.has-auth-motion .auth-conv-strip,
.has-auth-motion .auth-feature {
  opacity: 0;
  transform: translateY(12px);
  animation: authHeroReveal 560ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.has-auth-motion .auth-conv-strip { animation-delay: 70ms; }
.has-auth-motion .auth-hero-badge { animation-delay: 50ms; }
.has-auth-motion .auth-title-logo-img {
  animation: authHeroReveal 560ms cubic-bezier(0.2, 0.7, 0.2, 1) 110ms forwards,
             takuLogoFloat 5.6s ease-in-out 820ms infinite,
             takuLogoBreath 3.6s ease-in-out 900ms infinite;
}
.has-auth-motion .auth-hero-title { animation-delay: 170ms; }
.has-auth-motion .auth-hero-headline { animation-delay: 215ms; }
.has-auth-motion .auth-hero-benefits { animation-delay: 245ms; }
.has-auth-motion .auth-hero-subtitle { animation-delay: 280ms; }
.has-auth-motion .auth-hero-proof { animation-delay: 320ms; }
.has-auth-motion .auth-hero-actions { animation-delay: 360ms; }
.has-auth-motion .auth-hero-metrics { animation-delay: 410ms; }
.has-auth-motion .auth-feature:nth-child(1) { animation-delay: 460ms; }
.has-auth-motion .auth-feature:nth-child(2) { animation-delay: 500ms; }
.has-auth-motion .auth-feature:nth-child(3) { animation-delay: 540ms; }

@keyframes authHeroReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes takuLogoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes takuLogoBreath {
  0%, 100% { filter: drop-shadow(0 10px 22px rgba(0,0,0,0.32)); }
  50% { filter: drop-shadow(0 16px 30px rgba(212,160,23,0.34)); }
}

@keyframes takuGlowPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes takuAuraDrift {
  0% { transform: rotate(0deg) scale(0.96); opacity: 0.45; }
  50% { transform: rotate(180deg) scale(1.04); opacity: 0.7; }
  100% { transform: rotate(360deg) scale(0.96); opacity: 0.45; }
}

/* ─── Full Landing Blocks ─── */
.taku-landing {
  position: relative;
  z-index: 1;
  padding: 1rem 1.2rem 3.2rem;
}

.taku-parallax-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.taku-parallax-layer {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.46;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
}

.taku-parallax-layer-a {
  width: 460px;
  height: 460px;
  left: -120px;
  top: 60px;
  background: radial-gradient(circle, rgba(196,30,36,0.28), transparent 68%);
}

.taku-parallax-layer-b {
  width: 420px;
  height: 420px;
  right: -130px;
  top: 220px;
  background: radial-gradient(circle, rgba(212,160,23,0.24), transparent 68%);
}

.taku-parallax-layer-c {
  width: 360px;
  height: 360px;
  left: 42%;
  bottom: 120px;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 70%);
}

.taku-landing-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.landing-block {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 1rem;
  color: #fff;
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.landing-block h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
  color: var(--brand-cream-light);
  font-family: var(--brand-display);
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.landing-block p,
.landing-block li,
.landing-block small {
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(212,160,23,0.35);
  background: rgba(212,160,23,0.16);
  color: #f3d890;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  margin-bottom: 0.45rem;
}

.landing-title {
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  margin: 0 0 0.45rem;
  color: #fff;
  line-height: 1.28;
  font-family: var(--brand-display);
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.landing-subtitle {
  max-width: 800px;
  margin-bottom: 0.7rem;
}

.landing-cta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.landing-cta {
  border: none;
  border-radius: 10px;
  padding: 0.58rem 0.92rem;
  font-size: 0.84rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
}

.landing-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(196,30,36,0.28);
}

.landing-cta-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
}

.landing-trust {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.62);
}

.landing-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.45rem;
}

.landing-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.landing-card {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  padding: 0.75rem;
}

.landing-card i {
  font-size: 1rem;
  color: var(--brand-gold-light);
  display: inline-flex;
  margin-bottom: 0.35rem;
  font-family: var(--brand-display);
  letter-spacing: 0.012em;
  text-transform: uppercase;
}

.landing-card h4 {
  font-size: 0.88rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.landing-card p { font-size: 0.8rem; }

.landing-pricing-star {
  border-color: rgba(212,160,23,0.3);
  background: linear-gradient(135deg, rgba(212,160,23,0.14), rgba(196,30,36,0.08));
}

.landing-emphasis {
  color: #fff;
  font-weight: 700;
}

.landing-foot {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.landing-steps div {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  padding: 0.75rem;
}

.landing-steps span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.landing-steps strong {
  display: block;
  color: #fff;
  margin-bottom: 0.2rem;
  font-size: 0.87rem;
}

.landing-steps p { font-size: 0.8rem; margin: 0; }

.landing-testimonial {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  padding: 0.75rem;
}

.landing-testimonial p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 0.4rem;
}

.landing-testimonial small {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

.landing-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.landing-compare-grid article {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  padding: 0.75rem;
}

.landing-compare-grid h4 { font-size: 0.9rem; color: #fff; margin-bottom: 0.4rem; }

.landing-compare-grid ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.3rem;
}

.compare-tag {
  margin-top: 0.5rem;
  display: inline-flex;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  color: #fff;
  background: rgba(196,30,36,0.7);
}

.landing-price-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 0.7rem;
}

.landing-price-columns article {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  padding: 0.75rem;
}

.price-big {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.landing-table-wrap {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  padding: 0.7rem;
}

.landing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.landing-table th,
.landing-table td {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0.45rem;
  color: rgba(255,255,255,0.82);
  text-align: left;
}

.landing-table th { color: #fff; font-size: 0.78rem; }

.landing-faq {
  display: grid;
  gap: 8px;
}

.landing-faq details {
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  padding: 0.55rem 0.65rem;
}

.landing-faq summary {
  cursor: pointer;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

.landing-faq p {
  margin-top: 0.4rem;
  font-size: 0.8rem;
}

.landing-final-cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(196,30,36,0.2), rgba(212,160,23,0.14));
  border-color: rgba(212,160,23,0.3);
}

@media (min-width: 992px) {
  .auth-layout {
    width: min(1280px, 96vw);
    margin: 0 auto;
    min-height: 100vh;
    max-height: 100vh;
    gap: 1.2rem;
    padding: 0.45rem 0 0.35rem;
    align-items: center;
  }

  .auth-hero {
    flex: 0 0 52%;
    padding: 0.55rem 1rem 0.6rem;
  }

  .auth-hero-headline {
    font-size: 0.92rem;
    margin-bottom: 0.24rem;
  }

  .auth-hero-benefits {
    margin-bottom: 0.28rem;
    gap: 4px;
  }

  .auth-hero-benefits span {
    font-size: 0.58rem;
    padding: 0.16rem 0.38rem;
  }

  .auth-hero-subtitle {
    font-size: 0.8rem;
    line-height: 1.28;
    margin-bottom: 0.28rem;
  }

  .auth-hero-proof {
    font-size: 0.68rem;
    margin-bottom: 0.42rem;
  }

  .auth-hero-actions {
    margin-bottom: 0.5rem;
    gap: 7px;
  }

  .auth-hero-btn {
    padding: 0.42rem 0.72rem;
    font-size: 0.66rem;
  }

  .auth-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 0.35rem;
  }

  .auth-hero-metric {
    padding: 0.28rem 0.34rem;
    border-radius: 8px;
  }

  .auth-hero-metric b {
    font-size: 0.62rem;
  }

  .auth-hero-metric span {
    font-size: 0.56rem;
  }

  .auth-features {
    gap: 0.35rem;
  }

  .auth-feature {
    padding: 0.38rem 0.5rem;
    gap: 0.5rem;
  }

  .auth-feature strong {
    font-size: 0.72rem;
  }

  .auth-feature small {
    font-size: 0.62rem;
    line-height: 1.18;
  }

  .auth-feature:nth-child(3) {
    display: none;
  }

  .auth-form-panel {
    flex: 0 0 48%;
    align-items: center;
    padding: 0.25rem 0.7rem;
  }

  .auth-form-wrapper {
    max-width: 410px;
    padding: 0.78rem 0.82rem 0.76rem;
  }

  .auth-conv-strip {
    padding: 0.62rem;
    margin-bottom: 0.52rem;
  }

  .auth-greeting {
    margin-bottom: 0.5rem;
  }

  .auth-greeting-title {
    font-size: 1.08rem;
    margin-bottom: 0.1rem;
  }

  .auth-greeting-sub {
    font-size: 0.76rem;
  }

  .auth-toggle {
    margin-bottom: 0.5rem;
  }

  .auth-field {
    margin-bottom: 0.52rem;
  }

  .auth-input {
    padding: 0.62rem 0.72rem 0.62rem 2.3rem;
    font-size: 0.8rem;
  }

  .auth-label {
    font-size: 0.78rem;
    left: 2.3rem;
  }

  .auth-submit {
    padding: 0.64rem;
    font-size: 0.82rem;
  }
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
  .auth-layout { justify-content: center; min-height: auto; }
  .auth-form-panel { padding: 1.5rem; }
  .auth-greeting-title { font-size: 1.5rem; }
  .taku-landing { padding-top: 0.6rem; }

  .kitchen-token {
    width: 44px;
    height: 44px;
  }

  .kitchen-token i {
    font-size: 1.05rem;
  }

  .taku-launch-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.9rem;
  }
}
@media (max-width: 576px) {
  .auth-form-panel { padding: 1rem; }
  .auth-form-wrapper { max-width: 100%; }
  .conv-launch-note {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.28rem;
    border-radius: 12px;
    padding: 0.35rem;
  }
  .conv-launch-copy {
    white-space: normal;
    font-size: 0.64rem;
    text-align: center;
  }
  .taku-launch-inner strong { font-size: 0.76rem; }
  .launch-cta { width: 100%; border-radius: 10px; }
  .kitchen-token {
    opacity: 0.58;
  }
  .auth-logo-mobile {
    max-width: 190px;
  }
  .auth-title-logo-img { width: min(250px, 90%); }
  .auth-conv-strip { padding: 0.8rem; margin-bottom: 1rem; }
  .auth-conv-title { font-size: 0.95rem; }
  .auth-conv-sub { font-size: 0.78rem; }
  .auth-conv-metrics { grid-template-columns: 1fr; }
  .auth-conv-actions { flex-direction: column; }
  .auth-toggle-btn { font-size: 0.78rem; padding: 0.55rem 0.25rem; }
  .auth-toggle-btn i { display: none; }
  .auth-input { padding: 0.75rem 0.75rem 0.75rem 2.5rem; font-size: 0.9rem; }
  .auth-submit { padding: 0.75rem; font-size: 0.9rem; }

  .landing-grid-3,
  .landing-steps,
  .landing-compare-grid,
  .landing-price-columns {
    grid-template-columns: 1fr;
  }

  .landing-cta-row {
    flex-direction: column;
  }

  .landing-cta {
    width: 100%;
  }
}

@media (min-width: 1200px) {
  .auth-hero-content {
    max-width: 560px;
  }

  .auth-title-logo-img {
    width: min(450px, 98%);
  }

  .auth-hero {
    padding-top: 1.15rem;
  }

  .auth-form-panel {
    align-items: center;
    padding: 0.3rem 1.45rem;
  }

  .auth-form-wrapper {
    max-width: 470px;
  }

  .auth-conv-strip {
    padding: 0.82rem;
    border-radius: 12px;
  }

  .auth-conv-title {
    font-size: 1.03rem;
  }

  .auth-greeting-title {
    font-size: 1.7rem;
  }

  .auth-toggle-btn {
    font-size: 0.84rem;
    padding: 0.54rem 0.34rem;
  }

  .auth-input {
    font-size: 0.9rem;
    padding: 0.74rem 0.82rem 0.74rem 2.55rem;
  }

  .auth-submit {
    font-size: 0.92rem;
    padding: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-shape,
  .kitchen-token,
  .taku-parallax-layer,
  .auth-form-panel.auth-focus-pulse .auth-form-wrapper,
  .auth-hero-content,
  .auth-hero-title-logo::before,
  .auth-hero-title-logo::after,
  .auth-title-logo-img,
  .auth-logo-mobile-clean,
  .launch-cta,
  .auth-feature,
  .auth-hero-btn,
  .auth-hero-metric,
  .auth-conv-strip,
  .auth-conv-btn,
  .has-auth-motion .auth-hero-badge,
  .has-auth-motion .auth-title-logo-img,
  .has-auth-motion .auth-hero-title,
  .has-auth-motion .auth-hero-subtitle,
  .has-auth-motion .auth-hero-proof,
  .has-auth-motion .auth-hero-actions,
  .has-auth-motion .auth-hero-metrics,
  .has-auth-motion .auth-conv-strip,
  .has-auth-motion .auth-feature {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ═══ QR SCANNER ═══ */
.qr-scanner-box {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.qr-scanner-box video {
  border-radius: 12px;
}
#qr-reader {
  border: none !important;
}
#qr-reader__scan_region {
  min-height: 250px;
}
#qr-reader__dashboard {
  display: none !important;
}
#qr-reader__scan_region img {
  display: none !important;
}
@media (max-width: 576px) {
  .qr-scanner-box {
    max-width: 100%;
  }
  #qr-reader__scan_region {
    min-height: 220px;
  }
}

/* ═══ BOTONES DE MARCA ═══ */
.btn-brand {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
  font-weight: 600;
}

.btn-brand:hover, .btn-brand:focus {
  background-color: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  color: #fff;
}

.btn-brand-gold {
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--brand-black);
  font-weight: 600;
}

.btn-brand-gold:hover, .btn-brand-gold:focus {
  background-color: #B8890F;
  border-color: #B8890F;
  color: #fff;
}

/* ═══ NAVBAR ═══ */
.navbar-brand-bg {
  background: linear-gradient(90deg, var(--brand-black) 0%, var(--brand-dark) 100%) !important;
  border-bottom: 3px solid var(--brand-red);
}

.navbar-brand-bg .navbar-brand {
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar-brand-bg .navbar-brand img {
  border-radius: 4px;
}

.badge-rol {
  background-color: var(--brand-gold) !important;
  color: var(--brand-black) !important;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
}

.mobile-sidebar-fab,
.mobile-sidebar-overlay,
.sidebar-mobile-head {
  display: none;
}

/* ═══ SIDEBAR ═══ */
.sidebar {
  padding-top: 0.5rem;
  background-color: var(--sidebar-bg) !important;
  border-right: 1px solid rgba(196, 30, 36, 0.2);
}

.sidebar .sidebar-tools {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(26, 26, 26, 0.9) 100%);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  padding-top: 0.25rem;
}

.sidebar .sidebar-tools-row {
  display: flex;
  gap: 0.35rem;
}

.sidebar .sidebar-icon-btn {
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.sidebar .sidebar-icon-btn:hover,
.sidebar .sidebar-icon-btn.active {
  color: #fff;
  border-color: rgba(212, 160, 23, 0.55);
  background: rgba(212, 160, 23, 0.2);
}

.sidebar .sidebar-search-wrap {
  position: relative;
}

.sidebar .sidebar-search-icon {
  position: absolute;
  top: 50%;
  left: 0.6rem;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.sidebar .sidebar-search {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding-left: 1.8rem;
}

.sidebar .sidebar-search::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.sidebar .sidebar-search:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(212, 160, 23, 0.65);
  box-shadow: 0 0 0 0.2rem rgba(212, 160, 23, 0.18);
  color: #fff;
}

.sidebar .sidebar-help-text {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  margin-top: 0.35rem;
  line-height: 1.25;
}

.sidebar .sidebar-block-title {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0.1rem 0 0.35rem;
}

.sidebar .sidebar-suggest-chips {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.sidebar .sidebar-chip {
  border: 1px solid rgba(212, 160, 23, 0.45);
  color: #f7e8b3;
  background: rgba(212, 160, 23, 0.14);
  font-size: 0.72rem;
  line-height: 1;
}

.sidebar .sidebar-chip:hover {
  color: #fff;
  background: rgba(212, 160, 23, 0.24);
}

.sidebar .sidebar-section-label {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0;
}

.sidebar .sidebar-section {
  margin-top: 0.2rem;
}

.sidebar .sidebar-section-toggle {
  width: calc(100% - 1rem);
  margin: 0 0.5rem;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.56);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.5rem 0.2rem;
}

.sidebar .sidebar-section-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
}

.sidebar .sidebar-section-toggle i {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.sidebar .sidebar-section-list {
  overflow: hidden;
  transition: max-height 0.2s ease, opacity 0.2s ease;
  max-height: 800px;
  opacity: 1;
}

.sidebar .sidebar-section.collapsed .sidebar-section-list {
  max-height: 0;
  opacity: 0;
}

.sidebar .sidebar-section.collapsed .sidebar-section-toggle i {
  transform: rotate(-90deg);
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.7);
  padding: 0.45rem 1rem;
  border-radius: 0.375rem;
  margin: 0.1rem 0.5rem;
  font-size: 0.9rem;
  transition: all 0.15s ease;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.sidebar .nav-link:hover {
  color: #fff;
  background-color: var(--sidebar-hover);
  border-left: 3px solid var(--brand-gold);
  padding-left: calc(1rem - 3px);
}

.sidebar .nav-link.active {
  color: #fff;
  background-color: var(--brand-red);
  font-weight: 600;
}

.sidebar .nav-link i {
  width: 1.2em;
  text-align: center;
  margin-top: 0.1rem;
}

.sidebar .menu-link-text {
  display: block;
  font-weight: 600;
  line-height: 1.1;
}

.sidebar .menu-link-hint {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.69rem;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 0.12rem;
}

.sidebar .btn-fav-toggle {
  display: none;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  color: rgba(255, 255, 255, 0.6);
  border: none;
  background: transparent;
}

.sidebar .nav-link:hover .btn-fav-toggle,
.sidebar .nav-link.active .btn-fav-toggle,
.sidebar .sidebar-fav-item .btn-fav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar .btn-fav-toggle:hover {
  color: var(--brand-gold);
}

.sidebar .btn-fav-toggle i.bi-star-fill {
  color: var(--brand-gold);
}

.sidebar .sidebar-favorites {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.sidebar .sidebar-favorites-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sidebar .sidebar-fav-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
}

.sidebar .sidebar-fav-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.sidebar .nav-link-compact {
  padding: 0.35rem 0.75rem;
  margin: 0;
}

.sidebar .nav-link-compact .fav-label {
  font-weight: 600;
  font-size: 0.85rem;
}

.sidebar .nav-link-compact .bi {
  margin-top: 0;
}

.sidebar.compact .sidebar-help-text,
.sidebar.compact .sidebar-suggestions,
.sidebar.compact .menu-link-hint {
  display: none;
}

.sidebar.compact .sidebar-favorites {
  border-bottom: none;
  padding-bottom: 0.25rem;
}

.sidebar.compact .sidebar-favorites-list {
  gap: 0.1rem;
}

.sidebar.compact .nav-link-compact {
  padding: 0.3rem 0.5rem;
}

.sidebar.compact .fav-label {
  display: none;
}

.sidebar.compact .sidebar-tools {
  margin-bottom: 0.35rem !important;
}

.sidebar.compact .sidebar-search {
  height: 1.9rem;
}

.sidebar.compact .sidebar-section-toggle {
  padding-top: 0.2rem;
  padding-bottom: 0;
}

.sidebar.compact .nav-link {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

/* ═══ DASHBOARD CARDS ═══ */
.stat-card {
  border: none;
  border-radius: 0.75rem;
  transition: transform 0.15s ease;
  border-left: 4px solid var(--brand-red);
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-card .stat-icon {
  font-size: 2rem;
  opacity: 0.8;
  color: var(--brand-red);
}

/* ═══ MESAS GRID ═══ */
.mesa-card {
  cursor: pointer;
  transition: all 0.2s ease;
  border-width: 2px;
  min-height: 120px;
}

.mesa-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.mesa-card.mesa-libre {
  border-color: #198754;
  background-color: #d1e7dd;
}

.mesa-card.mesa-ocupada {
  border-color: var(--brand-red);
  background-color: #fde2e2;
}

.mesa-card.mesa-reservada {
  border-color: var(--brand-gold);
  background-color: var(--brand-cream);
}

/* ═══ COCINA CARDS ═══ */
.orden-cocina-card {
  border-left: 4px solid var(--brand-gold);
  transition: all 0.2s ease;
}

.orden-cocina-card.pendiente {
  border-left-color: var(--brand-red);
}

.orden-cocina-card.en_preparacion {
  border-left-color: #fd7e14;
}

/* ═══ NOTIFICACIONES VISUALES COCINA ═══ */
.orden-nueva-highlight {
  animation: ordenNuevaFlash 1s ease-in-out 3;
  box-shadow: 0 0 16px rgba(196, 30, 36, 0.5);
}

@keyframes ordenNuevaFlash {
  0%, 100% { box-shadow: 0 0 8px rgba(196, 30, 36, 0.3); }
  50% { box-shadow: 0 0 24px rgba(196, 30, 36, 0.7); transform: scale(1.01); }
}

.pulse-alert {
  animation: pulseAlert 1.5s ease-in-out infinite;
}

@keyframes pulseAlert {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

.cocina-counter-badge {
  font-size: 0.85rem;
  padding: 0.4em 0.7em;
}

.ordenes-listas-badge {
  font-size: 0.85rem;
  padding: 0.4em 0.7em;
}

.orden-fila-lista-nueva {
  animation: filaListaFlash 1s ease-in-out 3;
}

@keyframes filaListaFlash {
  0%, 100% { background-color: rgba(25, 135, 84, 0.15); }
  50% { background-color: rgba(25, 135, 84, 0.35); }
}

#global-alert {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  min-width: 320px;
  max-width: 480px;
}

#global-alert .alert {
  animation: alertSlideIn 0.3s ease-out;
}

@keyframes alertSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ═══ TABLAS ═══ */
.table-hover tbody tr {
  cursor: default;
}

.table thead.table-light th {
  background-color: var(--brand-cream-light);
  color: var(--brand-black);
  font-weight: 600;
  border-bottom: 2px solid var(--brand-red);
}

/* ═══ CARDS GENERALES ═══ */
.card {
  border-color: rgba(0,0,0,0.08);
}

.card-header {
  background-color: var(--brand-cream-light);
  border-bottom: 1px solid rgba(196, 30, 36, 0.15);
}

/* ═══ ALERT GLOBAL ═══ */
#global-alert {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
  max-width: 450px;
}

/* ═══ LOADING ═══ */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

.loading-spinner .spinner-border {
  color: var(--brand-red) !important;
}

/* ═══ PAGE HEADER ═══ */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-header h4 {
  margin: 0;
  font-family: var(--brand-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--brand-black);
}

/* ═══ BADGES ESTADOS ═══ */
.badge-pendiente { background-color: var(--brand-red) !important; }
.badge-en_preparacion { background-color: #fd7e14 !important; }
.badge-listo { background-color: #20c997 !important; }
.badge-servido { background-color: var(--brand-gold) !important; color: var(--brand-black) !important; }
.badge-facturado { background-color: #6c757d !important; }

/* ═══ MENU ITEMS ═══ */
.menu-item-row:hover { background-color: rgba(0,0,0,.02); }
.menu-item-cfg { transition: all 0.2s ease; }
.menu-item-cfg:hover { border-color: var(--brand-red) !important; }

/* ═══ MAIN SCROLL ═══ */
main {
  overflow-y: auto;
  max-height: calc(100vh - 56px);
  background-color: #f8f9fa;
}

/* ═══ MODALS ═══ */
.modal-header {
  background-color: var(--brand-black);
  color: #fff;
  border-bottom: 3px solid var(--brand-red);
}

.modal-header .btn-close {
  filter: invert(1);
}

/* ═══ FORM FOCUS ═══ */
.form-control:focus, .form-select:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 0.2rem rgba(196, 30, 36, 0.2);
}

/* ═══ OVERRIDE BOOTSTRAP PRIMARY ═══ */
.btn-primary {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
}

.btn-outline-primary {
  color: var(--brand-red);
  border-color: var(--brand-red);
}

.btn-outline-primary:hover {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

.text-primary {
  color: var(--brand-red) !important;
}

.bg-primary {
  background-color: var(--brand-red) !important;
}

/* ═══ SCROLLBAR PERSONALIZADO ═══ */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: var(--brand-black);
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--brand-red-dark);
  border-radius: 3px;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 767px) {
  body {
    overflow-x: hidden;
    background: #f4f6f8;
  }

  body.mobile-sidebar-open {
    overflow: hidden;
  }

  .navbar-brand-bg {
    border-bottom-width: 2px;
  }

  .navbar-brand-bg .container-fluid {
    padding: 0.7rem 0.85rem;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .navbar-brand-bg .navbar-brand {
    font-size: 1rem;
    letter-spacing: 0.2px;
    gap: 0.55rem;
    flex: 1 1 auto;
    min-width: 0;
  }

  .navbar-brand-bg .navbar-brand img {
    height: 44px;
    width: 44px;
    object-fit: cover;
    margin-right: 0 !important;
  }

  .navbar-brand-bg .d-flex.align-items-center {
    gap: 0.5rem;
    margin-left: auto;
    align-items: center !important;
  }

  .badge-rol {
    font-size: 0.68rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.75rem;
    border-radius: 0.8rem;
    font-size: 0.92rem;
  }

  .sidebar {
    position: fixed;
    top: calc(var(--mobile-nav-height) + 0.55rem + env(safe-area-inset-top, 0px));
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    left: 0.75rem;
    width: clamp(272px, 84vw, 340px);
    max-width: calc(100vw - 1.5rem);
    min-height: 0 !important;
    z-index: 1045;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-right: none;
    border-bottom: none;
    border-radius: 1.35rem;
    padding: 0.8rem 0.4rem 1rem;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
    transform: translateX(calc(-100% - 1.5rem));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.2s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar .position-sticky {
    position: static !important;
    top: auto !important;
  }

  .sidebar-mobile-head {
    display: block;
    margin: 0 0.35rem 0.7rem !important;
    padding: 0.2rem 0.4rem 0;
  }

  .sidebar-mobile-kicker {
    color: rgba(212, 160, 23, 0.82);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.35rem;
  }

  .sidebar-mobile-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .sidebar-mobile-title {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.1;
  }

  .sidebar-mobile-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    line-height: 1.35;
    margin-top: 0.25rem;
  }

  .sidebar-mobile-close {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .sidebar .sidebar-tools,
  .sidebar .sidebar-suggestions,
  .sidebar .sidebar-favorites {
    margin: 0 0.35rem 0.65rem !important;
    padding: 0.75rem !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
  }

  .sidebar .sidebar-tools {
    position: static;
    top: auto;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .sidebar .sidebar-tools-row {
    gap: 0.5rem;
  }

  .sidebar .sidebar-icon-btn {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.75rem;
  }

  .sidebar .sidebar-search {
    min-height: 2.7rem;
    padding-left: 2rem;
    border-radius: 0.85rem;
    font-size: 1rem;
  }

  .sidebar .sidebar-search-icon {
    left: 0.75rem;
    font-size: 0.95rem;
  }

  .sidebar .sidebar-help-text,
  .sidebar .menu-link-hint {
    display: none;
  }

  .sidebar .sidebar-block-title,
  .sidebar .sidebar-section-label {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
  }

  .sidebar .sidebar-suggest-chips,
  .sidebar .sidebar-favorites-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .sidebar .sidebar-suggest-chips::-webkit-scrollbar,
  .sidebar .sidebar-favorites-list::-webkit-scrollbar {
    display: none;
  }

  .sidebar .sidebar-favorites-list {
    display: flex;
    flex-direction: row;
    gap: 0.45rem;
  }

  .sidebar .sidebar-fav-item {
    flex: 0 0 auto;
    padding-right: 0.1rem;
    background: rgba(255, 255, 255, 0.03);
  }

  .sidebar .nav-link-compact {
    padding: 0.5rem 0.8rem;
    border-radius: 0.8rem;
  }

  .sidebar .sidebar-chip {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 0.42rem 0.82rem;
    font-size: 0.8rem;
  }

  .sidebar .sidebar-section {
    margin-top: 0.4rem;
  }

  .sidebar .sidebar-section-toggle {
    width: calc(100% - 0.5rem);
    margin: 0 0.25rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.82);
  }

  .sidebar .sidebar-section-list {
    padding-top: 0.3rem;
  }

  .sidebar .nav-link {
    margin: 0.2rem 0.25rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.9rem;
    align-items: center;
    font-size: 0.96rem;
  }

  .mobile-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1040;
    border: 0;
    padding: 0;
    background: rgba(8, 10, 16, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  .mobile-sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-sidebar-fab {
    display: inline-flex;
    position: fixed;
    right: 0.9rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 1046;
    align-items: center;
    gap: 0.55rem;
    border: 0;
    border-radius: 999px;
    padding: 0.76rem 0.95rem;
    min-height: 3.35rem;
    max-width: calc(100vw - 1.8rem);
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
    color: #fff;
    box-shadow: 0 16px 32px rgba(155, 23, 28, 0.34);
    transition: transform 0.22s ease, opacity 0.18s ease, box-shadow 0.22s ease;
  }

  .mobile-sidebar-fab i {
    font-size: 1rem;
  }

  .mobile-sidebar-fab-label {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .mobile-sidebar-fab.is-active {
    background: linear-gradient(135deg, #20242c 0%, #13161c 100%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.92);
  }

  #main-content {
    padding: 1rem 0.85rem calc(5.9rem + env(safe-area-inset-bottom, 0px)) !important;
    scroll-padding-bottom: calc(6.2rem + env(safe-area-inset-bottom, 0px));
  }

  #page-content {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  main {
    max-height: none;
    overflow-y: visible;
  }

  .page-header {
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.35rem;
  }

  .page-header h4 {
    font-size: 1.8rem;
    line-height: 1.1;
  }

  .page-header > .text-muted,
  .page-header span.text-muted,
  .page-header small.text-muted {
    width: 100%;
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .row.g-3.mb-4 {
    --bs-gutter-y: 0.85rem;
  }

  .stat-card {
    border-left-width: 0;
    border-radius: 1.15rem;
    overflow: hidden;
  }

  .stat-card .card-body {
    padding: 1.15rem 1.1rem;
    min-height: 124px;
  }

  .stat-card .stat-icon {
    font-size: 1.7rem;
    opacity: 0.38;
  }

  .stat-card .small {
    font-size: 0.95rem;
  }

  .stat-card .fs-4 {
    font-size: 2rem !important;
    line-height: 1;
  }

  .table-responsive,
  .card {
    border-radius: 1rem;
  }

  #global-alert {
    top: calc(0.75rem + env(safe-area-inset-top, 0px));
    right: 0.75rem;
    left: 0.75rem;
    min-width: 0;
    max-width: none;
  }
  
  .auth-logo-mobile {
    max-width: 180px;
  }
}

@media (max-width: 420px) {
  .mobile-sidebar-fab {
    right: 0.7rem;
    left: auto;
    padding: 0.72rem 0.85rem;
    min-height: 3.15rem;
  }

  .mobile-sidebar-fab-label {
    font-size: 0.82rem;
  }

  .sidebar {
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
    max-width: none;
    border-radius: 1.15rem;
  }

  .sidebar-mobile-title {
    font-size: 1rem;
  }

  .sidebar .sidebar-tools,
  .sidebar .sidebar-suggestions,
  .sidebar .sidebar-favorites {
    margin-left: 0.2rem !important;
    margin-right: 0.2rem !important;
    padding: 0.68rem !important;
  }

  .sidebar .sidebar-section-toggle,
  .sidebar .nav-link {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (max-width: 767px) and (max-height: 760px) {
  .sidebar {
    top: calc(var(--mobile-nav-height) + 0.35rem + env(safe-area-inset-top, 0px));
    bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px));
    border-radius: 1.1rem;
    padding-top: 0.65rem;
  }

  .sidebar-mobile-head {
    margin-bottom: 0.45rem !important;
  }

  .sidebar-mobile-subtitle,
  .sidebar .sidebar-help-text {
    display: none;
  }

  .sidebar .sidebar-tools,
  .sidebar .sidebar-suggestions,
  .sidebar .sidebar-favorites {
    margin-bottom: 0.45rem !important;
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
  }

  .sidebar .sidebar-section-toggle {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .sidebar .nav-link {
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  .sidebar {
    width: min(56vw, 360px);
  }

  .mobile-sidebar-fab {
    bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
  }
}

/* ═══ DELIVERY — KANBAN BOARD ═══ */
.delivery-kanban {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  min-height: 400px;
}

.delivery-kanban-col {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  background: #f0f1f3;
  overflow: hidden;
}

.kanban-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.kanban-nuevos .kanban-header   { background: var(--brand-red); }
.kanban-asignados .kanban-header { background: #0dcaf0; }
.kanban-recogidos .kanban-header { background: var(--brand-red-light); }
.kanban-encamino .kanban-header  { background: #fd7e14; }
.kanban-entregados .kanban-header { background: #198754; }

.kanban-body {
  flex: 1;
  padding: 0.5rem;
  overflow-y: auto;
  max-height: 60vh;
}

.kanban-empty {
  text-align: center;
  color: #adb5bd;
  font-size: 0.85rem;
  padding: 2rem 0.5rem;
}

/* ═══ DELIVERY CARD ═══ */
.delivery-card {
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.65rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: box-shadow 0.15s ease, transform 0.1s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.delivery-card:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

.kanban-nuevos .delivery-card    { border-left-color: var(--brand-red); }
.kanban-asignados .delivery-card { border-left-color: #0dcaf0; }
.kanban-recogidos .delivery-card { border-left-color: var(--brand-red-light); }
.kanban-encamino .delivery-card  { border-left-color: #fd7e14; }
.kanban-entregados .delivery-card { border-left-color: #198754; }

.dc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.dc-order {
  font-weight: 700;
  color: var(--brand-black);
  font-size: 0.9rem;
}

.dc-time {
  font-size: 0.75rem;
  color: #6c757d;
}

.dc-cliente {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--brand-black);
  margin-bottom: 0.2rem;
}

.dc-direccion {
  font-size: 0.78rem;
  color: #6c757d;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.dc-items {
  font-size: 0.75rem;
  color: #868e96;
  margin-bottom: 0.4rem;
}

.dc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.dc-rider {
  font-size: 0.72rem;
  color: var(--brand-gold);
  font-weight: 600;
}

/* ═══ DELIVERY STATS ═══ */
.delivery-stat-total  { border-left-color: var(--brand-red) !important; }
.delivery-stat-money  { border-left-color: var(--brand-gold) !important; }
.delivery-stat-time   { border-left-color: #0dcaf0 !important; }
.delivery-stat-riders { border-left-color: #198754 !important; }

.delivery-stat-money .stat-icon  { color: var(--brand-gold) !important; }
.delivery-stat-time .stat-icon   { color: #0dcaf0 !important; }
.delivery-stat-riders .stat-icon { color: #198754 !important; }

/* ═══ DELIVERY FORM ═══ */
.delivery-section-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-black);
  margin-bottom: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--brand-red);
}

.delivery-totals {
  background: var(--brand-cream-light);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
}

/* ═══ DELIVERY TIMELINE ═══ */
.delivery-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1rem 0.5rem;
  position: relative;
}

.delivery-timeline::before {
  content: '';
  position: absolute;
  top: 1.55rem;
  left: 10%;
  right: 10%;
  height: 3px;
  background: #dee2e6;
  z-index: 0;
}

.timeline-step {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dee2e6;
  margin: 0 auto 0.4rem;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #dee2e6;
  transition: all 0.2s;
}

.timeline-step.active .timeline-dot {
  background: var(--brand-red);
  box-shadow: 0 0 0 2px var(--brand-red);
}

.timeline-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #adb5bd;
}

.timeline-step.active .timeline-label {
  color: var(--brand-black);
}

.timeline-date {
  font-size: 0.7rem;
  color: #6c757d;
}

/* ═══ RIDER SELECTION ═══ */
.delivery-riders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.rider-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s;
}

.rider-option:hover {
  border-color: var(--brand-gold);
  background: var(--brand-cream-light);
}

.rider-option.selected {
  border-color: var(--brand-red);
  background: rgba(196, 30, 36, 0.05);
}

.rider-avatar {
  font-size: 2rem;
  color: var(--brand-gold);
}

.rider-option.selected .rider-avatar {
  color: var(--brand-red);
}

.bg-orange { background-color: #fd7e14 !important; }

/* ═══ DELIVERY RESPONSIVE ═══ */
@media (max-width: 991px) {
  .delivery-kanban {
    flex-direction: column;
  }
  .delivery-kanban-col {
    max-width: 100%;
    min-width: 100%;
  }
  .kanban-body {
    max-height: 250px;
  }
}

/* ═══ BRANDING / PERSONALIZACIÓN ═══ */
.branding-upload-box {
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.branding-upload-box:hover, .branding-upload-box.drag-over {
  border-color: var(--brand-red);
  background-color: rgba(196, 30, 36, 0.03);
}

.branding-upload-sm {
  min-height: 120px;
  padding: 1rem;
}

.branding-logo-preview {
  max-width: 200px;
  max-height: 120px;
  object-fit: contain;
  border-radius: 8px;
}

.branding-favicon-preview {
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
}

.branding-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.branding-color-input {
  width: 48px;
  height: 38px;
  padding: 2px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.branding-hex-input {
  font-family: monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  max-width: 100px;
}

/* Preview Box */
.branding-preview-box {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dee2e6;
  font-size: 0.8rem;
}

.preview-navbar {
  background: linear-gradient(90deg, #1A1A1A 0%, #2D2D2D 100%);
  border-bottom: 2px solid var(--brand-red);
}

.preview-sidebar {
  width: 110px;
  min-width: 110px;
  background-color: var(--sidebar-bg);
}

.preview-menu-item {
  padding: 0.3rem 0.5rem;
  margin: 0.15rem 0;
  border-radius: 4px;
  color: rgba(255,255,255,0.6);
  font-size: 0.65rem;
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-menu-item.active {
  background-color: var(--brand-red);
  color: #fff;
}

.preview-stat-icon {
  font-size: 1.2rem;
  color: var(--brand-red);
}

@media (max-width: 576px) {
  .branding-color-input {
    width: 40px;
    height: 34px;
  }
  .branding-hex-input {
    max-width: 80px;
    font-size: 0.75rem;
  }
}

/* ─── Mi Restaurante Module ─── */
.mr-tabs .nav-link {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  color: #666;
  border: none;
  border-bottom: 2px solid transparent;
}
.mr-tabs .nav-link.active {
  color: var(--brand-red, #C41E24);
  border-bottom-color: var(--brand-red, #C41E24);
  font-weight: 600;
}
.mr-tabs .nav-link:hover:not(.active) {
  color: #333;
  border-bottom-color: #ddd;
}
.horario-row .form-control-sm {
  max-width: 140px;
}
@media (max-width: 576px) {
  .mr-tabs .nav-link span { display: none; }
  .mr-tabs .nav-link i { font-size: 1.1rem; }
}
