* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-white: #FFFFFF;
  --bg-light: #F3F5FF;
  --bg-card: #E8EBF5;
  --text-dark: #212121;
  --text-blue: #18438C;
  --text-gray: #434550;
  --gradient-blue: linear-gradient(90deg, rgba(104,167,255,1) 0%, rgba(160,203,255,1) 100%);
  --gradient-blue-dark: linear-gradient(180deg, #0052AD 0%, #3587E2 51%, #51A3FF 100%);
  --gradient-pink: linear-gradient(238deg, #E88A98 0%, #C5A6CF 51%, #B3B6EB 100%);
  --border-light: #E1EDFE;
  --ruble-bg: #F8FBFF;
  --ruble-card-bg: #F6F8FF;
  --shadow-card: 0px 4px 6px 0px rgba(23,26,54,0.05);
  --shadow-modal: 0px 16px 27.4px 0px rgba(0,0,0,0.25);
  --font: 'Montserrat', sans-serif;
}

html, body {
  font-family: var(--font);
  background: var(--bg-white);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  max-width: 100vw;
  min-height: 100vh;
}

#app {
  max-width: 394px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.screen {
  display: none;
}
.screen.active {
  display: block;
}

/* ========== HEADER ========== */
.header {
  position: relative;
  width: 100%;
  height: 201px;
  background: var(--bg-light);
  overflow: hidden;
  z-index: 1;
}

.header-bg {
  position: absolute;
  inset: 0;
}

.header-rect-blue {
  position: absolute;
  left: 0;
  top: 21px;
  width: 100px;
  height: 144px;
}

.header-rect-pink-1 {
  position: absolute;
  right: -1px;
  top: 40px;
  width: 122px;
  height: 125px;
}

.header-rect-pink-2 {
  position: absolute;
  left: 126px;
  top: 143px;
  width: 122px;
  height: 22px;
}

.header-content {
  position: absolute;
  left: 20px;
  top: 28px;
  width: calc(100% - 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 2;
}

.header-logo img {
  display: block;
}

.header-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.22em;
  text-align: center;
  color: var(--text-dark);
}

.header-info-bar {
  position: absolute;
  left: -2px;
  top: 165px;
  width: calc(100% + 5px);
  height: 36px;
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 3;
}

.header-info-inner {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  flex-shrink: 0;
  will-change: transform;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  flex-shrink: 0;
}

.header-info-inner span {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.22em;
  color: var(--text-blue);
  white-space: nowrap;
}

.header-info-inner img {
  flex-shrink: 0;
}

/* ========== CATEGORIES ========== */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 40px 16px 0;
}

.category-card {
  width: calc(50% - 4px);
  height: 55px;
  background: var(--bg-card);
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  cursor: pointer;
  transition: transform 0.15s;
}

.category-card:active {
  transform: scale(0.97);
}

.category-icon-wrap {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card span {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.14em;
  color: var(--text-dark);
}

/* ========== QUIZ ========== */
.quiz-section {
  padding: 40px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.quiz-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.quiz-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.22em;
  text-align: center;
  color: var(--text-dark);
}

.quiz-subtitle {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.22em;
  text-align: center;
  color: var(--text-blue);
}

.quiz-card {
  width: 100%;
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.quiz-question-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 284px;
}

.quiz-q-label {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.22em;
  text-align: center;
  color: var(--text-blue);
}

.quiz-q-text {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.22em;
  text-align: center;
  color: var(--text-dark);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 12px;
  background: var(--gradient-blue);
  border: none;
  border-radius: 9px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: transform 0.15s, opacity 0.15s;
}

.quiz-option:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.quiz-option span:last-child {
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.14em;
  color: var(--bg-white);
}

.radio-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
}

.quiz-option.selected .radio-icon {
  opacity: 0.7;
}

.quiz-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 256px;
}

.quiz-step {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.22em;
  text-align: center;
  color: var(--text-dark);
}

.quiz-note {
  font-weight: 500;
  font-size: 11px;
  line-height: 1.22em;
  text-align: center;
  color: var(--text-blue);
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 16px 62px;
  background: var(--gradient-blue);
  border: none;
  border-radius: 9px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.14em;
  color: var(--bg-white);
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  width: auto;
}

.btn-primary:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.btn-outline {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 62px;
  background: var(--bg-white);
  border: none;
  border-radius: 9px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.14em;
  background-image: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  position: relative;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9px;
  padding: 1px;
  background: var(--gradient-blue);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ========== MODAL OVERLAY ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-card {
  background: var(--bg-white);
  border-radius: 13px;
  box-shadow: var(--shadow-modal);
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 354px;
  width: 100%;
}

.modal-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.22em;
  text-align: center;
  color: var(--text-dark);
}

.modal-desc {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.22em;
  text-align: center;
  color: var(--text-dark);
}

.warning-icon-wrap img {
  display: block;
}

.modal-info {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.22em;
  text-align: center;
  color: var(--text-blue);
}

.modal-info-label {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.22em;
  text-align: center;
  color: var(--text-blue);
}

.modal-fine-print {
  font-weight: 500;
  font-size: 8px;
  line-height: 1.22em;
  text-align: center;
  color: var(--text-blue);
  max-width: 305px;
}

/* ========== NAME INPUT MODAL ========== */
.name-modal-card {
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.name-modal-info {
  background: var(--bg-light);
  padding: 14px 18px;
  width: 100%;
}

.name-modal-info p {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5em;
  text-align: center;
  color: var(--text-blue);
}

.name-modal-info strong {
  font-weight: 700;
}

.name-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 22px 50px 24px;
  width: 100%;
}

.name-modal-label {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.22em;
  text-align: center;
  color: var(--text-gray);
}

.name-modal-title {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2em;
  text-align: center;
  color: var(--text-dark);
}

.name-modal-input {
  width: 100%;
  height: 52px;
  background: var(--bg-card);
  border: none;
  border-radius: 9px;
  padding: 0 16px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  transition: background 0.2s;
}

.name-modal-input::placeholder {
  color: #A0AABF;
}

.name-modal-input:focus {
  background: #DDE5F5;
}

.name-modal-btn {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 9px;
}

.name-modal-footnote {
  font-weight: 500;
  font-size: 10px;
  line-height: 1.5em;
  text-align: center;
  color: var(--text-blue);
  max-width: 290px;
}

/* ========== SLOTS ========== */
.slots-section {
  padding: 40px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.section-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.22em;
  text-align: center;
  color: var(--text-dark);
}

.section-subtitle {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.22em;
  text-align: center;
  color: var(--text-dark);
}

.slots-container {
  width: 100%;
  height: 208px;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
}

.slots-window {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.slots-track {
  display: flex;
  gap: 12px;
  position: absolute;
  top: 20px;
  left: calc(50% - 264px);
  transition: transform 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.slot-card {
  width: 168px;
  height: 168px;
  background: var(--bg-white);
  border-radius: 9px;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
  padding: 0 8px;
}

.slot-ruble-img {
  width: 42px;
  height: 43px;
  opacity: 0.35;
}

.slot-ruble-svg {
  width: 42px;
  height: 43px;
}

.slot-nothing-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.slot-label {
  font-family: var(--font);
  font-weight: 600;
  font-size: 9px;
  line-height: 1.2em;
  text-align: center;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 130px;
}



.slot-amount {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15em;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slot-card .ruble-decorations,
.prize-ruble-bg .ruble-decorations {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ruble-deco {
  position: absolute;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.slots-indicator {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 12px;
  z-index: 5;
  pointer-events: none;
}

.slots-note {
  font-weight: 500;
  font-size: 11px;
  line-height: 1.22em;
  text-align: center;
  color: var(--text-blue);
}

/* ========== BENEFITS ========== */
.benefits-section {
  padding: 40px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.benefit-card {
  width: 100%;
  min-height: 116px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 9px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
  padding: 8px 4px;
  text-align: center;
}

.benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-ruble-svg {
  width: 36px;
  height: 36px;
  opacity: 0.35;
}

.benefit-amount {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.14em;
  color: var(--text-gray);
  text-align: center;
}

.benefit-amount-large {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.14em;
  color: var(--text-gray);
}

.benefit-name {
  font-weight: 700;
  font-size: 10px;
  line-height: 1em;
  text-align: center;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.benefit-card .ruble-decorations {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.08;
}

/* ========== PRIZE DISPLAY ========== */
.prize-display {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prize-ruble-bg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  background: #FFFFFF;
  border-radius: 9px;
  box-shadow: 0px 4px 6px 0px rgba(23, 26, 54, 0.05);
  padding: 24px 60px;
  width: 100%;
}

.prize-ruble-svg {
  width: 62px;
  height: 61px;
}

.prize-ruble-img {
  width: 62px;
  height: 61px;
  opacity: 1;
}

.prize-lose-img {
  width: 72px;
  height: 72px;
}

.prize-amount {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.22em;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== SPECIALIST ========== */
.specialist-section {
  padding: 40px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.specialist-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.specialist-note {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.22em;
  text-align: center;
  color: var(--text-blue);
}

.specialist-role {
  font-weight: 500;
  font-size: 11px;
  line-height: 1.22em;
  text-align: center;
  color: var(--text-blue);
}

.specialist-queue {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.22em;
  text-align: center;
  color: var(--text-dark);
}

.specialist-avatar-wrap {
  width: 148px;
  height: 148px;
  overflow: hidden;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-white);
}

.specialist-avatar-wrap.small {
  width: 100px;
  height: 100px;
  border-radius: 12px;
}

.specialist-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specialist-spinner {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-img {
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== PRIZES SECTION ========== */
.prizes-section {
  padding: 40px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.prize-card-large {
  width: 100%;
  height: 71px;
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.prize-card-large .ruble-decorations {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.prize-card-icon {
  width: 44px;
  height: 45px;
  opacity: 0.35;
  position: relative;
  z-index: 2;
}

.prize-card-amount {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.22em;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
}

/* ========== CHAT ========== */
.chat-screen-header {
  padding: 40px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chat-container {
  margin: 0 16px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
}

.chat-header-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #E7EAF4;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 44px;
  overflow: hidden;
  flex-shrink: 0;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-header-name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.22em;
  color: var(--text-dark);
}

.chat-header-role {
  font-weight: 500;
  font-size: 11px;
  line-height: 1.22em;
  color: var(--text-blue);
}

.chat-messages-area {
  padding: 16px 12px;
}

.chat-section {
  padding: 20px 16px;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-message {
  padding: 12px 12px 16px;
  border-radius: 0 11px 11px 11px;
  background: #E7EAF4;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.22em;
  color: #313336;
  max-width: 85%;
  width: fit-content;
  animation: fadeIn 0.3s ease;
}

.chat-message.user {
  border-radius: 11px 0 11px 11px;
  background: var(--gradient-blue);
  color: var(--bg-white);
  align-self: flex-end;
  font-weight: 600;
  font-size: 11px;
  width: fit-content;
  margin-left: auto;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.typing-indicator {
  font-weight: 500;
  font-size: 11px;
  line-height: 1.22em;
  color: #B2B9C5;
  padding-top: 8px;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.chat-action {
  padding: 8px 0 0;
  display: flex;
  justify-content: flex-end;
}

.chat-consent {
  padding: 8px 0 0;
  display: flex;
  justify-content: flex-end;
}

.btn-chat-consent {
  padding: 12px 24px;
  border-radius: 9px;
  background: var(--gradient-blue);
  border: none;
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  color: var(--bg-white);
  cursor: pointer;
  transition: transform 0.15s;
}

.btn-chat-consent:active {
  transform: scale(0.97);
}

.btn-chat-action {
  padding: 14px 40px;
  border-radius: 9px;
  background: var(--gradient-blue);
  border: none;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  color: var(--bg-white);
  cursor: pointer;
  transition: transform 0.15s;
  width: auto;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-chat-action:active {
  transform: scale(0.97);
}

.chat-start-section {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ========== RESERVED / FINAL ========== */
.reserved-section {
  padding: 40px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.card-display {
  font-family: var(--font);
  font-weight: 600;
  font-size: 16px;
  line-height: 1em;
  color: var(--text-dark);
  text-align: center;
}

/* ========== CARD INPUT SCREEN ========== */
.card-input-main {
  padding: 40px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.card-visual {
  position: relative;
  width: 148px;
  height: 148px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-white);
}

.card-visual-img {
  position: absolute;
  height: auto;
}

.card-visual-img.card-filled {
  width: 88px;
  top: 36px;
  left: 20px;
  z-index: 2;
}

.card-visual-img.card-outline {
  width: 76px;
  top: 61px;
  left: 53px;
  opacity: 0.4;
  z-index: 1;
}

.card-subtitle {
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4em;
  text-align: center;
  color: var(--text-blue);
  max-width: 260px;
}

.card-input-field-wrap {
  width: 100%;
  padding: 0;
}

.card-input-field.card-input-field-full {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: 9px;
  padding: 14px 16px;
}

.card-input-field-full input {
  width: 100%;
  border: none;
  outline: none;
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-blue);
  text-align: center;
  background: transparent;
}

.card-input-field-full input::placeholder {
  color: var(--text-blue);
  opacity: 0.6;
}

.btn-enter-card {
  width: auto;
  padding: 14px 60px;
}

.card-confirm-inner {
  padding: 28px 24px;
}

.confirm-text {
  font-weight: 700;
  font-size: 20px;
  color: var(--text-dark);
}

.confirm-sub {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4em;
  text-align: center;
  color: var(--text-dark);
}

.confirm-counter {
  font-weight: 500;
  font-size: 13px;
  color: var(--text-blue);
  margin-top: 4px;
}

.confirm-timer {
  font-weight: 700;
  font-size: 28px;
  color: var(--text-dark);
}

/* ========== PROCESSING SCREEN ========== */
.processing-section {
  padding: 40px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.processing-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.processing-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 9px;
  opacity: 0.5;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.processing-row.processing-active {
  opacity: 1;
}

.processing-row.processing-done {
  opacity: 0.3;
  transform: scale(0.97);
}

.processing-row-you {
  background: var(--gradient-blue);
}

.processing-row-you .processing-name,
.processing-row-you .processing-amount {
  color: white;
}

.processing-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.processing-avatar-you {
  background: rgba(255,255,255,0.3);
}

.processing-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  flex: 1;
}

.processing-amount {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
}

.processing-spinner {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-input-section {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.card-input-wrapper {
  width: 100%;
  background: var(--bg-light);
  border-radius: 12px;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.card-input-label {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.22em;
  text-align: center;
  color: var(--text-dark);
}

.card-input-field {
  width: calc(100% - 34px);
  background: var(--bg-white);
  border-radius: 9px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid #e0e0e0;
}

.card-input-field input {
  border: none;
  outline: none;
  font-family: var(--font);
  font-weight: 600;
  font-size: 16px;
  line-height: 1em;
  color: var(--text-dark);
  text-align: center;
  width: 100%;
  background: transparent;
}

.card-input-field input::placeholder {
  color: #A0CBFF;
}

#btn-contact-specialist {
  padding: 14px 20px;
  font-size: 14px;
  line-height: 1.14em;
  text-align: center;
}

/* ========== UTILITY ========== */
.screen {
  padding-bottom: 40px;
}

.modal-card .btn-primary {
  width: auto;
}

.name-modal-card .btn-primary {
  width: 100%;
}

/* Animations for screen transitions */
.screen.slide-in {
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Slot spinning animation */
.slots-track.spinning {
  transition: none;
}

/* Responsive */
@media (max-width: 394px) {
  #app {
    max-width: 100vw;
  }
  
  .categories {
    padding: 40px 12px 0;
  }
  
  .quiz-section {
    padding: 40px 12px 0;
  }
  
  .slots-section {
    padding: 40px 12px 0;
  }
}
