/* FunnelIQ CRO Auditor - Results Page Styles */
/* All classes prefixed with 'fiq-' for uniqueness */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
.fiq-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background-color: #f8fafc !important;
    padding: 2rem 1rem !important;
    color: #0f172a !important;
    line-height: 1.6 !important;
    box-sizing: border-box !important;
    -webkit-font-smoothing: antialiased !important;
}

.fiq-wrapper *,
.fiq-wrapper *::before,
.fiq-wrapper *::after {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
}

.fiq-wrapper h1, .fiq-wrapper h2, .fiq-wrapper h3,
.fiq-wrapper h4, .fiq-wrapper h5, .fiq-wrapper h6,
.fiq-wrapper p, .fiq-wrapper span, .fiq-wrapper div {
    color: inherit;
}

@media (min-width: 640px) {
    .fiq-wrapper { padding: 3rem 1.5rem !important; }
}

@media (min-width: 1024px) {
    .fiq-wrapper { padding: 3rem 2rem !important; }
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.fiq-navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    margin: -2rem -1rem 2rem -1rem !important;
    padding: 1rem 1rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

@media (min-width: 640px) {
    .fiq-navbar {
        margin: -3rem -1.5rem 2rem -1.5rem !important;
        padding: 1rem 1.5rem !important;
    }
}

@media (min-width: 1024px) {
    .fiq-navbar {
        margin: -3rem -2rem 2rem -2rem !important;
        padding: 1rem 2rem !important;
    }
}

.fiq-navbar-container {
    max-width: 72rem !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.fiq-navbar-logo {
    display: flex !important;
    align-items: center !important;
    gap: 0.625rem !important;
}

.fiq-logo-icon {
    width: 1.75rem !important;
    height: 1.75rem !important;
    color: #3b82f6 !important;
}

.fiq-logo-text {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.025em !important;
}

.fiq-copy-link-btn {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    background: #3b82f6 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    position: relative !important;
}

.fiq-copy-link-btn:hover {
    background: #2563eb !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.fiq-copy-link-btn:active {
    transform: scale(0.98) !important;
}

.fiq-copy-icon {
    width: 1rem !important;
    height: 1rem !important;
}

.fiq-copy-text {
    display: none !important;
}

@media (min-width: 640px) {
    .fiq-copy-text {
        display: inline !important;
    }
}

.fiq-copy-success {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #10b981 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

.fiq-copy-success.fiq-visible {
    display: block !important;
    animation: fiq-fade-in 0.2s ease-in-out !important;
}

@keyframes fiq-fade-in {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.fiq-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

#funneliq-loading.fiq-hidden,
.fiq-loading.fiq-hidden {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.fiq-text-center { text-align: center !important; }

/* ============================================
   CONTAINER
   ============================================ */
.fiq-container {
    max-width: 100% !important;
    margin: 0 auto !important;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.fiq-grid {
    display: grid !important;
    gap: 1.25rem !important;
}

@media (min-width: 640px) {
    .fiq-grid { gap: 1.5rem !important; }
}

.fiq-grid-top {
    grid-template-columns: 1fr !important;
}

@media (min-width: 768px) {
    .fiq-grid-top { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (min-width: 1024px) {
    .fiq-grid-top { grid-template-columns: 1fr 1.6fr 1.3fr !important; }
}

.fiq-grid-bottom {
    grid-template-columns: 1fr !important;
}

@media (min-width: 1024px) {
    .fiq-grid-bottom { grid-template-columns: 2fr 1fr !important; }
}

.fiq-grid-2col {
    grid-template-columns: 1fr !important;
}

@media (min-width: 640px) {
    .fiq-grid-2col { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ============================================
   CARDS
   ============================================ */
.fiq-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
}

@media (min-width: 640px) {
    .fiq-card { padding: 1.75rem !important; }
}

.fiq-card-dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.25) !important;
}

.fiq-card-green {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    border: 1px solid #86efac !important;
}

.fiq-card-red {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
    border: 1px solid #fca5a5 !important;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.fiq-section-title {
    color: #64748b !important;
    font-weight: 700 !important;
    font-size: 0.6875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 1rem !important;
}

@media (min-width: 640px) {
    .fiq-section-title { font-size: 0.75rem !important; }
}

/* ============================================
   GRADE CIRCLE
   ============================================ */
.fiq-grade-wrapper {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.5rem 0 !important;
}

.fiq-grade-circle {
    position: relative !important;
    margin-bottom: 1.25rem !important;
}

.fiq-grade-glow {
    position: absolute !important;
    inset: -8px !important;
    filter: blur(20px) !important;
    opacity: 0.4 !important;
    border-radius: 9999px !important;
    animation: fiq-pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
}

.fiq-grade-bg {
    width: 7rem !important;
    height: 7rem !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    color: #ffffff !important;
    position: relative !important;
}

@media (min-width: 640px) {
    .fiq-grade-bg { width: 8rem !important; height: 8rem !important; }
}

.fiq-grade-letter {
    font-size: 2.75rem !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

@media (min-width: 640px) {
    .fiq-grade-letter { font-size: 3.5rem !important; }
}

.fiq-score-number {
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

@media (min-width: 640px) {
    .fiq-score-number { font-size: 2.75rem !important; }
}

.fiq-score-label {
    font-size: 0.875rem !important;
    color: #64748b !important;
    font-weight: 500 !important;
    margin-top: 0.25rem !important;
}

/* Conversion Potential Lost */
.fiq-potential-box {
    margin-top: 1.25rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid #e2e8f0 !important;
    text-align: center !important;
}

.fiq-potential-label {
    font-size: 0.6875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-weight: 700 !important;
    color: #64748b !important;
    margin-bottom: 0.5rem !important;
}

.fiq-potential-value {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.25rem !important;
}

.fiq-potential-high {
    color: #dc2626 !important;
}

.fiq-potential-medium {
    color: #f59e0b !important;
}

.fiq-potential-low {
    color: #16a34a !important;
}

.fiq-potential-hint {
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    font-style: italic !important;
}

/* Grade Colors */
.fiq-grade-a { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important; }
.fiq-grade-b { background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important; }
.fiq-grade-c { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important; }
.fiq-grade-d { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important; }
.fiq-grade-f { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important; }

.fiq-glow-a { background-color: #22c55e !important; }
.fiq-glow-b { background-color: #10b981 !important; }
.fiq-glow-c { background-color: #f59e0b !important; }
.fiq-glow-d { background-color: #f97316 !important; }
.fiq-glow-f { background-color: #ef4444 !important; }

/* ============================================
   BROWSER MOCKUP
   ============================================ */
.fiq-browser {
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 1.25rem !important;
}

.fiq-browser-header {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    padding: 0.625rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.fiq-browser-dot {
    width: 0.75rem !important;
    height: 0.75rem !important;
    border-radius: 9999px !important;
}

.fiq-dot-red { background-color: #ef4444 !important; }
.fiq-dot-yellow { background-color: #eab308 !important; }
.fiq-dot-green { background-color: #22c55e !important; }

.fiq-browser-url {
    background: #ffffff !important;
    height: 1.75rem !important;
    flex: 1 !important;
    border-radius: 6px !important;
    margin-left: 0.5rem !important;
    padding: 0 0.75rem !important;
    font-size: 0.75rem !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    border: 1px solid #e2e8f0 !important;
}

.fiq-browser-content {
    background-color: #f1f5f9 !important;
    aspect-ratio: 16 / 9 !important;
    position: relative !important;
    overflow: hidden !important;
}

.fiq-browser-placeholder {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #cbd5e1 !important;
}

.fiq-browser-placeholder svg {
    width: 2.5rem !important;
    height: 2.5rem !important;
    animation: fiq-pulse 2s ease-in-out infinite !important;
}

.fiq-screenshot {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top !important;
}

/* ============================================
   INFO GRID
   ============================================ */
.fiq-info-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    margin-top: auto !important;
}

.fiq-info-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-radius: 10px !important;
    padding: 1rem !important;
    border: 1px solid #e2e8f0 !important;
}

.fiq-info-label {
    font-size: 0.6875rem !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.375rem !important;
}

.fiq-info-value {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
}

.fiq-info-value svg {
    width: 1rem !important;
    height: 1rem !important;
    margin-right: 0.5rem !important;
    color: #94a3b8 !important;
}

/* ============================================
   TECH STACK
   ============================================ */
.fiq-tech-stack {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.375rem !important;
}

.fiq-tech-badge {
    padding: 0.25rem 0.625rem !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
}

/* ============================================
   INDUSTRY BADGE
   ============================================ */
.fiq-industry-badge {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    color: #1e40af !important;
    padding: 0.375rem 0.875rem !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
}

/* ============================================
   CHART CONTAINER
   ============================================ */
.fiq-chart-wrapper {
    flex-grow: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 240px !important;
    padding: 0.5rem !important;
}

.fiq-chart-container {
    height: 16rem !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
}

/* ============================================
   PERFORMANCE METRICS GRID
   ============================================ */
.fiq-metrics-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    margin-top: 0.75rem !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid #e2e8f0 !important;
}

.fiq-metric-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    padding: 0.44rem !important;
    background: #f8fafc !important;
    border-radius: 0.3125rem !important;
    transition: all 0.2s !important;
}

.fiq-metric-item:hover {
    background: #f1f5f9 !important;
    transform: translateY(-1px) !important;
}

.fiq-metric-icon {
    width: 1.25rem !important;
    height: 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.25rem !important;
    flex-shrink: 0 !important;
}

.fiq-metric-icon svg {
    width: 0.625rem !important;
    height: 0.625rem !important;
}

.fiq-metric-speed {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    color: #d97706 !important;
}

.fiq-metric-mobile {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    color: #2563eb !important;
}

.fiq-metric-seo {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    color: #059669 !important;
}

.fiq-metric-accessibility {
    background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%) !important;
    color: #9333ea !important;
}

.fiq-metric-security {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%) !important;
    color: #dc2626 !important;
}

.fiq-metric-practices {
    background: linear-gradient(135deg, #99f6e4 0%, #5eead4 100%) !important;
    color: #0d9488 !important;
}

.fiq-metric-details {
    flex: 1 !important;
    min-width: 0 !important;
}

.fiq-metric-label {
    font-size: 0.375rem !important;
    font-weight: 500 !important;
    color: #64748b !important;
    margin-bottom: 0.0625rem !important;
}

.fiq-metric-value {
    font-size: 0.5625rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.fiq-metric-value.fiq-score-excellent {
    color: #059669 !important;
}

.fiq-metric-value.fiq-score-good {
    color: #2563eb !important;
}

.fiq-metric-value.fiq-score-fair {
    color: #d97706 !important;
}

.fiq-metric-value.fiq-score-poor {
    color: #dc2626 !important;
}

/* ============================================
   SUMMARY SECTION
   ============================================ */
.fiq-summary-header {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 1rem !important;
}

.fiq-summary-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    color: #2563eb !important;
    padding: 0.625rem !important;
    border-radius: 10px !important;
    margin-right: 0.875rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fiq-summary-icon svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
}

.fiq-summary-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.fiq-summary-text {
    color: #475569 !important;
    line-height: 1.75 !important;
    font-size: 1rem !important;
}

@media (min-width: 640px) {
    .fiq-summary-text { font-size: 1.0625rem !important; }
}

/* ============================================
   PRIORITY FIXES
   ============================================ */
.fiq-fixes-header {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 1.25rem !important;
    display: flex !important;
    align-items: center !important;
}

.fiq-fixes-header svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    margin-right: 0.625rem !important;
    color: #fbbf24 !important;
}

.fiq-fixes-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.875rem !important;
}

.fiq-fix-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.875rem !important;
    background: rgba(255, 255, 255, 0.08) !important;
    padding: 1rem !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    transition: all 0.2s ease !important;
}

.fiq-fix-item:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    transform: translateX(4px) !important;
}

.fiq-fix-dot {
    margin-top: 0.5rem !important;
    width: 0.5rem !important;
    height: 0.5rem !important;
    border-radius: 9999px !important;
    background-color: #fbbf24 !important;
    flex-shrink: 0 !important;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.5) !important;
}

.fiq-fix-content {
    min-width: 0 !important;
    flex: 1 !important;
}

.fiq-fix-text {
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    line-height: 1.6 !important;
}

.fiq-fix-score {
    font-size: 0.6875rem !important;
    color: #94a3b8 !important;
    margin-top: 0.5rem !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
}

/* ============================================
   STRENGTHS & WEAKNESSES
   ============================================ */
.fiq-list-header {
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    display: flex !important;
    align-items: center !important;
    font-size: 1.0625rem !important;
}

.fiq-list-header svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    margin-right: 0.625rem !important;
}

.fiq-list-header-green {
    color: #166534 !important;
}

.fiq-list-header-green svg {
    color: #22c55e !important;
}

.fiq-list-header-red {
    color: #991b1b !important;
}

.fiq-list-header-red svg {
    color: #ef4444 !important;
}

.fiq-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.fiq-list li {
    padding: 0.5rem 0 !important;
    font-size: 0.9375rem !important;
    position: relative !important;
    padding-left: 1.25rem !important;
}

.fiq-list li::before {
    content: "•" !important;
    position: absolute !important;
    left: 0 !important;
    font-weight: bold !important;
}

.fiq-list-green {
    color: #166534 !important;
}

.fiq-list-green li::before {
    color: #22c55e !important;
}

.fiq-list-red {
    color: #991b1b !important;
}

.fiq-list-red li::before {
    color: #ef4444 !important;
}

/* ============================================
   METRICS SIDEBAR
   ============================================ */
.fiq-metrics-card {
    position: relative !important;
}

@media (min-width: 1024px) {
    .fiq-metrics-card {
        position: sticky !important;
        top: 2rem !important;
    }
}

.fiq-metrics-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
}

.fiq-metric-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0.5rem !important;
}

.fiq-metric-label {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

.fiq-metric-value {
    font-size: 0.875rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.fiq-metric-bar-bg {
    width: 100% !important;
    background-color: #e2e8f0 !important;
    border-radius: 9999px !important;
    height: 0.625rem !important;
    overflow: hidden !important;
}

.fiq-metric-bar {
    height: 100% !important;
    border-radius: 9999px !important;
    transition: width 1s ease-out !important;
}

.fiq-bar-green { background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%) !important; }
.fiq-bar-amber { background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%) !important; }
.fiq-bar-orange { background: linear-gradient(90deg, #f97316 0%, #ea580c 100%) !important; }
.fiq-bar-red { background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%) !important; }

.fiq-metrics-footer {
    margin-top: 1.5rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid #e2e8f0 !important;
}

.fiq-metrics-note {
    font-size: 0.8125rem !important;
    color: #64748b !important;
    line-height: 1.6 !important;
}

/* ============================================
   BACK BUTTON
   ============================================ */
.fiq-back-section {
    display:none !important;
    text-align: center !important;
    margin-top: 2.5rem !important;
    padding-bottom: 1rem !important;
}

.fiq-back-btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.875rem 1.75rem !important;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2) !important;
    font-size: 0.9375rem !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
}

.fiq-back-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3) !important;
}

.fiq-back-btn svg {
    width: 1.125rem !important;
    height: 1.125rem !important;
    margin-right: 0.625rem !important;
}

/* ============================================
   LOADING STATE
   ============================================ */
.fiq-loading {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5rem 1rem !important;
    animation: fiq-fadeIn 0.5s ease-out !important;
}

.fiq-spinner-wrapper {
    position: relative !important;
    width: 5rem !important;
    height: 5rem !important;
    margin-bottom: 1.5rem !important;
}

.fiq-spinner-bg {
    position: absolute !important;
    inset: 0 !important;
    border: 4px solid #e2e8f0 !important;
    border-radius: 9999px !important;
}

.fiq-spinner {
    position: absolute !important;
    inset: 0 !important;
    border: 4px solid #3b82f6 !important;
    border-radius: 9999px !important;
    animation: fiq-spin 1s linear infinite !important;
    border-top-color: transparent !important;
}

.fiq-loading-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-align: center !important;
}

.fiq-loading-text {
    color: #64748b !important;
    margin-top: 0.625rem !important;
    font-size: 1.0625rem !important;
    text-align: center !important;
}

/* ============================================
   STATUS BANNER
   ============================================ */
.fiq-status-banner {
    margin-bottom: 1.5rem !important;
    border-radius: 12px !important;
    padding: 1rem 1.25rem !important;
    border-left: 4px solid !important;
    max-width: 72rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.fiq-status-content {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.875rem !important;
}

.fiq-status-icon {
    flex-shrink: 0 !important;
}

.fiq-status-title {
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.fiq-status-message {
    font-size: 0.875rem !important;
    margin-top: 0.25rem !important;
    color: #475569 !important;
}

.fiq-status-warning {
    background-color: #fffbeb !important;
    border-color: #f59e0b !important;
}

.fiq-status-error {
    background-color: #fef2f2 !important;
    border-color: #ef4444 !important;
}

.fiq-status-success {
    background-color: #f0fdf4 !important;
    border-color: #22c55e !important;
}

.fiq-status-info {
    background-color: #eff6ff !important;
    border-color: #3b82f6 !important;
}

/* ============================================
   SETUP NOTICE
   ============================================ */
.fiq-setup-notice {
    max-width: 48rem !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    padding: 2rem !important;
    border-left: 4px solid #3b82f6 !important;
}

.fiq-setup-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.25rem !important;
}

@media (min-width: 640px) {
    .fiq-setup-content { flex-direction: row !important; }
}

.fiq-setup-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fiq-setup-icon svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    color: #2563eb !important;
}

.fiq-setup-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 0.5rem !important;
}

.fiq-setup-text {
    color: #64748b !important;
    margin-bottom: 1.25rem !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

.fiq-setup-btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.75rem 1.5rem !important;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
    font-size: 0.9375rem !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.fiq-setup-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4) !important;
}

.fiq-setup-btn svg {
    width: 1.125rem !important;
    height: 1.125rem !important;
    margin-right: 0.5rem !important;
}

/* ============================================
   FLEX UTILITIES
   ============================================ */
.fiq-flex-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 1rem !important;
}

/* ============================================
   SPACING
   ============================================ */
.fiq-space-y > * + * {
    margin-top: 1.25rem !important;
}

@media (min-width: 640px) {
    .fiq-space-y > * + * { margin-top: 1.5rem !important; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fiq-spin {
    to { transform: rotate(360deg); }
}

@keyframes fiq-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes fiq-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fiq-slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fiq-fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.fiq-animate-slideup {
    animation: fiq-slideUp 0.6s ease-out forwards !important;
}

.fiq-animate-fadeout {
    animation: fiq-fadeOut 0.3s ease-out forwards !important;
}

/* ============================================
   DETAILED ANALYSIS SECTION
   ============================================ */
.fiq-detailed-header {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0.5rem !important;
}

.fiq-detailed-header svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    margin-right: 0.75rem !important;
    color: #3b82f6 !important;
}

.fiq-detailed-subtitle {
    color: #64748b !important;
    font-size: 0.9375rem !important;
    margin-bottom: 1.5rem !important;
}

.fiq-detailed-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

.fiq-analysis-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    transition: all 0.2s ease !important;
}

.fiq-analysis-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.fiq-analysis-header {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
}

.fiq-analysis-icon {
    font-size: 1.5rem !important;
    line-height: 1 !important;
}

.fiq-analysis-title-wrap {
    flex: 1 !important;
    min-width: 0 !important;
}

.fiq-analysis-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
}

.fiq-analysis-desc {
    font-size: 0.75rem !important;
    color: #64748b !important;
    display: block !important;
    margin-top: 0.125rem !important;
}

.fiq-analysis-score {
    font-size: 1rem !important;
    font-weight: 800 !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
}

.fiq-score-good {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
    color: #166534 !important;
}

.fiq-score-ok {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    color: #92400e !important;
}

.fiq-score-bad {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    color: #991b1b !important;
}

.fiq-analysis-findings {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 1rem 0 !important;
}

.fiq-analysis-findings li {
    position: relative !important;
    padding-left: 1.25rem !important;
    font-size: 0.875rem !important;
    color: #475569 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.5 !important;
}

.fiq-analysis-findings li::before {
    content: "." !important;
    position: absolute !important;
    left: 0 !important;
    color: #94a3b8 !important;
    font-weight: bold !important;
}

.fiq-analysis-recommendation {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 3px solid #3b82f6 !important;
    border-radius: 8px !important;
    padding: 0.875rem 1rem !important;
    font-size: 0.875rem !important;
    color: #334155 !important;
    line-height: 1.5 !important;
}

.fiq-analysis-recommendation strong {
    color: #1e40af !important;
    font-weight: 600 !important;
}
