/* =============================================
   BOOSTKLIENT — единый CSS (main branch)
   Шрифт: Kelly Slab (заголовки), sans-serif (текст)
   Фон: #dde1e8  Текст: #1e293b
   ============================================= */

/* ---- Базовые ---- */
html, body {
    margin: 0; padding: 0;
    overflow-x: hidden;
    background: #dde1e8;
    color: #1e293b;
    font-family: "Kelly Slab", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Kelly Slab", sans-serif;
    font-weight: 400;
    background: linear-gradient(135deg, #92680a 0%, #c8900a 45%, #7a5108 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #92680a;
}

/* Сброс градиента для кнопок */
.glass-btn, .glass-btn-lg, .glass-btn-outline, .glass-btn-inline,
.ui-btn, .ui-btn-primary, .ui-btn-ghost,
button, [role="button"] {
    -webkit-text-fill-color: inherit !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
}

/* ---- Типографика ---- */
p, li, td, th, label, span {
    color: inherit;
}

/* ---- Навбар ---- */
nav {
    background: #000000;
    border-bottom: none;
    box-shadow:
        0 1px 0 0 rgba(139, 92, 246, 0.35),
        0 2px 12px 0 rgba(139, 92, 246, 0.12),
        0 1px 0 0 rgba(255, 255, 255, 0.06) inset;
    position: relative;
}
nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(139, 92, 246, 0.2) 15%,
        rgba(167, 139, 250, 0.7) 35%,
        rgba(196, 181, 253, 0.9) 50%,
        rgba(167, 139, 250, 0.7) 65%,
        rgba(139, 92, 246, 0.2) 85%,
        transparent 100%
    );
}

/* ---- Кнопки ---- */
.glass-btn {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    background: linear-gradient(to bottom, rgba(239,68,68,0.9) 0%, rgba(185,28,28,0.85) 100%);
    border: 1px solid rgba(255,255,255,0.3);
    border-bottom-color: rgba(120,10,10,0.4);
    box-shadow: 0 2px 6px rgba(0,0,0,0.35), 0 10px 24px rgba(220,38,38,0.35),
                inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -1px 0 rgba(0,0,0,0.2);
    transition: transform 0.15s, box-shadow 0.15s;
}
.glass-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4), 0 14px 30px rgba(220,38,38,0.5),
                inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -1px 0 rgba(0,0,0,0.2);
}

.glass-btn-lg {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 16px;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    background: linear-gradient(to bottom, rgba(239,68,68,0.95) 0%, rgba(185,28,28,0.9) 100%);
    border: 1px solid rgba(255,255,255,0.35);
    border-bottom-color: rgba(120,10,10,0.5);
    box-shadow: 0 4px 10px rgba(0,0,0,0.35), 0 14px 34px rgba(220,38,38,0.5),
                inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -1px 0 rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
    transition: transform 0.15s, box-shadow 0.15s;
}
.glass-btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4), 0 20px 40px rgba(220,38,38,0.65),
                inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -1px 0 rgba(0,0,0,0.2);
}

.glass-btn-outline {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 16px;
    color: #fca5a5 !important;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    background: linear-gradient(to bottom, rgba(239,68,68,0.12) 0%, rgba(185,28,28,0.06) 100%);
    border: 1px solid rgba(239,68,68,0.35);
    backdrop-filter: blur(8px);
    transition: transform 0.15s, border-color 0.15s;
}
.glass-btn-outline:hover {
    transform: translateY(-1px);
    border-color: rgba(239,68,68,0.6);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.glass-btn-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 10px;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: transform 0.15s;
}
.glass-btn-inline:hover { transform: translateY(-1px); }
.glass-btn-inline-blue {
    background: linear-gradient(to bottom, rgba(239,68,68,0.9) 0%, rgba(185,28,28,0.85) 100%);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3), 0 8px 20px rgba(220,38,38,0.4),
                inset 0 1px 0 rgba(255,255,255,0.4);
}
.glass-btn-inline-dim {
    background: linear-gradient(to bottom, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.06) 100%);
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.glass-btn-mb { margin-bottom: 6px; }

/* ---- Анимации ---- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(147,51,234,0.15); }
    50%       { box-shadow: 0 0 40px rgba(147,51,234,0.3); }
}
@keyframes quiz-hint {
    0%   { transform: scale(1);    border-color: rgba(255,255,255,0.1); }
    50%  { transform: scale(1.06); border-color: rgba(191,149,63,0.7); }
    100% { transform: scale(1);    border-color: rgba(255,255,255,0.1); }
}

.float-anim        { animation: float 6s ease-in-out infinite; }
.float-anim-delay  { animation: float 6s ease-in-out 2s infinite; }
.pulse-glow        { animation: pulse-glow 3s ease-in-out infinite; }
.quiz-btn {
    box-shadow: 0 6px 24px rgba(0,0,0,0.22);
    animation: quiz-hint 0.9s ease-in-out 5;
    animation-delay: 0.6s;
}
.quiz-btn:hover   { transform: translateY(-3px) scale(1.03) !important; }
.quiz-btn.clicked { animation: none !important; }

/* ---- Карточки без угловых скруглений ---- */
.no-corner-card {
    --gap: 14px;
    --line: rgba(255,255,255,0.18);
    background-image:
        linear-gradient(to right, var(--line), var(--line)),
        linear-gradient(to right, var(--line), var(--line)),
        linear-gradient(to bottom, var(--line), var(--line)),
        linear-gradient(to bottom, var(--line), var(--line));
    background-size:
        calc(100% - var(--gap) * 2) 1px,
        calc(100% - var(--gap) * 2) 1px,
        1px calc(100% - var(--gap) * 2),
        1px calc(100% - var(--gap) * 2);
    background-position: var(--gap) 0, var(--gap) 100%, 0 var(--gap), 100% var(--gap);
    background-repeat: no-repeat;
}
.no-corner-card:hover { --line: rgba(168,85,247,0.5); }

/* ---- Pinterest Pin Mockup ---- */
.pin-mockup {
    display: flex;
    flex-direction: column;
    cursor: default;
    text-decoration: none;
    transition: transform 0.2s ease;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}
.pin-mockup:hover { transform: translateY(-6px); }
a.pin-mockup      { cursor: pointer; }

.pin-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 2px;
    gap: 6px;
}
.pin-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.pin-icon-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(0,0,0,0.09);
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 100px;
    padding: 5px 8px;
    color: #1e293b;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.pin-icon-btn:hover { background: rgba(0,0,0,0.16); }

.badge-soon {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(217,130,5,0.92);
    border: 1px solid rgba(245,158,11,0.6);
    color: #fff8e7;
    font-size: 10px; font-weight: 700;
    padding: 2px 9px;
    border-radius: 100px;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 10;
}
.pin-save-btn {
    background: linear-gradient(to right, #f472b6, #a855f7);
    color: white;
    border: none;
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 12px; font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.pin-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.pin-footer {
    position: relative;
    padding: 22px 18px;
    background: #ffffff;
}
.pin-footer-inner {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 4px;
    margin: -4px;
}
.pin-title {
    font-family: "Kelly Slab", sans-serif;
    font-weight: 400;
    font-size: 26px;
    margin-bottom: 12px;
    line-height: 1.2;
    background: linear-gradient(135deg, #92680a 0%, #c8900a 45%, #7a5108 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pin-desc {
    font-size: 17px;
    color: #374151;
    line-height: 1.65;
}
.pin-more-btn {
    background: none; border: none;
    color: #a855f7; font-size: 11px;
    cursor: pointer; padding: 0; margin-left: 2px;
}
.pin-more-btn:hover { color: #c084fc; }

/* ---- Pinterest Masonry ---- */
.pin-masonry-flex { display: flex; gap: 14px; align-items: flex-start; }
.pin-col { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }

@media (max-width: 900px) {
    .pin-masonry-flex { flex-wrap: wrap; }
    .pin-col { flex: 0 0 calc(50% - 7px); }
}
@media (max-width: 500px) {
    .pin-col { flex: 0 0 100%; }
}

/* no visual padding — cards show text only */

/* ---- Тёмная тема (единая для всего сайта) ---- */
:root {
    --ui-surface:    rgb(30 41 59);
    --ui-surface-hover: rgb(51 65 85);
    --ui-border:     rgba(255,255,255,0.1);
    --ui-border-hov: rgba(255,255,255,0.2);
    --ui-text:       #f1f5f9;
    --ui-text-dark:  #cbd5e1;
    --ui-muted:      #94a3b8;
    --ui-accent:     #a78bfa;
}
.ui-card { background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); overflow: hidden; }
.ui-card:hover { border-color: var(--ui-border-hov); }
.ui-card-header { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-bottom: 1px solid var(--ui-border); background: rgba(255,255,255,0.03); }
.ui-card-icon { width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(124,58,237,0.1); border: none; color: #7c3aed; }
.ui-card-title { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ui-muted); -webkit-text-fill-color: var(--ui-muted); }
.ui-card-body { padding: 16px; }
.ui-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 8px; font-size: 0.8125rem; font-weight: 600; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease; border: none; outline: none; text-decoration: none; white-space: nowrap; position: relative; overflow: hidden; }
.ui-btn-primary { background: linear-gradient(135deg, #7c3aed, #2563eb); color: #fff; box-shadow: 0 1px 8px rgba(124,58,237,0.25); }
.ui-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(124,58,237,0.35); }
.ui-btn-ghost { background: rgba(255,255,255,0.06); color: var(--ui-muted); border: 1px solid rgba(255,255,255,0.12); }
.ui-btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--ui-text); }
@keyframes ui-ripple { to { transform: scale(4); opacity: 0; } }
.ui-ripple-wave { position: absolute; border-radius: 50%; width: 8px; height: 8px; background: rgba(255,255,255,0.35); transform: scale(0); animation: ui-ripple 0.55s linear; pointer-events: none; }
.ui-stat-num { font-size: 1.75rem; font-weight: 700; color: #f1f5f9; -webkit-text-fill-color: #f1f5f9; line-height: 1; }
.ui-stat-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: #94a3b8; -webkit-text-fill-color: #94a3b8; margin-top: 4px; }
.ui-stat-sub { font-size: 0.75rem; color: #94a3b8; -webkit-text-fill-color: #94a3b8; margin-top: 2px; }
.ui-stat-accent { font-size: 0.75rem; color: #a78bfa; -webkit-text-fill-color: #a78bfa; margin-top: 2px; }
.ui-row-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); transition: border-color 0.15s; }
.ui-row-item:hover { border-color: rgba(255,255,255,0.15); }
.ui-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 16px; gap: 10px; }
.ui-empty svg { color: #475569; opacity: 0.7; border: none; outline: none; }
.ui-empty-title { font-size: 0.875rem; font-weight: 600; color: var(--ui-text); }
.ui-empty-sub { font-size: 0.75rem; color: var(--ui-muted); }

/* ---- Общие утилиты страниц ---- */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; flex-shrink: 0; }
.ui-toolbar { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.ui-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; color: #475569; text-decoration: none; }
.ui-alert { margin-bottom: 16px; padding: 12px 16px; border-radius: 10px; font-size: 0.85rem; font-weight: 500; }
.ui-alert-success { color: #15803d; background: rgba(22,163,74,0.08); border: 1px solid rgba(22,163,74,0.2); }
.ui-alert-error { color: #dc2626; background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.2); }
.ui-alert-info { color: #475569; background: rgba(255,255,255,0.05); border: 1px solid rgba(0,0,0,0.08); }
.ui-banner { margin-bottom: 16px; padding: 12px 16px; border-radius: 10px; font-size: 0.85rem; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.ui-banner-purple { color: #6d28d9; background: rgba(124,58,237,0.07); border: 1px solid rgba(124,58,237,0.2); }
.ui-page-header { margin-bottom: 24px; }
.ui-page-header p { color: #475569; font-size: 0.875rem; }
.ui-stat-lg { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; color: #f1f5f9; -webkit-text-fill-color: #f1f5f9; line-height: 1; }
.ui-stat-period { margin-top: 8px; font-size: 0.72rem; color: #94a3b8; -webkit-text-fill-color: #94a3b8; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.ui-stat-purple { color: #7c3aed !important; -webkit-text-fill-color: #7c3aed !important; }
.chart-wrap { height: 280px; position: relative; }

/* ---- Цветные плашки статистики ---- */
.ui-badge { border-radius: 14px; padding: 16px 20px; background: var(--ui-surface); border: 1px solid var(--ui-border); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.ui-badge-num { font-size: 2rem; font-weight: 700; line-height: 1; }
.ui-badge-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 6px; }
.ui-badge-purple { border-color: rgba(124,58,237,0.4); }
.ui-badge-purple .ui-badge-num { color: #a78bfa; -webkit-text-fill-color: #a78bfa; }
.ui-badge-purple .ui-badge-label { color: #7c3aed; -webkit-text-fill-color: #7c3aed; }
.ui-badge-green { border-color: rgba(22,163,74,0.4); }
.ui-badge-green .ui-badge-num { color: #4ade80; -webkit-text-fill-color: #4ade80; }
.ui-badge-green .ui-badge-label { color: #22c55e; -webkit-text-fill-color: #22c55e; }
.ui-badge-red { border-color: rgba(220,38,38,0.4); }
.ui-badge-red .ui-badge-num { color: #f87171; -webkit-text-fill-color: #f87171; }
.ui-badge-red .ui-badge-label { color: #ef4444; -webkit-text-fill-color: #ef4444; }

/* ---- Строки списка (пины, доски) ---- */
.ui-row-thumb { width: 48px !important; height: 48px !important; max-width: 48px !important; max-height: 48px !important; border-radius: 8px; flex-shrink: 0; object-fit: cover; }
.ui-row-thumb-empty { width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.04); }
.ui-row-col { flex: 1; min-width: 0; }
.ui-row-title { font-size: 0.875rem; font-weight: 500; color: #f1f5f9; -webkit-text-fill-color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-row-sub { font-size: 0.75rem; color: #94a3b8; -webkit-text-fill-color: #94a3b8; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-row-right { text-align: right; flex-shrink: 0; }
.ui-row-right-num { font-size: 1rem; font-weight: 700; color: #f1f5f9; -webkit-text-fill-color: #f1f5f9; }
.ui-row-right-label { font-size: 0.72rem; color: #94a3b8; -webkit-text-fill-color: #94a3b8; }
.ui-rows { display: flex; flex-direction: column; gap: 8px; }
.ui-card-body-lg { padding: 20px 16px; }
.ui-card-body-flex { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px; }
.ui-btn-sm { font-size: 0.75rem !important; padding: 5px 10px !important; }
button:disabled, .ui-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---- Поля ввода ---- */
input, textarea, select {
    font-family: inherit;
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9 !important;
    background: rgb(15 23 42) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 6px;
}
input::placeholder, textarea::placeholder {
    color: #64748b;
    -webkit-text-fill-color: #64748b;
}
input:focus, textarea:focus, select:focus {
    outline: none !important;
    border-color: rgba(124,58,237,0.5) !important;
    box-shadow: 0 0 0 2px rgba(124,58,237,0.12) !important;
}
input:invalid, textarea:invalid, select:invalid {
    box-shadow: none !important;
    border-color: rgba(255,255,255,0.15) !important;
}
/* Автозаполнение браузера — тёмный фон */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus,
textarea:-webkit-autofill, select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px rgb(15 23 42) inset !important;
    -webkit-text-fill-color: #f1f5f9 !important;
    caret-color: #f1f5f9;
}

/* ---- AI-страницы: тёмные карточки без прозрачности ---- */
/* Переопределяем Tailwind /50 /60 /80 opacity-классы — они дают rgb(... / 0.5) напрямую, --tw-bg-opacity не помогает */
.bg-slate-800\/10, .bg-slate-800\/20, .bg-slate-800\/30,
.bg-slate-800\/40, .bg-slate-800\/50, .bg-slate-800\/60,
.bg-slate-800\/70, .bg-slate-800\/80, .bg-slate-800\/90 {
    background-color: rgb(30 41 59) !important;
}
.bg-slate-900\/10, .bg-slate-900\/20, .bg-slate-900\/30,
.bg-slate-900\/40, .bg-slate-900\/50, .bg-slate-900\/60,
.bg-slate-900\/70, .bg-slate-900\/80, .bg-slate-900\/90 {
    background-color: rgb(15 23 42) !important;
}
.bg-gray-800\/10, .bg-gray-800\/20, .bg-gray-800\/30,
.bg-gray-800\/40, .bg-gray-800\/50, .bg-gray-800\/60,
.bg-gray-800\/70, .bg-gray-800\/80, .bg-gray-800\/90 {
    background-color: rgb(31 41 55) !important;
}
.bg-gray-900\/10, .bg-gray-900\/20, .bg-gray-900\/30,
.bg-gray-900\/40, .bg-gray-900\/50, .bg-gray-900\/60,
.bg-gray-900\/70, .bg-gray-900\/80, .bg-gray-900\/90 {
    background-color: rgb(17 24 39) !important;
}

/* ---- Картинки и иконки без бордера по умолчанию ---- */
img { border: none; }
svg { border: none; outline: none; }

/* ---- Профиль ---- */
.profile-sub { border-radius: 16px; border: 1.5px solid var(--ui-border); padding: 18px 22px; margin-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--ui-surface); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.profile-sub-paid { border-color: rgba(22,163,74,0.4); }
.profile-sub-trial { border-color: rgba(37,99,235,0.4); }
.profile-sub-expired { border-color: rgba(220,38,38,0.4); }
.profile-sub-inner { display: flex; align-items: center; gap: 14px; }
.profile-sub-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profile-sub-icon-paid { background: rgba(22,163,74,0.15); color: #4ade80; }
.profile-sub-icon-trial { background: rgba(37,99,235,0.15); color: #60a5fa; }
.profile-sub-icon-expired { background: rgba(220,38,38,0.15); color: #f87171; }
.profile-sub-name { font-weight: 700; font-size: 0.95rem; }
.profile-sub-name-paid { color: #4ade80; -webkit-text-fill-color: #4ade80; }
.profile-sub-name-trial { color: #60a5fa; -webkit-text-fill-color: #60a5fa; }
.profile-sub-name-expired { color: #f87171; -webkit-text-fill-color: #f87171; }
.profile-sub-meta { color: var(--ui-muted); -webkit-text-fill-color: var(--ui-muted); font-size: 0.82rem; margin-top: 2px; }
.profile-sub-meta strong { color: #cbd5e1; -webkit-text-fill-color: #cbd5e1; }
.profile-sub-btn { flex-shrink: 0; padding: 9px 20px; border-radius: 10px; font-weight: 600; font-size: 0.875rem; text-decoration: none; white-space: nowrap; border: none; cursor: pointer; }
.profile-sub-btn-paid { background: rgba(255,255,255,0.1); color: var(--ui-text); -webkit-text-fill-color: var(--ui-text); }
.profile-sub-btn-trial { background: #2563eb; color: white; -webkit-text-fill-color: white; }
.profile-sub-btn-expired { background: #dc2626; color: white; -webkit-text-fill-color: white; }
.profile-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--ui-text); -webkit-text-fill-color: var(--ui-text); margin-bottom: 8px; }
.profile-help { color: var(--ui-muted); -webkit-text-fill-color: var(--ui-muted); font-size: 0.82rem; margin-top: 6px; }
.profile-error { color: #f87171; -webkit-text-fill-color: #f87171; font-size: 0.8rem; margin-top: 4px; }
.profile-tz-suggest { margin-top: 10px; padding: 12px 16px; background: rgba(37,99,235,0.1); border: 1px solid rgba(37,99,235,0.3); border-radius: 10px; }
.profile-tz-suggest p { font-size: 0.875rem; color: #60a5fa; -webkit-text-fill-color: #60a5fa; }
.profile-tz-name { font-weight: 700; color: #93c5fd; -webkit-text-fill-color: #93c5fd; }
.profile-tz-apply { margin-left: 8px; text-decoration: underline; font-weight: 700; color: #60a5fa; -webkit-text-fill-color: #60a5fa; background: none; border: none; cursor: pointer; }
.profile-tz-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-tz-info p { color: var(--ui-muted); -webkit-text-fill-color: var(--ui-muted); font-size: 0.9rem; }
.profile-tz-info strong { color: var(--ui-text); -webkit-text-fill-color: var(--ui-text); }

/* ---- Блог ---- */
.blog-layout { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; max-width: 1152px; margin: 0 auto; padding: 40px 16px; }
.blog-posts { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 20px; }
.blog-sidebar { width: 260px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.blog-card { background: #fff; border-radius: 16px; border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 2px 12px rgba(0,0,0,0.06); overflow: hidden; }
.blog-card-cover { width: 100%; height: 200px; object-fit: cover; display: block; }
.blog-card-body { padding: 22px; }
.blog-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.78rem; color: #475569; flex-wrap: wrap; }
.blog-card-cat { padding: 3px 10px; border-radius: 100px; background: rgba(124,58,237,0.08); color: #6d28d9; font-weight: 500; text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em; }
.blog-card-title { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin: 0 0 8px; font-family: "Kelly Slab", sans-serif; }
.blog-card-title a { color: #1e293b; text-decoration: none; }
.blog-card-title a:hover { color: #7c3aed; }
.blog-card-excerpt { color: #475569; font-size: 0.88rem; margin-bottom: 16px; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.blog-card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.blog-card-tag { font-size: 0.78rem; color: #475569; text-decoration: none; }
.blog-card-read { color: #7c3aed; font-size: 0.88rem; font-weight: 500; text-decoration: none; }
.blog-card-empty { background: #fff; border-radius: 16px; border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 48px; text-align: center; color: #475569; }
.blog-sidebar-box { background: #fff; border-radius: 16px; border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 20px; }
.blog-sidebar-title { color: #475569; font-weight: 600; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; font-family: inherit; }
.blog-sidebar-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.blog-cat-link { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 8px; font-size: 0.88rem; text-decoration: none; color: #475569; }
.blog-cat-link.active { background: rgba(124,58,237,0.08); color: #6d28d9; }
.blog-cat-link:hover { background: rgba(124,58,237,0.05); color: #6d28d9; }
.blog-cat-count { font-size: 0.75rem; }
.blog-recent-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.blog-recent-item { display: flex; gap: 12px; }
.blog-recent-img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.blog-recent-placeholder { width: 48px; height: 48px; border-radius: 8px; background: rgba(124,58,237,0.08); flex-shrink: 0; }
.blog-recent-link { font-size: 0.85rem; color: #334155; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-recent-date { font-size: 0.75rem; color: #64748b; margin-top: 2px; }
