@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap");

:root {
    --font-sans: "Manrope", "Segoe UI", Arial, sans-serif;
    --font-serif: "Playfair Display", "Georgia", serif;
    --brand-navy: #2c3e50;
    --brand-green: #2ecc71;
    --brand-surface: #f5f9ff;
    --brand-border: rgba(44, 62, 80, 0.1);
    --brand-text: #1f2a36;
    --brand-muted: #556371;
}

/* ============================================================
   ОСНОВНЫЕ СТИЛИ И РЕСЕТ
============================================================ */
* {
    margin: 0;
    padding: 0;
    font-size: 14px;
    box-sizing: border-box;
    color: #222;
}

body {
    font-family: var(--font-sans);
    letter-spacing: -0.01em;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    text-decoration: none;
}

ul {
    list-style-type: none;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   ЦВЕТОВАЯ ПАЛИТРА ПРОЕКТА
   1) #2c3e50 - основной синий цвет (кнопки, хедер, боковая панель)
   2) white - белый (текст на темном фоне)
   3) black - чёрный (основной текст)
   4) #fff3cd - для warning оповещений
   5) #28a745 - зелёный (успешные оповещения)
   6) #dc3545 - красный (ошибки)
   7) #f8f9fa - светлый фон
   8) #eaeef2 - цвет границ
============================================================ */

/* ============================================================
   ШАПКА САЙТА И НАВИГАЦИЯ
============================================================ */
.section-header {
    display: block;
    background-color: #2c3e50;
    padding: 0;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header_logo {
    display: flex;
    align-items: center;
    height: 70px;
}

.header_logo img {
    height: 45px;
    width: 45px;
}

.header_logo .brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.header_logo .brand-text {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
}

.header_logo .brand-fin {
    color: #2ecc71;
    font-size: inherit;
}

.header_logo .brand-stata {
    color: #ffffff;
    font-size: inherit;
}

.header-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.9rem;
    align-items: center;
    height: 70px;
}

.header-menu li a {
    color: white;
    text-decoration: none;
    padding: 0.38rem 0.78rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
}

.header-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* АВАТАР ПОЛЬЗОВАТЕЛЯ В НАВИГАЦИИ */
.user-profile {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.38rem 0.78rem;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
    margin: 0;
}

.user-profile:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.user-profile:hover .user-avatar {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

.user-name {
    color: white;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.user-profile.admin .user-avatar {
    background: #28a745;
    border-color: rgba(255, 255, 255, 0.4);
}

.user-profile.admin:hover {
    background-color: rgba(40, 167, 69, 0.2);
}

/* ============================================================
   УВЕДОМЛЕНИЯ И СООБЩЕНИЯ
============================================================ */
.section-notification {
    padding: 10px 0;
}

.notification {
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 500;
    text-align: center;
}

.notification-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.notification-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.impersonation-banner {
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
}

.impersonation-banner form {
    margin: 0;
}

.impersonation-stop-btn {
    padding: 6px 10px;
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.impersonation-stop-btn:hover {
    background: #138496;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-info {
    background-color: #e7f3ff;
    border-color: #b3d7ff;
    color: #004085;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.text-danger {
    color: #dc3545;
}

.text-warning {
    color: #ffc107;
}

.text-success {
    color: #28a745;
}

.text-muted {
    color: #6c757d;
}

/* ============================================================
   ФОРМЫ ВХОДА/РЕГИСТРАЦИИ И ОБЩИЕ ФОРМЫ
============================================================ */
.section-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 20px;
    box-sizing: border-box;
}

.form-title {
    font-size: 40px;
    margin-bottom: 30px;
    color: #000;
}

.form-input, .form-button {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 10px 0;
    padding: 10px;
    box-sizing: border-box;
    border: 2px solid #e1e5ee;
    border-radius: 12px;
}

.form-button {
    background-color: white;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-button:hover {
    background-color: #2c3e50;
    color: white;
}

.form-elements {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.form-adv-links {
    margin-top: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.form-adv-link {
    display: inline-block;
    padding: 5px 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    background-color: transparent;
    color: #000;
}

.form-adv-links > :not(:last-child) {
    position: relative;
    margin-right: 12px;
}

.form-adv-links > :not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: #dee2e6;
    font-weight: normal;
}

.form-adv-link:hover {
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
    border-radius: 4px;
}

/* ============================================================
   ЛЕНДИНГ / СТРАНИЦА ВХОДА
============================================================ */
.landing-page {
    max-width: 1220px;
    margin: 28px auto 64px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.landing-hero,
.landing-section,
.landing-final {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--brand-border);
    box-shadow: 0 22px 55px rgba(44, 62, 80, 0.12);
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 28px;
    padding: 42px;
    background:
        radial-gradient(circle at top right, rgba(46, 204, 113, 0.25), rgba(46, 204, 113, 0) 34%),
        radial-gradient(circle at bottom left, rgba(44, 62, 80, 0.18), rgba(44, 62, 80, 0) 40%),
        linear-gradient(145deg, #f5f9ff 0%, #eef6f1 45%, #f7fbff 100%);
}

.landing-hero-copy,
.landing-section,
.landing-final {
    z-index: 1;
}

.landing-pill,
.landing-section-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(44, 62, 80, 0.08);
    color: var(--brand-navy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-hero h1,
.landing-section-heading h2,
.landing-final h2 {
    font-family: var(--font-serif);
    color: #182630;
}

.landing-hero h1 {
    font-size: 52px;
    line-height: 1.02;
    margin: 18px 0 18px;
    max-width: 12ch;
}

.landing-lead {
    max-width: 660px;
    font-size: 18px;
    line-height: 1.75;
    color: #32414d;
}

.landing-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 18px;
}

.landing-inline-note {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.landing-inline-note span {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(44, 62, 80, 0.08);
    color: var(--brand-text);
    font-weight: 600;
}

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

.landing-proof-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(44, 62, 80, 0.08);
    box-shadow: 0 12px 24px rgba(44, 62, 80, 0.08);
}

.landing-proof-card strong {
    display: block;
    margin: 8px 0 10px;
    font-size: 18px;
    color: #182630;
}

.landing-proof-card p {
    color: #51606d;
    line-height: 1.6;
}

.landing-proof-label {
    color: #5a6875;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.landing-auth-card {
    align-self: start;
    padding: 30px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
        linear-gradient(155deg, #203243 0%, #2c3e50 54%, #1d2a35 100%);
    box-shadow: 0 18px 36px rgba(31, 45, 58, 0.28);
}

.landing-auth-card,
.landing-auth-card h2,
.landing-auth-card p,
.landing-auth-card span,
.landing-auth-card a {
    color: #f4f7fb;
}

.landing-auth-badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-auth-card h2 {
    font-family: var(--font-serif);
    font-size: 34px;
    line-height: 1.05;
    margin: 16px 0 12px;
}

.landing-auth-text {
    color: rgba(244, 247, 251, 0.82);
    line-height: 1.7;
}

.landing-auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.landing-auth-form .form-input {
    max-width: none;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgba(44, 62, 80, 0.15);
    background: rgba(255, 255, 255, 0.95);
    color: #1d2a35;
}

.landing-auth-form .form-input::placeholder {
    color: #697786;
}

.landing-auth-form .form-input:focus {
    outline: none;
    border-color: rgba(46, 204, 113, 0.75);
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.15);
}

.landing-auth-submit {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #2ecc71 0%, #25a45b 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 14px 24px rgba(37, 164, 91, 0.28);
}

.landing-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(37, 164, 91, 0.32);
}

.landing-auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.landing-auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.landing-auth-link:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.landing-auth-link-primary {
    background: rgba(46, 204, 113, 0.18);
    border-color: rgba(46, 204, 113, 0.32);
}

.landing-resend-box {
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-resend-box p {
    color: rgba(244, 247, 251, 0.82);
}

.landing-resend-link {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    color: #b6ffcf;
    font-weight: 700;
}

.landing-section {
    padding: 34px 38px;
    background: #ffffff;
}

.landing-section-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 20px;
    align-items: center;
}

.landing-section-heading h2,
.landing-final h2 {
    font-size: 36px;
    line-height: 1.08;
    margin: 16px 0 10px;
}

.landing-section-heading p,
.landing-final p {
    max-width: 760px;
    color: var(--brand-muted);
    font-size: 16px;
    line-height: 1.75;
}

.landing-problem-card {
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(145deg, #f6faff 0%, #eef4f9 100%);
    border: 1px solid rgba(44, 62, 80, 0.08);
}

.landing-chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.landing-chip {
    display: inline-flex;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(44, 62, 80, 0.08);
    color: var(--brand-navy);
    font-weight: 700;
}

.landing-problem-text {
    font-size: 18px;
    line-height: 1.75;
    color: #2c3945;
}

.landing-feature-grid,
.landing-metric-grid,
.landing-action-grid {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.landing-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-feature-card,
.landing-metric-card,
.landing-action-card {
    border-radius: 20px;
    border: 1px solid rgba(44, 62, 80, 0.08);
}

.landing-feature-card {
    padding: 22px;
    background: linear-gradient(160deg, #ffffff 0%, #f4f8fc 100%);
    box-shadow: 0 12px 26px rgba(44, 62, 80, 0.08);
}

.landing-feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #182630;
}

.landing-feature-card p {
    color: var(--brand-muted);
    line-height: 1.65;
}

.landing-preview-section {
    background: linear-gradient(145deg, #f5f9ff 0%, #eef6f1 45%, #f7fbff 100%);
}

.landing-report-preview {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 18px;
    margin-top: 24px;
}

.landing-report-summary,
.landing-report-breakdown {
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(44, 62, 80, 0.08);
    box-shadow: 0 12px 24px rgba(44, 62, 80, 0.08);
}

.landing-report-primary strong {
    display: block;
    margin: 10px 0;
    font-size: 42px;
    line-height: 1;
    color: #182630;
}

.landing-report-primary p {
    color: var(--brand-muted);
    line-height: 1.7;
}

.landing-report-label {
    display: inline-flex;
    color: #5a6875;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-report-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.landing-report-meta div {
    padding: 16px;
    border-radius: 16px;
    background: rgba(44, 62, 80, 0.05);
}

.landing-report-meta strong {
    display: block;
    margin-top: 8px;
    font-size: 24px;
    color: #1d2a35;
}

.landing-report-breakdown {
    display: grid;
    gap: 14px;
}

.landing-breakdown-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    align-items: center;
}

.landing-breakdown-row span {
    color: #20303c;
    font-weight: 600;
}

.landing-breakdown-row strong {
    color: #1d2a35;
}

.landing-breakdown-bar {
    grid-column: 1 / -1;
    height: 10px;
    border-radius: 999px;
    background: rgba(44, 62, 80, 0.08);
    overflow: hidden;
}

.landing-breakdown-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2c3e50 0%, #2ecc71 100%);
}

.landing-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-metric-card {
    padding: 18px 20px;
    background: rgba(44, 62, 80, 0.04);
    color: #1f2a36;
    font-size: 16px;
    font-weight: 700;
}

.landing-section-dark {
    background:
        radial-gradient(circle at top right, rgba(46, 204, 113, 0.18), rgba(46, 204, 113, 0) 30%),
        linear-gradient(155deg, #203243 0%, #2c3e50 54%, #1d2a35 100%);
}

.landing-section-heading-dark h2,
.landing-section-heading-dark p,
.landing-section-dark .landing-section-kicker,
.landing-dark-note,
.landing-action-card {
    color: #f4f7fb;
}

.landing-section-dark .landing-section-kicker {
    background: rgba(255, 255, 255, 0.1);
}

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

.landing-action-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
}

.landing-dark-note {
    margin-top: 18px;
    font-size: 18px;
    color: rgba(244, 247, 251, 0.85);
}

.landing-step-list {
    list-style: none;
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.landing-step-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
    padding: 18px 20px;
    border-radius: 20px;
    background: linear-gradient(145deg, #f7fbff 0%, #f0f5fb 100%);
    border: 1px solid rgba(44, 62, 80, 0.08);
}

.landing-step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-navy);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.landing-step-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.landing-step-body strong {
    font-size: 18px;
    color: #182630;
}

.landing-step-body span {
    color: var(--brand-muted);
    line-height: 1.7;
}

.landing-final {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 38px;
    background: linear-gradient(145deg, #f5f9ff 0%, #eef6f1 45%, #f7fbff 100%);
}

.landing-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.landing-animate {
    animation: aboutFadeUp 0.7s ease both;
    animation-delay: calc(var(--delay, 0) * 0.12s);
}

/* ОБЩИЕ СТИЛИ ДЛЯ ФОРМ */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.form-container h3 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaeef2;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-text {
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* ============================================================
   СТРАНИЦА О САЙТЕ
============================================================ */
.about-page {
    max-width: 1100px;
    margin: 30px auto 60px;
    padding: 40px;
    border-radius: 24px;
    background: linear-gradient(145deg, #f5f9ff 0%, #eef6f1 45%, #f7fbff 100%);
    box-shadow: 0 18px 45px rgba(44, 62, 80, 0.12);
    position: relative;
    overflow: hidden;
    font-family: var(--font-sans);
    color: #1f2a36;
}

.about-page::before,
.about-page::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.22), rgba(46, 204, 113, 0));
    top: -60px;
    right: -80px;
    pointer-events: none;
}

.about-page::after {
    width: 320px;
    height: 320px;
    left: -120px;
    bottom: -140px;
    top: auto;
    right: auto;
    background: radial-gradient(circle, rgba(44, 62, 80, 0.18), rgba(44, 62, 80, 0));
}

.about-page h1,
.about-page h2,
.about-page h3 {
    font-family: var(--font-serif);
    color: #1c2b36;
}

.about-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-hero-content h1 {
    font-size: 36px;
    line-height: 1.1;
    margin: 14px 0 12px;
}

.about-hero-content p {
    font-size: 17px;
    line-height: 1.7;
    color: #2b3a46;
}

.about-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(44, 62, 80, 0.08);
    color: #2c3e50;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.about-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 10px;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-btn-primary {
    background: #2c3e50;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(44, 62, 80, 0.25);
}

.about-btn-ghost {
    border: 1px solid rgba(44, 62, 80, 0.25);
    color: #2c3e50;
    background: rgba(255, 255, 255, 0.6);
}

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

.about-btn-primary:hover {
    box-shadow: 0 12px 25px rgba(44, 62, 80, 0.3);
}

.about-btn:focus-visible {
    outline: 2px solid #2ecc71;
    outline-offset: 3px;
}

.about-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
    font-size: 14px;
    color: #3a4a57;
}

.about-mini-item {
    padding-left: 18px;
    position: relative;
}

.about-mini-item::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    position: absolute;
    left: 0;
    top: 7px;
}

.about-hero-panel {
    display: grid;
    gap: 12px;
}

.hero-panel-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(44, 62, 80, 0.08);
    box-shadow: 0 8px 18px rgba(44, 62, 80, 0.08);
}

.hero-panel-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #6b7b88;
    margin-bottom: 6px;
    font-weight: 600;
}

.hero-panel-value {
    font-size: 16px;
    color: #1f2a36;
    font-weight: 600;
}

.about-section {
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.about-section-header h2 {
    font-size: 26px;
    margin-bottom: 8px;
}

.about-section-header p {
    font-size: 16px;
    color: #44515c;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.about-card {
    padding: 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(44, 62, 80, 0.08);
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.08);
}

.about-card-tag {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #2c3e50;
    background: rgba(44, 62, 80, 0.08);
    margin-bottom: 12px;
    font-weight: 600;
}

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

.about-card p {
    color: #3a4a57;
    line-height: 1.6;
    font-size: 15px;
}

.about-step-list {
    list-style: none;
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.about-step-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(44, 62, 80, 0.08);
}

.step-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2c3e50;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-title {
    display: block;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
}

.step-text {
    display: block;
    color: #3a4a57;
    font-size: 15px;
    line-height: 1.6;
}

.about-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.about-chip {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(46, 204, 113, 0.12);
    color: #1e6a3d;
    border: 1px solid rgba(46, 204, 113, 0.3);
    font-weight: 600;
    font-size: 14px;
}

.about-grid-faq {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.about-info-card {
    padding: 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(44, 62, 80, 0.08);
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.08);
}

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

.about-info-card span {
    display: block;
    color: #2b3a46;
    font-size: 15px;
}

.about-info-card span + span {
    margin-top: 6px;
}

.about-info-card a {
    color: #2c3e50;
    font-weight: 600;
}

.about-animate {
    animation: aboutFadeUp 0.7s ease both;
    animation-delay: calc(var(--delay, 0) * 0.12s);
}

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

@media (max-width: 980px) {
    .landing-page {
        margin-top: 20px;
        gap: 18px;
    }

    .landing-hero,
    .landing-section,
    .landing-final {
        padding: 28px;
    }

    .landing-hero,
    .landing-section-grid,
    .landing-report-preview,
    .landing-final {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        gap: 20px;
    }

    .landing-proof-grid,
    .landing-feature-grid,
    .landing-metric-grid,
    .landing-action-grid,
    .landing-report-meta {
        grid-template-columns: 1fr;
    }

    .landing-final {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-final-actions {
        justify-content: flex-start;
    }

    .about-page {
        padding: 28px;
    }

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

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

    .about-grid-faq {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .landing-page {
        margin-top: 16px;
        margin-bottom: 36px;
    }

    .landing-hero,
    .landing-section,
    .landing-final {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .landing-hero h1,
    .landing-section-heading h2,
    .landing-final h2 {
        font-size: 30px;
    }

    .landing-lead,
    .landing-problem-text {
        font-size: 16px;
    }

    .landing-auth-card {
        padding: 22px 18px;
    }

    .landing-auth-card h2 {
        font-size: 28px;
    }

    .landing-report-primary strong {
        font-size: 34px;
    }

    .landing-report-meta strong {
        font-size: 22px;
    }

    .landing-breakdown-row {
        grid-template-columns: 1fr;
    }

    .landing-breakdown-row strong {
        margin-top: -2px;
    }

    .about-page {
        padding: 22px;
        border-radius: 18px;
    }

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

    .about-section-header h2 {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-animate {
        animation: none;
    }

    .about-animate {
        animation: none;
    }
}

/* ============================================================
   ДАШБОРД - ОСНОВНЫЕ СТИЛИ
============================================================ */
.section-dashboard {
    max-width: 1320px;
    margin: 0 auto;
    border-radius: 12px;
    padding: 25px;
    position: relative;
}

.section-dashboard.section-dashboard-wide {
    max-width: 1380px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeef2;
}

.dashboard-logo {
    font-size: 30px;
    font-weight: 600;
    color: #000;
}

.dashboard_update_status {
    text-align: center;
    margin: 10px 0;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

/* ============================================================
   ДАШБОРД - БОКОВАЯ ПАНЕЛЬ С МЕТРИКАМИ
============================================================ */
.dashboard-main-container {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
}

.dashboard-sidebar {
    flex: 0 0 220px;
    background-color: #2c3e50;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.dashboard-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.profit-block {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.profit-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.profit-amount {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    line-height: 1.2;
}

.profit-description, .metric-description {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.profit-formula-block {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    --profit-formula-value-col-width: 128px;
    --profit-formula-value-col-pad: 10px;
    --profit-formula-percent-col-width: 66px;
    --profit-formula-label-min-width: 170px;
}

.profit-formula-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    padding: 7px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
}

.profit-formula-base .profit-formula-label,
.profit-formula-base .profit-formula-value {
    padding-top: 3px;
    font-size: 19px;
    font-weight: 700;
}

.profit-formula-label {
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    line-height: 1.35;
    flex: 1 0 var(--profit-formula-label-min-width);
}

.profit-formula-value {
    color: white;
    font-size: 17px;
    white-space: nowrap;
    display: flex;
    justify-content: flex-start;
    width: var(--profit-formula-value-col-width);
    min-width: var(--profit-formula-value-col-width);
    margin-left: auto;
    box-sizing: border-box;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.profit-formula-percent {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    justify-content: flex-start;
    width: var(--profit-formula-percent-col-width);
    min-width: var(--profit-formula-percent-col-width);
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.profit-formula-result {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.profit-formula-result-label {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 600;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.profit-formula-result-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.profit-formula-result-value {
    color: white;
    font-size: 26px;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    justify-content: flex-end;
    width: auto;
    min-width: 0;
    margin-left: auto;
    box-sizing: border-box;
    text-align: right;
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
}

.profit-formula-result-percent {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    min-width: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.profit-formula-result-percent-dual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
}

.profit-formula-result-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.profit-formula-result-metric-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.profit-formula-result-metric-text {
    min-width: 0;
    color: rgba(255, 255, 255, 0.92) !important;
}

.profit-formula-result-metric-value {
    display: flex;
    justify-content: flex-end;
    width: var(--profit-formula-percent-col-width);
    min-width: var(--profit-formula-percent-col-width);
    margin-left: auto;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    text-align: right;
    color: rgba(255, 255, 255, 0.92) !important;
}

.profit-formula-result-metric-value.profit-positive {
    color: #7ce3a1 !important;
}

.profit-formula-result-metric-value.profit-negative {
    color: #ff5868 !important;
}

.profit-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.75);
    color: rgba(255, 255, 255, 0.92);
    background: transparent;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    position: relative;
    user-select: none;
    flex: 0 0 auto;
}

.profit-help-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(280px, calc(100vw - 32px));
    max-width: min(280px, calc(100vw - 32px));
    padding: 8px 10px;
    border-radius: 6px;
    background: #1f2937;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 20;
}

.profit-formula-result-metric-label .profit-help-icon::after {
    left: 0;
    right: auto;
}

.profit-help-icon:hover::after,
.profit-help-icon:focus::after {
    opacity: 1;
    transform: translateY(0);
}

.day-formula-card {
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    background: #fafcfe;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    width: min(100%, 560px);
    --day-formula-value-col-width: 128px;
    --day-formula-percent-col-width: 66px;
    --day-formula-label-min-width: 170px;
}

.day-formula-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
}

.day-formula-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    padding: 6px 0;
    border-bottom: 1px dashed #e3e8ee;
}

.day-formula-base .day-formula-label,
.day-formula-base .day-formula-value {
    padding-top: 3px;
    font-size: 22px;
    font-weight: 700;
}

.day-formula-label {
    color: #2c3e50;
    font-size: 17px;
    line-height: 1.35;
    flex: 1 0 var(--day-formula-label-min-width);
}

.day-formula-value {
    color: #111;
    font-size: 20px;
    white-space: nowrap;
    display: flex;
    justify-content: flex-start;
    width: var(--day-formula-value-col-width);
    min-width: var(--day-formula-value-col-width);
    margin-left: auto;
    box-sizing: border-box;
    text-align: left;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.day-formula-percent {
    color: #6f7d8a;
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    justify-content: flex-start;
    width: var(--day-formula-percent-col-width);
    min-width: var(--day-formula-percent-col-width);
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.day-formula-result {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #d9e0e8;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.day-formula-result-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.day-formula-result-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.day-formula-result-value {
    font-size: 26px;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    justify-content: flex-end;
    width: auto;
    min-width: 0;
    margin-left: auto;
    box-sizing: border-box;
    text-align: right;
    line-height: 1.1;
    color: #111;
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
}

.day-formula-result-percent {
    color: #5f6b77;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    min-width: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.day-formula-result-percent-dual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
}

.day-formula-result-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.day-formula-result-metric-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.day-formula-result-metric-text {
    min-width: 0;
    color: #2c3e50 !important;
}

.day-formula-result-metric-value {
    display: flex;
    justify-content: flex-end;
    width: var(--day-formula-percent-col-width);
    min-width: var(--day-formula-percent-col-width);
    margin-left: auto;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    text-align: right;
    color: #5f6b77;
}

.day-formula-result-metric-value.profit-positive {
    color: #16a34a;
}

.day-formula-result-metric-value.profit-negative {
    color: #dc2626;
}

.day-formula-result-metric-label .profit-help-icon {
    border-color: #2c3e50;
    color: #2c3e50;
    background: #fff;
}

.day-formula-result-metric-label .profit-help-icon::after {
    top: auto;
    bottom: calc(100% + 8px);
    left: 0;
    right: auto;
    transform: translateY(4px);
    z-index: 2000;
}

.day-overview-layout {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(280px, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.day-overview-layout .day-formula-card {
    width: 100%;
    margin-bottom: 0;
}

.day-kpi-card {
    padding: 16px 18px;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

.day-kpi-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2c3e50;
}

.day-kpi-main {
    padding: 10px 12px;
    border: 1px solid #e6edf4;
    border-radius: 8px;
    background: #f5f8fb;
    margin-bottom: 12px;
}

.day-kpi-main-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: #6b7a88;
    margin-bottom: 4px;
}

.day-kpi-main-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    color: #111;
    font-variant-numeric: tabular-nums;
}

.day-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.day-kpi-item {
    border: 1px solid #e6edf4;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fafcfe;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.day-kpi-item-wide {
    grid-column: 1 / -1;
}

.day-kpi-item-label {
    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: #7a8a9c;
    font-weight: 600;
}

.day-kpi-item-value {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.day-kpi-divider {
    height: 1px;
    background: #e7edf3;
    margin: 8px 0 10px;
}

.day-kpi-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6f7d8a;
    font-weight: 600;
    margin-bottom: 10px;
}

.day-kpi-expenses {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.day-kpi-expense-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.day-kpi-expense-label {
    font-size: 14px;
    color: #2c3e50;
}

.day-kpi-expense-value {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    font-variant-numeric: tabular-nums;
}

.day-kpi-expense-track {
    height: 6px;
    border-radius: 999px;
    background: #e8eef5;
    overflow: hidden;
}

.day-kpi-expense-track span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #6aa8ff 0%, #3f7fd8 100%);
}

.metrics-block {
    flex: 1;
}

.metric-item {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.metric-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.metric-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label span {
    color: white;
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.metric-value.positive {
    color: #28a745;
}

.metric-value.negative {
    color: #dc3545;
}

.metric-value.neutral {
    color: #ffc107;
}

Поставки {
    margin-top: auto;
    text-align: center;
}

Поставки .profit-amount {
    font-size: 26px;
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 15px 0;
    border: none;
}

/* ============================================================
   ДАШБОРД - КОМПАКТНЫЕ ПЛИТКИ С ДАННЫМИ
============================================================ */
.dashboard-data-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-data-element-compact {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    border: none;
}

.dashboard-data-element-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.dashboard-data-element-compact h4 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000;
}

.compact-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.value-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.value-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
}

.single-value-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 10px;
}

.dashboard-data-element-compact .value {
    font-size: 24px !important;
    font-weight: 700;
    color: #000;
    margin: 0 !important;
}

.dashboard-data-element-compact .single-value-row .value {
    font-size: 28px !important;
}

.dashboard-data-element-compact .unit {
    font-size: 14px;
    color: #7a8a9c;
    margin: 0 !important;
}

.kpi-metric-title .kpi-metric-title-sub {
    display: block;
    margin-top: 3px;
    font-size: 15px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #7a8a9c;
}

.drr-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.drr-split-item {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.drr-split-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #7a8a9c;
    margin-bottom: 6px;
}

.drr-split-value {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    line-height: 1.1;
    margin-top: auto;
}

.drr-split-unit {
    font-size: 14px;
    font-weight: 600;
    color: #7a8a9c;
    margin-left: 2px;
}

/* ============================================================
   ДАШБОРД - КНОПКА "ПОДРОБНЕЕ" В ПЛИТКАХ
============================================================ */
.compact-header .details-button,
.dashboard-element-header .details-button {
    padding: 6px 12px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
    font-size: 11px;
    white-space: nowrap;
    margin: 0;
    text-decoration: none;
}

.compact-header .details-button:hover,
.dashboard-element-header .details-button:hover {
    background: rgb(41, 128, 185);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
}

.dashboard-element-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.dashboard-element-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000;
    flex: 1;
}

/* ============================================================
   ОСНОВНЫЕ СТИЛИ ДЛЯ ТАБЛИЦ
============================================================ */
.dashboard-table-container {
    margin-top: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e1e5e9;
}

.dashboard-table th {
    background-color: #f8f9fa;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #000;
    border-bottom: 2px solid #dee2e6;
    border-right: 1px solid #e1e5e9;
}



.dashboard-table td {
    padding: 16px;
    border-bottom: 1px solid #e1e5e9;
    border-right: 1px solid #e1e5e9;
    color: #000;
}

.dashboard-table td:last-child {
    border-right: none;
}

.dashboard-table tr:last-child td {
    border-bottom: 1px solid #e1e5e9;
}

.dashboard-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.dashboard-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.dashboard-table tbody tr:hover {
    background-color: #e3f2fd !important;
    transition: background-color 0.2s ease;
}

.dashboard-table td:first-child {
    font-weight: 600;
    background-color: #f8f9fa;
}

.dashboard-table td:not(:first-child) {
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.dashboard-table tr.total-row {
    background-color: #e8f5e8 !important;
    font-weight: 700;
    border-top: 2px solid #28a745;
}

.dashboard-table tr.total-row td {
    border-top: 2px solid #28a745;
    border-bottom: 2px solid #28a745;
}

.dashboard-table tr[onclick] {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dashboard-table tr[onclick]:hover {
    background-color: #e3f2fd !important;
}

.dashboard-table tr[onclick]:active {
    background-color: #bbdefb !important;
}

.article-link {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

.article-link:hover {
    text-decoration: underline;
    color: #000;
}

/* ============================================================
   КОМПАКТНЫЕ ТАБЛИЦЫ - ОБЩИЕ СТИЛИ
============================================================ */
.dashboard-table.compact {
    font-size: 13px;
    min-width: 100%;
}

.dashboard-table.compact.fit-width {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.dashboard-table.compact th {
    padding: 8px 4px;
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    background-color: #2c3e50;
    color: white;
}

.dashboard-table.compact td {
    padding: 6px 4px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.2;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #000;
}

.dashboard-table.compact.fit-width th,
.dashboard-table.compact.fit-width td {
    padding-left: 3px;
    padding-right: 3px;
}

.dashboard-table.compact.fit-width td {
    min-width: 0 !important;
    max-width: 0;
    font-size: 12.5px;
}

.dashboard-table.compact.fit-width td:not(:first-child),
.dashboard-table.compact.fit-width tfoot td:not(:first-child) {
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding-right: 5px;
}

.dashboard-table.compact.fit-width td:first-child {
    min-width: 0 !important;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    padding-left: 5px;
}

.dashboard-table.compact.fit-width tfoot tr td {
    font-size: 12.5px;
}

.dashboard-table.compact.fit-width tfoot tr td:first-child {
    padding-left: 5px;
}

.dashboard-table.compact.fit-width tfoot tr td:not(:first-child) {
    padding-left: 2px;
    padding-right: 5px;
}

.dashboard-table.compact.fit-width col.col-primary {
    width: 7%;
}

.dashboard-table.compact.fit-width col.col-metric {
    width: 5%;
}

.dashboard-table.compact.fit-width col.col-cost {
    width: 5.25%;
}

.dashboard-table.compact.fit-width col.col-ratio {
    width: 5.35%;
}

.table-value {
    padding: 1px 0;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    color: #000;
}

.scrollable-table {
    overflow-x: auto;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-top: 20px;
}

/* Тонкий скроллбар в прокручиваемых таблицах, чтобы не перекрывать контент */
.sticky-table-container,
.scrollable-table {
    scrollbar-width: thin;
    scrollbar-color: rgba(44, 62, 80, 0.35) transparent;
    scrollbar-gutter: stable both-edges;
}

.sticky-table-container::-webkit-scrollbar,
.scrollable-table::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.sticky-table-container::-webkit-scrollbar-track,
.scrollable-table::-webkit-scrollbar-track {
    background: transparent;
}

.sticky-table-container::-webkit-scrollbar-thumb,
.scrollable-table::-webkit-scrollbar-thumb {
    background-color: rgba(44, 62, 80, 0.35);
    border-radius: 999px;
}

.sticky-table-container::-webkit-scrollbar-thumb:hover,
.scrollable-table::-webkit-scrollbar-thumb:hover {
    background-color: rgba(44, 62, 80, 0.5);
}

.scrollable-table .dashboard-table.compact {
    min-width: 1000px;
}

.combined-cell {
    min-width: 85px;
}

.combined-cell div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    color: #000;
}

.profit-positive {
    color: #28a745 !important;
    font-weight: 700 !important;
}

.profit-negative {
    color: #ff5868 !important;
    font-weight: 700 !important;
}

.profit-amount.profit-positive {
    color: #28a745 !important;
}

.profit-amount.profit-negative {
    color: #ff5868 !important;
}

.dashboard-table.compact td:first-child {
    min-width: 90px;
    text-align: left;
    padding-left: 8px;
    font-weight: 600;
    background-color: #f8f9fa;
    color: #000;
}

.dashboard-table.compact:not(.day-details) td:nth-child(2),
.dashboard-table.compact:not(.day-details) td:nth-child(3),
.dashboard-table.compact:not(.day-details) td:nth-child(4),
.dashboard-table.compact:not(.day-details) td:nth-child(5) {
    min-width: 80px;
}

.dashboard-table.compact:not(.day-details) td:nth-child(6),
.dashboard-table.compact:not(.day-details) td:nth-child(7),
.dashboard-table.compact:not(.day-details) td:nth-child(8),
.dashboard-table.compact:not(.day-details) td:nth-child(9),
.dashboard-table.compact:not(.day-details) td:nth-child(10) {
    min-width: 65px;
}

.dashboard-table.compact:not(.day-details) td:nth-child(11),
.dashboard-table.compact:not(.day-details) td:nth-child(12),
.dashboard-table.compact:not(.day-details) td:nth-child(13) {
    min-width: 55px;
}

.dashboard-table.compact:not(.day-details) td:nth-child(14) {
    min-width: 60px;
}

/* ============================================================
   КОМПАКТНЫЕ ТАБЛИЦЫ ДЛЯ ДЕТАЛЕЙ ПО АРТИКУЛАМ
============================================================ */
.dashboard-table.compact.day-details {
    min-width: 1100px;
}

.dashboard-table.compact.day-details.fit-width {
    min-width: 0;
}

.dashboard-table.compact.day-details.fit-width col.col-primary {
    width: 10%;
}

.dashboard-table.compact.day-details.fit-width col.col-metric {
    width: 4.8%;
}

.dashboard-table.compact.day-details.fit-width col.col-cost {
    width: 4.8%;
}

.dashboard-table.compact.day-details.fit-width col.col-ratio {
    width: 5.52%;
}

.dashboard-table.compact.day-details td:first-child {
    min-width: 95px;
    text-align: left;
    padding-left: 8px;
    font-weight: 600;
    background-color: #f8f9fa;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #000;
}

.dashboard-table.compact.day-details th.article-col,
.dashboard-table.compact.day-details td.article-col {
    white-space: normal;
}

.dashboard-table.compact.day-details.fit-width td.article-col {
    padding-left: 5px;
    padding-right: 5px;
}

.dashboard-table.compact.day-details .article-stack {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dashboard-table.compact.day-details.fit-width .article-stack {
    gap: 2px;
}

.dashboard-table.compact.day-details thead .article-stack {
    align-items: center;
    text-align: center;
    gap: 2px;
    line-height: 1.1;
}

.dashboard-table.compact.day-details tbody .article-stack {
    align-items: flex-start;
    text-align: left;
}

.dashboard-table.compact.day-details .article-wb,
.dashboard-table.compact.day-details .article-vendor {
    display: block;
    word-break: break-word;
}

.dashboard-table.compact.day-details .article-wb {
    font-weight: 700;
    font-size: 1em;
}

.dashboard-table.compact.day-details .article-vendor {
    font-size: 0.85em;
    font-weight: 500;
    color: #5c6b7a;
}

.dashboard-table.compact.day-details.fit-width .article-vendor {
    font-size: 0.8em;
}

.dashboard-table.compact.day-details .article-separator {
    width: 60%;
    height: 1px;
    background-color: #e1e5e9;
    margin: 0 auto;
}

.dashboard-table.compact.day-details thead .article-wb {
    font-weight: 600;
    font-size: 0.95em;
    color: #fff;
}

.dashboard-table.compact.day-details thead .article-vendor {
    color: inherit;
    opacity: 0.85;
    font-weight: 500;
    font-size: 0.8em;
    color: #fff;
}

.dashboard-table.compact.day-details thead .article-separator {
    background-color: rgba(255, 255, 255, 0.35);
    width: 70%;
}

.dashboard-table.compact.day-details .product-name {
    min-width: 150px;
    text-align: left;
    padding-left: 8px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    color: #000;
}


.dashboard-table.compact.day-details td:nth-child(2),
.dashboard-table.compact.day-details td:nth-child(3),
.dashboard-table.compact.day-details td:nth-child(4),
.dashboard-table.compact.day-details td:nth-child(5) {
    min-width: 80px;
}

.dashboard-table.compact.day-details td:nth-child(6),
.dashboard-table.compact.day-details td:nth-child(7),
.dashboard-table.compact.day-details td:nth-child(8),
.dashboard-table.compact.day-details td:nth-child(9) {
    min-width: 65px;
}

.dashboard-table.compact.day-details td:nth-child(10),
.dashboard-table.compact.day-details td:nth-child(11) {
    min-width: 60px;
}

.dashboard-table.compact.day-details td:nth-child(12) {
    min-width: 70px;
}

.dashboard-table.compact.day-details td:nth-child(13) {
    min-width: 55px;
}

.dashboard-table.compact tfoot tr td {
    font-size: 13px;
    font-weight: 700;
    background-color: #f8f9fa !important;
    color: #000;
}

.dashboard-table.compact tfoot tr td:first-child,
.dashboard-table.compact tfoot tr td:nth-child(2) {
    text-align: center;
}

/* ============================================================
   ДАШБОРД - ЭЛЕМЕНТЫ УПРАВЛЕНИЯ И НАВИГАЦИЯ
============================================================ */
.dashboard-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dashboard-controls-date {
    padding: 10px 14px;
    border: 1px solid #dce2e8;
    border-radius: 6px;
    font-size: 14px;
    color: #000;
    background: white;
    transition: all 0.3s ease;
}

.dashboard-controls-date:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.dashboard-controls-button {
    padding: 10px 20px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
    text-decoration: none;
    display: inline-block;
}

.dashboard-controls-button:hover {
    background: rgb(41, 128, 185);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
    color: white;
}

.dashboard-navigation {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
    pointer-events: auto !important;
}

.nav-button {
    padding: 10px 20px;
    background: #f8f9fa;
    color: #000;
    border: 2px solid #eaeef2;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.nav-button:hover {
    background: #e9ecef;
    border-color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
    color: #000;
}

.nav-button-active {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

/* ============================================================
   СТРАНИЦА ПРОФИЛЯ ПОЛЬЗОВАТЕЛЯ
============================================================ */
.section-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.profile-data {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.profile-title {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaeef2;
}

.profile-block {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eaeef2;
}

.profile-block.last {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.profile-info h3 {
    font-size: 20px;
    color: #000;
    margin-bottom: 20px;
    font-weight: 600;
}

.profile-account-group,
.profile-api-group,
.profile-changedata-group {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px 20px;
    align-items: center;
}

.profile-account-group label,
.profile-api-group label,
.profile-changedata-group label {
    font-weight: 500;
    color: #4a5568;
}

.profile-account-group span {
    font-weight: 500;
    color: #000;
}

.profile-api-group input,
.profile-changedata-group input {
    padding: 10px 14px;
    border: 1px solid #dce2e8;
    border-radius: 6px;
    font-size: 14px;
    color: #000;
}

.profile-api-group input:focus,
.profile-changedata-group input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.profile-api-group button {
    padding: 10px 20px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    grid-column: 2;
    justify-self: start;
}

.profile-api-group button:hover {
    background: rgb(41, 128, 185);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
}

.profile-changedata button {
    padding: 12px 25px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    grid-column: 1 / span 2;
    justify-self: start;
}

.profile-changedata button:hover {
    background: rgb(41, 128, 185);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
}

/* ОБНОВЛЕНИЕ API КЛЮЧА В ПРОФИЛЕ */
.profile-api-update {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #eaeef2;
}

.profile-api-update-group {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px 20px;
    align-items: center;
    margin-bottom: 15px;
}

.profile-api-update-group:last-child {
    margin-bottom: 0;
}

.profile-api-update-group label {
    font-weight: 500;
    color: #4a5568;
}

.profile-api-update-group input {
    padding: 10px 14px;
    border: 1px solid #dce2e8;
    border-radius: 6px;
    font-size: 14px;
    color: #000;
}

.profile-api-update-group input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* ============================================================
   АДМИН ПАНЕЛЬ
============================================================ */
.admin-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

.admin-header-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}

.admin-header-copy {
    padding: 26px 28px;
    border-radius: 18px;
    background: linear-gradient(145deg, #f7fbff 0%, #eef5fb 52%, #f7fafc 100%);
    border: 1px solid #e2eaf2;
    box-shadow: 0 16px 34px rgba(44, 62, 80, 0.08);
}

.admin-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(44, 62, 80, 0.08);
    color: #2c3e50;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-container h1 {
    font-size: 30px;
    font-weight: 700;
    color: #12202d;
    margin-bottom: 10px;
}

.admin-header-copy p {
    max-width: 720px;
    font-size: 15px;
    line-height: 1.6;
    color: #5b6b7b;
}

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

.admin-summary-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 18px 16px;
    border-radius: 16px;
    background: white;
    border: 1px solid #e2eaf2;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.admin-summary-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6a7b8d;
}

.admin-summary-value {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: #12202d;
}

.admin-flash {
    padding: 12px 16px;
    margin-bottom: 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.admin-flash-success {
    background: #ecf8f1;
    border-color: #bfe6cc;
    color: #17653c;
}

.admin-flash-error {
    background: #fceced;
    border-color: #f3c6cb;
    color: #8f2731;
}

.admin-table-card {
    background: white;
    border: 1px solid #e2eaf2;
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.admin-table-scroll {
    overflow-x: auto;
    overflow-y: hidden;
}

.admin-table {
    width: 100%;
    min-width: 1246px;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    table-layout: fixed;
}

.admin-table th {
    background-color: #2c3e50;
    color: white;
    padding: 12px 10px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e8eef4;
    color: #1f2a36;
    vertical-align: middle;
    font-size: 13px;
    line-height: 1.35;
}

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

.admin-table tbody tr:hover {
    background-color: #f7fafc;
}

.admin-table tbody tr:nth-child(even) {
    background-color: #fbfdff;
}

.admin-col-id {
    width: 54px;
}

.admin-col-user {
    width: 136px;
}

.admin-col-email {
    width: 184px;
}

.admin-col-date {
    width: 132px;
}

.admin-col-status {
    width: 156px;
}

.admin-col-subscription {
    width: 130px;
}

.admin-col-enddate {
    width: 124px;
}

.admin-col-admin {
    width: 64px;
}

.admin-col-password {
    width: 154px;
}

.admin-col-actions {
    width: 112px;
}

.admin-id-cell,
.admin-checkbox-cell,
.admin-actions-cell {
    text-align: center;
}

.admin-user-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-user-name {
    font-weight: 700;
    color: #12202d;
}

.admin-email-cell,
.admin-date-cell {
    color: #4f6172;
}

.admin-password-cell {
    min-width: 0;
    overflow: hidden;
}

.admin-cell-truncate {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
    max-width: 100%;
}

.admin-status-cell .admin-badge {
    width: 100%;
}

.admin-badge-primary {
    background: #dbeafe;
    color: #1d4ed8;
}

.admin-badge-success {
    background: #e8f7ee;
    color: #1e7a46;
}

.admin-badge-danger {
    background: #fdebec;
    color: #b4232f;
}

.admin-badge-muted {
    background: #eef2f6;
    color: #5f6f82;
}

.subscription-form {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.subscription-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dce2e8;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2a36;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscription-select:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.subscription-select option[value="free"] {
    color: #6c757d;
    background-color: #f8f9fa;
}

.subscription-select option[value="pro"] {
    color: #17a2b8;
    background-color: #e8f4f8;
}

.subscription-select option[value="premium"] {
    color: #28a745;
    background-color: #e8f5e8;
}

.admin-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2c3e50;
    margin: 0 auto;
}

.password-input {
    padding: 8px 10px;
    border: 1px solid #dce2e8;
    border-radius: 10px;
    font-size: 13px;
    color: #1f2a36;
    background: #f8fafc;
    transition: all 0.3s ease;
    width: 100%;
}

.password-input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: white;
}

.update-password-btn {
    padding: 8px 16px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.update-password-btn:hover {
    background: rgb(41, 128, 185);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
}

.admin-table td.admin-actions-cell {
    padding: 8px;
    vertical-align: middle;
    min-width: 112px;
}

.admin-actions-stack {
    display: grid;
    gap: 5px;
    width: 100%;
}

.admin-date-field {
    display: block;
}

.admin-date-field.is-hidden {
    display: none;
}

.admin-date-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dce2e8;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2a36;
    background: white;
}

.admin-date-input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.admin-password-field {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 7px 8px;
    font-size: 12px;
    line-height: 1.2;
}

.admin-password-field::placeholder {
    font-size: 12px;
    color: #7a8896;
}

.admin-password-field:focus {
    box-shadow:
        inset 0 0 0 1px rgba(44, 62, 80, 0.12),
        0 0 0 2px rgba(52, 152, 219, 0.18);
}

.admin-save-btn {
    padding: 7px 8px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    min-width: 80px;
    text-decoration: none;
    display: block;
    margin: 0;
}

.admin-save-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.admin-impersonate-form {
    margin: 0;
    width: 100%;
}

.admin-impersonate-btn {
    padding: 7px 8px;
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    min-width: 80px;
    text-decoration: none;
    display: block;
    margin: 0;
}

.admin-impersonate-btn:hover:not(:disabled) {
    background: #138496;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
}

.admin-impersonate-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.admin-impersonate-btn:disabled:hover {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

.admin-delete-form {
    margin: 0;
    width: 100%;
}

.admin-delete-btn {
    padding: 7px 8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    min-width: 80px;
    text-decoration: none;
    display: block;
    margin: 0;
}

.admin-delete-btn:hover:not(:disabled) {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.admin-delete-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.admin-delete-btn:disabled:hover {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

.admin-no-delete {
    width: 100%;
}

.admin-no-impersonate {
    width: 100%;
}

.admin-legend {
    margin-top: 18px;
    padding: 20px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2eaf2;
}

.admin-legend h2 {
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 700;
    color: #12202d;
}

.admin-legend-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}

.admin-legend-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: white;
    border: 1px solid #e6edf4;
    color: #4f6172;
    font-size: 13px;
    line-height: 1.5;
}

/* ============================================================
   СТРАНИЦА СЕБЕСТОИМОСТИ ТОВАРОВ
============================================================ */
.section-edit-sebestoimost {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    padding: 25px;
}

.sebestoimost-container {
    margin-top: 30px;
}

.sebestoimost-table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

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

.sebestoimost-table th {
    background-color: #2c3e50;
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sebestoimost-table td {
    padding: 16px;
    border-bottom: 1px solid #eaeef2;
    color: #000;
    vertical-align: middle;
}

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

.sebestoimost-table tr:nth-child(even) {
    background-color: #fafbfc;
}

.sebestoimost-table tr:hover {
    background-color: #f8f9fa;
}

.sebestoimost-vendor-code {
    font-weight: 600;
    background-color: #f8f9fa;
    color: #000;
}

.sebestoimost-nmid {
    color: #6c757d;
    font-family: 'Courier New', monospace;
}

.sebestoimost-input-cell {
    text-align: center;
}

.sebestoimost-input {
    padding: 8px 12px;
    border: 1px solid #dce2e8;
    border-radius: 6px;
    font-size: 14px;
    color: #000;
    background: white;
    transition: all 0.3s ease;
    width: 120px;
    text-align: center;
}

.sebestoimost-input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.sebestoimost-form-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eaeef2;
}

.sebestoimost-save-button {
    padding: 12px 30px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3);
}

.sebestoimost-save-button:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

/* ============================================================
   СТРАНИЦА МАГАЗИНОВ ПОЛЬЗОВАТЕЛЯ
============================================================ */
.shops-list {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.shops-list h3 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaeef2;
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.shop-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #eaeef2;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #2c3e50;
}

.shop-card-active {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
}

.shop-card-active::before {
    content: "АКТИВНЫЙ";
    position: absolute;
    top: 10px;
    right: -25px;
    background: #28a745;
    color: white;
    padding: 5px 30px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3);
}

.shop-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.shop-card p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
}

.shop-card strong {
    color: #000;
    font-weight: 600;
}

.shop-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    flex-wrap: wrap;
}

.shop-actions form {
    margin: 0;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.shop-status-badges {
    display: flex;
    gap: 5px;
}

.shop-api-update {
    margin: 15px 0;
    padding: 15px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 6px;
    border: 1px solid #eaeef2;
}

.api-form-group {
    margin-bottom: 0;
}

.api-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.api-key-input {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    min-width: 0;
    color: #000;
}

.api-update-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 10px 16px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.api-update-btn:hover {
    background: rgb(41, 128, 185);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
}

.api-key-display {
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #e9ecef;
    font-size: 12px;
    color: #000;
}

.badge {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.badge-primary {
    background: #2c3e50;
    color: white;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: #212529;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

.shops-list > p {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 16px;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* ============================================================
   СТРАНИЦА ТОВАРОВ И ПРИЁМОК
============================================================ */
.section-products {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px;
}

.incomes-container {
    margin-top: 30px;
}

.incomes-table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

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

.incomes-table th {
    background-color: #2c3e50;
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.incomes-table td {
    padding: 16px;
    border-bottom: 1px solid #eaeef2;
    color: #000;
    vertical-align: middle;
}

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

.incomes-table tr:hover {
    background-color: #f8f9fa;
}

.income-header {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.income-header:hover {
    background-color: #e3f2fd !important;
}

.income-details {
    background-color: #f8f9fa;
}

.income-details-row {
    display: none;
}

.income-details-row.expanded {
    display: table-row;
}

.income-details-content {
    padding: 20px;
}

.income-products-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.income-products-table th {
    background-color: #2c3e50;
    color: white;
    padding: 12px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.income-products-table td {
    padding: 12px;
    border-bottom: 1px solid #eaeef2;
    color: #000;
}

.income-products-table tr:last-child td {
    border-bottom: none;
}

.products-form {
    margin-top: 20px;
}

.products-form-actions {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eaeef2;
}

.income-actions {
    display: flex;
    gap: 10px;
}

.toggle-details-btn {
    padding: 6px 12px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.toggle-details-btn:hover {
    background: rgb(41, 128, 185);
    transform: translateY(-1px);
}

.toggle-details-btn.active {
    background-color: #28a745;
    color: white;
}


.refresh-btn {
    padding: 6px 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.income-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    color: white;
}

.income-badge.badge-primary {
    background-color: #2c3e50;
}

.income-badge.badge-success {
    background-color: #28a745;
}

.income-badge.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.income-badge.badge-info {
    background-color: #17a2b8;
}

.product-input {
    padding: 8px 12px;
    border: 1px solid #dce2e8;
    border-radius: 6px;
    font-size: 14px;
    width: 120px;
    text-align: center;
    color: #000;
}

.product-input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.save-product-btn {
    padding: 6px 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.save-product-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.sebestoimost-input {
    padding: 8px 12px;
    border: 1px solid #dce2e8;
    border-radius: 6px;
    font-size: 14px;
    width: 120px;
    text-align: center;
    color: #000;
}

.nalog-input {
    padding: 8px 12px;
    border: 1px solid #dce2e8;
    border-radius: 6px;
    font-size: 14px;
    width: 100px;
    text-align: center;
    color: #000;
}

.nds-input {
    padding: 8px 12px;
    border: 1px solid #dce2e8;
    border-radius: 6px;
    font-size: 14px;
    width: 100px;
    text-align: center;
    color: #000;
}

.nalog-input[readonly],
.nds-input[readonly] {
    background-color: #f1f3f5;
    color: #6c757d;
}

.global-tax-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.global-tax-actions {
    display: flex;
    align-items: flex-end;
}

.global-tax-label {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
}

.global-tax-input {
    padding: 8px 12px;
    border: 1px solid #dce2e8;
    border-radius: 6px;
    font-size: 14px;
    width: 120px;
    text-align: center;
    color: #000;
}

.global-tax-hint {
    font-size: 11px;
    color: #6c757d;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.products-table th {
    background-color: #2c3e50;
    color: white;
    padding: 12px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    text-align: center;
}

.products-table td {
    padding: 12px;
    border-bottom: 1px solid #eaeef2;
    text-align: center;
    color: #000;
}

.quantity-cell {
    text-align: center;
    font-weight: 500;
    
}

.hide-column {
    display: none;
}

.product-total-cell {
    text-align: right;
    font-weight: 500;
    color: #28a745;
}

.products-total-row {
    background-color: #f8f9fa;
    font-weight: bold;
}

.products-total-row td {
    padding: 10px;
    border-top: 2px solid #dee2e6;
    color: #000;
}

.income-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.income-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    font-size: 14px;
    color: #495057;
}

.stat-item i {
    margin-right: 5px;
    color: #6c757d;
}

.save-all-btn {
    padding: 10px 20px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.save-all-btn:hover {
    background-color: rgb(41, 128, 185);
}

.save-all-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* ============================================================
   СТРАНИЦА ОСТАТКОВ
============================================================ */
.section-remains {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px;
}

.zero-quantity {
    background-color: #fff5f5 !important;
}

.low-quantity {
    background-color: #fff3cd !important;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.table-header h3 {
    margin: 0;
    font-size: 20px;
    color: #000;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.update-info-container {
    margin-bottom: 20px;
}

.update-info-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.update-info-item {
    padding: 8px 0;
}

.update-info-label {
    font-weight: 600;
    display: block;
    margin-bottom: 3px;
    color: #495057;
}

.update-info-value {
    color: #212529;
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО С ДЕТАЛЯМИ
============================================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    right: 0;
    top: 0;
    width: 600px;
    height: 100%;
    background-color: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 25px;
    background: #2c3e50;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: white;
}

.modal-close {
    font-size: 28px;
    color: #ecf0f1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: white;
}

.modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeef2;
}

.modal-nav-link {
    padding: 15px 25px;
    background: white;
    border-bottom: 1px solid #eaeef2;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.modal-nav-link:hover {
    background: #e9ecef;
    color: #000;
}

.modal-nav-link.active {
    background: #2c3e50;
    color: white;
    border-left: 3px solid rgb(41, 128, 185);
}

.modal-nav-link:last-child {
    border-bottom: none;
}

.modal-sections {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}


.modal-section {
    padding: 25px;
    border-bottom: 1px solid #eaeef2;
}

.modal-section:last-child {
    border-bottom: none;
}

.modal-section h3 {
    font-size: 26px;
    font-weight: 600;
    color: #000;
    margin-bottom: 5px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaeef2;
}

.section-content {
    line-height: 1.6;
}

.section-content p {
    margin-bottom: 12px;
    font-size: 14px;
    color: #4a5568;
}

.section-content strong {
    color: #000;
    font-weight: 600;
    font-size: 20px;
}

.details-container {
    margin-top: 20px;
}

.details-container h4 {
    font-size: 16px;
    color: #000;
    margin-bottom: 15px;
    border-bottom: 1px solid #eaeef2;
    padding-bottom: 8px;
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #2c3e50;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.detail-item.orders { border-left-color: #28a745; }
.detail-item.sales { border-left-color: #17a2b8; }
.detail-item.cancellations { border-left-color: #ffc107; }
.detail-item.advertising { border-left-color: #6f42c1; }
.detail-item.returns { border-left-color: #fd7e14; }
.detail-item.warehouse { border-left-color: #20c997; }
.detail-item.logistics { border-left-color: #e83e8c; }
.detail-item.fines { border-left-color: #dc3545; }

.detail-field {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 14px;
}

.detail-field:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: #000;
    min-width: 120px;
}

.detail-value {
    text-align: right;
    flex: 1;
    margin-left: 15px;
    font-weight: 600;
    font-size: 20px;
    color: #000;
}

.detail-value.amount {
    font-weight: 600;
}

.detail-value.count {
    font-weight: 600;
}

.detail-value.date {
    font-size: 12px;
    color: #6c757d;
}

.detail-field.jem-help-field .detail-value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.jem-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #2c3e50;
    color: #2c3e50;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    position: relative;
    user-select: none;
}

.jem-help-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(320px, 80vw);
    padding: 8px 10px;
    border-radius: 6px;
    background: #1f2937;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 20;
}

.jem-help-icon:hover::after,
.jem-help-icon:focus::after {
    opacity: 1;
    transform: translateY(0);
}

.detail-field.jem-periods-field {
    align-items: flex-start;
}

.jem-periods-list {
    text-align: left;
    margin-left: 15px;
    font-size: 13px;
    font-weight: 500;
}

.jem-period-row {
    margin-bottom: 8px;
    padding: 7px 9px;
    border: 1px solid #dbe4ef;
    border-radius: 6px;
    background: #fff;
}

.jem-period-row:last-child {
    margin-bottom: 0;
}

.jem-period-line {
    font-size: 14px;
    line-height: 1.3;
    color: #2d3748;
}

.jem-period-line.jem-period-charge {
    font-weight: 700;
    color: #111827;
}

.jem-period-line.jem-period-meta {
    margin-top: 2px;
    color: #4b5563;
}

.detail-divider {
    border: none;
    border-top: 1px dashed #adb5bd;
    margin: 15px 0;
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-style: italic;
}

/* ============================================================
   ОСНОВНЫЕ КНОПКИ И СТИЛИ ДЛЯ ФОРМ
============================================================ */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 14px;
}

.btn-primary {
    background: #2c3e50;
    color: white;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    background: rgb(41, 128, 185);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    box-shadow: 0 2px 5px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.4);
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
    color: white;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
    box-shadow: 0 2px 5px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    white-space: nowrap;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dce2e8;
    border-radius: 6px;
    font-size: 14px;
    color: #000;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* ============================================================
   ОВЕРЛЕЙ ПОДПИСКИ И БЛЮР КОНТЕНТА
============================================================ */
.subscription-blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    background: rgba(0, 0, 0, 0.15);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.subscription-message {
    background: white;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
    position: relative;
    z-index: 1000;
}

.subscription-icon {
    font-size: 42px;
    color: #dc3545;
    margin-bottom: 15px;
}

.subscription-message h3 {
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 22px;
}

.subscription-message p {
    color: #555;
    margin-bottom: 6px;
    line-height: 1.5;
    font-size: 15px;
}

.subscription-message p:last-of-type {
    color: #777;
    font-size: 14px;
}

.content-blurred {
    filter: blur(2px);
    opacity: 0.7;
}

.blur-content {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

.blurred-page {
    filter: blur(1px);
    opacity: 0.7;
    pointer-events: none;
    user-select: none;
}

.subscription-overlay-container {
    position: relative;
}

/* ============================================================
   АНИМАЦИИ
============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

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

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

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

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

.shop-card {
    animation: fadeInUp 0.4s ease;
}

.shop-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.shop-card:nth-child(even) {
    animation-delay: 0.2s;
}

.admin-table tr {
    animation: fadeIn 0.3s ease;
}

/* ============================================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
============================================================ */

/* Большие экраны (1200px и больше) */
@media (min-width: 1200px) {
    .dashboard-table.compact {
        font-size: 14px;
    }
    
    .dashboard-table.compact th {
        font-size: 13px;
    }
    
    .dashboard-table.compact td {
        font-size: 14px;
        font-weight: 700;
    }
    
    .combined-cell div {
        font-size: 14px;
    }
    
    .dashboard-table.compact.day-details td:first-child {
        font-size: 14px;
    }
    
    .dashboard-table.compact.day-details .product-name {
        font-size: 14px;
    }
}

/* Средние экраны (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .admin-header-panel {
        grid-template-columns: 1fr;
    }

    .admin-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-table {
        min-width: 1080px;
    }

    .dashboard-table.compact {
        font-size: 13px;
    }
    
    .dashboard-table.compact th {
        font-size: 12px;
    }
    
    .dashboard-table.compact td {
        font-size: 13px;
        font-weight: 600;
    }
    
    .combined-cell div {
        font-size: 13px;
    }
}

/* Планшеты (768px - 991px) */
@media (max-width: 991px) {
    .admin-container {
        padding: 20px 14px 32px;
    }

    .admin-header-panel {
        grid-template-columns: 1fr;
    }

    .admin-header-copy {
        padding: 22px 20px;
    }

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

    .admin-table {
        min-width: 1040px;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
    }

    .admin-legend-list {
        grid-template-columns: 1fr;
    }

    .day-overview-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .day-kpi-card {
        width: min(100%, 560px);
    }

    .dashboard-table.compact {
        font-size: 12px;
    }
    
    .dashboard-table.compact th {
        font-size: 11px;
        padding: 7px 3px;
    }
    
    .dashboard-table.compact td {
        font-size: 12px;
        font-weight: 600;
        padding: 5px 3px;
    }
    
    .combined-cell div {
        font-size: 12px;
    }
    
    .dashboard-table.compact.day-details .product-name {
        min-width: 130px;
        max-width: 160px;
        font-size: 12px;
    }
}

/* Мобильные устройства (до 767px) */
@media (max-width: 767px) {
    .admin-container {
        padding: 18px 10px 28px;
    }

    .admin-container h1 {
        font-size: 24px;
    }

    .admin-summary-grid {
        grid-template-columns: 1fr;
    }

    .admin-summary-card {
        padding: 16px 14px;
    }

    .admin-summary-value {
        font-size: 26px;
    }

    .admin-table {
        min-width: 980px;
    }

    .admin-legend {
        padding: 16px;
    }

    .header-menu {
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #2c3e50;
        padding: 20px;
        display: none;
    }
    
    .header-menu.active {
        display: flex;
    }
    
    .user-profile {
        padding: 0.4rem 0.8rem;
        gap: 6px;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .user-name {
        font-size: 14px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .dashboard-controls {
        width: 100%;
        flex-direction: column;
    }
    
    .dashboard-controls-date,
    .dashboard-controls-button {
        width: 100%;
    }
    
    .dashboard-data-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .dashboard-data-element-compact {
        padding: 20px;
        min-height: 140px;
    }

    .profit-formula-label {
        min-width: 150px;
        flex-basis: 150px;
    }

    .day-formula-card {
        --day-formula-label-min-width: 138px;
        --day-formula-value-col-width: 112px;
        --day-formula-percent-col-width: 58px;
    }

    .day-kpi-main-value {
        font-size: 24px;
    }

    .day-kpi-item-value {
        font-size: 18px;
    }
    
    .dashboard-table.compact {
        min-width: 900px;
        font-size: 11px;
    }
    
    .dashboard-table.compact th {
        font-size: 10px;
        padding: 6px 2px;
    }
    
    .dashboard-table.compact td {
        font-size: 11px;
        font-weight: 600;
        padding: 4px 2px;
    }
    
    .combined-cell div {
        font-size: 11px;
    }
    
    .dashboard-table.compact.day-details {
        min-width: 950px;
    }
    
    .dashboard-table.compact.day-details .product-name {
        min-width: 110px;
        max-width: 140px;
        font-size: 11px;
    }
    
    .profile-account-group,
    .profile-api-group,
    .profile-changedata-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .profile-api-group button,
    .profile-changedata button {
        grid-column: 1;
        justify-self: stretch;
    }
    
    .shops-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-actions {
        flex-direction: column;
    }
    
    .shop-actions .btn {
        width: 100%;
    }
    
    .modal-content {
        width: 100%;
    }
    
    .api-input-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .api-update-btn {
        align-self: flex-start;
    }
    
    .compact-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .compact-header .details-button {
        align-self: flex-end;
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .table-actions {
        width: 100%;
    }
    
    .table-actions .btn {
        width: 100%;
    }
}

/* Маленькие мобильные (до 480px) */
@media (max-width: 480px) {
    .section-dashboard,
    .section-edit-sebestoimost,
    .section-products,
    .section-remains {
        padding: 15px;
    }
    
    .dashboard-data-compact {
        grid-template-columns: 1fr;
    }
    
    .profit-amount {
        font-size: 24px;
    }
    
    .metric-value {
        font-size: 18px;
    }
    
    .dashboard-data-element-compact {
        padding: 18px;
        min-height: 130px;
    }

    .profit-formula-label {
        min-width: 132px;
        flex-basis: 132px;
    }

    .day-formula-card {
        --day-formula-label-min-width: 122px;
        --day-formula-value-col-width: 102px;
        --day-formula-percent-col-width: 52px;
    }

    .day-kpi-card {
        padding: 14px;
    }

    .day-kpi-main-value {
        font-size: 22px;
    }

    .day-kpi-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .day-kpi-item {
        padding: 8px 10px;
    }

    .day-kpi-item-value {
        font-size: 17px;
    }

    .day-kpi-item-label,
    .day-kpi-subtitle {
        font-size: 10px;
    }

    .day-kpi-expense-label,
    .day-kpi-expense-value {
        font-size: 13px;
    }
    
    .dashboard-data-element-compact .value {
        font-size: 20px !important;
    }
    
    .dashboard-data-element-compact .single-value-row .value {
        font-size: 22px !important;
    }

    .drr-split {
        gap: 8px;
    }

    .drr-split-item {
        padding: 0;
    }

    .drr-split-value {
        font-size: 20px;
    }

    .profit-formula-result-percent-dual {
        width: 100%;
        min-width: 0;
    }

    .profit-formula-result-percent-line {
        font-size: 10px;
    }

    .day-formula-result-percent-dual {
        min-width: 122px;
    }

    .day-formula-result-metric-value,
    .day-formula-result-metric-label {
        font-size: 11px;
    }

    .profit-help-icon {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }
    
    .dashboard-table.compact {
        min-width: 850px;
        font-size: 10px;
    }
    
    .dashboard-table.compact th {
        font-size: 9px;
        padding: 5px 2px;
    }
    
    .dashboard-table.compact td {
        font-size: 10px;
        font-weight: 600;
        padding: 3px 2px;
    }
    
    .combined-cell div {
        font-size: 10px;
    }
    
    .shops-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container h3,
    .shops-list h3 {
        font-size: 20px;
    }
    
    .api-input-wrapper {
        gap: 6px;
    }
    
    .api-update-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .dashboard-element-header h4 {
        font-size: 14px;
    }
    
    .dashboard-element-header .details-button {
        font-size: 8px;
        padding: 2px 5px;
    }
}

/* ============================================================
   ВЕРСИЯ ПРИЛОЖЕНИЯ В ШАПКЕ
============================================================ */
.header-logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 70px;
}

.app-version {
    color: rgba(0, 0, 0, 0.45);
    font-size: 11px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    letter-spacing: 0.4px;
    font-family: 'Courier New', monospace;
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 1000;
    pointer-events: none;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    margin-left: 5px;
    font-weight: bold;
}

.subscription-active {
    background-color: #28a745;
    color: white;
}

.subscription-inactive {
    background-color: #dc3545;
    color: white;
}

/* Адаптивность для версии */
@media (max-width: 768px) {
    .header-logo-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        height: auto;
    }
    
    .app-version {
        font-size: 10px;
        padding: 3px 6px;
        right: 10px;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .header-logo-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .app-version {
        font-size: 9px;
        padding: 2px 5px;
        right: 8px;
        bottom: 8px;
    }
}

/* ============================================================
   ФИЛЬТРЫ ДАШБОРДА
============================================================ */
.dashboard-filters {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.filters-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    color: #000;
}

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

.active-filters {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.filter-badge {
    display: inline-block;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 14px;
    color: #000;
}

/* ============================================================
   СТРАНИЦЫ АВТОРИЗАЦИИ
============================================================ */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 20px;
    background-color: #f5f5f5;
}

.auth-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
    max-width: 500px;
}

.auth-success-card {
    text-align: center;
    max-width: 600px;
}

.auth-title {
    text-align: center;
    color: #000;
    margin-bottom: 30px;
    font-size: 24px;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
}

.auth-form {
    margin-bottom: 20px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    color: #000;
}

.auth-form .form-input:focus {
    border-color: #2c3e50;
    outline: none;
}

.form-checkbox-group {
    margin: 20px 0;
    display: flex;
    align-items: center;
}

.form-checkbox-group input {
    margin-right: 10px;
    transform: scale(1.2);
}

.form-checkbox-group label {
    font-size: 14px;
    color: #555;
}

.form-checkbox-group a {
    color: #2c3e50;
    text-decoration: none;
}

.form-checkbox-group a:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-link {
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.auth-actions .btn {
    min-width: 150px;
}

.auth-messages {
    margin-bottom: 20px;
}

.auth-message {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 14px;
}

.auth-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-message-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.auth-message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.success-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
}

.success-message {
    margin: 30px 0;
    line-height: 1.6;
    color: #555;
    text-align: left;
}

.success-tips {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

.success-tips h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
}

.success-tips ul {
    padding-left: 20px;
    margin: 0;
}

.success-tips li {
    margin-bottom: 8px;
    color: #666;
}

.success-tips a {
    color: #2c3e50;
    text-decoration: none;
}

.success-tips a:hover {
    text-decoration: underline;
}

/* ============================================================
   УСПЕШНАЯ РЕГИСТРАЦИЯ
============================================================ */
.success-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #eaeef2;
    margin-top: 20px;
    animation: fadeInUp 0.3s ease;
}

.success-info p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #4a5568;
    line-height: 1.5;
}

.success-info p:first-child {
    font-weight: 600;
    color: #000;
    font-size: 18px;
    margin-bottom: 10px;
}

.success-info p:first-child strong {
    color: #28a745;
    font-weight: 700;
}

.success-info p:nth-child(2) {
    color: #28a745;
    font-weight: 500;
    background: rgba(40, 167, 69, 0.1);
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.success-info p:nth-child(3) {
    color: #495057;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 10px;
}

.success-info ul {
    padding-left: 20px;
    margin: 15px 0 20px 0;
    color: #6c757d;
}

.success-info li {
    margin-bottom: 8px;
    font-size: 14px;
    position: relative;
    padding-left: 5px;
    color: #000;
}

.success-info li:before {
    content: "•";
    color: #2c3e50;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.success-info a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.success-info a:hover {
    color: rgb(41, 128, 185);
    border-bottom-color: #2c3e50;
}

.resend-link {
    display: inline-block;
    padding: 8px 20px;
    background: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #2c3e50;
    margin-top: 5px;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
}

.resend-link:hover {
    background: rgb(41, 128, 185);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
    color: white;
    text-decoration: none;
}

.resend-link:active {
    transform: translateY(0);
}

.success-info + .form-adv-links {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eaeef2;
}

/* Для мобильных устройств */
@media (max-width: 767px) {
    .success-info {
        padding: 20px;
        margin: 15px 0;
    }
    
    .success-info p {
        font-size: 14px;
    }
    
    .success-info p:first-child {
        font-size: 16px;
    }
    
    .success-info li {
        font-size: 13px;
    }
    
    .resend-link {
        padding: 6px 16px;
        font-size: 13px;
    }
}
