* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Colors - Matching the attached design */
    --color-primary: #5b9bd5;
    --color-primary-dark: #4a7ba7;
    --color-secondary: #ff9800;
    --color-success: #4caf50;
    --color-danger: #f44336;
    --color-warning: #ffc107;
    --color-info: #2196f3;
    
    /* Neon Colors */
    --neon-blue: #00d4ff;
    --neon-purple: #b347ff;
    --neon-pink: #ff00ff;
    --neon-green: #00ff88;
    --neon-cyan: #00ffff;
    --neon-orange: #ff6b00;
    
    /* Dark Background Colors */
    --color-bg: #1a1f3a;
    --color-bg-secondary: #252b4a;
    --color-surface: #2d3455;
    --color-surface-hover: #353c5f;
    
    /* Glass Effect Colors */
    --glass-bg: rgba(45, 52, 85, 0.3);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Text Colors */
    --color-text: #ffffff;
    --color-text-light: #b0b8d1;
    --color-text-muted: #7a82a3;
    
    /* Border Colors */
    --color-border: #3a4162;
    --color-border-light: #4a5270;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    
    /* Glow Effects */
    --glow-blue: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3);
    --glow-purple: 0 0 20px rgba(179, 71, 255, 0.5), 0 0 40px rgba(179, 71, 255, 0.3);
    --glow-green: 0 0 20px rgba(0, 255, 136, 0.5), 0 0 40px rgba(0, 255, 136, 0.3);
    --glow-cyan: 0 0 20px rgba(0, 255, 255, 0.5), 0 0 40px rgba(0, 255, 255, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1425 50%, #1a1f3a 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(179, 71, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.app-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.app-header {
    background: linear-gradient(135deg, rgba(37, 43, 74, 0.4) 0%, rgba(45, 52, 85, 0.4) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: white;
    padding: 30px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.app-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.app-header::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--neon-cyan));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.app-header h1 {
    font-size: 2.2em;
    margin-bottom: 8px;
    font-weight: 600;
}

.app-header p {
    font-size: 1em;
    opacity: 0.9;
    color: var(--color-text-light);
}

.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-border);
    flex-wrap: wrap;
    overflow-x: auto;
    background: rgba(37, 43, 74, 0.3);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    padding: 12px 18px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: -2px;
    white-space: nowrap;
    border-radius: 6px 6px 0 0;
}

.tab-btn:hover {
    color: var(--color-text);
    background: var(--color-surface);
}

.tab-btn.active {
    color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

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

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

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

.content h2 {
    margin-bottom: 20px;
    color: var(--color-text);
    font-size: 1.8em;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: rgba(45, 52, 85, 0.4);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-box:hover::before {
    opacity: 1;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2), var(--shadow-md);
    border-color: rgba(0, 212, 255, 0.4);
}

.stat-label {
    font-size: 0.85em;
    color: var(--color-text-light);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-number {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--neon-cyan);
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 40px rgba(0, 212, 255, 0.3);
    position: relative;
    z-index: 1;
    animation: numberPulse 2s ease-in-out infinite;
}

.stat-hint {
    margin-top: 6px;
    font-size: 0.85em;
    color: var(--color-text-light);
    opacity: 0.85;
}

.stat-hint .chip {
    margin-right: 6px;
    margin-top: 6px;
}

@keyframes numberPulse {
    0%, 100% { text-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 40px rgba(0, 212, 255, 0.3); }
    50% { text-shadow: 0 0 30px rgba(0, 212, 255, 0.8), 0 0 60px rgba(0, 212, 255, 0.5); }
}

.card {
    background: rgba(45, 52, 85, 0.4);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::after {
    opacity: 1;
    animation: topGlow 2s ease-in-out infinite;
}

@keyframes topGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.card:hover {
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15), var(--shadow-md);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.card h3 {
    color: var(--color-text);
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 600;
}

.progress-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.progress-item span:first-child {
    flex: 1;
    min-width: 150px;
    font-weight: 500;
    color: var(--color-text);
}

.progress-item span:nth-child(2) {
    min-width: 60px;
    text-align: right;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.1em;
}

.progress-bar {
    flex: 1;
    min-width: 200px;
    height: 10px;
    background: var(--color-bg-secondary);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue), var(--neon-purple));
    border-radius: 6px;
    transition: width 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5), 0 0 30px rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.insights-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.insight-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-success);
    border-radius: 8px;
    padding: 18px;
    transition: all 0.3s ease;
}

.insight-card:hover {
    background: var(--color-surface);
    border-color: var(--color-border-light);
}

.insight-card h4 {
    color: var(--color-text);
    margin-bottom: 12px;
    font-size: 1.1em;
    font-weight: 600;
}

.insight-card p {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--color-text-light);
}

.action-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-list li {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(37, 43, 74, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 18px rgba(0, 212, 255, 0.08);
}

.action-list strong {
    color: var(--neon-cyan);
}

.mini-legend {
    margin-top: 10px;
    color: var(--color-text-light);
    font-size: 0.9em;
}

.mini-legend.small {
    font-size: 0.85em;
    opacity: 0.9;
}

.quote-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quote-card {
    background: rgba(37, 43, 74, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--neon-cyan);
    border-radius: 12px;
    padding: 14px 14px;
    box-shadow: 0 4px 18px rgba(0, 212, 255, 0.08);
}

.quote-card.risk {
    border-left-color: var(--neon-orange);
    box-shadow: 0 4px 18px rgba(255, 107, 0, 0.08);
}

.quote-card.opp {
    border-left-color: var(--neon-green);
    box-shadow: 0 4px 18px rgba(0, 255, 136, 0.08);
}

.quote-text {
    color: var(--color-text);
    line-height: 1.6;
    font-size: 0.98em;
}

.quote-meta {
    margin-top: 8px;
    color: var(--color-text-light);
    font-size: 0.85em;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    opacity: 0.9;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 212, 255, 0.08);
    color: var(--color-text-light);
}

.playbooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 12px;
}

.segment-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    margin-top: 12px;
}

.segment-card {
    background: rgba(45, 52, 85, 0.35);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.segment-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.25;
}

.segment-card h4 {
    margin-bottom: 6px;
    color: var(--color-text);
}

.segment-sub {
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 212, 255, 0.08);
    color: var(--color-text-light);
    margin-right: 6px;
    margin-top: 6px;
    font-size: 0.85em;
}

.pill.now { border-color: rgba(255, 107, 0, 0.6); background: rgba(255, 107, 0, 0.10); }
.pill.next { border-color: rgba(0, 212, 255, 0.6); background: rgba(0, 212, 255, 0.10); }
.pill.later { border-color: rgba(176, 184, 209, 0.35); background: rgba(176, 184, 209, 0.08); }

.pill.issue { border-color: rgba(255, 107, 0, 0.6); background: rgba(255, 107, 0, 0.10); }
.pill.opp { border-color: rgba(0, 255, 136, 0.55); background: rgba(0, 255, 136, 0.08); }

.mini-metric {
    color: var(--color-text-light);
    font-size: 0.9em;
    margin-top: 8px;
}

.item-block {
    margin-top: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(37, 43, 74, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.item-title {
    color: var(--color-text);
    font-weight: 700;
    margin-bottom: 6px;
}

.item-text {
    color: var(--color-text-light);
    line-height: 1.6;
}

.playbook-card {
    background: rgba(45, 52, 85, 0.35);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.playbook-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.35;
}

.playbook-title {
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}

.playbook-subtitle {
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.playbook-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.playbook-list li {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(37, 43, 74, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    color: var(--color-text);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    background: var(--color-surface);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2), 0 0 20px rgba(0, 212, 255, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.btn, .button {
    padding: 12px 24px;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary, .button {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    color: white;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before, .button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before, .button:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover, .button:hover {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6), 0 4px 12px rgba(0, 212, 255, 0.4);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-secondary, .button.secondary {
    background: linear-gradient(135deg, var(--neon-orange), var(--color-secondary));
    color: white;
    border: 1px solid rgba(255, 107, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before, .button.secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-secondary:hover::before, .button.secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary:hover, .button.secondary:hover {
    background: linear-gradient(135deg, var(--color-secondary), var(--neon-orange));
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.6), 0 4px 12px rgba(255, 107, 0, 0.4);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9em;
}

.invites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.invite-card {
    background: rgba(45, 52, 85, 0.4);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.invite-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan), var(--neon-blue));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.invite-card:hover::before {
    opacity: 0.6;
    animation: cardBorderGlow 2s ease-in-out infinite;
}

@keyframes cardBorderGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.invite-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(179, 71, 255, 0.2), var(--shadow-md);
    border-color: rgba(179, 71, 255, 0.3);
}

.invite-card h3 {
    color: var(--color-text);
    margin-bottom: 12px;
    font-weight: 600;
}

.invite-url {
    background: var(--color-bg-secondary);
    padding: 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    word-break: break-all;
    margin: 12px 0;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.invite-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
    font-size: 0.9em;
    color: var(--color-text-light);
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.integration-card {
    background: rgba(45, 52, 85, 0.4);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.integration-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.integration-card:hover::after {
    opacity: 1;
    animation: topGlow 2s ease-in-out infinite;
}

.integration-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.15), var(--shadow-md);
    border-color: rgba(0, 255, 136, 0.3);
}

.integration-card h3 {
    color: var(--color-text);
    margin-bottom: 10px;
    font-weight: 600;
}

.integration-card p {
    color: var(--color-text-light);
    font-size: 0.9em;
    margin-bottom: 15px;
    line-height: 1.6;
}

.integration-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 15px;
    background: var(--color-bg-secondary);
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
}

.integration-status.configured {
    background: rgba(76, 175, 80, 0.2);
    color: var(--color-success);
    border-color: var(--color-success);
}

.analytics-container {
    margin-top: 20px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(45, 52, 85, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 30px;
    max-width: 850px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2), var(--shadow-lg);
}

.modal-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    animation: borderGlow 3s ease-in-out infinite;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: var(--color-text-light);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--color-text);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: var(--color-text);
}

.modal-header .close {
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: var(--color-text-light);
    transition: color 0.3s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header .close:hover {
    color: var(--color-text);
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.subtitle {
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-size: 1em;
}

/* Research Questions Styles */
.research-question-card {
    background: rgba(37, 43, 74, 0.3);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--neon-cyan);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.research-question-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-blue));
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    animation: leftGlow 2s ease-in-out infinite;
}

@keyframes leftGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 212, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.8); }
}

.research-question-card:hover {
    background: rgba(45, 52, 85, 0.4);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.research-question-card h4 {
    color: var(--color-text);
    margin-bottom: 12px;
    font-size: 1.1em;
    font-weight: 600;
}

.research-question-card ul {
    margin-left: 20px;
    color: var(--color-text-light);
}

.research-question-card li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Collapsible explanations for non-technical readers */
.q-help {
    margin-top: 6px;
}

.q-help summary {
    cursor: pointer;
    font-size: 0.82em;
    color: var(--color-text-light);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 212, 255, 0.08);
    user-select: none;
}

.q-help[open] summary {
    color: var(--neon-cyan);
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}

.q-help .q-help-body {
    margin-top: 8px;
    font-size: 0.85em;
    color: var(--color-text-light);
    line-height: 1.6;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(37, 43, 74, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Methodologies Styles */
.methodologies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.methodology-card {
    background: rgba(45, 52, 85, 0.4);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.methodology-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink), var(--neon-cyan));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.methodology-card:hover::after {
    opacity: 0.5;
    animation: borderGlow 2s ease-in-out infinite;
}

.methodology-card:hover {
    box-shadow: 0 8px 32px rgba(179, 71, 255, 0.2), var(--shadow-md);
    transform: translateY(-2px);
    border-color: rgba(179, 71, 255, 0.3);
}

.methodology-card h3 {
    color: var(--color-text);
    margin-bottom: 12px;
    font-size: 1.2em;
    font-weight: 600;
}

.methodology-card p {
    margin-bottom: 10px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.methodology-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.methodology-progress .progress-bar {
    flex: 1;
    background: var(--color-bg-secondary);
}

.methodology-progress span {
    font-size: 0.9em;
    color: var(--color-text-light);
    white-space: nowrap;
}

/* Timeline Styles */
.timeline-container {
    margin-top: 30px;
}

.timeline-phase {
    background: rgba(45, 52, 85, 0.4);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--neon-cyan);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-phase.success {
    border-left-color: var(--neon-green);
}

.timeline-phase.warning {
    border-left-color: var(--neon-orange);
    animation: phaseWarning 2s ease-in-out infinite;
}

@keyframes phaseWarning {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 107, 0, 0.3); }
    50% { box-shadow: 0 0 25px rgba(255, 107, 0, 0.6); }
}

.timeline-phase::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-blue), var(--neon-purple));
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    animation: phaseGlow 3s ease-in-out infinite;
}

@keyframes phaseGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 212, 255, 0.6); }
    50% { box-shadow: 0 0 25px rgba(0, 212, 255, 0.9); }
}

.timeline-phase:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2), var(--shadow-md);
    transform: translateX(5px);
}

.phase-details {
    padding: 25px;
}

.phase-details summary {
    cursor: pointer;
    list-style: none;
    outline: none;
}

.phase-details summary::-webkit-details-marker {
    display: none;
}

.phase-details summary::marker {
    display: none;
}

.phase-details summary::before {
    content: '▶';
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.2s;
    color: var(--neon-cyan);
}

.phase-details[open] summary::before {
    transform: rotate(90deg);
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
    padding: 0;
}

.phase-header h3 {
    color: var(--color-text);
    margin: 0;
    font-weight: 600;
}

.phase-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.phase-explanation {
    background: rgba(0, 212, 255, 0.1);
    border-left: 3px solid var(--neon-cyan);
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    color: var(--color-text-light);
    font-size: 0.92em;
    line-height: 1.6;
}

.phase-content ul {
    margin-left: 20px;
    color: var(--color-text-light);
}

.phase-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Insights Styles */
.insight-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--color-info);
    transition: all 0.3s ease;
}

.insight-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-border-light);
}

.insight-card.high-confidence {
    border-left-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.insight-card.medium-confidence {
    border-left-color: var(--neon-orange);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.2);
}

.insight-card.low-confidence {
    border-left-color: var(--color-danger);
    box-shadow: 0 0 15px rgba(244, 67, 54, 0.2);
}

.insight-card h4 {
    color: var(--color-text);
    margin-bottom: 12px;
    font-size: 1.2em;
    font-weight: 600;
}

.insight-card p {
    margin-bottom: 8px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.table th {
    background: var(--color-bg-secondary);
    color: var(--color-text);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--color-border);
}

.table td {
    padding: 15px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-light);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover {
    background: var(--color-bg-secondary);
}

.table tr:hover td {
    color: var(--color-text);
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    margin: 5px 5px 5px 0;
}

.badge.success {
    background: rgba(76, 175, 80, 0.2);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

.badge.warning {
    background: rgba(255, 193, 7, 0.2);
    color: var(--color-warning);
    border: 1px solid var(--color-warning);
}

.badge.danger {
    background: rgba(244, 67, 54, 0.2);
    color: var(--color-danger);
    border: 1px solid var(--color-danger);
}

/* Grid Styles */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Error and Success Messages */
.error-message {
    background: rgba(244, 67, 54, 0.1);
    border-left: 4px solid var(--color-danger);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: var(--color-danger);
}

.success-message {
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid var(--color-success);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: var(--color-success);
}

@media (max-width: 768px) {
    .app-header h1 {
        font-size: 1.6em;
    }

    .tabs {
        flex-direction: column;
        padding: 5px;
    }

    .tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
        border-radius: 6px;
        margin-bottom: 5px;
    }

    .tab-btn.active {
        border-left-color: var(--color-primary);
        border-bottom: none;
        background: var(--color-surface);
    }

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

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