:root {
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.dark {
    --glass-bg: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-dashboard {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.1);
}

.dark .glass-dashboard {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.4);
}

.dark .glass-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.dark #preloader {
    background: #020617;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid #e2e8f0;
    border-top-color: #1D4ED8;
    animation: spin 0.8s linear infinite;
}

.dark .loader-ring {
    border-color: #1e293b;
    border-top-color: #3b82f6;
}

.loader-inner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    border-top-color: #14B8A6;
    animation: spin 1.2s linear infinite reverse;
    position: absolute;
}

.dark .loader-inner {
    border-color: #1e293b;
    border-top-color: #14B8A6;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.dark ::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #334155;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Marquee animation */
.marquee-container {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.dark .marquee-container {
    mask-image: linear-gradient(to right, transparent, #020617 15%, #020617 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #020617 15%, #020617 85%, transparent);
}

/* Smooth mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* FAQ accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.open {
    max-height: 300px;
}

/* Testimonial dots */
.testimonial-dot.active {
    background: #1D4ED8;
    width: 28px;
    border-radius: 10px;
}

.dark .testimonial-dot.active {
    background: #3b82f6;
}

html,
body {
    overflow-x: hidden;
}

/* Terms typography */
.terms-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #0F172A;
}

.dark .terms-content h2 {
    color: #F8FAFC;
}

.terms-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.dark .terms-content h3 {
    color: #e2e8f0;
}

.terms-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.terms-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.terms-content ul li {
    margin-bottom: 0.5rem;
}

/* Article typography */
.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #0F172A;
}

.dark .article-content h2 {
    color: #F8FAFC;
}

.article-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.dark .article-content h3 {
    color: #e2e8f0;
}

.article-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.article-content blockquote {
    border-left: 4px solid #3b82f6;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #eff6ff;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
}

.dark .article-content blockquote {
    background: rgba(29, 78, 216, 0.15);
    border-color: #60a5fa;
}

.article-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-content ul li {
    margin-bottom: 0.5rem;
}

.article-content a {
    color: #1D4ED8;
    text-decoration: underline;
    font-weight: 500;
}

.dark .article-content a {
    color: #60a5fa;
}

/* Privacy content typography */
.privacy-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #0F172A;
}

.dark .privacy-content h2 {
    color: #F8FAFC;
}

.privacy-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.dark .privacy-content h3 {
    color: #e2e8f0;
}

.privacy-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.privacy-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.privacy-content ul li {
    margin-bottom: 0.5rem;
}

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

.faq-answer.open {
    max-height: 400px;
}

.faq-item {
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.dark .faq-item:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}