/* ============================================================
   ADMIN — ПЕРЕМЕННЫЕ
   ============================================================ */
:root {
    --bg:        #0a0a0a;
    --panel:     #141414;
    --panel-2:   #1a1a1a;
    --text:      #ffffff;
    --muted:     #8a8a8a;
    --line:      #2a2a2a;
    --accent:    #ffffff;
    --accent-2:  #25d366;
    --danger:    #ef4444;
    --warn:      #f59e0b;
    --info:      #60a5fa;
    --radius:    12px;
    --sidebar-w: 240px;
    --shadow:    0 20px 40px -20px rgba(0,0,0,.9);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ============================================================
   ПОКАЗ / СКРЫТИЕ ЭКРАНОВ
   ============================================================ */
body.is-loading .login,
body.is-loading .app { display: none !important; }

body.is-guest .app   { display: none !important; }
body.is-guest .login { display: flex !important; }

body.is-auth .login  { display: none !important; }
body.is-auth .app    { display: flex !important; }

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(255,255,255,.4); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn--block { width: 100%; }
.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}
.btn--ghost:hover { background: var(--panel-2); border-color: #555; }

.link-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}
.link-btn:hover { color: var(--text); }

/* ============================================================
   ЛОГИН
   ============================================================ */
.login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 20% 10%, rgba(255,255,255,.05) 0%, transparent 55%),
        radial-gradient(circle at 85% 90%, rgba(255,255,255,.04) 0%, transparent 55%),
        #000;
}
.login__box {
    width: 100%;
    max-width: 380px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 36px 32px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.login__brand { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.login__title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.login__sub { font-size: 13px; color: var(--muted); }
.login__label { font-size: 13px; font-weight: 600; }
.login__input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.login__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}
.login__error { font-size: 13px; color: var(--danger); }

/* ============================================================
   LAYOUT
   ============================================================ */
.app { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    background: #0d0d0d;
    border-right: 1px solid var(--line);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.sidebar__brand {
    display: flex;
    align-items: center;
    padding: 22px 20px;
    border-bottom: 1px solid var(--line);
}
.sidebar__name { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.sidebar__nav {
    flex: 1;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}
.sidebar__footer { padding: 12px; border-top: 1px solid var(--line); }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 14px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,.65);
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    text-align: left;
    transition: background .2s, color .2s;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.is-active { background: #ffffff; color: #000; }
.nav-item--danger:hover { background: rgba(239,68,68,.2); color: #fff; }
.nav-item__icon { width: 18px; text-align: center; font-size: 15px; }
.nav-item__badge {
    margin-left: auto;
    background: var(--accent-2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 100px;
    min-width: 20px;
    text-align: center;
}
.nav-item.is-active .nav-item__badge { background: #111; color: #fff; }

.main {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 28px;
    background: #0d0d0d;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 30;
}
.topbar__burger {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: #fff;
    padding: 4px 8px;
}
.topbar__title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.topbar__date { font-size: 13px; color: var(--muted); }
.topbar__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.content { padding: 28px; flex: 1; }

/* ============================================================
   VIEWS
   ============================================================ */
.view { display: none; }
.view.is-active { display: block; animation: viewIn .35s cubic-bezier(.22,1,.36,1); }
@keyframes viewIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 22px 22px 20px;
    border: 1px solid var(--line);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #555;
}
.stat-card__label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.stat-card__value { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.stat-card__value--accent { color: var(--accent-2); }
.stat-card__hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ============================================================
   PANELS / GRID
   ============================================================ */
.grid-2 {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.panel {
    background: var(--panel);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
    margin-bottom: 16px;
}
.panel:last-child { margin-bottom: 0; }
.panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}
.panel__title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.panel__hint { font-size: 12px; color: var(--muted); }
.panel__body { padding: 22px; }
.panel__body--flush { padding: 0; }

.empty {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    padding: 32px 16px;
}

/* ============================================================
   RECENT ORDERS
   ============================================================ */
.recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.recent-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-item:first-child { padding-top: 0; }
.recent-item__dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.recent-item__dot--new  { background: var(--accent-2); }
.recent-item__dot--work { background: var(--warn); }
.recent-item__dot--done { background: var(--info); }
.recent-item__main { flex: 1; min-width: 0; }
.recent-item__name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recent-item__meta {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recent-item__time { font-size: 12px; color: var(--muted); flex: 0 0 auto; }

/* ============================================================
   STATUS CHART
   ============================================================ */
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-row__label { font-size: 13px; width: 90px; flex: 0 0 auto; color: #d0d0d0; }
.bar-row__track {
    flex: 1;
    height: 8px;
    background: #1f1f1f;
    border-radius: 100px;
    overflow: hidden;
}
.bar-row__fill {
    height: 100%;
    border-radius: 100px;
    transition: width .6s cubic-bezier(.22,1,.36,1);
}
.bar-row__fill--new  { background: var(--accent-2); }
.bar-row__fill--work { background: var(--warn); }
.bar-row__fill--done { background: var(--info); }
.bar-row__value { font-size: 13px; font-weight: 600; width: 30px; text-align: right; flex: 0 0 auto; }

/* ============================================================
   TOOLBAR
   ============================================================ */
.toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.toolbar__filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    transition: all .2s;
}
.chip:hover { border-color: #555; color: var(--text); }
.chip.is-active { background: #fff; color: #000; border-color: #fff; }
.toolbar__search {
    margin-left: auto;
    padding: 9px 16px;
    font-size: 14px;
    color: #fff;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 100px;
    outline: none;
    min-width: 240px;
    transition: border-color .2s, box-shadow .2s;
}
.toolbar__search:focus {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.table td {
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    color: #d0d0d0;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .15s; cursor: pointer; }
.table tbody tr:hover { background: #1a1a1a; }

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    white-space: nowrap;
}
.badge--new  { background: rgba(37,211,102,.15); color: #4ade80; }
.badge--work { background: rgba(245,158,11,.15); color: #fbbf24; }
.badge--done { background: rgba(96,165,250,.15); color: #93c5fd; }

.type-tag {
    font-size: 12px;
    color: var(--muted);
    background: #1f1f1f;
    padding: 3px 9px;
    border-radius: 6px;
    white-space: nowrap;
}

.price-cell {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: #fff;
}
.price-cell--empty { color: var(--muted); font-weight: 400; }

/* ============================================================
   CLIENTS
   ============================================================ */
.clients-list { padding: 8px 22px; }
.client-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: background .15s;
    border-radius: 8px;
}
.client-row:hover { background: #1a1a1a; }
.client-row:last-child { border-bottom: none; }
.client-row__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex: 0 0 auto;
}
.client-row__main { flex: 1; min-width: 0; }
.client-row__name { font-size: 14px; font-weight: 600; }
.client-row__meta { font-size: 12px; color: var(--muted); }
.client-row__sum {
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #4ade80;
    flex: 0 0 auto;
}

/* ============================================================
   MONEY BLOCK
   ============================================================ */
.money-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.money-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px 18px 16px;
    background: #1a1a1a;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.money-card:hover {
    border-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -18px rgba(0,0,0,.9);
}
.money-card__label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
}
.money-card__value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1;
    color: var(--text);
}
.money-card__hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.money-card--total { background: #ffffff; border-color: #ffffff; }
.money-card--total .money-card__label { color: rgba(0,0,0,.55); }
.money-card--total .money-card__value { color: #000; }
.money-card--total .money-card__hint  { color: rgba(0,0,0,.5); }
.money-card--work .money-card__value { color: #fbbf24; }
.money-card--new  .money-card__value { color: #4ade80; }

/* ============================================================
   FORM
   ============================================================ */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.form__row { display: flex; flex-direction: column; gap: 6px; }
.form__row label { font-size: 13px; font-weight: 600; color: #d0d0d0; }
.form__row input,
.form__row select,
.form__row textarea {
    padding: 11px 14px;
    font-size: 14px;
    color: #fff;
    background: #0a0a0a;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.form__row input:focus,
.form__row select:focus,
.form__row textarea:focus {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}

.form__subtitle {
    font-size: 15px;
    font-weight: 600;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: #fff;
}
.form__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal[hidden] { display: none; }
.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(3px);
    animation: fadeIn .25s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal__box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.9);
    animation: modalIn .3s cubic-bezier(.22,1,.36,1);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
}
.modal__title { font-size: 17px; font-weight: 600; }
.modal__close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    transition: background .2s, color .2s;
}
.modal__close:hover { background: #1f1f1f; color: var(--text); }
.modal__body {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.modal__price {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.modal__price-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    font-weight: 600;
}
.modal__price-input {
    padding: 11px 14px;
    font-size: 15px;
    color: #fff;
    background: #0a0a0a;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.modal__price-input:focus {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}
.modal__foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 24px;
    border-top: 1px solid var(--line);
}
.field { display: flex; flex-direction: column; gap: 4px; }
.field__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    font-weight: 600;
}
.field__value { font-size: 15px; color: #d0d0d0; }

/* ============================================================
   CLIENT CARD IN MODAL
   ============================================================ */
.client-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 14px;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid var(--line);
}
.client-summary__item { display: flex; flex-direction: column; gap: 2px; }
.client-summary__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    font-weight: 600;
}
.client-summary__value {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #fff;
}

.client-orders-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    margin-top: 8px;
}
.client-orders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}
.client-order-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #1a1a1a;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .2s, transform .2s;
}
.client-order-mini:hover { border-color: #fff; transform: translateX(2px); }
.client-order-mini__left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.client-order-mini__type { font-weight: 600; color: #fff; }
.client-order-mini__date { font-size: 11px; color: var(--muted); }
.client-order-mini__right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.client-order-mini__price {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #fff;
}
.client-order-mini__price--empty { color: var(--muted); font-weight: 400; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 20px);
    background: #ffffff;
    color: #000;
    padding: 13px 22px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s;
    z-index: 500;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1100px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .money-grid { grid-template-columns: repeat(2, 1fr); }
    .form__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.is-open { transform: translateX(0); }
    .main { margin-left: 0; }
    .topbar__burger { display: block; }
    .topbar { padding: 14px 18px; }
    .topbar__date { display: none; }
    .content { padding: 18px; }
    .toolbar__search { margin-left: 0; width: 100%; }
}

@media (max-width: 560px) {
    .stats { grid-template-columns: 1fr; }
    .panel__body { padding: 16px; }
    .table th, .table td { padding: 12px 14px; }
    .login__box { padding: 28px 22px; }
    .money-grid { grid-template-columns: 1fr; }
    .client-summary { grid-template-columns: 1fr; }
    .form__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ============================================================
   ДЕМО — АДМИНКА
   ============================================================ */
.demos-admin-list {
    padding: 8px 22px;
    display: flex;
    flex-direction: column;
}

.demo-admin-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.demo-admin-row:last-child { border-bottom: none; }

.demo-admin-row__thumb {
    width: 80px;
    height: 50px;
    border-radius: 8px;
    background: #1f1f1f;
    overflow: hidden;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #666;
    border: 1px solid var(--line);
    font-family: monospace;
    padding: 0 6px;
    text-align: center;
    word-break: break-all;
}
.demo-admin-row__main { flex: 1; min-width: 0; }
.demo-admin-row__title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.demo-admin-row__meta {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.demo-admin-row__actions {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
}
.demo-admin-row__btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, border-color .2s;
}
.demo-admin-row__btn:hover { background: #1f1f1f; color: #fff; border-color: #555; }
.demo-admin-row__btn--danger:hover { background: rgba(239,68,68,.15); color: #ef4444; border-color: #ef4444; }

/* Модалка демо */
.demo-modal .modal__box { max-width: 560px; }
.demo-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.demo-form__row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.demo-form__row label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    font-weight: 600;
}
.demo-form__row input,
.demo-form__row select {
    padding: 11px 14px;
    font-size: 14px;
    color: #fff;
    background: #0a0a0a;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.demo-form__row input:focus,
.demo-form__row select:focus {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}
.demo-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 560px) {
    .demo-form__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ОТЗЫВЫ (АДМИНКА)
   ============================================================ */
.reviews-admin-list {
    padding: 8px 22px;
    display: flex;
    flex-direction: column;
}
.review-admin-row {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.review-admin-row:last-child { border-bottom: none; }
.review-admin-row__main { flex: 1; min-width: 0; }
.review-admin-row__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.review-admin-row__name { font-size: 14px; font-weight: 600; color: #fff; }
.review-admin-row__date { font-size: 12px; color: var(--muted); }
.review-admin-row__stars { color: #fbbf24; font-size: 13px; letter-spacing: 1px; }
.review-admin-row__text {
    font-size: 14px;
    color: #b8b8b8;
    line-height: 1.55;
    margin-bottom: 8px;
}
.review-admin-row__actions {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
    align-items: flex-start;
}
.review-admin-row__btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}
.review-admin-row__btn:hover { background: #1f1f1f; color: #fff; border-color: #555; }
.review-admin-row__btn--approve:hover { border-color: #25d366; color: #4ade80; }
.review-admin-row__btn--reject:hover { border-color: #ef4444; color: #ef4444; }
.review-admin-row__btn--danger:hover { border-color: #ef4444; color: #ef4444; }

.review-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.review-badge--approved { background: rgba(37,211,102,.15); color: #4ade80; }
.review-badge--pending  { background: rgba(245,158,11,.15); color: #fbbf24; }
.review-badge--rejected { background: rgba(239,68,68,.15); color: #ef4444; }