/* Newsletter Interface - Apple Style */

/* Basic Reset for Newsletter Pages */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

:root {
    /* Apple-inspired color palette */
    --apple-blue: #007AFF;
    --apple-gray: #8E8E93;
    --apple-light-gray: #F2F2F7;
    --apple-dark-gray: #1C1C1E;
    --apple-green: #34C759;
    --apple-red: #FF3B30;
    --apple-orange: #FF9500;

    /* Typography */
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Borders & Shadows */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Base Layout */
.newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    background: #fff;
    min-height: 100vh;
    font-family: var(--font-system);
}

/* Header */
.newsletter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--apple-light-gray);
}

/* User Profile Section */
.user-profile-section {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background: var(--apple-light-gray);
    border-radius: 20px;
    margin-left: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
}

.user-profile-section:hover {
    background: rgba(0, 0, 0, 0.05);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--apple-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name {
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    color: var(--apple-dark-gray);
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 11px;
    color: var(--apple-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#sign-out-btn {
    font-size: 11px;
    padding: 4px 8px;
    margin-left: 4px;
    height: 24px;
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 768px) {
    .user-profile-section {
        margin-left: 0;
        margin-top: var(--spacing-sm);
    }

    .user-info {
        display: none;
        /* Hide on mobile to save space */
    }
}

.newsletter-title {
    font-size: 28px;
    font-weight: var(--font-weight-semibold);
    color: var(--apple-dark-gray);
    margin: 0;
}

.newsletter-nav {
    display: flex;
    gap: var(--spacing-sm);
}

/* Buttons - Apple Style */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 10px 16px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-system);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    user-select: none;
    height: 40px;
    /* Ensure consistent height for all buttons */
    box-sizing: border-box;
}

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

.btn-primary:hover {
    background: #0056CC;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--apple-light-gray);
    color: var(--apple-dark-gray);
}

.btn-secondary:hover {
    background: #E5E5EA;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--apple-green);
    color: white;
}

.btn-success:hover {
    background: #28A745;
    transform: translateY(-1px);
}

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

.btn-danger:hover {
    background: #DC3545;
    transform: translateY(-1px);
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--apple-light-gray);
    background: rgba(0, 0, 0, 0.01);
}

.card-title {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--apple-dark-gray);
    margin: 0;
}

.card-body {
    padding: var(--spacing-lg);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--apple-dark-gray);
    margin-bottom: var(--spacing-sm);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D1D1D6;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-system);
    font-size: 16px;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* Editor Layout */
.editor-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.editor-main {
    min-height: 600px;
}

.editor-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Quill Editor Styling */
.ql-container {
    border: 1px solid #D1D1D6 !important;
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm) !important;
    font-family: var(--font-system) !important;
    font-size: 16px !important;
    min-height: 400px;
}

.ql-toolbar {
    border: 1px solid #D1D1D6 !important;
    border-bottom: none !important;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0 !important;
    background: var(--apple-light-gray) !important;
    padding: var(--spacing-sm) var(--spacing-md) !important;
}

.ql-toolbar .ql-formats {
    margin-right: var(--spacing-md) !important;
}

.ql-toolbar button {
    border-radius: var(--spacing-xs) !important;
    transition: background-color 0.2s ease !important;
}

.ql-toolbar button:hover {
    background: rgba(0, 122, 255, 0.1) !important;
}

.ql-toolbar button.ql-active {
    background: var(--apple-blue) !important;
    color: white !important;
}

.ql-editor {
    padding: var(--spacing-lg) !important;
    line-height: 1.6 !important;
}

.ql-editor h1,
.ql-editor h2,
.ql-editor h3 {
    font-weight: var(--font-weight-semibold) !important;
    color: var(--apple-dark-gray) !important;
}

/* Status Indicators */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-draft {
    background: rgba(142, 142, 147, 0.1);
    color: var(--apple-gray);
}

.status-published {
    background: rgba(52, 199, 89, 0.1);
    color: var(--apple-green);
}

.status-scheduled {
    background: rgba(255, 149, 0, 0.1);
    color: var(--apple-orange);
}

/* Subscriber Status Styles */
.status-active {
    background: rgba(52, 199, 89, 0.1);
    color: var(--apple-green);
}

.status-unsubscribed {
    background: rgba(255, 59, 48, 0.1);
    color: var(--apple-red);
}

.status-bounced {
    background: rgba(255, 149, 0, 0.1);
    color: var(--apple-orange);
}

/* Auto-save Indicator */
.autosave-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 14px;
    color: var(--apple-gray);
}

.autosave-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--apple-green);
    animation: pulse 2s infinite;
}

.autosave-indicator.saving {
    background: var(--apple-orange);
}

.autosave-indicator.error {
    background: var(--apple-red);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
    min-width: fit-content;
}

.loading .spinner {
    margin-left: 8px;
    flex-shrink: 0;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--apple-light-gray);
    border-radius: 50%;
    border-top-color: var(--apple-blue);
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .newsletter-container {
        padding: var(--spacing-md);
    }

    .editor-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .newsletter-header {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
    }

    .newsletter-nav {
        width: 100%;
        justify-content: space-between;
    }

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

    /* Mobile Navigation - Show only AI Products dropdown */
    .nav-simple {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: center;
        text-align: center;
    }

    .nav-brand {
        order: 1;
    }

    .nav-dropdown {
        order: 2;
        margin: var(--spacing-sm) 0;
    }

    .nav-actions {
        order: 3;
    }

    /* Mobile dropdown styles */
    .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        right: 50% !important;
        left: auto !important;
        transform: translateX(50%) translateY(-10px) !important;
        background: white;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--apple-light-gray);
        border-radius: var(--border-radius);
        min-width: 320px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1002;
        margin-top: 8px;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }

    .nav-dropdown.active .dropdown-menu,
    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(50%) translateY(0) !important;
    }

    .dropdown-toggle {
        padding: 12px 16px;
        font-size: 16px;
        background: var(--apple-light-gray);
        border-radius: var(--border-radius);
        min-width: 200px;
        justify-content: center;
    }

    .dropdown-toggle:hover {
        background: var(--apple-blue);
        color: white;
    }

    /* Significantly reduce gap between week badge and app title on mobile */
    .dropdown-item {
        gap: 4px;
        padding: 10px 16px;
    }

    .week-badge {
        min-width: 36px;
        height: 28px;
        font-size: 0.7em;
    }

    .product-info {
        gap: 1px;
    }

    /* Force mobile centering with more specific selectors */
    .nav-simple .nav-dropdown .dropdown-menu {
        right: 50% !important;
        left: auto !important;
        transform: translateX(50%) translateY(-10px) !important;
    }

    .nav-simple .nav-dropdown.active .dropdown-menu,
    .nav-simple .nav-dropdown:hover .dropdown-menu {
        transform: translateX(50%) translateY(0) !important;
    }
}

@media (max-width: 480px) {
    .dropdown-menu {
        right: 50% !important;
        left: auto !important;
        transform: translateX(50%) translateY(-10px) !important;
        min-width: 280px;
    }

    .nav-dropdown.active .dropdown-menu,
    .nav-dropdown:hover .dropdown-menu {
        transform: translateX(50%) translateY(0) !important;
    }

    .dropdown-toggle {
        min-width: 180px;
        font-size: 14px;
        padding: 10px 14px;
    }

    .nav-simple {
        gap: var(--spacing-sm);
    }

    .nav-brand {
        font-size: 20px;
    }

    .nav-icon {
        width: 28px;
        height: 28px;
    }

    /* Even more aggressive spacing reduction on very small screens */
    .dropdown-item {
        gap: 2px;
        padding: 8px 14px;
    }

    .week-badge {
        min-width: 32px;
        height: 24px;
        font-size: 0.65em;
    }

    .product-info {
        gap: 0;
    }

    .product-name {
        font-size: 0.9em;
    }

    .product-desc {
        font-size: 0.75em;
    }

    /* Force mobile centering with more specific selectors */
    .nav-simple .nav-dropdown .dropdown-menu {
        right: 50% !important;
        left: auto !important;
        transform: translateX(50%) translateY(-10px) !important;
    }

    .nav-simple .nav-dropdown.active .dropdown-menu,
    .nav-simple .nav-dropdown:hover .dropdown-menu {
        transform: translateX(50%) translateY(0) !important;
    }
}

/* Navigation */
.nav-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--apple-light-gray);
    margin-bottom: var(--spacing-xl);
}

.nav-brand {
    font-size: 24px;
    font-weight: var(--font-weight-semibold);
    color: var(--apple-dark-gray);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--apple-gray);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
}

.dropdown-toggle:hover {
    color: var(--apple-blue);
    background: var(--apple-light-gray);
}

.dropdown-toggle i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--apple-light-gray);
    min-width: 320px;
    max-height: 75vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1001;
    margin-top: 8px;
    padding-bottom: 12px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--apple-light-gray);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.challenge-text {
    font-size: 0.9em;
    font-weight: var(--font-weight-semibold);
    color: var(--apple-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    color: var(--apple-dark-gray);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateX(4px);
    color: var(--apple-blue);
}

.dropdown-item.current {
    background: var(--apple-blue);
    color: white;
}

.dropdown-item.current:hover {
    background: var(--apple-blue);
    transform: translateX(0);
}

.week-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 32px;
    background: var(--apple-blue);
    color: white;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.5px;
}

.dropdown-item.current .week-badge {
    background: rgba(255, 255, 255, 0.2);
}

.week-badge.current {
    background: linear-gradient(135deg, #007AFF, #5856D6);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.product-name {
    font-weight: var(--font-weight-semibold);
    font-size: 0.95em;
    line-height: 1.2;
}

.product-desc {
    font-size: 0.8em;
    opacity: 0.7;
    line-height: 1.2;
}

.dropdown-item.current .product-desc {
    opacity: 0.9;
}

/* Beta Badge */
.beta-badge {
    margin-bottom: var(--spacing-md);
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-beta {
    background: rgba(255, 149, 0, 0.1);
    color: var(--apple-orange);
    border: 1px solid rgba(255, 149, 0, 0.2);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-xl);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: var(--font-weight-semibold);
    color: var(--apple-dark-gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--apple-gray);
    margin-bottom: var(--spacing-xl);
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--apple-gray);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
}

.trust-item i {
    color: var(--apple-blue);
}

/* Button Sizes */
.btn-large {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
}

.btn-sm {
    padding: 8px 12px;
    font-size: 14px;
    height: 32px;
}

/* Benefits Section */
.benefits-section {
    margin-bottom: var(--spacing-xl);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.benefit-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

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

.benefit-icon {
    width: 64px;
    height: 64px;
    background: var(--apple-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.benefit-icon i {
    font-size: 24px;
    color: white;
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    color: var(--apple-dark-gray);
    margin-bottom: var(--spacing-sm);
}

.benefit-card p {
    color: var(--apple-gray);
    line-height: 1.5;
}

/* How It Works */
.how-it-works {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
    background: var(--apple-light-gray);
    border-radius: var(--border-radius);
}

.how-it-works h2 {
    font-size: 28px;
    font-weight: var(--font-weight-semibold);
    color: var(--apple-dark-gray);
    margin-bottom: var(--spacing-xl);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.step {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--apple-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    margin: 0 auto var(--spacing-md);
}

.step h4 {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--apple-dark-gray);
    margin-bottom: var(--spacing-xs);
}

.step p {
    color: var(--apple-gray);
    font-size: 14px;
}

/* Demo Section */
.demo-section {
    margin-bottom: var(--spacing-xl);
}

.demo-section h2 {
    text-align: center;
    font-size: 28px;
    font-weight: var(--font-weight-semibold);
    color: var(--apple-dark-gray);
    margin-bottom: var(--spacing-xl);
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.demo-item {
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    overflow: hidden;
}

.demo-screenshot {
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--apple-light-gray);
}

.demo-screenshot img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: var(--border-radius-sm);
    transition: transform 0.2s ease;
}

.demo-item:hover .demo-screenshot img {
    transform: scale(1.05);
}

.demo-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.demo-item h4 {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--apple-dark-gray);
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.demo-item h4 i {
    color: var(--apple-blue);
}

.demo-item p {
    color: var(--apple-gray);
    font-size: 14px;
    margin-bottom: var(--spacing-md);
}

.demo-link {
    color: var(--apple-blue);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: 14px;
    transition: color 0.2s ease;
}

.demo-link:hover {
    color: #0056CC;
}

/* Beta Info Section */
.beta-info-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
    background: rgba(255, 149, 0, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 149, 0, 0.1);
    text-align: center;
}

.beta-info-section h3 {
    font-size: 24px;
    font-weight: var(--font-weight-semibold);
    color: var(--apple-dark-gray);
    margin-bottom: var(--spacing-md);
}

.beta-simple {
    max-width: 600px;
    margin: 0 auto;
}

.beta-simple p {
    font-size: 18px;
    color: var(--apple-gray);
    line-height: 1.5;
    margin-bottom: var(--spacing-lg);
}

.beta-cta {
    margin-top: var(--spacing-lg);
}

/* Requirements Section */
.requirements-section {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--apple-light-gray);
    border-radius: var(--border-radius);
}

.requirements-section h3 {
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    color: var(--apple-dark-gray);
    margin-bottom: var(--spacing-md);
}

.requirements-grid {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.req-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--apple-gray);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
}

.req-item i {
    color: var(--apple-blue);
    font-size: 16px;
}

/* Simple Footer */
.simple-footer {
    background: #f8fafc;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    margin-top: var(--spacing-xl);
}

.social-links {
    margin-bottom: 2rem;
}

.social-links a {
    color: #64748b;
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--apple-blue);
}

.simple-footer p {
    color: #64748b;
    margin: 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .nav-simple {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .benefits-grid,
    .demo-grid {
        grid-template-columns: 1fr;
    }

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

/* Homepage Styles */
.newsletter-main {
    margin-top: var(--spacing-lg);
}

.newsletter-hero {
    text-align: center;
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-xl);
}

.newsletter-hero h2 {
    font-size: 32px;
    font-weight: var(--font-weight-semibold);
    color: var(--apple-dark-gray);
    margin-bottom: var(--spacing-md);
}

.newsletter-hero p {
    font-size: 18px;
    color: var(--apple-gray);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

.newsletter-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.feature {
    text-align: center;
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature i {
    font-size: 32px;
    color: var(--apple-blue);
    margin-bottom: var(--spacing-md);
    display: block;
}

.feature h3 {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--apple-dark-gray);
    margin-bottom: var(--spacing-sm);
}

.feature p {
    font-size: 14px;
    color: var(--apple-gray);
    line-height: 1.5;
}

.newsletter-footer {
    text-align: center;
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--apple-light-gray);
    margin-top: var(--spacing-xl);
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.footer-links a {
    color: var(--apple-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--apple-blue);
}

.newsletter-footer p {
    font-size: 14px;
    color: var(--apple-gray);
    margin: 0;
}

/* Newsletter List Styles */
.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.newsletter-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.newsletter-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.newsletter-card-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--apple-light-gray);
}

.newsletter-card-title {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--apple-dark-gray);
    margin: 0 0 var(--spacing-xs) 0;
}

.newsletter-card-meta {
    font-size: 14px;
    color: var(--apple-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.newsletter-card-body {
    padding: var(--spacing-lg);
    font-size: 14px;
    color: var(--apple-gray);
    line-height: 1.5;
}

.newsletter-card-actions {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--apple-light-gray);
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    color: var(--apple-gray);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.empty-state-title {
    font-size: 18px;
    font-weight: var(--font-weight-medium);
    color: var(--apple-dark-gray);
    margin-bottom: var(--spacing-sm);
}

.empty-state-description {
    font-size: 14px;
    margin-bottom: var(--spacing-lg);
}

/* Utilities */
.text-center {
    text-align: center;
}

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

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

.mb-0 {
    margin-bottom: 0;
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.d-flex {
    display: flex;
}

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

.justify-content-between {
    justify-content: space-between;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--apple-light-gray);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--apple-dark-gray);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--apple-gray);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--apple-light-gray);
    color: var(--apple-dark-gray);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    border-top: 1px solid var(--apple-light-gray);
}

.modal-footer .btn {
    margin: 0;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    max-width: 400px;
    min-width: 250px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.notification:hover {
    transform: translateX(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.notification-show {
    transform: translateX(0);
}

.notification-show:hover {
    transform: translateX(-5px);
}

.notification-success {
    border-left: 4px solid var(--apple-green);
}

.notification-error {
    border-left: 4px solid var(--apple-red);
}

.notification-warning {
    border-left: 4px solid var(--apple-orange);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 12px;
}

.notification-message {
    color: var(--apple-dark-gray);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: var(--apple-gray);
    cursor: pointer;
    font-size: 18px;
    margin-left: var(--spacing-sm);
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: var(--apple-dark-gray);
}

/* =====================================================
   ANNOUNCEMENT BANNERS
   ===================================================== */

/* Maven Course Announcement Banner */
.announcement-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #4338ca 0%, #c084fc 100%);
    color: white;
    padding: 12px 16px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.announcement-banner.show {
    transform: translateY(0);
}

.announcement-banner.hiding {
    transform: translateY(-100%);
    transition: transform 0.4s ease-in;
}

.banner-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.banner-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-width: 200px;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    50% {
        background: rgba(255, 255, 255, 0.25);
        box-shadow: 0 0 20px 4px rgba(255, 255, 255, 0.2);
    }
}

.banner-badge i {
    font-size: 0.9rem;
}

.banner-text {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    line-height: 1.4;
}

.banner-text strong {
    font-weight: 600;
}

.banner-separator {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

.banner-detail {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

.banner-countdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    animation: countdownGlow 2s ease-in-out infinite;
}

@keyframes countdownGlow {

    0%,
    100% {
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }

    50% {
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 15px 2px rgba(255, 255, 255, 0.2);
    }
}

.banner-countdown i {
    animation: pulse 2s ease-in-out infinite;
}

.banner-students,
.banner-members {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

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

.banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #4338ca;
    padding: 10px 20px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    min-width: 180px;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.banner-cta:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

.banner-cta i {
    font-size: 0.9rem;
}

.banner-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.banner-close i {
    font-size: 0.9rem;
}

/* Discord Community Banner */
.discord-banner {
    background: linear-gradient(135deg, #5865F2 0%, #7289DA 100%);
    top: 0;
}

.discord-badge {
    background: rgba(255, 255, 255, 0.25);
}

.discord-cta {
    background: white;
    color: #5865F2;
}

.discord-cta:hover {
    background: #f8f9fa;
}

/* Body adjustments when banners are visible */
body.maven-visible,
body.discord-visible,
body.banner-visible {
    padding-top: 60px;
}

body.both-banners-visible {
    padding-top: 120px;
}

body.maven-visible .nav-simple,
body.discord-visible .nav-simple,
body.banner-visible .nav-simple {
    margin-top: 0;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .announcement-banner {
        padding: 16px 12px;
    }

    .banner-container {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .banner-content {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        text-align: center;
    }

    .banner-badge {
        width: 100%;
        min-width: auto;
        max-width: 280px;
    }

    .banner-text {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .banner-separator {
        display: none;
    }

    .banner-actions {
        width: 100%;
        justify-content: center;
    }

    .banner-cta {
        flex: 1;
        max-width: 280px;
    }

    /* Mobile body padding adjustments */
    body.maven-visible,
    body.discord-visible,
    body.banner-visible {
        padding-top: 150px !important;
    }

    body.both-banners-visible {
        padding-top: 300px !important;
    }

    body.maven-visible .nav-simple,
    body.discord-visible .nav-simple,
    body.banner-visible .nav-simple {
        margin-top: 0;
    }
}