/* ==========================================================================
   WALLET STUDIO & MANAGER - DESIGN SYSTEM
   Modern Dark Aesthetic, Glassmorphism, Native Wallet Pass Mockups
   ========================================================================== */

:root {
  --bg-main: #090d16;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-solid: #111827;
  --bg-input: #1e293b;
  --bg-hover: #334155;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #38bdf8;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  background-image: 
    radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.12) 0px, transparent 50%);
  background-attachment: fixed;
}

/* ==================== HEADER & NAVBAR ==================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 13, 22, 0.85);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 28px;
}

.header-container {
  max-width: 1540px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-subtitle {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Status & Quota Bar */
.usage-widget {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-lg);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.quota-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quota-labels {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11.5px;
}

.quota-val {
  font-weight: 700;
  color: var(--text-primary);
}

.quota-bar-track {
  width: 140px;
  height: 6px;
  background: var(--bg-input);
  border-radius: 3px;
  overflow: hidden;
}

.quota-bar-fill {
  height: 100%;
  width: 0.1%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  border-radius: 3px;
  transition: width 0.5s ease;
}

.api-key-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.api-key-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}

/* ==================== NAVIGATION TABS ==================== */
.tabs-nav {
  display: flex;
  gap: 8px;
  margin: 20px auto 0;
  max-width: 1540px;
  padding: 0 28px;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--accent-cyan);
  border-color: var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Main Container */
.main-wrapper {
  max-width: 1540px;
  margin: 20px auto 60px;
  padding: 0 28px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* ==================== STUDIO LAYOUT (TAB 1) ==================== */
.studio-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: start;
}

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

/* Form Sections */
.form-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-section {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.section-title span.icon {
  font-size: 18px;
}

.field-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .field-grid-2, .field-grid-3 {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group:last-child {
  margin-bottom: 0;
}

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

.label-hint {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.form-input, .form-select, .form-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  width: 100%;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.form-textarea {
  resize: vertical;
  min-height: 60px;
}

/* Color Presets & Picker */
.color-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.preset-chip {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  position: relative;
}

.preset-chip:hover {
  transform: scale(1.1);
}

.preset-chip.active {
  border-color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.hex-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.hex-color-input {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hex-text-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: monospace;
  font-size: 13px;
  width: 75px;
  text-transform: uppercase;
}
.hex-text-input:focus {
  outline: none;
}

/* Dynamic Field Item Row */
.dynamic-item-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
  position: relative;
}

.dynamic-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.btn-icon-remove {
  background: transparent;
  border: none;
  color: var(--accent-rose);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}

.btn-icon-remove:hover {
  background: rgba(244, 63, 94, 0.15);
}

.btn-add-row {
  background: var(--bg-input);
  border: 1px dashed var(--border-color);
  color: var(--accent-cyan);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  margin-top: 6px;
}

.btn-add-row:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-cyan);
}

.btn-helper-pill {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-helper-pill:hover {
  background: rgba(139, 92, 246, 0.3);
}

/* ==================== SIMULATOR (RIGHT PANEL) ==================== */
.simulator-panel {
  position: sticky;
  top: 95px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sim-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.sim-switch {
  display: flex;
  background: var(--bg-input);
  padding: 3px;
  border-radius: var(--radius-sm);
  gap: 4px;
}

.sim-switch-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.sim-switch-btn.active {
  background: var(--bg-card-solid);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.sim-flip-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.sim-flip-btn:hover {
  border-color: var(--accent-cyan);
}

/* Apple Wallet Mockup */
.pass-viewport {
  perspective: 1000px;
  display: flex;
  justify-content: center;
}

.apple-pass-card {
  width: 100%;
  max-width: 380px;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  background-color: #18181b;
  color: #ffffff;
  border-radius: 20px;
}

.apple-pass-card.flipped {
  transform: rotateY(180deg);
}

.pass-face-front, .pass-face-back {
  width: 100%;
  border-radius: 20px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 25px 45px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);
  background-color: inherit;
  color: inherit;
}

.pass-face-front {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: rotateY(0deg);
}

.pass-face-back {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transform: rotateY(180deg);
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  z-index: 5;
}

/* Pass Layout Elements */
.pass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  gap: 12px;
}

.pass-logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pass-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}

.pass-logo-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pass-header-field {
  text-align: right;
  flex-shrink: 0;
}

.field-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
  font-weight: 600;
  display: block;
}

.field-val-header {
  font-size: 14px;
  font-weight: 700;
  display: block;
}

/* Strip Banner */
.pass-strip-container {
  width: 100%;
  height: 120px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: rgba(0, 0, 0, 0.2);
}

/* Primary Section */
.pass-primary-area {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pass-primary-main {
  flex: 1;
}

.field-val-primary {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  word-break: break-word;
}

.pass-thumbnail-img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-left: 14px;
}

/* Secondary Section */
.pass-secondary-area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 12px;
  padding: 10px 20px 16px;
}

.field-val-secondary {
  font-size: 14px;
  font-weight: 600;
  margin-top: 2px;
  word-break: break-word;
}

/* Barcode Section */
.pass-barcode-area {
  background: #ffffff;
  color: #000000;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-top: auto;
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
}

.barcode-render-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.barcode-render-box canvas, .barcode-render-box svg, .barcode-render-box img {
  max-width: 100%;
  height: auto;
}

.barcode-alt-text {
  font-family: monospace;
  font-size: 11px;
  color: #333333;
  margin-top: 6px;
  letter-spacing: 0.08em;
}

/* Back Face */
.back-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.back-title {
  font-size: 16px;
  font-weight: 700;
}

.btn-done-flip {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.back-field-item {
  margin-bottom: 16px;
}

.back-field-val {
  font-size: 13.5px;
  margin-top: 4px;
  line-height: 1.4;
  opacity: 0.95;
  word-break: break-word;
}

/* Bottom Action Emit */
.emit-action-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-emit-live {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.5);
  transition: all 0.2s;
}

.btn-emit-live:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(2, 132, 199, 0.65);
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
}

.btn-emit-live:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ==================== PASS MANAGER (TAB 2) ==================== */
.manager-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.manager-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-card);
  padding: 16px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.search-input-wrap {
  position: relative;
  width: 320px;
}

.search-input {
  padding-left: 36px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.passes-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.passes-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.passes-table th {
  background: rgba(0, 0, 0, 0.2);
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.passes-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13.5px;
  vertical-align: middle;
}

.passes-table tr:last-child td {
  border-bottom: none;
}

.passes-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.serial-pill {
  font-family: monospace;
  background: var(--bg-input);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.2);
  cursor: pointer;
}

.actions-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-table-action {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.btn-table-action:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-table-action.btn-danger {
  color: var(--accent-rose);
}
.btn-table-action.btn-danger:hover {
  border-color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.15);
}

/* Empty State */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.empty-icon {
  font-size: 48px;
  opacity: 0.5;
}

.empty-title {
  font-size: 18px;
  font-weight: 700;
}

.empty-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 420px;
}

/* ==================== TEMPLATES (TAB 3) ==================== */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.template-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.2s;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.template-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 20px 30px -10px rgba(56, 189, 248, 0.15);
}

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

.template-icon {
  font-size: 32px;
}

.template-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.template-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.template-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.btn-load-template {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-load-template:hover {
  background: var(--accent-cyan);
  color: #090d16;
  border-color: var(--accent-cyan);
}

/* ==================== MODALS ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  padding: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.install-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius-md);
  margin: 10px 0;
}

.install-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-install {
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.btn-apple {
  background: #000;
  color: #fff;
}
.btn-google {
  background: #1a73e8;
  color: #fff;
}
.btn-share-link {
  grid-column: span 2;
  background: var(--bg-input);
  color: var(--accent-cyan);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

.toast {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
}

.toast.success { border-color: var(--accent-emerald); }
.toast.error { border-color: var(--accent-rose); }
.toast.info { border-color: var(--accent-cyan); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
