:root {
    /* 60% Dominant: Pure White/Neutral Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;

    /* 30% Secondary: Text and Structual Neutrals */
    --text-primary: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --nav-bg: rgba(255, 255, 255, 0.9);

    /* 10% Accent: Brand Blue */
    --primary-color: #1DA1F2;
    --primary-hover: #0c85d0;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navbar Implementation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(8px);
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    height: 80px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -1px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2.5px solid var(--primary-color);
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: none;
    box-shadow: none;
}

.btn-primary:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
    pointer-events: none;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 120px;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(29, 161, 242, 0.05) 0%, transparent 40%),
        radial-gradient(circle at bottom left, rgba(29, 161, 242, 0.02) 0%, transparent 40%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: rgba(29, 161, 242, 0.08);
    color: var(--primary-color);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 0 rgba(29, 161, 242, 0.7);
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(29, 161, 242, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(29, 161, 242, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(29, 161, 242, 0);
    }
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* X Demo Section */
.x-demo-container {
    background-color: #000000;
    color: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    width: 100%;
    max-width: 550px;
    border: 1px solid #333639;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: left;
    position: relative;
    z-index: 10;
}

.demo-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1d9bf0;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    background: rgba(29, 155, 240, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 99px;
    animation: fadeInDown 0.8s ease-out both;
}

.arrow-down-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-4px);
    }

    60% {
        transform: translateY(-2px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.reply-info {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.x-post {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.post-avatar {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post-avatar::after {
    content: '';
    position: absolute;
    top: 52px;
    bottom: -20px;
    width: 2px;
    background-color: #333639;
}

.post-avatar img,
.reply-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.post-body {
    flex: 1;
}

.post-info {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    margin-bottom: 0.25rem;
}

.post-name {
    font-weight: 700;
    font-size: 15px;
}

.post-handle {
    color: #71767b;
    font-size: 15px;
}

.post-content {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.post-replying-to {
    color: #71767b;
    font-size: 15px;
}

.post-replying-to span {
    color: #1d9bf0;
}

.x-reply-area {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
}

.reply-input-container {
    flex: 1;
}

.reply-placeholder {
    color: #71767b;
    font-size: 20px;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.ai-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.ai-pill {
    background: transparent;
    border: 1px solid #1d9bf0;
    color: #1d9bf0;
    border-radius: 99px;
    padding: 0.4rem 1rem;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    z-index: 12;
}

.ai-pill:hover {
    background: rgba(29, 155, 240, 0.1);
}

.ai-pill.active {
    background: #1d9bf0;
    color: #ffffff;
}

.reply-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
}

.reply-icons {
    display: flex;
    gap: 1rem;
    color: #1d9bf0;
}

.icon-sm {
    width: 20px;
    height: 20px;
    fill: currentColor;
    cursor: pointer;
}

.icon-sm:hover {
    color: rgba(29, 155, 240, 0.8);
}

.x-reply-btn {
    background-color: #ffffff;
    color: #0f1419;
    opacity: 0.5;
    border: none;
    border-radius: 99px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 15px;
    cursor: not-allowed;
    transition: all 0.2s;
}

.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* Stats Section */
.stats-section {
    padding: 60px 0;
    background-color: var(--bg-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-color);
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Comparison Cards Section */
.comparison-cards-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

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

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

.comp-card {
    background: white;
    border-radius: 32px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: var(--transition);
}

.comp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.comp-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.comp-badge.premium {
    background: rgba(29, 161, 242, 0.1);
    color: var(--primary-color);
}

.comp-list {
    list-style: none;
    padding: 0;
}

.comp-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.comp-list li:last-child {
    margin-bottom: 0;
}

.comp-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.replx .comp-icon {
    background: rgba(29, 161, 242, 0.1);
    color: var(--primary-color);
}

.comp-icon svg {
    width: 24px;
    height: 24px;
}

.comp-list strong {
    display: block;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.comp-list span {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Featured (Replx) card subtle glow */
.comp-card.replx {
    border: 2px solid rgba(29, 161, 242, 0.2);
}

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

/* Footer Implementation (Secondary Background - 30%) */
.footer {
    background-color: var(--bg-secondary);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    display: block;
    text-decoration: none;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

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

    .hero p {
        margin: 0 auto 2.5rem;
    }

    .showcase-card {
        transform: none;
    }
}





@media (max-width: 768px) {

    .nav-links,
    .btn-primary {
        display: none;
    }

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

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


/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: white;
}

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

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    font-family: inherit;
    transition: var(--transition);
}

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

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.4s ease;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-content {
    min-height: 0;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    padding-bottom: 1.5rem;
}

/* Calculator Section */
.calculator-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

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

.calc-card,
.calc-info-box {
    background: white;
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calc-header label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

#reply-count {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.slider-container {
    margin-bottom: 3rem;
}

.replx-slider {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 99px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.replx-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border: 4px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
    transition: var(--transition);
}

.replx-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.calc-result {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.result-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.result-display {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

#hours-saved {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.unit {
    color: var(--text-muted);
    font-weight: 500;
}

.calc-info-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(29, 161, 242, 0.1);
    color: var(--primary-color);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.calc-info-box h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.calc-info-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .calc-card,
    .calc-info-box {
        padding: 2rem;
    }
}

/* Account Section Layout */
.account-section {
    padding: 120px 0;
    text-align: center;
}

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

.pricing-section {
    padding: 120px 0 80px;
    background: white;
}

.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 4rem;
}

.pricing-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    z-index: 1;
}

.pricing-card.featured:hover {
    transform: translateY(-8px);
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tier-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}

.features-list {
    list-style: none;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.features-list li svg {
    margin-right: 12px;
    flex-shrink: 0;
    color: var(--primary-color);
}

.features-list li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.6;
}

.features-list li.disabled svg {
    color: var(--text-muted);
}

.btn-pricing {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: 2px solid var(--primary-color);
}

.btn-pricing.outline {
    background: transparent;
    color: var(--primary-color);
}

.btn-pricing.outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-pricing.solid {
    background: var(--primary-color);
    color: white;
}

.btn-pricing.solid:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
}

.btn-pricing:disabled {
    background-color: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    box-shadow: none !important;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-header h2 {
        font-size: 2.2rem;
    }
}

/* Comparison Table Styles */
.comparison-section {
    margin-top: 100px;
}

.comparison-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.table-container {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
}

.comparison-table th {
    background-color: white;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.comparison-table th:first-child {
    border-top-left-radius: 20px;
}

.comparison-table th:last-child {
    border-top-right-radius: 20px;
}

.comparison-table td {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.comparison-table td:first-child {
    font-weight: 500;
    color: var(--text-primary);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background-color: transparent;
}

.icon-yes {
    color: var(--primary-color);
    /* Blue */
}

.icon-no {
    color: var(--text-muted);
    /* Gray */
}

.footer {
    background-color: white !important;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.modal-content {
    background: white;
    padding: 3.5rem;
    border-radius: 40px;
    max-width: 540px;
    width: 90%;
    position: relative;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Close animation state */
.modal-overlay:not(.active) .modal-content {
    transform: scale(0.95) translateY(-10px);
    opacity: 0;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

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

.modal-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.modal-body p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-footer {
    margin-top: 1.5rem;
}