/* ==========================================================================
   Deploys Universal UI Engine — Apple Liquid Glass & Soft Lavender Theme
   Matches pixel-by-pixel the iOS Deploys design mockup
   ========================================================================== */

:root {
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  --primary-hover: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%);
  --primary-glow: 0 10px 25px -5px rgba(124, 58, 237, 0.4);
  --primary-light: #f3f0ff;
  --primary-color: #7c3aed;
  --primary-indigo: #6366f1;
  
  --bg-gradient: radial-gradient(circle at 50% 0%, #edeafc 0%, #f7f8fd 55%, #ffffff 100%);
  --surface-white: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.88);
  --border-subtle: #e8ecf8;
  --border-card: rgba(226, 232, 255, 0.95);
  
  --text-main: #1e1b4b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --success-green: #10b981;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  
  --gold-coin: #f59e0b;
  --gold-bg: #fef3c7;
  --gold-border: #fde68a;
  
  --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-card: 28px;
  --radius-pill: 9999px;
  --radius-input: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  direction: rtl;
  background: var(--bg-gradient) !important;
  background-attachment: fixed !important;
  min-height: 100vh;
  color: var(--text-main);
  overflow-x: hidden;
  padding-bottom: 95px; /* space for sticky bottom nav */
  display: flex;
  flex-direction: column;
  align-items: center;
}

#ambientLivingCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

/* App Wrapper â€” Centered Architecture */
.deploys-app-wrap {
  width: 100%;
  max-width: 480px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 16px 16px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .deploys-app-wrap {
    max-width: 520px;
    padding-top: 24px;
  }
}

/* ==========================================================================
   Header Bar
   ========================================================================== */
.deploys-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
}

.deploys-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: var(--primary-gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -4px rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

.brand-icon svg {
  width: 24px;
  height: 24px;
}

.brand-title {
  font-size: 24px;
  font-weight: 800;
  color: #1e1b4b;
  letter-spacing: -0.5px;
}

.btn-header-login {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 16px -2px rgba(124, 58, 237, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-header-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -2px rgba(124, 58, 237, 0.45);
}

.btn-header-login:active {
  transform: scale(0.97);
}

/* Coin Badge Capsule (Centered) */
.coin-badge-container {
  display: flex;
  justify-content: center;
  margin-top: -4px;
  margin-bottom: 2px;
}

.coin-badge-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(110, 86, 207, 0.06);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.coin-badge-capsule:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(110, 86, 207, 0.12);
}

.coin-icon-svg {
  width: 20px;
  height: 20px;
}

.coin-amount {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e1b4b;
}

.coin-arrow {
  color: #94a3b8;
  font-size: 13px;
  margin-right: 2px;
}

/* ==========================================================================
   Main Upload Card
   ========================================================================== */
.main-upload-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  box-shadow: 0 20px 45px -12px rgba(110, 86, 207, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

/* Segmented Control Tabs */
.segmented-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f1f3fa;
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

.tab-btn {
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  min-width: 0;
}

.tab-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 380px) {
  .tab-btn {
    font-size: 10.5px;
    padding: 8px 2px;
    gap: 2px;
  }
}
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

/* Dropzone Container */
.upload-dropzone-box {
  border: 1.5px dashed #cfd7f6;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(246, 248, 255, 0.7) 0%, rgba(240, 244, 255, 0.35) 100%);
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  position: relative;
  cursor: pointer;
  transition: all 0.25s ease;
}

.upload-dropzone-box:hover,
.upload-dropzone-box.drag-over {
  border-color: #7c3aed;
  background: rgba(243, 240, 255, 0.6);
  transform: scale(0.995);
}

/* 3D Purple Document / Folder Illustration */
.illustration-doc-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.doc-ambient-glow {
  position: absolute;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(8px);
}

.doc-svg-icon {
  width: 64px;
  height: 64px;
  position: relative;
  z-index: 1;
}

.dropzone-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

.dropzone-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: -4px;
}

.btn-browse-file {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 11px 24px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 18px -3px rgba(124, 58, 237, 0.35);
  margin-top: 4px;
  transition: all 0.2s ease;
}

.btn-browse-file:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -3px rgba(124, 58, 237, 0.45);
}

/* Paste HTML Code Container */
.paste-html-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.paste-html-textarea {
  width: 100%;
  height: 135px;
  background: #f8fafc;
  border: 1.5px dashed #cfd7f6;
  border-radius: 18px;
  padding: 12px 14px;
  font-family: 'SF Mono', 'Fira Code', 'Roboto Mono', monospace;
  font-size: 12.5px;
  direction: ltr;
  text-align: left;
  color: #1e1b4b;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
}

.paste-html-textarea:focus {
  border-color: #7c3aed;
  background: #ffffff;
}

/* Selected File Feedback Banner */
.selected-file-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 14px;
  padding: 10px 14px;
  width: 100%;
}

.file-info-group {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.file-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-name-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size-text {
  font-size: 11.5px;
  color: var(--text-muted);
}

.btn-clear-file {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
}

/* Divider With Centered "یا" */
.divider-with-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
}

.divider-line {
  position: absolute;
  width: 100%;
  height: 1px;
  background: #eef1f8;
}

.divider-pill-text {
  position: relative;
  z-index: 1;
  background: #f1f3fa;
  color: #818cf8;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

/* Form Fields & Section Headers */
.form-section-header-block {
  margin-top: 4px;
  margin-bottom: 2px;
}

.form-section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.form-section-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
  color: #4f46e5;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 700;
}

.form-section-hint {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.required-star {
  color: #ef4444;
  font-weight: 700;
  margin-right: 2px;
}

.creator-inputs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 440px) {
  .creator-inputs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

.text-ltr-input {
  direction: ltr !important;
  text-align: left !important;
  font-family: 'SF Mono', 'Fira Code', 'Vazirmatn', monospace;
}

/* Category Selector Chips */
.category-chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.category-chip-btn {
  background: #f8faff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.category-chip-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #1e293b;
  transform: translateY(-1px);
}

.category-chip-btn.active {
  background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
  border-color: #818cf8;
  color: #4338ca;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

/* Description Textarea */
.desc-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.desc-counter {
  font-size: 11px;
  color: #94a3b8;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.form-textarea-desc {
  width: 100%;
  background: #f8faff;
  border: 1px solid #e4e8f4;
  border-radius: var(--radius-input);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  resize: vertical;
  outline: none;
  transition: all 0.2s ease;
  min-height: 52px;
}

.form-textarea-desc:focus {
  border-color: #7c3aed;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-textarea-desc::placeholder {
  color: #94a3b8;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
}

.input-container-pill {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8faff;
  border: 1px solid #e4e8f4;
  border-radius: var(--radius-input);
  padding: 0 14px;
  height: 48px;
  transition: all 0.2s ease;
}

.input-container-pill:focus-within {
  border-color: #7c3aed;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.input-text-main {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text-main);
  direction: rtl;
  text-align: right;
}

.input-text-main::placeholder {
  color: #94a3b8;
}

.input-icon-end {
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Subdomain URL Input Group */
.subdomain-input-group {
  display: flex;
  align-items: center;
  background: #f8faff;
  border: 1px solid #e4e8f4;
  border-radius: var(--radius-input);
  padding: 0 14px;
  height: 48px;
  gap: 8px;
  direction: ltr; /* Domain LTR formatting */
  transition: all 0.2s ease;
}

.subdomain-input-group:focus-within {
  border-color: #7c3aed;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.domain-prefix-text {
  font-size: 12.5px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: #94a3b8;
  user-select: none;
  white-space: nowrap;
}

.input-slug-field {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: #1e1b4b;
  text-align: left;
}

.input-slug-field::placeholder {
  color: #cbd5e1;
}

/* Primary Action Button (Deploy) */
.btn-primary-deploy {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  border-radius: 18px;
  height: 52px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 25px -4px rgba(124, 58, 237, 0.45);
  margin-top: 4px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-deploy:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -4px rgba(124, 58, 237, 0.55);
}

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

.btn-primary-deploy:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   Published Projects Section ("پروژه‌های منتشر شده")
   ========================================================================== */
.projects-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  margin-top: 6px;
}

.projects-section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
}

.link-view-all {
  color: #7c3aed;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.link-view-all:hover {
  text-decoration: underline;
}

.projects-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Project Card */
.project-item-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid var(--border-card);
  box-shadow: 0 8px 24px -6px rgba(110, 86, 207, 0.05);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.project-item-card:hover {
  border-color: #d8def8;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -6px rgba(110, 86, 207, 0.1);
}

/* Left Group (3 dots & Preview) */
.project-card-start {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-project-menu {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.btn-project-menu:hover {
  color: #1e1b4b;
  background: #f1f3fa;
}

.project-thumbnail-box {
  width: 58px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
  border: 1px solid #ddd6fe;
  display: flex;
  flex-direction: column;
  padding: 4px 6px;
  position: relative;
  overflow: hidden;
}

.thumb-dots {
  display: flex;
  gap: 3px;
  margin-bottom: 4px;
}

.thumb-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a78bfa;
}

.thumb-preview-shape {
  flex: 1;
  background: linear-gradient(135deg, #c4b5fd 0%, #a5b4fc 100%);
  border-radius: 6px;
  opacity: 0.85;
}

/* Center Details */
.project-card-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  text-align: right;
}

.project-card-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.project-name-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e1b4b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

.project-cat-badge {
  font-size: 10.5px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.project-creator-credit {
  font-size: 11px;
  color: #6366f1;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.project-desc-snippet {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
  margin: 1px 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.project-url-link {
  font-size: 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: #6366f1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  direction: ltr;
  text-align: left;
  cursor: pointer;
  width: fit-content;
}

.project-url-link:hover {
  text-decoration: underline;
}

.project-meta-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.status-badge-online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ecfdf5;
  color: #059669;
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

.pulse-dot-green {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.size-badge-pill {
  font-size: 11px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Right Column (QR Code) */
.project-card-qr-box {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.project-card-qr-box img,
.project-card-qr-box svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   Bottom Navigation Bar (Sticky Dock) â€” Centered Architecture
   ========================================================================== */
.bottom-dock-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 480px !important;
  height: 72px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(226, 232, 255, 0.9);
  display: flex !important;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(110, 86, 207, 0.06);
  margin: 0 auto !important;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .bottom-dock-nav {
    max-width: 520px !important;
    border-radius: 28px 28px 0 0;
    border-left: 1px solid rgba(226, 232, 255, 0.9);
    border-right: 1px solid rgba(226, 232, 255, 0.9);
    box-shadow: 0 -8px 30px rgba(110, 86, 207, 0.08);
  }
}

.dock-item-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 14px;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none !important;
}

.dock-item-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.dock-item-btn.active {
  color: #7c3aed;
}

.dock-item-btn.active svg {
  color: #7c3aed;
}

.dock-item-btn.active .dock-icon-pill {
  background: var(--primary-gradient);
  color: #ffffff;
  width: 44px;
  height: 32px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
  margin-top: -8px;
}

.dock-item-btn.active .dock-icon-pill svg {
  color: #ffffff;
}

.dock-item-btn.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 16px;
  height: 3px;
  border-radius: 3px;
  background: #7c3aed;
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */
.toast-notification-pill {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(30, 27, 75, 0.94);
  color: #ffffff;
  backdrop-filter: blur(12px);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-notification-pill.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Dropdown Action Menu
   ========================================================================== */
.card-action-menu-dropdown {
  position: absolute;
  top: 48px;
  left: 14px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
  min-width: 140px;
}

.card-action-menu-dropdown.active {
  display: flex;
}

.menu-item-btn {
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: right;
  transition: background 0.15s ease;
}

.menu-item-btn:hover {
  background: #f1f3fa;
}

.menu-item-btn.text-danger {
  color: #ef4444;
}

.menu-item-btn.text-danger:hover {
  background: #fef2f2;
}


/* Pricing & Economy Modal Enhancements */
.pricing-modal-card {
  max-width: 820px !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(28px) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 35px 80px -20px rgba(79, 70, 229, 0.22), 0 0 1px rgba(0, 0, 0, 0.1) !important;
}

.pricing-balance-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

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

.pricing-card {
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 16px 36px -10px rgba(99, 102, 241, 0.15);
}

.pricing-card.featured {
  background: linear-gradient(180deg, #ffffff 0%, rgba(245, 243, 255, 0.6) 100%);
  border: 2px solid #6366f1;
  box-shadow: 0 20px 45px -12px rgba(99, 102, 241, 0.25);
}

.pricing-badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.pricing-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.pricing-card-coins {
  font-size: 28px;
  font-weight: 900;
  color: #4f46e5;
  margin: 12px 0 6px;
  font-family: 'Plus Jakarta Sans', var(--font-fa);
}

.pricing-card-coins span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-card-price {
  font-size: 16px;
  font-weight: 800;
  color: #10b981;
  margin-bottom: 16px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-features li {
  font-size: 12px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li::before {
  content: "✓";
  color: #10b981;
  font-weight: 800;
  font-size: 13px;
}

.btn-buy-package {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  background: #f1f3fa;
  color: var(--text-main);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-buy-package:hover {
  background: #e2e8f0;
}

.pricing-card.featured .btn-buy-package {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.45);
}

.pricing-card.featured .btn-buy-package:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ==========================================================================
   3-Stage Progressive Deploy Intake Modal (Apple Liquid Glass)
   ========================================================================== */
.intake-modal-card {
  max-width: 480px;
  width: 95%;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(226, 232, 255, 0.95);
  box-shadow: 0 25px 60px -15px rgba(99, 102, 241, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.intake-stepper-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.stepper-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.stepper-pill.active {
  background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
  color: #4f46e5;
  border-color: #c7d2fe;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.18);
}

.stepper-pill.completed {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.stepper-arrow {
  color: #cbd5e1;
  font-size: 11px;
  user-select: none;
}

.intake-step-main-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.intake-step-main-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.intake-progress-track {
  width: 100%;
  height: 4px;
  background: #eef2ff;
  position: relative;
  overflow: hidden;
}

.intake-progress-bar {
  height: 100%;
  background: var(--primary-gradient);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-pill);
}

.intake-modal-body {
  padding: 18px 20px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.intake-step-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeInPanel 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.intake-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-hint-caption {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
  margin-top: 1px;
}

.intake-recap-capsule {
  background: #f8faff;
  border: 1px solid #e0e7ff;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.recap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.recap-label {
  color: #64748b;
}

.recap-value {
  color: var(--text-main);
  font-weight: 700;
}

/* Success View inside Modal */
.intake-success-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 4px 6px 4px;
}

.success-glow-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 2px solid #86efac;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25);
  animation: bouncePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bouncePop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-icon-badge {
  font-size: 30px;
}

.success-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.success-desc {
  font-size: 12px;
  color: #059669;
  font-weight: 600;
  margin-bottom: 14px;
}

.success-link-box {
  width: 100%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.success-url-text {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: #4338ca;
  direction: ltr;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.btn-copy-success {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-copy-success:hover {
  background: #ede9fe;
  color: #4338ca;
  border-color: #a78bfa;
}

.success-qr-box {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-qr-box img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Modal Footer Buttons */
.intake-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 18px 20px;
  gap: 10px;
  background: #fcfdfe;
  border-top: 1px solid #f1f3f9;
}

.btn-intake-back {
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-intake-back:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

.btn-intake-next,
.btn-intake-deploy,
.btn-intake-visit {
  background: var(--primary-gradient);
  border: none;
  border-radius: 14px;
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px -3px rgba(124, 58, 237, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
}

.btn-intake-next:hover,
.btn-intake-deploy:hover,
.btn-intake-visit:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -3px rgba(124, 58, 237, 0.45);
}

.btn-intake-next:active,
.btn-intake-deploy:active,
.btn-intake-visit:active {
  transform: scale(0.98);
}

.btn-intake-deploy:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}


/* ==========================================================================
   Light Luxury Apple Liquid Glass Pricing & Checkout Sheet
   ========================================================================== */
.pricing-modal-card {
  max-width: 480px !important;
  width: 94%;
  border-radius: 32px !important;
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(35px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(35px) saturate(190%) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 25px 70px -10px rgba(99, 102, 241, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.95) !important;
  color: #0f172a !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mobile-sheet-drag-handle {
  display: block;
  width: 42px;
  height: 4px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 99px;
  margin: 6px auto 12px auto;
  flex-shrink: 0;
}

.dark-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 12px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.btn-dark-sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-dark-sheet-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

.dark-sheet-title {
  color: #0f172a;
  font-size: 17px;
  font-weight: 800;
  margin: 0;
  text-align: center;
}

.dark-sheet-icon-pill {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Tier Selection Rows / Cards */
.pricing-tier-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.pricing-tier-row {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.pricing-tier-row:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.pricing-tier-row.is-selected {
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.95) 0%, rgba(238, 242, 255, 0.95) 100%) !important;
  border: 1.5px solid #8b5cf6 !important;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.9) !important;
}

.tier-popular-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #10b981;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.8);
  z-index: 2;
  white-space: nowrap;
}

.tier-row-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tier-medal-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.tier-medal-bronze {
  background: radial-gradient(circle at 35% 35%, #fde047 0%, #b45309 100%);
  border: 2px solid #d97706;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.25);
}

.tier-medal-silver {
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #94a3b8 100%);
  border: 2px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.2);
}

.tier-medal-gold {
  background: radial-gradient(circle at 35% 35%, #fef08a 0%, #d97706 100%);
  border: 2px solid #facc15;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.tier-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tier-title {
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}

.tier-subtitle {
  color: #64748b;
  font-size: 11.5px;
}

.pricing-tier-row.is-selected .tier-subtitle {
  color: #6366f1;
}

.tier-row-left {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tier-price-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.tier-price-val {
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.tier-price-unit {
  color: #64748b;
  font-size: 11px;
}

/* Radio Circle */
.tier-radio-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.pricing-tier-row.is-selected .tier-radio-check {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.pricing-tier-row.is-selected .tier-radio-check::after {
  content: "✓";
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

/* Coupon & Phone Input Capsule */
.pricing-coupon-capsule {
  background: #f8faff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.coupon-percent-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
}

.coupon-dark-input {
  background: transparent !important;
  border: none !important;
  color: #0f172a !important;
  font-size: 16px !important; /* Prevents iOS auto-zoom */
  width: 100%;
  outline: none !important;
  font-family: inherit;
  box-shadow: none !important;
}

.coupon-dark-input::placeholder {
  color: #94a3b8;
  font-size: 13px;
}

/* Master Dual-Tone Gold Checkout Button */
.btn-shaparak-dual-cta {
  width: 100%;
  border-radius: 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px -3px rgba(245, 158, 11, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.btn-shaparak-dual-cta:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 35px -3px rgba(245, 158, 11, 0.6);
}

.btn-shaparak-dual-cta:active {
  transform: scale(0.98);
}

.shaparak-cta-right {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 16px;
  color: #1e1000;
  font-size: 15.5px;
  font-weight: 900;
}

.shaparak-cta-left-pill {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 7px 14px;
  color: #ffffff;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.5px;
}

/* Footer Trust Logos */
.shaparak-footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 14px;
  opacity: 0.85;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

/* ==========================================================================
   MOBILE BOTTOM SHEET OVERRIDES (≤ 640px)
   ========================================================================== */
@media (max-width: 640px) {
  #pricingModal.studio-modal-backdrop {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .pricing-modal-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 32px 32px 0 0 !important;
    max-height: 90dvh !important;
    margin: 0 !important;
    padding: 14px 16px max(18px, env(safe-area-inset-bottom)) 16px !important;
    animation: sheetSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overscroll-behavior-y: contain;
  }

  @keyframes sheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
}

/* ==========================================================================
   Universal Modal Architecture (Apple Liquid Glass)
   ========================================================================== */
.studio-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.38) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 99999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.studio-modal-backdrop.active {
  display: flex !important;
}

.studio-modal-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 255, 0.95);
  box-shadow: 0 25px 60px -15px rgba(99, 102, 241, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
  position: relative;
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
  0% { opacity: 0; transform: scale(0.95) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header-luxury {
  padding: 18px 20px 14px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(226, 232, 255, 0.8);
  position: relative;
}

.modal-title-group h3,
.modal-title-group .intake-step-main-title {
  font-size: 16px;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0 0 2px 0;
}

.modal-title-group p,
.modal-title-group .intake-step-main-subtitle {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.btn-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(226, 232, 255, 0.9);
  background: #f8fafc;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-modal-close:hover {
  background: #ede9fe;
  color: #7c3aed;
  border-color: #c7d2fe;
}

.modal-body-luxury {
  padding: 18px 20px;
}

.modal-footer-luxury {
  padding: 14px 20px;
  border-top: 1px solid rgba(226, 232, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: #fafbff;
}

/* Auth Modal Tabs & Elements */
.auth-nav-bar {
  display: flex;
  background: #f1f5f9;
  border-radius: var(--radius-pill);
  padding: 3px;
  margin-bottom: 16px;
  gap: 4px;
}

.auth-nav-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.auth-nav-btn.active {
  background: #ffffff;
  color: #1e1b4b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

.btn-auth-submit {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 20px -4px rgba(124, 58, 237, 0.4);
  transition: all 0.2s ease;
  margin-top: 8px;
}

.btn-auth-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.auth-alert-box {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  display: none;
}

.auth-alert-box.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  display: block;
}

.auth-alert-box.alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  display: block;
}

.auth-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 11.5px;
}

.auth-subtle-link {
  color: #7c3aed;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.auth-subtle-link:hover {
  text-decoration: underline;
}

.otp-digit-inputs-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  direction: ltr;
  margin: 14px 0;
}

.otp-digit-box {
  width: 44px;
  height: 48px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  font-family: inherit;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
}

.otp-digit-box:focus {
  border-color: #7c3aed;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* ==========================================================================
   Futuristic ZIP Extraction & Deployment Holographic Animation Screen
   Matches 100% the ChatGPT Luxury Obsidian Mobile Mockup
   ========================================================================== */
.intake-loading-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 14px 20px 14px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(124, 58, 237, 0.12) 0%, transparent 65%);
}

.zip-hologram-stage {
  width: 100%;
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
  margin-bottom: 12px;
}

.holo-pedestal-glow {
  position: absolute;
  bottom: 10px;
  width: 160px;
  height: 50px;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.55) 0%, rgba(99, 102, 241, 0.2) 50%, transparent 80%);
  border-radius: 50%;
  filter: blur(12px);
  animation: pedestalPulse 3s ease-in-out infinite alternate;
}

@keyframes pedestalPulse {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

/* 3D Floating Center Cube */
.holo-zip-center-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: floatLevitate 3.5s ease-in-out infinite;
}

@keyframes floatLevitate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.holo-neon-cloud {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(99, 102, 241, 0.35) 100%);
  border: 1px solid rgba(192, 132, 252, 0.6);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e9d5ff;
  margin-bottom: -10px;
  z-index: 3;
}

.holo-neon-cloud svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  filter: drop-shadow(0 0 6px #c084fc);
}

.holo-zip-cube {
  width: 90px;
  height: 86px;
  background: linear-gradient(145deg, rgba(30, 27, 75, 0.85) 0%, rgba(76, 29, 149, 0.75) 100%);
  border-radius: 18px;
  border: 1.5px solid rgba(192, 132, 252, 0.7);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4), inset 0 0 20px rgba(168, 85, 247, 0.3), 0 0 2px #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  backdrop-filter: blur(10px);
}

.zip-zipper-teeth {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, #c084fc, #c084fc 3px, transparent 3px, transparent 6px);
  opacity: 0.6;
}

.zip-badge-text {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.9), 0 0 20px rgba(124, 58, 237, 0.8);
  z-index: 2;
  background: linear-gradient(180deg, #ffffff 30%, #e9d5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.holo-ground-ring {
  width: 120px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5), inset 0 0 10px rgba(168, 85, 247, 0.3);
  margin-top: -10px;
  transform: rotateX(65deg);
  animation: ringSpin 8s linear infinite;
}

@keyframes ringSpin {
  0% { transform: rotateX(65deg) rotateZ(0deg); }
  100% { transform: rotateX(65deg) rotateZ(360deg); }
}

/* Perspective Cyber Panes */
.holo-pane {
  position: absolute;
  width: 70px;
  height: 90px;
  border: 1px dashed rgba(168, 85, 247, 0.35);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 8px 6px;
  pointer-events: none;
}

.holo-pane-left {
  left: 20px;
  transform: perspective(400px) rotateY(35deg) scale(0.9);
  animation: paneSwayLeft 4s ease-in-out infinite alternate;
}

.holo-pane-right {
  right: 20px;
  transform: perspective(400px) rotateY(-35deg) scale(0.9);
  animation: paneSwayRight 4s ease-in-out infinite alternate;
}

@keyframes paneSwayLeft {
  0% { transform: perspective(400px) rotateY(30deg) translateY(0); }
  100% { transform: perspective(400px) rotateY(40deg) translateY(-8px); }
}

@keyframes paneSwayRight {
  0% { transform: perspective(400px) rotateY(-30deg) translateY(0); }
  100% { transform: perspective(400px) rotateY(-40deg) translateY(-8px); }
}

.holo-grid-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 132, 252, 0.5), transparent);
}

/* Typography */
.zip-loading-title {
  font-size: 16px;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 4px;
}

.zip-loading-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 16px;
}

/* Progress Track */
.zip-progress-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.zip-progress-track {
  flex: 1;
  height: 8px;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
}

.zip-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
  transition: width 0.35s ease;
  position: relative;
}

.zip-progress-flare {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 15px;
  background: #ffffff;
  filter: blur(2px);
  opacity: 0.8;
  animation: flareAnim 1.5s ease-in-out infinite;
}

@keyframes flareAnim {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.zip-progress-percent {
  font-size: 12px;
  font-weight: 800;
  color: #7c3aed;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  min-width: 36px;
  text-align: left;
}

/* Micro Checklist */
.zip-checklist-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fafbff;
  border: 1px solid rgba(226, 232, 255, 0.8);
  border-radius: 16px;
  padding: 12px 14px;
}

.zip-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #94a3b8;
  transition: all 0.25s ease;
  text-align: right;
}

.zip-check-item.active {
  color: #10b981;
  font-weight: 700;
}

.zip-check-item.pending {
  color: #7c3aed;
  font-weight: 700;
  animation: itemPulse 1.5s infinite;
}

@keyframes itemPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.zip-check-item.waiting {
  color: #94a3b8;
}

.zip-check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.zip-check-item.active .zip-check-icon {
  background: #ecfdf5;
  color: #10b981;
  border: 1px solid #a7f3d0;
}

.zip-check-item.pending .zip-check-icon {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.zip-check-item.waiting .zip-check-icon {
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
}

/* Light Luxury Apple Liquid Glass Theme when Loading */
.intake-modal-card.is-loading {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(35px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(35px) saturate(190%) !important;
  border: 1.5px solid rgba(168, 85, 247, 0.3) !important;
  box-shadow: 0 25px 60px -10px rgba(124, 58, 237, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.9) !important;
}

.intake-modal-card.is-loading .zip-loading-title {
  color: #0f172a !important;
}

.intake-modal-card.is-loading .zip-loading-subtitle {
  color: #6366f1 !important;
}

.intake-modal-card.is-loading .zip-progress-track {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

.intake-modal-card.is-loading .zip-progress-percent {
  color: #7c3aed !important;
}

.intake-modal-card.is-loading .zip-checklist-group {
  background: #fafbff !important;
  border-color: rgba(226, 232, 255, 0.9) !important;
}

.intake-modal-card.is-loading .zip-check-item.waiting {
  color: #94a3b8 !important;
}

.intake-modal-card.is-loading .zip-check-item.waiting .zip-check-icon {
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  border-color: #e2e8f0 !important;
}

.btn-zip-loading-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.04);
  color: #475569;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.btn-zip-loading-close:hover {
  background: rgba(168, 85, 247, 0.15);
  color: #7c3aed;
}
