*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --brand: #a3e635; --brand-dim: #65a30d; --brand-glow: rgba(163,230,53,0.3);
  --brand-glow-soft: rgba(163,230,53,0.08); --brand-bg: rgba(163,230,53,0.1);
  --brand-border: rgba(163,230,53,0.2);
  --dark-950: #0b0e17; --dark-900: #111520; --dark-850: #151a27;
  --dark-800: #1a1f2e; --dark-700: #242b3d;
  --slate-300: #cbd5e1; --slate-400: #94a3b8; --slate-500: #64748b; --slate-600: #475569;
  --white-5: rgba(255,255,255,0.05); --white-8: rgba(255,255,255,0.08);
  --white-10: rgba(255,255,255,0.1); --white-15: rgba(255,255,255,0.15);
  --radius: 20px; --radius-lg: 24px; --radius-sm: 14px; --radius-xs: 10px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
html { height: 100%; -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--dark-950); color: #fff; height: 100%; overflow: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
#app { height: 100%; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.bg-grid { position: fixed; inset: 0; background-image: radial-gradient(rgba(163,230,53,0.05) 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; z-index: 0; }
.bg-glow { position: fixed; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: 0; opacity: 0.7; }
.bg-glow-1 { width: 500px; height: 500px; top: -200px; right: -150px; background: rgba(163,230,53,0.06); }
.bg-glow-2 { width: 400px; height: 400px; bottom: 10%; left: -150px; background: rgba(163,230,53,0.04); }
.bg-gradient-top { position: fixed; top: 0; left: 0; right: 0; height: 300px; background: linear-gradient(180deg, rgba(163,230,53,0.04) 0%, transparent 100%); pointer-events: none; z-index: 0; }

/* Header */
.app-header { padding: 0 20px; height: 60px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 10; flex-shrink: 0; border-bottom: 1px solid var(--white-5); background: rgba(11,14,23,0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.logo { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.04em; }
.logo span { color: var(--brand); }
.step-indicator { display: flex; align-items: center; gap: 6px; background: var(--dark-800); border: 1px solid var(--white-5); border-radius: 100px; padding: 6px 14px; }
.step-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--white-10); transition: all 0.5s cubic-bezier(0.4,0,0.2,1); }
.step-dot.active { background: var(--brand); width: 20px; border-radius: 3px; box-shadow: 0 0 10px var(--brand-glow); }
.step-dot.done { background: var(--brand-dim); }
.step-count { font-size: 0.7rem; font-weight: 600; color: var(--slate-500); margin-left: 6px; letter-spacing: 0.03em; }

/* Step System */
.steps-wrapper { flex: 1; position: relative; overflow: hidden; }
.step { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 24px 20px; padding-bottom: calc(24px + var(--safe-bottom)); opacity: 0; transform: translateX(60px) scale(0.98); pointer-events: none; transition: all 0.55s cubic-bezier(0.4,0,0.2,1); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.step.active { opacity: 1; transform: translateX(0) scale(1); pointer-events: auto; }
.step.exit-left { opacity: 0; transform: translateX(-60px) scale(0.98); pointer-events: none; }
.section-label { font-size: 0.7rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 10px; }
.step-title { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; margin-bottom: 8px; }
.step-subtitle { color: var(--slate-400); font-size: 0.95rem; line-height: 1.55; margin-bottom: 20px; }

/* Step 0: Camera */
.hero-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; max-width: 440px; margin: 0 auto; }
.avail-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-bg); border: 1px solid var(--brand-border); border-radius: 100px; padding: 6px 16px; margin-bottom: 20px; animation: badge-in 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.2s both; }
@keyframes badge-in { 0% { opacity: 0; transform: translateY(-10px) scale(0.9); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.avail-dot { width: 7px; height: 7px; background: var(--brand); border-radius: 50%; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 0 rgba(163,230,53,0.5); } 50% { box-shadow: 0 0 0 6px rgba(163,230,53,0); } }
.avail-text { font-size: 0.78rem; font-weight: 600; color: var(--brand); }
.hero-title { font-size: 2.6rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 12px; animation: hero-in 0.7s cubic-bezier(0.16,1,0.3,1) 0.1s both; }
.hero-title .accent { color: var(--brand); }
@keyframes hero-in { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
.hero-sub { color: var(--slate-400); font-size: 1rem; line-height: 1.55; margin-bottom: 32px; max-width: 320px; animation: hero-in 0.7s cubic-bezier(0.16,1,0.3,1) 0.25s both; }
.camera-btn-wrapper { position: relative; margin-bottom: 28px; animation: hero-in 0.7s cubic-bezier(0.16,1,0.3,1) 0.35s both; }
.camera-ring { position: absolute; inset: -12px; border-radius: 50%; border: 2px solid rgba(163,230,53,0.15); animation: ring-pulse 2.5s ease-in-out infinite; }
.camera-ring-2 { position: absolute; inset: -24px; border-radius: 50%; border: 1px solid rgba(163,230,53,0.07); animation: ring-pulse 2.5s ease-in-out infinite 0.5s; }
@keyframes ring-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: 0.5; } }
.camera-btn { width: 150px; height: 150px; border-radius: 50%; background: linear-gradient(145deg, var(--brand) 0%, #7ccf0a 100%); border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--dark-950); font-family: inherit; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.06em; transition: all 0.3s; box-shadow: 0 0 40px rgba(163,230,53,0.35), 0 0 80px rgba(163,230,53,0.15), 0 4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2); position: relative; z-index: 1; }
.camera-btn svg { width: 40px; height: 40px; }
.camera-btn:active { transform: scale(0.9); }
#photo-input { display: none; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; animation: hero-in 0.7s cubic-bezier(0.16,1,0.3,1) 0.5s both; }
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--slate-500); font-weight: 500; }
.trust-item svg { width: 15px; height: 15px; color: var(--brand-dim); }

/* Step 1: Photo Gallery + Description */
.photo-gallery { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.photo-gallery::-webkit-scrollbar { height: 4px; }
.photo-gallery::-webkit-scrollbar-track { background: transparent; }
.photo-gallery::-webkit-scrollbar-thumb { background: var(--white-10); border-radius: 2px; }
.photo-thumb { position: relative; width: 120px; height: 120px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; scroll-snap-align: start; border: 1px solid var(--white-8); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb-remove { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,0.7); border: 1px solid rgba(255,255,255,0.2); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; line-height: 1; }
.photo-thumb-remove:active { transform: scale(0.9); }
.photo-add-btn { width: 120px; height: 120px; flex-shrink: 0; border-radius: var(--radius-sm); border: 2px dashed var(--slate-600); background: var(--dark-800); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; color: var(--slate-500); font-family: inherit; font-size: 0.72rem; font-weight: 600; transition: all 0.3s; }
.photo-add-btn:active { transform: scale(0.95); border-color: var(--brand-dim); }
.photo-add-btn svg { width: 28px; height: 28px; }
.photo-counter { font-size: 0.75rem; color: var(--slate-500); font-weight: 600; margin-bottom: 16px; }
.desc-card { background: var(--dark-800); border: 1px solid var(--white-8); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 16px; transition: border-color 0.3s, box-shadow 0.3s; }
.desc-card:focus-within { border-color: var(--brand-border); box-shadow: 0 0 0 3px rgba(163,230,53,0.08); }
.desc-input { width: 100%; padding: 14px 18px; background: none; border: none; color: #fff; font-family: inherit; font-size: 0.9rem; font-weight: 400; outline: none; resize: none; min-height: 80px; line-height: 1.5; }
.desc-input::placeholder { color: var(--slate-600); }
.desc-counter { text-align: right; padding: 0 18px 10px; font-size: 0.7rem; color: var(--slate-600); }
.donation-badge { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; background: rgba(56,189,248,0.06); border: 1px solid rgba(56,189,248,0.15); border-radius: var(--radius-sm); margin-bottom: 16px; }
.donation-badge svg { width: 20px; height: 20px; color: #38bdf8; flex-shrink: 0; margin-top: 1px; }
.donation-badge p { font-size: 0.78rem; color: var(--slate-400); line-height: 1.5; }
.donation-badge strong { color: #38bdf8; }

/* Step 2: Location */
.location-section { margin-bottom: 16px; }
.gps-btn { width: 100%; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--dark-800); border: 1px solid var(--white-8); color: #fff; font-family: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: all 0.3s; margin-bottom: 12px; }
.gps-btn:active { transform: scale(0.96); }
.gps-btn.has-location { border-color: var(--brand-border); background: linear-gradient(135deg, rgba(163,230,53,0.06), rgba(163,230,53,0.02)); }
.gps-btn .gps-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-bg); border: 1px solid var(--brand-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gps-btn .gps-icon svg { width: 18px; height: 18px; color: var(--brand); }
.gps-btn .gps-text { text-align: left; }
.gps-btn .gps-status { font-size: 0.7rem; color: var(--slate-500); font-weight: 500; }
.gps-btn.has-location .gps-status { color: var(--brand-dim); }
.location-spinner { width: 18px; height: 18px; border: 2px solid rgba(163,230,53,0.2); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.6s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.address-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--slate-600); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.address-divider::before, .address-divider::after { content: ''; flex: 1; height: 1px; background: var(--white-5); }
.address-input-card { background: var(--dark-800); border: 1px solid var(--white-8); border-radius: var(--radius-sm); overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; margin-bottom: 20px; }
.address-input-card:focus-within { border-color: var(--brand-border); box-shadow: 0 0 0 3px rgba(163,230,53,0.08); }
.address-input { width: 100%; padding: 16px 18px; background: none; border: none; color: #fff; font-family: inherit; font-size: 0.95rem; font-weight: 500; outline: none; }
.address-input::placeholder { color: var(--slate-600); font-weight: 400; }

/* Location Type Selectors */
.type-section { margin-bottom: 16px; }
.type-label { font-size: 0.72rem; font-weight: 700; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.type-toggle { display: flex; gap: 10px; margin-bottom: 16px; }
.type-pill { flex: 1; padding: 16px 12px; border-radius: var(--radius-sm); background: var(--dark-800); border: 1px solid var(--white-8); color: var(--slate-400); font-family: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: all 0.3s; }
.type-pill:active { transform: scale(0.96); }
.type-pill.active { border-color: var(--brand-border); background: var(--brand-bg); color: var(--brand); }
.type-pill svg { width: 32px; height: 32px; }
.place-options { display: flex; flex-direction: column; gap: 0; background: var(--dark-800); border: 1px solid var(--white-8); border-radius: var(--radius-sm); overflow: hidden; }
.place-option { padding: 16px 18px; background: none; border: none; border-bottom: 1px solid var(--white-5); color: var(--slate-400); font-family: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer; text-align: left; display: flex; align-items: center; justify-content: space-between; transition: all 0.2s; }
.place-option:last-child { border-bottom: none; }
.place-option:active { background: var(--white-5); }
.place-option.active { color: var(--brand); }
.place-option .check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--slate-600); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.place-option.active .check { border-color: var(--brand); background: var(--brand); }
.place-option.active .check svg { display: block; }
.place-option .check svg { display: none; width: 14px; height: 14px; color: var(--dark-950); }

/* Step 3: Time Selection */
.time-quick { display: flex; gap: 10px; margin-bottom: 20px; }
.time-quick-btn { flex: 1; padding: 16px; border-radius: var(--radius-sm); background: var(--dark-800); border: 1px solid var(--white-8); color: var(--slate-400); font-family: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.time-quick-btn:active { transform: scale(0.96); }
.time-quick-btn.active { border-color: var(--brand-border); background: var(--brand-bg); color: var(--brand); box-shadow: 0 0 12px rgba(163,230,53,0.1); }
.time-slots-container { display: none; }
.time-slots-container.visible { display: block; }
.time-day-label { text-align: center; font-size: 0.85rem; font-weight: 700; color: var(--slate-300); margin-bottom: 12px; text-transform: capitalize; }
.time-day-label:not(:first-child) { margin-top: 20px; }
.time-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 8px; }
.time-slot { padding: 10px 16px; border-radius: 100px; background: var(--dark-800); border: 1px solid var(--white-8); color: var(--slate-400); font-family: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.25s; }
.time-slot:active { transform: scale(0.93); }
.time-slot.active { background: var(--brand-bg); border-color: var(--brand-border); color: var(--brand); box-shadow: 0 0 12px rgba(163,230,53,0.1); }

/* Step 4: Price + Phone */
@keyframes gradient-shift { 0%,100% { background-position: 0% center; } 50% { background-position: 100% center; } }
.price-card { background: var(--dark-800); border: 1px solid var(--white-8); border-radius: var(--radius-lg); padding: 28px 24px; margin-bottom: 20px; box-shadow: 0 4px 24px rgba(0,0,0,0.2); }
.price-header { text-align: center; margin-bottom: 24px; }
.price-input-wrap { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 8px; }
.price-input { width: 140px; padding: 8px 0; background: linear-gradient(135deg, var(--brand) 0%, #d4fc79 50%, var(--brand) 100%); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; border: none; border-bottom: 2px solid var(--white-10); font-family: inherit; font-size: 3.8rem; font-weight: 900; letter-spacing: -0.05em; text-align: center; outline: none; caret-color: var(--brand); animation: gradient-shift 3s ease infinite; transition: border-color 0.3s; }
.price-input:focus { border-bottom-color: var(--brand); }
.price-input::placeholder { -webkit-text-fill-color: var(--slate-600); font-size: 3rem; }
.price-input::-webkit-inner-spin-button, .price-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.price-input[type=number] { -moz-appearance: textfield; }
.price-currency { font-size: 1.2rem; font-weight: 700; color: var(--slate-400); }
.price-hint { text-align: center; font-size: 0.75rem; color: var(--slate-600); margin-bottom: 16px; }
.price-presets { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.price-preset { padding: 8px 18px; border-radius: 100px; background: var(--dark-700); border: 1px solid var(--white-8); color: var(--slate-400); font-family: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.25s; }
.price-preset:active { transform: scale(0.93); }
.price-preset.active { background: var(--brand-bg); border-color: var(--brand-border); color: var(--brand); }
.phone-card { background: var(--dark-800); border: 1px solid var(--white-8); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.phone-card-label { font-size: 0.7rem; font-weight: 700; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.phone-input-wrapper { display: flex; align-items: center; background: var(--dark-850); border: 1px solid var(--white-8); border-radius: var(--radius-sm); overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.phone-input-wrapper:focus-within { border-color: var(--brand-border); box-shadow: 0 0 0 3px rgba(163,230,53,0.08); }
.phone-prefix { padding: 16px 12px 16px 16px; font-size: 1rem; font-weight: 600; color: var(--slate-500); display: flex; align-items: center; gap: 8px; flex-shrink: 0; border-right: 1px solid var(--white-5); }
.phone-prefix .flag { font-size: 1.15rem; }
.phone-input { flex: 1; padding: 16px; background: none; border: none; color: #fff; font-family: inherit; font-size: 1.05rem; font-weight: 600; letter-spacing: 0.05em; outline: none; min-width: 0; }
.phone-input::placeholder { color: var(--slate-600); font-weight: 500; }

/* Buttons */
.btn-row { display: flex; gap: 12px; margin-top: auto; padding-top: 16px; }
.btn { flex: 1; padding: 16px 24px; border-radius: 100px; font-family: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.3s; border: none; display: flex; align-items: center; justify-content: center; gap: 10px; position: relative; overflow: hidden; }
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(135deg, var(--brand) 0%, #7ccf0a 100%); color: var(--dark-950); box-shadow: 0 0 24px rgba(163,230,53,0.3), 0 4px 16px rgba(0,0,0,0.2); }
.btn-back { flex: 0; width: 52px; height: 52px; padding: 0; background: var(--dark-800); color: var(--slate-400); border: 1px solid var(--white-8); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.btn-back svg { width: 20px; height: 20px; }
.btn-loading .btn-text { opacity: 0; }
.btn-loading .btn-spinner { display: block; }
.btn-spinner { display: none; width: 22px; height: 22px; border: 3px solid rgba(11,14,23,0.25); border-top-color: var(--dark-950); border-radius: 50%; animation: spin 0.6s linear infinite; position: absolute; }

/* Step 5: Success */
.success-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.success-anim { position: relative; width: 110px; height: 110px; margin-bottom: 12px; }
.success-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand-border); animation: success-ring-in 0.8s cubic-bezier(0.34,1.56,0.64,1) both; }
@keyframes success-ring-in { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.success-circle { position: absolute; inset: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-bg), rgba(163,230,53,0.12)); display: flex; align-items: center; justify-content: center; animation: success-pop 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.15s both; }
@keyframes success-pop { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.success-circle svg { width: 44px; height: 44px; color: var(--brand); }
.success-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; animation: hero-in 0.5s ease 0.3s both; }
.success-sub { color: var(--slate-400); font-size: 0.95rem; max-width: 300px; line-height: 1.55; animation: hero-in 0.5s ease 0.4s both; }
.success-details { margin-top: 20px; background: var(--dark-800); border: 1px solid var(--white-8); border-radius: var(--radius); width: 100%; max-width: 360px; overflow: hidden; animation: hero-in 0.5s ease 0.5s both; }
.success-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; font-size: 0.88rem; }
.success-detail-row:not(:last-child) { border-bottom: 1px solid var(--white-5); }
.success-detail-label { color: var(--slate-500); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.success-detail-label svg { width: 16px; height: 16px; color: var(--brand-dim); }
.success-detail-value { font-weight: 700; text-align: right; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rel { position: relative; z-index: 1; }
@media (min-width: 640px) { .step { padding: 32px 40px; } .hero-title { font-size: 3rem; } .camera-btn { width: 170px; height: 170px; } }
@media (min-width: 1024px) { .step { max-width: 520px; margin: 0 auto; } }
