*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { font-family: 'DM Sans', system-ui, -apple-system, sans-serif; background: #f5f5f0; color: #1f2124; min-height: 100vh; min-height: 100dvh; }

/* Header */
.header { position: sticky; top: 0; z-index: 100; background: #e58d34; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.header-logo { height: 28px; filter: brightness(10); }
.header-title { font-size: 13px; font-weight: 600; color: white; letter-spacing: 0.5px; text-transform: uppercase; }

/* Layout */
.container { max-width: 480px; margin: 0 auto; padding: 24px 20px; }
.step[hidden] { display: none; }

/* Typography */
.step-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: #e58d34; margin-bottom: 8px; }
h1 { font-size: 24px; font-weight: 700; color: #1f2124; margin-bottom: 6px; line-height: 1.2; }
.subtitle { font-size: 14px; color: #6b7280; margin-bottom: 24px; line-height: 1.5; }
.powered-by { text-align: center; font-size: 11px; color: #9ca3af; margin-top: 16px; }

/* Input */
.input-group { position: relative; margin-bottom: 16px; }
.input-icon { position: absolute; left: 14px; top: 17px; color: #9ca3af; pointer-events: none; }
.input-group input { width: 100%; padding: 14px 16px 14px 42px; font-size: 16px; font-family: 'DM Sans', system-ui, sans-serif; border: 2px solid #e0ddd6; border-radius: 12px; background: white; color: #1f2124; outline: none; transition: border-color 0.2s; -webkit-appearance: none; }
.input-group input:focus { border-color: #e58d34; }
.input-group input::placeholder { color: #9ca3af; }
#manual-input { padding-left: 16px; }

/* Autocomplete */
.autocomplete-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: white; border: 1px solid #e0ddd6; border-radius: 12px; list-style: none; max-height: 240px; overflow-y: auto; box-shadow: 0 4px 16px rgba(0,0,0,0.08); z-index: 50; }
.autocomplete-list[hidden] { display: none; }
.autocomplete-item { padding: 12px 16px; font-size: 14px; color: #1f2124; cursor: pointer; border-bottom: 1px solid #f0ede6; }
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:active, .autocomplete-item:hover { background: #fdf6ee; }

/* Buttons */
.btn-primary { display: block; width: 100%; padding: 16px; background: #e58d34; color: white; font-size: 16px; font-weight: 700; font-family: 'DM Sans', system-ui, sans-serif; border: none; border-radius: 12px; cursor: pointer; letter-spacing: 0.5px; transition: background 0.2s, opacity 0.2s; -webkit-appearance: none; min-height: 52px; }
.btn-primary:hover { background: #d17a28; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary:disabled:hover { background: #e58d34; }
.btn-link { display: block; width: 100%; padding: 14px; background: none; border: none; font-size: 14px; font-family: 'DM Sans', system-ui, sans-serif; color: #6b7280; text-decoration: underline; cursor: pointer; text-align: center; min-height: 48px; }

/* Loading */
.loading-container { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50vh; min-height: 50dvh; }
.spinner { width: 48px; height: 48px; border: 4px solid #e0ddd6; border-top-color: #e58d34; border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 18px; font-weight: 600; color: #1f2124; margin-bottom: 4px; }
.loading-subtext { font-size: 14px; color: #9ca3af; }

/* Results */
.results-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04); border: 1px solid #e8e5de; margin-bottom: 16px; }
.results-hero { background: #1f2124; padding: 28px 24px 24px; text-align: center; }
.results-address { font-size: 12px; color: #9ca3af; margin-bottom: 8px; letter-spacing: 0.3px; }
.results-number { font-family: 'JetBrains Mono', monospace; font-size: 64px; font-weight: 700; color: #e58d34; line-height: 1; }
.results-unit { font-size: 15px; font-weight: 600; color: #e58d34; letter-spacing: 3px; text-transform: uppercase; margin-top: 4px; }
.results-badge { display: inline-block; margin-top: 12px; padding: 5px 14px; background: rgba(229,141,52,0.15); border-radius: 20px; font-size: 11px; font-weight: 600; color: #e58d34; letter-spacing: 0.3px; }
.results-details { padding: 16px 24px; }
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0ede6; }
.detail-row:last-child { border-bottom: none; }
.detail-label { font-size: 13px; color: #6b7280; }
.detail-value { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 500; color: #1f2124; }

/* Satellite */
.satellite-container { border-top: 1px solid #e8e5de; }
.satellite-img { display: block; width: 100%; height: 200px; object-fit: cover; background: #e8e5de; }

/* Error */
.error-card { background: white; border-radius: 16px; padding: 32px 24px; text-align: center; border: 1px solid #e8e5de; margin-bottom: 16px; }
.error-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: #fef2e6; color: #e58d34; font-size: 24px; font-weight: 700; border-radius: 50%; margin-bottom: 16px; }
.error-message { font-size: 16px; font-weight: 600; color: #1f2124; margin-bottom: 8px; }
.error-detail { font-size: 14px; color: #6b7280; line-height: 1.5; }

/* Warning */
.results-warning { background: #fef9ee; border-top: 1px solid #e8e5de; padding: 12px 24px; font-size: 13px; color: #92400e; text-align: center; line-height: 1.4; }
.results-warning.results-warning--critical { background: #dc2626; color: white; font-size: 15px; font-weight: 700; padding: 20px 24px; border-top: none; letter-spacing: 0.3px; }
