/* ==========================================================================
   Vakilino Web App (PWA) — Luxury Obsidian & Royal Gold Design System
   100% Visual Parity with Android Jetpack Compose Edition
   ========================================================================== */

:root {
  --bg-obsidian: #060608;
  --bg-charcoal: #111114;
  --bg-elevated: #15151C;
  --bg-card: #14141A;
  --bg-card-top: #1E1E28;
  --bg-input: #0D0D12;

  --gold-champagne: #FFDF73;
  --gold-royal: #D4AF37;
  --gold-burnished: #9A7420;
  --gold-deep: #6D4E10;
  --gold-glow: rgba(212, 175, 55, 0.28);
  --gold-border: rgba(255, 223, 115, 0.26);
  --gold-border-strong: rgba(255, 223, 115, 0.55);

  --emerald: #10B981;
  --emerald-soft: rgba(16, 185, 129, 0.16);
  --emerald-border: rgba(16, 185, 129, 0.45);
  --crimson: #EF4444;
  --crimson-soft: rgba(239, 68, 68, 0.15);
  --amber: #F59E0B;
  --sky: #38BDF8;

  --text-primary: #F8F7F4;
  --text-secondary: rgba(248, 247, 244, 0.68);
  --text-muted: rgba(248, 247, 244, 0.46);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --radius-pill: 999px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  --font-fa: 'Vazirmatn', 'IRANSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
  --shadow-3d: 0 14px 36px rgba(0, 0, 0, 0.58), 0 2px 6px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-gold: 0 10px 28px rgba(212, 175, 55, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-fa);
  font-size: 14px;
  line-height: 1.65;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

button, input, textarea, select, option {
  font-family: var(--font-fa);
  color: inherit;
}

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

/* ==================== APP SHELL & VIEWPORT ==================== */
.vk-app-root {
  position: relative;
  width: 100%;
  height: 100dvh;
  max-width: 560px;
  margin: 0 auto;
  background: radial-gradient(circle at 50% -10%, rgba(212, 175, 55, 0.12), transparent 55%),
              linear-gradient(180deg, #09090D 0%, #060608 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 600px) {
  body.vk-body {
    background: radial-gradient(circle at 50% 0%, #141219 0%, #040406 80%);
  }
  .vk-app-root {
    border-left: 1px solid rgba(255, 223, 115, 0.12);
    border-right: 1px solid rgba(255, 223, 115, 0.12);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.85);
  }
}

.vk-main-viewport {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: calc(var(--safe-top) + 8px);
  padding-bottom: calc(var(--safe-bottom) + 106px);
  padding-left: 16px;
  padding-right: 16px;
  scroll-behavior: smooth;
}

.vk-main-viewport.vk-no-bottom-pad {
  padding-bottom: calc(var(--safe-bottom) + 16px);
}

.vk-main-viewport.vk-chat-viewport,
.vk-main-viewport.vk-scanner-viewport,
.vk-main-viewport.vk-auth-viewport {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.vk-main-viewport.vk-scanner-viewport {
  background: #000000;
}

.vk-main-viewport.vk-auth-viewport {
  background: #070709;
}

/* ==================== INTRO VIDEO OVERLAY ==================== */
.vk-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease;
}

.vk-intro-overlay.vk-fade-out {
  opacity: 0;
  pointer-events: none;
}

.vk-intro-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 560px;
  background: #000;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

/* ==================== TOP APP BAR ==================== */
.vk-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(6, 6, 8, 0.94) 65%, rgba(6, 6, 8, 0) 100%);
}

.vk-topbar-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-champagne);
  letter-spacing: -0.2px;
  margin: 0;
}

.vk-topbar-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  margin: 0;
}

.vk-icon-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 15px;
  background: linear-gradient(155deg, rgba(32, 32, 42, 0.9), rgba(16, 16, 22, 0.95));
  border: 1px solid var(--gold-border);
  color: var(--gold-champagne);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.14s ease, border-color 0.2s ease;
}

.vk-icon-btn:active {
  transform: scale(0.93);
}

.vk-icon-btn svg {
  width: 21px;
  height: 21px;
}

.vk-avatar-btn {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  overflow: hidden;
  border: 1.5px solid var(--gold-royal);
  background: linear-gradient(135deg, #252014, #121218);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-champagne);
  font-weight: 800;
  font-size: 15px;
  position: relative;
}

.vk-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==================== LUXURY 3D CARDS & BUTTONS ==================== */
.vk-card {
  background: linear-gradient(155deg, var(--bg-card-top) 0%, var(--bg-card) 55%, #0D0D12 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-3d);
  position: relative;
  overflow: hidden;
}

.vk-card-subtle {
  background: rgba(20, 20, 27, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
}

.vk-card-gold {
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.2), rgba(20, 18, 12, 0.92) 60%);
  border: 1px solid var(--gold-border-strong);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.14), inset 0 1px 0 rgba(255, 223, 115, 0.25);
}

.vk-card-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(8, 32, 24, 0.92));
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}

.vk-btn-gold {
  background: linear-gradient(135deg, #FFE488 0%, #D4AF37 52%, #A97E22 100%);
  color: #08080A;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 20px;
  min-height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-gold);
  transition: transform 0.14s ease, filter 0.15s ease;
}

.vk-btn-gold:active {
  transform: scale(0.97);
  filter: brightness(0.94);
}

.vk-btn-gold:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.vk-btn-outline {
  background: rgba(255, 223, 115, 0.08);
  color: var(--gold-champagne);
  border: 1px solid var(--gold-border-strong);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: transform 0.14s ease, background 0.2s ease;
}

.vk-btn-outline:active {
  transform: scale(0.97);
  background: rgba(255, 223, 115, 0.15);
}

.vk-btn-danger {
  background: var(--crimson-soft);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.vk-btn-sm {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 11px;
}

.vk-full {
  width: 100%;
}

/* ==================== FORM CONTROLS ==================== */
.vk-field {
  margin-bottom: 13px;
}

.vk-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-champagne);
  margin-bottom: 6px;
}

.vk-input, .vk-textarea, .vk-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 223, 115, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vk-input:focus, .vk-textarea:focus, .vk-select:focus {
  border-color: var(--gold-champagne);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}

.vk-textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.7;
}

.vk-input-ltr {
  direction: ltr;
  text-align: left;
}

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

.vk-search-box .vk-input {
  padding-right: 42px;
}

.vk-search-icon {
  position: absolute;
  right: 13px;
  color: var(--gold-royal);
  pointer-events: none;
  display: flex;
}

/* ==================== CHIPS & TABS ==================== */
.vk-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: none;
}

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

.vk-chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.vk-chip.active {
  background: linear-gradient(135deg, #FFDF73, #D4AF37);
  color: #060608;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.28);
}

.vk-segmented {
  display: flex;
  background: rgba(14, 14, 20, 0.92);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 14px;
}

.vk-seg-btn {
  flex: 1;
  padding: 9px 8px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  text-align: center;
}

.vk-seg-btn.active {
  background: linear-gradient(135deg, rgba(255, 223, 115, 0.22), rgba(212, 175, 55, 0.14));
  color: var(--gold-champagne);
  border: 1px solid rgba(255, 223, 115, 0.35);
}

/* ==================== LIQUID GLASS BOTTOM BAR (Exact LiquidGlassBottomBar.kt Parity) ==================== */
.vk-bottom-bar-wrap {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 520px;
  z-index: 60;
  pointer-events: none;
  opacity: 1;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}

.vk-bottom-bar-wrap.vk-nav-hidden {
  transform: translate(-50%, 150%);
  opacity: 0;
  pointer-events: none;
}

.vk-bottom-bar {
  pointer-events: auto;
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  padding: 6px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(22, 25, 40, 0.85) 0%, rgba(13, 15, 24, 0.80) 100%);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1.2px solid rgba(255, 223, 115, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.vk-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  width: 100%;
  background: transparent;
  position: relative;
}

.vk-nav-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, color 0.2s ease;
}

.vk-nav-circle svg {
  width: 24px;
  height: 24px;
}

.vk-nav-item.active .vk-nav-circle {
  background: var(--gold-champagne);
  color: #060608;
  box-shadow: 0 6px 18px rgba(255, 223, 115, 0.36);
}

.vk-nav-item:active .vk-nav-circle {
  transform: scale(0.92);
}

/* ==================== WAVY GOLDEN-EDGED DRAWER MENU (Exact DrawerMenu.kt Parity) ==================== */
.vk-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}

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

.vk-drawer-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  width: min(88vw, 360px);
  z-index: 125;
  transform: translateX(-106%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  background: transparent;
  overflow: hidden;
}

.vk-drawer-panel.open {
  transform: translateX(0);
}

.vk-drawer-svg-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.vk-drawer-scroll {
  position: relative;
  z-index: 2;
  flex: 1;
  overflow-y: auto;
  padding: calc(var(--safe-top) + 18px) 66px calc(var(--safe-bottom) + 24px) 16px;
}

.vk-drawer-highlighted {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 24px;
  background: linear-gradient(90deg, #3A2B00 0%, #1E1600 100%);
  border: 1px solid rgba(255, 223, 115, 0.52);
  color: #FFFFFF;
  text-align: right;
  margin-bottom: 12px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.vk-drawer-highlighted:active {
  transform: scale(0.98);
  filter: brightness(1.1);
}

.vk-drawer-highlighted svg {
  width: 24px;
  height: 24px;
  color: var(--gold-champagne);
  flex-shrink: 0;
}

.vk-drawer-normal {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  color: #FFFFFF;
  text-align: right;
  text-decoration: none;
  border-radius: 16px;
}

.vk-drawer-normal:active {
  background: rgba(255, 223, 115, 0.08);
}

.vk-drawer-normal svg {
  width: 26px;
  height: 26px;
  color: var(--gold-champagne);
  flex-shrink: 0;
}

/* ==================== ORBITAL ROTATING DIAL (HOME — Exact HomeScreen.kt Parity) ==================== */
.vk-orbital-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 0 12px;
  user-select: none;
  touch-action: none;
}

.vk-orbital-stage {
  position: relative;
  width: 280px;
  height: 256px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vk-orbital-ring {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 2px solid rgba(255, 223, 115, 0.2);
  pointer-events: none;
}

.vk-orbital-center {
  position: relative;
  z-index: 5;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #000000;
  border: 2px solid var(--gold-champagne);
  box-shadow: 0 12px 28px rgba(255, 223, 115, 0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease;
}

.vk-orbital-center:active {
  transform: scale(0.95);
}

.vk-orbital-center img {
  width: 102px;
  height: 102px;
  border-radius: 50%;
  object-fit: contain;
}

.vk-orbital-center-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-champagne);
  margin-top: 1px;
  line-height: 1;
}

.vk-orbital-bubble {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  margin-left: -38px;
  margin-top: -38px;
  border-radius: 50%;
  background: rgba(17, 17, 20, 0.88);
  border: 1.5px solid rgba(212, 175, 55, 0.52);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--gold-royal);
  z-index: 6;
  padding: 4px;
}

.vk-orbital-bubble.is-champagne {
  border-color: rgba(255, 223, 115, 0.55);
  color: var(--gold-champagne);
}

.vk-orbital-bubble.is-primary {
  width: 88px;
  height: 88px;
  margin-left: -44px;
  margin-top: -44px;
  background: rgba(212, 175, 55, 0.96);
  border: 1.5px solid rgba(255, 223, 115, 0.85);
  color: #060608;
  box-shadow: 0 14px 28px rgba(212, 175, 55, 0.35);
}

.vk-orbital-bubble svg {
  width: 22px;
  height: 22px;
}

.vk-orbital-bubble.is-primary svg {
  width: 26px;
  height: 26px;
}

.vk-orbital-bubble span {
  font-size: 8.8px;
  font-weight: 800;
  color: inherit;
  text-align: center;
  line-height: 1.15;
}

.vk-orbital-bubble.is-primary span {
  font-size: 9.8px;
  color: #060608;
}

/* ==================== JALALI CALENDAR (Exact CustomJalaliCalendarView.kt Parity) ==================== */
.vk-cal-card {
  background: #111116;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 18px;
  padding: 12px 12px 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.52);
}

.vk-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.vk-cal-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-champagne);
  font-size: 19px;
  font-weight: 700;
}

.vk-cal-month-pill {
  background: #181A22;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 11px;
  padding: 6px 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold-champagne);
  font-size: 13px;
  font-weight: 800;
}

.vk-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: rgba(24, 26, 34, 0.85);
  border-radius: 9px;
  padding: 6px 0;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 6px;
}

.vk-cal-weekdays .friday-lbl {
  color: #EF6C6C;
}

.vk-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.vk-cal-day {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 37px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  background: transparent;
  border: 1.4px solid transparent;
  transition: transform 0.14s ease, background 0.14s ease;
}

.vk-cal-day:active {
  transform: scale(0.92);
}

.vk-cal-day.friday {
  color: #EF6C6C;
}

.vk-cal-day.today {
  border-color: #D4AF37;
  background: rgba(45, 212, 191, 0.16);
  color: #2DD4BF;
  font-weight: 800;
}

.vk-cal-day.selected {
  background: linear-gradient(135deg, #D4AF37, #2DD4BF);
  border-color: transparent;
  color: #08090D;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(45, 212, 191, 0.32);
}

.vk-cal-dot {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: #FFDF73;
  position: absolute;
  bottom: 3px;
}

.vk-cal-day.selected .vk-cal-dot {
  background: #08090D;
}

/* ==================== CHATBOT SCREEN ==================== */
.vk-chat-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: calc(var(--safe-top) + 4px);
  padding-bottom: calc(var(--safe-bottom) + 86px);
}

.vk-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 10px;
  border-bottom: 1px solid rgba(255, 223, 115, 0.14);
  background: rgba(8, 8, 12, 0.92);
}

.vk-chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vk-msg {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 20px;
  font-size: 13.5px;
  line-height: 1.78;
  word-wrap: break-word;
}

.vk-msg-user {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(255, 223, 115, 0.22), rgba(169, 126, 34, 0.24));
  border: 1px solid rgba(255, 223, 115, 0.42);
  border-top-right-radius: 6px;
}

.vk-msg-ai {
  align-self: flex-end;
  background: linear-gradient(155deg, #1B1B24, #111117);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-left-radius: 6px;
}

.vk-msg-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vk-chat-composer {
  padding: 10px 12px;
  background: rgba(12, 12, 16, 0.96);
  border-top: 1px solid rgba(255, 223, 115, 0.2);
}

.vk-composer-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.vk-composer-input {
  flex: 1;
  background: #171720;
  border: 1px solid rgba(255, 223, 115, 0.24);
  border-radius: 18px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13.5px;
  max-height: 112px;
  resize: none;
  outline: none;
}

/* ==================== SCANNER CANVAS & FILTERS ==================== */
.vk-scanner-stage {
  position: relative;
  width: 100%;
  background: #0A0A0E;
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.vk-scanner-canvas {
  max-width: 100%;
  max-height: 400px;
  display: block;
  touch-action: none;
}

.vk-filter-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 2px;
  scrollbar-width: none;
}

.vk-filter-pill {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 13px;
  background: #15151E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

.vk-filter-pill.active {
  background: linear-gradient(135deg, #FFDF73, #D4AF37);
  color: #060608;
  border-color: transparent;
}

/* ==================== MODALS & BOTTOM SHEETS ==================== */
.vk-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.vk-modal-card {
  width: 100%;
  max-width: 460px;
  max-height: 86dvh;
  overflow-y: auto;
  background: linear-gradient(160deg, #1A1A24 0%, #0E0E14 100%);
  border: 1.5px solid var(--gold-border-strong);
  border-radius: 26px;
  padding: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
}

/* ==================== BADGES, STATUS, UTILITIES ==================== */
.vk-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.vk-badge-gold {
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-champagne);
  border: 1px solid rgba(255, 223, 115, 0.35);
}

.vk-badge-emerald {
  background: var(--emerald-soft);
  color: #6EE7B7;
  border: 1px solid var(--emerald-border);
}

.vk-badge-crimson {
  background: var(--crimson-soft);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.vk-badge-sky {
  background: rgba(56, 189, 248, 0.15);
  color: #7DD3FC;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.vk-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vk-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vk-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vk-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.vk-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-champagne);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.vk-muted {
  color: var(--text-secondary);
  font-size: 12.5px;
}

.vk-empty {
  text-align: center;
  padding: 34px 18px;
  color: var(--text-secondary);
}

.vk-toast {
  position: fixed;
  top: calc(var(--safe-top) + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  z-index: 999;
  background: linear-gradient(135deg, #22201A, #121218);
  border: 1px solid var(--gold-border-strong);
  color: var(--gold-champagne);
  padding: 11px 18px;
  border-radius: 16px;
  font-size: 12.5px;
  font-weight: 700;
  max-width: min(92vw, 440px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: all 0.24s ease;
}

.vk-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.vk-ios-install-banner {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(18, 18, 24, 0.95));
  border: 1px solid var(--gold-border-strong);
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vk-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(255, 223, 115, 0.2);
  border-top-color: var(--gold-champagne);
  border-radius: 50%;
  animation: vkSpin 0.75s linear infinite;
  display: inline-block;
}

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

/* Active subscription single-line guarantee matching Android SubscriptionPlansScreen */
.vk-sub-active-line {
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 800;
  color: #6EE7B7;
  line-height: 1.5;
}

/* Safe Markdown formatting inside AI chat bubbles */
.vk-md h1, .vk-md h2, .vk-md h3 {
  color: var(--gold-champagne);
  margin: 10px 0 6px;
  font-size: 14.5px;
  font-weight: 800;
}
.vk-md p { margin: 0 0 8px; }
.vk-md ul, .vk-md ol { margin: 4px 0 8px; padding-right: 18px; }
.vk-md li { margin-bottom: 4px; }
.vk-md strong { color: #FFF2C6; font-weight: 800; }
.vk-md code {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 12px;
}

.vk-settings-hero {
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.22), rgba(16, 16, 24, 0.96) 65%);
  border: 1px solid var(--gold-border-strong);
  border-radius: 26px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-3d);
}

.vk-team-photo {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  object-fit: cover;
  border: 2px solid var(--gold-royal);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.22);
}

.vk-enamad-box {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold-royal);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

.vk-audio-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 8px 12px;
}

/* ==================== ANDROID 1:1 PARITY 3D COMPONENTS ==================== */
/* Chatbot Android Glass Top Bar & 2-Column Templates */
.vk-chat-topbar {
  margin: 8px 16px;
  padding: 10px 12px;
  border-radius: 20px;
  background: rgba(18, 18, 23, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.24);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.vk-chat-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1E1E26;
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: var(--gold-royal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, background 0.2s ease;
}
.vk-chat-circle-btn:active {
  transform: scale(0.93);
}
.vk-chat-circle-btn.gold-tint {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.35);
}

.vk-chat-hero-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.05) 65%, transparent 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.2);
}

.vk-chat-cat-capsule {
  display: flex;
  background: #131318;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 4px;
  gap: 6px;
  margin-bottom: 14px;
}

.vk-chat-cat-tab {
  flex: 1;
  height: 38px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.vk-chat-cat-tab.active {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.24), rgba(184, 134, 11, 0.15));
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--gold-royal);
  font-weight: 800;
}

.vk-chat-tpl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.vk-chat-tpl-card {
  background: linear-gradient(145deg, #191922, #121218);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 12px 13px;
  text-align: right;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 76px;
}
.vk-chat-tpl-card:active {
  transform: scale(0.97);
  border-color: var(--gold-champagne);
}
.vk-chat-tpl-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vk-chat-tpl-desc {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vk-chat-user-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.vk-chat-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  border: 1.5px solid var(--gold-royal);
  background: radial-gradient(circle, var(--gold-royal), #73540A);
  color: #000000;
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}
.vk-chat-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vk-chat-input-pill {
  background: #131318;
  border-radius: 26px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  padding: 6px 8px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.vk-chat-attach-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1E1E26;
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--gold-royal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.vk-chat-send-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4AF37, #AA7C11);
  border: none;
  color: #0B0B0E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  padding: 0;
}

/* Cases 3D Info Board & Vertical Gold Timeline */
.vk-case-3d-board {
  background: linear-gradient(180deg, #1E1D28 0%, #13121A 55%, #0D0C12 100%);
  border: 1.3px solid rgba(255, 223, 115, 0.42);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 223, 115, 0.25);
}

.vk-case-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.vk-case-detail-cell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 9px 11px;
}
.vk-case-detail-cell .lbl {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 3px;
}
.vk-case-detail-cell .val {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
}

.vk-case-hearing-box {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 14px;
  padding: 12px;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.vk-timeline-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 14px;
}
.vk-timeline-rail {
  width: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.vk-timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-royal);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
  margin-top: 6px;
  flex-shrink: 0;
}
.vk-timeline-line {
  width: 2px;
  flex: 1;
  min-height: 36px;
  background: rgba(212, 175, 55, 0.25);
  margin-top: 4px;
}

/* Scanner Optical Gold Framing Corners & Shutter */
.vk-scanner-frame-guide {
  position: relative;
  border: 1.5px solid rgba(212, 175, 55, 0.32);
  border-radius: 20px;
  padding: 14px;
  background: rgba(8, 8, 12, 0.55);
}
.vk-scanner-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: var(--gold-royal);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}
.vk-scanner-corner.tl { top: -2px; left: -2px; border-top-width: 3.5px; border-left-width: 3.5px; border-top-left-radius: 14px; }
.vk-scanner-corner.tr { top: -2px; right: -2px; border-top-width: 3.5px; border-right-width: 3.5px; border-top-right-radius: 14px; }
.vk-scanner-corner.bl { bottom: -2px; left: -2px; border-bottom-width: 3.5px; border-left-width: 3.5px; border-bottom-left-radius: 14px; }
.vk-scanner-corner.br { bottom: -2px; right: -2px; border-bottom-width: 3.5px; border-right-width: 3.5px; border-bottom-right-radius: 14px; }

.vk-scanner-autocrop-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.68);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 10px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-champagne);
  cursor: pointer;
}

.vk-scanner-shutter-80 {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 4px solid #FFFFFF;
  background: transparent;
  padding: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}
.vk-scanner-shutter-80-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFDF73, #D4AF37);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #060608;
}

/* Settings 3D Hero Header & Compartments */
.vk-settings-3d-header {
  background: linear-gradient(180deg, #1E1E2C 0%, #13131C 50%, #0C0C12 100%);
  border: 1.5px solid rgba(255, 223, 115, 0.55);
  border-radius: 26px;
  padding: 15px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 18px 36px rgba(212, 175, 55, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.vk-settings-compartment {
  background: linear-gradient(180deg, #09090D, #111118);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.vk-btn-ruby-3d {
  width: 100%;
  height: 58px;
  border-radius: 20px;
  background: linear-gradient(180deg, #3A1219 0%, #240B10 55%, #170609 100%);
  border: 1.5px solid rgba(255, 107, 107, 0.65);
  color: #FF8585;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(229, 57, 53, 0.25);
}

/* ==================== SHARED COMPONENT CLASSES FOR MODULAR SCREENS ==================== */
.vk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 800;
  min-height: 44px;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.15s ease;
}
.vk-btn:active { transform: scale(0.97); }
.vk-btn:disabled { opacity: 0.55; pointer-events: none; }
.vk-btn-block { width: 100%; }
.vk-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.vk-tabs {
  display: flex;
  background: #12131A;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 16px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 14px;
}
.vk-tab {
  flex: 1;
  padding: 9px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  transition: all 0.2s ease;
}
.vk-tab.active {
  background: linear-gradient(135deg, #FFDF73, #D4AF37);
  color: #060608;
  font-weight: 900;
}

.vk-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
}
.vk-chips-scroll::-webkit-scrollbar { display: none; }

.vk-search-box {
  background: #0D0D12;
  border: 1px solid rgba(255, 223, 115, 0.24);
  border-radius: 16px;
  padding: 0 12px;
  margin-bottom: 12px;
  gap: 8px;
  min-height: 46px;
}
.vk-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 13.5px;
  padding: 10px 0;
}

.vk-modal-title {
  font-size: 16.5px;
  font-weight: 900;
  color: var(--gold-champagne);
  margin-bottom: 12px;
}

.vk-empty-title {
  font-size: 15.5px;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 6px;
}
.vk-empty-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.vk-badge-amber {
  background: rgba(245, 158, 11, 0.16);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.vk-badge-ruby {
  background: rgba(239, 68, 68, 0.16);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.vk-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 8px;
}
.vk-sub-single-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 800;
  color: #6EE7B7;
}
.vk-sub-active-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(8, 32, 24, 0.92));
  border: 1px solid var(--emerald-border);
  border-radius: 20px;
  padding: 14px 16px;
}
.vk-plan-card {
  position: relative;
  background: linear-gradient(155deg, #1B1B24, #111117);
  border: 1.2px solid rgba(255, 223, 115, 0.25);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 10px;
}
.vk-plan-card.featured {
  border: 1.8px solid var(--gold-champagne);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.18), #121218);
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.18);
}
.vk-plan-ribbon {
  display: inline-block;
  background: linear-gradient(135deg, #FFDF73, #D4AF37);
  color: #060608;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 8px;
}

.vk-chat-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: calc(var(--safe-top) + 4px);
  padding-bottom: calc(var(--safe-bottom) + 84px);
}

/* ==================== AUTH SCREEN (100% Android AuthScreen.kt + GoldSparkleCanvas.kt Parity) ==================== */
.vk-auth-page {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #070709;
  overflow: hidden;
}
.vk-auth-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}
.vk-auth-scroll {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--safe-top) + 12px) 22px calc(var(--safe-bottom) + 16px);
}
.vk-auth-logo {
  width: 165px;
  height: 165px;
  padding: 0 8px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-drag: none;
}
.vk-auth-brand {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 1.5px;
  background: linear-gradient(90deg, #FFEEBA 0%, #FFE082 25%, #D4AF37 50%, #FFF7DD 75%, #FFE082 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.25;
  text-align: center;
}
.vk-auth-subtitle {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
  padding: 4px 0 20px;
  text-align: center;
}
.vk-auth-switcher {
  position: relative;
  width: 100%;
  height: 50px;
  border-radius: 25px;
  background: rgba(18, 20, 28, 0.85);
  padding: 4px;
  display: flex;
  align-items: stretch;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5), 0 4px 14px rgba(212, 175, 55, 0.15);
  flex-shrink: 0;
}
.vk-auth-switcher::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 25px;
  padding: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.4), rgba(255, 255, 255, 0.08), rgba(212, 175, 55, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.vk-auth-switcher-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  border-radius: 21px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}
.vk-auth-switcher-tab.active {
  background: linear-gradient(90deg, #FFE082 0%, #D4AF37 50%, #AA8012 100%);
  color: #0F1015;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}
.vk-auth-glass-card {
  position: relative;
  width: 100%;
  margin-top: 18px;
  background: rgba(16, 18, 24, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 26px;
  padding: 22px 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.8), 0 8px 24px rgba(212, 175, 55, 0.2);
  flex-shrink: 0;
}
.vk-auth-glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  padding: 1.2px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.6) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(212, 175, 55, 0.25) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.vk-auth-form-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vk-auth-anim-section {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease, margin 0.28s ease;
}
.vk-auth-anim-section.is-hidden {
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: -14px;
  pointer-events: none;
}
.vk-auth-anim-inner {
  overflow: hidden;
  padding-top: 2px;
}
.vk-auth-signup-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Exact Material 3 OutlinedTextField (GoldenAuthTextField in AuthScreen.kt) */
.vk-m3-field {
  position: relative;
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  background: rgba(22, 25, 34, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.vk-m3-field:focus-within {
  border-color: #FFE082;
  box-shadow: inset 0 0 0 0.5px #FFE082;
}
.vk-m3-field-icon {
  color: #D4AF37;
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vk-m3-field-icon svg {
  width: 21px;
  height: 21px;
}
.vk-m3-field-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #EBEBEF;
  caret-color: #D4AF37;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  padding: 16px 0;
  line-height: 1.4;
}
.vk-m3-field-input:focus {
  color: #FFFDF8;
}
.vk-m3-field-input::placeholder {
  color: transparent;
}
.vk-m3-field-label {
  position: absolute;
  right: 46px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  padding: 0 5px;
  border-radius: 4px;
  transition: top 0.18s ease, right 0.18s ease, font-size 0.18s ease, color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.vk-m3-field:focus-within .vk-m3-field-label,
.vk-m3-field.has-value .vk-m3-field-label,
.vk-m3-field-input:not(:placeholder-shown) + .vk-m3-field-label {
  top: 0;
  right: 14px;
  transform: translateY(-50%);
  font-size: 11px;
  background-color: #13161E;
}
.vk-m3-field:focus-within .vk-m3-field-label {
  color: #FFE082;
}
.vk-m3-field.has-value:not(:focus-within) .vk-m3-field-label,
.vk-m3-field:not(:focus-within) .vk-m3-field-input:not(:placeholder-shown) + .vk-m3-field-label {
  color: rgba(255, 255, 255, 0.62);
}
.vk-m3-field-trailing {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255, 224, 130, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: -6px;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.vk-m3-field-trailing:hover,
.vk-m3-field-trailing:active {
  background: rgba(255, 224, 130, 0.12);
  color: #FFE082;
}
.vk-m3-field-trailing svg {
  width: 20px;
  height: 20px;
}

/* Custom M3 Golden Checkbox matching AuthScreen.kt lines 411-457 */
.vk-auth-remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  width: fit-content;
}
.vk-auth-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.vk-auth-checkbox-box {
  width: 20px;
  height: 20px;
  margin: 2px;
  border-radius: 4px;
  border: 2px solid rgba(212, 175, 55, 0.55);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0F1015;
  flex-shrink: 0;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.vk-auth-checkbox-box svg {
  width: 15px;
  height: 15px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.14s ease, transform 0.14s ease;
}
.vk-auth-checkbox-input:checked + .vk-auth-checkbox-box {
  background: #D4AF37;
  border-color: #D4AF37;
}
.vk-auth-checkbox-input:checked + .vk-auth-checkbox-box svg {
  opacity: 1;
  transform: scale(1);
}
.vk-auth-remember-text {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

/* Shared input wrapper kept for Settings & Home dialogs */
.vk-auth-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(22, 25, 34, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 0 14px;
  min-height: 52px;
  transition: border-color 0.2s ease;
}
.vk-auth-input-wrap:focus-within {
  border-color: #FFE082;
}
.vk-auth-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFDF8;
  font-size: 14px;
  padding: 12px 0;
}

/* Exact 3D GoldenSparkleButton (AuthScreen.kt lines 599-685) */
.vk-auth-cta {
  position: relative;
  width: 100%;
  height: 54px;
  margin-top: 4px;
  border-radius: 16px;
  background: linear-gradient(180deg, #FFF1BD 0%, #FFE082 33%, #D4AF37 67%, #AA8012 100%);
  border: none;
  color: #141002;
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.45), 0 6px 14px rgba(0, 0, 0, 0.45);
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.14s ease, opacity 0.16s ease;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.vk-auth-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1.2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, #FFE082 50%, rgba(255, 255, 255, 0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.vk-auth-cta:active:not(:disabled) {
  transform: scale(0.97);
  box-shadow: 0 5px 12px rgba(212, 175, 55, 0.35), 0 2px 8px rgba(0, 0, 0, 0.4);
}
.vk-auth-cta:disabled {
  opacity: 0.88;
  cursor: wait;
}
.vk-auth-cta-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2.6px solid rgba(26, 21, 4, 0.22);
  border-top-color: #1A1504;
  animation: vkSpin 0.75s linear infinite;
}
.vk-auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  padding-bottom: 16px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  flex-shrink: 0;
}
.vk-auth-footer-icon {
  width: 15px;
  height: 15px;
  color: rgba(212, 175, 55, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vk-auth-footer-icon svg {
  width: 15px;
  height: 15px;
}

/* Emerald action button + Chat bubbles/textarea + Scanner preview stage */
.vk-btn-emerald {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #04170F;
  border: 1px solid rgba(110, 231, 183, 0.55);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.vk-chat-bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 20px;
  font-size: 13.5px;
  line-height: 1.82;
  word-wrap: break-word;
}
.vk-chat-bubble.user {
  background: linear-gradient(135deg, #FFE082, #D4AF37);
  color: #09090D;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-top-right-radius: 6px;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.22);
}
.vk-chat-bubble.assistant {
  align-self: flex-end;
  background: linear-gradient(155deg, #191922, #111117);
  color: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-top-left-radius: 6px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.vk-chat-textarea {
  flex: 1;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.65;
  max-height: 115px;
  resize: none;
}
.vk-chat-textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.vk-md p { margin: 0 0 8px; }
.vk-md p:last-child { margin-bottom: 0; }
.vk-md ul, .vk-md ol { padding-right: 18px; margin: 6px 0 8px; }
.vk-md li { margin-bottom: 4px; }
.vk-md h1, .vk-md h2, .vk-md h3 {
  color: var(--gold-champagne);
  font-size: 14.5px;
  font-weight: 900;
  margin: 10px 0 6px;
}
.vk-md strong { color: var(--gold-champagne); }

.vk-scanner-preview-stage {
  position: relative;
  width: 100%;
  background: #09090D;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.vk-scanner-preview-stage img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* ==================== ADLIRAN FULL-BLEED BROWSER (Exact AdliranScreen.kt Parity) ==================== */
.vk-main-viewport.vk-adliran-viewport {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.vk-adliran-shell {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  background: #0C0D12;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.vk-adliran-loading-veil {
  position: absolute;
  inset: 0;
  z-index: 15;
  background: #0C0D12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.vk-adliran-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(212, 175, 55, 0.22);
  border-top-color: #FFDF73;
  animation: vkSpinGold 0.85s linear infinite;
}

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

.vk-adliran-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: rgba(212, 175, 55, 0.18);
  z-index: 20;
  overflow: hidden;
}

.vk-adliran-progress-bar {
  width: 44%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #FFDF73, #D4AF37);
  animation: vkAdlSlide 1.15s infinite ease-in-out;
}

@keyframes vkAdlSlide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}

.vk-adliran-iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  background: #0C0D12;
  display: block;
}

.vk-adliran-controls {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(var(--safe-bottom) + 92px);
  z-index: 25;
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transition: bottom 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}

.vk-adliran-controls.vk-nav-hidden {
  bottom: calc(var(--safe-bottom) + 24px);
}

.vk-adliran-fab {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20, 23, 32, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.14s ease;
}

.vk-adliran-fab:active {
  transform: scale(0.92);
}

.vk-adliran-fab svg {
  width: 22px;
  height: 22px;
}

.vk-adliran-fab-refresh {
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: #D4AF37;
}

.vk-adliran-fab-back {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
}

/* ==================== SETTINGS SCREEN 3D PARITY (Exact SettingsScreen.kt & LuxuryVakilinoButton.kt) ==================== */
.vk-set-page {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 6px 2px 24px;
}

.vk-set-ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 85% 12%, rgba(212, 175, 55, 0.11) 0%, rgba(154, 116, 32, 0.04) 38%, transparent 72%),
    radial-gradient(circle at 18% 45%, rgba(255, 223, 115, 0.07) 0%, rgba(89, 65, 14, 0.025) 35%, transparent 65%),
    linear-gradient(180deg, #0A0A0F 0%, #050507 52%, #08080C 100%);
}

.vk-set-page > *:not(.vk-set-ambient-bg) {
  position: relative;
  z-index: 1;
}

/* Exact Settings3DHeroHeader (SettingsScreen.kt lines 763-939) */
.vk-set-hero-header {
  position: relative;
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 26px;
  background: linear-gradient(135deg, #1A1A24 0%, #101016 55%, #0A0A0E 100%);
  border: 1.2px solid rgba(255, 223, 115, 0.55);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.72), 0 8px 24px rgba(212, 175, 55, 0.2), inset 0 1px 0 rgba(255, 223, 115, 0.25);
  overflow: hidden;
}

.vk-set-hero-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(255, 223, 115, 0.14), transparent);
  pointer-events: none;
}

.vk-set-back-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, #23232E 0%, #121218 100%);
  border: 1px solid rgba(255, 223, 115, 0.45);
  color: #FFDF73;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(212, 175, 55, 0.18);
  transition: transform 0.14s ease;
  position: relative;
  z-index: 2;
}

.vk-set-back-btn:active {
  transform: scale(0.92);
}

.vk-set-back-btn svg {
  width: 22px;
  height: 22px;
}

/* Exact ScrollReactive3DCard (SettingsScreen.kt lines 946-1072) */
.vk-set-3d-card {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, #181820 0%, #101016 55%, #0B0B0F 100%);
  border: 1px solid rgba(255, 223, 115, 0.34);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.68), 0 6px 18px rgba(212, 175, 55, 0.14);
  overflow: hidden;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.vk-set-3d-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(255, 223, 115, 0.09), transparent);
  pointer-events: none;
  z-index: 0;
}

.vk-set-3d-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.32));
  pointer-events: none;
  z-index: 0;
}

.vk-set-3d-card > * {
  position: relative;
  z-index: 1;
}

.vk-set-3d-card.is-hero {
  border-radius: 26px;
  background:
    radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.14), transparent 55%),
    linear-gradient(135deg, #1D1A14 0%, #121218 52%, #0B0B10 100%);
  border: 1.5px solid rgba(255, 223, 115, 0.68);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.78), 0 8px 26px rgba(212, 175, 55, 0.25);
}

.vk-set-3d-card.is-hero::before {
  background: linear-gradient(180deg, rgba(255, 223, 115, 0.15), transparent);
}

.vk-set-3d-card.is-clickable {
  cursor: pointer;
}

.vk-set-3d-card.is-clickable:active {
  transform: scale(0.978);
}

/* Exact Icon3DPedestal (SettingsScreen.kt lines 2229-2274) */
.vk-set-icon-pedestal {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #252219 0%, #121217 55%, #09090D 100%);
  border: 1.2px solid rgba(255, 223, 115, 0.62);
  color: #FFDF73;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.65), 0 4px 14px rgba(255, 223, 115, 0.22);
}

.vk-set-icon-pedestal.is-sm {
  width: 46px;
  height: 46px;
  min-width: 46px;
}

.vk-set-icon-pedestal.is-hero {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.75), 0 6px 18px rgba(255, 223, 115, 0.34);
}

.vk-set-icon-pedestal.is-teal {
  border-color: rgba(45, 212, 191, 0.62);
  color: #2DD4BF;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.65), 0 4px 14px rgba(45, 212, 191, 0.22);
}

.vk-set-icon-pedestal svg {
  width: 24px;
  height: 24px;
}

/* 3D Recessed Dark Box (InsetDarkSurface #09090D) */
.vk-set-inset-box {
  background: #09090D;
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 14px;
  padding: 14px;
}

.vk-set-inset-box.is-lg {
  border-radius: 18px;
  padding: 16px;
}

/* 3D Chevron Box */
.vk-set-chevron-box {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.32);
  color: #FFDF73;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vk-set-chevron-box svg {
  width: 20px;
  height: 20px;
}

/* Status Pills */
.vk-set-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.vk-set-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.vk-set-pill.is-emerald {
  background: rgba(6, 46, 34, 0.72);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #34D399;
}

.vk-set-pill.is-gold {
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(255, 223, 115, 0.45);
  color: #FFDF73;
}

.vk-set-pill.is-crimson {
  background: rgba(45, 10, 16, 0.75);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #F87171;
}

/* Subscription Date 3D Inset Tiles */
.vk-set-date-tile {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 223, 115, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vk-set-date-tile.is-emerald {
  border-color: rgba(52, 211, 153, 0.25);
}

.vk-set-date-tile.is-crimson {
  border-color: rgba(248, 113, 113, 0.28);
}

/* Exact LuxuryVakilinoButton (GOLD, BLACK_GOLD, RUBY_RED from LuxuryVakilinoButton.kt) */
.vk-lux-btn {
  position: relative;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), filter 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}

.vk-lux-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  pointer-events: none;
}

.vk-lux-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.vk-lux-btn > * {
  position: relative;
  z-index: 1;
}

.vk-lux-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

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

.vk-lux-btn:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.vk-lux-btn-gold {
  background: linear-gradient(180deg, #FEE79A 0%, #E5BE50 26%, #CA982E 52%, #D8A93E 78%, #B68420 100%);
  border: 1.5px solid #FFE88E;
  color: #141416;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.vk-lux-btn-gold::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
}

.vk-lux-btn-black-gold {
  background: linear-gradient(180deg, #222227 0%, #131317 38%, #09090C 72%, #060608 100%);
  border: 1.5px solid #D4AF37;
  color: #FFDF73;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 223, 115, 0.22);
}

.vk-lux-btn-black-gold::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent);
}

.vk-lux-btn-ruby {
  background: linear-gradient(180deg, #A81C38 0%, #801026 36%, #5B0819 72%, #3E030F 100%);
  border: 1.5px solid #FFDF73;
  color: #FFDF73;
  box-shadow: 0 8px 22px rgba(168, 28, 56, 0.42), inset 0 1px 0 rgba(255, 223, 115, 0.28);
}

.vk-lux-btn-ruby::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent);
}

/* AI Personalization 3D Preset Chips */
.vk-ai-preset-chip {
  padding: 7px 12px;
  border-radius: 12px;
  background: #12121A;
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11.5px;
  font-weight: 700;
  transition: all 0.16s ease;
}

.vk-ai-preset-chip.active {
  background: linear-gradient(135deg, rgba(255, 224, 125, 0.26), rgba(212, 175, 55, 0.16));
  border-color: #FFE07D;
  color: #FFE07D;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.22);
}

/* Inline Material SVG Icon Helper */
.vk-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.vk-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==================== IN-APP SUBSCRIPTION CHECKOUT POPUP (Exact VakilinoCheckoutWebViewDialog.kt Parity) ==================== */
.vk-checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, var(--safe-top)) 10px max(12px, var(--safe-bottom));
}

.vk-checkout-dialog {
  width: 100%;
  max-width: 440px;
  height: 92dvh;
  max-height: 780px;
  border-radius: 22px;
  overflow: hidden;
  background: #0F1117;
  border: 1.5px solid rgba(255, 223, 115, 0.45);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.78);
  display: flex;
  flex-direction: column;
}

.vk-checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #161822 0%, #0F1117 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
  flex-shrink: 0;
}

.vk-checkout-icon-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 223, 115, 0.28);
  color: #FFDF73;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.vk-checkout-icon-btn svg {
  width: 18px;
  height: 18px;
}

.vk-checkout-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  background: #07080b;
  overflow: hidden;
}

.vk-checkout-loading-veil {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #07080b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.vk-checkout-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #07080b;
  display: block;
}

.vk-checkout-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #07080b;
}

/* ==================== FULL-BLEED SCANNER STAGE (Exact ScannerScreen.kt Parity) ==================== */
.vk-scan-root {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  background: #000000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vk-scan-filter-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.vk-scan-filter-strip::-webkit-scrollbar {
  display: none;
}

/* ==================== v1.1.0 READER ZOOM, SCANNER CROP HANDLES & CHATBOT 3-DOT ANIMATIONS ==================== */
.vk-reader-zoom-bar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 12px;
  padding: 3px;
}

.vk-reader-zoom-btn {
  width: 30px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: rgba(212, 175, 55, 0.14);
  color: #FFDF73;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.vk-reader-zoom-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.vk-reader-zoom-pill {
  min-width: 46px;
  height: 28px;
  padding: 0 7px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #F8F7F4;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.vk-crop-handle {
  position: absolute;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  margin-top: -13px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFDF73 0%, #D4AF37 70%);
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.7), 0 0 0 4px rgba(212, 175, 55, 0.25);
  cursor: grab;
  touch-action: none;
  z-index: 6;
}

.vk-crop-handle:active {
  cursor: grabbing;
  transform: scale(1.18);
}

.vk-checkout-progress {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), #FFDF73, rgba(212, 175, 55, 0.15));
  background-size: 200% 100%;
  animation: vkGoldProgress 1.2s linear infinite;
  transition: opacity 0.25s ease;
  flex-shrink: 0;
}

@keyframes vkGoldProgress {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.vk-ai-dots-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  border-radius: 18px;
  border-top-left-radius: 6px;
  background: #14141A;
  border: 1px solid rgba(212, 175, 55, 0.34);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.vk-ai-dot {
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFDF73, #D4AF37);
  display: inline-block;
  animation: vkDotBounce 1.1s ease-in-out infinite;
}

@keyframes vkDotBounce {
  0%, 80%, 100% {
    transform: translateY(0) scale(0.85);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-5px) scale(1.15);
    opacity: 1;
  }
}

.vk-type-cursor {
  display: inline-block;
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #FFDF73;
  margin-right: 4px;
  vertical-align: middle;
  animation: vkCursorBlink 0.75s ease-in-out infinite;
}

@keyframes vkCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ==================== v1.1.0 LUXURY TEMPLATE CARD ANIMATIONS (Exact ChatbotScreen.kt Parity) ==================== */
.vk-tpl-shimmer-card {
  position: relative;
  height: 60px;
  padding: 1.4px;
  border-radius: 17px;
  border: none;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
  transition: transform 0.16s ease, box-shadow 0.2s ease;
  will-change: transform, opacity;
}

.vk-tpl-shimmer-card::before {
  content: '';
  position: absolute;
  inset: -90%;
  background: conic-gradient(
    from 0deg,
    rgba(212, 175, 55, 0.14) 0deg,
    rgba(212, 175, 55, 0.22) 110deg,
    rgba(255, 223, 115, 0.95) 160deg,
    rgba(255, 245, 200, 1) 180deg,
    rgba(255, 223, 115, 0.9) 200deg,
    rgba(212, 175, 55, 0.2) 250deg,
    rgba(212, 175, 55, 0.14) 360deg
  );
  animation: vkTplGoldSweep 3.8s linear infinite;
  animation-delay: var(--shimmer-delay, 0ms);
  pointer-events: none;
}

@keyframes vkTplGoldSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.vk-tpl-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 15.6px;
  background: linear-gradient(180deg, #191922 0%, #101016 100%);
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow: hidden;
}

.vk-tpl-top-rim {
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 232, 155, 0.55), transparent);
  pointer-events: none;
}

.vk-tpl-icon-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, #2E2616, #161410);
  border: 1px solid rgba(255, 223, 115, 0.52);
  color: #FFDF73;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
}

.vk-tpl-icon-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 223, 115, 0.28) 0%, transparent 72%);
  pointer-events: none;
  animation: vkTplGlowPulse 2.8s ease-in-out infinite;
}

@keyframes vkTplGlowPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.1); }
}

.vk-tpl-title {
  flex: 1;
  font-size: 11.8px;
  font-weight: 800;
  color: #F3EFEA;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vk-tpl-enter {
  opacity: 0;
  transform: translateY(32px) scale(0.76);
  animation: vkTplSpringIn 0.54s cubic-bezier(0.22, 1.25, 0.36, 1) forwards;
  animation-delay: var(--tpl-delay, 0ms);
}

@keyframes vkTplSpringIn {
  0% {
    opacity: 0;
    transform: translateY(32px) scale(0.76);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.vk-tpl-exit {
  animation: vkTplExitOut 0.16s ease-in forwards !important;
}

@keyframes vkTplExitOut {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-16px) scale(0.88); }
}

.vk-tpl-shimmer-card:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.24);
}

.vk-tpl-shimmer-card:active {
  transform: scale(0.95);
}

/* ==================== v1.1.0 CASE ATTACHMENTS, VOICE RECORDER & IN-PAGE MEDIA VIEWERS ==================== */
.vk-rec-pulse-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #FF453A;
  box-shadow: 0 0 0 0 rgba(255, 69, 58, 0.7);
  animation: vkRecPulse 1.15s ease-out infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes vkRecPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 69, 58, 0.75); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(255, 69, 58, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 69, 58, 0); }
}

.vk-case-att-card {
  background: linear-gradient(180deg, #171822 0%, #111219 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease;
}

.vk-case-att-card:hover {
  border-color: rgba(255, 223, 115, 0.55);
}

.vk-case-att-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(255, 223, 115, 0.32);
  color: #FFDF73;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.vk-case-att-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vk-case-audio-bar {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vk-case-audio-range {
  flex: 1;
  accent-color: #FFDF73;
  cursor: pointer;
  height: 4px;
}

.vk-media-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  background: rgba(5, 6, 10, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  padding: calc(var(--safe-top, 0px) + 10px) 12px calc(var(--safe-bottom, 0px) + 12px);
}

.vk-media-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #14161F;
  border: 1px solid rgba(255, 223, 115, 0.32);
  margin-bottom: 10px;
  flex-shrink: 0;
}

.vk-media-viewer-stage {
  flex: 1;
  min-height: 0;
  border-radius: 16px;
  background: #0B0C11;
  border: 1px solid rgba(212, 175, 55, 0.25);
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ==================== v1.1.0 FLOATING CALENDAR REMINDER BANNER ==================== */
.vk-reminder-banner {
  position: fixed;
  top: calc(var(--safe-top, 0px) + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 440px;
  z-index: 10050;
  background: linear-gradient(135deg, #1E1A10 0%, #12131A 100%);
  border: 1.5px solid rgba(255, 223, 115, 0.72);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.75), 0 0 24px rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: vkTplSpringIn 0.4s ease forwards;
}

/* ==================== LAWS BANK SKELETON SHIMMER LOADERS ==================== */
@keyframes vkLawSkeletonShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.vk-law-skeleton-card {
  border-radius: 18px;
  padding: 15px 14px;
  background: rgba(20, 20, 26, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.vk-skel-bar {
  display: block;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(212, 175, 55, 0.16) 50%,
    rgba(255, 255, 255, 0.05) 80%
  );
  background-size: 200% 100%;
  animation: vkLawSkeletonShimmer 1.45s ease-in-out infinite;
}

.vk-skel-bar-gold {
  background: linear-gradient(
    90deg,
    rgba(212, 175, 55, 0.14) 20%,
    rgba(255, 223, 115, 0.34) 50%,
    rgba(212, 175, 55, 0.14) 80%
  );
  background-size: 200% 100%;
  animation: vkLawSkeletonShimmer 1.45s ease-in-out infinite;
}

/* ==================== SCANNER EXPORT / PDF GENERATION ANIMATION ==================== */
@keyframes vkSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes vkExportScanBeam {
  0%, 100% { top: 14%; opacity: 0.35; }
  50% { top: 76%; opacity: 1; }
}

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

.vk-export-anim-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 6px 8px;
}

.vk-export-orb {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vk-export-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(212, 175, 55, 0.16);
  border-top-color: #FFDF73;
  border-right-color: #D4AF37;
  animation: vkSpin 1.05s linear infinite;
}

.vk-export-ring-inner {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 223, 115, 0.45);
  animation: vkSpinReverse 2.4s linear infinite;
}

.vk-export-doc-core {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 25%, rgba(255, 223, 115, 0.28), rgba(212, 175, 55, 0.08));
  border: 1px solid rgba(255, 223, 115, 0.45);
  color: #FFDF73;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.25);
}

.vk-export-scan-beam {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #FFDF73, transparent);
  box-shadow: 0 0 8px #FFDF73;
  animation: vkExportScanBeam 1.25s ease-in-out infinite;
}

.vk-export-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  overflow: hidden;
  margin-top: 14px;
}

.vk-export-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #B8860B, #FFDF73, #D4AF37, #FFDF73);
  background-size: 200% 100%;
  transition: width 0.26s ease;
  animation: vkExportShimmer 1.3s linear infinite;
}

.vk-export-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
}

.vk-export-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFDF73;
  animation: vkDotBounce 1.1s ease-in-out infinite;
}

.vk-export-dots span:nth-child(2) { animation-delay: 0.16s; }
.vk-export-dots span:nth-child(3) { animation-delay: 0.32s; }






