﻿/* Freelance CMS Admin — light theme + emerald accent */
:root {
    --adm-accent: #10b981;
    --adm-accent-dark: #059669;
    --adm-accent-light: #d1fae5;
    --adm-gold: var(--adm-accent);
    --adm-gold-dark: var(--adm-accent-dark);
    --adm-navy: #0f172a;
    --adm-sidebar: #ffffff;
    --adm-sidebar-border: #e2e8f0;
    --adm-bg: #f1f5f9;
    --adm-card: #ffffff;
    --adm-border: #e2e8f0;
    --adm-text: #1e293b;
    --adm-muted: #64748b;
    --adm-green: #16a34a;
    --adm-red: #dc2626;
    --adm-orange: #ea580c;
    --adm-shadow: 0 1px 3px rgba(15, 23, 42, .06);
    --adm-shadow-lg: 0 8px 24px rgba(15, 23, 42, .08);
}

@keyframes adm-fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes adm-shine { 0% { left: -100%; } 100% { left: 100%; } }
@keyframes adm-glow-pulse { 0%, 100% { box-shadow: 0 0 0 rgba(16, 185, 129, 0); } 50% { box-shadow: 0 0 20px rgba(16, 185, 129, .2); } }
@keyframes adm-login-bg { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

body.adm-body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    background: var(--adm-bg);
    color: var(--adm-text);
    min-height: 100vh;
}
body.adm-body.adm-loaded .adm-content { animation: adm-fade-in .5s ease; }
.adm-animate-in { opacity: 0; animation: adm-fade-in .55s cubic-bezier(.22, 1, .36, 1) var(--adm-delay, 0s) forwards; }
.adm-hover-glow { animation: adm-glow-pulse 1.2s ease; }
.adm-btn-ripple-wrap { position: relative; overflow: hidden; }
.adm-ripple {
    position: absolute; border-radius: 50%; background: rgba(255,255,255,.45);
    transform: scale(0); animation: adm-ripple .6s ease-out; pointer-events: none;
}
@keyframes adm-ripple { to { transform: scale(2.5); opacity: 0; } }

.adm-sidebar-brand .icon { transition: transform .3s, box-shadow .3s; }
.adm-sidebar-brand:hover .icon { transform: scale(1.06) rotate(-3deg); box-shadow: 0 6px 20px rgba(16, 185, 129, .35); }
.adm-nav a { transition: transform .2s, background .2s, color .2s; }
.adm-nav a:hover { transform: translateX(3px); }
.adm-nav a.active { box-shadow: inset 3px 0 0 var(--adm-accent-dark); }
.adm-card { transition: transform .25s, box-shadow .25s, border-color .25s; }
.adm-card:hover { box-shadow: var(--adm-shadow-lg); }
.adm-stat { transition: transform .25s; }
.adm-stat:hover { transform: translateY(-3px); }
.adm-btn-primary { position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.adm-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16, 185, 129, .35); }
.adm-btn-primary:active { transform: translateY(0); }
.adm-ai-fill-card, .adm-seo-ai-card, .adm-invoice-create-card { transition: border-color .3s, box-shadow .3s; }
.adm-ai-fill-card:hover, .adm-seo-ai-card:hover { box-shadow: 0 8px 28px rgba(16, 185, 129, .12); }

.adm-login-wrap {
    min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px;
    background: linear-gradient(135deg, #ecfdf5, #eff6ff, #f0fdf4, #dbeafe);
    background-size: 300% 300%;
    animation: adm-login-bg 12s ease infinite;
}
.adm-login-lang { width: 100%; max-width: 400px; display: flex; justify-content: flex-end; }
.adm-login-box {
    transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s;
    animation: adm-fade-in .7s ease;
}
.adm-login-box:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(15, 23, 42, .12); }
.adm-demo-hint { animation: adm-glow-pulse 3s ease-in-out infinite; border-radius: 8px; }
.adm-demo-disclaimer { animation: none; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
    .adm-animate-in, .adm-login-box, .adm-login-wrap { animation: none; opacity: 1; }
    .adm-nav a:hover, .adm-card:hover, .adm-stat:hover { transform: none; }
}

.adm-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.adm-sidebar {
    background: var(--adm-sidebar);
    color: var(--adm-text);
    padding: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--adm-sidebar-border);
    box-shadow: var(--adm-shadow);
}

.adm-sidebar-brand {
    padding: 20px 18px;
    border-bottom: 1px solid var(--adm-border);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--adm-text);
}
.adm-sidebar-brand:hover { color: var(--adm-text); opacity: .9; }
.adm-sidebar-brand .icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--adm-accent), var(--adm-accent-dark));
    color: #fff;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px;
}
.adm-sidebar-brand span { font-weight: 700; font-size: 1rem; }
.adm-sidebar-brand small { display: block; font-size: 10px; color: var(--adm-muted); font-weight: 400; }

.adm-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.adm-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px;
    color: var(--adm-muted);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.adm-nav a:hover { background: var(--adm-accent-light); color: var(--adm-accent-dark); }
.adm-nav a.active { background: var(--adm-accent); color: #fff; }
.adm-nav a i { width: 18px; text-align: center; font-size: 15px; flex-shrink: 0; }

.adm-nav-group { margin-bottom: 4px; border-radius: 8px; }
.adm-nav-group.is-active > .adm-nav-group-toggle {
    color: var(--adm-accent-dark);
    background: var(--adm-accent-light);
}
.adm-nav-group-toggle {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    color: var(--adm-muted);
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    user-select: none;
    transition: background .15s, color .15s;
}
.adm-nav-group-toggle::-webkit-details-marker { display: none; }
.adm-nav-group-toggle:hover { background: var(--adm-accent-light); color: var(--adm-accent-dark); }
.adm-nav-group-label { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.adm-nav-group-label i { width: 18px; text-align: center; font-size: 15px; }
.adm-nav-group-chevron { font-size: 10px; opacity: .65; transition: transform .2s ease; flex-shrink: 0; }
.adm-nav-group[open] .adm-nav-group-chevron { transform: rotate(180deg); }
.adm-nav-sub { padding: 2px 0 6px 4px; }
.adm-nav-sub a {
    padding: 9px 12px 9px 38px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 2px;
    min-width: 0;
}
.adm-nav-sub a i { font-size: 12px; width: 16px; }
.adm-nav-sub a span {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.adm-nav-badge {
    margin-left: auto;
    background: var(--adm-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    flex-shrink: 0;
}
.adm-nav-group.is-active .adm-nav-sub a.active {
    box-shadow: inset 3px 0 0 var(--adm-accent-dark);
}

.adm-sidebar-foot {
    padding: 14px;
    border-top: 1px solid var(--adm-border);
    font-size: 12px;
}
.adm-topbar-start { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.adm-topbar-start h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-lang-dd { position: relative; flex-shrink: 0; z-index: 140; }
.adm-lang-btn {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 0 12px;
    border: 1px solid var(--adm-border); border-radius: 8px;
    background: #fff; cursor: pointer; font: inherit;
    font-weight: 600; font-size: 13px; color: var(--adm-navy);
}
.adm-lang-btn[aria-expanded="true"] {
    border-color: var(--adm-accent); background: var(--adm-accent-light);
}
.adm-lang-flag { font-size: 1rem; line-height: 1; }
.adm-lang-name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-lang-chev { font-size: 10px; color: var(--adm-muted); transition: transform .15s; }
.adm-lang-btn[aria-expanded="true"] .adm-lang-chev { transform: rotate(180deg); }
.adm-lang-menu {
    position: absolute; top: calc(100% + 6px); right: 0; min-width: 11.5rem;
    list-style: none; margin: 0; padding: 6px; z-index: 120;
    background: #fff; border: 1px solid var(--adm-border);
    border-radius: 10px; box-shadow: var(--adm-shadow);
}
.adm-lang-menu[hidden] { display: none !important; }
.adm-lang-menu a {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 10px; border-radius: 7px;
    color: var(--adm-navy); text-decoration: none; font-weight: 600; font-size: 13px;
}
.adm-lang-menu a:hover, .adm-lang-menu a.is-active {
    background: var(--adm-accent-light); color: var(--adm-accent-dark);
}
.adm-logout-link { color: var(--adm-muted); font-size: 12px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.adm-logout-link:hover { color: var(--adm-red); }

.adm-main { display: flex; flex-direction: column; min-width: 0; }

.adm-topbar {
    background: var(--adm-card);
    border-bottom: 1px solid var(--adm-border);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: var(--adm-shadow);
    overflow: visible;
}
.adm-topbar h1 { margin: 0; font-size: 1.25rem; font-weight: 700; }
.adm-topbar-actions { display: flex; align-items: center; gap: 10px; }
.adm-menu-toggle,
.adm-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--adm-border);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    touch-action: manipulation;
    flex-shrink: 0;
    font: inherit;
    color: var(--adm-navy);
}

.adm-content { padding: 24px; flex: 1; }

.adm-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 6px;
    font-weight: 600; font-size: 13px;
    border: none; cursor: pointer; text-decoration: none;
    transition: background .15s;
}
.adm-btn-primary { background: var(--adm-accent); color: #fff; }
.adm-btn-primary:hover { background: var(--adm-accent-dark); color: #fff; }
.adm-btn-outline {
    background: #fff; color: var(--adm-navy);
    border: 1px solid var(--adm-border);
}
.adm-btn-outline:hover { border-color: var(--adm-gold); color: var(--adm-gold-dark); }
.adm-btn-sm { padding: 5px 10px; font-size: 12px; }

.adm-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.adm-stat {
    background: var(--adm-card);
    border: 1px solid var(--adm-border);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.adm-stat-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.adm-stat-icon.gold { background: var(--adm-accent-light); color: var(--adm-accent-dark); }
.adm-stat-icon.green { background: #dcfce7; color: var(--adm-green); }
.adm-stat-icon.blue { background: #e0e7ff; color: #4338ca; }
.adm-stat-icon.orange { background: #ffedd5; color: var(--adm-orange); }
.adm-stat-val { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.adm-stat-label { font-size: 12px; color: var(--adm-muted); margin-top: 2px; }

.adm-card {
    background: var(--adm-card);
    border: 1px solid var(--adm-border);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}
.adm-card-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--adm-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.adm-card-head h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.adm-card-body { padding: 0; }
.adm-card-body.padded { padding: 20px; }

.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th, .adm-table td {
    padding: 12px 16px; text-align: left;
    border-bottom: 1px solid var(--adm-border);
}
.adm-table th { background: #f8fafc; font-weight: 600; color: var(--adm-muted); font-size: 11px; text-transform: uppercase; }
.adm-table tr:hover td { background: #fafbfc; }
.adm-thumb { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--adm-border); }

.adm-badge {
    display: inline-block; padding: 3px 8px; border-radius: 999px;
    font-size: 11px; font-weight: 600;
}
.adm-badge-active, .adm-badge-confirmed { background: #dcfce7; color: var(--adm-green); }
.adm-badge-hidden { background: #f1f5f9; color: var(--adm-muted); }
.adm-badge-pending, .adm-badge-outbid { background: #fef3c7; color: #b45309; }
.adm-badge-won { background: var(--adm-accent-light); color: var(--adm-accent-dark); }
.adm-badge-cancelled { background: #fee2e2; color: var(--adm-red); }

.adm-alert {
    padding: 12px 16px; border-radius: 8px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px; font-size: 13px;
}
.adm-alert-info { background: var(--adm-accent-light); border: 1px solid rgba(16,185,129,.35); color: #047857; }
.adm-alert-success { background: #dcfce7; border: 1px solid #86efac; color: var(--adm-green); }
.adm-alert-error { background: #fee2e2; border: 1px solid #fca5a5; color: var(--adm-red); }

.adm-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.adm-field label { display: block; font-size: 12px; font-weight: 600; color: var(--adm-muted); margin-bottom: 6px; }
.adm-field input, .adm-field select, .adm-field textarea {
    width: 100%; padding: 9px 12px; border: 1px solid var(--adm-border);
    border-radius: 6px; font-size: 14px;
}
.adm-field input:focus, .adm-field select:focus, .adm-field textarea:focus { outline: none; border-color: var(--adm-accent); box-shadow: 0 0 0 3px rgba(16,185,129,.15); }

/* .adm-login-wrap — see animated styles above */
.adm-login-box {
    width: 100%; max-width: 400px; background: #fff; border-radius: 12px;
    padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.adm-login-box .logo { text-align: center; margin-bottom: 24px; }
.adm-login-box .logo .icon {
    width: 56px; height: 56px; margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--adm-accent), var(--adm-accent-dark));
    color: #fff; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px;
}
.adm-login-box h1 { margin: 0 0 4px; font-size: 1.35rem; }
.adm-login-box .sub { margin: 0; color: var(--adm-muted); font-size: 13px; }
.adm-demo-hint {
    background: var(--adm-accent-light); border: 1px solid rgba(16,185,129,.3);
    padding: 10px 12px; border-radius: 8px; font-size: 12px; color: #047857; margin-bottom: 16px;
}
.adm-login-error {
    background: #fee2e2; color: var(--adm-red); padding: 10px 12px;
    border-radius: 6px; font-size: 13px; margin-bottom: 12px;
}

.adm-sidebar-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 40;
}
.adm-sidebar-overlay.is-open { display: block; }

/* Dashboard */
.adm-dash-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
@media (min-width: 900px) {
    .adm-dash-grid { grid-template-columns: 1fr 1fr; }
}

.adm-bar-chart { display: flex; flex-direction: column; gap: 12px; }
.adm-bar-row {
    display: grid;
    grid-template-columns: 100px 1fr 36px;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}
.adm-bar-label {
    color: var(--adm-muted);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.adm-bar-track {
    height: 10px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}
.adm-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--adm-gold), var(--adm-gold-dark));
    border-radius: 999px;
    min-width: 4px;
    transition: width .4s ease;
}
.adm-bar-val { font-weight: 700; text-align: right; color: var(--adm-text); }

.adm-ending-list { display: flex; flex-direction: column; gap: 8px; }
.adm-ending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--adm-border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, background .15s;
}
.adm-ending-item:hover {
    border-color: var(--adm-accent);
    background: rgba(16,185,129,.04);
    color: inherit;
}
.adm-ending-item img {
    width: 48px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--adm-border);
    flex-shrink: 0;
}
.adm-ending-item strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}
.adm-ending-item span { font-size: 11px; color: var(--adm-muted); }

.adm-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.adm-quick-actions .adm-btn { min-height: 40px; }

.adm-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--adm-border);
}
.adm-filter-bar a {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: var(--adm-muted);
    border: 1px solid var(--adm-border);
    background: #fff;
    transition: all .15s;
}
.adm-filter-bar a:hover { border-color: var(--adm-gold); color: var(--adm-gold-dark); }
.adm-filter-bar a.active {
    background: var(--adm-accent);
    border-color: var(--adm-accent);
    color: #fff;
}

.adm-field-full { grid-column: 1 / -1; }
.adm-field-check label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--adm-text);
    cursor: pointer;
}
.adm-field-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--adm-gold);
}

/* Responsive data tables */
@media (max-width: 700px) {
    .adm-table--cards thead { display: none; }
    .adm-table--cards tr {
        display: block;
        padding: 14px 16px;
        border-bottom: 1px solid var(--adm-border);
    }
    .adm-table--cards tr:hover td { background: transparent; }
    .adm-table--cards td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 6px 0;
        border: none;
        text-align: right;
    }
    .adm-table--cards td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 11px;
        color: var(--adm-muted);
        text-transform: uppercase;
        text-align: left;
        flex-shrink: 0;
    }
    .adm-bar-row { grid-template-columns: 80px 1fr 28px; }
    .adm-stats { grid-template-columns: repeat(2, 1fr); }
    .adm-content { padding: 16px; }
    .adm-topbar { padding: 10px 16px; }
}

@media (max-width: 900px) {
    .adm-layout { grid-template-columns: 1fr; }
    .adm-sidebar {
        position: fixed; left: 0; top: 0; z-index: 50;
        transform: translateX(-100%); transition: transform .25s;
        width: min(280px, 88vw);
        height: 100dvh;
        height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .adm-sidebar.open { transform: translateX(0); }
    .adm-menu-toggle,
    .adm-menu-btn { display: inline-flex; }
    .adm-lang-btn { min-height: 44px; min-width: 44px; padding: 0 14px; }
    .adm-lang-menu { z-index: 200; min-width: min(12rem, calc(100vw - 32px)); }
    .adm-lang-menu a { min-height: 44px; padding: 12px 14px; }
    body.adm-nav-open { overflow: hidden; }
    .adm-topbar {
        flex-wrap: wrap;
        gap: 10px;
    }
    .adm-topbar h1 { font-size: 1.05rem; }
    .adm-topbar-welcome { display: none; }
    .adm-topbar-actions { width: 100%; justify-content: flex-end; }
    .adm-topbar-actions .adm-btn span { display: none; }
    .adm-card-head { flex-wrap: wrap; }
    .adm-filter-bar { padding: 12px 14px; }
    .adm-filter-bar a { min-height: 36px; display: inline-flex; align-items: center; }
    .adm-form-grid { grid-template-columns: 1fr; }
    .adm-quick-actions .adm-btn { flex: 1 1 auto; min-width: 140px; justify-content: center; }
    .adm-settings-tabs { margin-left: -4px; margin-right: -4px; padding-left: 4px; padding-right: 4px; }
    .adm-sidebar { box-shadow: var(--adm-shadow-lg); }
}

@media (max-width: 480px) {
    .adm-stats { grid-template-columns: 1fr; }
    .adm-stat { padding: 16px; }
    .adm-btn, .adm-btn-sm { min-height: 44px; }
    .adm-field input, .adm-field select, .adm-field textarea { min-height: 44px; font-size: 16px; }
    .adm-table--cards td form { flex-direction: column; align-items: stretch !important; width: 100%; }
    .adm-table--cards td form select { width: 100%; min-height: 44px; }
    .adm-table--cards td form .adm-btn { width: 100%; justify-content: center; }
    .adm-login-box { padding: 24px 20px; }
    .adm-settings-tab { padding: 12px 16px; min-height: 44px; }
    .adm-form-actions-sticky .adm-btn-primary { width: 100%; justify-content: center; }
    .adm-card-head h2 { font-size: .95rem; }
}

.adm-subhead { margin: 20px 0 12px; font-size: 14px; color: var(--adm-text); }
.adm-help, .adm-field-hint { font-size: 12px; color: var(--adm-muted); line-height: 1.5; margin: 0 0 12px; }
.adm-instructions ol { margin: 0; padding-left: 20px; }
.adm-instructions li { margin-bottom: 10px; font-size: 13px; line-height: 1.5; color: var(--adm-muted); }
.adm-api-guide-inline { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--adm-border); }
.adm-dashboard-guides { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 900px) {
    .adm-dashboard-guides { grid-template-columns: 1fr 1fr; }
}
.adm-checklist { list-style: none; margin: 0; padding: 0; }
.adm-checklist-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px 0; border-bottom: 1px solid var(--adm-border);
}
.adm-checklist-item:last-child { border-bottom: none; }
.adm-checklist-icon { font-size: 1.1rem; line-height: 1.4; flex-shrink: 0; }
.adm-checklist-item.is-done .adm-checklist-icon { color: var(--adm-green); }
.adm-checklist-item.is-pending .adm-checklist-icon { color: var(--adm-muted); }
.adm-checklist-body strong { display: block; font-size: 14px; margin-bottom: 4px; }
.adm-checklist-link:not(.adm-btn) {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 6px; font-size: 12px; font-weight: 600;
    color: var(--adm-accent); text-decoration: none;
}
.adm-checklist-link:not(.adm-btn):hover { text-decoration: underline; }
.adm-checklist--todo .adm-checklist-link.adm-btn {
    margin-top: 4px;
    align-self: flex-start;
    width: max-content;
}
.adm-checklist-progress { margin: 0 0 12px; font-size: 13px; }
.adm-checklist-todo { margin-bottom: 16px; }
.adm-checklist--todo .adm-checklist-item {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}
.adm-checklist--todo .adm-checklist-icon { color: #d97706; }
.adm-checklist-missing {
    list-style: disc;
    margin: 8px 0 10px 18px;
    padding: 0;
    color: #92400e;
    font-size: 13px;
    line-height: 1.45;
}
.adm-checklist-missing li { margin-bottom: 4px; }

.adm-checklist-done-wrap { margin-top: 12px; }
.adm-checklist-done-wrap summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--adm-muted);
    padding: 8px 0;
}
.adm-checklist--done .adm-checklist-item { padding: 8px 0; border-bottom: 1px solid var(--adm-border); }
.adm-checklist-done-msg { margin-bottom: 12px; }
.adm-master-tasks-card { margin-bottom: 16px; }
.adm-tasks-group { margin-bottom: 18px; }
.adm-tasks-group:last-child { margin-bottom: 0; }
.adm-tasks-group-title {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--adm-navy);
}
.adm-tasks-group-title i { color: var(--adm-accent); }
.adm-tasks-group-count {
    margin-left: auto; font-size: 11px; font-weight: 700;
    background: #fef3c7; color: #92400e; padding: 2px 8px; border-radius: 999px;
}
.adm-master-done-list .adm-checklist-item { flex-wrap: wrap; }
.adm-tasks-done-group {
    display: block; width: 100%; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; color: var(--adm-muted); margin-bottom: 2px;
}
.adm-seo-checklist-card { margin-bottom: 16px; }
.adm-seo-checklist-grid { display: grid; gap: 0; }
@media (min-width: 900px) {
    .adm-seo-checklist-grid { grid-template-columns: 1fr 1fr; column-gap: 20px; }
    .adm-seo-checklist-grid .adm-checklist-item { border-right: none; }
}
.adm-seo-checklist-grid--done .adm-checklist-item { padding: 6px 0; }

/* News image gallery */
.adm-img-gallery { display: flex; flex-direction: column; gap: 12px; }
.adm-img-gallery-list {
    list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px;
}
.adm-img-gallery-item {
    position: relative; width: 108px; border: 1px solid var(--adm-border); border-radius: 10px;
    background: #fff; overflow: hidden; cursor: grab;
}
.adm-img-gallery-item.is-dragging { opacity: .55; cursor: grabbing; }
.adm-img-gallery-thumb { position: relative; aspect-ratio: 4/3; background: #f1f5f9; }
.adm-img-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-img-gallery-drag {
    position: absolute; left: 6px; top: 6px; width: 24px; height: 24px; border-radius: 6px;
    background: rgba(15,23,42,.55); color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 11px;
}
.adm-img-gallery-remove {
    position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border: none; border-radius: 8px;
    background: rgba(220,38,38,.9); color: #fff; cursor: pointer; display: flex; align-items: center;
    justify-content: center; font-size: 12px;
}
.adm-img-gallery-remove:hover { background: var(--adm-red, #dc2626); }
.adm-img-dropzone {
    border: 2px dashed #cbd5e1; border-radius: 12px; padding: 22px 16px; text-align: center;
    background: #f8fafc; cursor: pointer; transition: border-color .2s, background .2s;
}
.adm-img-dropzone:hover, .adm-img-dropzone.is-dragover { border-color: var(--adm-accent); background: #ecfdf5; }
.adm-img-dropzone i { font-size: 28px; color: var(--adm-accent); display: block; margin-bottom: 8px; }
.adm-img-dropzone span { display: block; font-weight: 600; font-size: 14px; }
.adm-img-dropzone small { display: block; margin-top: 6px; color: var(--adm-muted); font-size: 12px; }
.adm-img-url-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-img-url-row input[type="url"] { flex: 1 1 200px; min-width: 0; }
.adm-img-status { margin: 0; font-size: 12px; color: var(--adm-muted); }
.adm-img-status--success { color: var(--adm-green); }
.adm-img-status--error { color: var(--adm-red); }
.adm-img-status--loading { color: var(--adm-orange); }
.adm-img-picker--single { max-width: 520px; }
.adm-img-single-preview {
    position: relative; margin: 0 0 12px; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--adm-border); background: #f1f5f9; aspect-ratio: 16/9;
}
.adm-img-single-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-img-single-preview .adm-img-gallery-remove { top: 10px; right: 10px; }
.adm-img-dropzone.has-image { padding: 14px 16px; }
.adm-img-dropzone.has-image i { font-size: 20px; margin-bottom: 4px; }
.adm-seo-tips-list { list-style: none; margin: 0; padding: 0; }
.adm-seo-tips-list li {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 8px 0; font-size: 13px; line-height: 1.5; color: var(--adm-text);
    border-bottom: 1px solid var(--adm-border);
}
.adm-seo-tips-list li:last-child { border-bottom: none; }
.adm-seo-tips-list .fa-check { color: var(--adm-green); margin-top: 3px; flex-shrink: 0; }
.adm-badge-callback { background: #ecfdf5; color: #047857; }
.adm-phone-link { font-weight: 600; color: var(--adm-accent); text-decoration: none; }
.adm-phone-link:hover { text-decoration: underline; }
.adm-settings-form .adm-card { margin-bottom: 16px; }
.adm-form-actions { margin: 8px 0 24px; }
.adm-field input[type="color"] { width: 100%; height: 44px; padding: 4px; cursor: pointer; }

/* Settings tabs */
.adm-settings-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.adm-settings-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--adm-muted);
    border: 1px solid var(--adm-border);
    background: var(--adm-card);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all .15s;
}
.adm-settings-tab:hover { border-color: var(--adm-accent); color: var(--adm-accent-dark); text-decoration: none; }
.adm-settings-tab.active { background: var(--adm-accent); border-color: var(--adm-accent); color: #fff; }
.adm-settings-tab i { font-size: 14px; }

.adm-form-actions-sticky {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: linear-gradient(180deg, transparent, var(--adm-bg) 30%);
    padding: 16px 0 8px;
    margin-bottom: 0;
}
.adm-form-actions-sticky .adm-btn-primary { min-height: 44px; padding: 10px 22px; }

.adm-color-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* Project edit & forms */
.adm-form-layout { display: grid; gap: 20px; }
@media (min-width: 900px) {
    .adm-form-layout--2col { grid-template-columns: 1fr 1fr; }
}

/* Card polish */
.adm-card { box-shadow: var(--adm-shadow); }
.adm-stat { box-shadow: var(--adm-shadow); }

/* Wider tables scroll hint */
.adm-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.adm-table-wrap::after {
    content: '';
    display: block;
    height: 0;
}

.adm-repeat-row {
    border: 1px solid var(--adm-border);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
    background: #f8fafc;
}
.adm-repeat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.adm-repeat-head strong { font-size: 13px; color: var(--adm-muted); }

/* AI auto-fill panel */
.adm-ai-fill-card {
    margin-bottom: 20px;
    border: 1px solid var(--adm-accent-light);
    background: linear-gradient(135deg, #f0fdf4 0%, var(--adm-card) 55%);
}
.adm-ai-fill-card .adm-card-head h2 i { color: var(--adm-accent-dark); }
.adm-ai-fill-card .adm-quick-actions { margin-top: 4px; }

/* Business presets grid */
.adm-preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.adm-preset-card { margin: 0; transition: border-color .15s, box-shadow .15s; }
.adm-preset-card--active {
    border: 2px solid var(--adm-accent);
    box-shadow: 0 0 0 3px var(--adm-accent-light);
}
.adm-preset-card h3 { margin: 0 0 6px; font-size: 1rem; }
.adm-preset-desc { margin: 0 0 10px; font-size: 12px; color: var(--adm-muted); line-height: 1.45; min-height: 2.6em; }
.adm-preset-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--adm-accent-light), #fff);
    color: var(--adm-accent-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}
.adm-preset-form { margin-top: 10px; }

/* Changelog */
.adm-changelog-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 20px;
}
.adm-changelog-version {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.adm-changelog-version-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--adm-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.adm-changelog-version-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--adm-navy);
    line-height: 1.1;
}
.adm-changelog-lead { margin: 0; max-width: 520px; }
.adm-changelog-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.adm-changelog-card { margin: 0; overflow: hidden; }
.adm-changelog-card--latest {
    border: 2px solid var(--adm-accent);
    box-shadow: 0 0 0 3px var(--adm-accent-light);
}
.adm-changelog-card-head {
    padding: 16px 18px 0;
    border-bottom: none;
}
.adm-changelog-card-title {
    margin: 0 0 4px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}
.adm-changelog-card-version { font-weight: 800; color: var(--adm-navy); }
.adm-changelog-card-date {
    display: block;
    font-size: 13px;
    color: var(--adm-muted);
}
.adm-changelog-meta {
    padding: 12px 18px 0;
}
.adm-changelog-meta-row {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--adm-navy);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}
.adm-changelog-meta-row i { color: var(--adm-accent); font-size: 12px; }
.adm-changelog-meta-row a { color: var(--adm-accent); word-break: break-all; }
.adm-changelog-list {
    margin: 0;
    padding: 12px 18px 18px 36px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--adm-text);
}
.adm-changelog-list li { margin-bottom: 8px; }
.adm-changelog-list li:last-child { margin-bottom: 0; }
.adm-changelog-list strong { color: var(--adm-navy); }
.adm-changelog-list a { color: var(--adm-accent); word-break: break-all; }
.adm-version-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--adm-accent-dark);
    text-decoration: none;
    background: var(--adm-accent-light);
}
.adm-version-link:hover,
.adm-version-link--active {
    background: var(--adm-accent);
    color: #fff;
}

/* Invoice creation */
.adm-invoice-create-card { margin-bottom: 20px; border: 1px solid #dbeafe; background: linear-gradient(135deg, #eff6ff 0%, var(--adm-card) 60%); }
.adm-invoice-create-card .adm-card-head h2 i { color: #2563eb; }

.adm-constructor-tip { margin-bottom: 16px; border: 1px dashed var(--adm-accent); background: #f0fdf4; }
.adm-template-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.adm-template-pick { cursor: pointer; text-align: center; border: 2px solid var(--adm-border); border-radius: 10px; padding: 8px; transition: border-color .15s; }
.adm-template-pick input { position: absolute; opacity: 0; }
.adm-template-pick--on { border-color: var(--adm-accent); box-shadow: 0 0 0 3px var(--adm-accent-light); }
.adm-template-pick-preview { display: flex; align-items: center; justify-content: center; height: 56px; border-radius: 8px; color: #fff; margin-bottom: 6px; }
.adm-template-pick-label { font-size: 10px; font-weight: 600; line-height: 1.2; display: block; }
.adm-section-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.adm-section-toggle { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--adm-border); border-radius: 8px; font-size: 13px; cursor: pointer; }
.adm-section-toggle:has(input:checked) { border-color: var(--adm-accent); background: var(--adm-accent-light); }
.adm-seo-ai-card { margin-bottom: 20px; border: 1px solid #dbeafe; }
.adm-seo-score-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.adm-seo-score { font-size: 2.5rem; font-weight: 800; color: var(--adm-accent-dark); line-height: 1; }
.adm-seo-tips { margin: 0 0 16px; padding-left: 0; list-style: none; }
.adm-seo-tips li { font-size: 13px; color: var(--adm-muted); margin-bottom: 8px; }
.adm-seo-tips i { color: var(--adm-green); margin-right: 6px; }

.adm-stat-icon.indigo { background: #ede9fe; color: #6d28d9; }
.adm-stats { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.adm-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.adm-chart-card--wide { grid-column: 1 / -1; }
.adm-chart-body { position: relative; height: 220px; padding: 12px 16px 16px; }
.adm-chart-body--tall { height: 260px; }

.adm-card-head-row { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.adm-lang-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 12px; }
.adm-lang-tab {
    padding: 8px 14px; border: 1px solid var(--adm-border); border-radius: 8px;
    background: var(--adm-card); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--adm-muted);
}
.adm-lang-tab.active { border-color: var(--adm-accent); background: var(--adm-accent-light); color: var(--adm-accent-dark); }
.adm-lang-panel[hidden] { display: none !important; }
.adm-subhead--seo { margin-top: 20px; font-size: 14px; color: var(--adm-accent-dark); }
.adm-news-ai-card { margin-bottom: 16px; border: 1px solid #d1fae5; }
.adm-news-seo-card { margin-top: 20px; }
.adm-seo-score--inline { font-size: 1.5rem; font-weight: 800; color: var(--adm-accent-dark); }
.adm-seo-pill {
    display: inline-block; min-width: 32px; padding: 2px 8px; border-radius: 999px;
    font-size: 12px; font-weight: 700; text-align: center;
}
.adm-seo-pill--good { background: #dcfce7; color: #166534; }
.adm-seo-pill--mid { background: #fef3c7; color: #b45309; }
.adm-seo-pill--low { background: #fee2e2; color: #b91c1c; }
.adm-seo-health-card { margin-bottom: 16px; border: 1px solid #dbeafe; }
.adm-seo-health-main {
    display: grid;
    gap: 20px;
    margin-bottom: 12px;
}
@media (min-width: 700px) {
    .adm-seo-health-main { grid-template-columns: auto 1fr; align-items: start; }
}
.adm-seo-health-score-block { display: flex; align-items: center; gap: 16px; }
.adm-seo-score--hero { font-size: 3rem; }
.adm-seo-health-meta { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--adm-muted); font-weight: 600; }
.adm-seo-health-lang-list { list-style: none; margin: 0; padding: 0; }
.adm-seo-health-lang-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 0; border-bottom: 1px solid var(--adm-border); font-size: 13px;
}
.adm-seo-health-lang-list li:last-child { border-bottom: none; }
.adm-seo-health-lang-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.adm-seo-health-grade.adm-seo-pill--good { background: #dcfce7; color: #166534; }
.adm-seo-health-grade.adm-seo-pill--mid { background: #fef3c7; color: #b45309; }
.adm-seo-health-grade.adm-seo-pill--low { background: #fee2e2; color: #b91c1c; }
.adm-seo-health-tips .adm-seo-tips i { color: #d97706; }

/* System toasts + AI thinking overlay */
.adm-toast-stack {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}
.adm-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--adm-border);
    box-shadow: var(--adm-shadow-lg);
    font-size: 14px;
    font-weight: 600;
    color: var(--adm-navy);
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
    transition: opacity .28s ease, transform .28s ease;
    pointer-events: auto;
}
.adm-toast.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.adm-toast--success { border-color: #86efac; background: #f0fdf4; color: #166534; }
.adm-toast--success .fa-circle-check { color: #16a34a; margin-top: 2px; }
.adm-toast--error { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.adm-toast--error .fa-circle-xmark { color: #dc2626; margin-top: 2px; }
.adm-agent-thinking {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(3px);
}
.adm-agent-thinking[hidden] { display: none !important; }
.adm-agent-thinking-panel {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px 24px;
    box-shadow: var(--adm-shadow-lg);
    text-align: center;
    max-width: min(320px, calc(100vw - 40px));
    border: 1px solid #dbeafe;
}
.adm-agent-orb {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--adm-accent);
    font-size: 28px;
}
.adm-agent-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--adm-accent);
    opacity: 0.35;
    animation: admAgentPulse 2s ease-out infinite;
}
.adm-agent-ring--2 { animation-delay: 1s; }
@keyframes admAgentPulse {
    0% { transform: scale(0.85); opacity: 0.6; }
    100% { transform: scale(1.35); opacity: 0; }
}
.adm-agent-thinking-text {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--adm-navy);
}
.adm-agent-dots { display: flex; justify-content: center; gap: 6px; }
.adm-agent-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--adm-accent);
    animation: admAgentDot 1.2s ease-in-out infinite;
}
.adm-agent-dots span:nth-child(2) { animation-delay: 0.15s; }
.adm-agent-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes admAgentDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}
body.adm-agent-busy { overflow: hidden; }
@media (max-width: 480px) {
    .adm-toast-stack { top: auto; bottom: 16px; right: 12px; left: 12px; max-width: none; }
}
.adm-badge-source { font-size: 11px; background: #f1f5f9; color: var(--adm-muted); }
.adm-btn-danger { background: #fef2f2; color: var(--adm-red); border: 1px solid #fecaca; }
.adm-btn-danger:hover { background: #fee2e2; }
.adm-table-actions { white-space: nowrap; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.adm-students-list .adm-table td { vertical-align: middle; }

@media (max-width: 900px) {
    .adm-charts-grid { grid-template-columns: 1fr; }
    .adm-chart-card--wide { grid-column: auto; }
}

/* Help + Support (aligned with Faktura admin) */
.hidden { display: none !important; }
.adm-help-stack { display: flex; flex-direction: column; gap: 16px; }
.adm-help-stack .adm-card { margin: 0; }
.adm-help-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 4px; padding-left: 2px; }
.adm-leads-hero {
    display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px;
    margin-bottom: 8px; padding: 18px 20px; border-radius: 12px;
    background: linear-gradient(135deg, #ecfdf5 0%, #fef3c7 100%);
    border: 1px solid #a7f3d0;
}
.adm-leads-title { margin: 0 0 6px; font-size: 1.2rem; }
.adm-leads-hero-text p { margin: 0; color: var(--adm-muted); font-size: 14px; max-width: 52ch; }
.adm-support-page { min-width: 0; max-width: 100%; }
.adm-form-grid { display: grid; gap: 14px; }
.adm-form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .adm-form-grid--2 { grid-template-columns: 1fr; } }
.adm-label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.adm-input {
    width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid var(--adm-border);
    border-radius: 8px; font: inherit; box-sizing: border-box; background: #fff; color: var(--adm-text);
}
.adm-input:focus { outline: none; border-color: var(--adm-accent); box-shadow: 0 0 0 2px var(--adm-accent-light); }
.adm-form-group { margin-bottom: 14px; min-width: 0; }
.adm-hint { display: block; margin-top: 4px; font-size: 11px; color: var(--adm-muted); line-height: 1.4; }
.adm-muted { color: var(--adm-muted); }
.adm-support-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.adm-support-tab {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 14px; border-radius: 8px; border: 1px solid var(--adm-border);
    background: var(--adm-card); color: var(--adm-muted); font-size: 13px; font-weight: 600;
    cursor: pointer; flex: 1 1 200px; min-width: 0; text-align: center;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.adm-support-tab:hover { border-color: var(--adm-accent); color: var(--adm-accent-dark); }
.adm-support-tab.is-active { border-color: var(--adm-accent); color: var(--adm-accent-dark); background: var(--adm-accent-light); }
.adm-support-hint { font-size: 13px; margin: 0 0 14px; color: var(--adm-muted); line-height: 1.5; }
.adm-support-status { margin-top: 12px; font-size: 13px; line-height: 1.45; }
.adm-support-status.is-ok { color: var(--adm-green); }
.adm-support-status.is-err { color: var(--adm-red); }
.adm-support-panel { min-width: 0; }
.adm-support-panel .adm-card-body { min-width: 0; }
.adm-support-send-row { margin-top: 4px; }
.adm-support-ai-panel {
    margin: 4px 0 16px; padding: 18px 20px; border: 2px solid #6ee7b7; border-radius: 14px;
    background: linear-gradient(145deg, #f0fdf4 0%, #ecfdf5 55%, #d1fae5 100%);
    box-shadow: 0 4px 18px rgba(16, 185, 129, .08);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.adm-support-ai-panel.is-ai-thinking {
    border-color: var(--adm-accent);
    box-shadow: 0 0 0 3px var(--adm-accent-light), 0 8px 24px rgba(16, 185, 129, .14);
    animation: adm-ai-aside-pulse 2s ease-in-out infinite;
}
@keyframes adm-ai-aside-pulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--adm-accent-light), 0 8px 24px rgba(16, 185, 129, .14); }
    50% { box-shadow: 0 0 0 5px rgba(16, 185, 129, .2), 0 10px 28px rgba(16, 185, 129, .2); }
}
.adm-support-ai-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.adm-support-ai-panel .adm-btn-ai-generate {
    width: 100%; padding: 18px 28px; font-size: 17px; font-weight: 700; border-radius: 12px;
}
.adm-btn-support-send {
    width: 100%; padding: 16px 24px; font-size: 16px; font-weight: 700;
    border-radius: 12px; justify-content: center;
}
.adm-btn-support-secondary {
    padding: 12px 18px; font-size: 14px; font-weight: 600; border-radius: 10px; justify-content: center;
}
.adm-support-client-actions {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin-top: 4px;
}
.adm-support-client-actions .adm-btn-support-send { flex: 1 1 220px; }
.adm-support-client-actions .adm-btn-support-secondary { flex: 1 1 160px; }
.adm-support-tab-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px;
    border-radius: 999px; font-size: 11px; font-weight: 700;
    background: var(--adm-red); color: #fff;
}
.adm-support-tab-badge.hidden { display: none; }
.adm-inbox-layout { display: grid; gap: 12px; min-height: 320px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .adm-inbox-layout { grid-template-columns: minmax(220px, 34%) minmax(0, 1fr); } }
.adm-inbox-list-wrap { border: 1px solid var(--adm-border); border-radius: 10px; max-height: 420px; overflow-y: auto; }
.adm-inbox-list-wrap.is-hidden { display: none; }
@media (min-width: 768px) { .adm-inbox-list-wrap.is-hidden { display: block; } }
.adm-inbox-item {
    display: block; width: 100%; text-align: left; padding: 10px 12px;
    border: 0; border-bottom: 1px solid var(--adm-border); background: transparent; cursor: pointer; color: inherit;
}
.adm-inbox-item:hover { background: #f8fafc; }
.adm-inbox-item.is-active { background: var(--adm-accent-light); }
.adm-inbox-item.is-unread .adm-inbox-item-top strong { font-weight: 700; }
.adm-inbox-item-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.adm-inbox-item-preview { font-size: 12px; color: var(--adm-muted); margin-top: 4px; line-height: 1.4; }
.adm-inbox-unread-pill { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--adm-accent-dark); }
.adm-inbox-detail-wrap { min-width: 0; }
.adm-inbox-back {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px;
    border: 0; background: transparent; color: var(--adm-accent-dark); cursor: pointer;
}
.adm-inbox-back.hidden { display: none; }
@media (min-width: 768px) { .adm-inbox-back { display: none; } }
.adm-inbox-subject { margin: 0 0 12px; font-size: 18px; }
.adm-inbox-thread {
    display: flex; flex-direction: column; gap: 10px;
    max-height: 280px; overflow-y: auto; margin-bottom: 14px;
}
.adm-inbox-bubble {
    max-width: 92%; padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--adm-border); background: #f8fafc;
}
.adm-inbox-bubble.is-owner { align-self: flex-end; border-color: var(--adm-accent); background: var(--adm-accent-light); }
.adm-inbox-bubble.is-client { align-self: flex-start; }
.adm-inbox-bubble-head {
    display: flex; justify-content: space-between; gap: 8px;
    font-size: 11px; color: var(--adm-muted); margin-bottom: 6px;
}
.adm-inbox-bubble-body { font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.adm-inbox-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.adm-inbox-img { max-width: 100%; max-height: 180px; border-radius: 6px; border: 1px solid var(--adm-border); }
.adm-inbox-empty { padding: 16px; text-align: center; }
.adm-inbox-reply { margin-top: 8px; }
