{
box-sizing: border-box;
}


body {
margin: 0;
font-family: Arial, sans-serif;
background: #f7fbff;
color: #0f172a;
}


.container {
width: 100%;
max-width: 1120px;
margin: 0 auto;
padding: 0 20px;
}


.site-header {
padding: 20px 0;
background: #ffffffcc;
backdrop-filter: blur(10px);
border-bottom: 1px solid #e5eefc;
}


.header-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
}


.logo {
font-size: 22px;
font-weight: 700;
color: #0f172a;
text-decoration: none;
}


.nav {
display: flex;
gap: 16px;
flex-wrap: wrap;
}


.nav a {
text-decoration: none;
color: #334155;
font-weight: 600;
}


.hero,
.auth-section,
.dashboard-section {
padding: 60px 0;
}


.hero-card,
.auth-card,
.dashboard-card {
background: #fff;
border-radius: 24px;
padding: 32px;
box-shadow: 0 20px 50px rgba(79, 124, 255, 0.08);
}


.badge {
display: inline-block;
padding: 8px 14px;
border-radius: 999px;
background: #eef4ff;
color: #4f7cff;
font-size: 13px;
font-weight: 700;
margin-bottom: 16px;
}


h1 {
margin-top: 0;
margin-bottom: 14px;
font-size: 42px;
}


p {
color: #64748b;
line-height: 1.7;
}


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


.btn {
display: inline-block;
text-decoration: none;
border: none;
border-radius: 14px;
padding: 14px 20px;
font-weight: 700;
cursor: pointer;
}


.btn-primary {
background: #4f7cff;
color: #fff;
}


.btn-secondary {
background: #eef4ff;
color: #0f172a;
}


.btn-full {
width: 100%;
}


.field {
margin-bottom: 16px;
}


.field label {
display: block;
margin-bottom: 8px;
font-weight: 600;
}


.field input,
.field select {
width: 100%;
padding: 14px 16px;
border-radius: 12px;
border: 1px solid #dbe7ff;
}


.auth-links {
margin-top: 16px;
}


.auth-links a {
color: #4f7cff;
text-decoration: none;
}


.dashboard-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
margin-top: 24px;
}


.dashboard-item {
background: #f8fbff;
border: 1px solid #e5eefc;
border-radius: 16px;
padding: 18px;
}


.dashboard-item small {
display: block;
color: #64748b;
margin-bottom: 8px;
}


.dashboard-item strong {
font-size: 22px;
}


.site-footer {
padding: 24px 0 40px;
color: #64748b;
}


@media (max-width: 768px) {
.header-row {
flex-direction: column;
align-items: flex-start;
}


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

h1 {
    font-size: 32px;
}

}


hr {
border: none;
border-top: 1px solid #e5eefc;
}


@media (max-width: 768px) {
.dashboard-grid[style] {
grid-template-columns: 1fr !important;
}
}


.field-select {
width: 100%;
padding: 14px 16px;
border-radius: 12px;
border: 1px solid #dbe7ff;
background: #fff;
font-size: 15px;
}


.page-intro {
display: flex;
justify-content: space-between;
gap: 20px;
align-items: center;
margin-bottom: 24px;
flex-wrap: wrap;
}


.page-intro h1 {
margin: 0 0 8px;
}


.page-intro p {
margin: 0;
color: #64748b;
}


.page-intro-badge {
background: linear-gradient(135deg, #eef4ff, #f7f9ff);
border: 1px solid #dbe6ff;
color: #2553d8;
padding: 12px 18px;
border-radius: 14px;
font-weight: 700;
}


.alert {
padding: 14px 16px;
border-radius: 14px;
margin-bottom: 18px;
}


.alert-error {
background: #ffe7e7;
color: #b42318;
}


.alert-success {
background: #e8fff3;
color: #027a48;
}


.settings-layout,
.dashboard-main-grid {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 24px;
}


.form-grid,
.reputation-grid,
.stats-grid,
.tariff-grid,
.extras-grid {
display: grid;
gap: 16px;
}


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


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


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


.stats-grid {
grid-template-columns: repeat(4, 1fr);
margin: 24px 0;
}


.tariff-card,
.extra-card,
.stat-card {
background: #fff;
border: 1px solid #e8eefc;
border-radius: 22px;
padding: 22px;
box-shadow: 0 16px 40px rgba(32, 76, 180, 0.06);
}


.tariff-card {
cursor: pointer;
transition: 0.2s ease;
}


.tariff-card:hover {
transform: translateY(-2px);
box-shadow: 0 20px 44px rgba(32, 76, 180, 0.10);
}


.tariff-top {
display: flex;
align-items: flex-start;
gap: 12px;
margin-bottom: 16px;
}


.tariff-name {
font-size: 22px;
font-weight: 800;
color: #0f172a;
}


.tariff-price {
font-size: 24px;
font-weight: 800;
color: #2553d8;
margin-top: 4px;
}


.tariff-features {
padding-left: 18px;
margin: 0 0 18px;
color: #334155;
line-height: 1.6;
}


.tariff-growth {
display: inline-block;
background: linear-gradient(135deg, #2553d8, #4f7cff);
color: #fff;
padding: 10px 14px;
border-radius: 999px;
font-weight: 700;
}


.section-title {
margin: 20px 0 16px;
}


.extra-price {
font-size: 24px;
font-weight: 800;
color: #2553d8;
margin: 10px 0 12px;
}


.extra-text {
color: #64748b;
line-height: 1.6;
margin: 0;
}


.access-box {
margin-top: 18px;
background: #f8fbff;
border: 1px solid #dbe8ff;
padding: 18px;
border-radius: 16px;
}


.access-check {
display: flex;
align-items: flex-start;
gap: 12px;
cursor: pointer;
line-height: 1.5;
}


.access-check input {
margin-top: 4px;
}


.side-hints {
display: grid;
gap: 24px;
}


.hint-list {
margin: 0;
padding-left: 18px;
color: #334155;
line-height: 1.8;
}


.status-rows {
display: grid;
gap: 12px;
}


.status-rows div {
display: flex;
justify-content: space-between;
gap: 12px;
border-bottom: 1px solid #edf2ff;
padding-bottom: 10px;
}


.status-rows span {
color: #64748b;
}


.hero-dashboard {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 24px;
align-items: stretch;
margin-bottom: 24px;
}


.dashboard-eyebrow {
color: #4f7cff;
font-weight: 700;
margin-bottom: 10px;
}


.hero-progress-card {
background: linear-gradient(135deg, #0f172a, #1e3a8a);
color: #fff;
border-radius: 24px;
padding: 24px;
}


.progress-label {
opacity: 0.8;
margin-bottom: 8px;
}


.progress-value {
font-size: 40px;
font-weight: 800;
margin-bottom: 12px;
}


.progress-bar {
height: 12px;
background: rgba(255,255,255,0.18);
border-radius: 999px;
overflow: hidden;
margin-bottom: 12px;
}


.progress-bar-fill {
height: 100%;
background: linear-gradient(90deg, #60a5fa, #ffffff);
border-radius: 999px;
}


.progress-caption {
opacity: 0.9;
line-height: 1.5;
}


.stat-label {
color: #64748b;
font-size: 14px;
margin-bottom: 8px;
}


.stat-value {
font-size: 24px;
font-weight: 800;
color: #0f172a;
}


.stat-sub {
margin-top: 8px;
color: #64748b;
}


.accent-blue { border-top: 4px solid #4f7cff; }
.accent-green { border-top: 4px solid #12b76a; }
.accent-purple { border-top: 4px solid #7c3aed; }
.accent-orange { border-top: 4px solid #f79009; }


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


.step-item {
display: flex;
gap: 14px;
align-items: flex-start;
padding: 14px;
border: 1px solid #e6ecfa;
border-radius: 16px;
background: #fbfdff;
}


.step-dot {
width: 14px;
height: 14px;
border-radius: 999px;
background: #cbd5e1;
margin-top: 5px;
flex-shrink: 0;
}


.step-item.done .step-dot {
background: #12b76a;
}


.step-item p {
margin: 6px 0 0;
color: #64748b;
}


@media (max-width: 1100px) {
.tariff-grid,
.stats-grid,
.extras-grid,
.hero-dashboard,
.settings-layout,
.dashboard-main-grid {
grid-template-columns: 1fr;
}


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

}


.site-header {
background: rgba(255,255,255,0.92);
backdrop-filter: blur(10px);
border-bottom: 1px solid #e7eefc;
position: sticky;
top: 0;
z-index: 100;
}


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


.logo {
font-weight: 800;
font-size: 20px;
color: #0f172a;
text-decoration: none;
}


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


.main-nav a {
text-decoration: none;
color: #334155;
font-weight: 600;
}


.page-intro {
display: flex;
justify-content: space-between;
gap: 20px;
align-items: center;
margin-bottom: 24px;
flex-wrap: wrap;
}


.page-intro h1 {
margin: 0 0 8px;
}


.page-intro p {
margin: 0;
color: #64748b;
}


.page-intro-badge {
background: linear-gradient(135deg, #eef4ff, #f7f9ff);
border: 1px solid #dbe6ff;
color: #2553d8;
padding: 12px 18px;
border-radius: 14px;
font-weight: 700;
}


.onboarding-card {
background: linear-gradient(135deg, #f8fbff, #eef4ff);
border: 1px solid #dbe6ff;
border-radius: 22px;
padding: 24px;
display: flex;
justify-content: space-between;
gap: 20px;
align-items: center;
flex-wrap: wrap;
margin-bottom: 24px;
}


.onboarding-label {
color: #4f7cff;
font-weight: 700;
margin-bottom: 8px;
}


.hero-dashboard {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 24px;
align-items: stretch;
margin-bottom: 24px;
}


.dashboard-eyebrow {
color: #4f7cff;
font-weight: 700;
margin-bottom: 10px;
}


.hero-progress-card {
background: linear-gradient(135deg, #0f172a, #1e3a8a);
color: #fff;
border-radius: 24px;
padding: 24px;
}


.progress-label {
opacity: 0.8;
margin-bottom: 8px;
}


.progress-value {
font-size: 40px;
font-weight: 800;
margin-bottom: 12px;
}


.progress-bar {
height: 12px;
background: rgba(255,255,255,0.18);
border-radius: 999px;
overflow: hidden;
margin-bottom: 12px;
}


.progress-bar-fill {
height: 100%;
background: linear-gradient(90deg, #60a5fa, #ffffff);
border-radius: 999px;
}


.progress-caption {
opacity: 0.9;
line-height: 1.5;
}


.stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
margin: 24px 0;
}


.order-view-stats {
grid-template-columns: repeat(3, 1fr);
}


.stat-card {
background: #fff;
border: 1px solid #e8eefc;
border-radius: 22px;
padding: 22px;
box-shadow: 0 16px 40px rgba(32, 76, 180, 0.06);
}


.stat-label {
color: #64748b;
font-size: 14px;
margin-bottom: 8px;
}


.stat-value {
font-size: 24px;
font-weight: 800;
color: #0f172a;
}


.stat-sub {
margin-top: 8px;
color: #64748b;
}


.accent-blue { border-top: 4px solid #4f7cff; }
.accent-green { border-top: 4px solid #12b76a; }
.accent-purple { border-top: 4px solid #7c3aed; }
.accent-orange { border-top: 4px solid #f79009; }


.dashboard-main-grid,
.settings-layout {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 24px;
}


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


.step-item {
display: flex;
gap: 14px;
align-items: flex-start;
padding: 14px;
border: 1px solid #e6ecfa;
border-radius: 16px;
background: #fbfdff;
}


.step-dot {
width: 14px;
height: 14px;
border-radius: 999px;
background: #cbd5e1;
margin-top: 5px;
flex-shrink: 0;
}


.step-item.done .step-dot {
background: #12b76a;
}


.step-item p {
margin: 6px 0 0;
color: #64748b;
}


.status-rows {
display: grid;
gap: 12px;
}


.status-rows div {
display: flex;
justify-content: space-between;
gap: 12px;
border-bottom: 1px solid #edf2ff;
padding-bottom: 10px;
}


.status-rows span {
color: #64748b;
}


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


.badge-gray {
background: #eef2f7;
color: #475467;
}


.badge-orange {
background: #fff4e5;
color: #b54708;
}


.badge-green {
background: #e8fff3;
color: #027a48;
}


.badge-blue {
background: #eaf2ff;
color: #2553d8;
}


.badge-purple {
background: #f3ebff;
color: #6f2dbd;
}


.badge-red {
background: #ffe7e7;
color: #b42318;
}


.orders-list {
display: grid;
gap: 18px;
}


.order-card {
background: #fff;
border: 1px solid #e8eefc;
border-radius: 22px;
padding: 22px;
box-shadow: 0 16px 40px rgba(32, 76, 180, 0.06);
}


.order-card-top {
display: flex;
justify-content: space-between;
gap: 20px;
flex-wrap: wrap;
align-items: flex-start;
}


.order-id {
font-size: 20px;
font-weight: 800;
color: #0f172a;
}


.order-meta,
.muted-line {
color: #64748b;
font-size: 14px;
margin-top: 6px;
}


.order-top-right {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 10px;
}


.order-price {
font-size: 24px;
font-weight: 800;
color: #2553d8;
}


.order-items-preview,
.payments-list {
display: grid;
gap: 12px;
margin-top: 18px;
padding-top: 18px;
border-top: 1px solid #edf2ff;
}


.order-item-row,
.payment-row {
display: flex;
justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
align-items: center;
}


.order-item-price {
font-weight: 800;
color: #0f172a;
}


.payment-side {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}


.empty-state,
.empty-note {
text-align: center;
color: #64748b;
}


.empty-state h2 {
color: #0f172a;
}


@media (max-width: 1100px) {
.hero-dashboard,
.stats-grid,
.dashboard-main-grid,
.settings-layout,
.order-view-stats {
grid-template-columns: 1fr;
}
}


@media (max-width: 768px) {
.header-inner {
flex-direction: column;
align-items: flex-start;
padding: 14px 0;
}


.main-nav {
    gap: 12px;
}

.order-top-right {
    align-items: flex-start;
}

.onboarding-card {
    align-items: flex-start;
}

}


.recommend-box {
margin-top: 16px;
margin-bottom: 18px;
padding: 14px 16px;
border-radius: 14px;
background: #fff8e8;
border: 1px solid #fde7b0;
color: #8a5a00;
line-height: 1.5;
font-size: 14px;
}


.warning-box {
display: none;
margin-top: 14px;
margin-bottom: 14px;
padding: 12px 14px;
border-radius: 12px;
background: #fff4cc;
border: 1px solid #f7d774;
color: #8a5a00;
line-height: 1.5;
font-size: 14px;
}


.warning-box.show {
display: block;
}


.slider-group {
margin-top: 16px;
}


.slider-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
margin-bottom: 10px;
}


.slider-group input[type="range"] {
width: 100%;
accent-color: #2553d8;
cursor: pointer;
margin: 0;
}


.slider-scale {
margin-top: 8px;
font-size: 13px;
color: #64748b;
}


.slider-scale-4 {
display: grid;
grid-template-columns: repeat(4, 1fr);
}


.slider-scale-4 span:nth-child(1) {
text-align: left;
}


.slider-scale-4 span:nth-child(2),
.slider-scale-4 span:nth-child(3) {
text-align: center;
}


.slider-scale-4 span:nth-child(4) {
text-align: right;
}


.slider-scale-5-points {
position: relative;
height: 18px;
}


.slider-scale-5-points span {
position: absolute;
transform: translateX(-50%);
white-space: nowrap;
}


.slider-scale-5-points span:first-child {
transform: translateX(0);
}


.slider-scale-5-points span:last-child {
transform: translateX(-100%);
}


.slider-block {
margin-top: 18px;
}


.tp-range {
width: 100% !important;
display: block;
margin: 0 !important;
accent-color: #2553d8;
cursor: pointer;
}


.tp-scale {
width: 100%;
margin-top: 8px;
color: #64748b;
font-size: 13px;
}


.tp-scale-4 {
display: grid;
grid-template-columns: repeat(4, 1fr);
align-items: center;
}


.tp-scale-4 span:nth-child(1) {
text-align: left;
}


.tp-scale-4 span:nth-child(2),
.tp-scale-4 span:nth-child(3) {
text-align: center;
}


.tp-scale-4 span:nth-child(4) {
text-align: right;
}


.tp-scale-points {
position: relative;
width: 100%;
height: 20px;
margin-top: 8px;
color: #64748b;
font-size: 13px;
}


.tp-scale-points span {
position: absolute;
top: 0;
transform: translateX(-50%);
white-space: nowrap;
}


.tp-scale-points span:first-child {
transform: translateX(0);
}


.tp-scale-points span:last-child {
transform: translateX(-100%);
}


.warning-box {
display: none;
margin-top: 14px;
margin-bottom: 14px;
padding: 12px 14px;
border-radius: 12px;
background: #fff4cc;
border: 1px solid #f7d774;
color: #8a5a00;
line-height: 1.5;
font-size: 14px;
}


.warning-box.show {
display: block;
}


.recommend-box {
margin-top: 16px;
margin-bottom: 18px;
padding: 14px 16px;
border-radius: 14px;
background: #fff8e8;
border: 1px solid #fde7b0;
color: #8a5a00;
line-height: 1.5;
font-size: 14px;
}


.app-layout {
display: grid;
grid-template-columns: 290px 1fr;
min-height: 100vh;
background: #f3f5fb;
}


.sidebar {
background: #2f335c;
color: #fff;
padding: 24px 18px;
display: flex;
flex-direction: column;
gap: 24px;
}


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


.sidebar-logo {
width: 48px;
height: 48px;
border-radius: 14px;
background: linear-gradient(135deg, #4f7cff, #2553d8);
display: flex;
align-items: center;
justify-content: center;
font-weight: 800;
color: #fff;
}


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


.sidebar-brand-subtitle {
font-size: 13px;
color: rgba(255,255,255,0.65);
}


.sidebar-company-card {
background: rgba(255,255,255,0.06);
border-radius: 20px;
padding: 18px;
}


.sidebar-company-avatar {
width: 56px;
height: 56px;
border-radius: 18px;
background: linear-gradient(135deg, #4f7cff, #7c3aed);
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
font-weight: 800;
margin-bottom: 12px;
}


.sidebar-company-name {
font-size: 18px;
font-weight: 700;
margin-bottom: 6px;
}


.sidebar-company-email {
color: rgba(255,255,255,0.72);
font-size: 14px;
line-height: 1.5;
word-break: break-word;
}


.sidebar-nav {
display: grid;
gap: 8px;
}


.sidebar-link {
display: flex;
align-items: center;
gap: 12px;
color: rgba(255,255,255,0.78);
text-decoration: none;
padding: 12px 14px;
border-radius: 14px;
font-weight: 600;
transition: 0.2s ease;
}


.sidebar-link:hover {
background: rgba(255,255,255,0.08);
color: #fff;
}


.sidebar-link.active {
background: #fff;
color: #1f2a56;
}


.app-content {
display: flex;
flex-direction: column;
min-width: 0;
}


.topbar {
height: 78px;
background: rgba(255,255,255,0.9);
border-bottom: 1px solid #e8eefc;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 28px;
position: sticky;
top: 0;
z-index: 20;
backdrop-filter: blur(8px);
}


.topbar-title {
font-size: 24px;
font-weight: 800;
color: #1f2a56;
}


.topbar-right {
display: flex;
align-items: center;
gap: 14px;
}


.topbar-user {
font-weight: 700;
color: #334155;
}


.app-main {
padding: 28px;
}


.container-fluid {
width: 100%;
}


.stats-page-header h1 {
margin: 0 0 22px;
font-size: 56px;
line-height: 1;
color: #2f335c;
}


.stats-tabs {
display: flex;
gap: 28px;
border-bottom: 1px solid #dfe3ef;
margin-bottom: 28px;
}


.stats-tab {
text-decoration: none;
color: #7c859f;
font-size: 20px;
font-weight: 700;
padding-bottom: 16px;
border-bottom: 4px solid transparent;
}


.stats-tab.active {
color: #2f335c;
border-bottom-color: #2f335c;
}


.stats-filters {
display: flex;
gap: 12px;
flex-wrap: wrap;
margin-bottom: 28px;
}


.stats-period-switch {
display: flex;
background: #fff;
border: 1px solid #dfe3ef;
border-radius: 18px;
overflow: hidden;
}


.stats-period-switch a {
padding: 18px 26px;
text-decoration: none;
color: #7c859f;
font-size: 18px;
font-weight: 700;
border-right: 1px solid #dfe3ef;
}


.stats-period-switch a:last-child {
border-right: none;
}


.stats-period-switch a.active {
color: #2f335c;
background: #f7f8fc;
}


.stats-filter-box {
background: #fff;
border: 1px solid #dfe3ef;
border-radius: 18px;
padding: 18px 22px;
min-width: 220px;
color: #7c859f;
font-size: 16px;
line-height: 1.4;
}


.stats-filter-box strong {
display: block;
color: #2f335c;
font-size: 18px;
margin-top: 4px;
}


.stats-kpi-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 18px;
margin-bottom: 28px;
}


.stats-kpi-card {
background: #fff;
border: 1px solid #dfe3ef;
border-radius: 26px;
padding: 26px 24px;
}


.stats-kpi-title {
font-size: 18px;
font-weight: 700;
color: #2f335c;
line-height: 1.4;
min-height: 56px;
}


.stats-kpi-growth {
color: #22a447;
font-weight: 700;
margin: 14px 0 8px;
text-align: right;
}


.stats-kpi-value {
font-size: 34px;
font-weight: 800;
color: #2f335c;
text-align: right;
}


.stats-chart-card {
background: #fff;
border: 1px solid #dfe3ef;
border-radius: 30px;
padding: 30px;
}


.stats-chart-head {
display: flex;
justify-content: space-between;
gap: 20px;
margin-bottom: 24px;
}


.stats-chart-head h2 {
margin: 0 0 10px;
font-size: 30px;
color: #2f335c;
}


.stats-chart-head p {
margin: 0;
color: #7c859f;
font-size: 17px;
line-height: 1.6;
max-width: 920px;
}


.stats-download-btn {
width: 56px;
height: 56px;
border: none;
border-radius: 18px;
background: #eff1f7;
font-size: 24px;
cursor: pointer;
}


.stats-chart-layout {
display: grid;
grid-template-columns: 2fr 320px;
gap: 28px;
align-items: start;
}


.fake-chart {
height: 380px;
background: #d8edf9;
border-radius: 0;
display: flex;
align-items: end;
justify-content: space-between;
padding: 28px 18px 10px;
gap: 18px;
overflow: hidden;
}


.fake-chart-col {
display: flex;
flex-direction: column;
justify-content: end;
align-items: center;
flex: 1;
height: 100%;
}


.fake-chart-bars {
width: 58%;
min-width: 70px;
display: flex;
align-items: end;
justify-content: center;
gap: 0;
height: 300px;
}


.bar {
width: 30%;
min-width: 16px;
border-radius: 0;
}


.bar-search {
background: #f1d45b;
}


.bar-maps {
background: #e06454;
}


.bar-nav {
background: #46b95b;
}


.fake-chart-label {
margin-top: 14px;
color: #6f778f;
font-size: 16px;
}


.stats-legend {
padding-top: 24px;
}


.stats-legend h3 {
margin: 0 0 24px;
font-size: 18px;
color: #2f335c;
}


.legend-row {
display: flex;
justify-content: space-between;
gap: 16px;
align-items: center;
padding: 14px 0;
}


.legend-left {
display: flex;
align-items: center;
gap: 12px;
color: #2f335c;
font-weight: 600;
}


.legend-right {
font-weight: 800;
color: #6f778f;
}


.legend-color {
width: 16px;
height: 16px;
border-radius: 5px;
display: inline-block;
}


.legend-search {
background: #f1d45b;
}


.legend-maps {
background: #e06454;
}


.legend-nav {
background: #46b95b;
}


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


.stats-chart-layout {
    grid-template-columns: 1fr;
}

}


@media (max-width: 980px) {
.app-layout {
grid-template-columns: 1fr;
}


.sidebar {
    display: none;
}

.stats-page-header h1 {
    font-size: 40px;
}

}


@media (max-width: 768px) {
.app-main {
padding: 18px;
}


.topbar {
    padding: 0 16px;
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
}

.stats-kpi-grid {
    grid-template-columns: 1fr;
}

.stats-tabs {
    gap: 16px;
    overflow-x: auto;
}

.stats-period-switch {
    width: 100%;
}

.stats-period-switch a {
    flex: 1;
    text-align: center;
    padding: 16px 10px;
}

}


.cards-list-grid {
display: grid;
gap: 18px;
}


.managed-card {
border: 1px solid #e8eefc;
border-radius: 20px;
padding: 20px;
background: #fbfdff;
}


.managed-card-head {
display: flex;
justify-content: space-between;
gap: 16px;
margin-bottom: 14px;
}


.managed-card h3 {
margin: 0 0 6px;
}


.card-select-grid {
display: grid;
gap: 16px;
}


.card-select-item input {
display: none;
}


.card-select-box {
border: 1px solid #dbe6ff;
background: #fff;
border-radius: 18px;
padding: 18px;
cursor: pointer;
transition: 0.2s ease;
}


.card-select-item input:checked + .card-select-box {
border-color: #2553d8;
box-shadow: 0 0 0 3px rgba(37, 83, 216, 0.10);
background: #f8fbff;
}


.card-select-name {
font-size: 18px;
font-weight: 800;
color: #0f172a;
margin-bottom: 8px;
}


.section-head-row {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 16px;
margin-bottom: 20px;
flex-wrap: wrap;
}


.card-tile-link {
text-decoration: none;
color: inherit;
display: block;
}


.managed-card-clickable {
transition: 0.2s ease;
cursor: pointer;
}


.managed-card-clickable:hover {
transform: translateY(-2px);
box-shadow: 0 16px 36px rgba(37, 83, 216, 0.08);
border-color: #cfe0ff;
}


.card-link-text {
max-width: 420px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: inline-block;
}


.sidebar-active-card {
background: rgba(255,255,255,0.08);
border-radius: 18px;
padding: 16px;
}


.sidebar-active-card-label {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: rgba(255,255,255,0.65);
margin-bottom: 8px;
}


.sidebar-active-card-name {
font-size: 16px;
font-weight: 800;
margin-bottom: 10px;
line-height: 1.4;
}


.sidebar-active-card-status .status-badge {
font-size: 12px;
}


.sidebar-cards-switcher {
display: grid;
gap: 10px;
}


.sidebar-cards-title {
font-size: 13px;
color: rgba(255,255,255,0.7);
font-weight: 700;
}


.sidebar-cards-list {
display: grid;
gap: 8px;
}


.sidebar-card-link {
display: flex;
align-items: center;
gap: 10px;
color: rgba(255,255,255,0.78);
text-decoration: none;
padding: 10px 12px;
border-radius: 12px;
background: rgba(255,255,255,0.04);
transition: 0.2s ease;
}


.sidebar-card-link:hover {
background: rgba(255,255,255,0.08);
color: #fff;
}


.sidebar-card-link.active {
background: rgba(79,124,255,0.22);
color: #fff;
}


.sidebar-card-dot {
width: 10px;
height: 10px;
border-radius: 999px;
background: #7ea6ff;
flex-shrink: 0;
}


.sidebar-card-text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}


.stats-card-filter-row {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 22px;
}


.stats-card-filter {
text-decoration: none;
padding: 10px 16px;
border-radius: 999px;
background: #fff;
border: 1px solid #dfe3ef;
color: #5b6480;
font-weight: 700;
}


.stats-card-filter.active {
background: #2f335c;
color: #fff;
border-color: #2f335c;
}


.sidebar-card-menu-item {
justify-content: flex-start;
}


.sidebar-card-menu-text {
display: inline-block;
max-width: 190px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.stats-modern-header {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.stats-modern-header h1 {
    margin: 0 0 10px;
    font-size: 48px;
    line-height: 1.05;
    color: #2f335c;
}

.stats-modern-subtitle {
    margin: 0;
    color: #6f778f;
    font-size: 17px;
    max-width: 760px;
}

.stats-top-card {
    min-width: 320px;
    background: linear-gradient(135deg, #ffffff, #f6f8ff);
    border: 1px solid #dfe3ef;
    border-radius: 24px;
    padding: 22px 24px;
    box-shadow: 0 12px 30px rgba(47, 51, 92, 0.05);
}

.stats-top-card-label {
    color: #6f778f;
    font-size: 14px;
    margin-bottom: 8px;
}

.stats-top-card-value {
    color: #2f335c;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.35;
}

.stats-top-card-sub {
    color: #6f778f;
    font-size: 14px;
    line-height: 1.5;
}

.stats-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: start;
    margin-bottom: 28px;
}

.stats-period-switch-modern {
    flex-wrap: wrap;
    border-radius: 20px;
}

.stats-toolbar-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.stats-kpi-grid-modern {
    margin-bottom: 28px;
}

.stats-kpi-card-modern {
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(47, 51, 92, 0.05);
}

.stats-kpi-value-left {
    text-align: left;
    margin-top: 16px;
}

.stats-kpi-sub {
    margin-top: 8px;
    color: #7c859f;
    font-size: 14px;
    line-height: 1.5;
}

.stats-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 24px;
    align-items: start;
}

.stats-summary-card {
    background: #fff;
    border: 1px solid #dfe3ef;
    border-radius: 30px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(47, 51, 92, 0.05);
}

.stats-summary-head h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #2f335c;
}

.stats-summary-head p {
    margin: 0 0 20px;
    color: #7c859f;
    font-size: 15px;
    line-height: 1.6;
}

.stats-summary-list {
    display: grid;
    gap: 14px;
}

.stats-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf1f7;
}

.stats-summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stats-summary-row span {
    color: #6f778f;
    font-size: 15px;
}

.stats-summary-row strong {
    color: #2f335c;
    font-size: 18px;
    font-weight: 800;
    text-align: right;
}

.stats-modern-chart {
    min-height: 360px;
    background: linear-gradient(180deg, #f7f9fe 0%, #f1f5ff 100%);
    border: 1px solid #e8edf7;
    border-radius: 24px;
    padding: 26px 18px 14px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
}

.stats-modern-chart-col {
    min-width: 72px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    flex: 1;
}

.stats-modern-chart-bars {
    height: 250px;
    width: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 6px;
}

.stats-modern-bar {
    width: 18px;
    min-height: 2px;
    border-radius: 10px 10px 4px 4px;
    transition: 0.2s ease;
}

.stats-modern-bar:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.stats-modern-bar-visits {
    background: linear-gradient(180deg, #6578ff, #4f7cff);
}

.stats-modern-bar-users {
    background: linear-gradient(180deg, #f472b6, #ec4899);
}

.stats-modern-bar-pageviews {
    background: linear-gradient(180deg, #34d399, #10b981);
}

.stats-modern-chart-label {
    margin-top: 12px;
    color: #6f778f;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
}

.stats-modern-legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.stats-modern-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b5565;
    font-weight: 600;
}

.stats-modern-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
}

.stats-modern-dot.visits {
    background: #4f7cff;
}

.stats-modern-dot.users {
    background: #ec4899;
}

.stats-modern-dot.pageviews {
    background: #10b981;
}

.stats-info-note {
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff8e8;
    border: 1px solid #fde7b0;
    color: #8a5a00;
    line-height: 1.6;
    font-size: 14px;
}

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

@media (max-width: 980px) {
    .stats-modern-header h1 {
        font-size: 38px;
    }

    .stats-toolbar {
        grid-template-columns: 1fr;
    }

    .stats-toolbar-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .stats-top-card {
        min-width: 100%;
    }

    .stats-modern-chart-col {
        min-width: 58px;
    }

    .stats-modern-chart-bars {
        gap: 4px;
    }

    .stats-modern-bar {
        width: 14px;
    }
}

.stats-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.stats-toolbar-left {
    flex: 1 1 520px;
    min-width: 320px;
}

.stats-toolbar-right {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.stats-period-switch-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.stats-period-switch-modern a {
    border: 1px solid #dfe3ef;
    background: #fff;
    color: #5b6480;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.stats-period-switch-modern a.active {
    background: #2f335c;
    color: #fff;
    border-color: #2f335c;
}

.stats-filter-box-form {
    min-width: 250px;
    padding: 16px 18px;
}

.stats-filter-box-compact {
    min-width: 220px;
}

.stats-filter-box-form label {
    display: block;
    color: #6f778f;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 700;
}

.stats-filter-box-form input[type="date"],
.stats-filter-box-form select {
    width: 100%;
    border: 1px solid #dfe3ef;
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    color: #2f335c;
    height: 46px;
}

.stats-date-range-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
}

.stats-date-range-row span {
    color: #7c859f;
    font-weight: 700;
}

.stats-filter-actions {
    display: flex;
    align-items: flex-end;
}

.stats-filter-actions .btn {
    height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .stats-toolbar {
        flex-direction: column;
    }

    .stats-toolbar-left,
    .stats-toolbar-right {
        width: 100%;
    }

    .stats-toolbar-right {
        align-items: stretch;
    }

    .stats-filter-actions .btn {
        width: 100%;
    }
}

.stats-modern-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}

.stats-modern-header h1 {
    margin: 0 0 10px;
    font-size: 48px;
    line-height: 1.05;
    color: #2f335c;
}

.stats-modern-subtitle {
    margin: 0;
    color: #6f778f;
    font-size: 17px;
    line-height: 1.6;
    max-width: 760px;
}

.stats-top-card {
    width: 100%;
    min-width: 0;
    background: linear-gradient(135deg, #ffffff, #f6f8ff);
    border: 1px solid #dfe3ef;
    border-radius: 24px;
    padding: 22px 24px;
    box-shadow: 0 12px 30px rgba(47, 51, 92, 0.05);
}

.stats-top-card-label {
    color: #6f778f;
    font-size: 14px;
    margin-bottom: 8px;
}

.stats-top-card-value {
    color: #2f335c;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.35;
}

.stats-top-card-sub {
    color: #6f778f;
    font-size: 14px;
    line-height: 1.5;
}

.stats-control-form {
    margin-bottom: 28px;
}

.stats-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 0;
}

.stats-toolbar-left,
.stats-toolbar-right {
    width: 100%;
    min-width: 0;
}

.stats-period-switch-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.stats-period-switch-modern a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid #dfe3ef;
    background: #fff;
    color: #5b6480;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.stats-period-switch-modern a.active {
    background: #2f335c;
    color: #fff;
    border-color: #2f335c;
}

.stats-toolbar-right {
    display: grid;
    grid-template-columns: minmax(320px, 1.3fr) minmax(220px, 0.8fr) auto;
    gap: 16px;
    align-items: end;
}

.stats-filter-box {
    min-width: 0;
}

.stats-filter-box-form {
    min-width: 0;
    width: 100%;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #dfe3ef;
    border-radius: 20px;
}

.stats-filter-box-compact {
    min-width: 0;
}

.stats-filter-box-form label {
    display: block;
    color: #6f778f;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 700;
}

.stats-filter-box-form input[type="date"],
.stats-filter-box-form select {
    width: 100%;
    border: 1px solid #dfe3ef;
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    color: #2f335c;
    height: 46px;
}

.stats-date-range-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.stats-date-range-row span {
    color: #7c859f;
    font-weight: 700;
    text-align: center;
}

.stats-filter-actions {
    display: flex;
    align-items: end;
    justify-content: stretch;
}

.stats-filter-actions .btn {
    height: 56px;
    min-width: 140px;
    padding: 0 22px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.stats-kpi-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stats-kpi-card-modern {
    min-width: 0;
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(47, 51, 92, 0.05);
}

.stats-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 24px;
    align-items: start;
}

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

    .stats-toolbar-right {
        grid-template-columns: 1fr 1fr auto;
    }

    .stats-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .stats-modern-header h1 {
        font-size: 38px;
    }

    .stats-toolbar-right {
        grid-template-columns: 1fr;
    }

    .stats-filter-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .stats-kpi-grid-modern {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .stats-modern-header h1 {
        font-size: 34px;
    }

    .stats-period-switch-modern {
        gap: 8px;
    }

    .stats-period-switch-modern a {
        flex: 0 0 auto;
    }

    .stats-date-range-row {
        grid-template-columns: 1fr;
    }

    .stats-date-range-row span {
        display: none;
    }

    .stats-kpi-grid-modern {
        grid-template-columns: 1fr;
    }
}

.stats-page-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 24px;
    align-items: start;
    margin-bottom: 22px;
}

.stats-page-title {
    margin: 0 0 10px;
    font-size: 58px;
    line-height: 1.02;
    color: #2f335c;
}

.stats-page-subtitle {
    margin: 0;
    color: #6f778f;
    font-size: 17px;
    line-height: 1.6;
}

.stats-page-top-card {
    background: #fff;
    border: 1px solid #dfe3ef;
    border-radius: 26px;
    padding: 20px 24px;
}

.stats-page-top-card-label {
    color: #7c859f;
    font-size: 14px;
    margin-bottom: 8px;
}

.stats-page-top-card-title {
    color: #2f335c;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.stats-page-top-card-sub {
    color: #6f778f;
    font-size: 14px;
    line-height: 1.5;
}

.stats-simple-form {
    margin-bottom: 28px;
}

.stats-presets-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.stats-preset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid #dfe3ef;
    background: #fff;
    color: #5b6480;
    font-weight: 700;
    text-decoration: none;
}

.stats-preset-btn.active {
    background: #2f335c;
    border-color: #2f335c;
    color: #fff;
}

.stats-controls-row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr) auto;
    gap: 16px;
    align-items: end;
}

.stats-control-card {
    background: #fff;
    border: 1px solid #dfe3ef;
    border-radius: 22px;
    padding: 16px 18px;
    min-width: 0;
}

.stats-control-card label {
    display: block;
    margin-bottom: 10px;
    color: #6f778f;
    font-size: 14px;
    font-weight: 700;
}

.stats-control-card input[type="date"],
.stats-control-card select {
    width: 100%;
    height: 46px;
    border: 1px solid #dfe3ef;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    color: #2f335c;
    background: #fff;
}

.stats-date-range-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.stats-date-range-row span {
    text-align: center;
    color: #7c859f;
    font-weight: 700;
}

.stats-control-submit {
    display: flex;
    align-items: end;
}

.stats-control-submit .btn {
    height: 54px;
    min-width: 140px;
    border-radius: 14px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stats-kpi-value-left {
    text-align: left;
}

.stats-kpi-sub {
    margin-top: 8px;
    color: #7c859f;
    font-size: 14px;
}

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

    .stats-controls-row {
        grid-template-columns: 1fr 1fr;
    }

    .stats-control-submit {
        grid-column: 1 / -1;
    }

    .stats-control-submit .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .stats-page-title {
        font-size: 40px;
    }

    .stats-controls-row {
        grid-template-columns: 1fr;
    }

    .stats-date-range-row {
        grid-template-columns: 1fr;
    }

    .stats-date-range-row span {
        display: none;
    }
}

.stats-unified-form {
    margin-bottom: 28px;
}

.stats-unified-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.1fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr) minmax(220px, 0.9fr) auto;
    gap: 16px;
    align-items: end;
}

.stats-unified-field {
    background: #fff;
    border: 1px solid #dfe3ef;
    border-radius: 22px;
    padding: 16px 18px;
    min-width: 0;
}

.stats-unified-field label {
    display: block;
    margin-bottom: 10px;
    color: #6f778f;
    font-size: 14px;
    font-weight: 700;
}

.stats-unified-field input,
.stats-unified-field select {
    width: 100%;
    height: 46px;
    border: 1px solid #dfe3ef;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    color: #2f335c;
    background: #fff;
}

.stats-unified-submit {
    display: flex;
    align-items: end;
}

.stats-unified-submit .btn {
    height: 54px;
    min-width: 150px;
    border-radius: 14px;
    padding: 0 22px;
    display: inline-flex;
    align-items
}


.stats-unified-form {
    margin-bottom: 28px;
}

.stats-unified-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.9fr 0.9fr 0.95fr 160px;
    gap: 16px;
    align-items: stretch;
}

.stats-unified-field {
    background: #fff;
    border: 1px solid #dfe3ef;
    border-radius: 22px;
    padding: 16px 18px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 96px;
}

.stats-unified-field label {
    display: block;
    margin-bottom: 10px;
    color: #6f778f;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.stats-unified-field input,
.stats-unified-field select {
    width: 100%;
    height: 46px;
    border: 1px solid #dfe3ef;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    color: #2f335c;
    background: #fff;
    box-sizing: border-box;
}

.stats-unified-submit {
    display: flex;
    align-items: stretch;
}

.stats-unified-submit .btn {
    width: 100%;
    min-width: 0;
    height: 96px;
    border-radius: 22px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.stats-kpi-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stats-kpi-grid-3 .stats-kpi-card {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stats-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 24px;
    align-items: start;
}

.stats-page-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
}

.stats-page-top-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

    .stats-unified-submit .btn {
        height: 56px;
        border-radius: 14px;
    }

    .stats-kpi-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-main-grid {
        grid-template-columns: 1fr;
    }

    .stats-page-top {
        grid-template-columns: 1fr;
    }
}

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

    .stats-kpi-grid-3 {
        grid-template-columns: 1fr;
    }

    .stats-page-title {
        font-size: 40px;
    }
}

.tp-stat-page {
    width: 100%;
}

.tp-stat-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
}

.tp-stat-head__main {
    min-width: 0;
}

.tp-stat-head__title {
    margin: 0 0 10px;
    font-size: 56px;
    line-height: 1.02;
    color: #2f335c;
}

.tp-stat-head__subtitle {
    margin: 0;
    color: #6f778f;
    font-size: 17px;
    line-height: 1.6;
}

.tp-stat-head__card {
    background: #fff;
    border: 1px solid #dfe3ef;
    border-radius: 24px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
}

.tp-stat-head__label {
    color: #7c859f;
    font-size: 14px;
    margin-bottom: 8px;
}

.tp-stat-head__card-title {
    color: #2f335c;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 8px;
}

.tp-stat-head__card-sub {
    color: #6f778f;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.tp-stat-filters {
    margin-bottom: 28px;
}

.tp-stat-filters__grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.15fr) minmax(180px, 0.85fr) minmax(180px, 0.85fr) minmax(220px, 0.95fr) 160px;
    gap: 16px;
    align-items: stretch;
}

.tp-stat-field {
    background: #fff;
    border: 1px solid #dfe3ef;
    border-radius: 22px;
    padding: 16px 18px;
    min-height: 98px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.tp-stat-field label {
    display: block;
    margin-bottom: 10px;
    color: #6f778f;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.tp-stat-field input,
.tp-stat-field select {
    width: 100%;
    height: 46px;
    border: 1px solid #dfe3ef;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    color: #2f335c;
    background: #fff;
    box-sizing: border-box;
}

.tp-stat-submit {
    display: flex;
    align-items: stretch;
}

.tp-stat-submit .btn {
    width: 100%;
    height: 98px;
    border-radius: 22px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.tp-stat-kpi {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.tp-stat-kpi__card {
    background: #fff;
    border: 1px solid #dfe3ef;
    border-radius: 24px;
    padding: 24px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 12px 28px rgba(47, 51, 92, 0.05);
}

.tp-stat-kpi__title {
    color: #2f335c;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.tp-stat-kpi__value {
    color: #2f335c;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 16px;
}

.tp-stat-kpi__sub {
    margin-top: 8px;
    color: #7c859f;
    font-size: 14px;
    line-height: 1.5;
}

.tp-stat-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 24px;
    align-items: start;
}

.tp-stat-panel,
.tp-stat-side {
    background: #fff;
    border: 1px solid #dfe3ef;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(47, 51, 92, 0.05);
}

.tp-stat-panel__head {
    margin-bottom: 22px;
}

.tp-stat-panel__head h2 {
    margin: 0 0 10px;
    font-size: 30px;
    color: #2f335c;
}

.tp-stat-panel__head p {
    margin: 0;
    color: #7c859f;
    font-size: 16px;
    line-height: 1.6;
}

.tp-stat-chart {
    min-height: 360px;
    background: linear-gradient(180deg, #f7f9fe 0%, #f1f5ff 100%);
    border: 1px solid #e8edf7;
    border-radius: 24px;
    padding: 26px 18px 14px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
}

.tp-stat-chart__col {
    min-width: 72px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    flex: 1;
}

.tp-stat-chart__bars {
    height: 250px;
    width: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 6px;
}

.tp-stat-chart__bar {
    width: 18px;
    min-height: 2px;
    border-radius: 10px 10px 4px 4px;
}

.tp-stat-chart__bar--visits {
    background: linear-gradient(180deg, #6578ff, #4f7cff);
}

.tp-stat-chart__bar--users {
    background: linear-gradient(180deg, #f472b6, #ec4899);
}

.tp-stat-chart__bar--views {
    background: linear-gradient(180deg, #34d399, #10b981);
}

.tp-stat-chart__label {
    margin-top: 12px;
    color: #6f778f;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
}

.tp-stat-legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.tp-stat-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b5565;
    font-weight: 600;
}

.tp-stat-legend__dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
}

.tp-stat-legend__dot--visits {
    background: #4f7cff;
}

.tp-stat-legend__dot--users {
    background: #ec4899;
}

.tp-stat-legend__dot--views {
    background: #10b981;
}

.tp-stat-side__head h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #2f335c;
}

.tp-stat-side__head p {
    margin: 0 0 20px;
    color: #7c859f;
    font-size: 15px;
    line-height: 1.6;
}

.tp-stat-side__list {
    display: grid;
    gap: 14px;
}

.tp-stat-side__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf1f7;
}

.tp-stat-side__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tp-stat-side__row span {
    color: #6f778f;
    font-size: 15px;
}

.tp-stat-side__row strong {
    color: #2f335c;
    font-size: 18px;
    font-weight: 800;
    text-align: right;
}

@media (max-width: 1280px) {
    .tp-stat-filters__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tp-stat-submit .btn {
        height: 56px;
        border-radius: 14px;
    }

    .tp-stat-kpi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tp-stat-layout {
        grid-template-columns: 1fr;
    }

    .tp-stat-head {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tp-stat-head__title {
        font-size: 40px;
    }

    .tp-stat-filters__grid {
        grid-template-columns: 1fr;
    }

    .tp-stat-kpi {
        grid-template-columns: 1fr;
    }

    .tp-stat-chart__col {
        min-width: 58px;
    }

    .tp-stat-chart__bars {
        gap: 4px;
    }

    .tp-stat-chart__bar {
        width: 14px;
    }
}

.tp-stat-filters__grid {
    grid-template-columns: minmax(220px, 1.1fr) minmax(170px, 0.8fr) minmax(170px, 0.8fr) minmax(200px, 0.9fr) 130px;
    gap: 16px;
    align-items: stretch;
}

.tp-stat-field {
    min-height: 84px;
    padding: 14px 16px;
    border-radius: 20px;
}

.tp-stat-field label {
    margin-bottom: 8px;
    font-size: 13px;
}

.tp-stat-field input,
.tp-stat-field select {
    height: 42px;
    font-size: 14px;
    border-radius: 12px;
}

.tp-stat-submit {
    display: flex;
    align-items: stretch;
}

.tp-stat-submit .btn {
    width: 100%;
    height: 84px;
    min-width: 0;
    padding: 0 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 1280px) {
    .tp-stat-filters__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tp-stat-submit .btn {
        height: 52px;
        border-radius: 14px;
    }
}

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


/* ===== TP STATISTICS FINAL PREMIUM ===== */

.tp-stat-page {
    width: 100%;
}

.tp-stat-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 420px !important;
    gap: 24px !important;
    align-items: stretch !important;
    margin-bottom: 28px !important;
}

.tp-stat-head__main {
    min-width: 0;
}

.tp-stat-head__title {
    margin: 0 0 12px !important;
    font-size: 54px !important;
    line-height: 1.02 !important;
    color: #2f335c !important;
    font-weight: 800 !important;
}

.tp-stat-head__subtitle {
    margin: 0 !important;
    color: #6f778f !important;
    font-size: 17px !important;
    line-height: 1.65 !important;
}

.tp-stat-head__card {
    background: #ffffff !important;
    border: 1px solid #dfe3ef !important;
    border-radius: 28px !important;
    padding: 24px 26px !important;
    min-height: 148px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    box-shadow: 0 12px 32px rgba(47, 51, 92, 0.05) !important;
}

.tp-stat-head__label {
    color: #7c859f !important;
    font-size: 13px !important;
    margin-bottom: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

.tp-stat-head__card-title {
    color: #2f335c !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
}

.tp-stat-head__card-sub {
    color: #6f778f !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    word-break: break-word !important;
}

.tp-stat-filters {
    margin-bottom: 30px !important;
}

.tp-stat-filters__grid {
    display: grid !important;
    grid-template-columns: minmax(240px, 1.25fr) minmax(190px, 0.9fr) minmax(190px, 0.9fr) minmax(220px, 1fr) 170px !important;
    gap: 18px !important;
    align-items: stretch !important;
}

.tp-stat-field {
    background: #ffffff !important;
    border: 1px solid #dfe3ef !important;
    border-radius: 24px !important;
    padding: 18px 18px 16px !important;
    min-height: 112px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-width: 0 !important;
    box-shadow: 0 10px 24px rgba(47, 51, 92, 0.04) !important;
}

.tp-stat-field label {
    display: block !important;
    margin: 0 0 12px !important;
    color: #6f778f !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

.tp-stat-field input,
.tp-stat-field select {
    width: 100% !important;
    height: 50px !important;
    border: 1px solid #d7dfef !important;
    border-radius: 14px !important;
    padding: 0 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #2f335c !important;
    background: #fbfcff !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
}

.tp-stat-field input:focus,
.tp-stat-field select:focus {
    border-color: #4f7cff !important;
    box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.10) !important;
    background: #fff !important;
}

.tp-stat-submit {
    display: flex !important;
    align-items: stretch !important;
}

.tp-stat-submit .btn,
.tp-stat-submit .btn.btn-primary {
    width: 100% !important;
    min-width: 0 !important;
    height: 112px !important;
    border-radius: 24px !important;
    padding: 0 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #5c82ff, #4f7cff) !important;
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(79, 124, 255, 0.24) !important;
    border: none !important;
}

.tp-stat-submit .btn:hover,
.tp-stat-submit .btn.btn-primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 18px 34px rgba(79, 124, 255, 0.28) !important;
}

.tp-stat-kpi {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
}

.tp-stat-kpi__card {
    background: #ffffff !important;
    border: 1px solid #dfe3ef !important;
    border-radius: 26px !important;
    padding: 24px 24px 22px !important;
    min-height: 190px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-shadow: 0 12px 28px rgba(47, 51, 92, 0.05) !important;
}

.tp-stat-kpi__title {
    color: #2f335c !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.tp-stat-kpi__value {
    color: #2f335c !important;
    font-size: 42px !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    margin-top: 18px !important;
}

.tp-stat-kpi__sub {
    margin-top: 8px !important;
    color: #7c859f !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.tp-stat-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr) !important;
    gap: 24px !important;
    align-items: start !important;
}

.tp-stat-panel,
.tp-stat-side {
    background: #ffffff !important;
    border: 1px solid #dfe3ef !important;
    border-radius: 30px !important;
    padding: 30px !important;
    box-shadow: 0 14px 32px rgba(47, 51, 92, 0.05) !important;
}

.tp-stat-panel__head {
    margin-bottom: 22px !important;
}

.tp-stat-panel__head h2 {
    margin: 0 0 10px !important;
    font-size: 30px !important;
    color: #2f335c !important;
    font-weight: 800 !important;
}

.tp-stat-panel__head p {
    margin: 0 !important;
    color: #7c859f !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

.tp-stat-chart {
    min-height: 370px !important;
    background: linear-gradient(180deg, #f8faff 0%, #f2f6ff 100%) !important;
    border: 1px solid #e7edf8 !important;
    border-radius: 24px !important;
    padding: 28px 18px 14px !important;
    display: flex !important;
    align-items: end !important;
    justify-content: space-between !important;
    gap: 14px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

.tp-stat-chart__col {
    min-width: 72px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: end !important;
    align-items: center !important;
    flex: 1 !important;
}

.tp-stat-chart__bars {
    height: 255px !important;
    width: 100% !important;
    display: flex !important;
    align-items: end !important;
    justify-content: center !important;
    gap: 6px !important;
}

.tp-stat-chart__bar {
    width: 18px !important;
    min-height: 2px !important;
    border-radius: 10px 10px 4px 4px !important;
}

.tp-stat-chart__bar--visits {
    background: linear-gradient(180deg, #6a7cff, #4f7cff) !important;
}

.tp-stat-chart__bar--users {
    background: linear-gradient(180deg, #f57db8, #ec4899) !important;
}

.tp-stat-chart__bar--views {
    background: linear-gradient(180deg, #35d6a0, #10b981) !important;
}

.tp-stat-chart__label {
    margin-top: 12px !important;
    color: #6f778f !important;
    font-size: 13px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.tp-stat-legend {
    display: flex !important;
    gap: 18px !important;
    flex-wrap: wrap !important;
    margin-top: 18px !important;
}

.tp-stat-legend__item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #4b5565 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.tp-stat-legend__dot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 999px !important;
    display: inline-block !important;
}

.tp-stat-legend__dot--visits {
    background: #4f7cff !important;
}

.tp-stat-legend__dot--users {
    background: #ec4899 !important;
}

.tp-stat-legend__dot--views {
    background: #10b981 !important;
}

.tp-stat-side__head h3 {
    margin: 0 0 10px !important;
    font-size: 24px !important;
    color: #2f335c !important;
    font-weight: 800 !important;
}

.tp-stat-side__head p {
    margin: 0 0 20px !important;
    color: #7c859f !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.tp-stat-side__list {
    display: grid !important;
    gap: 14px !important;
}

.tp-stat-side__row {
    display: flex !important;
    justify-content: space-between !important;
    gap: 16px !important;
    align-items: center !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #edf1f7 !important;
}

.tp-stat-side__row:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.tp-stat-side__row span {
    color: #6f778f !important;
    font-size: 15px !important;
}

.tp-stat-side__row strong {
    color: #2f335c !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-align: right !important;
}

@media (max-width: 1280px) {
    .tp-stat-head {
        grid-template-columns: 1fr !important;
    }

    .tp-stat-filters__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .tp-stat-submit .btn,
    .tp-stat-submit .btn.btn-primary {
        height: 60px !important;
        border-radius: 16px !important;
    }

    .tp-stat-kpi {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .tp-stat-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .tp-stat-head__title {
        font-size: 38px !important;
    }

    .tp-stat-filters__grid {
        grid-template-columns: 1fr !important;
    }

    .tp-stat-kpi {
        grid-template-columns: 1fr !important;
    }

    .tp-stat-chart__col {
        min-width: 58px !important;
    }

    .tp-stat-chart__bars {
        gap: 4px !important;
    }

    .tp-stat-chart__bar {
        width: 14px !important;
    }
}







/* ===== TP STATISTICS FILTERS SIZE TUNING ===== */

.tp-stat-filters__grid {
    grid-template-columns: minmax(190px, 1fr) 170px 170px 170px 210px !important;
    gap: 14px !important;
    align-items: stretch !important;
}

.tp-stat-field {
    min-height: 86px !important;
    padding: 12px 14px !important;
    border-radius: 20px !important;
}

.tp-stat-field label {
    margin: 0 0 8px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
}

.tp-stat-field input,
.tp-stat-field select {
    height: 42px !important;
    border-radius: 12px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
}

.tp-stat-submit .btn,
.tp-stat-submit .btn.btn-primary {
    height: 86px !important;
    border-radius: 20px !important;
    font-size: 16px !important;
    padding: 0 24px !important;
}

@media (max-width: 1280px) {
    .tp-stat-filters__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .tp-stat-submit .btn,
    .tp-stat-submit .btn.btn-primary {
        height: 56px !important;
        border-radius: 14px !important;
    }
}

@media (max-width: 768px) {
    .tp-stat-filters__grid {
        grid-template-columns: 1fr !important;
    }
}


.billing-period-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.billing-period-item input {
    display: none;
}

.billing-period-box {
    border: 1px solid #dbe6ff;
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    cursor: pointer;
    transition: 0.2s ease;
}

.billing-period-item input:checked + .billing-period-box {
    border-color: #2553d8;
    box-shadow: 0 0 0 3px rgba(37, 83, 216, 0.10);
    background: #f8fbff;
}

.billing-period-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.billing-period-discount {
    color: #64748b;
    line-height: 1.5;
}

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

@media (max-width: 640px) {
    .billing-period-grid {
        grid-template-columns: 1fr;
    }
}


.billing-period-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.billing-period-item input {
    display: none;
}

.billing-period-box {
    border: 1px solid #dbe6ff;
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    cursor: pointer;
    transition: 0.2s ease;
}

.billing-period-item input:checked + .billing-period-box {
    border-color: #2553d8;
    box-shadow: 0 0 0 3px rgba(37, 83, 216, 0.10);
    background: #f8fbff;
}

.billing-period-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.billing-period-discount {
    color: #64748b;
    line-height: 1.5;
}

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

@media (max-width: 640px) {
    .billing-period-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== ADMIN UI ===== */

.adm-page {
    width: 100%;
}

.adm-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.adm-head--with-back {
    align-items: center;
}

.adm-title {
    margin: 0 0 8px;
    font-size: 42px;
    line-height: 1.1;
    color: #0f172a;
}

.adm-subtitle {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.adm-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.adm-kpi-card {
    background: #fff;
    border: 1px solid #e5eefc;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 16px 40px rgba(32, 76, 180, 0.06);
}

.adm-kpi-label {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 10px;
}

.adm-kpi-value {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 10px;
}

.adm-kpi-sub {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.adm-short-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.adm-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.adm-panel {
    background: #fff;
    border: 1px solid #e5eefc;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(32, 76, 180, 0.06);
}

.adm-panel-head {
    margin-bottom: 18px;
}

.adm-panel-head h2 {
    margin: 0;
    font-size: 24px;
    color: #0f172a;
}

.adm-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.adm-nav-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #f8fbff;
    border: 1px solid #e5eefc;
    border-radius: 18px;
    padding: 20px;
    transition: 0.2s ease;
}

.adm-nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(37, 83, 216, 0.08);
    border-color: #cfe0ff;
}

.adm-nav-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.adm-nav-card-sub {
    color: #64748b;
    line-height: 1.5;
}

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

.adm-status-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid #edf2ff;
    padding-bottom: 10px;
}

.adm-status-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.adm-status-row span {
    color: #64748b;
}

.adm-status-row strong {
    color: #0f172a;
    font-size: 18px;
}

.adm-mini-list {
    display: grid;
    gap: 14px;
}

.adm-mini-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid #edf2ff;
    background: #fbfdff;
    border-radius: 16px;
    padding: 14px;
}

.adm-mini-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.adm-mini-sub {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.adm-mini-meta {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.adm-list {
    display: grid;
    gap: 18px;
}

.adm-entity-card {
    background: #fff;
    border: 1px solid #e8eefc;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 16px }

.adm-entity-card__sub {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.adm-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.adm-meta-item {
    background: #f8fbff;
    border: 1px solid #e5eefc;
    border-radius: 16px;
    padding: 14px;
}

.adm-meta-item span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 8px;
}

.adm-meta-item strong {
    color: #0f172a;
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
}

.adm-inline-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: end;
}

.adm-order-items {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    border-top: 1px solid #edf2ff;
    padding-top: 16px;
}

.adm-order-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    background: #fbfdff;
    border: 1px solid #edf2ff;
    border-radius: 16px;
    padding: 14px 16px;
}

.adm-order-item__title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.adm-order-item__sub {
    color: #64748b;
    font-size: 14px;
}

.adm-table-wrap {
    background: #fff;
    border: 1px solid #e8eefc;
    border-radius: 22px;
    overflow: auto;
    box-shadow: 0 16px 40px rgba(32, 76, 180, 0.06);
}

.adm-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.adm-table thead th {
    text-align: left;
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
    padding: 16px 18px;
    border-bottom: 1px solid #edf2ff;
    background: #fbfdff;
}

.adm-table tbody td {
    padding: 16px 18px;
    border-bottom: 1px solid #edf2ff;
    color: #0f172a;
    vertical-align: top;
}

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

.adm-cell-sub {
    color: #64748b;
    font-size: 13px;
}

.adm-empty-cell {
    text-align: center;
    color: #64748b;
}

.adm-note-box {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff8e8;
    border: 1px solid #fde7b0;
    color: #8a5a00;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .adm-kpi-grid,
    .adm-columns,
    .adm-meta-grid,
    .adm-short-grid {
        grid-template-columns: 1fr 1fr;
    }

    .adm-nav-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .adm-kpi-grid,
    .adm-columns,
    .adm-meta-grid,
    .adm-short-grid {
        grid-template-columns: 1fr;
    }

    .adm-title {
        font-size: 34px;
    }

    .adm-entity-card__top,
    .adm-inline-form,
    .adm-order-item,
    .adm-mini-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== ADMIN FILTERS / PAGINATION ===== */

.adm-filters {
    background: #fff;
    border: 1px solid #e8eefc;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 16px 40px rgba(32, 76, 180, 0.06);
    margin-bottom: 18px;
}

.adm-filters__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.8fr) auto;
    gap: 14px;
    align-items: end;
}

.adm-filters__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: end;
}

.adm-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.adm-toolbar__count {
    color: #0f172a;
    font-size: 15px;
}

.adm-toolbar__meta {
    color: #64748b;
    font-size: 14px;
}

.adm-pagination {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.adm-pagination__item {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid #dbe6ff;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: 0.2s ease;
}

.adm-pagination__item:hover {
    border-color: #2553d8;
    background: #f8fbff;
}

.adm-pagination__item.is-active {
    background: #2553d8;
    color: #fff;
    border-color: #2553d8;
}

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

    .adm-filters__actions {
        width: 100%;
    }
}

.adm-filters__grid--payments {
    grid-template-columns: minmax(0, 1.4fr) 220px 220px auto;
}

@media (max-width: 1100px) {
    .adm-filters__grid--payments {
        grid-template-columns: 1fr;
    }
}

.adm-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

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

.adm-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2ff;
}

.adm-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.adm-detail-row span {
    color: #64748b;
    font-size: 14px;
    max-width: 40%;
}

.adm-detail-row strong {
    color: #0f172a;
    font-size: 15px;
    text-align: right;
    line-height: 1.5;
    word-break: break-word;
    max-width: 58%;
}

.adm-actions-row {
    margin-bottom: 16px;
}

.adm-json-box {
    margin-top: 10px;
    padding: 12px 14px;
    background: #f8fbff;
    border: 1px solid #e5eefc;
    border-radius: 14px;
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-word;
}

.adm-pre {
    margin: 0;
    padding: 16px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 16px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.6;
}

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

    .adm-detail-row {
        flex-direction: column;
    }

    .adm-detail-row span,
    .adm-detail-row strong {
        max-width: 100%;
        text-align: left;
    }
}


.adm-kpi-grid--six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

@media (max-width: 1300px) {
    .adm-kpi-grid--six {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 768px) {
    .adm-kpi-grid--six,
    .adm-columns--four {
        grid-template-columns: 1fr;
    }
}

/* ===== BILLING PAGE UI ENHANCEMENTS ===== */

/* Прирост клиентов с эмодзи огня */
.tariff-growth-new {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 18px;
  background: #f8fbff;
  border: 1px solid #dbe6ff;
  border-radius: 16px;
  font-size: 15px;
  color: #334155;
  font-weight: 600;
  line-height: 1.4;
}
.tariff-growth-new strong {
  color: #2553d8;
  font-size: 22px;
  font-weight: 800;
}
.tariff-growth-new .fire-emojis {
  font-size: 20px;
  letter-spacing: 3px;
}

/* Скрываем старую кнопку прироста, чтобы не мешала */
.tariff-growth { display: none !important; }

/* Блок периода Boost */
#boost_period_display {
  background: #f8fbff;
  border: 1px solid #dbe6ff;
  border-radius: 16px;
  padding: 18px;
  margin: 16px 0;
  transition: all 0.2s ease;
}
#boost_period_display div:first-child {
  color: #64748b;
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
#boost_period_display div:last-child {
  font-size: 19px;
  font-weight: 700;
} 


/* ===== ADMIN PANEL MODERN THEME ===== */
.adm-page {
    padding: 20px 0;
    font-family: 'Inter', system-ui, sans-serif;
}
.adm-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef2f6;
}
.adm-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}
.adm-subtitle {
    color: #64748b;
    margin: 4px 0 0;
    font-size: 15px;
}
.adm-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.adm-kpi-card {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.adm-kpi-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 600;
}
.adm-kpi-value {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
}
.adm-kpi-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Карточки-списки (Cards/Orders/Users) */
.adm-list {
    display: grid;
    gap: 16px;
}
.adm-entity-card {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 20px;
    transition: 0.2s;
}
.adm-entity-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.adm-entity-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}
.adm-entity-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}
.adm-entity-card__sub {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

/* Детальные данные внутри карточки */
.adm-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.adm-meta-item span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}
.adm-meta-item strong {
    font-size: 14px;
    color: #334155;
    word-break: break-word;
}

/* Формы и кнопки внутри админки */
.adm-inline-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-top: 16px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid #eef2f6;
}
.adm-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.btn {
    padding: 10px 16px;
    font-size: 14px;
}

/* Таблицы */
.adm-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    background: #fff;
}
.adm-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}
.adm-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f6;
}
.adm-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.adm-table tr:last-child td { border-bottom: none; }
.adm-cell-sub {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

/* Детальная страница (view) */
.adm-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.adm-panel {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 24px;
}
.adm-panel-head {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f6;
}
.adm-panel-head h2 {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
}
.adm-detail-list {
    display: grid;
    gap: 12px;
}
.adm-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #f1f5f9;
}
.adm-detail-row:last-child { border: none; }
.adm-detail-row span { color: #64748b; }
.adm-detail-row strong { color: #0f172a; font-weight: 600; text-align: right; max-width: 60%; word-break: break-word; }
.adm-json-box {
    background: #1e293b;
    color: #e2e8f0;
    padding: 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    margin-top: 8px;
    white-space: pre-wrap;
}

/* Пагинация */
.adm-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.adm-pagination__item {
    padding: 8px 14px;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
}
.adm-pagination__item.is-active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.sidebar-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}