/* CSS Variables for Dark Theme */
:root {
    --primary-color: #6366f1;
    --primary-hover: #5856eb;
    --secondary-color: #f59e0b;
    --bg-dark: #0f0f23;
    --bg-dark-lighter: #1a1a3a;
    --bg-card: #262640;
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #cbd5e1;
    --border-color: #334155;
    --accent-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    
    /* Typography */
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 18px;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo h1 {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    padding: 120px 2rem 80px;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    width: 100%;
}

.hero-content {
    text-align: center;
    width: 100%;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-sans);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.hero-screenshot {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

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

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
}

/* Sections */
.section-title {
    font-family: var(--font-sans);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Warning Box */
.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    color: var(--text-secondary);
    text-align: center;
}

.warning h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Installation Instructions */
.install-instructions {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin: 2rem 0;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.download-option .install-instructions h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-sans);
    text-align: left;
}

.install-instructions ol {
    padding-left: 1.2rem;
}

.install-instructions li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.install-instructions strong {
    color: var(--text-primary);
}

.install-instructions ul {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
}

.install-instructions ul li {
    margin-bottom: 0.5rem;
}

.install-instructions code {
    background: var(--bg-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    color: var(--primary-color);
}

.github-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.github-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Install Status */
.install-status {
    background: var(--bg-dark-lighter);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    display: none;
}

.install-status.success {
    border: 1px solid #22c55e;
    color: #22c55e;
}

.install-status.warning {
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

.install-status.info {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--bg-dark-lighter);
}

.features .container {
    max-width: none;
    padding: 0 0.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    margin: 0 auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--secondary-color);
}

/* Filter Icon */
.filter-lines {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.filter-line {
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.filter-line:nth-child(1) {
    width: 18px;
    background: #ef4444;
}
.filter-line:nth-child(2) {
    width: 24px;
    background: #f59e0b;
}
.filter-line:nth-child(3) {
    width: 14px;
    background: #10b981;
}

.feature-card:hover .filter-line:nth-child(1) {
    background: #dc2626;
}
.feature-card:hover .filter-line:nth-child(2) {
    background: #d97706;
}
.feature-card:hover .filter-line:nth-child(3) {
    background: #059669;
}

/* Sort Icon */
.sort-arrows {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sort-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    transition: all 0.3s ease;
}

.sort-arrow.up {
    border-bottom: 6px solid #10b981;
}

.sort-arrow.down {
    border-top: 6px solid #ef4444;
}

.feature-card:hover .sort-arrow.up {
    border-bottom-color: #059669;
}

.feature-card:hover .sort-arrow.down {
    border-top-color: #dc2626;
}

/* Health Icon */
.health-heart {
    position: relative;
    width: 20px;
    height: 18px;
}

.heart-shape {
    position: absolute;
    width: 20px;
    height: 18px;
    background: #f59e0b;
    transition: all 0.3s ease;
}

.heart-shape::before,
.heart-shape::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 15px;
    background: #f59e0b;
    border-radius: 10px 10px 0 0;
    transition: all 0.3s ease;
}

.heart-shape::before {
    left: 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
    background: #10b981;
}

.heart-shape::after {
    right: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
    background: #ef4444;
}

.feature-card:hover .heart-shape {
    background: #d97706;
}

.feature-card:hover .heart-shape::before {
    background: #059669;
}

.feature-card:hover .heart-shape::after {
    background: #dc2626;
}

.usability-checkboxes {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    height: 3rem;
}

.checkbox {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 2px solid #fff;
    position: relative;
}

.checkbox.red {
    background-color: #ef4444;
}

.checkbox.yellow {
    background-color: #eab308;
}

.checkbox.green {
    background-color: #22c55e;
}

.checkbox::after {
    content: '✓';
    color: white;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.feature-card h3 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
}

.how-it-works-tabs {
    margin-top: 3rem;
}

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

.tab-button {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Download Section */
.download {
    padding: 80px 0;
    background: var(--bg-dark-lighter);
    text-align: center;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.download-option {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.download-option h3 {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.download-option > p {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.option-visual {
    margin: 2rem 0;
    text-align: center;
}

.option-screenshot {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.clickable-image {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clickable-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.image-caption {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

.download-description {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.download-option-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 600px) {
    .download-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 3rem;
    }
}

.download-info {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-top: 3rem;
}

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

.contact-form {
    text-align: left;
    padding-top: 1rem;
}

.contact-info h3,
.contact-form h3 {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.developer-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    margin-top: 2rem;
}

.contact-options {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
}

.whatsapp-btn:hover {
    border-color: #25d366;
    color: #25d366;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.2);
}

.github-discussions-btn:hover {
    border-color: #f97316;
    color: #f97316;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.2);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.contact-icon {
    font-size: 1.5rem;
}

.gravatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    display: block;
    margin: 1rem 0 1rem auto;
}

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

/* Footer */
.footer {
    background: var(--bg-dark-lighter);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.footer-text p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

.footer-text p:first-child {
    font-weight: 500;
    color: var(--text-secondary);
}

.footer-links {
    margin-top: 0;
}

.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-options {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 200px;
    }

    .footer-branding {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-logo {
        width: 64px;
        height: 64px;
    }
    
    .download-options {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .tab-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .nav-logo-icon {
        width: 45px;
        height: 45px;
    }

    .nav-logo h1 {
        font-size: 1.4rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 1rem;
    }
}

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(8px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 95%;
    max-width: 1600px;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    animation: modalZoom 0.3s ease;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
    text-decoration: none;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1rem;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes modalZoom {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        max-height: 85vh;
    }
    
    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .modal-caption {
        font-size: 0.9rem;
        bottom: 10px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    left: 2rem;
    bottom: 2rem;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    white-space: nowrap;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

@media (max-width: 768px) {
    .back-to-top {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        left: 1rem;
        bottom: 1rem;
    }
}

/* Privacy Policy Modal */
.privacy-modal-content {
    background-color: var(--bg-dark);
    margin: 2% auto;
    padding: 0;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    animation: modalZoom 0.4s ease, modalFadeIn 0.3s ease;
    position: relative;
    top: 0;
    transform: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--bg-dark-lighter), var(--bg-card));
    padding: 2rem 2.5rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(249, 115, 22, 0.1));
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}

.modal-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

    .modal-logo {
        width: 68px;
        height: 68px;
    }

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.modal-header .modal-close {
    position: static;
    color: var(--text-secondary);
    font-size: 32px;
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem;
    background: none;
    border: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    line-height: 1;
}

.modal-header .modal-close:hover {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
    transform: scale(1.1);
}

.modal-body {
    padding: 3rem 2.5rem;
    max-height: calc(85vh - 120px);
    overflow-y: auto;
    color: var(--text-primary);
    position: relative;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-dark-lighter);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.policy-last-updated {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    font-style: italic;
    text-align: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Policy Tabs */
.policy-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.policy-tab {
    background: none;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.2rem;
    margin: 0;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
    flex: 1;
    min-width: 140px;
    text-align: center;
}

.policy-tab:hover {
    color: var(--text-primary);
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.policy-tab.active {
    color: var(--text-primary);
    border-color: var(--primary-color);
    background: var(--primary-color);
    border-bottom-color: var(--bg-dark);
}

.policy-content {
    display: none;
}

.policy-content.active {
    display: block;
}

.policy-content h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 2.5rem 0 1rem 0;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.3rem;
}

.policy-content h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 1px;
}

.policy-content h4:first-of-type {
    margin-top: 0;
}

.policy-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.policy-footer h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.policy-footer h4:first-of-type {
    margin-top: 0;
}

.policy-content h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin: 3rem 0 1.5rem 0;
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 0.5rem;
}

.policy-content h3:first-child {
    margin-top: 0;
}

.policy-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.policy-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: justify;
}

.policy-content ul {
    margin: 1.5rem 0 2rem 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.policy-content li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    position: relative;
    padding-left: 0.5rem;
}

.policy-content li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

.policy-content strong {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.05em;
}

.policy-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border-bottom: 1px solid transparent;
}

.policy-content a:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary-hover);
    text-decoration: none;
}

@media (max-width: 768px) {
    .privacy-modal-content {
        width: 95%;
        margin: 1% auto;
        max-height: 95vh;
        border-radius: 12px;
    }

    .modal-header {
        padding: 1.5rem 2rem;
        border-radius: 12px 12px 0 0;
    }

    .modal-title-section {
        gap: 0.75rem;
    }

    .modal-logo {
        width: 75px;
        height: 75px;
    }

.modal-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    flex-shrink: 0;
}

    .modal-header h2 {
        font-size: 1.8rem;
    }

    .modal-header .modal-close {
        font-size: 28px;
        padding: 0.25rem;
        margin: -0.25rem;
    }

    .modal-body {
        padding: 2rem 1.5rem;
        max-height: calc(95vh - 100px);
    }

    .policy-last-updated {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        padding: 0.75rem;
    }

    .policy-content h3 {
        font-size: 1.4rem;
        margin: 2.5rem 0 1.2rem 0;
    }

    .policy-content h3::after {
        width: 40px;
        height: 2px;
    }

    .policy-content p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.2rem;
    }

    .policy-content ul {
        margin: 1.2rem 0 1.5rem 1.5rem;
        font-size: 1rem;
    }

    .policy-content li {
        margin-bottom: 0.6rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .privacy-modal-content {
        width: 98%;
        margin: 0.5% auto;
        max-height: 98vh;
    }

    .modal-header {
        padding: 1.2rem 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.6rem;
    }

    .modal-body {
        padding: 1.5rem 1.2rem;
        max-height: calc(98vh - 80px);
    }

    .policy-last-updated {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        padding: 0.6rem;
    }

    .policy-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .policy-tab {
        width: 100%;
        max-width: 280px;
        margin: 0;
        border-radius: 6px;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .policy-content h3 {
        font-size: 1.4rem;
        margin: 2rem 0 1rem 0;
    }

    .policy-content h4 {
        font-size: 1.1rem;
        margin: 2rem 0 0.8rem 0;
    }

    .policy-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .policy-content ul {
        margin: 1rem 0 1.2rem 1.2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .policy-tabs {
        padding-bottom: 0.5rem;
    }

    .policy-tab {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
        max-width: 180px;
    }

    .policy-content h3 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.8rem 0;
    }

    .policy-content h4 {
        font-size: 1rem;
        margin: 1.5rem 0 0.6rem 0;
    }

    .policy-content p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .policy-content ul {
        margin: 0.8rem 0 1rem 1rem;
        font-size: 0.9rem;
    }

    .policy-footer {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .policy-footer h4 {
        font-size: 1rem;
        margin: 1.2rem 0 0.6rem 0;
    }
}

    .policy-footer {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .policy-footer h4 {
        font-size: 1.1rem;
        margin: 1.5rem 0 0.8rem 0;
    }
}