/* Public Pages Styles */

/* Public Header */
.public-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
}

/* PWA safe area background fill */
.public-header::before {
    content: "";
    position: absolute;
    top: calc(-1 * env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    height: env(safe-area-inset-top, 0px);
    background: inherit;
    backdrop-filter: inherit;
}

.public-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.public-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.public-logo .logo-icon {
    font-size: 1.75rem;
}

.public-nav {
    display: flex;
    gap: 2rem;
}

.public-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

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

.public-header-buttons {
    display: flex;
    gap: 0.75rem;
}

.mobile-header-buttons {
    display: none;
}

.mobile-header-buttons .btn-small {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

/* Mobile menu toggle - base styles */
.public-header .mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.public-header .hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.public-header .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.public-header .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.public-header .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.public-header-buttons .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 1.5rem 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 80% 50% at 50% -20%,
            rgba(59, 130, 246, 0.15) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse 60% 40% at 80% 60%,
            rgba(239, 68, 68, 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse 60% 40% at 20% 80%,
            rgba(34, 197, 94, 0.08) 0%,
            transparent 50%
        ),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-content {
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--primary-dark) 100%
    );
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    transition: all 0.3s;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

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

.hero-stat .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.hero-stat .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Live Messages Section */
.live-section {
    padding: 80px 1.5rem;
    background: var(--background);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: #fee2e2;
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.live-messages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.live-message-card {
    padding: 1.25rem;
    border-radius: 12px;
    background: var(--card-background);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.live-message-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

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

.live-message-icon {
    font-size: 1.25rem;
}

.live-message-discipline {
    font-weight: 600;
    font-size: 0.875rem;
}

.live-message-time {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.live-message-text {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.live-message-region {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Features Section */
.features-section {
    padding: 100px 1.5rem;
    background: white;
}

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

.feature-card {
    padding: 2rem;
    background: var(--background);
    border-radius: 16px;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(139, 92, 246, 0.1) 100%
    );
    border-radius: 16px;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responder Section (Mijn Inzetten) */
.responder-section {
    padding: 100px 1.5rem;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
}

.responder-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.responder-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.responder-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.responder-text p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.responder-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.responder-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.responder-features li span {
    font-size: 1.25rem;
}

.btn-responder {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #dc2626;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-responder:hover {
    background: #fef2f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.responder-mockup {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.mockup-header {
    background: #f1f5f9;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
}

.mockup-dot:first-child {
    background: #ef4444;
}
.mockup-dot:nth-child(2) {
    background: #f59e0b;
}
.mockup-dot:nth-child(3) {
    background: #22c55e;
}

.mockup-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
}

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

.mockup-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

.mockup-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mockup-list {
    padding: 1rem;
}

.mockup-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: #f8fafc;
}

.mockup-item.present .mockup-badge {
    background: #dcfce7;
    color: #16a34a;
}

.mockup-item.absent .mockup-badge {
    background: #fee2e2;
    color: #dc2626;
}

.mockup-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    min-width: 40px;
}

.mockup-msg {
    flex: 1;
    font-size: 0.875rem;
    color: #1e293b;
}

.mockup-badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .responder-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .responder-text h2 {
        font-size: 2rem;
    }

    .responder-visual {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* How it works */
.how-it-works-section {
    padding: 100px 1.5rem;
    background: linear-gradient(180deg, var(--background) 0%, white 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--primary-dark) 100%
    );
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Use Cases */
.use-cases-section {
    padding: 100px 1.5rem;
    background: white;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.use-case-card {
    padding: 1.75rem;
    background: var(--background);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s;
}

.use-case-card:hover {
    transform: translateY(-2px);
}

.use-case-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.use-case-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.use-case-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* App Section */
.app-section {
    padding: 80px 1.5rem;
    background: linear-gradient(180deg, white 0%, var(--background) 100%);
    overflow: hidden;
}

.app-section .app-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.app-section .app-text {
    flex: 1;
}

.app-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.app-text {
    flex: 1;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.app-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.app-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.app-features-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 2rem 0 !important;
}

.app-features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.app-features-list .check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.app-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-visual {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    min-width: 280px;
    background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
    border-radius: 44px;
    padding: 14px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    display: block;
}

.phone-mockup::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border-radius: 32px;
    padding: 60px 14px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.phone-notification {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInNotification 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(-10px);
}

.phone-notification.delayed {
    animation-delay: 1s;
}

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

.notification-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    line-height: 1;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-text {
    font-size: 0.9rem;
    color: white;
    line-height: 1.4;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 100px 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Footer */
.public-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 1.5rem 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-logo-image {
    height: 20px;
    width: auto;
    filter: invert(1);
}

.footer-links h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

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

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    transition: all 0.2s;
}

.footer-social .social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
}

.footer-disclaimer {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Public Page Container */
.public-page-content {
    padding-top: calc(90px + env(safe-area-inset-top, 0px));
    min-height: calc(100vh - 300px);
}

.public-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.public-container h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.public-container h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.public-container h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

.public-container p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.public-container ul,
.public-container ol {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.public-container li {
    margin-bottom: 0.5rem;
}

.public-container a {
    color: var(--primary-color);
}

/* Contact Form */
.contact-section {
    padding-top: calc(90px + env(safe-area-inset-top, 0px));
    min-height: calc(100vh - 200px);
    background: var(--background);
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-method-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(139, 92, 246, 0.1) 100%
    );
    border-radius: 12px;
    font-size: 1.5rem;
}

.contact-method-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-method-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-method-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

/* Example Incident Page */
.incident-page {
    padding-top: calc(90px + env(safe-area-inset-top, 0px));
    min-height: 100vh;
    background: var(--background);
}

.incident-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.incident-header {
    text-align: center;
    margin-bottom: 2rem;
}

.incident-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.incident-header p {
    color: var(--text-secondary);
}

.incident-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.incident-card-header {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.incident-card-header .icon {
    font-size: 2.5rem;
}

.incident-card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.incident-card-header .meta {
    font-size: 0.9rem;
    opacity: 0.9;
}

.incident-card-body {
    padding: 2rem;
}

.incident-message {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-primary);
    padding: 1.5rem;
    background: #fef2f2;
    border-radius: 12px;
    border-left: 4px solid #ef4444;
    margin-bottom: 2rem;
}

.incident-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.incident-detail {
    padding: 1rem;
    background: var(--background);
    border-radius: 10px;
}

.incident-detail-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.incident-detail-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.incident-map {
    height: 300px;
    background: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.incident-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.incident-units {
    margin-bottom: 2rem;
}

.incident-units h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.units-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.unit-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--background);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.incident-cta {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.05) 0%,
        rgba(139, 92, 246, 0.05) 100%
    );
    border-radius: 12px;
}

.incident-cta p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

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

@media (max-width: 768px) {
    .public-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }

    .public-nav.mobile-open {
        display: flex;
    }

    .public-nav a {
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }

    .public-nav a:hover {
        background: var(--background);
    }

    .public-header-buttons {
        display: none;
    }

    .mobile-header-buttons {
        display: flex;
        margin-right: 0.75rem;
    }

    .public-header .mobile-menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

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

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

    .section-header h2 {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .app-content {
        flex-direction: column !important;
        gap: 2rem !important;
    }

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

    .app-text h2 {
        font-size: 1.75rem !important;
    }

    .app-features-list {
        display: inline-block;
        text-align: left;
    }

    .app-features-grid {
        grid-template-columns: 1fr !important;
    }

    .app-buttons {
        justify-content: center;
    }

    .app-visual {
        order: -1;
    }

    .phone-mockup {
        width: 240px !important;
        height: 480px !important;
        border-radius: 36px !important;
        padding: 10px !important;
    }

    .phone-mockup .phone-notch {
        width: 70px !important;
        height: 22px !important;
        top: 12px !important;
    }

    .phone-screen {
        padding: 50px 12px 16px !important;
        border-radius: 28px !important;
    }

    .phone-notification {
        padding: 10px !important;
        gap: 8px !important;
    }

    .notification-icon {
        font-size: 1.5rem !important;
    }

    .notification-content .notification-text,
    .phone-notification > div:last-child > div:last-child {
        font-size: 0.8rem !important;
    }

    /* Pricing cards responsive */
    .pricing-cards {
        grid-template-columns: 1fr !important;
    }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .phone-mockup {
        width: 200px !important;
        height: 400px !important;
        border-radius: 30px !important;
    }

    .phone-screen {
        padding: 40px 10px 14px !important;
        border-radius: 22px !important;
        gap: 10px !important;
    }

    .phone-notification {
        padding: 8px !important;
        border-radius: 12px !important;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .public-container h1 {
        font-size: 1.5rem;
    }

    .contact-info h1 {
        font-size: 1.75rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* =====================================================
   Dark Mode Support for Public Pages
   ===================================================== */

/* Public Header Dark Mode */
[data-theme="dark"] .public-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: #334155;
}

[data-theme="dark"] .public-logo {
    color: #f1f5f9;
}

[data-theme="dark"] .public-nav a {
    color: #94a3b8;
}

[data-theme="dark"] .public-nav a:hover {
    color: #60a5fa;
}

[data-theme="dark"] .public-header .hamburger-line {
    background: #f1f5f9;
}

/* Hero Dark Mode */
[data-theme="dark"] .hero-gradient {
    background:
        radial-gradient(
            ellipse 80% 50% at 50% -20%,
            rgba(59, 130, 246, 0.2) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse 60% 40% at 80% 60%,
            rgba(239, 68, 68, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse 60% 40% at 20% 80%,
            rgba(34, 197, 94, 0.1) 0%,
            transparent 50%
        ),
        linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .hero h1 {
    color: #f1f5f9;
}

[data-theme="dark"] .hero-subtitle {
    color: #94a3b8;
}

[data-theme="dark"] .hero-badge {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .btn-hero-secondary {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #334155;
}

[data-theme="dark"] .btn-hero-secondary:hover {
    border-color: #60a5fa;
    color: #60a5fa;
}

[data-theme="dark"] .hero-stat .stat-number {
    color: #f1f5f9;
}

[data-theme="dark"] .hero-stat .stat-label {
    color: #94a3b8;
}

/* Live Section Dark Mode */
[data-theme="dark"] .live-section {
    background: #0f172a;
}

[data-theme="dark"] .section-header h2 {
    color: #f1f5f9;
}

[data-theme="dark"] .section-header p {
    color: #94a3b8;
}

[data-theme="dark"] .live-message-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .live-message-text {
    color: var(--text-secondary);
}

[data-theme="dark"] .live-message-discipline {
    color: var(--text-primary);
}

/* Features Section Dark Mode */
[data-theme="dark"] .features-section {
    background: #1e293b;
}

[data-theme="dark"] .feature-card {
    background: #0f172a;
}

[data-theme="dark"] .feature-card h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .feature-card p {
    color: #94a3b8;
}

/* How It Works Dark Mode */
[data-theme="dark"] .how-it-works-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .step-card h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .step-card p {
    color: #94a3b8;
}

/* App Section Dark Mode */
[data-theme="dark"] .app-section {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .app-text h2 {
    color: #f1f5f9;
}

[data-theme="dark"] .app-description {
    color: #94a3b8;
}

[data-theme="dark"] .app-features-list li {
    color: #f1f5f9;
}

[data-theme="dark"] .app-badge {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Use Cases Dark Mode */
[data-theme="dark"] .use-cases-section {
    background: #1e293b;
}

[data-theme="dark"] .use-case-card {
    background: #0f172a;
}

[data-theme="dark"] .use-case-card h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .use-case-card p {
    color: #94a3b8;
}

/* Public Page Content Dark Mode */
[data-theme="dark"] .public-page-content {
    background: #0f172a;
}

[data-theme="dark"] .public-container h1,
[data-theme="dark"] .public-container h2,
[data-theme="dark"] .public-container h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .public-container p,
[data-theme="dark"] .public-container ul,
[data-theme="dark"] .public-container ol {
    color: #94a3b8;
}

/* Contact Section Dark Mode */
[data-theme="dark"] .contact-section {
    background: #0f172a;
}

[data-theme="dark"] .contact-info h1 {
    color: #f1f5f9;
}

[data-theme="dark"] .contact-info > p {
    color: #94a3b8;
}

[data-theme="dark"] .contact-method {
    background: #1e293b;
}

[data-theme="dark"] .contact-method-text h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .contact-method-text p {
    color: #94a3b8;
}

[data-theme="dark"] .contact-form-wrapper {
    background: #1e293b;
}

[data-theme="dark"] .contact-form-wrapper h2 {
    color: #f1f5f9;
}

[data-theme="dark"] .contact-form label {
    color: #f1f5f9;
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .contact-form input::placeholder,
[data-theme="dark"] .contact-form textarea::placeholder {
    color: #64748b;
}

/* Incident Page Dark Mode */
[data-theme="dark"] .incident-page {
    background: #0f172a;
}

[data-theme="dark"] .incident-header h1 {
    color: #f1f5f9;
}

[data-theme="dark"] .incident-header p {
    color: #94a3b8;
}

[data-theme="dark"] .incident-card {
    background: #1e293b;
}

[data-theme="dark"] .incident-message {
    color: #f1f5f9;
    background: rgba(239, 68, 68, 0.1);
}

[data-theme="dark"] .incident-detail {
    background: #0f172a;
}

[data-theme="dark"] .incident-detail-label {
    color: #94a3b8;
}

[data-theme="dark"] .incident-detail-value {
    color: #f1f5f9;
}

[data-theme="dark"] .unit-badge {
    background: #0f172a;
    color: #f1f5f9;
}

[data-theme="dark"] .incident-cta {
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .incident-cta p {
    color: #94a3b8;
}

/* Mobile Menu Dark Mode */
[data-theme="dark"] .public-nav {
    background: #0f172a;
    border-bottom-color: #334155;
}

[data-theme="dark"] .public-nav a:hover {
    background: #1e293b;
}

/* Auto theme dark mode (system preference) */
@media (prefers-color-scheme: dark) {
    [data-theme="auto"] .public-header {
        background: rgba(15, 23, 42, 0.95);
        border-bottom-color: #334155;
    }

    [data-theme="auto"] .public-logo {
        color: #f1f5f9;
    }

    [data-theme="auto"] .public-nav a {
        color: #94a3b8;
    }

    [data-theme="auto"] .public-nav a:hover {
        color: #60a5fa;
    }

    [data-theme="auto"] .public-header .hamburger-line {
        background: #f1f5f9;
    }

    [data-theme="auto"] .hero-gradient {
        background:
            radial-gradient(
                ellipse 80% 50% at 50% -20%,
                rgba(59, 130, 246, 0.2) 0%,
                transparent 50%
            ),
            radial-gradient(
                ellipse 60% 40% at 80% 60%,
                rgba(239, 68, 68, 0.1) 0%,
                transparent 50%
            ),
            radial-gradient(
                ellipse 60% 40% at 20% 80%,
                rgba(34, 197, 94, 0.1) 0%,
                transparent 50%
            ),
            linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    }

    [data-theme="auto"] .hero h1 {
        color: #f1f5f9;
    }

    [data-theme="auto"] .hero-subtitle {
        color: #94a3b8;
    }

    [data-theme="auto"] .hero-badge {
        background: rgba(59, 130, 246, 0.2);
        border-color: rgba(59, 130, 246, 0.3);
    }

    [data-theme="auto"] .btn-hero-secondary {
        background: #1e293b;
        color: #f1f5f9;
        border-color: #334155;
    }

    [data-theme="auto"] .btn-hero-secondary:hover {
        border-color: #60a5fa;
        color: #60a5fa;
    }

    [data-theme="auto"] .hero-stat .stat-number {
        color: #f1f5f9;
    }

    [data-theme="auto"] .hero-stat .stat-label {
        color: #94a3b8;
    }

    [data-theme="auto"] .live-section {
        background: #0f172a;
    }

    [data-theme="auto"] .section-header h2 {
        color: #f1f5f9;
    }

    [data-theme="auto"] .section-header p {
        color: #94a3b8;
    }

    [data-theme="auto"] .features-section {
        background: #1e293b;
    }

    [data-theme="auto"] .feature-card {
        background: #0f172a;
    }

    [data-theme="auto"] .feature-card h3 {
        color: #f1f5f9;
    }

    [data-theme="auto"] .feature-card p {
        color: #94a3b8;
    }

    [data-theme="auto"] .how-it-works-section {
        background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    }

    [data-theme="auto"] .step-card h3 {
        color: #f1f5f9;
    }

    [data-theme="auto"] .step-card p {
        color: #94a3b8;
    }

    [data-theme="auto"] .app-section {
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    }

    [data-theme="auto"] .app-text h2 {
        color: #f1f5f9;
    }

    [data-theme="auto"] .app-description {
        color: #94a3b8;
    }

    [data-theme="auto"] .app-features-list li {
        color: #f1f5f9;
    }

    [data-theme="auto"] .app-badge {
        background: rgba(59, 130, 246, 0.2);
        border-color: rgba(59, 130, 246, 0.3);
    }

    [data-theme="auto"] .use-cases-section {
        background: #1e293b;
    }

    [data-theme="auto"] .use-case-card {
        background: #0f172a;
    }

    [data-theme="auto"] .use-case-card h3 {
        color: #f1f5f9;
    }

    [data-theme="auto"] .use-case-card p {
        color: #94a3b8;
    }

    [data-theme="auto"] .public-page-content {
        background: #0f172a;
    }

    [data-theme="auto"] .public-container h1,
    [data-theme="auto"] .public-container h2,
    [data-theme="auto"] .public-container h3 {
        color: #f1f5f9;
    }

    [data-theme="auto"] .public-container p,
    [data-theme="auto"] .public-container ul,
    [data-theme="auto"] .public-container ol {
        color: #94a3b8;
    }

    [data-theme="auto"] .contact-section {
        background: #0f172a;
    }

    [data-theme="auto"] .contact-info h1 {
        color: #f1f5f9;
    }

    [data-theme="auto"] .contact-method {
        background: #1e293b;
    }

    [data-theme="auto"] .contact-method-text h3 {
        color: #f1f5f9;
    }

    [data-theme="auto"] .contact-form-wrapper {
        background: #1e293b;
    }

    [data-theme="auto"] .contact-form-wrapper h2 {
        color: #f1f5f9;
    }

    [data-theme="auto"] .contact-form label {
        color: #f1f5f9;
    }

    [data-theme="auto"] .contact-form input,
    [data-theme="auto"] .contact-form textarea {
        background: #0f172a;
        border-color: #334155;
        color: #f1f5f9;
    }

    [data-theme="auto"] .incident-page {
        background: #0f172a;
    }

    [data-theme="auto"] .incident-card {
        background: #1e293b;
    }

    [data-theme="auto"] .incident-message {
        color: #f1f5f9;
        background: rgba(239, 68, 68, 0.1);
    }

    [data-theme="auto"] .incident-detail {
        background: #0f172a;
    }

    [data-theme="auto"] .incident-detail-value {
        color: #f1f5f9;
    }

    [data-theme="auto"] .unit-badge {
        background: #0f172a;
        color: #f1f5f9;
    }

    [data-theme="auto"] .public-nav {
        background: #0f172a;
        border-bottom-color: #334155;
    }

    [data-theme="auto"] .public-nav a:hover {
        background: #1e293b;
    }

    [data-theme="auto"] .live-message-card {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    [data-theme="auto"] .live-message-text {
        color: #94a3b8;
    }

    [data-theme="auto"] .live-message-discipline {
        color: #f1f5f9;
    }
}

/* ===========================================
   Changelog Page
   =========================================== */
.changelog-section {
    padding-top: calc(90px + env(safe-area-inset-top, 0px));
    min-height: calc(100vh - 200px);
    background: var(--background);
}

.changelog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.changelog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.changelog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.changelog-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.changelog-month {
    margin-bottom: 2.5rem;
}

.changelog-month-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.changelog-entry {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

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

.changelog-type {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.changelog-type.feature {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.changelog-type.improvement {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.changelog-type.fix {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.changelog-type.announcement {
    background: rgba(168, 85, 247, 0.1);
    color: #9333ea;
}

.changelog-version {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.changelog-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-left: auto;
}

.changelog-entry-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.changelog-entry-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.changelog-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-secondary);
}

.changelog-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.changelog-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.changelog-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.changelog-footer a:hover {
    text-decoration: underline;
}

/* ===========================================
   Help/FAQ Page
   =========================================== */
.help-section {
    padding-top: calc(90px + env(safe-area-inset-top, 0px));
    min-height: calc(100vh - 200px);
    background: var(--background);
}

.help-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.help-header {
    text-align: center;
    margin-bottom: 2rem;
}

.help-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.help-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.help-search {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.help-search form {
    display: flex;
    gap: 0.5rem;
}

.help-search input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 1rem;
}

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

.help-search button {
    padding: 0.75rem 1.5rem;
}

.search-results {
    margin-bottom: 2rem;
}

.search-results h2 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.category-nav a {
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.category-nav a:hover,
.category-nav a.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.faq-section {
    margin-bottom: 2rem;
}

.faq-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-primary);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
    gap: 1rem;
}

.faq-question:hover {
    background: var(--background);
}

.faq-question h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.faq-toggle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item.open .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-answer a {
    color: var(--primary-color);
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-answer ul,
.faq-answer ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.25rem;
}

.help-section .contact-link {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.help-section .contact-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.help-section .contact-link a:hover {
    text-decoration: underline;
}

.help-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.help-empty p {
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .help-header h1 {
        font-size: 1.5rem;
    }

    .help-search form {
        flex-direction: column;
    }

    .category-nav {
        justify-content: flex-start;
    }
}

/* ===========================================
   Suggestions Page
   =========================================== */
.suggestions-section {
    padding-top: calc(90px + env(safe-area-inset-top, 0px));
    min-height: calc(100vh - 200px);
    background: var(--background);
}

.suggestions-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.suggestions-header {
    text-align: center;
    margin-bottom: 2rem;
}

.suggestions-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.suggestions-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Suggestion Form */
.suggestion-form-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.suggestion-form-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suggestion-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.suggestion-form .form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.suggestion-form .form-group input,
.suggestion-form .form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--background);
    color: var(--text-primary);
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

.suggestion-form .form-group input:focus,
.suggestion-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.suggestion-form .form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.suggestion-form .form-group small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.suggestion-form .hp-field {
    position: absolute;
    left: -9999px;
}

.suggestion-form .form-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

/* Filters */
.suggestions-filters {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.suggestions-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestions-filters .filter-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.suggestions-filters .filter-group select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface);
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* Suggestion List */
.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suggestion-item {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s;
}

.suggestion-item:hover {
    box-shadow: var(--shadow);
}

/* Vote Button */
.vote-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.vote-btn {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.625rem 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.vote-btn:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.vote-btn.voted {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.vote-btn .arrow {
    font-size: 1.125rem;
    line-height: 1;
}

.vote-btn .count {
    font-size: 1rem;
    font-weight: 700;
}

/* Suggestion Content */
.suggestion-content {
    flex: 1;
    min-width: 0;
}

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

.suggestion-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
}

.suggestion-status {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.1875rem 0.625rem;
    border-radius: 9999px;
    text-transform: uppercase;
}

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

.suggestion-status.planned {
    background: rgba(168, 85, 247, 0.1);
    color: #9333ea;
}

.suggestion-status.in_progress {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

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

.suggestion-status.declined {
    background: rgba(156, 163, 175, 0.1);
    color: #6b7280;
}

.suggestion-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.suggestion-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.suggestion-response {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.suggestion-response-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 0.375rem;
}

.suggestion-response-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.suggestions-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-secondary);
}

.suggestions-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Dark mode for changelog and suggestions */
[data-theme="dark"] .changelog-section,
[data-theme="dark"] .suggestions-section {
    background: #0f172a;
}

[data-theme="dark"] .changelog-entry,
[data-theme="dark"] .suggestion-form-card,
[data-theme="dark"] .suggestion-item {
    background: #1e293b;
}

[data-theme="dark"] .changelog-header h1,
[data-theme="dark"] .changelog-entry-title,
[data-theme="dark"] .suggestions-header h1,
[data-theme="dark"] .suggestion-form-title,
[data-theme="dark"] .suggestion-title {
    color: #f1f5f9;
}

[data-theme="dark"] .suggestion-form .form-group input,
[data-theme="dark"] .suggestion-form .form-group textarea,
[data-theme="dark"] .suggestions-filters .filter-group select {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .vote-btn {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .suggestion-response {
    background: #0f172a;
}

@media (prefers-color-scheme: dark) {
    [data-theme="auto"] .changelog-section,
    [data-theme="auto"] .suggestions-section {
        background: #0f172a;
    }

    [data-theme="auto"] .changelog-entry,
    [data-theme="auto"] .suggestion-form-card,
    [data-theme="auto"] .suggestion-item {
        background: #1e293b;
    }

    [data-theme="auto"] .changelog-header h1,
    [data-theme="auto"] .changelog-entry-title,
    [data-theme="auto"] .suggestions-header h1,
    [data-theme="auto"] .suggestion-form-title,
    [data-theme="auto"] .suggestion-title {
        color: #f1f5f9;
    }

    [data-theme="auto"] .suggestion-form .form-group input,
    [data-theme="auto"] .suggestion-form .form-group textarea,
    [data-theme="auto"] .suggestions-filters .filter-group select {
        background: #0f172a;
        border-color: #334155;
        color: #f1f5f9;
    }

    [data-theme="auto"] .vote-btn {
        background: #0f172a;
        border-color: #334155;
    }

    [data-theme="auto"] .suggestion-response {
        background: #0f172a;
    }
}

/* Suggestions Header with button */
.suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.suggestions-header-content {
    flex: 1;
}

.suggestions-header-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.suggestions-header-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Modal Styles for Suggestions */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.2s,
        visibility 0.2s;
    padding: 1rem;
}

.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--surface);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-20px);
    transition: transform 0.2s;
}

.modal-backdrop.open .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}

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

.modal-content .suggestion-form,
.modal-content form {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

/* Admin Styles for Suggestions */
.suggestion-admin-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.admin-readonly-field {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Small buttons */
.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

/* Dark mode for modals */
[data-theme="dark"] .modal-content {
    background: #1e293b;
}

[data-theme="dark"] .modal-header {
    border-color: #334155;
}

[data-theme="dark"] .modal-footer {
    border-color: #334155;
}

[data-theme="dark"] .admin-readonly-field {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .suggestion-admin-actions {
    border-color: #334155;
}

@media (prefers-color-scheme: dark) {
    [data-theme="auto"] .modal-content {
        background: #1e293b;
    }

    [data-theme="auto"] .modal-header {
        border-color: #334155;
    }

    [data-theme="auto"] .modal-footer {
        border-color: #334155;
    }

    [data-theme="auto"] .admin-readonly-field {
        background: #0f172a;
        border-color: #334155;
    }

    [data-theme="auto"] .suggestion-admin-actions {
        border-color: #334155;
    }
}

/* Mobile adjustments for suggestions */
@media (max-width: 600px) {
    .suggestions-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .suggestions-header-content {
        text-align: center;
    }

    .suggestions-header .btn {
        width: 100%;
    }

    .suggestion-item {
        flex-direction: column;
    }

    .vote-section {
        flex-direction: row;
        justify-content: flex-start;
    }

    .vote-btn {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .modal-content {
        max-height: calc(100vh - 1rem);
        margin: 0.5rem;
    }

    .suggestion-admin-actions {
        flex-wrap: wrap;
    }
}
