/* ========================================================
   MOLIYAVIY HISOBOTLAR - TO'LIQ EKRANLI SHAFFOF OYNA (GLASSMORPHISM)
   ======================================================== */

.reports-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2500; /* Barcha boshqa elementlar va watermark ustida */
    
    /* Shaffoflik va muzdek shisha (Glassmorphism) effekti */
    background: rgba(224, 229, 236, 0.82);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    
    display: flex;
    flex-direction: column;
    overflow: hidden;
    
    /* Animatsiya uchun boshlang'ich holat */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Qorong'u rejim (Dark Mode) uchun shaffof fon */
body.dark-mode .reports-fullscreen-modal {
    background: rgba(24, 27, 34, 0.88);
    backdrop-filter: blur(32px) saturate(190%);
    -webkit-backdrop-filter: blur(32px) saturate(190%);
}

/* Modal faol holatga kelganda */
.reports-fullscreen-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Orqa fondagi ambient yorug'lik dog'lari (Ambient Glowing Orbs) */
.reports-ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.reports-glow-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, rgba(99, 102, 241, 0.12) 50%, transparent 70%);
}

.reports-glow-2 {
    bottom: -15%;
    right: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(245, 158, 11, 0.12) 50%, transparent 70%);
}

.reports-glow-3 {
    top: 40%;
    left: 45%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
}

body.dark-mode .reports-glow-1 {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(99, 102, 241, 0.1) 50%, transparent 70%);
}

body.dark-mode .reports-glow-2 {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(245, 158, 11, 0.08) 50%, transparent 70%);
}

/* Modal ichki konteyneri */
.reports-modal-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    transform: translateY(20px) scale(0.99);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reports-fullscreen-modal.active .reports-modal-wrapper {
    transform: translateY(0) scale(1);
}

/* ========================================================
   HEADER (YUQORI QISM)
   ======================================================== */
.reports-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

body.dark-mode .reports-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.reports-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.reports-header-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--element-bg);
    box-shadow: 6px 6px 14px var(--shadow-dark), -6px -6px 14px var(--shadow-light);
    color: #2563eb;
    transition: all 0.3s ease;
}

body.dark-mode .reports-header-icon-box {
    color: #60a5fa;
}

.reports-header-icon-box svg {
    width: 28px;
    height: 28px;
}

.reports-title-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reports-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reports-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.25);
}

body.dark-mode .reports-badge {
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.3);
}

.reports-badge svg {
    width: 12px;
    height: 12px;
}

.reports-main-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-text-color);
    margin: 0;
    letter-spacing: -0.3px;
}

.reports-subtitle {
    font-size: 13px;
    color: var(--secondary-text-color);
    margin: 0;
}

.reports-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Yopish tugmasi */
.reports-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    background: var(--element-bg);
    color: var(--secondary-text-color);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 5px 5px 12px var(--shadow-dark), -5px -5px 12px var(--shadow-light);
    transition: all 0.25s ease;
}

.reports-close-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
    transition: transform 0.25s ease;
}

.reports-close-btn:hover {
    color: #ef4444;
    box-shadow: 7px 7px 16px var(--shadow-dark), -7px -7px 16px var(--shadow-light);
    transform: translateY(-2px);
}

.reports-close-btn:hover svg {
    transform: rotate(90deg);
}

.reports-close-btn:active {
    box-shadow: inset 3px 3px 7px var(--shadow-dark), inset -3px -3px 7px var(--shadow-light);
    transform: translateY(0);
}

/* ========================================================
   BODY (MARKAZIY QISM - TUGMALAR GRID'I)
   ======================================================== */
.reports-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 36px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.reports-grid-wrapper {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

.reports-grid-headline {
    text-align: center;
    margin-bottom: 32px;
}

.reports-grid-headline h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-text-color);
    margin: 0 0 6px 0;
}

.reports-grid-headline p {
    font-size: 14px;
    color: var(--secondary-text-color);
    margin: 0;
}

/* Tugmalar Gridi */
.reports-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    justify-content: center;
}

/* 4 va 5-tugmalarni 2-satrda chiroyli markazlashtirish */
.reports-card:nth-child(4) {
    grid-column: 1 / 2;
}

.reports-card:nth-child(5) {
    grid-column: 2 / 3;
}

@media (min-width: 1024px) {
    /* 5 ta karta uchun pastki 2 tasini markazlashtirish uslubi */
    .reports-buttons-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .reports-card:nth-child(1) { grid-column: 1 / 3; }
    .reports-card:nth-child(2) { grid-column: 3 / 5; }
    .reports-card:nth-child(3) { grid-column: 5 / 7; }
    .reports-card:nth-child(4) { grid-column: 2 / 4; }
    .reports-card:nth-child(5) { grid-column: 4 / 6; }
}

/* ========================================================
   REPORTS CARD (INTERAKTIV SHAFFOF TUGMA-KARTA)
   ======================================================== */
.reports-card {
    position: relative;
    border-radius: 24px;
    padding: 28px 24px;
    cursor: pointer;
    user-select: none;
    
    /* Gibrid Glassmorphism + Neumorphism */
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 10px 10px 24px var(--shadow-dark),
                -10px -10px 24px var(--shadow-light);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

body.dark-mode .reports-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 10px 10px 25px rgba(0, 0, 0, 0.4),
                -8px -8px 20px rgba(255, 255, 255, 0.03);
}

/* Yuqori o'ng burchakdagi nurli fon aksenti */
.reports-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--card-accent-gradient);
    opacity: 0.12;
    filter: blur(30px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.reports-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--card-accent-color);
    box-shadow: 16px 16px 36px var(--shadow-dark),
                -16px -16px 36px var(--shadow-light),
                0 0 25px var(--card-accent-glow);
}

body.dark-mode .reports-card:hover {
    box-shadow: 16px 16px 36px rgba(0, 0, 0, 0.5),
                -10px -10px 25px rgba(255, 255, 255, 0.05),
                0 0 25px var(--card-accent-glow);
}

.reports-card:hover::before {
    opacity: 0.28;
    transform: scale(1.3);
}

.reports-card:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: inset 4px 4px 10px var(--shadow-dark),
                inset -4px -4px 10px var(--shadow-light);
}

/* Karta tepasi */
.card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-icon-bubble {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-accent-gradient);
    color: #ffffff;
    box-shadow: 0 8px 18px var(--card-accent-glow);
    transition: transform 0.35s ease;
}

.reports-card:hover .card-icon-bubble {
    transform: scale(1.1) rotate(4deg);
}

.card-icon-bubble svg {
    width: 26px;
    height: 26px;
    stroke-width: 2.2;
}

.card-number-tag {
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary-text-color);
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

body.dark-mode .card-number-tag {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

/* Karta o'rtasi */
.card-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.card-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-text-color);
    margin: 0 0 8px 0;
    letter-spacing: -0.2px;
    transition: color 0.25s ease;
}

.reports-card:hover .card-title {
    color: var(--card-accent-color);
}

.card-description {
    font-size: 13px;
    color: var(--secondary-text-color);
    line-height: 1.5;
    margin: 0;
}

/* Karta pasti */
.card-footer-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.dark-mode .card-footer-action {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-action-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--card-accent-color);
    transition: letter-spacing 0.25s ease;
}

.reports-card:hover .card-action-text {
    letter-spacing: 0.3px;
}

.card-arrow-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    color: var(--card-accent-color);
    transition: all 0.25s ease;
}

body.dark-mode .card-arrow-circle {
    background: rgba(255, 255, 255, 0.06);
}

.card-arrow-circle svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.2;
    transition: transform 0.25s ease;
}

.reports-card:hover .card-arrow-circle {
    background: var(--card-accent-color);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--card-accent-glow);
    transform: translateX(4px);
}

/* ========================================================
   HAR BIR TUGMANING O'ZIGA XOS RANG VA AKTI (5 TA TUGMA)
   ======================================================== */

/* 1. Akt-sverka (Moviy) */
.card-akt-sverka {
    --card-accent-color: #2563eb;
    --card-accent-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --card-accent-glow: rgba(37, 99, 235, 0.35);
}

/* 2. Umumiy oborotlar (Zumrad / Yashil) */
.card-umumiy-oborotlar {
    --card-accent-color: #059669;
    --card-accent-gradient: linear-gradient(135deg, #10b981 0%, #047857 100%);
    --card-accent-glow: rgba(16, 185, 129, 0.35);
}

/* 3. Korporativ xarjatlar (Qahrabo / Sariq) */
.card-korporativ-xarjatlar {
    --card-accent-color: #d97706;
    --card-accent-gradient: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    --card-accent-glow: rgba(245, 158, 11, 0.35);
}

/* 4. Korporativ hisobotlar (Binafsha / Indigo) */
.card-korporativ-hisobotlar {
    --card-accent-color: #7c3aed;
    --card-accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    --card-accent-glow: rgba(124, 58, 237, 0.35);
}

/* 5. Share-holders hisoboti (Ruby / Qimmatbaho Rose) */
.card-shareholders-hisoboti {
    --card-accent-color: #e11d48;
    --card-accent-gradient: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
    --card-accent-glow: rgba(225, 29, 72, 0.35);
}

/* ========================================================
   FOOTER (PASTKI QISM)
   ======================================================== */
.reports-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 12px;
    color: var(--secondary-text-color);
}

body.dark-mode .reports-modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.15);
}

.reports-footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reports-footer-left svg {
    width: 14px;
    height: 14px;
    color: #10b981;
}

.reports-esc-badge {
    background: var(--element-bg);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 2px 2px 5px var(--shadow-dark), -2px -2px 5px var(--shadow-light);
    color: var(--primary-text-color);
}

/* ========================================================
   RESPONSIVE DESIGN (MOSLASHUVCHANLIK)
   ======================================================== */
@media (max-width: 1024px) {
    .reports-modal-header { padding: 20px 28px; }
    .reports-modal-body { padding: 24px 28px; }
    .reports-modal-footer { padding: 14px 28px; }
    .reports-buttons-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .reports-card:nth-child(1),
    .reports-card:nth-child(2),
    .reports-card:nth-child(3),
    .reports-card:nth-child(4) {
        grid-column: auto !important;
    }
    .reports-card:nth-child(5) {
        grid-column: 1 / -1 !important;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .reports-modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px 20px;
    }
    .reports-header-right {
        width: 100%;
        justify-content: flex-end;
    }
    .reports-main-title { font-size: 20px; }
    .reports-modal-body { padding: 20px 16px; justify-content: flex-start; }
    .reports-buttons-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }
    .reports-card {
        min-height: auto;
        padding: 22px 18px;
    }
    .reports-card:nth-child(5) {
        max-width: 100%;
    }
    .reports-modal-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 12px 16px;
    }
}
