/* ============================================================
   YMARKET — единый стиль
   ============================================================ */

:root {
    --bg: #030504; --text: #fff; --muted: rgba(255,255,255,0.55);
    --orange: #f9b701; --orange-hover: #ffc72c; --yellow: #ffd400;
    --purple: #7557e6; --blue: #249bd7; --green: #7fe0a0; --red: #ff3b3b;
    --line: rgba(249,183,1,0.22); --line-soft: rgba(255,255,255,0.08);
    --error: #ff5b5b; --success: #7fe0a0; --card-bg: rgba(10,8,4,0.82);
    --sidebar-w: 260px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    background: var(--bg); color: var(--text); min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body { position: relative; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
* { scrollbar-color: #ffffff1f transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ffffff1a; border-radius: 4px; }

body::before {
    content: ""; position: fixed; inset: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(249,183,1,.10), transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(249,183,1,.06), transparent 50%),
        linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.75));
    pointer-events: none; z-index: 0;
}
body::after {
    content: ""; position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(249,183,1,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249,183,1,.04) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 75%);
    pointer-events: none; z-index: 0;
}
.bg-decor { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.bg-decor .glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.bg-decor .glow-1 { width: 420px; height: 420px; top: -140px; left: -120px; background: radial-gradient(circle, rgba(249,183,1,.5), transparent 70%); }
.bg-decor .glow-2 { width: 380px; height: 380px; bottom: -140px; right: -100px; background: radial-gradient(circle, rgba(249,183,1,.4), transparent 70%); }
.bg-decor .glow-3 { width: 260px; height: 260px; top: 45%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255,199,44,.22), transparent 70%); opacity: .35; }
.bg-decor .diag { position: absolute; width: 200%; height: 1px; background: linear-gradient(90deg, transparent, rgba(249,183,1,.3), transparent); left: -50%; }
.bg-decor .diag-1 { top: 18%; transform: rotate(-10deg); opacity: .3; }
.bg-decor .diag-2 { top: 82%; transform: rotate(7deg); opacity: .2; }
.bg-decor .spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px 2px rgba(249,183,1,.8); animation: sparkFloat 6s ease-in-out infinite; }
.bg-decor .spark:nth-child(1) { top: 12%; left: 10%; animation-delay: 0s; }
.bg-decor .spark:nth-child(2) { top: 26%; right: 14%; animation-delay: 1.2s; }
.bg-decor .spark:nth-child(3) { bottom: 22%; left: 16%; animation-delay: 2.4s; }
.bg-decor .spark:nth-child(4) { bottom: 30%; right: 18%; animation-delay: 3.6s; }
.bg-decor .spark:nth-child(5) { top: 55%; left: 6%;  animation-delay: 4.8s; }
@keyframes sparkFloat { 0%,100% { transform: translateY(0) scale(1); opacity: .55; } 50% { transform: translateY(-14px) scale(1.4); opacity: 1; } }
.bg-decor .dust { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: rgba(249,183,1,.7); animation: dustRise 12s linear infinite; }
.bg-decor .dust:nth-child(1) { left: 25%; bottom: -10px; animation-delay: 0s; }
.bg-decor .dust:nth-child(2) { left: 42%; bottom: -10px; animation-delay: 3s; }
.bg-decor .dust:nth-child(3) { left: 60%; bottom: -10px; animation-delay: 6s; }
.bg-decor .dust:nth-child(4) { left: 78%; bottom: -10px; animation-delay: 9s; }
@keyframes dustRise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 10% { opacity: .8; } 100% { transform: translateY(-110vh) scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bg-decor .spark, .bg-decor .dust { animation: none; } }

.site-shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.container { width: min(1410px, calc(100% - 48px)); margin-inline: auto; }
.wrap { position: relative; z-index: 1; width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 50px 0 80px; display: flex; flex-direction: column; gap: 22px; }

/* ШАПКА */
.site-header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(3,5,4,0.72); border-bottom: 1px solid var(--line-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); transition: transform .25s; }
.brand:hover { transform: translateY(-1px); }
.brand-mark { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #ff8c1a 0%, #f9b701 50%, #ffd400 100%); overflow: hidden; animation: brandPulse 3.2s ease-in-out infinite; transition: box-shadow .25s, transform .25s; }
.brand-mark::before { content: ""; position: absolute; top: 0; left: -80%; width: 60%; height: 100%; background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%); transform: skewX(-18deg); animation: brandGloss 4.5s ease-in-out infinite; pointer-events: none; }
.brand-mark::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(0,0,0,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.12) 1px, transparent 1px); background-size: 12px 12px; opacity: .35; pointer-events: none; }
.brand-letter { position: relative; z-index: 2; color: #1a0e00; font-size: 26px; font-weight: 900; font-style: italic; font-family: "MaybeCondensed", "HassleCondensed", "Arial Narrow", Arial, sans-serif; line-height: 1; text-shadow: 0 1px 0 rgba(255,255,255,.7), 0 2px 0 rgba(255,200,60,.9), 0 3px 6px rgba(120,60,0,.35); }
.brand:hover .brand-mark { transform: scale(1.06) rotate(-2deg); box-shadow: 0 0 32px rgba(249,183,1,0.6); }
.brand-name { font-family: "MaybeCondensed", "HassleCondensed", "Arial Narrow", Arial, sans-serif; font-style: italic; font-weight: 800; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; }
@keyframes brandPulse { 0%,100% { box-shadow: 0 0 20px rgba(249,183,1,.3); } 50% { box-shadow: 0 0 32px rgba(249,183,1,.55); } }
@keyframes brandGloss { 0% { left: -80%; } 55% { left: 130%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .brand-mark, .brand-mark::before { animation: none; } }

.hassle-nav { display: flex; align-items: center; gap: 20px; }
.hassle-nav-links { display: flex; gap: 22px; }
.hassle-nav-links a { color: rgba(255,255,255,.7); text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; transition: color .15s; }
.hassle-nav-links a:hover { color: var(--orange); }
.hassle-nav-socials { display: flex; gap: 10px; }
.hassle-nav-socials a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-soft); border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; transition: color .15s, border-color .15s, background .15s; }
.hassle-nav-socials a:hover { color: var(--orange); border-color: rgba(249,183,1,.5); background: rgba(249,183,1,.06); }
.nav-adm { position: relative; color: var(--orange) !important; border-color: rgba(249,183,1,.55) !important; background: rgba(249,183,1,.08); font-weight: 900 !important; letter-spacing: 0.08em; }
.nav-adm:hover { color: #1a0e00 !important; background: linear-gradient(135deg, #ff8c1a 0%, #f9b701 50%, #ffd400 100%) !important; border-color: transparent !important; box-shadow: 0 0 20px rgba(249,183,1,.55); transform: translateY(-2px); }
.nav-adm::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 6px #ff3b3b; animation: admPulse 2s ease-in-out infinite; }
@keyframes admPulse { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.4); opacity: 1; } }
.header-contest { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; background: var(--orange); color: #1a0e00; border-radius: 10px; font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; transition: background .2s, box-shadow .2s; border: none; cursor: pointer; font-family: inherit; }
.header-contest:hover { background: var(--orange-hover); box-shadow: 0 0 25px rgba(249,183,1,.4); }
.header-suggest { background: transparent; border: 1px solid rgba(249,183,1,.55); color: var(--orange); }
.header-suggest:hover { background: var(--orange); color: #1a0e00; border-color: var(--orange); box-shadow: 0 0 25px rgba(249,183,1,.4); }

/* МЕНЮ ПОЛЬЗОВАТЕЛЯ */
.user-menu { position: relative; }
.user-btn { display: inline-flex; align-items: center; justify-content: center; padding: 4px; background: rgba(10,8,4,.8); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .15s; position: relative; }
.user-btn:hover { border-color: var(--orange); box-shadow: 0 0 20px rgba(249,183,1,.35); transform: translateY(-1px); }
.user-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #1a0e00; font-weight: 900; font-size: 16px; text-transform: uppercase; overflow: hidden; flex-shrink: 0; line-height: 1; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-role-dot { position: absolute; bottom: 0; right: 0; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--bg); box-shadow: 0 0 8px currentColor; }
.user-dropdown { position: absolute; top: calc(100% + 10px); right: 0; min-width: 240px; background: rgba(10,8,4,.96); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 20px 40px rgba(0,0,0,.6), 0 0 30px rgba(249,183,1,.08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 1000; }
.user-menu.open .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown-header { display: flex; align-items: center; gap: 12px; padding: 12px 12px 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.user-dropdown-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #1a0e00; font-weight: 900; font-size: 18px; text-transform: uppercase; overflow: hidden; flex-shrink: 0; }
.user-dropdown-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-dropdown-name { font-weight: 700; font-size: 14px; color: var(--text); line-height: 1.3; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.user-dropdown-sub { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 4px; }
.user-dropdown-item { display: block; padding: 10px 12px; color: var(--text); text-decoration: none; font-size: 14px; border-radius: 8px; transition: background .15s, color .15s; }
.user-dropdown-item:hover { background: rgba(249,183,1,.08); color: var(--orange); }
.user-dropdown-item.danger { color: #ff7b7b; }
.user-dropdown-item.danger:hover { background: rgba(255,91,91,.12); color: #ff9b9b; }

/* ПЕРЕКЛЮЧАТЕЛЬ ТЕМ */
.theme-switcher { position: relative; }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--line-soft); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.theme-btn:hover { color: var(--orange); border-color: rgba(249,183,1,.5); background: rgba(249,183,1,.06); }
.theme-btn svg { width: 16px; height: 16px; fill: currentColor; }
.theme-dropdown { position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px; background: rgba(10,8,4,.96); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 20px 40px rgba(0,0,0,.6); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 1000; }
.theme-switcher.open .theme-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.theme-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; transition: background .15s, color .15s; }
.theme-item:hover { background: rgba(249,183,1,.1); color: var(--orange); }
.theme-item.active { color: var(--orange); background: rgba(249,183,1,.08); }
.theme-item .swatch { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; box-shadow: 0 0 6px currentColor; }
.theme-item .swatch-ymarket { background: linear-gradient(135deg, #ff8c1a, #f9b701, #ffd400); }
.theme-item .swatch-neon { background: linear-gradient(135deg, #6fb800, #a6ff0a, #d4ff6a); }
.theme-item .check { margin-left: auto; color: var(--orange); font-weight: 900; }

/* БЕЙДЖИ РОЛИ */
.role-badge { display: inline-flex; align-items: center; justify-content: center; padding: 3px 12px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5; white-space: nowrap; background: rgba(249,183,1,0.12); border: 1px solid rgba(249,183,1,0.5); color: var(--orange); }
.role-badge.role-owner { background: linear-gradient(90deg, #ff3b3b 0%, #ff8c1a 25%, #f9b701 50%, #ff8c1a 75%, #ff3b3b 100%); background-size: 300% 100%; border: 1px solid rgba(255,140,26,0.7); color: #1a0e00; text-shadow: 0 1px 0 rgba(255,255,255,0.25); box-shadow: 0 0 12px rgba(255,80,30,0.55), 0 0 24px rgba(249,183,1,0.35); animation: roleOwnerShimmer 3s linear infinite; position: relative; overflow: hidden; }
.role-badge.role-owner::before { content: ""; position: absolute; top: 0; left: -60%; width: 50%; height: 100%; background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%); animation: roleOwnerGloss 2.8s ease-in-out infinite; pointer-events: none; }
.role-badge.role-developer { background: rgba(117,87,230,0.12); border-color: rgba(117,87,230,0.55); color: #b8a8ff; }
.role-badge.role-support  { background: rgba(0,212,160,0.12); border-color: rgba(0,212,160,0.55); color: #00d4a0; }
.role-badge.role-media { background: rgba(36,155,215,0.12); border-color: rgba(36,155,215,0.55); color: #6bc4e8; }
.role-badge.role-user { background: rgba(249,183,1,0.12); border-color: rgba(249,183,1,0.55); color: var(--orange); }
@keyframes roleOwnerShimmer { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
@keyframes roleOwnerGloss { 0% { left: -60%; } 60% { left: 120%; } 100% { left: 120%; } }
@media (prefers-reduced-motion: reduce) { .role-badge.role-owner, .role-badge.role-owner::before { animation: none; } }

/* НОВОСТИ НА ГЛАВНОЙ */
.news-home-section { padding: 90px 0 40px; position: relative; flex: 1; }
.news-home-heading { width: min(1410px, calc(100% - 48px)); margin: 0 auto 45px; position: relative; }
.news-home-heading h2 { font-family: "MaybeCondensed", "HassleCondensed", "Arial Narrow", Arial, sans-serif; font-size: clamp(56px, 7vw, 110px); font-style: italic; font-weight: 800; line-height: 0.84; text-transform: uppercase; }
.news-home-heading h2 span { color: var(--orange); font-weight: 400; }
.news-home-heading p { max-width: 620px; margin-top: 20px; color: rgba(255,255,255,.6); font-size: 16px; line-height: 1.6; }
.news-home-all { position: absolute; right: 0; bottom: 8px; display: inline-flex; align-items: center; gap: 8px; color: var(--orange); text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 18px; border: 1px solid rgba(249,183,1,.4); border-radius: 10px; transition: background .2s, border-color .2s, color .2s, transform .15s; }
.news-home-all:hover { background: rgba(249,183,1,.1); border-color: var(--orange); color: var(--orange-hover); transform: translateX(2px); }
.news-home-grid { width: min(1410px, calc(100% - 48px)); margin-inline: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-home-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: transform .25s, border-color .25s, box-shadow .25s; backdrop-filter: blur(14px); }
.news-home-card:hover { transform: translateY(-6px); border-color: rgba(249,183,1,.55); box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 40px rgba(249,183,1,.15); }
.news-home-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0a0804; border-bottom: 1px solid var(--line-soft); }
.news-home-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.news-home-card:hover .news-home-media img { transform: scale(1.05); }
.news-home-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--orange); font-size: 52px; background: rgba(249,183,1,.05); }
.news-home-file-badge { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: rgba(249,183,1,.95); color: #1a0e00; border-radius: 8px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 4px 16px rgba(249,183,1,.4); z-index: 1; }
.news-home-file-badge svg { width: 12px; height: 12px; fill: currentColor; }
.news-home-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.news-home-title { font-family: "MaybeCondensed", "HassleCondensed", "Arial Narrow", Arial, sans-serif; font-style: italic; font-weight: 800; font-size: 22px; line-height: 1.1; text-transform: uppercase; margin-bottom: 10px; }
.news-home-excerpt { color: var(--muted); font-size: 13px; line-height: 1.55; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-home-date { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); color: rgba(255,255,255,.4); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.news-home-empty { width: min(1410px, calc(100% - 48px)); margin: 0 auto; padding: 60px 20px; text-align: center; background: var(--card-bg); border: 1px solid var(--line); border-radius: 22px; color: var(--muted); backdrop-filter: blur(14px); }
.news-home-empty .icon { font-size: 52px; margin-bottom: 16px; }

/* НОВОСТИ (news.php) */
.page-title { width: min(1200px, calc(100% - 48px)); margin: 50px auto 40px; }
.page-title h1 { font-family: "MaybeCondensed", "HassleCondensed", "Arial Narrow", Arial, sans-serif; font-style: italic; font-weight: 800; font-size: clamp(56px, 7vw, 110px); line-height: 0.84; text-transform: uppercase; }
.page-title h1 span { color: var(--orange); font-weight: 400; }
.page-title p { max-width: 620px; margin-top: 20px; color: rgba(255,255,255,.6); font-size: 16px; line-height: 1.6; }
.news-grid { width: min(1200px, calc(100% - 48px)); margin: 0 auto 60px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: transform .25s, border-color .25s, box-shadow .25s; backdrop-filter: blur(14px); }
.news-card:hover { transform: translateY(-6px); border-color: rgba(249,183,1,.55); box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 40px rgba(249,183,1,.15); }
.news-card-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #0a0804; border-bottom: 1px solid var(--line-soft); }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.news-card:hover .news-card-media img { transform: scale(1.05); }
.news-card-media .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--orange); font-size: 48px; background: rgba(249,183,1,.05); }
.news-card-download-badge { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: rgba(249,183,1,.95); color: #1a0e00; border-radius: 8px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 4px 16px rgba(249,183,1,.4); z-index: 1; }
.news-card-download-badge svg { width: 12px; height: 12px; fill: currentColor; }
.news-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-card-title { font-family: "MaybeCondensed", "HassleCondensed", "Arial Narrow", Arial, sans-serif; font-style: italic; font-weight: 800; font-size: 22px; line-height: 1.1; text-transform: uppercase; margin-bottom: 12px; }
.news-card-excerpt { color: var(--muted); font-size: 14px; line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); color: rgba(255,255,255,.4); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.news-card-meta .author { color: var(--orange); }
.news-single { width: min(860px, calc(100% - 48px)); margin: 50px auto 60px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 22px; padding: 36px 40px; backdrop-filter: blur(14px); }
.news-single .back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 22px; transition: color .15s; }
.news-single .back:hover { color: var(--orange); }
.news-single h1 { font-family: "MaybeCondensed", "HassleCondensed", "Arial Narrow", Arial, sans-serif; font-style: italic; font-weight: 800; font-size: clamp(36px, 5vw, 58px); line-height: 1.05; text-transform: uppercase; margin-bottom: 16px; }
.news-single-meta { display: flex; flex-wrap: wrap; gap: 14px; color: rgba(255,255,255,.4); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.news-single-meta .author { color: var(--orange); }
.news-single-image { width: 100%; border-radius: 14px; overflow: hidden; margin-bottom: 24px; border: 1px solid var(--line-soft); }
.news-single-image img { width: 100%; display: block; }
.news-single-content { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.85); white-space: pre-wrap; word-break: break-word; }
.news-single-download { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.news-single-download .download-hint { color: rgba(255,255,255,.45); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.news-download-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 48px; background: var(--orange); color: #1a0e00; border-radius: 14px; font-family: "MaybeCondensed", "HassleCondensed", "Arial Narrow", Arial, sans-serif; font-style: italic; font-weight: 800; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; box-shadow: 0 0 35px rgba(249,183,1,.25); transition: background .2s, box-shadow .2s, transform .15s; line-height: 1; max-width: 100%; }
.news-download-btn svg { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }
.news-download-btn:hover { background: var(--orange-hover); box-shadow: 0 0 45px rgba(249,183,1,.5); transform: translateY(-2px); }
.empty { width: min(1200px, calc(100% - 48px)); margin: 60px auto; text-align: center; padding: 60px 20px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 22px; color: var(--muted); }
.empty .icon { font-size: 52px; margin-bottom: 16px; }
.pagination { width: min(1200px, calc(100% - 48px)); margin: 0 auto 60px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(20,15,4,.5); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 700; transition: background .15s, border-color .15s, color .15s; }
.pagination a:hover { border-color: var(--orange); color: var(--orange); background: rgba(249,183,1,.08); }
.pagination .current { background: var(--orange); color: #1a0e00; border-color: var(--orange); }

/* МОДАЛКА */
.suggest-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.suggest-modal[hidden] { display: none; }
.suggest-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 1; }
.suggest-modal-card { position: relative; z-index: 2; width: min(620px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 32px 34px 34px; background: rgba(10,8,4,0.98); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 90px rgba(0,0,0,.85), 0 0 80px rgba(249,183,1,.18); animation: suggestIn .28s ease-out; margin: auto; }
@keyframes suggestIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.suggest-modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; background: rgba(20,16,8,.8); border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.suggest-modal-close:hover { color: var(--orange); border-color: var(--orange); background: rgba(249,183,1,.1); }
.suggest-modal-head { margin-bottom: 22px; padding-right: 40px; }
.suggest-modal-head h2 { font-family: "MaybeCondensed", "HassleCondensed", "Arial Narrow", Arial, sans-serif; font-style: italic; font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; margin-bottom: 8px; }
.suggest-modal-head h2 span { color: var(--orange); font-weight: 400; }
.suggest-modal-head p { color: rgba(255,255,255,.55); font-size: 14px; }

/* ФОРМЫ */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 90px 18px 30px; position: relative; overflow: hidden; }
.auth-card { position: relative; z-index: 2; width: min(520px, 100%); padding: 42px 42px 34px; border: 1px solid var(--line); border-radius: 34px; background: rgba(10,8,4,.82); box-shadow: 0 0 0 1px rgba(249,183,1,.04), 0 25px 90px rgba(0,0,0,.7), 0 0 55px rgba(249,183,1,.12); backdrop-filter: blur(18px); }
.auth-logo { width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 22px; background: rgba(249,183,1,.08); display: grid; place-items: center; border: 1px solid rgba(249,183,1,.3); box-shadow: 0 0 25px rgba(249,183,1,.15) inset; }
.auth-logo span { color: var(--orange); font-size: 42px; font-weight: 900; font-style: italic; font-family: "MaybeCondensed", "HassleCondensed", "Arial Narrow", Arial, sans-serif; text-shadow: 0 0 12px rgba(249,183,1,.6); line-height: 1; }
.auth-kicker { text-align: center; color: var(--orange); font-weight: 800; letter-spacing: 4px; font-size: 17px; margin-bottom: 18px; text-transform: uppercase; }
.auth-card h1, .auth-title { text-align: center; font-size: 42px; line-height: 1.05; margin: 0 0 14px; font-weight: 800; text-transform: uppercase; font-family: "MaybeCondensed", "HassleCondensed", "Arial Narrow", Arial, sans-serif; font-style: italic; }
.auth-subtitle, .auth-sub { text-align: center; color: #858a87; font-size: 17px; margin: 0 0 30px; }
.auth-form label { display: block; color: #858c87; font-weight: 800; letter-spacing: 1.5px; font-size: 14px; margin: 0 0 10px; text-transform: uppercase; }
.auth-form .field { margin-bottom: 17px; }
.auth-form input, .field input { width: 100%; height: 58px; border-radius: 15px; border: 1px solid rgba(249,183,1,.35); background: rgba(20,16,8,.8); color: #fff; padding: 0 18px; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; font-family: inherit; }
.auth-form input:focus, .field input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,183,1,.12); }
.auth-form button.btn-submit, .btn-submit { width: 100%; height: 62px; border: 0; border-radius: 18px; background: var(--orange); color: #1a0e00; font-weight: 900; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; box-shadow: 0 0 35px rgba(249,183,1,.28); margin-top: 12px; transition: background .2s, box-shadow .2s, transform .1s; font-family: inherit; }
.auth-form button.btn-submit:hover, .btn-submit:hover { background: var(--orange-hover); box-shadow: 0 0 45px rgba(249,183,1,.5); }
.btn-create { display: flex; align-items: center; justify-content: center; width: 100%; height: 62px; border: 1px solid rgba(249,183,1,.4); border-radius: 18px; background: rgba(20,15,4,.6); color: var(--orange); font-weight: 900; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; margin-top: 14px; transition: background .2s, border-color .2s, color .2s, box-shadow .2s; }
.btn-create:hover { background: rgba(249,183,1,.10); border-color: var(--orange); color: var(--orange-hover); box-shadow: 0 0 25px rgba(249,183,1,.25); }
.auth-back, .auth-login { display: flex; align-items: center; justify-content: center; text-align: center; color: #777d78; text-decoration: none; font-size: 15px; margin-top: 18px; transition: color .15s; }
.auth-login { color: var(--orange); font-weight: 800; }
.auth-login:hover { color: var(--orange-hover); }
.auth-back:hover { color: var(--orange); }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.form-label-soft { color: rgba(255,255,255,.35); font-weight: 600; text-transform: none; letter-spacing: 0; }
.form-input, .form-textarea { width: 100%; background: rgba(20,16,8,.8); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 14px 16px; font-size: 15px; outline: none; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.form-input:focus, .form-textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,183,1,.12); }
.form-input::placeholder, .form-textarea::placeholder { color: #59564f; }
.form-textarea { resize: vertical; min-height: 140px; }
.form-file { padding: 10px 12px; font-size: 14px; cursor: pointer; }
.form-hint { color: rgba(255,255,255,.4); font-size: 12px; margin-top: 0; }
.placement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.placement-option { display: block; cursor: pointer; position: relative; }
.placement-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.placement-inner { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; background: rgba(20,16,8,.6); border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, background .15s, box-shadow .15s; text-align: center; }
.placement-option:hover .placement-inner { border-color: rgba(249,183,1,.5); }
.placement-option input:checked + .placement-inner { background: rgba(249,183,1,.1); border-color: var(--orange); box-shadow: 0 0 25px rgba(249,183,1,.2); }
.placement-title { font-weight: 800; font-size: 13px; color: var(--text); text-transform: uppercase; }
.placement-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

/* ПРОФИЛЬ */
.profile-header { display: flex; align-items: center; gap: 24px; padding: 28px 30px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 22px; backdrop-filter: blur(14px); }
.avatar-wrap { position: relative; flex-shrink: 0; }
.avatar { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: rgba(249,183,1,.1); border: 2px solid var(--orange); color: var(--orange); font-size: 40px; font-weight: 900; font-family: "MaybeCondensed", "HassleCondensed", "Arial Narrow", Arial, sans-serif; font-style: italic; text-transform: uppercase; overflow: hidden; box-shadow: 0 0 30px rgba(249,183,1,.25); line-height: 1; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-upload-btn { position: absolute; bottom: -4px; right: -4px; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); border: 2px solid var(--bg); display: grid; place-items: center; cursor: pointer; color: #1a0e00; transition: background .2s, transform .15s; }
.avatar-upload-btn:hover { background: var(--orange-hover); transform: scale(1.08); }
.avatar-upload-btn svg { width: 16px; height: 16px; fill: currentColor; }
.profile-header-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.profile-header-info h1 { font-family: "MaybeCondensed", "HassleCondensed", "Arial Narrow", Arial, sans-serif; font-style: italic; font-weight: 800; font-size: 42px; line-height: 1; text-transform: uppercase; word-break: break-word; }
.profile-header-info h1 span { color: var(--orange); font-weight: 400; }
.profile-role { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(249,183,1,0.15); border: 1px solid rgba(249,183,1,0.55); color: var(--orange); align-self: flex-start; white-space: nowrap; }
.profile-role.role-owner { background: linear-gradient(90deg, #ff3b3b 0%, #ff8c1a 25%, #f9b701 50%, #ff8c1a 75%, #ff3b3b 100%); background-size: 300% 100%; border: 1px solid rgba(255,140,26,0.7); color: #1a0e00; box-shadow: 0 0 14px rgba(255,80,30,0.55), 0 0 30px rgba(249,183,1,0.35); animation: roleOwnerShimmer 3s linear infinite; position: relative; overflow: hidden; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat-card { display: flex; align-items: center; gap: 16px; padding: 22px 24px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 18px; backdrop-filter: blur(14px); transition: border-color .2s, transform .2s; }
.stat-card:hover { border-color: rgba(249,183,1,.5); transform: translateY(-2px); }
.stat-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(249,183,1,.1); color: var(--orange); flex-shrink: 0; }
.stat-icon svg { width: 26px; height: 26px; fill: currentColor; }
.stat-value { font-family: "MaybeCondensed", "HassleCondensed", "Arial Narrow", Arial, sans-serif; font-style: italic; font-weight: 800; font-size: 32px; line-height: 1; color: var(--orange); margin-bottom: 4px; }
.stat-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 22px; padding: 12px 28px; backdrop-filter: blur(14px); }
.edit-card { padding: 24px 28px; }
.edit-card-title { font-family: "MaybeCondensed", "HassleCondensed", "Arial Narrow", Arial, sans-serif; font-style: italic; font-weight: 800; font-size: 22px; text-transform: uppercase; margin-bottom: 18px; color: var(--text); display: flex; align-items: center; gap: 10px; }
.users-count { display: inline-flex; align-items: center; justify-content: center; padding: 4px 12px; background: var(--orange); color: #1a0e00; border-radius: 999px; font-size: 13px; font-weight: 800; font-style: normal; font-family: 'Inter', sans-serif; line-height: 1.4; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.row:last-child { border-bottom: none; }
.row .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; flex-shrink: 0; }
.row .v { color: var(--text); font-weight: 600; font-size: 15px; text-align: right; word-break: break-word; min-width: 0; display: inline-flex; align-items: center; gap: 8px; }
.edit-form { margin-bottom: 22px; }
.edit-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.edit-row .form-input { flex: 1; min-width: 200px; }
.edit-hint { flex: 1; min-width: 200px; color: rgba(255,255,255,.45); font-size: 13px; line-height: 1.5; }

/* КНОПКИ */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: 12px; font-weight: 900; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, box-shadow .2s, transform .15s, color .2s, border-color .2s; border: none; font-family: inherit; white-space: nowrap; }
.btn-primary { background: var(--orange); color: #1a0e00; box-shadow: 0 0 30px rgba(249,183,1,.2); }
.btn-primary:hover { background: var(--orange-hover); box-shadow: 0 0 40px rgba(249,183,1,.4); transform: translateY(-2px); }
.btn-outline { background: rgba(20,15,4,.6); border: 1px solid rgba(249,183,1,.4); color: var(--orange); }
.btn-outline:hover { background: rgba(249,183,1,.1); border-color: var(--orange); color: var(--orange-hover); box-shadow: 0 0 25px rgba(249,183,1,.25); }
.btn-danger { background: rgba(255,91,91,.12); border: 1px solid rgba(255,91,91,.4); color: #ff7b7b; }
.btn-danger:hover { background: rgba(255,91,91,.2); border-color: #ff7b7b; color: #ff9b9b; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn-sm { padding: 8px 16px; font-size: 11px; }

/* СООБЩЕНИЯ */
.alert { padding: 14px 18px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.alert-error { background: rgba(75,10,10,.35); border: 1px solid rgba(255,72,72,.35); color: #e8aaaa; }
.alert-success { background: rgba(249,183,1,.1); border: 1px solid rgba(249,183,1,.35); color: #ffd97a; }
.flash { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 14px; line-height: 1.5; }
.flash-success { background: rgba(249,183,1,.1); border: 1px solid rgba(249,183,1,.35); color: #ffd97a; }
.flash-error { background: rgba(75,10,10,.35); border: 1px solid rgba(255,72,72,.35); color: #e8aaaa; }

/* ПОДВАЛ */
.footer { border-top: 1px solid var(--line-soft); background: rgba(3,5,4,.6); padding: 34px 0; margin-top: auto; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-top .brand-name { font-size: 18px; }

/* ADMIN */
.admin-layout { position: relative; z-index: 1; display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.admin-sidebar { background: rgba(5,5,7,.88); border-right: 1px solid var(--line-soft); backdrop-filter: blur(14px); padding: 22px 16px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-main { padding: 32px 40px 60px; min-width: 0; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.admin-top h1 { font-family: "MaybeCondensed", "HassleCondensed", "Arial Narrow", Arial, sans-serif; font-style: italic; font-weight: 800; font-size: 38px; line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); padding: 6px 10px; }
.sidebar-brand .mark { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #ff8c1a 0%, #f9b701 50%, #ffd400 100%); overflow: hidden; animation: brandPulse 3.2s ease-in-out infinite; color: #1a0e00; font-size: 22px; font-weight: 900; font-style: italic; font-family: "MaybeCondensed", "HassleCondensed", "Arial Narrow", Arial, sans-serif; line-height: 1; text-shadow: 0 1px 0 rgba(255,255,255,.7), 0 2px 0 rgba(255,200,60,.9); }
.sidebar-brand .name { font-family: "MaybeCondensed", "HassleCondensed", "Arial Narrow", Arial, sans-serif; font-style: italic; font-weight: 800; font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; }
.sidebar-section-title { font-size: 10px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,.35); padding: 0 10px; margin-top: 4px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; color: rgba(255,255,255,.7); text-decoration: none; font-size: 14px; font-weight: 600; transition: background .15s, color .15s, border-color .15s; border: 1px solid transparent; position: relative; }
.sidebar-nav a:hover { background: rgba(249,183,1,.06); color: var(--orange); border-color: rgba(249,183,1,.25); }
.sidebar-nav a.active { background: rgba(249,183,1,.12); color: var(--orange); border-color: rgba(249,183,1,.5); box-shadow: 0 0 20px rgba(249,183,1,.15); }
.sidebar-badge { margin-left: auto; padding: 2px 10px; background: #ff3b3b; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1.4; box-shadow: 0 0 12px rgba(255,59,59,.6); animation: sidebarBadgePulse 2s ease-in-out infinite; }
@keyframes sidebarBadgePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.sidebar-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; }
.sidebar-footer a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; border-radius: 8px; transition: background .15s, color .15s; }
.sidebar-footer a:hover { color: var(--orange); background: rgba(249,183,1,.05); }
.sidebar-footer a.danger:hover { color: #ff7b7b; background: rgba(255,91,91,.08); }
.sidebar-footer svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.sidebar-toggle { display: none; position: fixed; bottom: 20px; right: 20px; z-index: 100; width: 54px; height: 54px; border-radius: 50%; background: var(--orange); color: #1a0e00; border: none; cursor: pointer; box-shadow: 0 8px 25px rgba(249,183,1,.4); place-items: center; }
.sidebar-toggle svg { width: 22px; height: 22px; fill: currentColor; }

.panel { background: var(--card-bg); border: 1px solid var(--line); border-radius: 18px; backdrop-filter: blur(14px); padding: 22px 24px; margin-bottom: 20px; }
.panel-title { font-family: "MaybeCondensed", "HassleCondensed", "Arial Narrow", Arial, sans-serif; font-style: italic; font-weight: 800; font-size: 24px; text-transform: uppercase; margin-bottom: 18px; color: var(--text); display: flex; align-items: center; gap: 10px; }
.panel-empty { color: var(--muted); font-style: italic; text-align: center; padding: 30px; }
.panel-table { overflow: hidden; border-radius: 14px; border: 1px solid var(--line-soft); }
.panel-counter { display: inline-flex; align-items: center; justify-content: center; padding: 4px 12px; background: var(--orange); color: #1a0e00; border-radius: 999px; font-size: 14px; font-weight: 800; font-style: normal; font-family: 'Inter', sans-serif; }
.users-table, .logs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.users-table thead, .logs-table thead { background: rgba(249,183,1,.06); border-bottom: 1px solid var(--line); }
.users-table th, .logs-table th { text-align: left; padding: 14px 18px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.users-table th.text-right, .logs-table th.text-right { text-align: right; }
.users-table td, .logs-table td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.logs-table td { vertical-align: top; }
.users-table tbody tr:last-child td, .logs-table tbody tr:last-child td { border-bottom: none; }
.users-table tbody tr { transition: background .2s; }
.users-table tbody tr:hover { background: rgba(249,183,1,.04); }
.logs-table tbody tr:hover { background: rgba(249,183,1,.04); }
.users-table td.cell-role-line { position: relative; padding-left: 22px; }
.users-table td.cell-role-line::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--rc, transparent); border-radius: 0 3px 3px 0; opacity: .65; transition: opacity .2s; }
.users-table tbody tr:hover td.cell-role-line::before { opacity: 1; }
.table-empty { text-align: center; padding: 40px; color: var(--muted); font-style: italic; }
.user-cell { display: flex; align-items: center; gap: 12px; }
.user-avatar-sm { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(249,183,1,.1); border: 1px solid var(--line); color: var(--orange); font-weight: 900; font-size: 16px; text-transform: uppercase; overflow: hidden; flex-shrink: 0; line-height: 1; }
.user-avatar-sm img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-cell-info { min-width: 0; }
.user-cell-name { font-weight: 700; }
.user-cell-id { color: rgba(255,255,255,.4); font-size: 11px; font-weight: 600; margin-top: 2px; }
.cell-muted { color: rgba(255,255,255,.55); }
.cell-self { color: var(--muted); font-style: italic; font-size: 13px; }
.actions-row { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.inline-form { display: flex; gap: 6px; }
.role-select { background: rgba(20,16,8,.9); border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 6px 10px; font-size: 13px; outline: none; cursor: pointer; font-family: inherit; transition: border-color .15s, color .15s; max-width: 180px; }
.role-select-user      { border-color: rgba(249,183,1,.55);  color: #f9b701; }
.role-select-support   { border-color: rgba(0,212,160,.55);  color: #00d4a0; }
.role-select-media     { border-color: rgba(36,155,215,.55); color: #6bc4e8; }
.role-select-developer { border-color: rgba(117,87,230,.55); color: #b8a8ff; }
.role-select-owner     { border-color: rgba(255,140,26,.6);  color: #ff9b3b; }
.del-btn { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,91,91,.08); border: 1px solid rgba(255,91,91,.4); color: #ff7b7b; cursor: pointer; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.del-btn:hover { background: rgba(255,91,91,.2); border-color: #ff7b7b; }
.del-btn svg { width: 14px; height: 14px; fill: currentColor; }
.filters-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters-input, .filters-select { background: rgba(20,16,8,.8); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 12px 14px; font-size: 14px; outline: none; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.filters-input { flex: 1; min-width: 200px; }
.filters-select { min-width: 160px; cursor: pointer; }
.filters-input:focus, .filters-select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,183,1,.12); }
.filters-input::placeholder { color: #59564f; }
.filters-select option { background: #0a0804; }
.role-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.role-card { padding: 18px 22px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 16px; position: relative; overflow: hidden; transition: border-color .2s, transform .2s; }
.role-card:hover { border-color: rgba(249,183,1,.55); transform: translateY(-2px); }
.role-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--rc, var(--orange)); opacity: .85; }
.role-card-value { font-family: "MaybeCondensed", "HassleCondensed", "Arial Narrow", Arial, sans-serif; font-style: italic; font-weight: 800; font-size: 32px; line-height: 1; color: var(--rc, var(--orange)); margin-bottom: 4px; }
.role-card-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.role-card.role-card-owner { background: linear-gradient(135deg, rgba(255,59,59,.10) 0%, rgba(255,140,26,.10) 50%, rgba(249,183,1,.14) 100%); border-color: rgba(255,140,26,.5); box-shadow: 0 0 30px rgba(255,80,30,.15); }
.role-card.role-card-owner::before { background: linear-gradient(180deg, #ff3b3b, #ff8c1a, #f9b701); width: 4px; opacity: 1; }
.news-form { display: flex; flex-direction: column; gap: 16px; }
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: rgba(20,16,8,.5); border: 1px solid var(--line-soft); border-radius: 12px; flex-wrap: wrap; }
.news-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.news-thumb-placeholder { display: grid; place-items: center; background: rgba(249,183,1,.08); border: 1px solid var(--line); color: var(--orange); font-family: "MaybeCondensed", "HassleCondensed", Arial Narrow, Arial, sans-serif; font-style: italic; font-weight: 800; font-size: 24px; line-height: 1; }
.news-info { flex: 1; min-width: 180px; }
.news-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }