/* ============================================================
   XMPANELS — LOGIN & AUTHENTICATION DEDICATED STYLESHEET
   File: public/login.css
   Semua styling & responsivitas halaman /login dipusatkan di sini.
   ============================================================ */

/* ------------------------------------------------------------
   1. AUTH PORTAL GRID & LAYOUT
   ------------------------------------------------------------ */
html, body {
  overflow-x: clip;
}

.dash-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 100px 20px 60px;
  width: 100%;
  box-sizing: border-box;
}

.auth-portal-grid {
  display: grid;
  grid-template-columns: 44% 56%;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--rad);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.auth-branding-col {
  padding: 44px 36px;
  background: linear-gradient(145deg, rgba(255, 106, 0, 0.08) 0%, rgba(10, 10, 13, 0.6) 100%);
  border-right: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  box-sizing: border-box;
}

.auth-brand-head .brand-logo {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}

.auth-brand-head .brand-logo span {
  color: var(--orange);
}

.auth-features-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.auth-feat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 106, 0, 0.12);
  border: 1px solid rgba(255, 106, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 1rem;
  flex-shrink: 0;
}

.auth-feat-text h4 {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0 0 3px;
  color: var(--text);
}

.auth-feat-text p {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.45;
}

.auth-card-pane {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

/* ------------------------------------------------------------
   2. AUTH TABS NAVIGATION
   ------------------------------------------------------------ */
.auth-tabs-nav {
  display: flex;
  gap: 8px;
  background: var(--ink-3);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.auth-tab-btn {
  flex: 1;
  padding: 11px 16px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s var(--ease);
}

.auth-tab-btn:hover {
  color: var(--text);
}

.auth-tab-btn.active {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 20px -6px rgba(255, 106, 0, 0.55);
}

/* ------------------------------------------------------------
   3. VERIFICATION CODE BOX & COPY BUTTON
   ------------------------------------------------------------ */
.verify-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 4px;
  padding: 10px 12px;
  border-radius: var(--rad-sm);
  background: var(--ink-3);
  border: 1px dashed var(--line-2);
  flex-wrap: wrap;
  box-sizing: border-box;
}

.verify-code-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.verify-code-text {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--orange);
  letter-spacing: 0.06em;
  word-break: break-all;
  flex: 1 1 auto;
  min-width: 0;
}

.copy-code-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border-radius: 50px;
  background: var(--orange);
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.copy-code-btn:hover {
  background: var(--orange-2);
  transform: translateY(-1px);
}

.copy-code-btn.copied {
  background: var(--lime);
  color: #0a0a0d;
}

/* ------------------------------------------------------------
   4. OTP INPUT GRID & VERIFICATION ANIMATIONS
   ------------------------------------------------------------ */
.otp-wrap {
  position: relative;
  margin: 20px 0;
}

.otp-wrap .otp-grid {
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.otp-grid input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--text);
  outline: none;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.28s ease,
              box-shadow 0.28s ease,
              color 0.28s ease,
              background 0.28s ease;
  transform: translateY(0);
  box-sizing: border-box;
}

.otp-grid input:focus {
  transform: translateY(-3px) scale(1.06);
  border-color: var(--orange);
  box-shadow: 0 6px 22px rgba(255, 106, 0, 0.32), 0 0 0 3px rgba(255, 106, 0, 0.2);
  background: color-mix(in srgb, var(--orange) 10%, var(--ink-3));
}

.otp-grid input.pop {
  animation: otpPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes otpPop {
  0%   { transform: translateY(0) scale(1); }
  45%  { transform: translateY(-6px) scale(1.16); box-shadow: 0 8px 26px rgba(255, 106, 0, 0.4); }
  100% { transform: translateY(0) scale(1); }
}

.otp-grid input.filled {
  border-color: color-mix(in srgb, var(--orange) 55%, var(--line-2));
}

.otp-grid input:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

/* Success OTP state */
.otp-grid.success input {
  border-color: var(--lime) !important;
  box-shadow: 0 0 0 3px rgba(199, 255, 61, 0.22), 0 0 28px rgba(199, 255, 61, 0.35) !important;
  color: var(--lime) !important;
  background: color-mix(in srgb, var(--lime) 8%, var(--ink-3)) !important;
  animation: otpSuccessPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.otp-grid.success input:nth-child(1) { animation-delay: 0ms; }
.otp-grid.success input:nth-child(2) { animation-delay: 70ms; }
.otp-grid.success input:nth-child(3) { animation-delay: 140ms; }
.otp-grid.success input:nth-child(4) { animation-delay: 210ms; }
.otp-grid.success input:nth-child(5) { animation-delay: 280ms; }
.otp-grid.success input:nth-child(6) { animation-delay: 350ms; }

@keyframes otpSuccessPop {
  0%   { transform: translateY(0) scale(1); }
  40%  { transform: translateY(-10px) scale(1.18); }
  70%  { transform: translateY(0) scale(1); }
  100% { transform: translateY(0) scale(1); }
}

.otp-grid.success-glow input {
  animation: otpGlow 1.6s ease-in-out infinite;
}

@keyframes otpGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(199, 255, 61, 0.18), 0 0 18px rgba(199, 255, 61, 0.25); }
  50%      { box-shadow: 0 0 0 3px rgba(199, 255, 61, 0.35), 0 0 34px rgba(199, 255, 61, 0.5); }
}

/* Error OTP state */
.otp-grid.error input {
  border-color: var(--rose) !important;
  box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.22), 0 0 22px rgba(255, 77, 109, 0.3) !important;
  color: var(--rose) !important;
  background: color-mix(in srgb, var(--rose) 9%, var(--ink-3)) !important;
  animation: otpShakeHard 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes otpShakeHard {
  0%, 100% { transform: translateX(0) rotate(0); }
  10%      { transform: translateX(-10px) rotate(-2deg); }
  20%      { transform: translateX(10px) rotate(2deg); }
  30%      { transform: translateX(-8px) rotate(-1.5deg); }
  40%      { transform: translateX(8px) rotate(1.5deg); }
  50%      { transform: translateX(-6px) rotate(-1deg); }
  60%      { transform: translateX(6px) rotate(1deg); }
  70%      { transform: translateX(-4px) rotate(-0.5deg); }
  80%      { transform: translateX(4px) rotate(0.5deg); }
  90%      { transform: translateX(-2px); }
}

.otp-wrap.flash-error::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--rad);
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgba(255, 77, 109, 0.18), transparent 70%);
  animation: redFlash 0.6s ease-out forwards;
}

@keyframes redFlash {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

.otp-wrap.flash-success::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--rad);
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgba(199, 255, 61, 0.18), transparent 70%);
  animation: greenFlash 0.9s ease-out forwards;
}

@keyframes greenFlash {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* Checkmark badge */
.verify-checkmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 8;
  pointer-events: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--lime);
  color: #0a0a0d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 0 8px rgba(199, 255, 61, 0.2), 0 0 36px rgba(199, 255, 61, 0.6);
  opacity: 0;
}

.verify-checkmark.show {
  animation: checkPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes checkPop {
  0%   { transform: translate(-50%, -50%) scale(0) rotate(-180deg); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; }
}

/* Verification Overlay */
.verify-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  display: none;
}

.verify-overlay.active { display: block; }
.verify-orbit { position: absolute; inset: 0; pointer-events: none; }

.orbit-digit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 50px;
  margin: -25px 0 0 -22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  background: var(--orange);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.55);
  opacity: 0;
  transform: translate(0, 0) scale(0);
  animation: digitGather 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes digitGather {
  0%   { transform: translate(0, 0) scale(0) rotate(-20deg); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(1) rotate(0deg); opacity: 1; }
}

.verify-overlay.merge .orbit-digit {
  animation: digitMerge 0.35s cubic-bezier(0.5, 0, 0.75, 0) forwards;
}

@keyframes digitMerge {
  to { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(0.1); opacity: 0; }
}

/* Status Text */
.verify-status {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  text-align: center;
  min-height: 22px;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.verify-status.show { opacity: 1; }
.verify-status.ok { color: var(--lime); }
.verify-status.err { color: var(--rose); }

.verify-status .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--line-2);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: vspin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes vspin { to { transform: rotate(360deg); } }

.verify-status .status-icon { font-size: 1rem; flex-shrink: 0; }
.verify-status.ok .status-icon { animation: iconBounce 0.5s ease; }
.verify-status.err .status-icon { animation: iconShake 0.5s ease; }

@keyframes iconBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes iconShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ------------------------------------------------------------
   5. COOKIE CONSENT POPUP / MODAL (COMPACT & RESPONSIF)
   ------------------------------------------------------------ */
.cookie-consent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.45);
  z-index: 99998;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  box-sizing: border-box;
}

.cookie-consent-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cookie-consent-card {
  background: var(--ink-2, #121216);
  border: 1px solid var(--line-2, rgba(255, 255, 255, 0.12));
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  padding: 20px 22px;
  text-align: left;
  transform: translateY(20px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  margin: 0 auto;
}

.cookie-consent-overlay.show .cookie-consent-card {
  transform: translateY(0);
}

.cookie-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.cookie-consent-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 106, 0, 0.12);
  border: 1px solid rgba(255, 106, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--orange, #ff6a00);
}

.cookie-header-text h3 {
  font-family: var(--display, 'Space Grotesk'), sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text, #f0f0f0);
}

.cookie-consent-desc {
  font-family: var(--sans, 'Inter'), sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-dim, rgba(255, 255, 255, 0.65));
  margin: 0;
}

.cookie-consent-desc strong {
  color: var(--lime, #b1ea60);
}

.cookie-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.cookie-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  font-family: var(--mono, 'JetBrains Mono'), monospace;
  font-size: 0.74rem;
  color: var(--text-dim, rgba(255, 255, 255, 0.75));
}

.cookie-chip i {
  color: var(--orange, #ff6a00);
  font-size: 0.76rem;
}

.cookie-consent-btns {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--mono, 'JetBrains Mono'), monospace;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: none;
  text-align: center;
}

.cookie-btn:active {
  transform: scale(0.97);
}

.cookie-btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 16px -4px rgba(255, 106, 0, 0.5);
}

.cookie-btn-primary:hover {
  box-shadow: 0 6px 22px -4px rgba(255, 106, 0, 0.7);
}

.cookie-btn-secondary {
  background: transparent;
  border: 1px solid var(--line-2, rgba(255, 255, 255, 0.12));
  color: var(--text-dim, rgba(255, 255, 255, 0.65));
}

.cookie-btn-secondary:hover {
  border-color: var(--text-dim, rgba(255, 255, 255, 0.4));
  color: var(--text, #f0f0f0);
}

body.light-theme .cookie-consent-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

body.light-theme .cookie-header-text h3 { color: #0a0a0d; }
body.light-theme .cookie-chip { background: rgba(0, 0, 0, 0.03); border-color: rgba(0, 0, 0, 0.08); color: rgba(0, 0, 0, 0.7); }
body.light-theme .cookie-consent-desc { color: rgba(0, 0, 0, 0.65); }
body.light-theme .cookie-btn-secondary { border-color: rgba(0, 0, 0, 0.15); color: rgba(0, 0, 0, 0.55); }
body.light-theme .cookie-btn-secondary:hover { color: #0a0a0d; border-color: rgba(0, 0, 0, 0.35); }

/* Light Theme Overrides untuk Login Portal */
:is(html.light-theme, body.light-theme) .auth-portal-grid {
  background: #ffffff;
  border-color: rgba(10, 10, 15, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

:is(html.light-theme, body.light-theme) .auth-branding-col {
  background: linear-gradient(145deg, rgba(255, 106, 0, 0.08) 0%, #f7f5ef 100%);
  border-right-color: rgba(10, 10, 15, 0.1);
}

@media (max-width: 960px) {
  :is(html.light-theme, body.light-theme) .auth-branding-col {
    border-right: none;
    border-bottom: 1px solid rgba(10, 10, 15, 0.1);
  }
}

:is(html.light-theme, body.light-theme) .auth-brand-head .brand-logo {
  color: #0a0a0d;
}

:is(html.light-theme, body.light-theme) .auth-feat-text h4 {
  color: #0a0a0d;
}

:is(html.light-theme, body.light-theme) .auth-feat-text p {
  color: #6b6a60;
}

:is(html.light-theme, body.light-theme) .auth-tabs-nav {
  background: #f0ede4;
  border-color: rgba(10, 10, 15, 0.1);
}

:is(html.light-theme, body.light-theme) .auth-tab-btn {
  color: #6b6a60;
}

:is(html.light-theme, body.light-theme) .auth-tab-btn:hover {
  color: #0a0a0d;
}

:is(html.light-theme, body.light-theme) .auth-tab-btn.active {
  background: var(--orange);
  color: #ffffff;
}

:is(html.light-theme, body.light-theme) .verify-code-box {
  background: #f7f5ef;
  border-color: rgba(10, 10, 15, 0.18);
}

:is(html.light-theme, body.light-theme) .verify-code-label {
  color: #6b6a60;
}

:is(html.light-theme, body.light-theme) .otp-grid input {
  background: #f7f5ef;
  border-color: rgba(10, 10, 15, 0.15);
  color: #0a0a0d;
}

:is(html.light-theme, body.light-theme) .otp-grid input:focus {
  background: #ffffff;
  border-color: var(--orange);
}

:is(html.light-theme, body.light-theme) .input-wrapper {
  background: #f7f5ef;
  border-color: rgba(10, 10, 15, 0.14);
}

:is(html.light-theme, body.light-theme) .input-wrapper input {
  color: #0a0a0d;
}

:is(html.light-theme, body.light-theme) .input-wrapper input::placeholder {
  color: #9b998f;
}

/* ------------------------------------------------------------
   6. MEDIA QUERIES (RESPONSIVITAS LOGIN PORTAL)
   ------------------------------------------------------------ */

/* === Laptops & Tablets (961px to 1024px) === */
@media (min-width: 961px) and (max-width: 1024px) {
  .auth-portal-grid {
    max-width: 92%;
    grid-template-columns: 42% 58%;
  }
  .auth-branding-col {
    padding: 32px 24px;
  }
  .auth-card-pane {
    padding: 32px 26px;
  }
}

/* === Small Tablets & Phablets (≤ 960px): SINGLE COLUMN === */
@media (max-width: 960px) {
  .auth-portal-grid {
    grid-template-columns: 1fr;
    max-width: 580px;
  }
  .auth-branding-col {
    border-right: none;
    border-bottom: 1px solid var(--line-2);
    padding: 28px 24px;
    gap: 20px;
  }
  .auth-card-pane {
    padding: 32px 24px;
  }
}

/* === Mobile Portrait (≤ 640px) === */
@media (max-width: 640px) {
  .dash-wrapper {
    padding: 85px 14px 40px;
  }
  .auth-portal-grid {
    border-radius: var(--rad-sm);
  }
  .verify-code-box {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .verify-code-text {
    text-align: center;
    font-size: 0.88rem;
  }
  .copy-code-btn {
    width: 100%;
    padding: 11px 14px;
  }
  .auth-card-pane {
    padding: 24px 18px;
  }
}

/* === Mobile Phones (≤ 480px) === */
@media (max-width: 480px) {
  .cookie-consent-overlay {
    padding: 12px;
    align-items: flex-end;
  }
  .cookie-consent-card {
    max-width: 100%;
    width: 100%;
    border-radius: 14px;
    padding: 16px 14px;
    margin: 0;
    transform: translateY(20px);
  }
  .cookie-consent-overlay.show .cookie-consent-card {
    transform: translateY(0);
  }
  .cookie-card-header {
    gap: 10px;
    margin-bottom: 10px;
  }
  .cookie-consent-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 10px;
  }
  .cookie-header-text h3 {
    font-size: 0.95rem;
  }
  .cookie-consent-desc {
    font-size: 0.76rem;
    line-height: 1.4;
  }
  .cookie-chips {
    gap: 6px;
    margin-bottom: 12px;
  }
  .cookie-chip {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
  .cookie-consent-btns {
    flex-direction: row;
    gap: 8px;
  }
  .cookie-btn {
    padding: 9px 10px;
    font-size: 0.76rem;
    border-radius: 8px;
  }
}

/* === Small Phones (≤ 420px) === */
@media (max-width: 420px) {
  .otp-wrap .otp-grid {
    gap: 6px;
  }
  .otp-grid input {
    width: clamp(34px, 12vw, 42px) !important;
    height: 48px !important;
    font-size: 1.15rem !important;
  }
  .auth-tab-btn {
    font-size: 0.74rem !important;
    padding: 9px 8px !important;
  }
}

/* === Ultra-Narrow Phones (≤ 360px) === */
@media (max-width: 360px) {
  .dash-wrapper {
    padding: 75px 8px 30px !important;
  }
  .auth-card-pane {
    padding: 20px 12px !important;
  }
  .otp-wrap .otp-grid {
    gap: 4px !important;
  }
  .otp-grid input {
    width: 32px !important;
    height: 44px !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
  }
  .auth-tab-btn {
    font-size: 0.7rem !important;
    padding: 8px 4px !important;
    gap: 4px !important;
  }
  .auth-branding-col {
    padding: 20px 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent-overlay,
  .cookie-consent-card,
  .cookie-btn,
  .btn-google-login,
  .auth-modal-overlay,
  .auth-modal-card {
    transition: none;
    animation: none;
  }
}

/* ============================================================
   GOOGLE SIGN-IN & AUTH LINKING MODAL STYLES
   ============================================================ */
.google-auth-box {
  margin-bottom: 16px;
  position: relative;
  width: 100%;
}

.btn-google-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
  border-radius: var(--rad-sm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 18px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  user-select: none;
}

.btn-google-login:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-google-login:active:not(:disabled) {
  transform: translateY(0);
}

.btn-google-login:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.light-theme .btn-google-login {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #1f1f1f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.light-theme .btn-google-login:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
}

.google-svg-icon {
  flex-shrink: 0;
  display: block;
}

.google-spinner {
  margin-left: 6px;
  color: var(--orange);
}

/* Auth Divider: "── atau dengan WhatsApp OTP ──" */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0 20px;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--line);
}

.auth-divider span {
  padding: 0 14px;
}

/* Auth Modal Overlay & Card (Linking Google to WA) */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: modalFadeIn 0.22s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-modal-card {
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--rad);
  width: 100%;
  max-width: 480px;
  padding: 26px 28px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
  position: relative;
  box-sizing: border-box;
  animation: modalSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.auth-modal-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 106, 0, 0.12);
  border: 1px solid rgba(255, 106, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.auth-modal-title h3 {
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--text);
}

.auth-modal-title p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--sans);
}

.auth-modal-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1;
  padding: 0 6px;
  transition: color 0.15s ease;
}

.auth-modal-close:hover {
  color: var(--rose);
}

.link-user-badge {
  background: var(--ink-3);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: var(--rad-sm);
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  word-break: break-all;
}

.btn-link-action {
  width: 100%;
  background: var(--ink-3);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 11px 14px;
  border-radius: var(--rad-sm);
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-link-action:hover {
  border-color: var(--orange);
  background: var(--ink-4);
  color: var(--orange);
}

@media (max-width: 480px) {
  .auth-modal-card {
    padding: 20px 18px;
  }
  .btn-google-login {
    font-size: 0.86rem;
    padding: 11px 14px;
  }
}
