:root {
    --brand-primary: #0d4f3c;
    --brand-primary-dark: #083d2e;
    --brand-accent: #2563eb;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --text-muted: #64748b;
    --border-subtle: #e2e8f0;
    --tier-free: #9333ea;
    --tier-smart: #2563eb;
    --tier-verified: #15803d;
}

body {
    background: var(--surface-muted);
    color: #0f172a;
}

.app-header {
    background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
}

.app-header .navbar-brand,
.app-header .nav-link {
    color: #fff !important;
}

.app-footer {
    background: var(--surface);
    border-top: 1px solid var(--border-subtle);
}

.page-header-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.page-header-subtitle {
    color: var(--text-muted);
    max-width: 42rem;
}

.hero {
    background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-accent));
    color: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.quote-stepper-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.quote-stepper-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.quote-stepper-item.active {
    color: var(--brand-primary);
    font-weight: 600;
}

.quote-stepper-item.complete {
    color: #334155;
}

.quote-stepper-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    border: 2px solid var(--border-subtle);
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--surface);
}

.quote-stepper-item.active .quote-stepper-badge {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    color: #fff;
}

.quote-stepper-item.complete .quote-stepper-badge {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.tier-card {
    border: 2px solid #d1d5db;
    border-radius: 14px;
    padding: 1.25rem;
    background: white;
    height: 100%;
}

.tier-card.selected-free {
    border-color: var(--tier-free);
    background: #f3e8ff;
}

.tier-card.selected-smart {
    border-color: var(--tier-smart);
    background: #dbeafe;
}

.tier-card.selected-verified {
    border-color: var(--tier-verified);
    background: #dcfce7;
}

.map-frame {
    width: 100%;
    height: 420px;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.quote-box {
    background: var(--surface);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border-subtle);
}

.auth-box {
    max-width: 32rem;
    margin: 0 auto;
}

.deploy-stamp {
    line-height: 1.3;
    white-space: nowrap;
}

.deploy-stamp-time {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
}

.password-input-group {
    position: relative;
}

.password-input-group .form-control {
    padding-right: 4.25rem;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    transform: translateY(-50%);
    z-index: 4;
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 0.2rem 0.55rem;
}

.badge-selected {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.property-confirm {
    text-align: center;
}

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

.property-confirm-form {
    flex: 1 1 140px;
    max-width: 220px;
}

.property-confirm-btn {
    width: 100%;
    min-height: 3.25rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.quote-phase {
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    background: var(--surface);
}

.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
}
