:root {
    --primary: #D9C3FC;
    --bg: #f0f0f0;
    --card: #ffffff;
}
* {
    box-sizing: border-box;
}
body {
    font-family: "Funnel Display", sans-serif;
    background: var(--bg);
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
}
.container {
    width: 100%; /* Musi wypełniać max-width */
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Wymusza, by dzieci (taby) miały tę samą szerokość */
}
html {
    scrollbar-gutter: stable;
}
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    transition: 0.3s;
}
::-webkit-scrollbar-thumb:hover {
    background: #DAC5FC1A;
}
header {
    flex-direction: row !important; /* Trzymamy je w jednej linii */
    justify-content: space-between;
    padding: 10px 0px;
    display: flex;
    background: rgba(240, 240, 240, 0.8); /* Lekki prześwit tła */
    backdrop-filter: blur(10px); /* Efekt rozmycia szkła */
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-logo-container{
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}
.header-logo-container p{
    margin: 0;
}
.header-logo-container a{
    display: flex;
    align-content: center;
}
.mc-img{
    width: auto;
    height: 20px;
    object-fit: contain;
}
.header-waitlist-container{
    display: flex;
    flex-direction: row;
    gap: 10px;
}
.hidden {
    display: none !important;
}
.actions-bar {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    gap: 10px;
}
.action-element {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-download,.btn-refresh,.btn-waitlist {
    background: #DAC5FC1A;
    color: rgb(0, 0, 0);
    font-family: "Funnel Display", sans-serif;
    border: 1px solid var(--primary);
    padding: 10px 25px;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}
.btn-download:hover, .btn-refresh:hover, .btn-waitlist:hover {
    background: #dac5fc42;
}
#upload-box {
    background: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid var(--primary);
    border-radius: 12px;
    text-align: center;
}
.drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 120px 20px;
    text-align: center;
    background: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
}
.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--primary);
    background: #f5f3ff;
}
.hero-section {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out; /* Płynne wejście przy starcie strony */
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #000000;
    line-height: 1.2;
    margin-bottom: 16px;
}

.accent-text {
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

/* Delikatna kreska pod słowem "uciekają" dla efektu */
.accent-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgb(0 0 0 / 50%);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Animacja wejścia dla całej sekcji */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: #b8b8b8;
    font-size: 0.85rem;
    font-weight: 400;
}
.lock-icon {
    color: #b8b8b8;
}
.browse-text {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}
.file-info {
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}
.file-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.btn-remove {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.btn-remove:hover
{
    background: #fecaca;
}
.btn-analyze {
    background: #DAC5FC1A;
    color: rgb(0, 0, 0);
    font-family: "Funnel Display", sans-serif;
    border: 1px solid var(--primary);
    padding: 10px 25px;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}
.btn-analyze:hover {
    background: #dac5fc42;
}
.grid-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
#dashboard {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.dashboard-fade-in-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
#dashboard.hidden {
    display: none;
    opacity: 0;
    transform: translateY(15px);
}
.left-column,.right-column{
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
}
.stat-card {
    background: #DAC5FC1A;
    padding: 20px;
    border: 1px solid var(--primary);
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    color: black;
}
.stat-card.primary {
    background: var(--primary);
    color: rgb(0, 0, 0);
}
.stat-card:hover{
    background: #dac5fc42;
}
.stat-card.primary:hover {
    background: #D9C3FC;
}
.charts-row {
    display: flex;
    gap: 20px;
    flex-direction: column;
    align-items: center;
}
.chart-container{
    width: 100%;
    padding: 20px;
    height: 350px;
    position: relative;
    margin: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chart-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.info-container{
    width: 100%;
    position: relative;
    margin: auto;
}
.advice-section {
    background: var(--primary);
    padding: 20px;
    border-radius: 10px;
}
ul {
    list-style: none;
    padding: 0;
}
li {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}
#category-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}
.cat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cat-brands {
    font-size: 0.75rem;
    color: #777777;
    font-weight: 300;
}
.cat-perc {
    font-weight: 700;
    color: var(--primary-color);
    background: var(--primary);
    padding: 8px;
    border-radius: 4px;
}
#loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 20px;
    height: 80vh;
}
#loading-text-dynamic {
    display: block;
    min-height: 24px;
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: black;
    font-weight: 300;
    transition: all 0.5s ease;
}
.text-animate {
    animation: slideUpFade 0.1s ease forwards;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Klasa wyjścia (używana przed zmianą tekstu) */
.text-fade-out {
    opacity: 0 !important;
    transform: translateY(-5px) !important;
    transition: all 0.4s ease;
}
.tabs-nav {
    display: flex;
    gap: 15px;
}
.tab-item {
    flex: 1;
    background: #DAC5FC1A;
    padding: 10px 25px;
    border-radius: 100px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
    font-weight: 700;
    border: 1px solid var(--primary);
    font-size: 14px;
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: center;
    align-items: center;
}
.tab-item p{
    margin: 0;
}
.tab-item:hover {
    background: #dac5fc42;
}
.tab-item.active {
    background: #D9C3FC;
    border-color: var(--primary);
}
.scores-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #f2f2f2;
    background: radial-gradient(circle, rgba(242, 242, 242, 1) 21%, rgba(255, 255, 255, 1) 74%);
}
.scores-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.score-box {
    width: 150px;
    height: 150px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #DAC5FC1A;
    transition: 0.3s;
}
.score-box:hover {
    background: #dac5fc42;
}
.main-score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    text-align: center;
    max-width: 500px;
}
.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 8px solid var(--primary); /* Możesz tu dodać gradient później */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #DAC5FC1A;
    box-shadow: 0 10px 30px rgba(217, 195, 252, 0.3);
}

#main-score-val {
    font-size: 3.5rem;
    font-weight: 800;
    color: #000;
}

.score-max {
    font-size: 1.2rem;
    color: #64748b;
    margin-top: 15px;
}

.score-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#analysis-comment {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    font-style: italic;
}

/* Responsywność */
@media (max-width: 600px) {
    .score-circle {
        width: 140px;
        height: 140px;
    }
    #main-score-val { font-size: 2.5rem; }
}
.score-box h4 { font-size: 10px; margin: 0; color: #000000; }
.score-box .val { font-size: 20px; font-weight: bold; }
.tab-content{
    background-color: #DAC5FC1A;
    padding: 20px;
    display: flex;
    gap: 20px;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--primary);
    border-radius: 12px;
    transition: 0.3s ease-in;
    width: 100% !important; /* Blokuje kurczenie się taba */
    min-width: 100%; /* Dodatkowe zabezpieczenie */
    box-sizing: border-box;
}

/* Jeśli masz kontenery wewnątrz taba (np. pod wykres) */
.full-width-card, .chart-wrapper, .analysis-details-grid {
    width: 100% !important;
}
.full-width-card{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e2e8f0;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    font-weight: 600;
    color: black;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Animacja pojawiania się raportu */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* DIAGNOZA OCENA */

/* --- STYLE DLA NOWEGO AUDYTU AI (POD KÓŁKAMI) --- */

/* Główny kontener dla detali analizy (pod kółkami) */
.analysis-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dwie równe kolumny */
    gap: 20px;
}
/* Styl dla pojedynczej karty diagnostycznej */
.diag-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.diag-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Nagłówki sekcji (np. Profil Finansowy) */
.diag-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Styl dla etykiety profilu (np. Konsumpcyjny Ryzykant) */
.profile-label {
    background: linear-gradient(90deg, #fef2f2, #fee2e2); /* Delikatny czerwony gradient */
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

/* Opis profilu */
.profile-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Lista punktowana (Szybka Diagnoza) */
.diag-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.diag-list li {
    color: #475569;
    font-size: 0.95rem;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
}

.diag-list li:last-child {
    border-bottom: none;
}

/* Wartość w liście (pogrubiona) */
.diag-list li span.val {
    font-weight: 600;
    color: #1e293b;
}

/* --- SEKCJA RED FLAGS (Z PULSOWANIEM) --- */
.red-flags-card {
    border-color: #fecaca;
}

.red-flags-card h3 {
    color: #991b1b;
}

.flag-icon-container {
    position: relative;
    display: flex;
    align-items: center;
}

.flag-icon {
    color: #dc2626;
}

/* Pulsujący krąg wokół flagi */
.flag-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(220, 38, 38, 0.2);
    border-radius: 50%;
    animation: pulseFlag 2s infinite;
}

@keyframes pulseFlag {
    0% { transform: scale(1); opacity: 0.8; }
    70% { transform: scale(2.5); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* Lista alertów w Red Flags */
.alert-list {
    list-style: none;
    padding: 0;
}

.alert-item {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    color: #991b1b;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    display: flex;
    gap: 10px;
    align-items: start;
    transition: 0.3s;
}
.alert-item:hover{
    opacity: 0.9;
}

/* --- SEKCJA KORZYŚCI Z PASKAMI --- */
.priority-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.priority-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.priority-label {
    font-size: 0.9rem;
    color: #1e293b;
}

/* Pasek postępu (jako priorytet) */
.priority-bar-bg {
    width: 120px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.priority-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
}
h3{
    margin: 0
}
/* Kontener główny */
.recommendations-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.chart-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    height: 350px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chart-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
/* Karta porady */
.rec-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* BOX NA IKONĘ - to blokuje rozjeżdżanie się */
.rec-icon-box {
    min-width: 48px;
    max-width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    flex-shrink: 0; /* Kluczowe: ikona nie może się ścisnąć ani rozciągnąć */
}

/* Wymuszenie rozmiaru na SVG, żeby nie uciekło z boxa */
.rec-icon-box svg {
    width: 24px !important;
    height: 24px !important;
}

/* Treść karty */
.rec-body h4 {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 700;
}

.rec-body p {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}
/* Badge z celem */
.rec-goal-badge {
    display: inline-block;
    background: #f8fafc;
    color: black;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 400;
    border: 1px solid #e2e8f0;
}
.avg-label {
    display: inline-block;
    background: #d9c3fc;
    color: black;
    padding: 30px;
    border-radius: 10px;
    cursor: crosshair;
    font-size: 12px;
    font-weight: 400;
    border: 1px solid #e2e8f0;
}
/*  */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}
.toast {
    background: #1e293b;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid #4f46e5;
}

.toast.error { border-left-color: #ef4444; }
.toast.success { border-left-color: #22c55e; }
.toast.warning { border-left-color: #f59e0b; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 768px) {
    .analysis-details-grid {
        grid-template-columns: 1fr;
    }
    .header-logo-container p, .action-element p{
        display: none;
    }
    .btn-waitlist {
        padding: 10px;
    }
    .trust-badge{
        text-align: center;
        display: flex;
        flex-direction: column;
    }
    .drop-zone{
        padding: 50px 20px;
    }
    .file-info{
        flex-direction: column;
    }
    #upload-box{
        padding: 15px;
    }
    .btn-remove{
        height: 20px;
    }
    /* 1. Statystyki na górze (Wpływy/Wydatki) - 1 kolumna */
    .grid-stats {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    /* 2. Kółka ocen (Scores) - Układamy w 2 rzędy (2 góra, 1 dół) lub 1 kolumnę */
    .scores-row {
        padding: 15px !important;
        gap: 10px !important;
        flex-direction: row;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 25px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .score-box {
        height: 100px;
        width: 100px;
    }
    .score-box p{
        font-size: 0.8rem;
    }
    /* 3. Wykresy (Charts) - Muszą mieć stałą wysokość, żeby nie zniknęły */
    .chart-container {
        margin: 0;
        padding: 20px;
    }

    /* 4. Analiza Szczegółowa (Diag Cards) - Zawsze jedna pod drugą */
    .analysis-details-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .stat-card{
        padding: 10px;
    }
    /* 5. Taby (Nawigacja) - Robimy je scrollowalne w poziomie */
    .tabs-nav {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 10px !important;
    }
    .tabs-nav::-webkit-scrollbar {
        height: 5px;
        margin-top: 10px !important;
    }

    .tab-item {
        flex: 0 0 auto; /* Nie pozwalamy im się ściskać */
        padding: 8px 15px !important;
        font-size: 13px !important;
    }

    /* 6. Rekomendacje i listy - Tekst nie może "uciekać" */
    .rec-card {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        padding: 15px !important;
    }

    .rec-icon-box {
        margin-bottom: 10px;
    }

    .diag-list li {
        flex-direction: column; /* Kwota pod nazwą na bardzo małych ekranach */
        align-items: flex-start;
        gap: 4px;
    }

    .diag-list li span.val {
        font-size: 1.1rem;
    }

    /* 7. Odstępy w kontenerze głównym */
    .tab-content {
        padding: 0px !important;
        border: none;
        background: transparent;
    }
}

/* Kontener dla tytułu i punktów, żeby były w jednej linii */
.rec-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 10px;
}

/* Styl badge'a z punktami */
.rec-impact {
    background: #22c55e; /* Mocny zielony */
    color: white;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
    animation: pulseImpact 2s infinite;
}

/* Delikatny efekt pulsowania dla punktów, żeby przyciągnąć wzrok */
@keyframes pulseImpact {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Opcjonalnie: Zielony pasek z boku karty sugerujący poprawę */
.rec-card {
    border-left: 4px solid #22c55e !important;
}

/* Poprawka dla mobilki, żeby punkty nie uciekały */
@media (max-width: 480px) {
    .rec-header-row {
        flex-direction: column-reverse;
        justify-content: space-between;
    }
}

/* WRAPPED */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
    display: flex; justify-content: center; align-items: center; z-index: 9999;
}
.share-modal-content {
    background: white; padding: 30px; border-radius: 10px;
    width: 90%; max-width: 420px; text-align: center; position: relative;
      border: 1px solid #D9C3FC;
}
#share-preview-container {
    width: 100%; height: 400px; background: #f1f5f9; border-radius: 10px;
    margin: 20px 0; overflow: hidden; display: flex; justify-content: center; align-items: center;
    border: 1px solid #D9C3FC;
    padding: 20px;
}
#share-preview-img { max-height: 100%; width: auto; object-fit: contain; }
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.btn-img {
    width: 15px;
    height: 15px;
    object-fit: contain;
}
button{
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.social-btn {
    border: none;
    padding: 12px 5px;
    border-radius: 12px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-family: "Funnel Display", sans-serif;
    transition: 0.3s;
}
.social-btn:hover {
    opacity: 0.9;
}
.ig {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.fb {
    background: #1877F2;
}
.x  {
    background: #000;
}
.close-modal { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 30px; cursor: pointer; }