/* ========================================
   IDEAISER - AI Business Idea Evaluator
   Premium Dark Theme with Glassmorphism
   ======================================== */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --accent-tertiary: #f093fb;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --score-excellent: #10b981;
    --score-good: #22c55e;
    --score-average: #f59e0b;
    --score-poor: #ef4444;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(102, 126, 234, 0.3);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.15);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* App Container */
.app-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Animated Background */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(240, 147, 251, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    top: 50%;
    right: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-tertiary);
    bottom: -100px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(-30px, -20px) scale(1.02);
    }
}

/* Glass Card Effect */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* Header */
.header {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 3rem 1.5rem 2rem;
}

/* Logo Link Styling */
.logo-link {
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    display: inline-flex;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-link:active {
    transform: scale(0.98);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    overflow: hidden;
}

.logo-img img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Auth Styles */
.auth-box {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #333;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.login-btn:hover {
    background: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

#userAvatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
}

#userName {
    font-weight: 600;
    font-size: 0.95rem;
}

.logout-btn {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

/* Admin \u0026 Logout Action Buttons */
.logout-btn,
.admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    line-height: 1;
}

.logout-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

.admin-link {
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.admin-link:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
    color: var(--accent-secondary);
}

/* Admin Modal Specifics */
.admin-modal-card {
    max-width: 800px !important;
}

.admin-search-box {
    margin-bottom: 2rem;
}

.admin-search-box input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
}

.user-list-container {
    max-height: 500px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.user-table th,
.user-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.user-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.role-admin {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.role-user {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.pro-badge {
    color: #10b981;
    font-weight: 800;
}

.promote-btn {
    background: var(--accent-primary);
    border: none;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.promote-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

.toggle-pro-btn {
    background: transparent;
    border: 1px solid #10b981;
    color: #10b981;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.toggle-pro-btn:hover {
    background: #10b981;
    color: white;
}

.toggle-pro-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.hidden {
    display: none !important;
}

/* Modal System */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    /* Above top-nav (1000) */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    width: 90%;
    max-width: 450px;
    padding: 3rem 2rem;
    position: relative;
    border-radius: var(--radius-xl);
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    line-height: 1;
    z-index: 10;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-primary);
    transform: rotate(90deg);
}

/* Auth Modal Specifics */
.auth-modal-card h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-modal-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.auth-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 0.25rem;
    margin-bottom: 2rem;
}

.toggle-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.toggle-btn.active {
    background: var(--accent-gradient);
    color: white;
}

.auth-form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
}

.auth-submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    margin-top: 1rem;
}

.auth-divider {
    margin: 2rem 0;
    position: relative;
    text-align: center;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    position: relative;
    background: #1a202c;
    /* Matches glass card darkened bg */
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.google-auth-btn {
    width: 100%;
    padding: 0.85rem;
    background: white;
    color: #333;
    border: none;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.google-auth-btn:hover {
    background: #f1f1f1;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 10;
    flex: 1;
    padding: 0 1.5rem 3rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Input Section */
.input-section {
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.idea-input {
    width: 100%;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.7;
    resize: vertical;
    min-height: 160px;
    transition: all var(--transition-normal);
}

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

.idea-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Evaluate Button */
.evaluate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.1rem 2rem;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.evaluate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.evaluate-btn:hover::before {
    opacity: 1;
}

.evaluate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

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

.evaluate-btn .btn-icon svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-normal);
}

.evaluate-btn:hover .btn-icon svg {
    transform: translateX(4px);
}

.evaluate-btn.loading .btn-text,
.evaluate-btn.loading .btn-icon {
    opacity: 0;
}

.evaluate-btn.loading .btn-loader {
    display: flex;
}

.btn-loader {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Results Section */
.results-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.results-section.hidden {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Score Card */
.score-card {
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.score-ring-container {
    position: relative;
    width: 200px;
    height: 200px;
}

.score-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 12;
}

.score-ring-progress {
    fill: none;
    stroke: url(#scoreGradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 534;
    stroke-dashoffset: 534;
    transition: stroke-dashoffset 1.5s ease-out;
}

.score-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-value {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.verdict-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.verdict-subtext {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Categories Card */
.categories-card {
    padding: 2rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.category-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.category-score {
    font-size: 1rem;
    font-weight: 700;
}

.category-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.category-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-out;
}

/* Feedback Card */
.feedback-card {
    padding: 0;
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.tab-btn:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: var(--text-primary);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-icon {
    font-size: 1.1rem;
}

.tabs-content {
    padding: 1.5rem;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Feedback Lists */
.feedback-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feedback-list li {
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border-left: 3px solid;
    line-height: 1.6;
    font-size: 0.95rem;
}

.strengths-list li {
    border-color: var(--success);
}

.weaknesses-list li {
    border-color: var(--danger);
}

.improvements-list li {
    border-color: var(--info);
}

/* Examples Section */
.examples-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.examples-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.success {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.status-dot.failure {
    background: var(--danger);
    box-shadow: 0 0 10px var(--danger);
}

.examples-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.examples-list li {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.6;
}

.example-name {
    font-weight: 600;
    color: var(--text-primary);
}

.example-desc {
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-glow);
}

.action-btn.primary {
    background: var(--accent-gradient);
    border: none;
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 2rem 1rem 1.5rem;
    }

    .logo-text {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .main-content {
        padding: 0 1rem 2rem;
    }

    .input-section {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .score-card {
        padding: 2rem 1.5rem;
    }

    .score-ring-container {
        width: 160px;
        height: 160px;
    }

    .score-value {
        font-size: 3rem;
    }

    .tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-btn {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .orb {
        display: none;
    }

    .tab-btn .tab-icon {
        display: none;
    }
}

/* Score Color Classes */
.score-excellent {
    color: var(--score-excellent);
}

.score-good {
    color: var(--score-good);
}

.score-average {
    color: var(--score-average);
}

.score-poor {
    color: var(--score-poor);
}

.bar-excellent {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.bar-good {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.bar-average {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

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

/* Quick Summary Card */
.summary-card {
    padding: 1.5rem 2rem;
}

.quick-summary {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Panel Intro */
.panel-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-style: italic;
}

/* Action Plan Container */
.action-plan-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.action-phase {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border-left: 4px solid;
}

.action-phase.week1 {
    border-color: #10b981;
}

.action-phase.week2 {
    border-color: #3b82f6;
}

.action-phase.week3 {
    border-color: #8b5cf6;
}

.action-phase.month1 {
    border-color: #f59e0b;
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.phase-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.week1 .phase-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.week2 .phase-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.week3 .phase-badge {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.month1 .phase-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.phase-title {
    font-weight: 600;
    font-size: 1rem;
}

.phase-tasks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.phase-tasks li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.phase-tasks li::before {
    content: '→';
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Resources Container */
.resources-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.resource-category {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.resource-category h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.resource-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-list li::before {
    content: '•';
    color: var(--accent-primary);
}

/* Pivot Ideas Container */
.pivot-ideas-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pivot-idea {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.pivot-idea:hover {
    border-color: var(--border-glow);
    background: rgba(0, 0, 0, 0.3);
}

.pivot-idea h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-tertiary);
}

.pivot-idea p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Metrics Card */
.metrics-card {
    padding: 2rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.metric-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.metric-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.metric-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

/* Go-to-Market Card */
.gtm-card {
    padding: 2rem;
}

.gtm-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gtm-strategy {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border-left: 4px solid var(--accent-primary);
}

.gtm-strategy h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gtm-strategy p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Validation Card */
.validation-card {
    padding: 2rem;
}

.validation-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
}

.validation-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    line-height: 1.5;
}

.validation-list li::before {
    content: '❓';
    flex-shrink: 0;
}

/* Button loader with text */
.btn-loader {
    display: none;
    align-items: center;
    gap: 0.75rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.btn-loader span {
    font-size: 0.95rem;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .resources-container {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .validation-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Funding Section Styles */
.funding-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.funding-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.funding-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.capital-range {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

.strategy-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header-row h4 {
    margin-bottom: 0;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    padding: 0.4rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.copy-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.copy-btn svg {
    width: 18px;
    height: 18px;
}

.email-preview {
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
    line-height: 1.5;
}

.investor-links {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.investor-links li a {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
    text-align: center;
}

.investor-links li a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Pricing Section Styles */
.pricing-section {
    padding: 4rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    transform: scale(1.05);
    background: rgba(102, 126, 234, 0.05);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: var(--accent-gradient);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2.5rem;
    flex: 1;
}

.plan-features li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-icon {
    font-size: 1rem;
}

.pricing-btn {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.pricing-btn.primary {
    background: var(--accent-gradient);
    border: none;
    color: white;
}

.pricing-btn.secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.pricing-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* Donation Section Styles */
.donation-section {
    padding: 3rem;
    max-width: 900px;
    margin: 2rem auto 4rem;
    text-align: center;
}

.donation-content h2 {
    margin-bottom: 1rem;
}

.donation-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.donation-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    max-width: 250px;
    margin: 0 auto 1.5rem;
    transition: all var(--transition-normal);
}

.donation-input-group:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.2);
}

.currency-prefix {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-right: 0.5rem;
}

#donationAmount {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    width: 100%;
    outline: none;
}

.price-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

.donate-btn {
    padding: 1rem 2.5rem;
    background: #f59e0b;
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.donate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

@media (max-width: 768px) {
    .pricing-card.featured {
        transform: none;
    }
}

.pricing-btn.pro-active {
    background: #10b981 !important;
    cursor: default;
    transform: none !important;
    box-shadow: none !important;
}

.pricing-grid {
    transition: opacity var(--transition-slow);
}

/* Footer Styles */
.footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.legal-links a:hover {
    color: var(--accent-primary);
}

@media (max-width: 480px) {
    .legal-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --- Refined Premium UI Overhaul --- */

/* Top Navigation Bar */
.top-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 0;
    background: rgba(10, 10, 15, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 600px) {
    .nav-container {
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .nav-actions {
        gap: 0.75rem;
    }

    .logout-btn,
    .admin-link,
    .login-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.hero-header {
    margin-top: 8rem;
    /* Space for fixed nav */
    text-align: center;
    padding: 2rem 0;
}

/* Global Button Tokens for Consistency */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
}

.action-btn.primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
}

/* Settings Modal Refinement */
.settings-sections {
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem;
}

.settings-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    border-left: 4px solid var(--accent-primary);
}

.settings-section h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Admin Panel Actions */
.admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.promote-btn,
.demote-btn,
.toggle-pro-btn {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.promote-btn {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.promote-btn:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.2);
}

.demote-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.demote-btn:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.2);
}

.toggle-pro-btn {
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent-primary);
    border-color: rgba(102, 126, 234, 0.2);
}

.toggle-pro-btn:hover:not(:disabled) {
    background: rgba(102, 126, 234, 0.2);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}
/* ============================================
   CORTEX AI UPGRADE STYLES
   ============================================ */

.thinking-console {
    background: #000;
    font-family: 'Consolas', 'Monaco', monospace;
    padding: 1.5rem;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.15);
    margin-bottom: 2rem;
    height: 300px;
    display: flex;
    flex-direction: column;
}

.console-header {
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: var(--accent-tertiary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.thought-log {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.thought-log::-webkit-scrollbar {
    width: 6px;
}

.thought-log::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.console-line {
    color: #a7f3d0;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.console-line .timestamp {
    color: #666;
    margin-right: 0.5rem;
}

/* Deep Analysis Grid */
.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.grid-card {
    padding: 1.5rem;
    height: 100%;
}

.grid-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.grid-card ul {
    list-style: none;
    padding: 0;
}

.grid-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.grid-card li::before {
    content: '';
    position: absolute;
    left: 0;
    color: var(--accent-tertiary);
}

.grid-card.warning li::before {
    color: var(--danger);
}

/* Verdict Badges */
.verdict-badges {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.secondary {
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent-primary);
    border-color: rgba(102, 126, 234, 0.2);
}

/* Timeline Roadmap */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    height: 100%;
    width: 2px;
    background: rgba(255,255,255,0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.step-num {
    position: absolute;
    left: -2rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
}

.step-content {
    background: rgba(255,255,255,0.03);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.metric-box {
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.m-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.m-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.5rem 0;
}

.m-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Funding Box */
.funding-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(0,0,0,0) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.funding-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.email-preview {
    background: #fff;
    color: #111;
    padding: 1.5rem;
    border-radius: 6px;
    font-family: serif;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

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


/* Financial Table */
.financial-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.fin-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.fin-row:last-child {
    border-bottom: none;
    font-weight: bold;
    border-top: 1px solid var(--accent-primary);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

.fin-val {
    font-family: monospace;
    color: #10b981;
}

.fin-val.negative {
    color: #ef4444;
}

/* Competitor Tags */
.competitor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.comp-tag {
    background: rgba(255,255,255,0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

