:root {
    --primary: #7ab929;
    --primary-dark: #5a9a19;
    --accent: #00a1e4;
    --dark: #1a1a2e;
    --text: #333;
    --text-muted: #666;
    --bg: #f8fafc;
    --card: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 12px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    color: var(--text);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.compact-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 16px 0;
    margin-bottom: 16px;
}

.header-logo {
    height: 100px;
    width: auto;
}

.header-text h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 2px 0 4px 0;
}

.header-text span {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.form-field {
    position: relative;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.location-field {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s ease;
    -webkit-appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(122, 185, 41, 0.15);
}

.form-input::placeholder {
    color: #999;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 4px;
    font-weight: 400;
}

select.form-input {
    cursor: pointer;
}

.analyze-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 185, 41, 0.4);
}

.expectation-text {
    margin-top: 16px;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

.expectation-text p {
    margin: 4px 0;
}

.expectation-text i {
    color: #6bb335;
}

.analyze-btn:active {
    transform: translateY(0);
}

.analyze-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: var(--shadow);
    margin-top: 4px;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: var(--bg);
}

#loading-section {
    padding: 40px 20px;
}

.loading-spinner {
    font-size: 3rem;
    color: var(--primary);
}

#results-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-loading {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.section-loading {
    position: relative;
    min-height: 120px;
    overflow: hidden;
}

.section-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(122, 185, 41, 0.1), transparent);
    animation: shimmer 2s infinite;
    pointer-events: none;
}

.section-loading[style*="display: none"]::after {
    display: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.section-loaded {
    animation: slideInUp 0.4s ease-out;
}

.loading-placeholder {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf0 100%);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
}

.loading-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
    animation: pulse-loading 1.5s ease-in-out infinite;
}

.loading-placeholder p {
    margin: 0;
    font-size: 0.9rem;
}

.score-hero {
    background: linear-gradient(135deg, var(--dark) 0%, #2d2d44 100%);
    border-radius: var(--radius);
    padding: 30px 20px;
    color: white;
    margin-bottom: 20px;
}

.score-hero h3 {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 16px;
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.score-value {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 1.2rem;
    opacity: 0.7;
}

.score-interpretation {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

.score-breakdown-toggle .btn {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.3);
}

.score-breakdown-card {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 16px;
    text-align: left;
}

.breakdown-section h6 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.formula-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.formula-item {
    background: rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: white;
}

.formula-plus {
    color: var(--primary);
    font-weight: bold;
}

.breakdown-box {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}

.breakdown-box h6 {
    font-size: 0.85rem;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.local-box h6 { color: var(--primary); }
.content-box h6 { color: var(--accent); }

.breakdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.breakdown-list li {
    padding: 4px 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.breakdown-list li i {
    width: 16px;
    opacity: 0.6;
    font-size: 0.75rem;
}

.result-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 16px;
}

.result-card .card-header {
    background: var(--bg);
    padding: 14px 16px;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-card .card-header i {
    color: var(--primary);
}

.result-card .card-body {
    padding: 16px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 600;
    color: var(--text);
}

/* Modern Action Plan Styles */
.action-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-item-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    position: relative;
}

.action-item-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.action-item-card.priority-high {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.action-item-card.priority-medium {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.action-item-card.priority-low {
    border-left: 4px solid #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.action-step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.action-main {
    flex: 1;
    min-width: 0;
}

.action-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.action-category-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--dark);
    color: white;
}

.action-priority-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.action-priority-badge.priority-high {
    background: #fee2e2;
    color: #dc2626;
}

.action-priority-badge.priority-medium {
    background: #fef3c7;
    color: #d97706;
}

.action-priority-badge.priority-low {
    background: #dcfce7;
    color: #16a34a;
}

.action-item-card .action-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 8px;
}

.action-item-card .action-impact {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.action-item-card .action-impact i {
    color: var(--primary);
    margin-right: 4px;
}

/* Legacy styles for backwards compatibility */
.priority-high { background: #fee2e2; color: #dc2626; }
.priority-medium { background: #fef3c7; color: #d97706; }
.priority-low { background: #dcfce7; color: #16a34a; }

.heatmap-section {
    margin-top: 20px;
}

.heatmap-container {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.heatmap-header {
    padding: 14px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.heatmap-header h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

#heatmap-map {
    height: 350px;
    width: 100%;
}

.heatmap-legend-wrapper {
    background: var(--bg);
    border-radius: 8px;
    padding: 12px;
}

.legend-explanation {
    text-align: center;
}

.heatmap-legend {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sample-badge {
    background: #f59e0b;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.data-source-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.data-source-badge.live {
    background: #dcfce7;
    color: #166534;
}

.data-source-badge.sample {
    background: #fef3c7;
    color: #92400e;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

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

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

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

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

.citation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.citation-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.citation-list li:last-child {
    border-bottom: none;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: var(--bg);
    border-radius: 10px;
    margin-bottom: 16px;
}

.review-score-large {
    text-align: center;
}

.review-score-large .rating {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
}

.review-score-large .stars {
    color: #f59e0b;
    font-size: 1.2rem;
}

.review-score-large .count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rating-bars {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.rating-bar .label {
    width: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.rating-bar .bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar .fill {
    height: 100%;
    background: #f59e0b;
    border-radius: 4px;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    padding: 24px;
    color: white;
    text-align: center;
    margin-top: 20px;
}

.cta-section h4 {
    margin-bottom: 8px;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 16px;
}

.contact-form-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-form-inline input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.contact-form-inline button {
    padding: 12px 24px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.status-indicator {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-live {
    background: #dcfce7;
    color: #16a34a;
}

.status-sample {
    background: #fef3c7;
    color: #d97706;
}

.fetch-btn {
    font-size: 0.85rem;
    padding: 6px 12px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .compact-header {
        gap: 12px;
    }
    
    .header-logo {
        height: 70px;
    }
    
    .header-text h1 {
        font-size: 1.2rem;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .score-value {
        font-size: 3rem;
    }
    
    .reviews-summary {
        flex-direction: column;
        text-align: center;
    }
}

.row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.col-lg-6, .col-md-6 { padding: 0 8px; flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 8px; }
.mb-4 { margin-bottom: 16px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.text-center { text-align: center; }
.h-100 { height: 100%; }

@media (max-width: 768px) {
    .col-lg-6, .col-md-6 { flex: 0 0 100%; max-width: 100%; }
}

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-header { padding: 14px 16px; background: var(--bg); border-bottom: 1px solid var(--border); font-weight: 600; }
.card-body { padding: 16px; }

.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.bg-success { background: #16a34a !important; }
.bg-warning { background: #d97706 !important; }
.bg-info { background: var(--accent) !important; }
.bg-primary { background: var(--primary) !important; }
.bg-dark { background: var(--dark) !important; }
.bg-danger { background: #dc2626 !important; }

.text-muted { color: var(--text-muted); }

.progress {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background: var(--primary);
    transition: width 0.3s ease;
}

.form-control, .form-select {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(122, 185, 41, 0.15);
    outline: none;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.gbp-live-info {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    padding: 12px !important;
    border-radius: 8px;
    margin-bottom: 8px;
}

.gbp-profile {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 12px;
    padding: 16px;
}

.gbp-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.gbp-header > i {
    font-size: 2rem;
    color: #4285f4;
}

.gbp-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gbp-title strong {
    font-size: 1.1rem;
}

.gbp-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.gbp-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gbp-stats .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.gbp-stats .label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.gbp-address, .gbp-phone {
    margin: 6px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.gbp-address i, .gbp-phone i {
    width: 20px;
    color: var(--primary);
}

.gbp-not-found {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}

.gbp-not-found i {
    font-size: 2.5rem;
    color: #ccc;
    margin-bottom: 12px;
}

.gbp-not-found p {
    margin: 8px 0 4px;
    font-weight: 500;
}

.gbp-not-found small {
    font-size: 0.85rem;
}

.website-screenshot {
    text-align: center;
}

.website-screenshot img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.2s;
}

.website-screenshot img:hover {
    transform: scale(1.02);
}

.content-score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg);
    border-radius: 8px;
}

.findings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.findings-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.findings-list li:last-child {
    border-bottom: none;
}

.audit-grades {
    background: var(--bg);
    border-radius: 8px;
    padding: 10px;
}

.grade-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.grade-row:last-child {
    border-bottom: none;
}

.grade-badge {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.grade-badge.grade-a { background: #dcfce7; color: #166534; }
.grade-badge.grade-b { background: #fef9c3; color: #854d0e; }
.grade-badge.grade-c { background: #fed7aa; color: #9a3412; }
.grade-badge.grade-d { background: #fecaca; color: #991b1b; }
.grade-badge.grade-f { background: #fecaca; color: #7f1d1d; }

.page-status-list {
    background: var(--bg);
    border-radius: 8px;
    padding: 10px;
}

.page-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.page-status-item:last-child {
    border-bottom: none;
}

.page-name {
    font-size: 0.9rem;
}

.page-badge {
    font-size: 0.85rem;
}

.page-badge.good { color: #22c55e; }
.page-badge.missing { color: #ef4444; }
.page-badge.issue { color: #f97316; }

/* ===== EXECUTIVE SNAPSHOT ===== */
.executive-snapshot {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.snapshot-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.kpi-tile {
    background: var(--bg);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.kpi-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.kpi-tile.kpi-clickable {
    cursor: pointer;
}

.kpi-tile.kpi-clickable:hover {
    border-color: var(--primary);
}

.section-highlight {
    animation: highlightPulse 2s ease-out;
}

@keyframes highlightPulse {
    0% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.5); }
    100% { box-shadow: none; }
}

/* Hero Score Container - Overarching score at top */
.hero-score-container {
    display: flex;
    justify-content: center;
}

.hero-score {
    min-width: 280px;
    max-width: 350px;
    padding: 24px 40px !important;
    text-align: center;
    box-shadow: 0 8px 24px rgba(45, 80, 22, 0.25);
}

.hero-score .kpi-value {
    font-size: 3.5rem !important;
}

.hero-score .kpi-label {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-score .kpi-icon {
    font-size: 2rem;
}

/* Score Loading Badge */
.score-loading-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.score-loading-badge.hidden {
    display: none;
}

.score-finalized-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-score {
    position: relative;
}

/* Section Summary Bars */
.section-summary-bar {
    display: flex;
    justify-content: space-around;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.summary-stat {
    text-align: center;
    padding: 0 15px;
}

.summary-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 2px;
}

.summary-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.summary-value.text-success { color: #22c55e !important; }
.summary-value.text-warning { color: #eab308 !important; }
.summary-value.text-danger { color: #ef4444 !important; }

@media (max-width: 576px) {
    .section-summary-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    .summary-stat {
        flex: 1 1 30%;
        min-width: 80px;
    }
    .summary-value {
        font-size: 1rem;
    }
}

/* Secondary KPI Grid - 5 tiles in a row */
.kpi-grid-secondary {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

@media (max-width: 992px) {
    .kpi-grid-secondary {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .kpi-grid-secondary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-score {
        min-width: 240px;
        padding: 20px 30px !important;
    }
    
    .hero-score .kpi-value {
        font-size: 2.8rem !important;
    }
}

.kpi-tile.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.kpi-tile.primary .kpi-icon,
.kpi-tile.primary .kpi-value,
.kpi-tile.primary .kpi-label,
.kpi-tile.primary .kpi-status {
    color: white;
}

.kpi-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.kpi-suffix {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
}

.kpi-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.kpi-status {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.summary-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-left: 4px solid var(--accent);
}

.summary-card i {
    font-size: 1.25rem;
    color: var(--accent);
    margin-top: 2px;
}

.summary-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
}

/* ===== OPPORTUNITY CALCULATOR ===== */
.opportunity-section .card-header {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-bottom: none;
}

.opp-data-driven {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    border-left: 4px solid var(--primary);
}

.opp-metric {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
}

.opp-metric:last-child {
    border-bottom: none;
}

.opp-metric-label {
    font-size: 0.8rem;
    color: #64748b;
}

.opp-metric-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.opportunity-inputs {
    padding: 12px 0;
}

.opp-input-group {
    margin-bottom: 14px;
}

.opp-input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    display: block;
}

.opp-input-group small {
    font-size: 0.7rem;
}

.opp-input-group .form-control {
    font-size: 0.9rem;
    padding: 8px 12px;
}

.opp-input-group .form-range {
    margin-top: 4px;
}

.range-value {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 45px;
    text-align: center;
}

.opportunity-comparison {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.opp-scenario {
    border-radius: 10px;
    padding: 14px;
    border: 2px solid;
}

.opp-scenario.current {
    background: #fef2f2;
    border-color: #fca5a5;
}

.opp-scenario.potential {
    background: #f0fdf4;
    border-color: #86efac;
}

.opp-scenario-header {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.opp-scenario.current .opp-scenario-header {
    color: #dc2626;
}

.opp-scenario.potential .opp-scenario-header {
    color: #16a34a;
}

.opp-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
}

.opp-flow i {
    color: #9ca3af;
    font-size: 0.7rem;
}

.opp-flow strong {
    font-size: 1.1rem;
}

.opp-vs {
    text-align: center;
    font-weight: 800;
    color: #9ca3af;
    font-size: 0.75rem;
}

.opp-gap-result {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    margin-top: 8px;
}

.opp-gap-header {
    font-size: 0.85rem;
    color: #92400e;
    font-weight: 600;
}

.opp-gap-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #b45309;
}

.opp-gap-yearly {
    font-size: 0.9rem;
    color: #92400e;
}

.opp-why-leaking {
    background: #fffbeb;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #fde68a;
}

.leak-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.leak-pill {
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #fecaca;
}

.leak-pill i {
    margin-right: 4px;
}

.leak-item {
    font-size: 0.85rem;
    color: #92400e;
    padding: 4px 0;
}

.leak-item i {
    color: #dc2626;
    margin-right: 8px;
}

/* ===== COMPETITOR SECTION ===== */
.heatmap-placeholder {
    background: var(--bg);
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

.heatmap-placeholder i {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.heatmap-placeholder p {
    margin: 0;
    font-size: 0.9rem;
}

.competitor-insights {
    background: var(--bg);
    border-radius: 8px;
    padding: 16px;
    height: 100%;
    max-height: 450px;
    overflow-y: auto;
}

.insight-category {
    background: white;
    border-radius: 6px;
    padding: 12px;
    border-left: 3px solid var(--primary);
}

.insight-category-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.insight-list {
    margin: 0;
    padding-left: 20px;
    font-size: 0.85rem;
    color: #555;
}

.insight-list li {
    margin-bottom: 4px;
}

.insight-list li:last-child {
    margin-bottom: 0;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.insight-item:last-child {
    border-bottom: none;
}

/* ===== GBP AUDIT SECTION ===== */
.gbp-checklist {
    background: var(--bg);
    border-radius: 8px;
    padding: 16px;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.check-status {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.check-status.pending { color: #9ca3af; }
.check-status.pass { color: #22c55e; }
.check-status.fail { color: #ef4444; }
.check-status.unknown { color: #9ca3af; }

.check-label {
    flex: 1;
    font-size: 0.85rem;
}

.fix-btn {
    font-size: 0.75rem;
    padding: 0;
    color: var(--primary);
}

.gbp-stats-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.gbp-stat {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gbp-stat .stat-label {
    min-width: 120px;
    font-size: 0.85rem;
}

.gbp-stat .progress {
    flex: 1;
    height: 8px;
}

/* Enhanced GBP Details */
.gbp-enhanced-content {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
}

.gbp-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.gbp-stat-item i {
    font-size: 1.2rem;
}

.gbp-rating-dist {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.gbp-rating-dist .rating-label {
    min-width: 50px;
    font-size: 0.85rem;
}

.gbp-rating-dist .rating-count {
    min-width: 40px;
    text-align: right;
}

.gbp-hours {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hour-row {
    font-size: 0.85rem;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.hour-row:last-child {
    border-bottom: none;
}

.hour-row .day {
    font-weight: 500;
    min-width: 100px;
}

.hour-row .time {
    color: var(--text-muted);
}

.gbp-attributes,
.gbp-topics {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.attributes-list,
.topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* ===== WEBSITE AUDIT SECTION ===== */
.screenshot-preview {
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    min-height: 200px;
}

.screenshot-placeholder,
.screenshot-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-muted);
}

.screenshot-placeholder i,
.screenshot-loading i {
    font-size: 2.5rem;
    opacity: 0.4;
    margin-bottom: 8px;
}

.heatmap-placeholder .placeholder-headline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 8px 0 4px 0;
}

.heatmap-placeholder .placeholder-subtext {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.heatmap-placeholder i.fa-spinner {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 1;
}

.screenshot-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    min-height: 200px;
}

.screenshot-fallback .fallback-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.screenshot-fallback .fallback-text {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.screenshot-fallback .fallback-tips {
    text-align: left;
    background: white;
    padding: 12px;
    border-radius: 6px;
    width: 100%;
}

.website-screenshot {
    position: relative;
    cursor: pointer;
}

.website-screenshot img {
    width: 100%;
    display: block;
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.website-screenshot:hover .screenshot-overlay {
    opacity: 1;
}

.content-score-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: 8px;
}

.diagnostics-accordion .accordion-button {
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
}

.diagnostics-accordion .accordion-button:not(.collapsed) {
    background: var(--bg);
    color: var(--dark);
}

.diagnostics-accordion .accordion-body {
    padding: 16px;
}

.page-status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Technical SEO Grid */
.technical-seo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tech-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg);
    border-radius: 6px;
    font-size: 0.9rem;
}

.tech-check-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
}

.tech-check-icon.pass {
    background: #dcfce7;
    color: #166534;
}

.tech-check-icon.fail {
    background: #fecaca;
    color: #991b1b;
}

.tech-check-icon.warn {
    background: #fef9c3;
    color: #854d0e;
}

/* ===== CITATIONS SECTION ===== */
.citation-score-display {
    text-align: center;
    padding: 16px;
    background: var(--bg);
    border-radius: 8px;
}

.citation-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.citation-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
}

.citation-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.citation-list li {
    padding: 8px 12px;
    background: var(--bg);
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.missing-citations li {
    border-left: 3px solid #ef4444;
}

.found-citations li {
    border-left: 3px solid #22c55e;
}

/* ===== REVIEW SECTION ===== */
.review-quick-stats {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.review-stat {
    text-align: center;
    padding: 12px 24px;
    background: var(--bg);
    border-radius: 8px;
}

.review-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    display: block;
}

.review-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== COMPACT REVIEW LAYOUT ===== */
.review-compact-container {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 16px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 12px;
}

.review-hero-score {
    text-align: center;
    min-width: 100px;
}

.review-big-rating {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.review-stars-inline {
    color: #fbbf24;
    font-size: 0.9rem;
    margin: 4px 0;
}

.review-count-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-bars-compact {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
}

.review-bar-label {
    width: 20px;
    text-align: right;
    color: var(--text-muted);
}

.review-bar-track {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.review-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.review-bar-fill.low {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.review-bar-count {
    width: 30px;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* Recent Reviews Horizontal Scroll */
.recent-reviews-compact {
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.reviews-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.reviews-scroll::-webkit-scrollbar {
    height: 4px;
}

.reviews-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.reviews-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.review-card-compact {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    font-size: 0.8rem;
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-card-stars {
    color: #fbbf24;
    font-size: 0.75rem;
}

.review-card-date {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.review-card-text {
    color: #374151;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .review-compact-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .review-card-compact {
        flex: 0 0 240px;
    }
}

/* ===== BACKLINKS & AUTHORITY SECTION ===== */
.backlinks-overview {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.authority-score-display {
    display: flex;
    align-items: center;
    gap: 16px;
}

.authority-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

.authority-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.authority-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 2px;
}

.authority-interpretation {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 180px;
}

.backlinks-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.backlink-stat {
    text-align: center;
    padding: 12px 20px;
    background: var(--bg);
    border-radius: 10px;
    min-width: 100px;
}

.backlink-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.backlink-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.referrers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.referrer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: 8px;
    font-size: 0.85rem;
}

.referrer-domain {
    font-weight: 500;
    color: var(--dark);
}

.referrer-domain i {
    color: var(--primary);
    margin-right: 8px;
}

.referrer-stats {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.referrer-stats .badge {
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .backlinks-overview {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .backlinks-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .backlink-stat {
        flex: 1;
        min-width: 80px;
    }
}

/* ===== ACTION PLAN KANBAN ===== */
.action-filters {
    display: flex;
    gap: 8px;
}

.action-filters .btn {
    font-size: 0.75rem;
    padding: 4px 12px;
}

.action-filters .btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.action-kanban {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .action-kanban {
        grid-template-columns: 1fr;
    }
}

.kanban-column {
    background: var(--bg);
    border-radius: 8px;
    padding: 12px;
    min-height: 200px;
}

.kanban-header {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-header small {
    font-weight: 400;
    color: var(--text-muted);
}

.now-column .kanban-header {
    background: #fef2f2;
    color: #b91c1c;
}

.next-column .kanban-header {
    background: #fef9c3;
    color: #a16207;
}

.build-column .kanban-header {
    background: #ecfdf5;
    color: #047857;
}

.kanban-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kanban-item {
    background: white;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.kanban-item .item-category {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.kanban-item .item-action {
    line-height: 1.4;
}

.kanban-item .item-impact {
    font-size: 0.75rem;
    color: var(--primary);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== PACKAGE TIERS ===== */
.package-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .package-tiers {
        grid-template-columns: 1fr;
    }
}

.package-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 2px solid var(--border);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.package-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.package-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-muted);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.package-card.featured .package-badge {
    background: var(--primary);
}

.package-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 8px 0;
    color: var(--dark);
}

.package-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    text-align: left;
}

.package-features li {
    padding: 6px 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.package-features i {
    color: var(--primary);
}

.package-timeline {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.package-ideal {
    font-size: 0.75rem;
    color: var(--primary-dark);
    font-style: italic;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

.pricing-note {
    background: rgba(0, 161, 228, 0.08);
    border: 1px solid rgba(0, 161, 228, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pricing-note i {
    color: var(--accent);
    margin-top: 2px;
}

.competitor-chart-section {
    background: #f8fafc;
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border);
}

.competitor-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.competitor-bar-row {
    display: grid;
    grid-template-columns: 1fr auto 200px;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.competitor-bar-row.your-business {
    border: 2px solid var(--primary);
    background: rgba(122, 185, 41, 0.05);
}

.competitor-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    overflow: hidden;
}

.competitor-name .name-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.rank-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #333;
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #333;
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #a66329);
    color: white;
}

.competitor-stats {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.competitor-stats .stat-reviews,
.competitor-stats .stat-rating {
    white-space: nowrap;
}

.bar-container {
    background: #e2e8f0;
    border-radius: 4px;
    height: 24px;
    overflow: hidden;
    position: relative;
}

.bar {
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    min-width: 40px;
    transition: width 0.5s ease;
}

.bar.competitor-bar {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.bar.your-bar {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.bar-label {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.chart-insight {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.9rem;
}

.chart-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .competitor-bar-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .bar-container {
        width: 100%;
    }
    
    .competitor-name .name-text {
        max-width: 150px;
    }
}

/* LLM Mentions Section */
.llm-mentions-section .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.llm-stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
    min-width: 120px;
}

.llm-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.llm-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.llm-keywords-table {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.llm-keywords-table .table {
    margin: 0;
}

.llm-keywords-table th {
    background: #f8fafc;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 12px 15px;
}

.llm-keywords-table td {
    padding: 12px 15px;
    vertical-align: middle;
}

.llm-keywords-table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.llm-keyword-text {
    font-weight: 500;
    color: var(--text);
}

.llm-volume-badge {
    background: #e0e7ff;
    color: #4338ca;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.llm-mentions-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Core Web Vitals Styles */
.cwv-metric {
    text-align: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    height: 100%;
}

.cwv-score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.cwv-score.good { color: #22c55e; }
.cwv-score.needs-improvement { color: #eab308; }
.cwv-score.poor { color: #ef4444; }

.cwv-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.cwv-value.good { color: #22c55e; }
.cwv-value.needs-improvement { color: #eab308; }
.cwv-value.poor { color: #ef4444; }

.cwv-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 5px;
}

.cwv-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.speed-recommendations {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 12px;
}

.speed-recommendations ul {
    margin: 0;
    padding-left: 20px;
}

.speed-recommendations li {
    font-size: 0.85rem;
    color: #9a3412;
    margin-bottom: 4px;
}

.speed-recommendations-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #c2410c;
    margin-bottom: 8px;
}

/* Section Info Tooltips */
.section-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
}

.section-info-icon:hover {
    opacity: 1;
    background: rgba(255,255,255,0.3);
}

.card-header .section-info-icon {
    color: inherit;
}

/* Custom tooltip styles */
.section-tooltip {
    position: relative;
    display: inline-block;
}

.section-tooltip .tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: 280px;
    background-color: #1a1a2e;
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 12px 14px;
    position: absolute;
    z-index: 1000;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: opacity 0.2s, visibility 0.2s;
}

.section-tooltip .tooltip-text::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #1a1a2e;
}

.section-tooltip:hover .tooltip-text,
.section-tooltip:focus .tooltip-text,
.section-tooltip.active .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: #7ab929;
}

@media (max-width: 768px) {
    .section-tooltip .tooltip-text {
        width: 240px;
        font-size: 0.8rem;
        left: 0;
        transform: none;
    }
    .section-tooltip .tooltip-text::before {
        left: 20px;
        transform: none;
    }
}
