/* Weekly Intel - Modern Premium Styles */

/* ===== Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ===== CSS Variables ===== */
:root {
    /* New Fresh & Light Color Palette */
    --primary-color: #007AFF; /* Fresh Blue */
    --primary-dark: #0056b3;
    --primary-light: #66b2ff;
    --primary-gradient: linear-gradient(135deg, #007AFF 0%, #0056b3 100%);
    --accent-color: #34C759; /* Fresh Green */
    --success-color: #16a34a;
    --success-gradient: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    --danger-color: #dc2626;
    --warning-color: #f59e0b;
    --info-color: #0ea5e9;

    /* Neutral Colors - Lighter & Fresher */
    --background: #FFFFFF;
    --surface: #F7F7F7; 
    --surface-elevated: #FFFFFF;
    --dark-bg: #FFFFFF; /* Changed from dark to light */
    --dark-text: #1c1c1e; /* Near Black */
    --text-primary: #333333;
    --text-secondary: #555555;
    --text-muted: #8e8e93;
    --border-color: #e5e5e5;
    --border-light: #f2f2f2;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing & Layout */
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-sm: 8px;
    --container-max: 1280px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.15);
    
    /* Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-index layers */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.7;
    background-color: var(--background);
    overflow-x: hidden;
}

/* Selection styling */
::selection {
    background-color: var(--primary-color);
    color: white;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-text);
    letter-spacing: -0.02em;
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 { 
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

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

.text-right {
    text-align: right;
}

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

/* ===== Container & Layout ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-fluid {
    width: 100%;
    padding: 0 2rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.col {
    flex: 1;
    padding: 0 1rem;
}

.col-50 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 1rem;
}

/* ===== Header & Navigation ===== */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: var(--transition-base);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition-base);
    letter-spacing: -0.02em;
}

.logo:hover {
    transform: translateY(-2px);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

.nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-base);
}

.nav a:not(.btn):hover::after {
    width: 100%;
}

.nav a:hover {
    color: var(--primary-color);
}

.nav .btn-primary {
    color: white !important;
}

.nav .btn {
    margin-left: 0.5rem;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-text);
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        gap: 1.5rem;
        animation: slideDown 0.3s ease;
    }

    .nav.active {
        display: flex;
    }
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-base);
    line-height: 1.5;
    font-family: var(--font-display);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 25px rgba(79, 70, 229, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(11, 163, 96, 0.3);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
    border-radius: var(--border-radius);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

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

/* ===== Forms ===== */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-base);
    font-family: var(--font-primary);
    background-color: var(--surface);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.form-help {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

.form-error {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.375rem;
    font-weight: 500;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
}

/* ===== Cards ===== */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition-base);
    border: 1px solid var(--border-light);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.pricing-card {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--primary-color);
}

.card-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.card-body {
    padding: 1rem 0;
}

.card-footer {
    padding-top: 1.25rem;
    border-top: 2px solid var(--border-light);
    margin-top: 1.25rem;
}

/* ===== Alerts ===== */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius-sm);
    border-left: 4px solid;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    border-color: var(--success-color);
    color: #065f46;
}

.alert-error,
.alert-danger {
    background-color: #fee2e2;
    border-color: var(--danger-color);
    color: #991b1b;
}

.alert-info {
    background-color: #e0f2fe;
    border-color: var(--info-color);
    color: #0c4a6e;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: var(--warning-color);
    color: #78350f;
}

/* ===== Tables ===== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    font-weight: 600;
    background-color: var(--surface);
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr:hover {
    background-color: rgba(102, 126, 234, 0.03);
}

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

.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius-sm);
}

/* ===== Modals ===== */
.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.modal-content.modal-lg {
    max-width: 1024px;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

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

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-footer {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

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

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

/* ===== Loading Spinner ===== */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 3px;
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: calc(var(--z-modal) + 100);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    background-color: var(--background);
    color: var(--text-primary);
    padding: 6rem 0;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image svg {
    max-width: 100%;
    height: auto;
}

.hero h1 {
    color: var(--dark-text);
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    -webkit-text-fill-color: transparent; /* Keep this for the gradient */
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero .btn {
    animation: fadeInUp 0.8s ease 0.4s both;
    font-size: 1.125rem;
}

.hero .mt-3 {
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-pricing-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--surface);
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.8s ease 0.5s both;
    text-decoration: none;
    transition: var(--transition-base);
}

.hero-pricing-tag:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    color: var(--text-primary);
}

.hero-pricing-tag i {
    color: var(--primary-color);
    width: 20px;
    height: 20px;
}

.hero-pricing-tag strong {
    color: var(--dark-text);
    font-weight: 700;
}

.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

.wave-divider .shape-fill {
    fill: var(--surface);
}

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

/* ===== Features Section ===== */
.features {
    padding: 6rem 0;
    background: var(--background);
}

.features h2 {
    margin-bottom: 1rem;
}

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

.feature-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    transition: var(--transition-base);
}

.feature-icon svg {
    width: 56px;
    height: 56px;
    stroke-width: 1.5;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
    color: var(--primary-dark);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== Stats Section ===== */
.stats-section {
    padding: 5rem 0;
    background-color: var(--background);
    color: var(--text-primary);
    text-align: center;
}

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

.stats-section .stats-grid .stat-item {
    transition: transform 0.2s ease-in-out;
}

.stats-section .stats-grid .stat-item:hover {
    transform: scale(1.05);
}

.stats-grid .stat-item:nth-child(1) { animation-delay: 0.1s; }
.stats-grid .stat-item:nth-child(2) { animation-delay: 0.2s; }
.stats-grid .stat-item:nth-child(3) { animation-delay: 0.3s; }
.stats-grid .stat-item:nth-child(4) { animation-delay: 0.4s; }

.stats-grid .stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 0.5rem;
    padding-bottom: 20px; /* Increased padding to make space for the line */
    border-bottom: none; /* Remove the old border */
    display: inline-block;
    position: relative; /* Required for positioning the pseudo-element */
}

.stats-grid .stat-number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--primary-gradient); /* Changed from background-color */
    border-radius: 8px; /* This will round all corners of the line */
}

.stats-grid .stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    padding: 6rem 0;
    background: var(--surface);
}

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

.testimonial-card {
    background: var(--background);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.1;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.testimonial-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--dark-text);
}

.testimonial-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===== Use Cases Section ===== */
.use-cases-section {
    padding: 6rem 0;
    background-color: var(--background);
}

.use-case-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    background-color: var(--surface);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.tab-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

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

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.use-case-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.use-case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.use-case-card i {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.use-case-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark-text);
}

.use-case-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===== How It Works Section ===== */
.how-it-works-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}

.how-it-works-timeline::before {
    content: '';
    position: absolute;
    left: 42px; /* (88px / 2) - 2px for border */
    top: 20px;
    bottom: 20px;
    width: 4px;
    background-color: var(--border-light);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.timeline-item:not(:last-child) {
    margin-bottom: 4rem;
}

.timeline-step {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--background);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    box-shadow: var(--shadow-md);
    border: 4px solid var(--border-light);
    z-index: 1;
    transition: var(--transition-base);
}

.timeline-item:hover .timeline-step {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.timeline-content {
    padding-top: 1.5rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ===== Pricing Section ===== */
.pricing-section {
    padding: 6rem 0;
    background: var(--surface);
}

.pricing-calculator-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.pricing-calculator {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-sliders {
    margin-bottom: 2rem;
}

.slider-group {
    margin-bottom: 2.5rem;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

.slider-label span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--border-color);
    outline: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    transition: transform 0.2s;
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    transition: transform 0.2s;
}

.slider:active::-webkit-slider-thumb,
.slider:active::-moz-range-thumb {
    transform: scale(1.2);
}

.pricing-cost {
    text-align: center;
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
}

.pricing-cost p {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cost-display {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 2rem;
    color: var(--dark-text);
}

.cost-currency {
    font-size: 2rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

#monthly-cost {
    font-size: 4.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    line-height: 1;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-features {
    background: var(--surface);
    padding: 3rem;
    border-left: 1px solid var(--border-color);
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.pricing-features i {
    color: var(--accent-color);
    width: 24px;
    height: 24px;
}

.pricing-base-rate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    padding: 1rem;
    margin: 2rem auto 0;
    max-width: 500px;
    background-color: var(--surface);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pricing-base-rate i {
    width: 18px;
    height: 18px;
    color: var(--info-color);
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .pricing-calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .pricing-features {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding: 2.5rem;
    }

    .pricing-calculator {
        padding: 2.5rem;
    }
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-text);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h4 {
    color: white;
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}

.footer a {
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.75rem;
    transition: var(--transition-fast);
    font-weight: 500;
}

.footer a:hover {
    color: white;
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Dashboard Styles ===== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-light);
}

.stats-bar {
    display: flex;
    flex-wrap: nowrap;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: 2.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.stats-bar::-webkit-scrollbar {
    height: 8px;
}

.stats-bar::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.stats-bar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.stats-bar::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.stats-bar .stat-item {
    flex: 0 0 auto;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    transition: var(--transition-base);
}

.stats-bar .stat-item:not(:last-child) {
    border-right: 1px solid var(--border-light);
}

.stats-bar .stat-item:hover {
    background-color: var(--surface);
    transform: scale(1.05);
}

.stat-icon {
    flex-shrink: 0;
    background-color: rgba(var(--primary-rgb, 0, 122, 255), 0.1);
    color: var(--primary-color);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    width: 28px;
    height: 28px;
}

.stat-content {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-text);
    font-family: var(--font-display);
    line-height: 1;
}

.stats-bar .stat-label {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive adjustments for dashboard */
@media (max-width: 768px) {
    .stats-bar {
        flex-direction: column;
    }
    .stats-bar .stat-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    .stats-bar .stat-item {
        padding: 1.25rem 1.5rem;
    }
    .stat-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .stat-value {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-bar .stat-item {
        gap: 1rem;
        padding: 1rem;
    }
    .stat-icon {
        width: 48px;
        height: 48px;
    }
    .stat-icon i {
        width: 24px;
        height: 24px;
    }
    .stat-value {
        font-size: 1.75rem;
    }
    .stat-label {
        font-size: 0.85rem;
    }
}

/* ===== Blog Styles ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.blog-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-base);
    border: 1px solid var(--border-light);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-content {
    padding: 2rem;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-title a {
    color: var(--dark-text);
    text-decoration: none;
    transition: var(--transition-fast);
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.blog-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.blog-post {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.blog-post-header {
    margin-bottom: 3rem;
}

.blog-post-title {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-post-content {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-primary);
}

.blog-post-content img {
    margin: 2.5rem auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* ===== Toggle Switch ===== */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    margin-right: 0.75rem;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--success-gradient);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.status-text {
    vertical-align: middle;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===== Keyword Tags ===== */
.keyword-tag {
    display: inline-flex;
    align-items: center;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 0.875rem;
    margin: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.keyword-tag:hover {
    border-color: var(--primary-color);
    background: white;
}

.keyword-tag-edit {
    margin-left: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.keyword-tag-edit:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.keyword-tag-remove {
    margin-left: 0.625rem;
    cursor: pointer;
    color: var(--danger-color);
    font-weight: bold;
    transition: var(--transition-fast);
    font-size: 1.125rem;
}

.keyword-tag-remove:hover {
    color: #d63450;
    transform: scale(1.2);
}

/* ===== Checkbox Group ===== */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
    font-size: 0.95rem;
}

.checkbox-label:hover {
    background: white;
    border-color: var(--primary-light);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked {
    accent-color: var(--primary-color);
}

.checkbox-label:has(input:checked) {
    background: rgba(0, 122, 255, 0.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}

.checkbox-label span {
    flex: 1;
}

/* ===== Select2 Styling ===== */
.select2-container--default .select2-selection--single {
    background-color: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    height: auto;
    padding: 0.875rem 1rem;
    transition: var(--transition-base);
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary);
    line-height: 1.5;
    padding: 0;
    font-size: 1rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 1rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--text-muted) transparent transparent transparent;
    border-width: 6px 5px 0 5px;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--text-muted) transparent;
    border-width: 0 5px 6px 5px;
}

.select2-dropdown {
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
}

.select2-container--default .select2-results__option {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color);
    color: white;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: rgba(0, 122, 255, 0.1);
    color: var(--text-primary);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* ===== Schedule Item ===== */
.schedule-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.schedule-item select,
.schedule-item input {
    flex: 1;
}

.schedule-item button {
    flex-shrink: 0;
}

/* Mobile schedule layout - selects on same row, remove button below */
@media (max-width: 768px) {
    .schedule-item {
        flex-wrap: wrap;
    }
    
    .schedule-item select {
        flex: 0 0 calc(50% - 0.375rem);
    }
    
    .schedule-item button {
        flex: 0 0 100%;
        margin-top: 0.5rem;
    }
}

/* ===== Search Volume Analysis Layout ===== */
.search-volume-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-volume-wrapper .form-help {
    flex: 1;
    margin: 0;
}

.search-volume-wrapper button {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .search-volume-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-volume-wrapper button {
        width: 100%;
    }
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state h3 {
    color: var(--dark-text);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.empty-state p {
    font-size: 1.05rem;
}

/* ===== Trust Badges ===== */
.trust-section {
    padding: 4rem 0;
    background: var(--surface);
    text-align: center;
}

.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-badge {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.9;
}

/* ===== Utility Classes ===== */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        text-align: center;
    }
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
    
    .hero {
        padding: 5rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .features,
    .testimonials-section {
        padding: 4rem 0;
    }
    
    .stats-section {
        padding: 4rem 0;
    }
    
.dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.dashboard-grid {
    gap: 1.5rem;
}
    
    .col-50 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 2rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .nav .btn {
        width: auto;
    }
    
    .stats-grid .stat-number {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
.dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
}
    
.stat-value {
    font-size: 2rem;
}
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Print Styles ===== */
@media print {
    .header,
    .footer,
    .btn,
    .nav {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: black;
    }
}

/* ===== Accessibility ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== Animation Styles ===== */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.fade-in-up {
    transform: translateY(40px);
}

.animate-on-scroll.fade-in-left {
    transform: translateX(-40px);
}

.animate-on-scroll.fade-in-right {
    transform: translateX(40px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.timeline-item.animate-on-scroll {
    transition-delay: 0s; /* Default delay */
}

/* ===== Tooltips ===== */
.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: default;
    margin-left: 0.375rem;
    transition: var(--transition-fast);
    vertical-align: middle;
}

.tooltip-trigger:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.tooltip {
    position: absolute;
    background-color: var(--dark-text);
    color: white;
    padding: 0.875rem 1.125rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    line-height: 1.5;
    max-width: 280px;
    z-index: var(--z-tooltip);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.tooltip.show {
    opacity: 1;
    pointer-events: auto;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-bottom-color: var(--dark-text);
}

/* ===== Admin Tabs ===== */
.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.tab-link {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    transition: var(--transition-base);
    margin-bottom: -2px; /* Align with the container's border */
}

.tab-link:hover {
    color: var(--text-primary);
}

.tab-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content .tab-pane {
    /* The logic in admin.php handles showing/hiding, so no need for display: none here */
}

/* ===== Report Styles ===== */
.report-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
}
.report-header {
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
    text-align: center;
}
.report-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.report-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 0;
}
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.summary-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    text-align: center;
}
.summary-card .value {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--primary-color);
    line-height: 1;
}
.summary-card .label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.5rem;
}
.keyword-section .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.article-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-light);
}
.article-item:last-child {
    border-bottom: none;
}
.article-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2rem;
}
.article-title a {
    color: var(--primary-color);
}
.article-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.sentiment {
    font-weight: 600;
}
.sentiment.positive { color: var(--success-color); }
.sentiment.negative { color: var(--danger-color); }
.sentiment.neutral { color: var(--text-muted); }
