/* =============================================
   figurki-3d — Mobile-first dark theme
   Custom 3D Figurine from Selfies
   ============================================= */

/* --- RESET & VARIABLES --- */
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #12122a;
  --bg-card: #1a1a3e;
  --bg-card-hover: #222255;
  --bg-dropzone: rgba(108, 99, 255, 0.05);
  --accent: #6c63ff;
  --accent-hover: #5a52e0;
  --accent-glow: rgba(108, 99, 255, 0.3);
  --accent-subtle: rgba(108, 99, 255, 0.15);
  --text-primary: #e0e0e0;
  --text-secondary: #8888aa;
  --text-muted: #666688;
  --success: #4ade80;
  --success-bg: rgba(74, 222, 128, 0.1);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.1);
  --border: #2a2a4a;
  --border-light: #3a3a5a;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--accent-glow);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 64px;
}

/* --- RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
}

input, select {
  font-family: inherit;
  font-size: inherit;
}

ul {
  list-style: none;
}

/* --- UTILITY --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.hidden {
  display: none !important;
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 1rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-logo span {
  color: var(--accent);
}

.navbar-links {
  display: none;
  gap: 2rem;
  align-items: center;
}

.navbar-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.navbar-links a:hover {
  color: var(--text-primary);
}

.navbar-cta {
  display: none;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition);
}

.navbar-cta:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
}

.navbar-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.navbar-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 26, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 99;
  animation: fadeIn 0.2s ease;
}

.mobile-menu a {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-menu .navbar-cta {
  display: inline-block;
  font-size: 1.2rem;
  padding: 0.75rem 2rem;
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(108, 99, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-steps {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.hero-step .icon {
  font-size: 1.1rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse-cta 3s ease-in-out infinite;
}

.hero-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-glow);
  color: white;
}

.hero-social-proof {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-social-proof strong {
  color: var(--success);
  font-size: 1.1rem;
}

.hero-viewer {
  width: 280px;
  height: 280px;
  margin: 2rem auto 0;
  position: relative;
  z-index: 1;
}

.hero-viewer canvas {
  width: 100% !important;
  height: 100% !important;
}

/* --- HOW IT WORKS --- */
.how-it-works {
  background: var(--bg-secondary);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.step-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- PRICING --- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}

.pricing-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.pricing-price small {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-features {
  margin-bottom: 1.5rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
}

.pricing-btn:hover {
  background: var(--border-light);
  transform: translateY(-1px);
}

.pricing-card.popular .pricing-btn {
  background: var(--accent);
  color: white;
}

.pricing-card.popular .pricing-btn:hover {
  background: var(--accent-hover);
}

/* --- UPLOAD --- */
.upload-section {
  background: var(--bg-secondary);
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent);
  background: var(--bg-dropzone);
}

.upload-zone.dragover {
  border-color: var(--success);
  background: var(--success-bg);
}

.upload-zone-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.upload-zone-text {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.upload-zone-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.upload-zone-input {
  display: none;
}

.upload-zone.validating {
  border-color: var(--info);
  pointer-events: none;
}

.upload-zone.error {
  border-color: var(--error);
  background: var(--error-bg);
}

.upload-zone.preview,
.upload-zone.warning {
  border-style: solid;
  border-color: var(--success);
  cursor: default;
  padding: 1.5rem;
}

.upload-zone.warning {
  border-color: var(--warning);
}

/* Upload preview */
.upload-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.upload-preview img {
  max-width: 250px;
  max-height: 250px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  object-fit: cover;
}

.upload-preview-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.upload-quality-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.upload-quality-badge.good {
  background: var(--success-bg);
  color: var(--success);
}

.upload-quality-badge.fair {
  background: var(--warning-bg);
  color: var(--warning);
}

.upload-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* --- GENERATING --- */
.generating-section {
  text-align: center;
  padding: 4rem 1rem;
}

.generating-spinner {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.generating-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.generating-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.generating-progress {
  max-width: 400px;
  margin: 0 auto 2rem;
}

.generating-progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.generating-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.generating-progress-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.generating-time {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.generating-tips {
  max-width: 400px;
  margin: 0 auto;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.generating-tip {
  font-size: 0.9rem;
  color: var(--text-secondary);
  animation: fadeIn 0.5s ease;
}

.generating-retry {
  margin-top: 1rem;
}

/* --- PREVIEW / CHECKOUT --- */
.preview-section {
  background: var(--bg-secondary);
}

.preview-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.preview-model {
  text-align: center;
}

.preview-model img {
  max-width: 300px;
  border-radius: var(--radius);
  margin: 0 auto 1rem;
  border: 2px solid var(--border);
}

.preview-model-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent-subtle);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background var(--transition);
}

.preview-model-btn:hover {
  background: var(--accent);
  color: white;
}

/* Size selector */
.size-selector {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.size-option {
  flex: 1;
  max-width: 200px;
  padding: 1rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.size-option:hover {
  border-color: var(--accent-subtle);
}

.size-option.selected {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.size-option h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.size-option .price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.size-option .desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Checkout form */
.checkout-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-input.error {
  border-color: var(--error);
}

.form-error {
  font-size: 0.85rem;
  color: var(--error);
  margin-top: 0.35rem;
}

.checkout-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.checkout-summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

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

.btn-primary .spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), border-color var(--transition);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.trust-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-badges span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* --- STATUS TRACKING --- */
.status-timeline {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-step {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  position: relative;
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-step.completed:not(:last-child)::after {
  background: var(--success);
}

.timeline-step.current:not(:last-child)::after {
  background: var(--accent);
}

.timeline-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 2px solid var(--border);
}

.timeline-step.completed .timeline-icon {
  background: var(--success-bg);
  border-color: var(--success);
}

.timeline-step.current .timeline-icon {
  background: var(--accent-subtle);
  border-color: var(--accent);
  animation: pulse-glow 2s ease-in-out infinite;
}

.timeline-content {
  flex: 1;
  padding-top: 0.5rem;
}

.timeline-content h4 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.timeline-content .date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-step.completed .timeline-content h4 {
  color: var(--success);
}

.timeline-step.current .timeline-content h4 {
  color: var(--accent);
}

/* --- SUCCESS --- */
.success-section {
  text-align: center;
  padding: 6rem 1rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce-in 0.6s ease;
}

.success-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.success-text {
  color: var(--text-secondary);
  max-width: 450px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- OPINIONS --- */
.opinions-section {
  background: var(--bg-secondary);
}

.opinions-carousel {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.opinion-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.opinion-stars {
  color: var(--warning);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.opinion-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.opinion-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1rem;
  text-align: center;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-logo span {
  color: var(--accent);
}

.footer-powered {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent);
}

/* --- TOASTS --- */
.toast-container {
  position: fixed;
  top: calc(var(--header-height) + 1rem);
  right: 1rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
  width: calc(100% - 2rem);
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.4;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  pointer-events: all;
}

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

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

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

.toast.info {
  background: var(--info-bg);
  border: 1px solid var(--info);
  color: var(--info);
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
}

.toast-message {
  flex: 1;
}

.toast-close {
  flex-shrink: 0;
  font-size: 1.1rem;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity var(--transition);
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  line-height: 1;
}

.toast-close:hover {
  opacity: 1;
}

/* --- 3D VIEWER MODAL --- */
.viewer-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.viewer-modal-content {
  width: 100%;
  height: 100%;
  position: relative;
}

.viewer-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  transition: background var(--transition);
}

.viewer-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* --- SKELETON LOADING --- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
  width: 80%;
}

.skeleton-title {
  height: 1.5rem;
  margin-bottom: 1rem;
  width: 60%;
}

.skeleton-card {
  height: 200px;
  margin-bottom: 1rem;
}

.skeleton-image {
  aspect-ratio: 1;
  border-radius: var(--radius);
}

/* --- OFFLINE BANNER --- */
.offline-banner {
  background: var(--warning-bg);
  border: 1px solid var(--warning);
  color: var(--warning);
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 99;
}

/* --- ANIMATIONS --- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(108, 99, 255, 0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(108, 99, 255, 0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes bounce-in {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* --- RESPONSIVE --- */

/* Mobile (default) — zdefiniowane powyżej */

/* Tablet (≥768px) */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .section {
    padding: 6rem 2rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .navbar {
    padding: 0 2rem;
  }

  .navbar-links {
    display: flex;
  }

  .navbar-cta {
    display: inline-flex;
  }

  .navbar-hamburger {
    display: none;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.15rem;
  }

  .hero-viewer {
    width: 350px;
    height: 350px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .preview-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .opinions-carousel {
    grid-template-columns: repeat(3, 1fr);
  }

  .toast-container {
    right: 2rem;
  }
}

/* Desktop (≥1024px) */
@media (min-width: 1024px) {
  .hero {
    flex-direction: row;
    text-align: left;
    padding: 0 2rem;
    gap: 4rem;
  }

  .hero-content {
    max-width: 500px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero p {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-steps {
    justify-content: flex-start;
  }

  .hero-viewer {
    width: 400px;
    height: 400px;
    margin: 0;
  }

  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
  }
}

/* --- ACCESSIBILITY --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Touch targets */
button, a, input, select {
  min-height: 44px;
}

/* Selection */
::selection {
  background: var(--accent-subtle);
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

/* --- PRINT --- */
@media print {
  .navbar,
  .toast-container,
  .viewer-modal,
  .offline-banner,
  .hero-viewer,
  .hero-cta,
  .pricing-btn {
    display: none !important;
  }

  .section {
    padding: 2rem 1rem;
    page-break-inside: avoid;
  }

  body {
    background: white;
    color: black;
  }

  .section-title {
    -webkit-text-fill-color: initial;
    color: black;
  }
}
