/* RS Training — premium Rakta Sanjeevani brand layer: Caladea headings, Inter text, navy + gold, app-style phone layout. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700 900; font-display: swap; src: url(../fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Caladea"; font-weight: 400; font-display: swap; src: url(../fonts/caladea-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Caladea"; font-weight: 700; font-display: swap; src: url(../fonts/caladea-latin-700-normal.woff2) format("woff2"); }

:root {
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", Arial, sans-serif;
  --serif: "Caladea", Cambria, Georgia, "Times New Roman", serif;
  --bg: #f7f3ea; --line: #e6e1d4; --line-strong: #d3ccb9; --chip: #efeadf;
  --gold-grad: linear-gradient(135deg, #e3c27a 0%, #C29A45 48%, #9c7630 100%);
  --navy-grad: linear-gradient(160deg, #0f2a63 0%, #0B1F4B 45%, #07153a 100%);
  --shadow: 0 1px 2px rgba(11, 31, 75, .05), 0 8px 24px -12px rgba(11, 31, 75, .18);
  --tab-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c1330; --paper: #141c3d; --line: #263056; --line-strong: #36406a; --chip: #1d264a; --shadow: 0 1px 2px rgba(0, 0, 0, .35); }
}
body { font-family: var(--font); font-feature-settings: "cv11", "ss01"; letter-spacing: -.003em; }
h1, h2, .card-title, .brand strong, .top-brand strong, .login-project strong, .login-card h2, .t-app h1, .t-hello, .t-h, .splash strong {
  font-family: var(--serif); letter-spacing: 0; }
h1 { font-size: 30px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 700; }
.stat-val, .nav-count, .tab-n { font-variant-numeric: tabular-nums; }
.eyebrow { color: #a37b2c; letter-spacing: .14em; }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--gold-light); } }

/* ---------- splash ---------- */
.splash { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: radial-gradient(ellipse at 50% 30%, rgba(194, 154, 69, .22), transparent 60%), var(--navy-grad); color: #fff; }
.splash-ring { padding: 5px; border-radius: 50%; background: var(--gold-grad); box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .5); margin-bottom: 14px;
  animation: pulse 1.6s ease-in-out infinite; }
.splash-ring img { display: block; border-radius: 50%; }
.splash strong { font-size: 30px; }
.splash small { color: var(--gold-light); letter-spacing: .3em; font-size: 11px; font-weight: 600; }
.splash-bar { display: block; width: 120px; height: 3px; border-radius: 3px; margin-top: 18px; background: rgba(255, 255, 255, .14); overflow: hidden; position: relative; }
.splash-bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--gold-grad); border-radius: 3px; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes pulse { 50% { transform: scale(1.04); } }

/* ---------- staff sign-in ---------- */
.login { grid-template-columns: 1.15fr 1fr; background: var(--bg); }
.login-hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 85% 0%, rgba(194, 154, 69, .28), transparent 55%), var(--navy-grad);
  padding: 56px 64px 40px 72px; gap: 14px; justify-content: flex-start; }
.login-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--gold-grad); }
.login-hero::after { content: ""; position: absolute; right: -160px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%;
  border: 1px solid rgba(240, 207, 122, .18); box-shadow: 0 0 0 40px rgba(240, 207, 122, .04), 0 0 0 90px rgba(240, 207, 122, .03); pointer-events: none; }
.login-mark { display: flex; align-items: center; gap: 18px; }
.login-emblem { flex: none; padding: 5px; border-radius: 50%; background: var(--gold-grad); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .55); }
.login-emblem img { display: block; border-radius: 50%; width: 132px; height: 132px; }
.login-word strong { display: block; font-family: var(--serif); font-size: 26px; letter-spacing: .08em; }
.login-word small { color: var(--gold-light); letter-spacing: .16em; font-size: 12px; text-transform: uppercase; }
.login-project { margin-top: 34px; }
.login-project small { letter-spacing: .3em; font-size: 11.5px; }
.login-project strong { font-size: 64px; font-weight: 700; margin: 6px 0 4px; }
.login-project span { color: rgba(255, 255, 255, .78); font-size: 17px; }
.login-hero .tagline { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold-light); margin-top: 18px; }
.login-points { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; max-width: 460px; }
.login-points li { position: relative; padding-left: 30px; color: rgba(255, 255, 255, .88); font-size: 15px; }
.login-points li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-grad); }
.login-points li::after { content: ""; position: absolute; left: 6px; top: 6px; width: 5px; height: 8px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.login-foot { color: rgba(255, 255, 255, .5); }
.login-side { background: radial-gradient(ellipse at 100% 100%, rgba(194, 154, 69, .12), transparent 60%), var(--bg); align-content: center; gap: 0; }
.login-tabs { width: min(400px, 100%); background: var(--chip); padding: 4px; border-radius: 14px; gap: 4px; margin: 0 auto 16px; }
.login-tabs .btn { border-radius: 10px; min-height: 42px; }
.login-tabs .btn.ghost { background: transparent; border-color: transparent; }
.login-card { width: min(400px, 100%); margin: 0 auto; border-radius: 22px; padding: 30px; position: relative; overflow: hidden; border-color: var(--line);
  box-shadow: 0 30px 60px -30px rgba(11, 31, 75, .35), 0 2px 6px rgba(11, 31, 75, .05); }
.login-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gold-grad); }
.login-card h2 { font-size: 26px; }
.login-card input { min-height: 48px; font-size: 16px; border-radius: 12px; }
.btn.primary.big { min-height: 50px; border-radius: 12px; font-size: 16px; }

/* ---------- buttons, cards ---------- */
.btn.primary { background: var(--navy-grad); box-shadow: 0 6px 14px -8px rgba(11, 31, 75, .7), inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn.primary:hover { background: var(--navy-deep); box-shadow: 0 0 0 2px rgba(194, 154, 69, .35); }
@media (prefers-color-scheme: dark) { .btn.primary { background: linear-gradient(160deg, #3a4ab0, #26338a); } }
.card { border-radius: 16px; }
.stat { border-radius: 16px; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; background: var(--gold-grad); opacity: .55; border-radius: 0 0 2px 2px; }
.page-head h1 { position: relative; }
.install-btn { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px;
  padding: 10px 16px; border-radius: 999px; background: var(--gold-grad); color: #1b1405; box-shadow: 0 10px 22px -12px rgba(194, 154, 69, .9); }
.install-btn:hover { filter: brightness(1.05); }
.install-btn[hidden] { display: none; }
.install-hint { font-size: 13px; color: var(--gold-light); margin: 0; }
.t-login .install-btn { align-self: center; }
.t-login .install-hint { color: var(--mute); text-align: center; }

/* ---------- sidebar ---------- */
.sidebar { background: var(--navy-grad); box-shadow: inset -1px 0 0 rgba(240, 207, 122, .22); }
.brand { padding: 20px 18px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 6px; }
.brand-ring { flex: none; padding: 2px; border-radius: 50%; background: var(--gold-grad); display: inline-flex; }
.brand-ring img { display: block; border-radius: 50%; background: #fff; }
.brand strong { font-size: 21px; }
.brand small { letter-spacing: .14em; font-size: 10.5px; }
.nav-item { border-radius: 12px; transition: background .15s, color .15s; }
.nav-item.on { background: linear-gradient(90deg, rgba(240, 207, 122, .22), rgba(240, 207, 122, .06)); box-shadow: inset 3px 0 0 var(--gold-light); }
.nav-item.on svg { color: var(--gold-light); opacity: 1; }
.nav-foot { display: flex; flex-direction: column; gap: 10px; }
.nav-foot .install-btn { font-size: 13px; padding: 8px 14px; }
.top-brand { display: none; }

/* ---------- phone: app bar + bottom tabs ---------- */
.tabbar, .nav-scrim { display: none; }
@media (max-width: 900px) {
  .topbar { background: var(--navy-grad); color: #fff; border-bottom: 0; padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top));
    box-shadow: 0 6px 18px -10px rgba(7, 21, 58, .7); }
  .topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold-grad); opacity: .8; }
  .topbar .icon-btn:hover { background: rgba(255, 255, 255, .1); }
  .topbar .menu-btn { display: none; }
  .top-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
  .top-brand img { border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--gold); }
  .top-brand strong { display: block; font-size: 19px; line-height: 1.1; }
  .top-brand small { display: block; color: var(--gold-light); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
  .topbar .btn.ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); }
  .content { padding-bottom: calc(var(--tab-h) + 28px + env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tab-h) + env(safe-area-inset-bottom));
    padding: 6px 6px env(safe-area-inset-bottom); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(11, 31, 75, .35); }
  .tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; font: inherit;
    color: var(--mute); text-decoration: none; font-size: 11.5px; font-weight: 600; cursor: pointer; border-radius: 12px; position: relative; }
  .tab-ic { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 15px; transition: background .15s; }
  .tab.on { color: var(--navy); }
  .tab.on .tab-ic { background: var(--gold-soft); color: #7d5a19; }
  @media (prefers-color-scheme: dark) { .tab.on { color: #fff; } .tab.on .tab-ic { color: var(--gold-light); } }
  .tab-n { position: absolute; top: -3px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff;
    font-size: 10.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--paper); }
  body.nav-open .nav-scrim { display: block; position: fixed; inset: 0; z-index: 19; background: rgba(7, 21, 58, .45); backdrop-filter: blur(2px); }
  .sidebar { width: min(300px, 86vw); z-index: 40; }
  h1 { font-size: 26px; }

  .login { grid-template-columns: 1fr; }
  .login-hero { padding: 30px 22px 26px 28px; }
  .login-hero::before { width: 6px; }
  .login-emblem img { width: 84px; height: 84px; }
  .login-word strong { font-size: 19px; }
  .login-project { margin-top: 18px; }
  .login-project strong { font-size: 44px; }
  .login-points, .login-hero .tagline, .login-foot { display: none; }
  .login-side { padding: 22px 16px 40px; }
}

/* ---------- trainee app ---------- */
.t-top { background: var(--navy-grad) !important; position: relative; }
.t-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold-grad); opacity: .85; }
.t-home-link img { border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--gold); }
.t-login { background: radial-gradient(ellipse at 50% 0%, rgba(194, 154, 69, .3), transparent 45%), linear-gradient(180deg, #0B1F4B 0, #07153a 250px, var(--bg) 250px); }
.t-login-logo { padding: 4px; background: var(--gold-grad); box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .55); }
.t-login-head h1 { font-size: 32px; }
.t-login .login-card { border-radius: 22px; }
.t-card, .t-app .card { border-radius: 18px; }

@media (prefers-reduced-motion: reduce) { .splash-ring, .splash-bar::after { animation: none; } }
@media print { .tabbar, .nav-scrim, .install-btn { display: none !important; } }

/* ---------- app update banner (inside the Android app) ---------- */
.upd-bar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab-h, 64px) + 14px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--navy-grad); color: #fff;
  box-shadow: 0 18px 40px -16px rgba(7, 21, 58, .7); border: 1px solid rgba(240, 207, 122, .35); }
.upd-bar span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.upd-bar strong { font-size: 15px; } .upd-bar small { color: rgba(255, 255, 255, .8); font-size: 12.5px; }
.upd-btn { flex: none; border: 0; border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 700; font-size: 14px; background: var(--gold-grad); color: #1b1405; text-decoration: none; cursor: pointer; }
.upd-x { flex: none; background: none; border: 0; color: rgba(255, 255, 255, .7); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px; }
@media (min-width: 901px) { .upd-bar { left: auto; right: 24px; bottom: 24px; max-width: 480px; } }
a.install-btn{text-decoration:none}
