@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ==========================================================================
   Suare Light Design System (Exact match with toyga-client)
   Clean Monochrome, Warm Stone #FAFAF9, Pure White #FFFFFF Cards,
   Charcoal #161615 Buttons & Accents, Subtle #E7E7E4 Borders.
   ========================================================================== */
:root {
  --bg-base: #FAFAF9;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-surface-hover: #F5F5F4;
  --bg-surface-inset: #F4F4F5;

  --border-subtle: #E7E7E4;
  --border-medium: #D6D6D2;
  --border-focus: #161615;

  --text-primary: #111110;
  --text-secondary: #5C5B57;
  --text-tertiary: #8A8885;

  --brand-primary: #161615;
  --brand-primary-hover: #262624;
  --brand-accent: #2563EB;

  --status-connected: #16A34A;
  --status-connected-bg: #DCFCE7;
  --status-connected-border: #BBF7D0;

  --status-warning: #D97706;
  --status-warning-bg: #FEF3C7;
  --status-warning-border: #FDE68A;

  --status-error: #DC2626;
  --status-error-bg: #FEE2E2;
  --status-error-border: #FECACA;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px #E7E7E4;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Manrope', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

.font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Auth Screen (Clean Minimalist White Card on Warm Stone)
   ========================================================================== */
.auth-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  z-index: 9999;
  padding: 20px;
}

.auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 44px 36px;
  width: 100%;
  max-width: 410px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
  animation: authFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.brand {
  text-align: center;
  margin-bottom: 28px;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: #F4F4F5;
  border: 1px solid var(--border-subtle);
  color: var(--brand-primary);
  margin-bottom: 14px;
}

.brand-logo-svg {
  width: 24px;
  height: 24px;
  color: #161615;
}

.brand h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.brand h1 span {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #5C5B57;
  padding: 3px 8px;
  background: #F4F4F5;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.brand p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 6px;
}

/* ==========================================================================
   Forms & Controls (Fixing overlap & clean padding)
   ========================================================================== */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  pointer-events: none;
  z-index: 2;
}

/* CRITICAL: Ensure text never overlaps icons */
.input-with-icon input,
.input-with-icon textarea {
  padding-left: 44px !important;
}

input[type="text"],
input[type="password"],
input[type="tel"],
textarea {
  width: 100%;
  height: 48px;
  padding: 11px 16px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14.5px;
  font-weight: 500;
  outline: none;
  transition: all 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: #A1A1AA;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(22, 22, 21, 0.08);
}

textarea {
  height: auto;
  min-height: 100px;
  line-height: 1.5;
  resize: vertical;
}

.char-count {
  font-size: 11.5px;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ==========================================================================
   Buttons (Suare Monochrome Charcoal #161615)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--brand-primary);
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  opacity: 0.95;
}

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

.btn-outline {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: #F4F4F5;
  border-color: var(--border-medium);
}

.btn-danger {
  background: #FEF2F2;
  border: 1px solid #FEE2E2;
  color: #DC2626;
}

.btn-danger:hover {
  background: #FEE2E2;
  border-color: #FECACA;
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
  border-radius: var(--radius-full);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}

.btn-icon:hover {
  background: #F4F4F5;
  color: var(--text-primary);
}

/* ==========================================================================
   App Layout
   ========================================================================== */
.app-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-box {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: #F4F4F5;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.nav-brand-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.nav-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.nav-title span {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #71717A;
  background: #F4F4F5;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-left: 6px;
}

.nav-subtitle {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Live Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #F4F4F5;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9CA3AF;
  position: relative;
}

.status-pill.connected {
  background: var(--status-connected-bg);
  border-color: var(--status-connected-border);
  color: var(--status-connected);
}

.status-pill.connected .status-dot {
  background: var(--status-connected);
}

.status-pill.scan_qr {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-border);
  color: var(--status-warning);
}

.status-pill.scan_qr .status-dot {
  background: var(--status-warning);
}

/* ==========================================================================
   Quick Stats Counters Row (Clean White Cards)
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #F4F4F5;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.stat-icon svg {
  width: 18px;
  height: 18px;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-title {
  font-size: 11.5px;
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1px;
}

/* ==========================================================================
   Tabs Bar (Segmented Apple / shadcn Control in Light Mode)
   ========================================================================== */
.tabs-container {
  margin-bottom: 24px;
  display: flex;
  justify-content: flex-start;
}

.tabs-nav {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  background: #EFEFEF;
  border: 1px solid #E5E5E5;
  border-radius: var(--radius-full);
  max-width: 100%;
  overflow-x: auto;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: #71717A;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.tab-btn svg {
  width: 15px;
  height: 15px;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  background: #FFFFFF;
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

/* ==========================================================================
   Cards & Content Layout
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
}

.card-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-header h2,
.card h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -0.01em;
}

.card-header h2 svg,
.card h2 svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

.subtitle {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

/* Connection Status Box */
.status-box {
  background: #F9FAFB;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.big-status {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.info-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #F3F4F6;
  font-size: 13px;
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-row .label {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-row .label svg {
  width: 14px;
  height: 14px;
  color: var(--text-tertiary);
}

.info-row .val {
  font-weight: 600;
  color: var(--text-primary);
}

.copy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.18s;
}

.copy-badge:hover {
  background: #F4F4F5;
  border-color: var(--border-medium);
}

/* ==========================================================================
   Connection Method Switcher & Dual Auth Display Area
   ========================================================================== */
.connection-method-switcher {
  display: flex;
  background: #F4F4F5;
  padding: 4px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.method-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.method-btn svg {
  width: 15px;
  height: 15px;
}

.method-btn:hover {
  color: var(--text-primary);
}

.method-btn.active {
  background: #FFFFFF;
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.method-content {
  animation: fadeInMethod 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInMethod {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pairing Code Result Box */
.pairing-result-box {
  background: #F9FAFB;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  margin-top: 10px;
}

.pairing-result-target {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.pairing-code-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-medium);
  border-radius: 16px;
  padding: 12px 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

#pairingCodeText {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #111110;
  user-select: all;
}

.copy-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #161615;
  color: #FFFFFF;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.copy-code-btn:hover {
  background: #2E2E2B;
  transform: translateY(-1px);
}

.copy-code-btn.copied {
  background: #16A34A;
}

.pairing-waiting-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: #92400E;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D97706;
  box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7);
  animation: pulseBeacon 1.5s infinite;
}

@keyframes pulseBeacon {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(217, 119, 6, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0);
  }
}

.center-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  margin: 14px 0 20px;
  width: 100%;
}

.qr-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
  background: #F9FAFB;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid #F3F4F6;
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #161615;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qr-wrapper {
  min-height: 250px;
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FAFAFA;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.qr-wrapper img {
  max-width: 210px;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.qr-wrapper p {
  color: var(--text-primary);
  font-size: 13px;
  margin-top: 12px;
  font-weight: 600;
}

/* ==========================================================================
   Quick Template Chips (Test Send)
   ========================================================================== */
.template-chips-label {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.template-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.chip-btn {
  background: #F4F4F5;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s;
}

.chip-btn:hover {
  background: #E5E7EB;
  color: var(--text-primary);
}

/* ==========================================================================
   Logs & Bulk Tables (Clean White Modern Tables)
   ========================================================================== */
.table-responsive {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.logs-table th {
  padding: 12px 16px;
  color: var(--text-tertiary);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #F9FAFB;
  border-bottom: 1px solid var(--border-subtle);
}

.logs-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #F3F4F6;
  vertical-align: middle;
}

.logs-table tr:hover td {
  background: #F9FAFB;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
}

.badge-sent {
  background: var(--status-connected-bg);
  border: 1px solid var(--status-connected-border);
  color: var(--status-connected);
}

.badge-failed {
  background: var(--status-error-bg);
  border: 1px solid var(--status-error-border);
  color: var(--status-error);
}

.badge-running {
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  color: #2563EB;
}

.badge-pending {
  background: var(--status-warning-bg);
  border: 1px solid var(--status-warning-border);
  color: var(--status-warning);
}

.badge-completed {
  background: var(--status-connected-bg);
  border: 1px solid var(--status-connected-border);
  color: var(--status-connected);
}

.badge-cancelled {
  background: #F4F4F5;
  border: 1px solid #E4E4E7;
  color: #71717A;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
}

.alert-error {
  background: var(--status-error-bg);
  border: 1px solid var(--status-error-border);
  color: var(--status-error);
}

.alert-success {
  background: var(--status-connected-bg);
  border: 1px solid var(--status-connected-border);
  color: var(--status-connected);
}

/* Spinner */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #E5E7EB;
  border-top-color: #161615;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}

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

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.max-w-640 {
  max-width: 640px;
}
