/* =========================================================
   Bajrang Vati — base.css
   Design tokens, reset, typography, animations, utilities
   ========================================================= */

:root {
  /* Colors */
  --ink: #0B0807;
  --saffron: #F0761E;
  --saffron-dark: #D9661A;
  --saffron-light: #F58A3A;
  --gold: #D9A441;
  --gold-light: #E8B85A;
  --gold-dark: #B88A2E;
  --sindoor: #B84A16;
  --sindoor-light: #D45A22;
  --surface: #1C1510;
  --surface-light: #241B14;
  --surface-lighter: #2E2418;
  --cream: #F5EFE6;
  --beige: #C9BBA9;
  --muted: #8A7F72;
  --line: rgba(255, 255, 255, 0.05);
  --line-strong: rgba(255, 255, 255, 0.1);

  /* Radius */
  --r-sm: 0.5rem;
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.25rem;
  --r-2xl: 1.75rem;
  --r-full: 999px;

  /* Shadows */
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 24px rgba(240, 118, 30, 0.35);
  --shadow-gold: 0 0 24px rgba(217, 164, 65, 0.3);

  /* Layout */
  --sidebar-w: 256px;
  --max-w: 1280px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: rgba(240, 118, 30, 0.3);
  color: var(--cream);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
}

.t-xs {
  font-size: 11px;
}

.t-sm {
  font-size: 13px;
}

.t-md {
  font-size: 15px;
}

.t-lg {
  font-size: 18px;
}

.t-xl {
  font-size: 22px;
}

.t-2xl {
  font-size: 26px;
}

.t-3xl {
  font-size: 32px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
}

.label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

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

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

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

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

.text-gradient-gold {
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--saffron));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-saffron {
  background: linear-gradient(90deg, var(--saffron), var(--sindoor));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Backgrounds ---------- */
.bg-mesh {
  background-image:
    radial-gradient(at 20% 0%, rgba(240, 118, 30, 0.12) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(217, 164, 65, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(184, 74, 22, 0.08) 0px, transparent 50%);
}

/* ---------- Layout shell ---------- */
.app-shell {
  min-height: 100vh;
  background: var(--ink);
}

.app-main {
  min-height: 100vh;
  padding-bottom: 112px;
}

.app-container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 16px 0;
}

.screen-full {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.screen-narrow {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ---------- Common flex helpers ---------- */
.row {
  display: flex;
  align-items: center;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stack {
  display: flex;
  flex-direction: column;
}

.gap-1 {
  gap: 4px;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

.grow {
  flex: 1;
  min-width: 0;
}

.scroll-x {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll-x::-webkit-scrollbar {
  display: none;
}

.divider {
  height: 1px;
  background: var(--line-strong);
  flex: 1;
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(240, 118, 30, 0.4);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(240, 118, 30, 0);
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes flame {

  0%,
  100% {
    transform: scale(1) rotate(-2deg);
  }

  50% {
    transform: scale(1.12) rotate(2deg);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out;
}

.animate-scaleIn {
  animation: scaleIn 0.35s ease-out;
}

.animate-slideUp {
  animation: slideUp 0.5s ease-out both;
}

.animate-shimmer {
  animation: shimmer 2s linear infinite;
}

.animate-pulseGlow {
  animation: pulseGlow 2s ease-in-out infinite;
}

.animate-spinSlow {
  animation: spinSlow 8s linear infinite;
}

.animate-flame {
  display: inline-block;
  animation: flame 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .app-container {
    padding: 16px 24px 0;
  }
}

@media (min-width: 1024px) {
  .app-shell.has-nav .app-main {
    /* padding-left: var(--sidebar-w); */
    padding-bottom: 40px;
  }

  .app-container {
    padding: 32px 32px 0;
  }
}

/* =====================================================
   BAJRANG VATI OTP LOGIN — MOBILE NUMBER FIELD
   ===================================================== */

#sbol-login-box {
    width: 100%;
    max-width: 360px;
}

/* Mobile-number field outer wrapper */
#sbol-step-phone > p:first-child > span {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    min-height: 62px;
    margin-top: 10px !important;

    background: #14110f !important;
    border: 1px solid rgba(255, 122, 0, 0.45) !important;
    border-radius: 12px !important;

    overflow: hidden !important;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

/* Focus effect */
#sbol-step-phone > p:first-child > span:focus-within {
    background: #18130f !important;
    border-color: #f47b0b !important;
    box-shadow:
        0 0 0 3px rgba(244, 123, 11, 0.12),
        0 12px 30px rgba(0, 0, 0, 0.22) !important;
}

/* +91 country-code section */
#sbol-step-phone > p:first-child > span > span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 68px;
    min-width: 68px;
    padding: 0 14px !important;

    background: #21170f !important;
    border: 0 !important;
    border-right: 1px solid rgba(255, 122, 0, 0.35) !important;

    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.2px;
}

/* Mobile-number input */
#sbol-phone {
    flex: 1 1 auto;
    width: 100% !important;
    min-width: 0 !important;
    height: 60px !important;

    padding: 0 16px !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 60px !important;
}

/* Placeholder */
#sbol-phone::placeholder {
    color: #9b9691 !important;
    opacity: 1 !important;
}

/* Chrome autofill fix */
#sbol-phone:-webkit-autofill,
#sbol-phone:-webkit-autofill:hover,
#sbol-phone:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 1000px #14110f inset !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* Mobile Number label */
#sbol-step-phone label[for="sbol-phone"] {
    display: block;
    margin-bottom: 0;

    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

/* Send OTP button */
#sbol-send-otp {
    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 100% !important;
    min-height: 54px;
    margin-top: 22px;

    background: linear-gradient(
        135deg,
        #ff8717 0%,
        #e86700 100%
    ) !important;

    border: 0 !important;
    border-radius: 12px !important;

    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    cursor: pointer;
    box-shadow: 0 12px 28px rgba(239, 106, 0, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

#sbol-send-otp:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 32px rgba(239, 106, 0, 0.3);
}

#sbol-send-otp:active {
    transform: translateY(0);
}

/* Disabled state while sending OTP */
#sbol-send-otp:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

/* Error or Firebase message */
#sbol-message {
    margin: 14px 0 0;

    color: #ff8b73;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

/* =====================================================
   MOBILE RESPONSIVE
   ===================================================== */

@media screen and (max-width: 480px) {

    #sbol-login-box {
        max-width: 100% !important;
    }

    #sbol-step-phone > p:first-child > span {
        min-height: 56px;
        border-radius: 10px !important;
    }

    #sbol-step-phone > p:first-child > span > span {
        flex-basis: 62px;
        min-width: 62px;
        padding: 0 10px !important;
        font-size: 14px !important;
    }

    #sbol-phone {
        height: 54px !important;
        padding: 0 13px !important;
        font-size: 14px !important;
        line-height: 54px !important;
    }

    #sbol-send-otp {
        min-height: 52px;
        border-radius: 10px !important;
    }
}