/* ================================================================
   BUILDING INTELLIGENCE PLATFORM - COMPLETE STYLES
   ================================================================ */

.building-intelligence-platform {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    padding: 2rem 0;
    min-height: 100vh;
}

.platform-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ================================================================
   HEADER
   ================================================================ */
.platform-header {
    text-align: center;
    margin-bottom: 3rem;
}

.platform-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #181E57;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.platform-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    background: linear-gradient(135deg, #0018ff 0%, #181E57 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.platform-icon svg {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    display: block;
}

.platform-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ================================================================
   TOP NAVIGATION CARDS
   ================================================================ */
.top-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.nav-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 24, 255, 0.15);
    border-color: #0018ff;
}

.nav-card-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.nav-card-icon.velocity-icon {
    background: linear-gradient(135deg, #0018ff 0%, #0066ff 100%);
}

.nav-card-icon.solar-icon {
    background: linear-gradient(135deg, #ffd000 0%, #ffea00 100%);
}

.nav-card-icon.filter-icon {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
}

.nav-card-icon.compare-icon {
    background: linear-gradient(135deg, #00ff66 0%, #00dd55 100%);
}

.nav-card-icon.hurricane-icon {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.nav-card-icon svg {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    display: block;
}

.nav-card-content {
    flex: 1;
}

.nav-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #181E57;
    margin-bottom: 0.25rem;
}

.nav-card-tagline {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

/* ================================================================
   FEATURE SECTIONS
   ================================================================ */
.feature-section {
    margin-bottom: 4rem;
    scroll-margin-top: 2rem;
}

.feature-header-row {
    display: grid;
    grid-template-columns: minmax(280px, 350px) 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature-icon-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 24, 255, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.feature-large-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.feature-large-icon.velocity-icon {
    background: linear-gradient(135deg, #0018ff 0%, #0066ff 100%);
}

.feature-large-icon.solar-icon {
    background: linear-gradient(135deg, #ffd000 0%, #ffea00 100%);
}

.feature-large-icon.filter-icon {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
}

.feature-large-icon.compare-icon {
    background: linear-gradient(135deg, #00ff66 0%, #00dd55 100%);
}

.feature-large-icon.hurricane-icon {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.feature-large-icon svg {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    display: block;
}

.feature-icon-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #181E57;
    margin: 0;
}

.feature-icon-tagline {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

.feature-description-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(0, 24, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 24, 255, 0.08);
}

.feature-description-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #181E57;
    margin-bottom: 1rem;
}

.feature-description-text {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-description-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-description-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: #475569;
    line-height: 1.6;
}

.feature-description-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0018ff;
    font-weight: bold;
}

.feature-content-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 24, 255, 0.08);
}

/* ================================================================
   HURRICANE-SPECIFIC STYLES
   ================================================================ */
.hurricane-risk-score {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 20px;
    border: 2px solid #dc2626;
    margin: 2rem 0;
}

.risk-score-value {
    font-size: 4rem;
    font-weight: 800;
    color: #dc2626;
    margin: 0.5rem 0;
}

.risk-score-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: #991b1b;
    text-transform: uppercase;
}

.risk-score-description {
    color: #7f1d1d;
    margin-top: 0.5rem;
}

.hurricane-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.hurricane-stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.hurricane-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.15);
    border-color: #dc2626;
}

.hurricane-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.hurricane-stat-label {
    font-size: 0.9rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
}

.hurricane-list {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 2px solid #e2e8f0;
}

.hurricane-list-item {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hurricane-list-item:hover {
    background: #f8fafc;
    padding-left: 1.5rem;
}

.hurricane-list-item:last-child {
    border-bottom: none;
}

.hurricane-name {
    font-weight: 700;
    color: #181E57;
}

.hurricane-category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hurricane-category-badge.cat-5 {
    background: #7f1d1d;
    color: white;
}

.hurricane-category-badge.cat-4 {
    background: #dc2626;
    color: white;
}

.hurricane-category-badge.cat-3 {
    background: #f59e0b;
    color: white;
}

.hurricane-category-badge.cat-2 {
    background: #eab308;
    color: white;
}

.hurricane-category-badge.cat-1 {
    background: #22c55e;
    color: white;
}

.hurricane-animator-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 15px;
    border: 2px solid #e2e8f0;
}

.hurricane-select {
    flex: 1;
    max-width: 400px;
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
}

.ai-chat-container {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid #3b82f6;
}

.ai-chat-messages {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
}

.ai-message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 10px;
}

.ai-message.user {
    background: #dbeafe;
    margin-left: 20%;
}

.ai-message.assistant {
    background: #f8fafc;
    margin-right: 20%;
    border: 1px solid #e2e8f0;
}

.ai-chat-input-container {
    display: flex;
    gap: 1rem;
}

.ai-chat-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #3b82f6;
    border-radius: 10px;
    font-size: 1rem;
}

.heatmap-legend {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    border: 2px solid #e2e8f0;
}

.heatmap-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.heatmap-color-box {
    width: 30px;
    height: 20px;
    border-radius: 4px;
}

/* ================================================================
   HURRICANE SECTION - ICON SIZE FIXES
   ================================================================ */

/* Hurricane Risk Analyzer Header Icon */
#hurricane-risk .feature-large-icon svg {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    display: block;
}

/* ZIP Code Hurricane Risk Analyzer Title Icon */
#hurricane-risk h3 svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    display: inline-block;
    vertical-align: middle;
}

/* AI Chat/Search Icons */
#hurricane-risk .ai-chat-container h3 svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    display: inline-block;
    vertical-align: middle;
}

/* Button Icons in Hurricane Section */
#hurricane-risk button svg,
#hurricane-risk .btn-danger svg,
#hurricane-risk .btn-ai svg,
#hurricane-risk .btn-success svg,
#hurricane-risk .btn-secondary svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Hurricane Animator Controls */
.hurricane-animator-controls button svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    flex-shrink: 0;
}

/* Hurricane Statistics Dashboard Title Icon */
.hurricane-stats-grid ~ h3 svg,
#hurricane-risk .hurricane-list ~ h3 svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    display: inline-block;
    vertical-align: middle;
}

/* Alert/Help Icons */
#hurricane-risk .alert-icon svg,
#hurricane-risk .help-btn svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
}

/* Fix for any SVGs that might be in list items or special contexts */
#hurricane-risk li svg,
#hurricane-risk .hurricane-list-item svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    display: inline-block;
    vertical-align: middle;
}

/* ================================================================
   FEATURE SEPARATORS
   ================================================================ */
.feature-separator {
    width: 100%;
    height: 120px;
    margin: 4rem 0;
    overflow: hidden;
    position: relative;
}

.wind-separator {
    background: linear-gradient(90deg, transparent, rgba(0, 24, 255, 0.08), transparent);
}

.hurricane-separator {
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.08), transparent);
}

.wind-wave {
    animation: windFlow 8s ease-in-out infinite;
    opacity: 1;
}

.wind-particle {
    animation: windBlow 4s ease-in-out infinite;
}

.wind-gust {
    animation: windGust 6s ease-in-out infinite;
}

@keyframes windFlow {
    0%, 100% { transform: translateX(-10%) scaleY(1); }
    50% { transform: translateX(10%) scaleY(0.95); }
}

@keyframes windBlow {
    0% { opacity: 0; transform: translateX(0) translateY(0); }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { opacity: 0; transform: translateX(1200px) translateY(-20px); }
}

@keyframes windGust {
    0% { opacity: 0; transform: translateX(0) translateY(0) scaleX(1); }
    5% { opacity: 0.6; }
    50% { opacity: 0.6; transform: translateX(600px) translateY(10px) scaleX(1.5); }
    95% { opacity: 0.6; }
    100% { opacity: 0; transform: translateX(1200px) translateY(-10px) scaleX(0.8); }
}

.solar-separator {
    background: linear-gradient(90deg, transparent, rgba(255, 208, 0, 0.08), transparent);
}

.solar-ray {
    animation: solarPulse 3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes solarPulse {
    0%, 100% { opacity: 0.6; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

.energy-separator {
    background: linear-gradient(90deg, transparent, rgba(0, 255, 102, 0.08), transparent);
}

.energy-particle {
    animation: energyFlow 3s linear infinite;
}

@keyframes energyFlow {
    0% { opacity: 0; transform: translateX(0); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateX(1200px); }
}

/* ================================================================
   SEARCH & INPUT STYLES
   ================================================================ */
.search-container {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.location-input, .form-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.location-input:focus, .form-input:focus {
    border-color: #0018ff;
    box-shadow: 0 0 0 3px rgba(0, 24, 255, 0.1);
}

.form-input {
    border-radius: 10px;
}

/* ================================================================
   BUTTON STYLES
   ================================================================ */
.btn-primary {
    background: linear-gradient(135deg, #0018ff 0%, #181E57 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 24, 255, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    flex-shrink: 0;
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.3);
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    flex-shrink: 0;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-success:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-success svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    flex-shrink: 0;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.btn-danger svg {
    width: 16px !important;
    height: 16px !important;
}

.btn-ai {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-ai:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-ai svg {
    width: 20px !important;
    height: 20px !important;
}

/* ================================================================
   RISK CATEGORIES
   ================================================================ */
.risk-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.risk-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.risk-option:hover {
    border-color: #0018ff;
    transform: translateY(-2px);
}

.risk-option.selected {
    background: linear-gradient(135deg, #0018ff 0%, #181E57 100%);
    color: white;
    border-color: #0018ff;
}

.risk-category-name {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.risk-category-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ================================================================
   RESULTS & CARDS
   ================================================================ */
.velocity-results {
    display: none;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(34, 197, 94, 0.2);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.1);
}

.velocity-results.show {
    display: block;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 24, 255, 0.15);
}

.result-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.result-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0018ff;
}

.result-unit {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* ================================================================
   ALERTS
   ================================================================ */
.local-alert {
    display: none;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 15px;
    padding: 1rem;
    margin: 1rem 0;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-icon {
    flex-shrink: 0;
}

.alert-icon svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    color: #f59e0b;
    flex-shrink: 0;
}

/* ================================================================
   TABLES
   ================================================================ */
.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.results-table th {
    background: linear-gradient(135deg, #0018ff 0%, #181E57 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
}

.results-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.results-table tr:hover {
    background: #f8fafc;
    cursor: pointer;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    margin-top: 1rem;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.table-wrapper.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0;
}

.collapse-toggle {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.collapse-toggle:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-2px);
}

.collapse-toggle svg {
    width: 16px !important;
    height: 16px !important;
    transition: transform 0.3s ease;
}

.collapse-toggle.collapsed svg {
    transform: rotate(180deg);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ================================================================
   FORM GROUPS
   ================================================================ */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

/* ================================================================
   COMPARISON CHIPS
   ================================================================ */
.comparison-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.comparison-chip {
    background: linear-gradient(135deg, #0018ff 0%, #181E57 100%);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.chip-remove {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.chip-remove:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chip-remove svg {
    width: 12px;
    height: 12px;
}

/* ================================================================
   MAP STYLES
   ================================================================ */
.map-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(0, 24, 255, 0.1);
}

.map-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.map-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #181E57;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.map-title svg {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    flex-shrink: 0;
}

.map-subtitle {
    color: #64748b;
}

.map-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.map-control-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.map-control-btn:hover {
    border-color: #0018ff;
    color: #0018ff;
}

.map-control-btn.active {
    background: #0018ff;
    color: white;
    border-color: #0018ff;
}

.velocity-map {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
}

.wind-legend {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    border: 2px solid #e2e8f0;
}

.legend-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #181E57;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* ================================================================
   AUTHORITY BADGES
   ================================================================ */
.authority-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.authority-badge.fbc-2023 {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    border: 1px solid #7f1d1d;
}

.authority-badge.local-jurisdiction {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: 1px solid #b45309;
}

/* ================================================================
   LOADING & NOTIFICATIONS
   ================================================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-success {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.notification-error {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
}

.notification-warning {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6b7280;
}

/* ================================================================
   FLOATING HELP BUTTON
   ================================================================ */
.floating-help-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-help-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.6);
}

.floating-help-btn:active {
    transform: scale(0.95);
}

/* ================================================================
   TOOLTIP STYLES
   ================================================================ */
[title]:hover::after {
    opacity: 1;
}

button:hover {
    transition: all 0.2s ease;
}

.help-btn:hover {
    transform: scale(1.1);
}

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */
@media (max-width: 768px) {
    .platform-container {
        padding: 0 1rem;
    }
    
    .platform-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .top-navigation {
        grid-template-columns: 1fr;
    }
    
    .feature-header-row {
        grid-template-columns: 1fr;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .risk-categories {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .hurricane-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-title {
        font-size: 1.5rem;
    }
}

/* ================================================================
   UTILITY CLASSES
   ================================================================ */
svg {
    max-width: 100%;
    max-height: 100%;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.empty-state {
    text-align: center;
    color: #6b7280;
    padding: 2rem;
    font-style: italic;
}

/* Wind Separator - Negative delays for truly random start */
.wind-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.wind-turbulence-wide {
    position: relative;
    width: 100%;
    height: 60px;
    max-width: 1200px;
    overflow: hidden;
}

.wind-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1e40af, transparent);
    border-radius: 1px;
    animation: windFlow linear infinite;
    filter: drop-shadow(0 2px 4px rgba(100, 116, 139, 0.4)) drop-shadow(0 1px 2px rgba(100, 116, 139, 0.3));
}

.wind-line:nth-child(1) { 
    top: 8px; 
    width: 220px; 
    animation-delay: -0.6s;
    animation-duration: 7s;
    opacity: 0.9;
}
.wind-line:nth-child(2) { 
    top: 42px; 
    width: 180px; 
    animation-delay: -4.3s;
    animation-duration: 5.2s;
    opacity: 0.7;
}
.wind-line:nth-child(3) { 
    top: 25px; 
    width: 300px; 
    animation-delay: -2.1s;
    animation-duration: 6.8s;
    opacity: 0.85;
}
.wind-line:nth-child(4) { 
    top: 54px; 
    width: 160px; 
    animation-delay: -3.7s;
    animation-duration: 5.5s;
    opacity: 0.75;
}
.wind-line:nth-child(5) { 
    top: 3px; 
    width: 250px; 
    animation-delay: -5.8s;
    animation-duration: 6.2s;
    opacity: 0.8;
}
.wind-line:nth-child(6) { 
    top: 35px; 
    width: 190px; 
    animation-delay: -1.2s;
    animation-duration: 7.5s;
    opacity: 0.7;
}
.wind-line:nth-child(7) { 
    top: 16px; 
    width: 280px; 
    animation-delay: -4.9s;
    animation-duration: 5.8s;
    opacity: 0.9;
}
.wind-line:nth-child(8) { 
    top: 48px; 
    width: 210px; 
    animation-delay: -2.4s;
    animation-duration: 6.5s;
    opacity: 0.75;
}
.wind-line:nth-child(9) { 
    top: 12px; 
    width: 170px; 
    animation-delay: -6.6s;
    animation-duration: 7.2s;
    opacity: 0.8;
}
.wind-line:nth-child(10) { 
    top: 38px; 
    width: 240px; 
    animation-delay: -3.5s;
    animation-duration: 6s;
    opacity: 0.85;
}
.wind-line:nth-child(11) { 
    top: 6px; 
    width: 200px; 
    animation-delay: -5.1s;
    animation-duration: 5.6s;
    opacity: 0.7;
}
.wind-line:nth-child(12) { 
    top: 51px; 
    width: 265px; 
    animation-delay: -0.9s;
    animation-duration: 6.9s;
    opacity: 0.9;
}
.wind-line:nth-child(13) { 
    top: 29px; 
    width: 195px; 
    animation-delay: -4.2s;
    animation-duration: 5.9s;
    opacity: 0.75;
}
.wind-line:nth-child(14) { 
    top: 20px; 
    width: 230px; 
    animation-delay: -1.9s;
    animation-duration: 6.4s;
    opacity: 0.8;
}
.wind-line:nth-child(15) { 
    top: 44px; 
    width: 175px; 
    animation-delay: -5.9s;
    animation-duration: 7.1s;
    opacity: 0.85;
}
.wind-line:nth-child(16) { 
    top: 10px; 
    width: 215px; 
    animation-delay: -3.4s;
    animation-duration: 6.6s;
    opacity: 0.8;
}
.wind-line:nth-child(17) { 
    top: 56px; 
    width: 185px; 
    animation-delay: -4.7s;
    animation-duration: 5.4s;
    opacity: 0.7;
}
.wind-line:nth-child(18) { 
    top: 32px; 
    width: 270px; 
    animation-delay: -1.5s;
    animation-duration: 7.3s;
    opacity: 0.9;
}
.wind-line:nth-child(19) { 
    top: 14px; 
    width: 205px; 
    animation-delay: -6.1s;
    animation-duration: 6.1s;
    opacity: 0.75;
}
.wind-line:nth-child(20) { 
    top: 47px; 
    width: 235px; 
    animation-delay: -2.8s;
    animation-duration: 6.7s;
    opacity: 0.85;
}
.wind-line:nth-child(21) { 
    top: 5px; 
    width: 190px; 
    animation-delay: -5.4s;
    animation-duration: 5.8s;
    opacity: 0.7;
}
.wind-line:nth-child(22) { 
    top: 40px; 
    width: 255px; 
    animation-delay: -3.9s;
    animation-duration: 6.3s;
    opacity: 0.85;
}

@keyframes windFlow {
    0% { 
        left: -300px;
        opacity: 0;
    }
    10% { 
        opacity: var(--line-opacity, 0.8);
    }
    90% { 
        opacity: var(--line-opacity, 0.8);
    }
    100% { 
        left: calc(100% + 100px);
        opacity: 0;
    }
}

/* CYCLONE SEPARATOR */
.cyclone-separator {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
    position: relative;
}

.cyclone-loader {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.cyclone-band {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: cycloneSpinCW 3s linear infinite, cyclonePulse 3s ease-in-out infinite;
    transform-origin: center center;
}

.cyclone-band:nth-child(even) {
    animation: cycloneSpinCCW 3s linear infinite, cyclonePulse 3s ease-in-out infinite;
}

.cyclone-band:nth-child(1) {
    width: 30px; height: 30px;
    margin-left: -15px; margin-top: -15px;
    border-top: 2px solid #2563eb;
    border-right: 2px solid rgba(37, 99, 235, 0.8);
    animation-delay: 0s;
    filter: drop-shadow(0 2px 4px rgba(100, 116, 139, 0.4));
    transform: rotate(25deg);
}

.cyclone-band:nth-child(2) {
    width: 60px; height: 60px;
    margin-left: -30px; margin-top: -30px;
    border-top: 2px solid #1d4ed8;
    border-right: 2px solid rgba(29, 78, 216, 0.8);
    animation-delay: 0.075s;
    filter: drop-shadow(0 2px 4px rgba(100, 116, 139, 0.4));
    transform: rotate(78deg);
}

.cyclone-band:nth-child(3) {
    width: 90px; height: 90px;
    margin-left: -45px; margin-top: -45px;
    border-top: 2px solid #1e3a8a;
    border-right: 2px solid rgba(30, 58, 138, 0.8);
    animation-delay: 0.15s;
    filter: drop-shadow(0 2px 4px rgba(100, 116, 139, 0.4));
    transform: rotate(142deg);
}

.cyclone-band:nth-child(4) {
    width: 120px; height: 120px;
    margin-left: -60px; margin-top: -60px;
    border-top: 2px solid #1e40af;
    border-right: 2px solid rgba(30, 64, 175, 0.8);
    animation-delay: 0.225s;
    filter: drop-shadow(0 2px 4px rgba(100, 116, 139, 0.4));
    transform: rotate(215deg);
}

.cyclone-band:nth-child(5) {
    width: 150px; height: 150px;
    margin-left: -75px; margin-top: -75px;
    border-top: 2px solid #2563eb;
    border-right: 2px solid rgba(37, 99, 235, 0.7);
    animation-delay: 0.3s;
    filter: drop-shadow(0 2px 3px rgba(100, 116, 139, 0.3));
    transform: rotate(48deg);
}

.cyclone-band:nth-child(6) {
    width: 180px; height: 180px;
    margin-left: -90px; margin-top: -90px;
    border-top: 2px solid #1d4ed8;
    border-right: 2px solid rgba(29, 78, 216, 0.7);
    animation-delay: 0.375s;
    filter: drop-shadow(0 2px 3px rgba(100, 116, 139, 0.3));
    transform: rotate(195deg);
}

.cyclone-band:nth-child(7) {
    width: 210px; height: 210px;
    margin-left: -105px; margin-top: -105px;
    border-top: 2px solid #1e3a8a;
    border-right: 2px solid rgba(30, 58, 138, 0.7);
    animation-delay: 0.45s;
    filter: drop-shadow(0 2px 3px rgba(100, 116, 139, 0.3));
    transform: rotate(312deg);
}

.cyclone-band:nth-child(8) {
    width: 240px; height: 240px;
    margin-left: -120px; margin-top: -120px;
    border-top: 2px solid #1e40af;
    border-right: 2px solid rgba(30, 64, 175, 0.7);
    animation-delay: 0.525s;
    filter: drop-shadow(0 2px 3px rgba(100, 116, 139, 0.3));
    transform: rotate(125deg);
}

.cyclone-band:nth-child(9) {
    width: 280px; height: 280px;
    margin-left: -140px; margin-top: -140px;
    border-top: 2px solid #2563eb;
    border-right: 2px solid rgba(37, 99, 235, 0.6);
    animation-delay: 0.6s;
    filter: drop-shadow(0 1px 2px rgba(100, 116, 139, 0.2));
    transform: rotate(268deg);
}

.cyclone-band:nth-child(10) {
    width: 320px; height: 320px;
    margin-left: -160px; margin-top: -160px;
    border-top: 2px solid #1d4ed8;
    border-right: 2px solid rgba(29, 78, 216, 0.6);
    animation-delay: 0.675s;
    filter: drop-shadow(0 1px 2px rgba(100, 116, 139, 0.2));
    transform: rotate(92deg);
}

.cyclone-band:nth-child(11) {
    width: 360px; height: 360px;
    margin-left: -180px; margin-top: -180px;
    border-top: 2px solid #1e3a8a;
    border-right: 2px solid rgba(30, 58, 138, 0.6);
    animation-delay: 0.75s;
    filter: drop-shadow(0 1px 2px rgba(100, 116, 139, 0.2));
    transform: rotate(175deg);
}

.cyclone-band:nth-child(12) {
    width: 400px; height: 400px;
    margin-left: -200px; margin-top: -200px;
    border-top: 2px solid #1e40af;
    border-right: 2px solid rgba(30, 64, 175, 0.6);
    animation-delay: 0.825s;
    filter: drop-shadow(0 1px 2px rgba(100, 116, 139, 0.2));
    transform: rotate(338deg);
}

.cyclone-band:nth-child(13) {
    width: 450px; height: 450px;
    margin-left: -225px; margin-top: -225px;
    border-top: 2px solid #2563eb;
    border-right: 2px solid rgba(37, 99, 235, 0.5);
    animation-delay: 0.9s;
    transform: rotate(62deg);
}

.cyclone-band:nth-child(14) {
    width: 500px; height: 500px;
    margin-left: -250px; margin-top: -250px;
    border-top: 2px solid #1d4ed8;
    border-right: 2px solid rgba(29, 78, 216, 0.5);
    animation-delay: 0.975s;
    transform: rotate(228deg);
}

.cyclone-band:nth-child(15) {
    width: 550px; height: 550px;
    margin-left: -275px; margin-top: -275px;
    border-top: 2px solid #1e3a8a;
    border-right: 2px solid rgba(30, 58, 138, 0.5);
    animation-delay: 1.05s;
    transform: rotate(155deg);
}

.cyclone-band:nth-child(16) {
    width: 600px; height: 600px;
    margin-left: -300px; margin-top: -300px;
    border-top: 2px solid #1e40af;
    border-right: 2px solid rgba(30, 64, 175, 0.5);
    animation-delay: 1.125s;
    transform: rotate(302deg);
}

.cyclone-band:nth-child(17) {
    width: 660px; height: 660px;
    margin-left: -330px; margin-top: -330px;
    border-top: 2px solid #2563eb;
    border-right: 2px solid rgba(37, 99, 235, 0.45);
    animation-delay: 1.2s;
    transform: rotate(18deg);
}

.cyclone-band:nth-child(18) {
    width: 720px; height: 720px;
    margin-left: -360px; margin-top: -360px;
    border-top: 2px solid #1d4ed8;
    border-right: 2px solid rgba(29, 78, 216, 0.45);
    animation-delay: 1.275s;
    transform: rotate(245deg);
}

.cyclone-band:nth-child(19) {
    width: 780px; height: 780px;
    margin-left: -390px; margin-top: -390px;
    border-top: 2px solid #1e3a8a;
    border-right: 2px solid rgba(30, 58, 138, 0.45);
    animation-delay: 1.35s;
    transform: rotate(108deg);
}

.cyclone-band:nth-child(20) {
    width: 840px; height: 840px;
    margin-left: -420px; margin-top: -420px;
    border-top: 2px solid #1e40af;
    border-right: 2px solid rgba(30, 64, 175, 0.45);
    animation-delay: 1.425s;
    transform: rotate(322deg);
}

.cyclone-band:nth-child(21) {
    width: 900px; height: 900px;
    margin-left: -450px; margin-top: -450px;
    border-top: 2px solid #2563eb;
    border-right: 2px solid rgba(37, 99, 235, 0.4);
    animation-delay: 1.5s;
    transform: rotate(75deg);
}

.cyclone-band:nth-child(22) {
    width: 970px; height: 970px;
    margin-left: -485px; margin-top: -485px;
    border-top: 2px solid #1d4ed8;
    border-right: 2px solid rgba(29, 78, 216, 0.4);
    animation-delay: 1.575s;
    transform: rotate(188deg);
}

.cyclone-band:nth-child(23) {
    width: 1040px; height: 1040px;
    margin-left: -520px; margin-top: -520px;
    border-top: 2px solid #1e3a8a;
    border-right: 2px solid rgba(30, 58, 138, 0.4);
    animation-delay: 1.65s;
    transform: rotate(295deg);
}

.cyclone-band:nth-child(24) {
    width: 1110px; height: 1110px;
    margin-left: -555px; margin-top: -555px;
    border-top: 2px solid #1e40af;
    border-right: 2px solid rgba(30, 64, 175, 0.4);
    animation-delay: 1.725s;
    transform: rotate(135deg);
}

.cyclone-band:nth-child(25) {
    width: 1180px; height: 1180px;
    margin-left: -590px; margin-top: -590px;
    border-top: 2px solid #2563eb;
    border-right: 2px solid rgba(37, 99, 235, 0.35);
    animation-delay: 1.8s;
    transform: rotate(42deg);
}

.cyclone-band:nth-child(26) {
    width: 1260px; height: 1260px;
    margin-left: -630px; margin-top: -630px;
    border-top: 2px solid #1d4ed8;
    border-right: 2px solid rgba(29, 78, 216, 0.35);
    animation-delay: 1.875s;
    transform: rotate(258deg);
}

.cyclone-band:nth-child(27) {
    width: 1340px; height: 1340px;
    margin-left: -670px; margin-top: -670px;
    border-top: 2px solid #1e3a8a;
    border-right: 2px solid rgba(30, 58, 138, 0.35);
    animation-delay: 1.95s;
    transform: rotate(165deg);
}

.cyclone-band:nth-child(28) {
    width: 1420px; height: 1420px;
    margin-left: -710px; margin-top: -710px;
    border-top: 2px solid #1e40af;
    border-right: 2px solid rgba(30, 64, 175, 0.35);
    animation-delay: 2.025s;
    transform: rotate(8deg);
}

.cyclone-band:nth-child(29) {
    width: 1500px; height: 1500px;
    margin-left: -750px; margin-top: -750px;
    border-top: 2px solid #2563eb;
    border-right: 2px solid rgba(37, 99, 235, 0.3);
    animation-delay: 2.1s;
    transform: rotate(218deg);
}

.cyclone-band:nth-child(30) {
    width: 1600px; height: 1600px;
    margin-left: -800px; margin-top: -800px;
    border-top: 2px solid #1d4ed8;
    border-right: 2px solid rgba(29, 78, 216, 0.3);
    animation-delay: 2.175s;
    transform: rotate(112deg);
}

.cyclone-band:nth-child(31) {
    width: 1700px; height: 1700px;
    margin-left: -850px; margin-top: -850px;
    border-top: 2px solid #1e3a8a;
    border-right: 2px solid rgba(30, 58, 138, 0.25);
    animation-delay: 2.25s;
    transform: rotate(345deg);
}

.cyclone-band:nth-child(32) {
    width: 1800px; height: 1800px;
    margin-left: -900px; margin-top: -900px;
    border-top: 2px solid #1e40af;
    border-right: 2px solid rgba(30, 64, 175, 0.25);
    animation-delay: 2.325s;
    transform: rotate(88deg);
}

.cyclone-band:nth-child(33) {
    width: 1900px; height: 1900px;
    margin-left: -950px; margin-top: -950px;
    border-top: 2px solid #2563eb;
    border-right: 2px solid rgba(37, 99, 235, 0.25);
    animation-delay: 2.4s;
    transform: rotate(205deg);
}

.cyclone-band:nth-child(34) {
    width: 2000px; height: 2000px;
    margin-left: -1000px; margin-top: -1000px;
    border-top: 2px solid #1d4ed8;
    border-right: 2px solid rgba(29, 78, 216, 0.2);
    animation-delay: 2.475s;
    transform: rotate(55deg);
}

.cyclone-band:nth-child(35) {
    width: 2100px; height: 2100px;
    margin-left: -1050px; margin-top: -1050px;
    border-top: 2px solid #1e3a8a;
    border-right: 2px solid rgba(30, 58, 138, 0.2);
    animation-delay: 2.55s;
    transform: rotate(285deg);
}

.cyclone-band:nth-child(36) {
    width: 2200px; height: 2200px;
    margin-left: -1100px; margin-top: -1100px;
    border-top: 2px solid #1e40af;
    border-right: 2px solid rgba(30, 64, 175, 0.2);
    animation-delay: 2.625s;
    transform: rotate(145deg);
}

.cyclone-band:nth-child(37) {
    width: 2300px; height: 2300px;
    margin-left: -1150px; margin-top: -1150px;
    border-top: 2px solid #2563eb;
    border-right: 2px solid rgba(37, 99, 235, 0.15);
    animation-delay: 2.7s;
    transform: rotate(328deg);
}

.cyclone-band:nth-child(38) {
    width: 2400px; height: 2400px;
    margin-left: -1200px; margin-top: -1200px;
    border-top: 2px solid #1d4ed8;
    border-right: 2px solid rgba(29, 78, 216, 0.15);
    animation-delay: 2.775s;
    transform: rotate(125deg);
}

.cyclone-band:nth-child(39) {
    width: 2500px; height: 2500px;
    margin-left: -1250px; margin-top: -1250px;
    border-top: 2px solid #1e3a8a;
    border-right: 2px solid rgba(30, 58, 138, 0.15);
    animation-delay: 2.85s;
    transform: rotate(238deg);
}

.cyclone-band:nth-child(40) {
    width: 2600px; height: 2600px;
    margin-left: -1300px; margin-top: -1300px;
    border-top: 2px solid #1e40af;
    border-right: 2px solid rgba(30, 64, 175, 0.1);
    animation-delay: 2.925s;
    transform: rotate(15deg);
}

@keyframes cycloneSpinCW {
    from { 
        transform: rotate(0deg);
    }
    to { 
        transform: rotate(360deg);
    }
}

@keyframes cycloneSpinCCW {
    from { 
        transform: rotate(0deg);
    }
    to { 
        transform: rotate(-360deg);
    }
}

@keyframes cyclonePulse {
    0%, 100% { 
        opacity: 0.4;
    }
    50% { 
        opacity: 1;
    }
}

/* SUN SEPARATOR - NO GROUPING - Each wave starts at different time */
.sun-separator {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
    position: relative;
}

.sun-loader {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* Sun core */
.sun-core {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin-left: -25px;
    margin-top: -25px;
    animation: sunPulse 12s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
    z-index: 10;
}

/* Expanding light waves - STAGGERED START TIMES */
.sun-wave {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    animation: sunWave 60s linear infinite;
}

/* Each wave starts at a DIFFERENT time - NO GROUPING */
.sun-wave:nth-child(1) { 
    width: 50px; height: 50px;
    margin-left: -25px; margin-top: -25px;
    border: 3px solid #ff9900;
    animation-delay: 0s;
    filter: drop-shadow(0 0 50px #ffcc00);
    -webkit-mask: conic-gradient(from 45deg, transparent 0%, black 0%, black 50%, transparent 50%);
    mask: conic-gradient(from 45deg, transparent 0%, black 0%, black 50%, transparent 50%);
}

.sun-wave:nth-child(2) { 
    width: 50px; height: 50px;
    margin-left: -25px; margin-top: -25px;
    border: 2px solid #ffaa00;
    animation-delay: -57s;
    filter: drop-shadow(0 0 70px #ffdd00);
    -webkit-mask: conic-gradient(from 230deg, transparent 0%, black 0%, black 55%, transparent 55%);
    mask: conic-gradient(from 230deg, transparent 0%, black 0%, black 55%, transparent 55%);
}

.sun-wave:nth-child(3) { 
    width: 50px; height: 50px;
    margin-left: -25px; margin-top: -25px;
    border: 4px solid #ffbb00;
    animation-delay: -54s;
    filter: drop-shadow(0 0 90px #ffbb00);
    -webkit-mask: conic-gradient(from 120deg, transparent 0%, black 0%, black 38%, transparent 38%);
    mask: conic-gradient(from 120deg, transparent 0%, black 0%, black 38%, transparent 38%);
}

.sun-wave:nth-child(4) { 
    width: 50px; height: 50px;
    margin-left: -25px; margin-top: -25px;
    border: 2px solid #ff8800;
    animation-delay: -51s;
    filter: drop-shadow(0 0 110px #ffc000);
    -webkit-mask: conic-gradient(from 310deg, transparent 0%, black 0%, black 60%, transparent 60%);
    mask: conic-gradient(from 310deg, transparent 0%, black 0%, black 60%, transparent 60%);
}

.sun-wave:nth-child(5) { 
    width: 50px; height: 50px;
    margin-left: -25px; margin-top: -25px;
    border: 3px solid #ffcc00;
    animation-delay: -48s;
    filter: drop-shadow(0 0 80px #ffe135);
    -webkit-mask: conic-gradient(from 175deg, transparent 0%, black 0%, black 45%, transparent 45%);
    mask: conic-gradient(from 175deg, transparent 0%, black 0%, black 45%, transparent 45%);
}

.sun-wave:nth-child(6) { 
    width: 50px; height: 50px;
    margin-left: -25px; margin-top: -25px;
    border: 2px solid #ff9500;
    animation-delay: -45s;
    filter: drop-shadow(0 0 65px #ffb300);
    -webkit-mask: conic-gradient(from 88deg, transparent 0%, black 0%, black 58%, transparent 58%);
    mask: conic-gradient(from 88deg, transparent 0%, black 0%, black 58%, transparent 58%);
}

.sun-wave:nth-child(7) { 
    width: 50px; height: 50px;
    margin-left: -25px; margin-top: -25px;
    border: 1px solid #ffdd00;
    animation-delay: -42s;
    filter: drop-shadow(0 0 120px #ffd700);
    -webkit-mask: conic-gradient(from 265deg, transparent 0%, black 0%, black 42%, transparent 42%);
    mask: conic-gradient(from 265deg, transparent 0%, black 0%, black 42%, transparent 42%);
}

.sun-wave:nth-child(8) { 
    width: 50px; height: 50px;
    margin-left: -25px; margin-top: -25px;
    border: 3px solid #ffb300;
    animation-delay: -39s;
    filter: drop-shadow(0 0 55px #ffdd00);
    -webkit-mask: conic-gradient(from 15deg, transparent 0%, black 0%, black 48%, transparent 48%);
    mask: conic-gradient(from 15deg, transparent 0%, black 0%, black 48%, transparent 48%);
}

.sun-wave:nth-child(9) { 
    width: 50px; height: 50px;
    margin-left: -25px; margin-top: -25px;
    border: 2px solid #ffd700;
    animation-delay: -36s;
    filter: drop-shadow(0 0 95px #ffd700);
    -webkit-mask: conic-gradient(from 340deg, transparent 0%, black 0%, black 52%, transparent 52%);
    mask: conic-gradient(from 340deg, transparent 0%, black 0%, black 52%, transparent 52%);
}

.sun-wave:nth-child(10) { 
    width: 50px; height: 50px;
    margin-left: -25px; margin-top: -25px;
    border: 4px solid #ff9900;
    animation-delay: -33s;
    filter: drop-shadow(0 0 105px #ffbb00);
    -webkit-mask: conic-gradient(from 200deg, transparent 0%, black 0%, black 35%, transparent 35%);
    mask: conic-gradient(from 200deg, transparent 0%, black 0%, black 35%, transparent 35%);
}

.sun-wave:nth-child(11) { 
    width: 50px; height: 50px;
    margin-left: -25px; margin-top: -25px;
    border: 2px solid #ffaa00;
    animation-delay: -30s;
    filter: drop-shadow(0 0 75px #ffcc00);
    -webkit-mask: conic-gradient(from 135deg, transparent 0%, black 0%, black 57%, transparent 57%);
    mask: conic-gradient(from 135deg, transparent 0%, black 0%, black 57%, transparent 57%);
}

.sun-wave:nth-child(12) { 
    width: 50px; height: 50px;
    margin-left: -25px; margin-top: -25px;
    border: 2px solid #ff8800;
    animation-delay: -27s;
    filter: drop-shadow(0 0 85px #ffaa00);
    -webkit-mask: conic-gradient(from 60deg, transparent 0%, black 0%, black 33%, transparent 33%);
    mask: conic-gradient(from 60deg, transparent 0%, black 0%, black 33%, transparent 33%);
}

.sun-wave:nth-child(13) { 
    width: 50px; height: 50px;
    margin-left: -25px; margin-top: -25px;
    border: 3px solid #ffcc00;
    animation-delay: -24s;
    filter: drop-shadow(0 0 100px #ffe135);
    -webkit-mask: conic-gradient(from 290deg, transparent 0%, black 0%, black 47%, transparent 47%);
    mask: conic-gradient(from 290deg, transparent 0%, black 0%, black 47%, transparent 47%);
}

.sun-wave:nth-child(14) { 
    width: 50px; height: 50px;
    margin-left: -25px; margin-top: -25px;
    border: 2px solid #ff9500;
    animation-delay: -21s;
    filter: drop-shadow(0 0 60px #ffb300);
    -webkit-mask: conic-gradient(from 155deg, transparent 0%, black 0%, black 54%, transparent 54%);
    mask: conic-gradient(from 155deg, transparent 0%, black 0%, black 54%, transparent 54%);
}

.sun-wave:nth-child(15) { 
    width: 50px; height: 50px;
    margin-left: -25px; margin-top: -25px;
    border: 3px solid #ffbb00;
    animation-delay: -18s;
    filter: drop-shadow(0 0 115px #ffdd00);
    -webkit-mask: conic-gradient(from 25deg, transparent 0%, black 0%, black 40%, transparent 40%);
    mask: conic-gradient(from 25deg, transparent 0%, black 0%, black 40%, transparent 40%);
}

.sun-wave:nth-child(16) { 
    width: 50px; height: 50px;
    margin-left: -25px; margin-top: -25px;
    border: 4px solid #ffa500;
    animation-delay: -15s;
    filter: drop-shadow(0 0 125px #ffc000);
    -webkit-mask: conic-gradient(from 245deg, transparent 0%, black 0%, black 56%, transparent 56%);
    mask: conic-gradient(from 245deg, transparent 0%, black 0%, black 56%, transparent 56%);
}

.sun-wave:nth-child(17) { 
    width: 50px; height: 50px;
    margin-left: -25px; margin-top: -25px;
    border: 1px solid #ffd700;
    animation-delay: -12s;
    filter: drop-shadow(0 0 65px #ffd700);
    -webkit-mask: conic-gradient(from 105deg, transparent 0%, black 0%, black 44%, transparent 44%);
    mask: conic-gradient(from 105deg, transparent 0%, black 0%, black 44%, transparent 44%);
}

.sun-wave:nth-child(18) { 
    width: 50px; height: 50px;
    margin-left: -25px; margin-top: -25px;
    border: 2px solid #ffb300;
    animation-delay: -9s;
    filter: drop-shadow(0 0 88px #ffbb00);
    -webkit-mask: conic-gradient(from 320deg, transparent 0%, black 0%, black 59%, transparent 59%);
    mask: conic-gradient(from 320deg, transparent 0%, black 0%, black 59%, transparent 59%);
}

.sun-wave:nth-child(19) { 
    width: 50px; height: 50px;
    margin-left: -25px; margin-top: -25px;
    border: 3px solid #ffe135;
    animation-delay: -6s;
    filter: drop-shadow(0 0 78px #ffe135);
    -webkit-mask: conic-gradient(from 185deg, transparent 0%, black 0%, black 46%, transparent 46%);
    mask: conic-gradient(from 185deg, transparent 0%, black 0%, black 46%, transparent 46%);
}

.sun-wave:nth-child(20) { 
    width: 50px; height: 50px;
    margin-left: -25px; margin-top: -25px;
    border: 2px solid #ffc800;
    animation-delay: -3s;
    filter: drop-shadow(0 0 92px #ffc800);
    -webkit-mask: conic-gradient(from 350deg, transparent 0%, black 0%, black 51%, transparent 51%);
    mask: conic-gradient(from 350deg, transparent 0%, black 0%, black 51%, transparent 51%);
}

@keyframes sunPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.8), 0 0 50px rgba(245, 158, 11, 0.4);
    }
}

/* Single smooth animation - no bouncing back */
@keyframes sunWave {
    0% {
        width: 50px;
        height: 50px;
        margin-left: -25px;
        margin-top: -25px;
        opacity: 0;
    }
    3% {
        opacity: 1;
    }
    97% {
        opacity: 0.8;
    }
    100% {
        width: 2600px;
        height: 2600px;
        margin-left: -1300px;
        margin-top: -1300px;
        opacity: 0;
    }
}

/* Proper scroll positioning for anchor links from external pages */
#velocity-finder,
#hurricane-risk,
#solar-finder,
#advanced-search,
#multi-compare {
    scroll-margin-top: 150px;
}