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

:root {
    --primary: #00B2CA;
    --primary-light: #2dd1e7;
    --primary-dark: #008ea1;
    --accent: #FA6E53;
    --accent-light: #ffa08e;
    --bg-light: #F6F5FA;
    --bg-white: #ffffff;
    --bg-dark: #071c1f;
    --bg-darker: #041012;
    --text-dark: #1A202C;
    --text-muted: #5A6A85;
    --text-white: #ffffff;
    --text-light-muted: #94b2b6;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(0, 178, 202, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --transition-speed: 0.3s;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    font-weight: 700;
    color: var(--text-dark);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 15px;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(0, 178, 202, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 178, 202, 0.45);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid rgba(0, 178, 202, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(0, 178, 202, 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
}

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

.btn-xs {
    padding: 5px 12px;
    font-size: 11px;
    border-radius: 4px;
}

/* Header & Sticky Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-speed) ease;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 178, 202, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 178, 202, 0.25);
    border: 1px solid rgba(0, 178, 202, 0.1);
}

.logo-text {
    font-family: var(--font-header);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-header);
    font-weight: 500;
    font-size: 15px;
    transition: color var(--transition-speed) ease;
}

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

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition-speed) ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 150px;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 178, 202, 0.15) 0%, rgba(250, 110, 83, 0.02) 50%, rgba(0,0,0,0) 100%);
    z-index: 0;
    pointer-events: none;
    filter: blur(80px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 178, 202, 0.1);
    border: 1px solid var(--card-border);
    color: var(--primary-dark);
    padding: 8px 18px;
    border-radius: 50px;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.15;
    margin-bottom: 20px;
}

.highlight-teal {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 178, 202, 0.1);
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 550px;
}

.cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item h3 {
    font-size: 28px;
    color: var(--primary);
}

.stat-item p {
    font-size: 13px;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 30px;
    background-color: rgba(0,0,0,0.06);
}

/* Phone Mockup Frame Styling */
.phone-frame {
    width: 100%;
    max-width: 290px;
    height: 580px;
    background-color: #0c1416;
    border: 10px solid #28373a;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(0,0,0,0.8), 0 0 25px rgba(0, 178, 202, 0.15);
    position: relative;
    overflow: hidden;
}

.phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Floating Badges Visual Wrapper */
.visual-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    animation: float 4s ease-in-out infinite;
}

.floating-card.c1 {
    top: 15%;
    left: -20px;
    animation-delay: 0s;
}

.floating-card.c2 {
    bottom: 15%;
    right: -20px;
    animation-delay: 2s;
}

.floating-card .emoji {
    font-size: 24px;
}

.floating-card h5 {
    font-size: 13px;
    margin-bottom: 2px;
}

.floating-card p {
    font-size: 11px;
    color: var(--text-muted);
}

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

/* Section Common Headers */
.section-header {
    margin-bottom: 60px;
}

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

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 12px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto;
}

/* Origin Section */
.origin-section {
    padding: 80px 0;
    background-color: var(--bg-white);
    border-top: 1px solid rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.origin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.origin-card {
    background: var(--bg-light);
    border: 1px solid rgba(0, 178, 202, 0.05);
    border-radius: 20px;
    padding: 36px;
    transition: all var(--transition-speed) ease;
}

.origin-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 178, 202, 0.1);
}

.card-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
}

.origin-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.origin-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Features Section */
.features-section {
    padding: 100px 0;
}

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

.feature-item {
    padding: 24px;
    border-radius: 16px;
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all var(--transition-speed) ease;
}

.feature-item:hover {
    background: var(--bg-white);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 178, 202, 0.05);
}

.feature-icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 178, 202, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 16px;
}

.feature-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 13px;
}

/* Real App Interface Showcase Section */
.showcase-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.showcase-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.showcase-tab-btn {
    padding: 12px 24px;
    background-color: var(--bg-light);
    border: 1px solid rgba(0, 178, 202, 0.1);
    color: var(--text-muted);
    border-radius: 30px;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.showcase-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.showcase-tab-btn.active {
    background-color: var(--primary);
    border-color: var(--primary-light);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(0, 178, 202, 0.25);
}

.showcase-display-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.showcase-text-pane h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.showcase-text-pane p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.app-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.highlight-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.highlight-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
}

.showcase-phone-pane {
    display: flex;
    justify-content: center;
}

.showcase-phone {
    max-width: 280px;
    height: 570px;
}

/* Digital Tasbeeh Section (Light In-App Layout) */
.tasbeeh-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.tasbeeh-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tasbeeh-visual-pane {
    display: flex;
    justify-content: center;
}

.phone-screen.light-theme-screen {
    background-color: #F7F8FA;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mock-status-bar.dark-text {
    color: #4A5568;
    padding: 8px 16px 2px;
    font-size: 10px;
    font-weight: 700;
}

/* Tasbeeh Header Styles */
.tasbeeh-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: transparent;
}

.tasbeeh-app-header i {
    font-size: 14px;
    color: #718096;
    cursor: pointer;
    transition: transform var(--transition-speed);
}

.tasbeeh-app-header i:hover {
    color: var(--primary);
}

.tasbeeh-header-text {
    text-align: center;
    flex-grow: 1;
}

.tasbeeh-header-sub {
    font-size: 8px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.tasbeeh-header-title {
    font-size: 13px;
    font-weight: 700;
    color: #1A202C;
    margin-top: 1px;
}

/* Tasbeeh Progress Bar */
.tasbeeh-progress-wrapper {
    padding: 8px 16px;
}

.tasbeeh-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #A0AEC0;
    font-weight: 700;
    margin-bottom: 6px;
}

.tasbeeh-progress-bar-container {
    width: 100%;
    height: 3px;
    background-color: #E2E8F0;
    border-radius: 2px;
    overflow: hidden;
}

.tasbeeh-progress-bar-fill {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.15s ease-out;
}

/* Circular Tap Area */
.tasbeeh-click-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 16px;
}

.tasbeeh-circle-outer {
    width: 195px;
    height: 195px;
    border-radius: 50%;
    border: 5px solid rgba(0, 178, 202, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    transition: transform 0.05s ease-out;
}

.tasbeeh-circle-inner {
    width: 175px;
    height: 175px;
    border-radius: 50%;
    border: 1px solid rgba(0, 178, 202, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tasbeeh-count-number {
    font-size: 64px;
    font-weight: 800;
    color: #1A202C;
    line-height: 1;
    margin-bottom: 2px;
}

.tasbeeh-count-label {
    font-size: 8px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.tasbeeh-tap-hint {
    font-size: 9px;
    color: #A0AEC0;
    margin-top: 20px;
}

/* Bottom Card Styles */
.tasbeeh-bottom-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 16px 20px;
    margin: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.01);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.tasbeeh-card-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 2px;
}

.tasbeeh-card-navigation i {
    font-size: 11px;
    color: var(--primary);
    cursor: pointer;
    padding: 6px;
    transition: transform var(--transition-speed);
}

.tasbeeh-card-navigation i:hover {
    transform: scale(1.2);
}

.tasbeeh-arabic-text {
    font-size: 24px;
    font-weight: 600;
    color: #1A202C;
    font-family: 'Outfit', sans-serif;
}

.tasbeeh-translit-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

.tasbeeh-meaning-text {
    font-size: 9px;
    color: #718096;
    font-style: italic;
}

.recitation-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recitation-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: var(--bg-white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.count-badge {
    background-color: var(--primary);
    color: var(--text-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* Join Journey Section */
.join-section {
    padding: 80px 0;
}

.join-wrapper {
    background: radial-gradient(ellipse at center, rgba(0, 178, 202, 0.08) 0%, rgba(0,0,0,0) 70%);
}

.max-w-600 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.join-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.join-option {
    background: var(--bg-white);
    border: 1px solid rgba(0, 178, 202, 0.05);
    border-radius: 16px;
    padding: 30px;
}

.opt-icon {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 16px;
}

.join-option h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.join-option p {
    color: var(--text-muted);
    font-size: 13px;
}

/* Download Section */
.download-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, #dbe8ea 100%);
    position: relative;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #0c1416;
    color: var(--text-white);
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-speed);
}

.store-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 178, 202, 0.15);
}

.store-button.store-button-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.store-button.store-button-disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.store-button i {
    font-size: 24px;
}

.store-button div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-button div span {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-light-muted);
}

.store-button div strong {
    font-family: var(--font-header);
    font-size: 14px;
    font-weight: 700;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.contact-card {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(7, 28, 31, 0.15);
    z-index: 1;
    border: 1px solid var(--card-border);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 178, 202, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.contact-card h2 {
    color: var(--text-white);
    font-size: 32px;
    margin-bottom: 16px;
    font-family: var(--font-header);
    font-weight: 700;
}

.contact-card p {
    color: var(--text-light-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.contact-card .btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--accent);
    color: var(--text-white);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(250, 110, 83, 0.3);
}

.contact-card .btn-contact:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 178, 202, 0.4);
}

/* Footer Section */
.footer {
    background-color: #091315;
    padding: 80px 0 20px;
    color: var(--text-light-muted);
}

.footer h4 {
    color: var(--primary);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-light-muted);
    font-size: 13px;
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-light-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--transition-speed);
}

.footer-links ul li a:hover {
    color: var(--text-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-light-muted);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .visual-wrapper {
        justify-content: center;
    }

    .floating-card.c1 {
        left: 10%;
    }

    .floating-card.c2 {
        right: 10%;
    }

    .showcase-display-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

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

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

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

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-white);
        border-left: 1px solid var(--card-border);
        flex-direction: column;
        justify-content: center;
        gap: 36px;
        transition: right var(--transition-speed) cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 1000;
    }

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

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

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

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

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-card {
        display: none;
    }
}

/* Dynamic Content Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 16, 18, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed) ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--bg-white);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    width: 90%;
    max-width: 650px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 178, 202, 0.15);
    transform: translateY(20px);
    transition: transform var(--transition-speed) cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-header h3 {
    font-size: 20px;
    font-family: var(--font-header);
    color: var(--text-dark);
}

.modal-close {
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-speed);
}

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

.modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.modal-body h1, .modal-body h2, .modal-body h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-family: var(--font-header);
}

.modal-body p {
    margin-bottom: 12px;
}

.modal-body ul, .modal-body ol {
    margin-left: 20px;
    margin-bottom: 16px;
}

.modal-body li {
    margin-bottom: 6px;
}

/* Loader */
.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 178, 202, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    margin: 40px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Legal/Separate Info Pages Styles */
.legal-page-container {
    padding-top: 120px;
    padding-bottom: 80px;
}

.legal-card {
    background-color: var(--bg-white);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 178, 202, 0.02);
    max-width: 800px;
    margin: 80px auto 0;
}

.legal-title {
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 8px;
    color: var(--text-dark);
}

.legal-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 12px;
}

.legal-content {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.8;
}

.legal-content h1, .legal-content h2, .legal-content h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-family: var(--font-header);
}

.legal-content p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

.legal-content ul, .legal-content ol {
    margin-left: 24px;
    margin-bottom: 20px;
}

.legal-content li {
    margin-bottom: 8px;
    color: var(--text-muted);
}
