@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=JetBrains+Mono:wght@400;700&display=swap');

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
    background-color: #050505;
    /* Pure dark */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    color: #e2e8f0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --- Dynamic Backgrounds --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 15% 50%, rgba(88, 28, 135, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.08), transparent 25%);
    z-index: -2;
    pointer-events: none;
}

/* Floating Orbs / Glows */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
    animation: floatGlow 20s infinite alternate ease-in-out;
}

.glow-1 {
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #7c3aed, transparent 70%);
    /* Violet */
}

.glow-2 {
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #2563eb, transparent 70%);
    /* Blue */
    animation-delay: -5s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 30px);
    }
}

/* --- Typography & Gradients --- */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 30%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

p {
    line-height: 1.7;
    color: #94a3b8;
    /* Slate-400 */
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 300;
}

.text-link {
    color: #a78bfa;
    text-decoration: none;
    font-weight: 500;
    margin-left: 1.5rem;
    position: relative;
}

.text-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: #a78bfa;
    transition: width 0.3s;
}

.text-link:hover::after {
    width: 100%;
}

/* --- Buttons --- */
button,
.submit-btn {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}



button:hover,
.submit-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3),
        0 0 40px rgba(167, 139, 250, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* CTA Buttons with Shine Effect */
.cta-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: skewX(-25deg);
    animation: shine-move 8s infinite;
}

.cta-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 12px;
    transition: all 0.3s;
}

.cta-link:hover {
    background: #fff;
    color: #000 !important;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

/* --- Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.3s;
}

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

nav a {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s;
}

nav a.active {
    color: #fff;
    font-weight: 500;
}

nav a:hover {
    color: #fff;
}

.burger-menu {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Page Layouts --- */
main {
    padding-top: 100px;
    min-height: 80vh;
}

/* --- Partner Marquee --- */
.partners-marquee {
    width: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

.marquee-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    align-items: center;
    /* Vertically center everything */
    animation: scroll 30s linear infinite;
}

.partner-item {
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.3s;
    text-decoration: none;
}

.partner-item:hover {
    opacity: 1;
}

.partner-img {
    height: 40px;
    /* Fixed height for uniformity */
    width: auto;
    object-fit: contain;
    /* Determine if we need filter for B/W or color */
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.partner-item:hover .partner-img {
    filter: grayscale(0%);
}

.partner-text {
    color: #94a3b8;
    font-size: 1.2rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.7;
}

.partners-marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 2rem));
        /* Move by half width + half gap */
    }
}

section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Hero */
.hero {
    margin-top: 2rem;
    /* Added spacing from navbar */
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.section-header {
    max-width: 800px;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure centering propagates to children if needed */
.section-title h2 {
    text-align: center;
}

.hero-actions {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: #d8b4fe;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag::before {
    content: attr(data-number);
    opacity: 0.7;
    margin-right: 5px;
}

/* --- Cards & Selectors --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: default;
}

.feature-card.clickable {
    cursor: pointer;
}

.feature-card.clickable:hover {
    background: rgba(30, 30, 30, 0.8);
    transform: translateY(-5px);
    border-color: rgba(167, 139, 250, 0.4);
}

.icon-header {
    font-size: 1.5rem;
    /* Adjusted icon size for cleaner look */
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.card-arrow {
    display: inline-block;
    margin-top: 1rem;
    color: #a78bfa;
    font-weight: bold;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.feature-card.clickable:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* --- Service Details Page --- */
.page-header {
    text-align: center;
    margin-bottom: 8rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-detail {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
}

.service-detail.reverse {
    flex-direction: row-reverse;
}

.service-content {
    flex: 1;
}

.service-visual {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-list {
    list-style: none;
    margin: 2rem 0;
}

.tech-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.code-block pre {
    background: #000;
    padding: 1.5rem;
    border-radius: 8px;
    color: #a5f3fc;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Projects Page --- */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
    background: rgba(167, 139, 250, 0.15);
    color: #fff;
    border-color: rgba(167, 139, 250, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.case-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.case-card:hover {
    transform: translateY(-8px);
    border-color: rgba(167, 139, 250, 0.3);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2),
        0 0 40px rgba(167, 139, 250, 0.1);
}

.case-image {
    height: 200px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.img-placeholder {
    color: #444;
    font-family: 'JetBrains Mono', monospace;
}

.case-content {
    padding: 2rem;
}

.case-tag {
    font-size: 0.75rem;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: block;
    font-weight: 600;
}

.case-content h3 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

.case-content p {
    margin-top: 0.5rem;
    line-height: 1.6;
}

.case-stats {
    list-style: none;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.case-stats li {
    margin-bottom: 0.25rem;
    color: #cbd5e1;
}

/* --- Booking / Calculator --- */
.booking-container {
    max-width: 800px;
    margin: 0 auto;
}

.calc-step {
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.calc-step h3 {
    margin-bottom: 1.5rem;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.calc-option input {
    display: none;
}

.option-card {
    display: block;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.option-card strong {
    display: block;
    color: #fff;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.option-card small {
    color: #94a3b8;
    line-height: 1.5;
    display: block;
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(167, 139, 250, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.calc-option input:checked+.option-card {
    background: rgba(124, 58, 237, 0.2);
    border-color: #a78bfa;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
}

.calc-result {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), transparent);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
}

#price-range {
    display: block;
    font-size: 2.5rem;
    color: #fff;
    margin: 1rem 0;
    background: linear-gradient(90deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.disclaimer {
    font-size: 0.8rem;
    opacity: 0.6;
}

.contact-form-section {
    background: #0f0f0f;
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7c3aed;
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    color: #cbd5e1;
}

.legal-content h2,
.legal-content h3 {
    margin-top: 2.5rem;
    color: #fff;
}

.legal-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

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

/* --- Footer --- */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    padding: 6rem 5% 3rem;
    margin-top: 8rem;
    position: relative;
    overflow: hidden;
}

/* Footer ambient glow */
footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 4rem;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-weight: 500;
}

.footer-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #475569;
    font-size: 0.8rem;
}

/* Animations (Scroll Driven) */
.fade-in,
.slide-in-left,
.slide-in-right {
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}

/* Initial States */
.fade-in {
    transform: translateY(30px) scale(0.95);
    filter: blur(10px);
}

.slide-in-left {
    transform: translateX(-50px);
    filter: blur(10px);
}

.slide-in-right {
    transform: translateX(50px);
    filter: blur(10px);
}

/* Active State */
.visible {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
    filter: blur(0) !important;
}

@keyframes shine-move {
    0% {
        left: -100%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    30% {
        left: 100%;
        opacity: 0;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {

    /* Reduce button text size on mobile */
    .cta-btn,
    .submit-btn {
        font-size: 0.85rem;
        padding: 0.8rem 1.5rem;
    }

    .cta-link {
        font-size: 0.9rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero {
        min-height: auto;
        padding-top: 2rem;
    }

    .nav {
        display: none;
    }

    /* Handled by JS toggling class */
    .burger-menu {
        display: block;
    }

    /* Fix Mobile Headers alignment */
    .section-header,
    .section-title {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .service-detail,
    .service-detail.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    header {
        padding: 1rem 1.5rem;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: #000;
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 1001;
        /* Ensure on top */
    }

    nav.active {
        right: 0;
    }

    .cta-link {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    .logo-img {
        max-width: 65vw;
        height: auto;
        max-height: 24px;
        object-fit: contain;
    }

    /* Mobile Footer */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
        padding-top: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .footer-links a {
        display: block;
        padding: 0.5rem;
        font-size: 1.1rem;
    }

    /* Fix Legal Content for Mobile (cut-off) */
    .legal-content {
        padding: 8rem 1.5rem 2rem !important;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Success Section Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'JetBrains Mono', monospace;
}

.stat-number.text-stat {
    font-size: 2.2rem;
    /* Smaller for text like "Transparent" */
}

.stat-label {
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- Calculator Wizard Styles --- */
.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.modern-input,
.modern-select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.modern-input:focus,
.modern-select:focus {
    outline: none;
    border-color: #a78bfa;
    background: rgba(255, 255, 255, 0.1);
}

.calc-section-label {
    display: block;
    margin-bottom: 0.8rem;
    color: #94a3b8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Grids */
.option-grid.two-col {
    grid-template-columns: 1fr 1fr;
}

.option-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .option-grid.two-col,
    .option-grid.three-col {
        grid-template-columns: 1fr;
    }
}

/* Detailed Result */
.calc-result.detailed {
    text-align: left;
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
}

.line-items-list {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

.summary-row.fee {
    color: #a78bfa;
    font-size: 0.9rem;
}

.total-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(167, 139, 250, 0.3);
    font-size: 1.5rem;
}

.upfront-display {
    text-align: right;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.warning-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
    /* Changed from default block to be controlled by JS 'flex' */
    align-items: flex-start;
    gap: 0.75rem;
}

.warning-icon {
    font-size: 1.1rem;
    margin-top: 2px;
    color: #fca5a5;
}