/**
 * App Styles
 * Landing page and dashboard for 1MinuteFunnel App
 */

/* CSS Variables - Unified Typography System */
:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-text: #111111;
    --color-text-body: #0C2A1F;
    --color-text-light: #404040;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

html, body {
    height: 100%;
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-body);
    line-height: 1.5;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Loading Spinner */
.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

.loading-spinner.small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

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

/* Loading State for Grids */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: var(--color-text-light);
}

.loading-state p {
    margin-top: 12px;
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: var(--color-error);
    text-align: center;
}

.error-state svg {
    margin-bottom: 8px;
}

.error-state .btn {
    margin-top: 12px;
}

/* Landing Page */
.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.landing-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.logo span {
    color: var(--color-text);
}

.header-nav {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    min-height: 48px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .btn {
        min-height: 52px;
        font-size: 18px;
    }
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background-color: #e2e8f0;
}

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

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

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

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

.btn-danger {
    background-color: #dc2626;
    color: white;
    border: none;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: #fff !important;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #5568d3 0%, #663a8b 100%) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 16px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 5vw, 48px);
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    line-height: 1.25;
    word-wrap: break-word;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(14px, 3vw, 20px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-video {
    max-width: 100%;
    width: 100%;
    margin: 24px auto;
    box-sizing: border-box;
}

.hero-video .voomly-embed {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 10px;
    overflow: hidden;
}

.hero-video .voomly-embed iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn {
    min-width: 200px;
}

.btn-cta {
    background: white;
    color: var(--color-primary);
    font-size: 18px;
    padding: 16px 32px;
}

.btn-cta:hover {
    background: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Features Section */
.features-section {
    padding: 80px 24px;
    background: var(--color-surface);
}

.section-title {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 28px; /* Mobile */
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-text);
    line-height: 1.25;
}

.section-subtitle {
    font-family: var(--font-body);
    text-align: center;
    font-size: 16px; /* Mobile */
    font-weight: 400;
    color: var(--color-text-light);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 36px; /* Desktop */
    }

    .section-subtitle {
        font-size: 18px; /* Desktop */
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--color-bg);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #000;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 18px; /* Mobile */
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
    line-height: 1.3;
}

.feature-description {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-light);
    line-height: 1.5;
}

@media (min-width: 768px) {
    .feature-title {
        font-size: 20px; /* Desktop */
    }
}

/* Pricing Section */
.pricing-section {
    padding: 80px 24px;
    background: var(--color-bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
    align-items: start;
}

.pricing-card {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

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

.pricing-card.featured {
    border-color: var(--color-primary);
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.pricing-badge-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.pricing-badge-starter,
.pricing-badge-pro {
    top: -24px;
    padding: 8px 24px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    text-align: center;
    box-sizing: border-box;
    left: 50%;
    transform: translateX(-50%);
}

.pricing-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.pricing-price span {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text-light);
}

.pricing-savings {
    margin: 8px 0 16px 0;
    text-align: center;
    min-height: 64px;
}

.pricing-description {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 24px;
    min-height: 65px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 15px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li::before {
    content: "✓";
    color: var(--color-success);
    font-weight: 700;
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto;
}

/* FAQ Section */
.faq-section {
    padding: 80px 24px;
    background: var(--color-bg-alt);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
}

.faq-question {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.faq-answer {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.landing-footer {
    background: var(--color-text);
    color: white;
    padding: 48px 24px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

/* Dashboard Styles */
.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-email {
    font-size: 14px;
    color: var(--color-text-light);
}

.dashboard-main {
    flex: 1;
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-text);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
}

.stat-value.warning {
    color: var(--color-warning);
}

.stat-value.success {
    color: var(--color-success);
}

/* Funnel Cards */
.funnels-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.section-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

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

.btn-icon.spinning svg {
    animation: spin 1s linear infinite;
}

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

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

.funnel-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s;
}

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

.funnel-card.paused {
    border-color: #f87171;
    border-width: 2px;
}

.funnel-card.paused .funnel-card-header {
    position: relative;
}

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

.funnel-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.funnel-card-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.funnel-card-status.active {
    background-color: #dcfce7;
    color: #166534;
}

.funnel-card-status.paused {
    background-color: #fee2e2;
    color: #dc2626;
    font-weight: 700;
}

.funnel-card-status.draft {
    background-color: #fef3c7;
    color: #b45309;
}

.funnel-card.draft {
    border: 2px dashed var(--color-border);
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
}

.funnel-card.draft:hover {
    border-color: #f59e0b;
}

.funnel-card-draft-info {
    padding: 12px 0;
    color: var(--color-text-light);
    font-size: 14px;
}

.funnel-card-draft-info p {
    margin: 0 0 4px 0;
}

.funnel-card-draft-info .draft-progress {
    font-weight: 600;
    color: #b45309;
}

/* Upgrade banner for inactive funnels */
.funnel-upgrade-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.funnel-upgrade-banner-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.funnel-upgrade-banner-text {
    flex: 1;
    font-size: 12px;
    color: #92400e;
    line-height: 1.4;
}

.funnel-upgrade-banner-text strong {
    display: block;
    font-size: 13px;
    color: #78350f;
    margin-bottom: 2px;
}

.funnel-upgrade-banner .btn {
    flex-shrink: 0;
    font-size: 11px;
    padding: 6px 12px;
}

.funnel-card-meta {
    margin-bottom: 12px;
}

.funnel-card-url {
    font-size: 13px;
    color: var(--color-text-light);
}

/* Funnel URL section with copy and domain options */
.funnel-card-urls {
    margin-bottom: 12px;
}

.funnel-url-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.funnel-url-icon {
    font-size: 12px;
    width: 16px;
    flex-shrink: 0;
}

.funnel-url-link {
    font-size: 13px;
    color: var(--color-primary);
    text-decoration: none;
    word-break: break-all;
}

.funnel-url-link:hover {
    text-decoration: underline;
}

.funnel-url-copy {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-light);
    cursor: pointer;
    flex-shrink: 0;
}

.funnel-url-copy:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.funnel-url-secondary {
    opacity: 0.7;
}

.funnel-url-fallback {
    font-size: 12px;
    color: var(--color-text-light);
}

.funnel-add-domain-btn {
    font-size: 12px;
    padding: 4px 10px;
    background: transparent;
    border: 1px dashed var(--color-border);
    border-radius: 4px;
    color: var(--color-primary);
    cursor: pointer;
}

.funnel-add-domain-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--color-primary);
}

.funnel-url-delete {
    background: transparent;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 2px 6px;
    margin-left: auto;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.funnel-url-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
}

.funnel-domain-upgrade {
    font-size: 11px;
    color: var(--color-text-light);
    font-style: italic;
}

.funnel-card-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.funnel-card-stats .stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.funnel-card-stats .stat-label {
    font-size: 11px;
    color: var(--color-text-light);
    text-transform: uppercase;
}

.funnel-card-stats .stat-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.funnel-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.funnel-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.funnel-meta {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.funnel-actions {
    display: flex;
    gap: 8px;
}

/* Leads Table */
.leads-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
}

.leads-table {
    width: 100%;
    border-collapse: collapse;
}

.leads-table th,
.leads-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.leads-table th {
    font-weight: 600;
    color: var(--color-text-light);
    font-size: 14px;
}

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

/* Checkbox column */
.leads-table .checkbox-col {
    width: 40px;
    text-align: center;
    padding: 12px 8px;
}

.leads-table .checkbox-col input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.leads-table tbody tr.selected {
    background: rgba(var(--color-primary-rgb, 79, 70, 229), 0.08);
}

/* Bulk delete controls */
.bulk-delete-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bulk-delete-controls.hidden {
    display: none;
}

.bulk-delete-controls .selected-count {
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
}

.bulk-delete-controls .btn-danger {
    background: var(--color-danger, #dc2626);
    color: white;
    border: none;
}

.bulk-delete-controls .btn-danger:hover {
    background: #b91c1c;
}

.lead-locked {
    opacity: 0.5;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.03) 10px,
        rgba(0, 0, 0, 0.03) 20px
    );
}

.unlock-cta {
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* Lead Status Badges */
.lead-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.lead-status.lead {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.lead-status.test {
    background: rgba(234, 179, 8, 0.1);
    color: #ca8a04;
}

.lead-status.inprogress {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.locked-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

/* ============================================
   Leads Toolbar - Search & Filters
   ============================================ */

.leads-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    align-items: center;
}

/* Search Input */
.leads-search {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.leads-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    pointer-events: none;
}

.leads-search-input {
    width: 100%;
    padding: 10px 36px 10px 40px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--color-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.leads-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 79, 43, 0.1);
}

.leads-search-input::placeholder {
    color: var(--color-text-light);
}

.search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    background: var(--color-border);
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    color: var(--color-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.search-clear:hover {
    background: var(--color-text-light);
    color: white;
}

.search-clear.hidden {
    display: none;
}

/* Date Filters */
.leads-date-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.date-filter-btn {
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-surface);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.date-filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

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

/* Results Info Bar */
.leads-results-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--color-text-light);
}

.leads-hidden-notice {
    color: var(--color-warning, #d97706);
}

.leads-hidden-notice.hidden {
    display: none;
}

.leads-hidden-notice .upgrade-link {
    color: var(--color-primary);
    font-weight: 500;
}

/* ============================================
   Pagination
   ============================================ */

.leads-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid var(--color-border);
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.pagination-info {
    font-size: 13px;
    color: var(--color-text-light);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    gap: 4px;
}

.pagination-page {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-page:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination-page.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.pagination-ellipsis {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
}

.pagination-size {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-light);
}

.page-size-select {
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-surface);
    font-size: 13px;
    color: var(--color-text);
    cursor: pointer;
}

/* ============================================
   Export Dropdown
   ============================================ */

.export-dropdown {
    position: relative;
}

.export-dropdown .btn {
    display: flex;
    align-items: center;
    gap: 6px;
}

.export-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 200px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    overflow: hidden;
}

.export-dropdown-menu.hidden {
    display: none;
}

.export-option {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    font-size: 14px;
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.2s;
}

.export-option:hover {
    background: var(--color-bg);
}

.export-option:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
}

/* ============================================
   Lead Filter Tabs
   ============================================ */

.leads-filter-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0;
}

.filter-tab {
    padding: 10px 16px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

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

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

.filter-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px 2px 0 0;
}

.filter-tab .tab-count {
    margin-left: 6px;
    padding: 2px 8px;
    background: var(--color-bg);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.filter-tab.active .tab-count {
    background: rgba(13, 79, 43, 0.1);
    color: var(--color-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .leads-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .leads-search {
        max-width: none;
    }

    .leads-date-filters {
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .leads-pagination {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .leads-filter-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .filter-tab {
        white-space: nowrap;
    }
}

/* Settings Page */
.settings-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.settings-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text);
}

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

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

.settings-label {
    font-size: 15px;
    color: var(--color-text);
}

.settings-value {
    font-size: 15px;
    color: var(--color-text-light);
    font-family: var(--font-mono);
}

/* Domains List Styles */
.domains-list-container {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.domains-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.domains-list-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.domains-list {
    min-height: 100px;
}

.domains-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    color: var(--color-text-light);
}

.domains-empty {
    text-align: center;
    padding: 32px;
    color: var(--color-text-light);
}

.domain-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--color-bg);
    border-radius: 8px;
    margin-bottom: 8px;
}

.domain-item:last-child {
    margin-bottom: 0;
}

.domain-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.domain-name {
    font-weight: 500;
    font-family: var(--font-mono);
    font-size: 14px;
}

.domain-type-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--color-border);
    color: var(--color-text-light);
}

.domain-type-badge.funnel {
    background: #dbeafe;
    color: #1d4ed8;
}

.domain-type-badge.embed {
    background: #fef3c7;
    color: #92400e;
}

.domain-type-badge.both {
    background: #d1fae5;
    color: #065f46;
}

.domain-funnel {
    font-size: 12px;
    color: var(--color-text-light);
}

.domain-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.domain-verified {
    color: #10b981;
    font-size: 12px;
    font-weight: 500;
}

.domain-pending {
    color: #f59e0b;
    font-size: 12px;
    font-weight: 500;
}

.domains-info-box {
    background: var(--color-bg);
    border-radius: 8px;
    padding: 16px;
}

.domains-info-box h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.domains-info-box ul {
    margin: 0;
    padding-left: 20px;
}

.domains-info-box li {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 6px;
}

.domains-info-box li:last-child {
    margin-bottom: 0;
}

.domains-plan-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--color-text-light);
    font-style: italic;
}

/* Upgrade CTA Box */
.upgrade-cta-box {
    background: linear-gradient(135deg, rgba(13, 79, 43, 0.05), rgba(26, 172, 184, 0.05));
    border: 1px solid rgba(13, 79, 43, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.upgrade-cta-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.upgrade-cta-icon {
    font-size: 32px;
}

.upgrade-cta-content h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

.upgrade-cta-content p {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-light);
}

@media (max-width: 640px) {
    .upgrade-cta-box {
        flex-direction: column;
        text-align: center;
    }

    .upgrade-cta-content {
        flex-direction: column;
        align-items: center;
    }
}

/* Team Members List */
.team-members-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.team-member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.team-member-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0D4F2B, #1AACB8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.team-member-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.team-member-email {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.team-member-role {
    font-size: 12px;
    color: var(--color-text-light);
}

.team-member-role.owner {
    color: var(--color-primary);
    font-weight: 500;
}

.team-member-actions .btn-icon {
    padding: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    border-radius: 4px;
    transition: all 0.2s;
}

.team-member-actions .btn-icon:hover {
    background: #fee2e2;
    color: #dc2626;
}

.team-member-loading {
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* Pending Invites */
.pending-invites-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.pending-invite-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fef9c3;
    border: 1px solid #fde047;
    border-radius: 8px;
}

.pending-invite-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pending-invite-email {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.pending-invite-status {
    font-size: 12px;
    color: #a16207;
}

.pending-invite-actions {
    display: flex;
    gap: 8px;
}

.pending-invite-actions .btn-small {
    padding: 4px 10px;
    font-size: 12px;
}

/* Invite Form */
.invite-input-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.invite-input-row .form-input {
    flex: 1;
}

.invite-input-row .btn {
    white-space: nowrap;
}

/* Invite Link Display */
.invite-link-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.invite-link-row .form-input {
    flex: 1;
    font-family: monospace;
    font-size: 13px;
}

@media (max-width: 480px) {
    .team-member-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .team-member-actions {
        align-self: flex-end;
    }

    .invite-input-row {
        flex-direction: column;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

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

.form-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text-body);
    transition: all 0.2s;
    line-height: 1.4;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Toggle Row - for preferences with toggle switches */
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.toggle-content {
    flex: 1;
}

.toggle-content label {
    font-weight: 500;
    color: var(--color-text);
    display: block;
    margin-bottom: 4px;
}

.toggle-content .form-hint {
    color: var(--color-text-light);
    font-size: 13px;
    margin: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.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: #cbd5e1;
    transition: 0.3s;
    border-radius: 26px;
}

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

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

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

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Loading State */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.modal-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.modal-content {
    background: var(--color-surface);
    border-radius: 12px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Modal pricing grid - 3 columns */
.modal .pricing-grid {
    max-width: 100%;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* Responsive */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .modal-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 32px 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-video {
        margin: 16px auto !important;
        max-width: 100% !important;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .features-section,
    .pricing-section,
    .faq-section {
        padding: 48px 16px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .dashboard-main {
        padding: 16px;
    }

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

    .header-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        padding: 16px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        z-index: 99;
        gap: 8px;
    }

    .header-nav.active .btn {
        width: 100%;
        justify-content: center;
    }

    .modal-overlay {
        padding: 8px;
        align-items: flex-start;
    }

    .modal-content {
        max-height: none;
        margin: 16px 0;
    }
}

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

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

    .pricing-card {
        padding: 24px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

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

/* ============================================
   Event Notification Banner (Collapsible)
   ============================================ */

.event-notification {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.event-notification.above-cookie-banner {
    bottom: 80px;
}

.event-notification.visible {
    opacity: 1;
    transform: translateY(0);
}

.event-notification.hidden {
    display: none;
}

/* Collapsed Badge */
.event-notification-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 320px;
    padding: 10px 14px;
    background: var(--color-surface);
    border: 2px solid transparent;
    border-radius: 12px;
    background-image: linear-gradient(var(--color-surface), var(--color-surface)), linear-gradient(135deg, #f59e0b 0%, #ff6b35 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}


.event-notification-badge:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.event-notification.expanded .event-notification-badge {
    display: none;
}

.badge-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0D4F2B 0%, #1AACB8 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-notification.happening-now .badge-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.badge-icon svg {
    width: 18px;
    height: 18px;
    color: white;
}

.badge-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.badge-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.badge-time {
    font-size: 12px;
    color: var(--color-text-light);
}

.badge-expand {
    color: var(--color-text-light);
    margin-left: 4px;
}

.badge-expand svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.badge-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    margin-left: 4px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.15s;
}

.badge-close:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.badge-close svg {
    width: 14px;
    height: 14px;
}

/* Expanded Panel */
.event-notification-expanded {
    display: none;
    width: 320px;
    background: var(--color-surface);
    border: 2px solid transparent;
    border-radius: 12px;
    background-image: linear-gradient(var(--color-surface), var(--color-surface)), linear-gradient(135deg, #f59e0b 0%, #ff6b35 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}


.event-notification.expanded .event-notification-expanded {
    display: block;
    animation: slideUp 0.25s ease-out;
}

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

.expanded-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 14px 10px;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(135deg, rgba(13, 79, 43, 0.05) 0%, rgba(26, 172, 184, 0.05) 100%);
}

.event-notification.happening-now .expanded-header {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(239, 68, 68, 0.08) 100%);
}

.expanded-title h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 3px 0;
    line-height: 1.3;
}

.expanded-title p {
    font-size: 12px;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.4;
}

.expanded-minimize {
    width: 24px;
    height: 24px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: all 0.15s;
    flex-shrink: 0;
    margin-left: 10px;
}

.expanded-minimize:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

.expanded-minimize svg {
    width: 14px;
    height: 14px;
}

/* Time display */
.expanded-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--color-text);
    background: var(--color-bg);
}

.expanded-time select {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 11px;
    color: var(--color-text-light);
    cursor: pointer;
    max-width: 130px;
}

/* Compact Agenda */
.event-notification-agenda-compact {
    padding: 10px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.event-notification-agenda-compact .agenda-item {
    font-size: 11px;
    color: var(--color-text-light);
    background: var(--color-bg);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Actions */
.expanded-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
}

.event-notification-join-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #0D4F2B 0%, #1AACB8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-notification-join-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 79, 43, 0.3);
}

.event-notification.happening-now .event-notification-join-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.event-notification-join-btn svg {
    width: 16px;
    height: 16px;
}

/* Compact Countdown */
.event-notification-countdown-compact {
    flex: 1;
    text-align: center;
}

.event-notification-countdown-compact .countdown-label {
    font-size: 10px;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.event-notification-countdown-compact .countdown-boxes {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.event-notification-countdown-compact .countdown-unit {
    font-size: 12px;
    color: var(--color-text);
}

.event-notification-countdown-compact .countdown-unit b {
    font-size: 16px;
    font-weight: 700;
    color: #0D4F2B;
}

/* Calendar */
.event-notification-calendar {
    position: relative;
}

.calendar-btn {
    width: 36px;
    height: 36px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

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

.calendar-btn svg {
    width: 16px;
    height: 16px;
    color: var(--color-text-light);
}

.calendar-dropdown {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: flex;
    gap: 4px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.15s;
}

.calendar-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.calendar-dropdown a,
.calendar-dropdown button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--color-text);
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: var(--color-bg);
    border-radius: 6px;
    transition: all 0.15s;
}

.calendar-dropdown a:hover,
.calendar-dropdown button:hover {
    background: var(--color-border);
    transform: scale(1.05);
}

.calendar-dropdown svg {
    width: 20px;
    height: 20px;
}

.calendar-dropdown [data-tooltip] {
    position: relative;
}

.calendar-dropdown [data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text);
    color: var(--color-surface);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
    pointer-events: none;
}

.calendar-dropdown [data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Mobile */
@media (max-width: 480px) {
    .event-notification {
        left: 50%;
        right: auto;
        bottom: 8px;
        transform: translateX(-50%) translateY(20px);
        width: 85%;
        max-width: 320px;
    }

    .event-notification.visible {
        transform: translateX(-50%) translateY(0);
    }

    .event-notification.above-cookie-banner {
        bottom: 80px;
    }

    .event-notification-expanded {
        width: 100%;
    }

    .event-notification-badge {
        width: 100%;
        padding: 10px 12px;
    }

    .badge-content {
        display: flex;
    }

    .badge-time {
        font-size: 11px;
    }

    .badge-expand {
        display: none;
    }

    .badge-close {
        display: flex;
        flex-shrink: 0;
    }
}

/* ============================================
   SANDBOX / PROMPT LAB STYLES
   ============================================ */

.sandbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.sandbox-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
}

.sandbox-status {
    background: #fef3c7;
    color: #92400e;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.sandbox-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.sandbox-panel {
    background: var(--color-surface);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-height: 500px;
    overflow: hidden;
}

.panel-header {
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.panel-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.panel-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.panel-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Prompt Editor */
.prompt-editor {
    width: 100%;
    flex: 1;
    min-height: 300px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    resize: none;
    background: #fafafa;
}

.prompt-editor:focus {
    outline: none;
    border-color: var(--color-primary);
}

.prompt-editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    gap: 12px;
}

#sandbox-prompt-status {
    font-size: 12px;
    color: var(--color-text-light);
}

/* Chat Interface */
.sandbox-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    min-height: 300px;
    max-height: 350px;
}

.sandbox-welcome-message {
    text-align: center;
    color: var(--color-text-light);
    padding: 40px 20px;
    font-style: italic;
}

.chat-message {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.chat-message.user-message {
    background: #e0f2fe;
    margin-left: 20px;
}

.chat-message.assistant-message {
    background: white;
    margin-right: 20px;
    border: 1px solid var(--color-border);
}

.chat-message.system-message {
    background: #fef3c7;
    text-align: center;
    font-style: italic;
}

.chat-message.success-message {
    background: #d1fae5;
    color: #065f46;
}

.chat-message.error-message {
    background: #fee2e2;
    color: #991b1b;
}

.sandbox-chat-input-container {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.sandbox-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
}

.sandbox-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.sandbox-input:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
}

.sandbox-funnel-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

/* Preview Container */
.preview-container {
    flex: 1;
    min-height: 400px;
    background: linear-gradient(135deg, #106535 0%, #1AACB8 100%);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    text-align: center;
    color: rgba(255,255,255,0.8);
    padding: 40px 20px;
    font-style: italic;
}

.preview-iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    background: white;
    border-radius: 8px;
}

/* Sandbox Funnels Section */
.sandbox-funnels-section {
    background: var(--color-surface);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.sandbox-funnels-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.sandbox-funnels-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.sandbox-funnels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.sandbox-funnels-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--color-text-light);
    font-style: italic;
}

.sandbox-funnel-card {
    background: #f8f9fa;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 16px;
}

.sandbox-funnel-title {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.sandbox-funnel-meta {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.sandbox-funnel-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* Small buttons */
.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    cursor: pointer;
}

.btn-danger:hover {
    background: #dc2626;
}

.sandbox-select {
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 12px;
    background: white;
}

/* Responsive */
@media (max-width: 1200px) {
    .sandbox-layout {
        grid-template-columns: 1fr 1fr;
    }

    .sandbox-panel-preview {
        grid-column: 1 / -1;
    }
}

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

    .sandbox-panel {
        min-height: 400px;
    }

    .sandbox-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

