/* ==========================================================================
   SDV Capital PWA - Brand Theme (Royal Cobalt #004AAD + Metallic Silver + Crisp White Sheet)
   ========================================================================== */

:root {
  --sdv-cobalt: #004AAD;
  --sdv-cobalt-bright: #1466D6;
  --sdv-cobalt-dark: #00337A;
  --sdv-navy-deep: #020E26;
  --sdv-navy-header: #031538;
  --sdv-navy-card: #061D4A;

  --sdv-white: #FFFFFF;
  --sdv-sheet-bg: #F8FAFC;
  --sdv-ink: #0F172A;
  --sdv-ink-muted: #64748B;
  --sdv-ink-subtle: #94A3B8;
  --sdv-line: #CBD5E1;

  --sdv-silver-100: #F8FAFC;
  --sdv-silver-200: #E2E8F0;
  --sdv-silver-300: #CBD5E1;
  --sdv-silver-400: #94A3B8;

  --sdv-green: #10B981;
  --sdv-green-dark: #059669;
  --sdv-red: #EF4444;
  --sdv-tag-bg: #E0ECFF;
  --sdv-tag-text: #004AAD;

  --font-display: 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100dvh;
  font-family: var(--font-sans);
  background-color: var(--sdv-navy-deep);
  color: var(--sdv-silver-100);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.sdv-body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 74, 173, 0.55) 0%, rgba(3, 21, 56, 0.6) 45%, #020E26 100%);
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* ==========================================================================
   1. SPLASH SCREEN (Clean Centered Logo + Pill Tag + Bottom Spinner)
   ========================================================================== */

.splash-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 36px 24px calc(32px + env(safe-area-inset-bottom));
  text-align: center;
  transition: opacity 0.4s ease;
}

.splash-screen.is-leaving {
  opacity: 0;
}

.splash-top-spacer {
  height: 20px;
}

.splash-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 340px;
}

.splash-brand-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.splash-logo-ring {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 50%, #E2E8F0 100%);
  box-shadow:
    0 0 42px rgba(0, 74, 173, 0.65),
    0 14px 32px rgba(0, 0, 0, 0.45);
}

.splash-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background-color: var(--sdv-cobalt);
}

.splash-wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: linear-gradient(180deg, #FFFFFF 20%, #CBD5E1 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.splash-sub {
  margin: -10px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sdv-silver-300);
}

.splash-pill-badge {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.25);
  background: rgba(0, 74, 173, 0.22);
  color: #E2E8F0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fadeUp 0.65s 0.18s ease both;
}

.splash-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeUp 0.65s 0.3s ease both;
}

.splash-arc-spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(226, 232, 240, 0.16);
  border-top-color: #60A5FA;
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

.splash-footer-code {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--sdv-silver-400);
  text-decoration: none;
}

/* ==========================================================================
   2. AUTH SPLIT-SHEET LAYOUT (LOGIN & FORGOT PASSWORD)
   ========================================================================== */

.split-auth-shell {
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.split-auth-header {
  padding: 20px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.split-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.split-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.split-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(226, 232, 240, 0.7);
  box-shadow: 0 6px 18px rgba(0, 74, 173, 0.5);
  object-fit: cover;
  background: var(--sdv-cobalt);
}

.split-brand-text {
  display: flex;
  flex-direction: column;
}

.split-brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  line-height: 1.15;
}

.split-brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sdv-silver-300);
  margin-top: 2px;
}

.header-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.header-action-btn.is-hidden {
  display: none;
}

.split-auth-sheet {
  flex: 1;
  background: var(--sdv-sheet-bg);
  color: var(--sdv-ink);
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  padding: 34px 26px calc(30px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  animation: sheetRise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sheet-heading {
  margin: 0 0 6px;
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--sdv-ink);
}

.sheet-subtext {
  margin: 0 0 24px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--sdv-ink-muted);
}

/* Light Sheet Alert Banners */
.sheet-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.45;
  margin-bottom: 18px;
}

.sheet-alert-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
}

.sheet-alert-success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

/* Clean Underline Inputs matching reference screenshot */
.underline-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.u-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.u-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
}

.u-input-row {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1.5px solid var(--sdv-line);
  transition: border-color 0.2s;
}

.u-input-row:focus-within {
  border-bottom-color: var(--sdv-cobalt);
}

.u-input {
  width: 100%;
  height: 44px;
  border: none;
  background: transparent;
  padding: 6px 36px 6px 0;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--sdv-ink);
  outline: none;
}

.u-input::placeholder {
  color: #94A3B8;
}

.u-trailing-icon {
  position: absolute;
  right: 2px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  background: transparent;
  border: none;
  cursor: pointer;
}

.u-valid-tick {
  color: var(--sdv-cobalt);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.u-field-group.is-valid .u-valid-tick {
  opacity: 1;
}

.u-error-msg {
  display: none;
  font-size: 0.76rem;
  color: #DC2626;
  margin-top: 2px;
}

.u-field-group.has-error .u-input-row {
  border-bottom-color: #DC2626;
}

.u-field-group.has-error .u-error-msg {
  display: block;
}

.u-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -6px;
}

.u-forgot-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
}

.u-forgot-link:hover {
  color: var(--sdv-cobalt);
  text-decoration: underline;
}

.u-remember {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: #475569;
  cursor: pointer;
}

.u-remember input {
  accent-color: var(--sdv-cobalt);
  width: 16px;
  height: 16px;
}

/* Pill CTA Button (Royal Cobalt matching logo) */
.btn-pill-primary {
  width: 100%;
  height: 52px;
  margin-top: 8px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #004AAD 0%, #1466D6 100%);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 74, 173, 0.34);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-pill-primary:active {
  transform: scale(0.985);
}

.btn-pill-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-pill-secondary {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: var(--sdv-ink);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}

.btn-pill-primary.is-loading .btn-spinner {
  display: inline-block;
}

.sheet-bottom-note {
  margin-top: auto;
  padding-top: 28px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--sdv-ink-muted);
}

.sheet-bottom-note strong,
.sheet-bottom-note a {
  color: var(--sdv-cobalt);
  font-weight: 700;
  text-decoration: none;
}

/* ==========================================================================
   3. DASHBOARD / HOME SCREEN (Dark Royal Navy + Crisp White Cards)
   ========================================================================== */

.app-shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.dash-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  background: rgba(2, 16, 43, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.08);
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.dash-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(226, 232, 240, 0.7);
  object-fit: cover;
  background: var(--sdv-cobalt);
  flex-shrink: 0;
}

.dash-brand-name {
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 3.6vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #FFFFFF;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sdv-silver-300);
  white-space: nowrap;
}

.dash-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-circle-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(226, 232, 240, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.notif-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38BDF8;
  border: 1.5px solid #02102B;
}

.avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(96, 165, 250, 0.7);
  background: rgba(0, 74, 173, 0.45);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.dash-content {
  padding: 12px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Live Market Tracking Row */
.live-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93C5FD;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
  animation: livePulse 1.8s infinite;
}

.realtime-badge {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sdv-silver-200);
}

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

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

.ticker-card {
  flex: 0 0 auto;
  min-width: 148px;
  background: #FFFFFF;
  color: var(--sdv-ink);
  border-radius: 12px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
}

.ticker-name {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--sdv-ink-muted);
  text-transform: uppercase;
  margin-bottom: 1px;
}

.ticker-price {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--sdv-ink);
}

.ticker-change {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
}

.ticker-change.is-up {
  background: #ECFDF5;
  color: #059669;
}

.ticker-change.is-down {
  background: #FEF2F2;
  color: #DC2626;
}

/* Section Title + Active Count Pill */
.rec-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rec-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rec-accent-bar {
  width: 3.5px;
  height: 18px;
  border-radius: 999px;
  background: #38BDF8;
}

.rec-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: #FFFFFF;
}

.active-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--sdv-ink);
  font-size: 0.74rem;
  font-weight: 700;
}

.active-count-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sdv-cobalt);
}

/* Category Filter Tabs */
.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  background: #FFFFFF;
  color: var(--sdv-ink);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.filter-chip.is-active {
  background: linear-gradient(135deg, #004AAD 0%, #1D72E8 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 74, 173, 0.55);
}

.filter-chip:active {
  transform: scale(0.96);
}

/* Recommendation Cards Feed */
.rec-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rec-card {
  background: #FFFFFF;
  color: var(--sdv-ink);
  border-radius: 16px;
  padding: 12px 13px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeUp 0.3s ease both;
}

.rec-card.is-hidden {
  display: none;
}

.rec-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.rec-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
  background: #F1F5F9;
  color: #475569;
}

.rec-tag.is-brand {
  background: var(--sdv-tag-bg);
  color: var(--sdv-tag-text);
}

.rec-tag.is-status {
  background: #E0F2FE;
  color: #0369A1;
}

.rec-headline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rec-headline {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--sdv-ink);
  line-height: 1.28;
}

.side-badge {
  flex-shrink: 0;
  padding: 4px 11px;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.side-badge.is-buy {
  background: #16A34A;
}

.side-badge.is-sell {
  background: #DC2626;
}

.rec-body-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.78rem;
  line-height: 1.42;
  font-weight: 600;
  color: #334155;
}

.rec-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px 6px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  text-align: center;
}

.metric-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sdv-ink-muted);
  margin-bottom: 2px;
}

.metric-val {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--sdv-ink);
}

.metric-val.is-target {
  color: #16A34A;
}

.metric-val.is-sl {
  color: #DC2626;
}

.rec-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  border-top: 1px solid #F1F5F9;
  font-size: 0.74rem;
  color: var(--sdv-ink-muted);
}

.rec-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rec-gain {
  font-weight: 700;
  color: #059669;
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  z-index: 30;
  background: rgba(2, 16, 43, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(226, 232, 240, 0.1);
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--sdv-silver-400);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
}

.nav-item.is-active {
  color: #60A5FA;
}

.nav-item.is-active .nav-icon-wrap {
  background: linear-gradient(135deg, #004AAD 0%, #1D72E8 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 74, 173, 0.65);
}

/* iOS Add-to-Home-Screen Bottom Sheet */
.ios-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 10, 26, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.ios-sheet-backdrop.is-open {
  display: flex;
}

.ios-sheet {
  width: 100%;
  max-width: 420px;
  background: #061D4A;
  color: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.22);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.ios-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ios-sheet-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.ios-sheet-close {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}

.ios-steps {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--sdv-silver-200);
}

.offline-card {
  margin: auto 18px;
  background: #FFFFFF;
  color: var(--sdv-ink);
  border-radius: 24px;
  padding: 30px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* ==========================================================================
   4. SERVICES PAGE (Admin-Assigned Active Services + Recommended)
   ========================================================================== */

.srv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 10px;
}

.srv-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.srv-back-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.16);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

.srv-heading-wrap {
  border-left: 3px solid #38BDF8;
  padding-left: 9px;
  min-width: 0;
  flex: 1;
}

.srv-heading {
  margin: 0;
  font-size: clamp(0.88rem, 3.6vw, 1.02rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.srv-subheading {
  margin: 2px 0 0;
  font-size: 0.76rem;
  color: var(--sdv-silver-300);
}

.srv-help-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(0, 74, 173, 0.35);
  color: #E0F2FE;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.srv-panel {
  background: #FFFFFF;
  color: var(--sdv-ink);
  border-radius: 24px;
  padding: 16px 14px 14px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.srv-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  padding: 0 2px;
}

.srv-panel-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.srv-panel-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #E0ECFF;
  color: var(--sdv-cobalt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.srv-panel-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--sdv-ink);
}

.srv-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.srv-count-pill.is-active-badge {
  background: #DCFCE7;
  color: #15803D;
}

.srv-count-pill.is-total-badge {
  background: #E0ECFF;
  color: var(--sdv-cobalt);
}

.srv-count-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.srv-view-all-btn {
  border: none;
  background: transparent;
  padding: 4px 2px;
  color: var(--sdv-cobalt);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.srv-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.srv-carousel::-webkit-scrollbar {
  display: none;
}

.srv-carousel.is-expanded {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow-x: visible;
  gap: 10px;
}

.srv-card {
  flex: 0 0 calc(50% - 5px);
  scroll-snap-align: start;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 12px 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 214px;
}

.srv-carousel.is-expanded .srv-card {
  flex: initial;
}

.srv-card-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}

.srv-status-chip {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #15803D;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.srv-status-chip::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #16A34A;
}

.srv-cat-chip {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #475569;
  background: #E2E8F0;
  padding: 2px 7px;
  border-radius: 6px;
}

.srv-art-box {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.srv-card-title {
  margin: 0 0 4px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--sdv-ink);
  line-height: 1.25;
}

.srv-card-desc {
  margin: 0 0 12px;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--sdv-ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.srv-card-btn {
  width: 100%;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #061A3E;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.srv-card-btn:hover {
  background: var(--sdv-cobalt);
}

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

.srv-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}

.srv-dots.is-hidden {
  display: none;
}

.srv-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #CBD5E1;
  transition: width 0.2s, background 0.2s;
}

.srv-dot.is-active {
  width: 16px;
  background: var(--sdv-cobalt);
}

.srv-empty-state {
  text-align: center;
  padding: 20px 12px;
  border-radius: 16px;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  color: var(--sdv-ink-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.srv-trust-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.12);
}

.srv-trust-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0, 74, 173, 0.45);
  color: #60A5FA;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.srv-trust-title {
  margin: 0 0 3px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #FFFFFF;
}

.srv-trust-desc {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--sdv-silver-300);
}

.srv-modal-meta {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  color: #BAE6FD;
  margin-bottom: 10px;
}

.srv-modal-desc {
  margin: 0 0 18px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--sdv-silver-200);
}

/* ==========================================================================
   5. PROFILE PAGE (User Card + Personal Details + Account & Security)
   ========================================================================== */

.prf-card {
  background: #FFFFFF;
  color: var(--sdv-ink);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.prf-hero {
  display: flex;
  align-items: center;
  gap: 14px;
}

.prf-avatar-wrap {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 2px solid #93C5FD;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sdv-cobalt);
  flex-shrink: 0;
}

.prf-avatar-check {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #16A34A;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prf-name {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--sdv-ink);
}

.prf-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.prf-role-badge {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: #E0ECFF;
  color: var(--sdv-cobalt);
}

.prf-kyc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: #DCFCE7;
  color: #15803D;
}

.prf-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sdv-ink-muted);
  margin: 0 0 10px;
}

.prf-section-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #E0ECFF;
  color: var(--sdv-cobalt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.prf-list {
  display: flex;
  flex-direction: column;
}

.prf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid #F1F5F9;
  text-decoration: none;
  color: inherit;
}

.prf-row:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.prf-row-btn {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  cursor: pointer;
  text-align: left;
}

.prf-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sdv-ink-muted);
  font-size: 0.84rem;
  font-weight: 600;
  min-width: 0;
}

.prf-row-left svg {
  flex-shrink: 0;
  color: #64748B;
}

.prf-row-right {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--sdv-ink);
  text-align: right;
  max-width: 58%;
}

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

.prf-mini-icon-btn {
  border: none;
  background: #F1F5F9;
  color: #475569;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.prf-mini-icon-btn:hover {
  background: #E0ECFF;
  color: var(--sdv-cobalt);
}

.prf-pill-green {
  padding: 4px 11px;
  border-radius: 8px;
  background: #DCFCE7;
  color: #15803D;
  font-size: 0.74rem;
  font-weight: 800;
}

.prf-pill-blue {
  padding: 5px 11px;
  border-radius: 8px;
  background: #E0ECFF;
  color: var(--sdv-cobalt);
  font-size: 0.74rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
}

.prf-logout-btn {
  width: 100%;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(239, 68, 68, 0.14);
  color: #FCA5A5;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.sdv-toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(16px);
  background: #061A3E;
  color: #FFFFFF;
  border: 1px solid rgba(147, 197, 253, 0.35);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 70;
  transition: opacity 0.2s, transform 0.2s;
}

.sdv-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   6. LOGS PAGE (Service-Grouped Recommendation Logs + Pagination)
   ========================================================================== */

.logs-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.logs-search-icon {
  position: absolute;
  left: 14px;
  color: var(--sdv-silver-300);
  pointer-events: none;
  display: flex;
}

.logs-search-input {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  padding: 0 14px 0 40px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.logs-search-input::placeholder {
  color: var(--sdv-silver-400);
}

.logs-search-input:focus {
  border-color: rgba(147, 197, 253, 0.65);
  background: rgba(255, 255, 255, 0.12);
}

.log-card {
  background: #FFFFFF;
  color: var(--sdv-ink);
  border-radius: 22px;
  padding: 16px 14px 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.log-card.is-hidden {
  display: none;
}

.log-card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0B2559;
  line-height: 1.3;
  padding: 0 2px;
}

.log-table-head {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  padding: 6px 4px 8px;
  border-bottom: 1.5px solid #E2E8F0;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sdv-cobalt);
}

.log-rows {
  display: flex;
  flex-direction: column;
}

.log-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  padding: 11px 4px;
  border-bottom: 1px solid #F1F5F9;
  align-items: start;
}

.log-row:last-child {
  border-bottom: none;
}

.log-row.is-hidden {
  display: none;
}

.log-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: #475569;
  padding-top: 1px;
}

.log-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.log-msg {
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--sdv-ink);
  line-height: 1.42;
  word-break: break-word;
}

.log-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--sdv-ink-muted);
}

.log-empty-row {
  padding: 16px 6px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--sdv-ink-muted);
}

.log-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #F1F5F9;
  flex-wrap: wrap;
}

.log-page-btns {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.log-pg-btn {
  min-width: 30px;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #334155;
  font-family: var(--font-sans);
  font-size: 0.71rem;
  font-weight: 700;
  cursor: pointer;
}

.log-pg-btn.is-active {
  background: var(--sdv-cobalt);
  border-color: var(--sdv-cobalt);
  color: #FFFFFF;
}

.log-pg-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.log-range-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sdv-ink-muted);
}

/* ==========================================================================
   7. CURVED-NOTCH FLOATING CENTER BOTTOM NAVIGATION
   ========================================================================== */

.notch-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  height: calc(68px + env(safe-area-inset-bottom));
  min-height: calc(68px + env(safe-area-inset-bottom));
  max-height: calc(68px + env(safe-area-inset-bottom));
  z-index: 35;
  padding-bottom: env(safe-area-inset-bottom);
  filter: drop-shadow(0 -8px 22px rgba(2, 10, 26, 0.38));
}

.notch-nav-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.notch-nav-grid {
  position: relative;
  z-index: 2;
  height: 68px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) 74px repeat(2, minmax(0, 1fr));
  align-items: center;
  padding: 4px 4px 0;
}

.notch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 52px;
  text-decoration: none;
  color: #94A3B8;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.1;
  padding: 4px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s, transform 0.15s;
}

.notch-item svg {
  transition: transform 0.2s;
}

.notch-item.is-active {
  color: #60A5FA;
}

.notch-item.is-active svg {
  transform: translateY(-2px);
}

.notch-center-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}

.notch-fab {
  position: absolute;
  top: -20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #004AAD 0%, #257BF4 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow:
    0 10px 24px rgba(0, 74, 173, 0.52),
    0 0 0 4px rgba(255, 255, 255, 0.18);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s;
}

.notch-fab:active {
  transform: scale(0.94);
}

.notch-fab.is-active {
  box-shadow:
    0 12px 28px rgba(0, 74, 173, 0.68),
    0 0 0 4px rgba(96, 165, 250, 0.35);
}

/* ==========================================================================
   8. SLIDE-OUT PROFILE SIDEBAR DRAWER
   ========================================================================== */

.sdv-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(2, 10, 26, 0.66);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sdv-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sdv-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(84vw, 320px);
  z-index: 90;
  background: linear-gradient(180deg, #041A45 0%, #020E26 100%);
  border-left: 1px solid rgba(226, 232, 240, 0.14);
  box-shadow: -16px 0 44px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateX(102%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.sdv-drawer.is-open {
  transform: translateX(0);
}

.sdv-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.1);
}

.sdv-drawer-user {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.sdv-drawer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #004AAD 0%, #1D72E8 100%);
  border: 1.5px solid rgba(226, 232, 240, 0.7);
  color: #FFFFFF;
  font-size: 0.86rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sdv-drawer-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: #FFFFFF;
}

.sdv-drawer-email {
  font-size: 0.72rem;
  color: var(--sdv-silver-400);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sdv-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(226, 232, 240, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
}

.sdv-drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sdv-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--sdv-silver-200);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  background: transparent;
  width: 100%;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.sdv-drawer-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.sdv-drawer-link.is-active {
  background: rgba(0, 74, 173, 0.55);
  color: #FFFFFF;
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.sdv-drawer-accordion {
  justify-content: space-between;
}

.sdv-drawer-accordion .sdv-chevron {
  transition: transform 0.2s;
}

.sdv-drawer-accordion[aria-expanded="true"] .sdv-chevron {
  transform: rotate(180deg);
}

.sdv-drawer-submenu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 6px 38px;
}

.sdv-drawer-submenu.is-open {
  display: flex;
}

.sdv-drawer-sublink {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--sdv-silver-300);
  text-decoration: none;
}

.sdv-drawer-sublink:hover,
.sdv-drawer-sublink.is-active {
  background: rgba(56, 189, 248, 0.16);
  color: #FFFFFF;
  font-weight: 700;
}

.sdv-drawer-foot {
  padding: 12px 14px 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.1);
}

.sdv-drawer-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #FCA5A5;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}

/* ==========================================================================
   9. PERMISSIONS, REPORTS, ALERTS, LIVE MARKET, & POLICY PAGES
   ========================================================================== */

.perm-card {
  background: #FFFFFF;
  color: var(--sdv-ink);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.perm-title {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 800;
  color: #0B2559;
}

.perm-status {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
}

.perm-status.is-denied {
  color: #DC2626;
}

.perm-status.is-granted {
  color: #16A34A;
}

.perm-desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--sdv-ink-muted);
}

.perm-btn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 11px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #004AAD 0%, #1466D6 100%);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 74, 173, 0.32);
}

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

/* Reports KPIs */
.rpt-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.rpt-kpi-card {
  background: #FFFFFF;
  color: var(--sdv-ink);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.rpt-kpi-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sdv-ink-muted);
  margin-bottom: 4px;
}

.rpt-kpi-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0B2559;
}

.rpt-kpi-val.is-green {
  color: #16A34A;
}

.rpt-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px solid #F1F5F9;
}

.rpt-item-row:last-child {
  border-bottom: none;
}

.rpt-item-row.is-hidden {
  display: none;
}

.rpt-symbol {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--sdv-ink);
}

.rpt-meta {
  font-size: 0.72rem;
  color: var(--sdv-ink-muted);
  margin-top: 2px;
}

.rpt-pnl {
  font-size: 0.84rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.rpt-pnl.is-profit {
  background: #DCFCE7;
  color: #15803D;
}

.rpt-pnl.is-loss {
  background: #FEE2E2;
  color: #B91C1C;
}

/* Live Market Grid */
.mkt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mkt-card {
  background: #FFFFFF;
  color: var(--sdv-ink);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mkt-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mkt-exch {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: #E0ECFF;
  color: var(--sdv-cobalt);
}

.mkt-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sdv-ink-muted);
}

.mkt-ltp {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--sdv-ink);
}

.policy-body {
  font-size: 0.85rem;
  line-height: 1.65;
  color: #334155;
}

.policy-body p {
  margin: 0 0 12px;
}

.policy-body p:last-child {
  margin-bottom: 0;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sheetRise {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}
