:root {
    --bg-dark: #0a0c10;
    --accent-blue: #007aff;
    --accent-green: #34c759;
    --accent-red: #ff3b30;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --panel-blur: 16px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 122, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(52, 199, 89, 0.05) 0%, transparent 40%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 2rem;
    overflow-x: hidden;
}

.bg-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    z-index: -1;
}

.app-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.logo h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
}

.logo .dot {
    color: var(--accent-blue);
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--panel-blur));
    -webkit-backdrop-filter: blur(var(--panel-blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.glass-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Input Section */
.url-input-group {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

#listing-url {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

#listing-url:focus {
    border-color: var(--accent-blue);
}

.intent-select {
    display: flex;
    align-items: center;
    gap: 1rem;
}

select {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: white;
    outline: none;
}

button {
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    border-radius: 12px;
    border: none;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    padding: 1rem 2rem;
}

.btn-primary:hover {
    background: #0063d1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 122, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
    padding: 1rem 2rem;
}

.btn-secondary:hover {
    background: var(--glass-bg);
}

.full-width {
    width: 100%;
}

/* Loading State */
.loading-container {
    text-align: center;
    padding: 3rem;
}

.scanner {
    width: 100px;
    height: 100px;
    border: 4px solid var(--accent-blue);
    border-radius: 50%;
    margin: 0 auto 2rem;
    position: relative;
    animation: rotate 2s linear infinite;
}

.scanner::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 100px;
    height: 100px;
    border: 4px solid transparent;
    border-top: 4px solid white;
    border-radius: 50%;
}

.loading-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.step {
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
}

.step.active {
    color: var(--accent-blue);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Results Layout */
.results-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.summary-card {
    grid-column: span 2;
}

/* Gauge */
.gauge {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 1.5rem auto;
}

.gauge svg {
    transform: rotate(-90deg);
}

.gauge circle {
    fill: transparent;
    stroke-width: 10;
}

.gauge .bg {
    stroke: var(--glass-border);
}

.gauge .meter {
    stroke: var(--accent-blue);
    stroke-linecap: round;
    transition: stroke-dasharray 1.5s ease;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 700;
}

.judgment {
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Metric Bars */
.metric-row {
    margin-bottom: 1.5rem;
}

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

.progress-bg {
    background: var(--glass-border);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    flex: 1;
}

.progress-bar {
    height: 100%;
    background: var(--accent-blue);
    border-radius: 4px;
    width: 0%;
    transition: width 1s ease;
}

.val {
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: block;
    text-align: right;
}

/* Summaries */
.summary-text {
    line-height: 1.6;
    margin: 1.5rem 0;
}

.cost-estimate {
    background: rgba(0, 122, 255, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.actions {
    display: flex;
    gap: 1.5rem;
}

/* Scout Section */
.scout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.video-mock {
    background: #000;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.drone-hud {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.8rem;
    color: lime;
    z-index: 2;
}

.placeholder-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.caption {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    font-size: 0.7rem;
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 0.2rem 0.5rem;
}

.scout-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.scout-profile img {
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
}

.verification-checklist {
    list-style: none;
    margin-bottom: 2rem;
}

.verification-checklist li {
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    position: relative;
    font-size: 0.9rem;
}

.verification-checklist li.checked::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
}

.verification-checklist li.loading::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.hidden { display: none !important; }
