/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  overflow-x: hidden;
}
body {
  font-family: 'Noto Sans', 'Noto Sans Kazakh', system-ui, sans-serif;
  background: #ECEFF1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── CSS VARIABLES ── */
:root {
  --acc: #1565C0;
  --acc2: #1976D2;
  --acc3: #42A5F5;
  --acc-bg: #E3F2FD;
  --ok: #2E7D32;
  --ok2: #388E3C;
  --ok-bg: #E8F5E9;
  --ok-brd: #66BB6A;
  --warn: #E65100;
  --warn2: #F57C00;
  --warn-bg: #FFF3E0;
  --warn-brd: #FFA726;
  --err: #C62828;
  --err-bg: #FFEBEE;
  --err-brd: #EF5350;
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-400: #BDBDBD;
  --gray-500: #9E9E9E;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.1);
  --shadow: 0 2px 12px rgba(0,0,0,.12);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.16);
  --r: 14px;
  --r-sm: 10px;
  --red-warn:#BF360C ;
  --green-warn:#1B5E20 ;
}
[data-dark] {
  /* DAX AI palette */
  --white:   #1a1a2e;
  --gray-50: #22223a;
  --gray-100: #2a2a44;
  --gray-200: #32324e;
  --gray-300: #3e3e5a;
  --gray-400: #5a5a7a;
  --gray-500: #7070a0;
  --gray-600: #9090b8;
  --gray-700: #b0b0d0;
  --gray-800: #c8c8e8;
  --gray-900: #e0e0f0;
  --acc:      #4f80ff;
  --acc2:     #6a96ff;
  --acc-bg:   rgba(79,128,255,0.12);
  --ok:       #0f9e62;
  --ok2:      #0E9F6E;
  --ok-bg:    rgba(24,214,140,0.1);
  --ok-brd:   #18d68c;
  --warn:     #cc8800;
  --warn2:    #ffaa20;
  --warn-bg:  rgba(255,170,32,0.1);
  --warn-brd: #ffaa20;
  --err:      #ff4f4f;
  --err-bg:   rgba(255,79,79,0.1);
  --err-brd:  #ff4f4f;
  --red-warn: #cc8800 ;
  --green-warn:#287c2f ;
}
[data-dark] .hdr {
  background: #22223a;
  border-bottom: 1px solid #32324e;
}
[data-dark] .hdr-btn {
  background: rgba(255,255,255,0.08);
}
[data-dark] .hdr-btn:hover {
  background: rgba(255,255,255,0.14);
}
[data-dark] .vehicle-banner {
  background: rgba(79,128,255,0.1);
}
[data-dark] .snack-close-btn {
  background: #2a2a44;
  color: #9090b8;
}
[data-dark] .lang-card {
  border-color: #32324e;
}
[data-dark] .lang-card:hover,
[data-dark] .lang-card.selected {
  border-color: #4f80ff;
  background: rgba(79,128,255,0.12);
}
[data-dark] .plate-input {
  background: #22223a;
  border-color: #3e3e5a;
  color: #e0e0f0;
}
[data-dark] .plate-input:focus {
  border-color: #4f80ff;
  box-shadow: 0 0 0 2px rgba(79,128,255,0.2);
}
[data-dark] .plate-input.error {
  border-color: #ff4f4f;
  box-shadow: 0 0 0 2px rgba(255,79,79,0.15);
}
[data-dark] .plate-field-label {
  background: #1a1a2e;
}
[data-dark] .queue-main-card {
  border-color: #32324e;
}
[data-dark] .queue-plate-chip {
  background: #2a2a44;
}
[data-dark] .sett-row {
  background: #22223a;
  border-color: #32324e;
}
[data-dark] .lang-option {
  background: #22223a;
  border-color: #32324e;
  color: #e0e0f0;
}
[data-dark] .lang-option.active {
  border-color: #4f80ff;
  background: rgba(79,128,255,0.12);
  color: #4f80ff;
}
[data-dark] .demo-btn {
  background: #22223a;
  border-color: #32324e;
  color: #e0e0f0;
}
[data-dark] .demo-btn:hover {
  background: #2a2a44;
}
[data-dark] #snackbar {
  background: #22223a;
  border-color: #32324e;
}
[data-dark] .toggle {
  background: #3e3e5a;
}
[data-dark] .field-error {
  background: rgba(255,79,79,0.08);
}

.no-transition * {
  transition: none !important;
}

.no-transition-btn {
  transition: none !important;
}

.hidden{
  display: none !important;
}

.btn-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

#continueBtn{
  position: relative;
}

/* ── APP SHELL ── */
#app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  overflow-x: hidden;
}

/* ── MATERIAL ICONS ── */
.mi {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  flex-shrink: 0;
}

/* ── HEADER ── */
.hdr {
  background: var(--acc);
  padding: 0 16px;
  padding-top: env(safe-area-inset-top);
  height: calc(64px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}
.hdr-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  letter-spacing: -0.5px;
  border: 1px solid rgba(255,255,255,0.3);
}
.brand-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.2px;
}
.hdr-actions {
  display: flex;
  gap: 4px;
}
.hdr-btn {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background 0.2s;
}
.hdr-btn:hover { background: rgba(255,255,255,0.25); }
.hdr-btn:active { transform: scale(0.92); }
.hdr-btn .mi { font-size: 24px; }

/* ── SNACKBAR (уведомление) ── */
#snackbar {
  display: none;
  position: absolute;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 12px;
  right: 12px;
  z-index: 200;
  background: var(--white);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  padding: 0;
  overflow: hidden;
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
#snackbar.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.snack-bar-accent {
  height: 4px;
  background: var(--acc);
}
#snackbar.snack-ok .snack-bar-accent { background: var(--ok2); }
#snackbar.snack-warn .snack-bar-accent { background: var(--warn2); }
#snackbar.snack-err .snack-bar-accent { background: var(--err); }
.snack-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 14px 16px;
}
.snack-icon-wrap { flex-shrink: 0; margin-top: 1px; }
.snack-icon-wrap .mi { font-size: 26px; color: var(--acc); }
#snackbar.snack-ok .snack-icon-wrap .mi { color: var(--ok2); }
#snackbar.snack-warn .snack-icon-wrap .mi { color: var(--warn2); }
#snackbar.snack-err .snack-icon-wrap .mi { color: var(--err); }
.snack-text { flex: 1; min-width: 0; }
.snack-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 4px;
  line-height: 1.3;
}
.snack-msg {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.5;
}
.snack-close-btn {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600);
  transition: background 0.15s;
  margin-top: -2px;
}
.snack-close-btn:hover { background: var(--gray-200); }
.snack-close-btn:active { transform: scale(0.9); }
.snack-close-btn .mi { font-size: 20px; }

/* ── SCREENS ── */
.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 20px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
  animation: screenIn 0.3s cubic-bezier(0.4,0,0.2,1);
}
.screen.active { display: flex; }
@keyframes screenIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.drawer-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.drawer-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 18px;
    transition: background .15s;
    flex-shrink: 0;
}

.drawer-close-btn i{
  font-size: 22px;
}

/* ── SCREEN: LANGUAGE ── */
.lang-hero {
  text-align: center;
  padding: 20px 0 32px;
}
.lang-hero .hero-icon { margin-bottom: 14px; }
.lang-hero .hero-icon .mi {
  color: var(--acc);
}
.lang-hero h1 {
  font-size: 22px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.lang-hero p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}
.lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lang-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--r);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: var(--shadow-sm);
}
.lang-card:hover { border-color: var(--acc); background: var(--acc-bg); }
.lang-card:active { transform: scale(0.95); }
.lang-card.selected { border: 2px solid var(--acc); background: var(--acc-bg); }
.lang-card .lc-code {
  font-size: 28px;
  font-weight: 700;
  color: var(--acc);
  letter-spacing: 2px;
  margin-bottom: 10px;
  line-height: 1;
  font-family: 'Noto Sans', sans-serif;
}
.lang-card .lc-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 3px;
}
.lang-card .lc-native {
  font-size: 12px;
  color: var(--gray-500);
}

/* ── SCREEN: INPUT ── */
.vehicle-banner {
  width: 100%;
  height: 80px;
  background: var(--acc-bg);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  overflow: hidden;
  position: relative;
}
.vehicle-banner .mi { font-size: 42px; color: var(--acc); position: relative; z-index: 1; }
.road-line {
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--acc3) 0, var(--acc3) 18px, transparent 18px, transparent 36px);
  animation: roadAnim 1.2s linear infinite;
  opacity: 0.4;
}
@keyframes roadAnim { from { background-position: 0; } to { background-position: -36px; } }

.screen-title {
  margin-top: 100px !important;
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 20px;
  margin-top: 0;
  letter-spacing: -0.3px;
}
.screen-sub {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* inline error */
.field-error {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--err-bg);
  border-left: 2px solid var(--err);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: 16px;
}
.field-error.show { display: flex; }
.field-error .mi { font-size: 22px; color: var(--err); flex-shrink: 0; align-self: center; }
.field-error span {
  font-size: 14px;
  font-weight: 500;
  color: var(--err);
  line-height: 1.4;
  align-self: center;
}

/* plate input */
.plate-field-wrap {
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
}
.plate-field-label {
  position: absolute;
  top: -11px; left: 14px;
  background: var(--white);
  padding: 0 6px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray-500);
  z-index: 1;
}
.plate-input {
  width: 100%;
  height: 68px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--r);
  padding: 0 20px;
  font-family: 'Noto Sans', 'Noto Sans Kazakh', monospace;
  font-size: 24px;
  font-weight: 600;
  color: var(--gray-900);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 5px;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  caret-color: var(--acc);
}
.plate-input::placeholder {
  font-family: 'Noto Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gray-400);
}
.plate-input:focus {
  border: 1px solid var(--acc);
  box-shadow: 0 0 0 2px rgba(21,101,192,0.1);
}
.plate-input.error {
  border: 1px solid var(--err);
  box-shadow: 0 0 0 2px rgba(198,40,40,0.08);
  animation: inputShake 0.35s ease;
}
@keyframes inputShake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ── SCREEN: QUEUE ── */
.queue-main-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--r);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.queue-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.queue-number {
  font-size: 60px;
  font-weight: 600;
  color: var(--acc);
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 12px;
  font-family: 'Noto Sans', monospace;
}
.queue-plate-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-100);
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: 2px;
}
.queue-plate-chip .mi { font-size: 20px; color: var(--gray-500); }

.status-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--r-sm);
  margin-bottom: 12px;
}
.status-banner.warning {
  background: var(--warn-bg);
  border-left: 2px solid var(--warn2);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.status-banner.success {
  background: var(--ok-bg);
  border-left: 2px solid var(--ok2);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.status-banner .mi {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.status-banner.warning .mi { color: var(--warn2); }
.status-banner.success .mi { color: var(--ok2); }
.status-banner-text { flex: 1; }
.status-banner-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}
.status-banner.warning .status-banner-title { color: var(--warn); }
.status-banner.success .status-banner-title { color: var(--ok); }
.status-banner-body {
  font-size: 13px;
  line-height: 1.5;
}
.status-banner.warning .status-banner-body { color:  var(--red-warn); }
.status-banner.success .status-banner-body { color:  var(--green-warn); }

/* pulse dot */
.pulse-dot {
  width: 10px; height: 10px;
  background: var(--warn2);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
  animation: pulseAnim 1.4s ease-in-out infinite;
}
@keyframes pulseAnim {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}

/* ── SCREEN: CALLED ── */
#screen-called {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.call-animation {
  width: 120px; height: 120px;
  position: relative;
  margin: 0 auto 28px;
  flex-shrink: 0;
}
.call-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--ok2);
  animation: ringExpand 1.8s ease-out infinite;
}
.call-ring:nth-child(2) { animation-delay: 0.6s; }
.call-ring:nth-child(3) { animation-delay: 1.2s; }
@keyframes ringExpand {
  from { transform: scale(0.65); opacity: 1; }
  to { transform: scale(1.5); opacity: 0; }
}
.call-center {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--ok2);
  border-radius: 50%;
  animation: callBounce 0.45s cubic-bezier(0.175,0.885,0.32,1.275);
}
.call-center .mi { font-size: 48px; color: #fff; }
@keyframes callBounce {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
.called-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  width: 100%;
}
.called-subtitle {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 24px;
  width: 100%;
}
.called-info-card {
  background: var(--white);
  border: 2px solid var(--ok2);
  border-radius: var(--r);
  padding: 0;
  width: 100%;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.called-info-header {
  background: var(--ok2);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.called-info-header .mi { font-size: 20px; color: #fff; }
.called-info-header span {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.called-info-rows { padding: 4px 0; }
.called-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-200);
}
.called-info-row:last-child { border-bottom: none; }
.ci-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 400;
}

.ci-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: 1px;
  font-family: 'Noto Sans', monospace;
}

/* ── BUTTONS ── */
.btn {
  width: 100%;
  height: 58px;
  border-radius: var(--r);
  border: none;
  font-family: 'Noto Sans', 'Noto Sans Kazakh', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  letter-spacing: -0.2px;
}
.btn:active { transform: scale(0.97); }
.btn .mi { font-size: 22px; }
.btn-primary {
  background: var(--acc);
  color: #fff;
  box-shadow: 0 4px 16px rgba(21,101,192,0.3);
}
.btn-primary:hover { background: var(--acc2); }
.btn-primary:disabled {
  background: var(--gray-300);
  color: var(--gray-500);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.btn-success {
  background: var(--ok2);
  color: #fff;
  box-shadow: 0 4px 16px rgba(56,142,60,0.3);
}
.btn-success:hover { background: var(--ok); }
.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-900);
  border: 1px solid var(--gray-300);
}
.btn-secondary:hover { background: var(--gray-200); }

.screen-footer {
  margin-top: auto;
  padding-top: 24px;
}

.drawer-close-btn:hover {
    background: var(--gray-300);
}

/* ── SETTINGS PANEL ── */
#settings-panel {
  position: absolute;
  inset: 0;
  z-index: 300;
  display: none;
  overflow: hidden;
}
#settings-panel.open { display: block; }
.settings-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  cursor: pointer;
  animation: fadeOverlay 0.25s ease;
}
@keyframes fadeOverlay { from { opacity: 0; } to { opacity: 1; } }
.settings-drawer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 0 20px calc(20px + env(safe-area-inset-bottom));
  max-height: 88%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: drawerUp 0.32s cubic-bezier(0.4,0,0.2,1);
}
@keyframes drawerUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.drawer-handle {
  width: 40px; height: 4px;
  background: var(--gray-300);
  border-radius: 2px;
  margin: 12px auto 20px;
}
.drawer-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--gray-900);
    letter-spacing: -0.2px;
}
.sett-section { margin-bottom: 24px; }
.sett-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  margin-bottom: 10px;
  padding-left: 4px;
}
.sett-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-sm);
  margin-bottom: 8px;
}
.sett-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sett-row-left .mi { font-size: 24px; color: var(--acc); }
.sett-row-title { font-size: 14px; font-weight: 500; color: var(--gray-900); }
.sett-row-sub { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

/* Toggle switch */
.toggle {
  width: 50px; height: 28px;
  background: var(--gray-300);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle.on { background: var(--acc); }
.toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.toggle.on::after { transform: translateX(22px); }

/* Language mini grid */
.lang-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-800);
  transition: all 0.15s;
}
.lang-option:active { transform: scale(0.95); }
.lang-option.active { border-color: var(--acc); background: var(--acc-bg); color: var(--acc); }

/* demo buttons */
.demo-grid { display: grid; gap: 8px; }
.demo-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-sm);
  font-family: 'Noto Sans', 'Noto Sans Kazakh', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.demo-btn:hover { background: var(--gray-100); }
.demo-btn:active { transform: scale(0.97); }
.demo-btn .mi { font-size: 22px; color: var(--acc); }