@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Noto+Sans+Tamil:wght@400;600;700;800&family=Noto+Sans+Devanagari:wght@400;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --tra-orange: #E8520A;
  --tra-orange-dark: #C04008;
  --tra-orange-light: #FF6B2B;
  --tra-navy: #1A3C6E;
  --tra-navy-mid: #2D5A8E;
  --tra-navy-light: #4A7AB3;
  --tra-gold: #F5A623;
  --tra-green: #27AE60;
  --tra-red: #E74C3C;
  --tra-card: #FFFFFF;
  --tra-bg: #F5F6FA;
  --tra-off-white: #EAECF0;
  --tra-border: #D1D5DB;
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
  --safe-left: env(safe-area-inset-left);
  --safe-right: env(safe-area-inset-right);
}

*{box-sizing:border-box;margin:0;padding:0}
html,body,#root{height:100%;min-height:100dvh;width:100%;max-width:100%;padding:0;margin:0;box-sizing:border-box;overflow-x:hidden;overflow-y:hidden;touch-action:manipulation;overscroll-behavior:none;overscroll-behavior-x:none;-webkit-user-select:none;user-select:none;-webkit-text-size-adjust:100%;}
body{font-family:'Baloo 2','Noto Sans Tamil','Poppins',sans-serif;background:radial-gradient(circle at 8% 0%, #f9fbff 0%, #f2f6fb 40%, #eaf0f8 100%);min-height:100dvh;width:100%;max-width:100%;padding:0;margin:0;box-sizing:border-box;overflow-x:hidden;overflow-y:hidden;-webkit-font-smoothing:antialiased;position:relative;inset:auto}
/* Edge-to-edge fullscreen for mobile safe area */
body,#root,.App,.app-shell,.app-shell-content{
  min-height:100dvh;
  min-width:100%;
  width:100%;
  max-width:100%;
  height:100dvh;
  max-height:100dvh;
  padding:0;
  margin:0;
  box-sizing:border-box;
  overflow:hidden;
  overscroll-behavior:none;
  overscroll-behavior-x:none;
}

img,svg,video,canvas{
  max-width:100%;
}

button,
[role="button"],
a,
input,
select,
textarea,
.tra-tbar-item {
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}

button,
[role="button"],
a,
input,
select,
.tra-tbar-item {
  min-height:48px;
}

button,
[role="button"],
a {
  transition:transform .12s ease, filter .12s ease, background-color .18s ease, color .18s ease;
}

button:active,
[role="button"]:active,
a:active {
  transform:scale(0.98);
  filter:brightness(0.97);
}

/* Remove only development mockup wrappers, not real iframes (e.g. Google Sign-In) */
.phone-frame, .mockup, .device-frame {
  display: none !important;
}

::-webkit-scrollbar{width:3px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#ccc;border-radius:4px}
button,input,textarea{font-family:'Poppins',sans-serif;outline:none}
input,textarea{font-family:'Baloo 2','Noto Sans Tamil','Poppins',sans-serif}
input,textarea,select{ -webkit-user-select:text; user-select:text; }

/* ── Global font-size floor so form fields and labels are never too small ── */
input,textarea,select{font-size:max(16px,1rem)!important}
input::placeholder,textarea::placeholder{font-size:max(14px,.875rem)}
label,.tra-field-label,.field-label{font-size:max(13px,.8125rem)!important}
.tra-menu-item span,.tra-list-cell .cell-title{font-size:max(14px,.875rem)!important}

body[data-lang='en']{
  font-family:'Baloo 2','Poppins',sans-serif;
}

body[data-lang='ta']{
  font-family:'Noto Sans Tamil','Baloo 2','Poppins',sans-serif;
  letter-spacing:0.1px;
}

body[data-lang='hi']{
  font-family:'Noto Sans Devanagari','Baloo 2','Poppins',sans-serif;
  letter-spacing:0.05px;
}

body[data-lang='ta'] button,
body[data-lang='ta'] input,
body[data-lang='ta'] textarea,
body[data-lang='ta'] select{
  font-family:'Noto Sans Tamil','Baloo 2','Poppins',sans-serif;
}

body[data-lang='hi'] button,
body[data-lang='hi'] input,
body[data-lang='hi'] textarea,
body[data-lang='hi'] select{
  font-family:'Noto Sans Devanagari','Baloo 2','Poppins',sans-serif;
}

.app-shell{
  isolation:isolate;
  overflow:hidden;
}

.app-shell.entry-shell{
  padding-top:calc(var(--safe-top) + 4px);
  padding-bottom:calc(var(--safe-bottom) + 4px);
  padding-left:calc(var(--safe-left) + 2px);
  padding-right:calc(var(--safe-right) + 2px);
}

.app-shell-content{
  min-height:0;
  overflow:hidden;
}

.app-shell-content > *{
  min-width:0;
  max-width:100%;
}

.tra-shell{
  background: linear-gradient(180deg, #f7f9fd 0%, #eef3fa 100%);
  overflow:hidden;
}

.tra-shell-orb{
  position:absolute;
  border-radius:999px;
  pointer-events:none;
  z-index:0;
  filter: blur(2px);
}

.tra-shell-orb-a{
  width:220px;
  height:220px;
  top:-90px;
  right:-50px;
  background:radial-gradient(circle, rgba(232,82,10,.14) 0%, rgba(232,82,10,0) 72%);
}

.tra-shell-orb-b{
  width:180px;
  height:180px;
  bottom:52px;
  left:-70px;
  background:radial-gradient(circle, rgba(26,60,110,.12) 0%, rgba(26,60,110,0) 72%);
}

.tra-header{
  position:relative;
  overflow:hidden;
}

.tra-header .hdr-logo{
  position:relative;
  z-index:2;
}

.brand-persistent-logo{
  position:fixed;
  top:calc(var(--safe-top) + 12px);
  right:calc(var(--safe-right) + 16px);
  left:auto;
  z-index:25;
  border:1px solid rgba(255,255,255,0.8);
  background:#fff;
  padding:0;
  margin:0;
  cursor:pointer;
  border-radius:50%;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.15),
    0 2px 4px rgba(0,0,0,0.1);
  display:flex;
  align-items:center;
  justify-content:center;
  width:52px;
  height:52px;
  flex-shrink:0;
  overflow:hidden;
  transition:transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
}

.brand-persistent-logo:active{
  transform:scale(0.92);
}

.persistent-logo-image{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transform:scale(1.15);
  border:none;
  background:transparent;
  transition:transform 0.2s ease;
}

.brand-persistent-logo:hover{
  box-shadow:
    0 6px 20px rgba(0,0,0,0.2),
    0 2px 6px rgba(0,0,0,0.1);
}

.app-shell .app-shell-content{
  padding-top:0;
}

.splash-screen{
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  position:relative;
  z-index:1;
  background:linear-gradient(160deg, #0D2857 0%, #1A3F8F 25%, #1E4CA8 50%, #162E72 75%, #0B1F4F 100%);
  padding:clamp(10px,2.2vh,20px) clamp(16px,4.2vw,24px) clamp(16px,3vh,24px);
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
}

.splash-bg{
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  overflow:hidden;
}

.splash-map-overlay{
  position:absolute;
  inset:0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12) 2px, transparent 2px);
  background-size: 32px 32px;
  opacity:0.35;
  mask-image: radial-gradient(ellipse at 50% 30%, black 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 10%, transparent 80%);
}

.splash-map-overlay::after{
  content:'';
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(255,140,60,0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 10%, rgba(14,201,255,0.14) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 55%, rgba(100,140,255,0.1) 0%, transparent 55%);
}

.splash-road-overlay{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:65%;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(14,201,255,0.2) 0%, transparent 65%),
    radial-gradient(ellipse at 20% 80%, rgba(232,82,10,0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 70%, rgba(14,201,255,0.08) 0%, transparent 40%);
}

.splash-main{
  flex:1;
  min-height:0;
  width:100%;
  max-width:380px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:clamp(16px,2.8vh,24px);
  z-index:2;
}

.splash-brand-lockup{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
}

.splash-wordmark{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:clamp(54px,8vh,72px);
  line-height:.92;
  letter-spacing:.2px;
  font-weight:900;
}

.tra-t, .tra-r{
  color:#fff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.tra-a{
  display:inline-block;
  width:0.72em;
  height:0.9em;
  vertical-align:-0.12em;
  margin-left:0.01em;
  filter: drop-shadow(0 4px 12px rgba(232,82,10,0.5));
}

.tra-a-svg{
  width:100%;
  height:100%;
  display:block;
  overflow:visible;
}

.splash-tagline{
  font-size:13px;
  color:rgba(255,255,255,.85);
  letter-spacing:.5px;
  text-align:center;
  line-height:1.4;
  max-width:320px;
  font-weight:500;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.splash-hero-graphics{
  position:relative;
  width:100%;
  height:clamp(110px,16vh,150px);
  display:flex;
  justify-content:center;
  align-items:center;
}

.hero-route-svg{
  width:100%;
  height:100%;
  max-width:320px;
  overflow:visible;
}

.hero-route-path{
  animation: routeFlow 2.4s linear infinite;
}

@keyframes routeFlow {
  to { stroke-dashoffset: -120; }
}

.hero-pin-glow{
  animation: pinPulse 2.2s ease-in-out infinite;
  transform-origin: 40px 18px;
}

@keyframes pinPulse {
  0%, 100% { opacity:.6; transform:scale(1); }
  50% { opacity:1; transform:scale(1.25); }
}

.hero-pin{
  filter: drop-shadow(0 3px 6px rgba(14,201,255,0.5));
}

.hero-truck{
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25));
  animation: floatTruck 4s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes floatTruck {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0px); }
}

.hero-headlight{
  animation: headlightFlicker 1.6s ease-in-out infinite;
}

@keyframes headlightFlicker {
  0%, 100% { opacity:.7; }
  50% { opacity:1; }
}

.splash-feature-grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(10px,2.5vw,16px);
}

.splash-feature-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius:16px;
  padding:14px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.splash-feature-icon{
  color: #FF6B2B;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.02) 100%);
  border-radius:12px;
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.2);
}

.splash-feature-label{
  font-size:10px;
  color:rgba(255,255,255,.9);
  font-weight:700;
  text-align:center;
  letter-spacing:0.2px;
}

.splash-language-card{
  width:100%;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border:1px solid rgba(255,255,255,0.15);
  border-radius:20px;
  padding:14px 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.splash-language-title{
  font-size:11px;
  color:rgba(255,255,255,.8);
  text-align:center;
  margin-bottom:12px;
  font-weight:700;
  letter-spacing:.5px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  text-transform:uppercase;
}

.splash-language-grid{
  display:flex;
  gap:8px;
  background: rgba(0,0,0,0.15);
  border-radius:14px;
  padding:4px;
}

.lang-btn{
  flex:1;
  min-height:56px;
  padding:6px 4px;
  background:transparent;
  border:none;
  border-radius:10px;
  color:rgba(255,255,255,0.6);
  font-size:10px;
  font-weight:600;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position:relative;
}

.lang-btn.is-active{
  background: linear-gradient(135deg, #FF6B2B 0%, #E8520A 100%);
  color:#fff;
  font-weight:800;
  box-shadow: 0 4px 12px rgba(232,82,10,0.4);
}

.lang-flag{
  font-size:16px;
  line-height:1;
}

.lang-label{
  font-size:10px;
  line-height:1.2;
  white-space:nowrap;
  z-index:2;
}

.lang-check{
  font-size:9px;
  position:absolute;
  top:6px;
  right:6px;
  opacity:0;
  transition:opacity 0.2s;
}

.lang-btn.is-active .lang-check{
  opacity:1;
}

.splash-actions{
  width:100%;
  max-width:380px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:12px;
  z-index:2;
}

.splash-caption{
  font-size:12px;
  color:rgba(255,255,255,.7);
  text-align:center;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:2px;
}

.splash-cta-primary{
  width:100%;
  min-height:64px;
  border-radius:16px;
  color:#fff;
  letter-spacing:.5px;
  cursor:pointer;
  border:none;
  background: linear-gradient(135deg, #FF6B2B 0%, #E8520A 100%);
  font-size:17px;
  font-weight:800;
  box-shadow: 0 8px 24px rgba(232,82,10,0.4), inset 0 1px 1px rgba(255,255,255,0.3);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-transform:uppercase;
}

.splash-cta-secondary{
  width:100%;
  min-height:56px;
  border-radius:16px;
  color:#fff;
  letter-spacing:.5px;
  cursor:pointer;
  background:rgba(255,255,255,0.06);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border:1.5px solid rgba(255,255,255,0.25);
  font-size:15px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

@media (max-width: 420px){
  .splash-screen{
    padding:8px 14px 10px;
  }
  .splash-main,
  .splash-actions{
    max-width:100%;
  }
  .splash-feature-icon{
    width:40px;
    height:40px;
  }
  .splash-feature-icon svg {
    width:20px;
    height:20px;
  }
}

@media (max-height: 700px){
  .splash-main{
    justify-content:flex-start;
    gap:10px;
    padding-top:4px;
  }
  .splash-language-card{
    padding:8px 12px;
  }
  .splash-language-title{
    margin-bottom:6px;
  }
  .splash-hero-graphics {
    height:60px;
  }
  .splash-wordmark{
    font-size:clamp(40px,7vh,54px);
  }
  .splash-tagline{
    font-size:12px;
  }
  .splash-feature-item{
    padding:8px 6px;
    gap:4px;
  }
  .splash-feature-icon{
    width:34px;
    height:34px;
  }
  .splash-feature-icon svg{
    width:18px;
    height:18px;
  }
  .splash-feature-label{
    font-size:9px;
  }
  .lang-btn{
    min-height:44px;
  }
  .splash-caption{
    margin-bottom:0;
  }
  .splash-cta-primary{
    min-height:52px;
    font-size:15px;
  }
  .splash-cta-secondary{
    min-height:46px;
    font-size:14px;
  }
  .splash-actions{
    gap:8px;
  }
}

.tra-tbar{
  backdrop-filter:blur(8px);
  min-height:calc(64px + var(--safe-bottom));
  padding-bottom:var(--safe-bottom);
  border-top-left-radius:14px;
  border-top-right-radius:14px;
  overflow:hidden;
}

.tra-tbar-item.is-active{
  color:var(--tra-orange) !important;
  background:rgba(232,82,10,.08) !important;
}

.tra-tbar-item.is-active::before{
  content:'';
  position:absolute;
  top:2px;
  left:50%;
  transform:translateX(-50%);
  width:28px;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--tra-orange-light),var(--tra-orange-dark));
}

.tra-tbar-item{
  min-height:64px;
  min-width:48px;
}

@keyframes fadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes slideUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
@keyframes scaleIn{from{opacity:0;transform:scale(0.84)}to{opacity:1;transform:scale(1)}}
@keyframes bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes shimmer{0%,100%{opacity:1}50%{opacity:0.2}}
@keyframes checkB{0%{transform:scale(0)}55%{transform:scale(1.2)}100%{transform:scale(1)}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.5}}
@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}
@keyframes slideDown{0%{transform:translateY(-20px);opacity:0}100%{transform:translateY(0);opacity:1}}

.fu{animation:fadeUp .3s ease both}
.si{animation:scaleIn .26s ease both}
.bp:active{transform:scale(0.95)!important}
.ch:hover{transform:translateY(-2px);transition:all .18s}

.tra-panel{
  background: linear-gradient(155deg, var(--tra-navy) 0%, var(--tra-navy-mid) 55%, var(--tra-navy-light) 100%);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 14px 35px rgba(26,60,110,.25);
}

.tra-surface{
  background: var(--tra-card);
  border: 1px solid var(--tra-border);
  box-shadow: 0 6px 22px rgba(26,60,110,.08);
}

/* TRA brand logo – top-left of header, no glow */
.hdr-logo{
  height:42px;
  width:42px;
  object-fit:cover;
  object-position:center;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.35);
  background:#fff;
  padding:0;
  cursor:pointer;flex-shrink:0;display:block;
  transform:scale(1.12);
  transform-origin:center;
  box-shadow:0 6px 16px rgba(8,20,40,.35);
  transition:opacity .15s, transform .15s;
}
.hdr-logo:hover{opacity:0.95;transform:translateY(-1px)}

.auth-logo{
  height:56px;
  width:56px;
}

/* Header title – truncate with ellipsis so it never overlaps the logo */
.hdr-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
