/* CSS Variables */
:root {
    --color-primary: #2563eb;
    --color-dark: #1e293b;
    --color-secondary: #64748b;
    --color-light: #f1f5f9;
    --color-white: #ffffff;
    --color-border: rgba(148, 163, 184, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--color-dark);
    line-height: 1.6;
    background: #ffffff;
    /* Safe area insets for iOS notch */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: #ffffff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}

.skip-to-content:focus {
    top: 0;
}

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

/* Navigation - Glassmorphism Effect */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

/* Subtle distortion on background - Chromium Desktop only */
@media (min-width: 1024px) {
    html:not(.is-safari) nav::before {
        content: '';
        position: absolute;
        inset: 0;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        filter: url(#glass-distortion);
        pointer-events: none;
        z-index: -1;
        opacity: 0.6;
    }

    html:not(.is-safari) nav > * {
        position: relative;
        z-index: 1;
    }
}


.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    width: 40px;
    height: 40px;
    display: block;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

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

.nav-links .btn-primary {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(37, 99, 235, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: var(--color-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-weight: 600;
}

.nav-links .btn-primary:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
    color: #1e40af;
    border-color: rgba(37, 99, 235, 0.5);
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 2rem 4rem;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.95) 0%, #ffffff 100%);
}

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

.hero-logo {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    display: block;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.hero .tagline {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--color-secondary);
    margin-bottom: 2rem;
}

.btn-download {
    display: inline-block;
    background: rgba(37, 99, 235, 0.85);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 1rem 3rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-download:hover {
    background: rgba(30, 64, 175, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}


/* Features Section */
.features {
    padding: 4rem 2rem 25rem;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
}

.features h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.3;
}

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

.feature {
    position: relative;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    overflow: hidden;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Subtle distortion on feature backgrounds - Chromium Desktop only */
@media (min-width: 1024px) {
    html:not(.is-safari) .feature::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 1.5rem;
        backdrop-filter: blur(10px) saturate(160%);
        -webkit-backdrop-filter: blur(10px) saturate(160%);
        filter: url(#glass-distortion);
        pointer-events: none;
        z-index: 0;
        opacity: 0.7;
    }

    html:not(.is-safari) .feature > * {
        position: relative;
        z-index: 1;
    }
}


.feature-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
    font-weight: 600;
}

.feature p {
    color: var(--color-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Privacy Section */
.privacy {
    padding: 6rem 2rem;
    background: #f8fafc;
}

.section-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: block;
}

.privacy h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-dark);
    font-weight: 700;
}

.privacy .intro {
    text-align: center;
    font-size: 1.25rem;
    color: var(--color-secondary);
    margin: 0 auto 3rem;
    max-width: 600px;
}

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

.policy-section {
    margin-bottom: 3rem;
}

.policy-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
    font-weight: 600;
}

.policy-section p {
    color: var(--color-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.policy-section ul {
    margin-left: 2rem;
    color: var(--color-secondary);
    line-height: 1.8;
}

.policy-section li {
    margin-bottom: 0.5rem;
}

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

.policy-section a:hover {
    text-decoration: underline;
}

.policy-highlight {
    background: #ffffff;
    border: 2px solid var(--color-primary);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.policy-highlight p {
    font-size: 1.125rem;
    color: var(--color-dark);
    margin: 0;
    font-weight: 500;
}

/* FAQ Section */
.faq {
    padding: 6rem 2rem;
    background: #ffffff;
}

.faq h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-dark);
    font-weight: 700;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #ffffff;
}

.faq-question {
    padding: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
    transition: background 0.2s ease;
    user-select: none;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 2000px;
}

.faq-answer p {
    color: var(--color-secondary);
    line-height: 1.8;
}

.faq-link {
    text-align: center;
    margin-top: 3rem;
}

.faq-link a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
}

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

/* Download Section */
.download {
    padding: 6rem 2rem;
    background: #f8fafc;
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
    font-weight: 700;
}

.download > p {
    font-size: 1.25rem;
    color: var(--color-secondary);
    margin-bottom: 2rem;
}

.app-store-badge {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.app-store-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.requirements {
    margin-top: 1rem;
    color: var(--color-secondary);
    font-size: 0.875rem;
}

/* Footer - Glassmorphism */
footer {
    padding: 3rem 2rem;
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.95) 0%,
        rgba(15, 23, 42, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}


.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand img {
    width: 50px;
    height: 50px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-content {
        padding: 0.75rem 0;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    /* Show hamburger on mobile */
    .hamburger {
        display: flex;
    }

    /* Hide nav links by default on mobile */
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        border-left: 1px solid #e2e8f0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.125rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .nav-links .btn-primary {
        margin-top: 1rem;
        text-align: center;
        padding: 0.75rem 1.5rem;
        border-bottom: none;
    }

    .hero {
        padding: 6rem 1rem 4rem;
        min-height: auto;
    }

    .hero-logo {
        width: 150px;
        height: 150px;
    }

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

    .hero .tagline {
        font-size: 1.25rem;
    }

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

    .features {
        padding: 3rem 1rem 15rem;
    }

    .features h2,
    .privacy h2,
    .faq h2,
    .download h2 {
        font-size: 1.75rem;
        line-height: 1.2;
        word-spacing: 100vw;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Smooth transitions */
a,
button {
    transition: all 0.2s ease;
}

/* Fix for blue line at top of page */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Completely hide skip-to-content link when not focused */
.skip-to-content {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    overflow: hidden;
    white-space: nowrap;
    position: absolute !important;
}

.skip-to-content:focus {
    clip: auto;
    clip-path: none;
    height: auto;
    width: auto;
    overflow: visible;
    white-space: normal;
    top: 0 !important;
    left: 0 !important;
    z-index: 10000;
}

/* Liquid Glass Settings Panel */
.glass-settings-panel {
    position: fixed;
    right: -400px;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    max-height: 80vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 1.5rem 0 0 1.5rem;
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.glass-settings-panel.open {
    right: 0;
}

.settings-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark);
}

.close-button {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.close-button:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-dark);
}

.settings-content {
    padding: 1.5rem;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

/* Fix setting group layout */
.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}

.setting-group input[type="range"] {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 0;
}

.setting-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.setting-group input[type="range"]::-webkit-slider-thumb:hover {
    background: #1e40af;
    transform: scale(1.1);
}

.setting-group input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.setting-group input[type="range"]::-moz-range-thumb:hover {
    background: #1e40af;
    transform: scale(1.1);
}

.setting-value {
    display: inline;
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.settings-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.action-button {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.action-button:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

/* Settings Cog Button - Fallback styling (glass version preferred) */
.settings-cog {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    animation: glass-pulse 2s ease-in-out infinite;
    font-size: 24px;
}

.settings-cog:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes glass-pulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

/* Chat Placeholder Button (when cookies rejected) */
.chat-placeholder {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    animation: pulse 2s ease-in-out infinite;
    font-size: 1.75rem;
}

.chat-placeholder.show {
    display: flex;
}

.chat-placeholder:hover {
    background: rgba(30, 64, 175, 0.95);
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Chat Placeholder Tooltip */
.chat-placeholder-tooltip {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 1.25rem;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 320px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-placeholder-tooltip.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.chat-placeholder-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 1.5rem;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(30, 41, 59, 0.98);
}

.chat-placeholder-tooltip h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.chat-placeholder-tooltip p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.chat-placeholder-tooltip .tooltip-actions {
    display: flex;
    gap: 0.5rem;
}

.chat-placeholder-tooltip button {
    flex: 1;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-placeholder-tooltip .btn-enable {
    background: var(--color-primary);
    color: white;
}

.chat-placeholder-tooltip .btn-enable:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.chat-placeholder-tooltip .btn-close {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-placeholder-tooltip .btn-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile adjustments for settings */
@media (max-width: 768px) {
    .glass-settings-panel {
        width: 100%;
        right: -100%;
        border-radius: 0;
    }

    .settings-cog {
        bottom: 1rem;
        left: 1rem;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .chat-placeholder {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .chat-placeholder-tooltip {
        bottom: 5rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    .chat-placeholder-tooltip::after {
        right: 1rem;
    }
}

/* Toggle Switch */
.toggle-group {
    margin-bottom: 1rem;
}

.toggle-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.toggle-label > span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-dark);
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

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

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

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

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

.settings-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
}

/* Hide original settings cog when glass version is active */
.settings-cog.glass-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    display: none !important;
}

