:root{
    --bg: #f8fbff;
    --bg-soft: #eef6ff;
    --white: #ffffff;
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --accent: #14b8a6;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
    --radius: 20px;
    --radius-sm: 14px;
    --container: 1180px;
}

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

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a{
    text-decoration: none;
    color: inherit;
}

img{
    max-width: 100%;
    display: block;
}

.container{
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.site-header{
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 251, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.header-inner{
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.logo{
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark{
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    box-shadow: var(--shadow);
}

.logo-text{
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-title{
    font-size: 16px;
    font-weight: 800;
}

.logo-subtitle{
    font-size: 12px;
    color: var(--muted);
}

.main-nav{
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a{
    color: var(--muted);
    font-weight: 500;
    transition: 0.25s;
}

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

.header-actions{
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-link{
    font-size: 14px;
    color: var(--muted);
    padding: 6px 8px;
    border-radius: 8px;
}

.lang-link.active{
    background: var(--bg-soft);
    color: var(--primary-dark);
    font-weight: 600;
}

.menu-toggle{
    display: none;
    border: none;
    background: var(--white);
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: var(--shadow);
    font-size: 18px;
    cursor: pointer;
}

.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 600;
    transition: 0.25s ease;
    border: 1px solid transparent;
}

.btn:hover{
    transform: translateY(-1px);
}

.btn-lg{
    padding: 14px 24px;
    font-size: 15px;
}

.btn-primary{
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover{
    background: var(--primary-dark);
}

.btn-outline{
    border-color: #cfe1ff;
    background: #fff;
    color: var(--primary-dark);
}

.btn-outline:hover{
    border-color: var(--primary);
    background: #f9fcff;
}

.btn-light{
    border-color: var(--line);
    background: #fff;
    color: var(--text);
}

.full{
    width: 100%;
}

.section{
    padding: 88px 0;
}

.section-soft{
    background: linear-gradient(180deg, #f4f9ff 0%, #eef6ff 100%);
}

.section-heading{
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-badge{
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eaf4ff;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 13px;
}

.section-heading h2{
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    margin-bottom: 12px;
}

.section-heading p{
    color: var(--muted);
    font-size: 16px;
}

.hero-section{
    padding: 70px 0 56px;
    background:
        radial-gradient(circle at top left, rgba(59,130,246,0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(20,184,166,0.10), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #f2f8ff 100%);
}

.hero-grid{
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 42px;
    align-items: center;
}

.hero-badge{
    display: inline-block;
    padding: 8px 14px;
    background: #eaf4ff;
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content h1{
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.hero-text{
    font-size: 18px;
    color: var(--muted);
    max-width: 620px;
    margin-bottom: 28px;
}

.hero-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.hero-stats{
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.mini-stat{
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(229,231,235,0.9);
    border-radius: 16px;
    padding: 14px 16px;
    min-width: 150px;
    box-shadow: var(--shadow);
}

.mini-stat strong{
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.mini-stat span{
    color: var(--muted);
    font-size: 13px;
}

.hero-visual{
    display: flex;
    justify-content: center;
}

.dashboard-card{
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 28px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: 0 24px 50px rgba(59, 130, 246, 0.10);
    overflow: hidden;
}

.dashboard-top{
    display: flex;
    gap: 8px;
    padding: 16px 18px;
    background: #f8fbff;
    border-bottom: 1px solid var(--line);
}

.dot{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c7d2fe;
}

.dashboard-body{
    padding: 22px;
}

.dashboard-summary{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.summary-box{
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f5faff 0%, #edf5ff 100%);
    border: 1px solid #dcecff;
}

.summary-box span{
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.summary-box strong{
    font-size: 24px;
}

.chart-box{
    height: 180px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f0f7ff 100%);
    border: 1px solid #e3eefc;
    padding: 18px;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 18px;
}

.bar{
    flex: 1;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, #7dd3fc 0%, #3b82f6 100%);
}

.h1{ height: 35%; }
.h2{ height: 60%; }
.h3{ height: 48%; }
.h4{ height: 82%; }
.h5{ height: 68%; }

.table-box{
    border-radius: 18px;
    border: 1px solid #e6edf7;
    overflow: hidden;
}

.table-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
}

.table-row:last-child{
    border-bottom: none;
}

.table-row span{
    color: var(--muted);
    font-weight: 500;
}

.card-grid{
    display: grid;
    gap: 22px;
}

.card-grid.four{
    grid-template-columns: repeat(4, 1fr);
}

.info-card{
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: 0.25s ease;
}

.info-card:hover{
    transform: translateY(-4px);
}

.icon-circle{
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(180deg, #edf5ff 0%, #e0f2fe 100%);
    font-size: 24px;
    margin-bottom: 18px;
}

.info-card h3{
    font-size: 20px;
    margin-bottom: 10px;
}

.info-card p{
    color: var(--muted);
}

.steps-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.step-card{
    background: var(--white);
    border: 1px solid #dfe9f7;
    border-radius: var(--radius);
    padding: 30px 24px;
    box-shadow: var(--shadow);
    text-align: center;
}

.step-number{
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 22px;
    font-weight: 800;
}

.step-card h3{
    margin-bottom: 10px;
    font-size: 20px;
}

.step-card p{
    color: var(--muted);
}

.methods-grid{
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.method-pill{
    padding: 14px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dbe7f7;
    box-shadow: var(--shadow);
    font-weight: 600;
    color: #374151;
}

.demo-section{
    padding-top: 20px;
}

.demo-box{
    display: grid;
    grid-template-columns: 1.2fr auto;
    align-items: center;
    gap: 22px;
    background: linear-gradient(135deg, #eaf4ff 0%, #f2fbff 100%);
    border: 1px solid #dbeafe;
    border-radius: 28px;
    padding: 34px 32px;
    box-shadow: var(--shadow);
}

.demo-box h2{
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 10px;
}

.demo-box p{
    color: var(--muted);
    max-width: 700px;
}

.pricing-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.price-card{
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: var(--shadow);
}

.price-card.featured{
    border: 2px solid #bfdbfe;
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(59,130,246,0.15);
}

.top-badge{
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
}

.price-label{
    display: inline-block;
    margin-bottom: 14px;
    color: var(--primary-dark);
    background: #eaf4ff;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.price-card h3{
    font-size: 30px;
    margin-bottom: 12px;
}

.price-card p{
    color: var(--muted);
    min-height: 76px;
    margin-bottom: 22px;
}

.site-footer{
    margin-top: 40px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-inner{
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-brand{
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-text{
    color: var(--muted);
    max-width: 520px;
}

.footer-links{
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.footer-links a{
    color: var(--muted);
    font-weight: 500;
}

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

@media (max-width: 1100px){
    .main-nav{
        display: none;
    }

    .card-grid.four{
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid{
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px){
    .header-actions{
        display: none;
    }

    .menu-toggle{
        display: inline-flex;
    }

    .section{
        padding: 72px 0;
    }

    .card-grid.four,
    .steps-grid,
    .pricing-grid,
    .dashboard-summary,
    .demo-box{
        grid-template-columns: 1fr;
    }

    .hero-content h1{
        font-size: 36px;
    }

    .hero-text{
        font-size: 16px;
    }

    .hero-actions{
        flex-direction: column;
        align-items: stretch;
    }

    .btn-lg{
        width: 100%;
    }

    .mini-stat{
        width: 100%;
    }
}

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

.demo-table-wrap{
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.demo-table{
    width: 100%;
    border-collapse: collapse;
}

.demo-table thead{
    background: linear-gradient(180deg, #edf5ff 0%, #e8f2ff 100%);
}

.demo-table th,
.demo-table td{
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

.demo-table th{
    font-size: 14px;
    color: var(--primary-dark);
    font-weight: 700;
}

.demo-table td{
    font-size: 15px;
    color: var(--text);
}

.demo-table tbody tr:hover{
    background: #f9fcff;
}

.demo-result-preview{
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

@media (max-width: 780px){
    .card-grid.three{
        grid-template-columns: 1fr;
    }

    .demo-table-wrap{
        overflow-x: auto;
    }

    .demo-table{
        min-width: 560px;
    }
}


.pricing-hero-heading{
    max-width: 860px;
}

.pricing-hero-title{
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    margin-bottom: 14px;
}

.pricing-hero-text{
    max-width: 840px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 18px;
}

.price-features{
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.price-feature{
    color: var(--text);
    font-size: 14px;
    background: #f8fbff;
    border: 1px solid #ebf1f8;
    border-radius: 12px;
    padding: 10px 12px;
}

.pricing-feature-list{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.pricing-feature-pill{
    padding: 12px 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dbe7f7;
    box-shadow: var(--shadow);
    font-weight: 600;
    color: #374151;
}


.auth-section{
    padding: 72px 0 88px;
    background:
        radial-gradient(circle at top left, rgba(59,130,246,0.10), transparent 28%),
        radial-gradient(circle at bottom right, rgba(20,184,166,0.08), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #f2f8ff 100%);
}

.auth-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.auth-form-card,
.auth-side-card{
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 34px 30px;
}

.auth-title{
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    margin-bottom: 12px;
}

.auth-text{
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 26px;
}

.auth-form{
    display: grid;
    gap: 18px;
}

.form-group{
    display: grid;
    gap: 8px;
}

.form-group label{
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.form-group input{
    width: 100%;
    border: 1px solid #dbe4ef;
    background: #fbfdff;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: 0.2s ease;
}

.form-group input:focus{
    border-color: #93c5fd;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.10);
}

.auth-switch{
    margin-top: 18px;
    color: var(--muted);
    font-size: 15px;
}

.auth-switch a{
    color: var(--primary-dark);
    font-weight: 700;
}

.auth-side-card{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.auth-side-card h2{
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.12;
    margin-bottom: 12px;
}

.auth-side-card p{
    color: var(--muted);
    margin-bottom: 22px;
}

.auth-points{
    display: grid;
    gap: 12px;
    margin-bottom: 26px;
}

.auth-point{
    background: #f8fbff;
    border: 1px solid #e6eef8;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 600;
    color: var(--text);
}

.auth-visual-box{
    display: grid;
    gap: 14px;
}

.auth-mini-card{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #edf5ff 0%, #f7fbff 100%);
    border: 1px solid #dcecff;
}

.auth-mini-card span{
    color: var(--muted);
    font-weight: 500;
}

.auth-mini-card strong{
    color: var(--text);
    font-size: 16px;
}

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

.cabinet-grid{
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
    align-items: start;
}

.cabinet-main-card,
.cabinet-side-card,
.cabinet-sub-card{
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 30px 28px;
}

.cabinet-top{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.cabinet-welcome{
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.cabinet-top h2{
    font-size: 32px;
    line-height: 1.1;
}

.status-badge{
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.status-active{
    background: #dcfce7;
    color: #166534;
}

.status-pending{
    background: #fef3c7;
    color: #92400e;
}

.status-expired{
    background: #fee2e2;
    color: #991b1b;
}

.cabinet-block h3{
    font-size: 24px;
    margin-bottom: 18px;
}

.cabinet-info-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.cabinet-info-item{
    background: #f8fbff;
    border: 1px solid #e7eef8;
    border-radius: 18px;
    padding: 16px 18px;
}

.cabinet-info-item span{
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.cabinet-info-item strong{
    font-size: 17px;
    color: var(--text);
}

.cabinet-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cabinet-sub-card h2{
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 12px;
}

.cabinet-sub-card p{
    color: var(--muted);
    margin-bottom: 18px;
}

.history-list{
    display: grid;
    gap: 12px;
}

.history-item{
    background: #f8fbff;
    border: 1px solid #e7eef8;
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.history-item span{
    color: var(--muted);
    font-size: 14px;
}

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

    .cabinet-info-grid{
        grid-template-columns: 1fr;
    }

    .cabinet-top{
        flex-direction: column;
    }
}

.upload-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.upload-form-card,
.upload-side-card{
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 30px 28px;
}

.upload-form-card h2,
.upload-side-card h2{
    font-size: 30px;
    line-height: 1.12;
    margin-bottom: 12px;
}

.upload-card-text{
    color: var(--muted);
    margin-bottom: 22px;
}

.upload-form{
    display: grid;
    gap: 18px;
}

.upload-form input[type="file"]{
    width: 100%;
    border: 1px dashed #bfdbfe;
    background: #f8fbff;
    border-radius: 16px;
    padding: 18px 16px;
    font-size: 15px;
    color: var(--text);
    cursor: pointer;
}

.upload-form input[type="file"]:hover{
    background: #f3f9ff;
}

.upload-success{
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-weight: 600;
}

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

.preview-columns-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.preview-column-card,
.preview-actions-box{
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 30px 28px;
}

.preview-column-card h2{
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 18px;
}

.methods-grid.left{
    justify-content: flex-start;
}

.preview-actions-grid{
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.preview-actions-grid .btn{
    min-width: 210px;
}

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

    .preview-actions-grid{
        flex-direction: column;
    }

    .preview-actions-grid .btn{
        width: 100%;
    }
}

.upload-error{
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-weight: 600;
}


.analysis-forms-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.analysis-form-card{
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.analysis-form-card h3{
    font-size: 22px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.mini-analysis-form{
    display: grid;
    gap: 12px;
}

.mini-analysis-form label{
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.mini-analysis-form select{
    width: 100%;
    border: 1px solid #dbe4ef;
    background: #fbfdff;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: 0.2s ease;
}

.mini-analysis-form select:focus{
    border-color: #93c5fd;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.10);
}

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

.descriptive-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-box{
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 24px 20px;
}

.stat-box span{
    display: block;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-box strong{
    font-size: 28px;
    line-height: 1.1;
    color: var(--text);
}

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

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


.histogram-chart-card{
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 28px 24px 22px;
    overflow-x: auto;
}

.histogram-chart{
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 8px 0;
}

.histogram-bar-wrap{
    flex: 1;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.histogram-bar-value{
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.histogram-bar{
    width: 100%;
    max-width: 72px;
    min-height: 8px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(180deg, #7dd3fc 0%, #3b82f6 100%);
    box-shadow: 0 10px 20px rgba(59,130,246,0.18);
}

.histogram-bar-label{
    font-size: 12px;
    line-height: 1.35;
    color: var(--muted);
    text-align: center;
    word-break: break-word;
}

.scatter-chart-card{
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.scatter-svg{
    width: 100%;
    height: auto;
    display: block;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%);
    border: 1px solid #e6eef8;
    border-radius: 18px;
}

.axis-line{
    stroke: #94a3b8;
    stroke-width: 2;
}

.scatter-point{
    fill: #3b82f6;
    opacity: 0.82;
}

.scatter-axis-labels{
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
}


.disabled-card{
    background: linear-gradient(180deg, #fbfcfe 0%, #f5f7fb 100%);
    border: 1px dashed #cbd5e1;
    box-shadow: none;
}

.disabled-card h3{
    color: #64748b;
}

.disabled-text{
    font-size: 15px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 10px;
}

.disabled-note{
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.payment-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.payment-card{
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 30px 28px;
}

.payment-card h2{
    font-size: 32px;
    line-height: 1.12;
    margin-bottom: 16px;
}

.payment-info-list{
    display: grid;
    gap: 14px;
}

.payment-info-item{
    background: #f8fbff;
    border: 1px solid #e7eef8;
    border-radius: 18px;
    padding: 16px 18px;
}

.payment-info-item span{
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.payment-info-item strong{
    font-size: 16px;
    color: var(--text);
}

.payment-qr-placeholder{
    margin-top: 18px;
    width: 220px;
    height: 220px;
    border: 2px dashed #bfdbfe;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 38px;
    font-weight: 800;
    color: #2563eb;
    background: #f8fbff;
}

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


.history-item{
    background: #f8fbff;
    border: 1px solid #e7eef8;
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.history-item strong{
    display: block;
    margin-bottom: 4px;
}

.history-item span{
    color: var(--muted);
    font-size: 14px;
}

.history-item .cabinet-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.payment-qr-box{
    width: 240px;
    max-width: 100%;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #dbeafe;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.payment-qr-image{
    width: 100%;
    height: auto;
    display: block;
}

.payment-proof-preview{
    margin-top: 14px;
    width: 260px;
    max-width: 100%;
}

.payment-proof-image{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    border: 1px solid #dbeafe;
    box-shadow: var(--shadow);
}

.payment-proof-text{
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #166534;
}

.proof-preview-box{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.proof-preview-image{
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #dbeafe;
    box-shadow: var(--shadow);
    display: block;
    background: #ffffff;
}

.proof-preview-btn{
    padding: 8px 12px;
    font-size: 13px;
}

.proof-preview-label{
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

@media (max-width: 900px){
    .proof-preview-image{
        width: 72px;
        height: 72px;
    }
}

.admin-filter-form{
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
    margin-top: 14px;
}

.admin-filter-form .form-group{
    display: grid;
    gap: 8px;
}

.admin-filter-form label{
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.admin-filter-form input,
.admin-filter-form select{
    width: 100%;
    border: 1px solid #dbe4ef;
    background: #fbfdff;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: 0.2s ease;
}

.admin-filter-form input:focus,
.admin-filter-form select:focus{
    border-color: #93c5fd;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.10);
}

@media (max-width: 1000px){
    .admin-filter-form{
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

.proof-modal{
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
}

.proof-modal.show{
    display: flex;
}

.proof-modal-content{
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    background: #ffffff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.28);
}

.proof-modal-image{
    display: block;
    max-width: 100%;
    max-height: 82vh;
    border-radius: 14px;
}

.proof-modal-close{
    position: absolute;
    top: 8px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
    color: #0f172a;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.proof-preview-image{
    cursor: zoom-in;
}

body.modal-open{
    overflow: hidden;
}

.status-chip{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status-active{
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.status-pending{
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.status-expired{
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}


