/* style.css */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --success: #10b981;
    --success-hover: #059669;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --success-text: #065f46;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --danger-bg: #fef2f2;
    --danger-border: #fca5a5;
    --danger-text: #991b1b;
    --warning: #f59e0b;
    --warning-hover: #d97706;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;
    --warning-text: #92400e;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --border-radius: 0.75rem;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.5;
    font-size: 16px;
}

/* Сетка классического макета */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

/* ========================================================================
   КЛАССИЧЕСКАЯ ВЕРХНЯЯ ШАПКА (TOP NAVBAR)
   ======================================================================== */
.navbar {
    background-color: var(--primary);
    color: #fff;
    padding: 0 1rem;
    box-shadow: var(--shadow);
}
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}
.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ========================================================================
   ГОРИЗОНТАЛЬНЫЕ ТАБЫ НАВИГАЦИИ (TABS NAV)
   ======================================================================== */
.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 2rem;
    overflow-x: auto;
    white-space: nowrap;
    gap: 1.5rem;
    -webkit-overflow-scrolling: touch;
}
.tab-link {
    display: inline-block;
    padding: 1rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.tab-link:hover {
    color: var(--gray-700);
    border-bottom-color: var(--gray-300);
}
.tab-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* ========================================================================
   СЕТОЧНЫЙ МАКЕТ ДЛЯ КАРТОЧЕК СТАТИСТИКИ (DASHBOARD STATS GRID)
   ======================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stats-card {
    background: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
}

.stats-card-title {
    font-size: 0.7125rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gray-500);
    margin-bottom: 0.35rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.stats-card-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
}

/* ========================================================================
   АДАПТИВНЫЕ ШАПКИ КАРТОЧЕК С ФИЛЬТРАМИ И КНОПКАМИ (FLEX GAP FALLBACK)
   ======================================================================== */
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 1rem;
}

.card-header-flex h2 {
    margin: 0;
    font-size: 1.25rem;
}

/* Формы фильтрации в шапке */
.filter-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Защита полей ввода от захвата 100% ширины внутри форм фильтрации */
.filter-form .form-control,
.filter-group .form-control {
    width: auto;
    flex-grow: 1;
}

/* Принудительная нейтрализация блочности форм внутри флекс-контейнеров */
.flex form,
.filter-form form,
.card-header-flex form {
    display: inline-flex;
    margin: 0;
}

/* Защитный маргин-фолбек для старых движков (без поддержки flex-gap) */
.card-header-flex > *,
.filter-form > *,
.filter-group > * {
    margin-bottom: 0.25rem;
}

/* Капча ALTCHA на всю ширину */
altcha-widget {
    --altcha-max-width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block;
}

/* Wrapper для авторизации */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    background-color: var(--gray-100);
}

.login-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--gray-200);
}

/* Заголовки */
h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

/* Типографика и утилиты */
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-muted { color: var(--gray-500); }
.font-mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.font-sans { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }

/* Отступы */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

/* Карточки */
.card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

/* Формы */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-300);
    background-color: #fff;
    color: var(--gray-900);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

textarea.form-control {
    resize: vertical;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}
.btn-primary:hover { background-color: var(--primary-hover); }

.btn-success {
    background-color: var(--success);
    color: #fff;
}
.btn-success:hover { background-color: var(--success-hover); }

.btn-secondary {
    background-color: var(--gray-200);
    color: var(--gray-700);
}
.btn-secondary:hover { background-color: var(--gray-300); }

.btn-dark {
    background-color: var(--gray-800);
    color: #fff;
}
.btn-dark:hover { background-color: var(--gray-900); }

.btn-danger-link {
    color: var(--danger);
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 600;
}
.btn-danger-link:hover { text-decoration: underline; }

/* Адаптивная Grid-сетка */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

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

/* Уведомления */
.alert {
    padding: 0.875rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
}
.alert-success {
    background-color: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success-text);
}
.alert-error {
    background-color: var(--danger-bg);
    border-color: var(--danger-border);
    color: var(--danger-text);
}
.alert-warning {
    background-color: var(--warning-bg);
    border-color: var(--warning-border);
    color: var(--warning-text);
}

/* Бейджи */
.badge {
    display: inline-flex;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    text-transform: uppercase;
}
.badge-success { background-color: var(--success-bg); color: var(--success-text); }
.badge-gray { background-color: var(--gray-200); color: var(--gray-700); }
.badge-pending { background-color: var(--warning-bg); color: var(--warning-text); }
.badge-danger { background-color: var(--danger-bg); color: var(--danger-text); }

/* Адаптивные таблицы */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
}
.table th {
    background-color: var(--gray-50);
    color: var(--gray-500);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    text-transform: uppercase;
    font-size: 0.75rem;
}
.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
    vertical-align: middle;
}
.table tbody tr:last-child td {
    border-bottom: 0;
}
.table tbody tr:hover td {
    background-color: var(--gray-50);
}

/* Списки */
.list-group {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}
.list-group-item:last-child {
    border-bottom: 0;
}

/* Страница выдачи товара */
.user-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-100);
    padding: 1rem;
}
.user-card {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--gray-100);
}
.user-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.user-badge-top {
    background-color: #e0e7ff;
    color: #3730a3;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Форма генерации ссылок в панели администратора */
.links-textarea {
    width: 100%;
    height: 10rem;
    font-family: monospace;
    font-size: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--success-border);
    border-radius: 0.5rem;
    background-color: #f9fbf9;
}

/* Формы инлайн-переименования */
.inline-rename-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
    max-width: 100%;
}
.inline-rename-form .form-control {
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
    height: auto;
    flex: 1;
}
.inline-rename-form .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    white-space: nowrap;
}

/* Стеклянная кнопка инструкции */
.btn-glass {
    margin-top: 1rem;
    background: rgba(240, 246, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(191, 219, 254, 0.5);
    color: #1e40af;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-glass:hover {
    background: rgba(219, 234, 254, 0.8);
    border-color: rgba(147, 197, 253, 0.8);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.05);
    color: #1e40af;
}

/* Оформление приветственной страницы-заглушки */
.promo-badge {
    background-color: #dbeafe;
    color: #1e40af;
    padding: 0.35rem 1rem;
    font-weight: 700;
}
.promo-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--gray-900);
    margin-bottom: 1rem;
}
.promo-description {
    margin-bottom: 2rem;
    line-height: 1.6;
}
.btn-promo-market {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    justify-content: center;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

/* CUSTOMER AREA - ПРЕМИАЛЬНЫЕ КОМПОНЕНТЫ СВЕЧЕНИЯ */
.claim-success-box-glowing {
    background: linear-gradient(135deg, #1d4ed8 0%, #60a5fa 100%);
    border: 2px solid #3b82f6;
    border-radius: 1.25rem;
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.25);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.success-glow-blob {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.25);
    filter: blur(40px);
    border-radius: 50%;
    pointer-events: none;
}

.success-details-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eff6ff;
    padding-bottom: 0.35rem;
    gap: 0.75rem;
}
.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.detail-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.detail-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    text-align: right;
    word-break: break-word;
}
.detail-value-badge {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1e293b;
    background-color: #eff6ff;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    word-break: break-all;
}

.activation-key-coupon {
    display: flex;
    background: #ffffff;
    border: 2px dashed #60a5fa;
    padding: 0.6rem 0.85rem;
    border-radius: 0.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}
.activation-key-text {
    font-size: 1.0625rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: 0.08em;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    flex-grow: 1;
}
.activation-key-text::-webkit-scrollbar {
    display: none;
}
.btn-copy-enhanced {
    background: #2563eb;
    color: #ffffff;
    border: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.45rem 1.125rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}
.btn-copy-enhanced:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
}

.promo-box-enhanced {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.03);
}
.promo-text-orange {
    font-size: 0.875rem;
    font-weight: 700;
    color: #7c2d12;
    line-height: 1.3;
    text-align: center;
}
.promo-highlight-orange {
    font-weight: 800;
    background-color: #ffedd5;
    border: 1px solid #fdba74;
    color: #ea580c;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
}
.btn-promo-orange {
    background: #ea580c;
    color: #ffffff;
    border: none;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.45rem 1rem;
    height: auto;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.15);
}
.btn-promo-orange:hover {
    background: #c2410c;
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.25);
}
.promo-footer-orange {
    font-size: 0.6875rem;
    color: #9a3412;
    opacity: 0.85;
    font-weight: normal;
    text-align: center;
    line-height: 1.35;
    max-width: 90%;
}

/* Карточка ожидания (Голубоватая) */
.claim-pending-box-enhanced {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #bae6fd;
    border-radius: 1.25rem;
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 20px -5px rgba(14, 165, 233, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pending-glow-blob {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 120px;
    height: 120px;
    background: rgba(14, 165, 233, 0.12);
    filter: blur(40px);
    border-radius: 50%;
    pointer-events: none;
}
.pending-details-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(224, 242, 254, 0.8);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    text-align: left;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}
.pending-status-line {
    font-size: 0.75rem;
    color: #0284c7;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.pending-status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #0284c7;
    border-radius: 50%;
    animation: elegant-breath 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
.pending-description {
    font-size: 0.8125rem;
    color: #334155;
    line-height: 1.5;
}
.pending-steam-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e0f2fe;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    gap: 0.75rem;
}
.pending-steam-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pending-steam-value {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1e293b;
    background-color: #f1f5f9;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    word-break: break-all;
}
.btn-status-blue {
    background: #0284c7;
    color: #ffffff;
    border: none;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.55rem 1.25rem;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}
.btn-status-blue:hover {
    background: #0369a1;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
}
.pending-footer-time {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #0284c7;
    font-weight: 600;
}
.pending-time-tag {
    background: rgba(2, 132, 199, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
}

/* Карточка ошибки (Нейтральный сланец) */
.claim-error-box-enhanced {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #cbd5e1;
    border-radius: 1.25rem;
    padding: 1.75rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 20px -5px rgba(148, 163, 184, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.error-glow-blob {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 120px;
    height: 120px;
    background: rgba(148, 163, 184, 0.12);
    filter: blur(40px);
    border-radius: 50%;
    pointer-events: none;
}
.error-details-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    text-align: left;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}
.error-status-line {
    font-size: 0.75rem;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.error-status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #475569;
    border-radius: 50%;
}
.error-description {
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.5;
}
.btn-error-indigo {
    background: #4f46e5;
    color: #ffffff;
    border: none;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.55rem 1.25rem;
    border-radius: 0.625rem;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}
.btn-error-indigo:hover {
    background: #4338ca;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

@keyframes elegant-breath {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

/* Стили для промо-заглушки и 404 страницы */
.promo-badge-container {
    margin-bottom: 1.5rem;
}
.promo-icon-large {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}
.promo-btn-market {
    background: #4f46e5;
    color: #ffffff;
    border: none;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.55rem 1.25rem;
    border-radius: 0.625rem;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}
.promo-btn-market:hover {
    background: #4338ca;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

/* СТИЛИ ДЛЯ СТРАНИЦЫ ИНСТРУКЦИИ */
.instruction-card-container {
    max-width: 550px;
}
.instruction-step-card {
    box-shadow: none;
    border-color: var(--gray-200);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.instruction-step-title-blue {
    color: var(--primary);
}
.instruction-step-title-green {
    color: var(--success-text);
}
.instruction-list {
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-700);
}
.instruction-plus-span {
    font-weight: bold;
    color: var(--primary);
}
.instruction-text {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}
.instruction-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
    word-break: break-all;
}
.instruction-footer-container {
    gap: 1rem;
    margin-top: 1.5rem;
}
.instruction-btn-close {
    flex: 1;
    margin-top: 0;
}

/* АДАПТИВНОСТЬ ФОРМ ПЕРЕИМЕНОВАНИЯ КАТЕГОРИЙ ДЛЯ СМАРТФОНОВ (<576px) */
@media (max-width: 576px) {
    .inline-rename-form {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .inline-rename-form .form-control {
        width: 100%;
    }
    .inline-rename-form .btn {
        width: 100%;
        text-align: center;
    }
}