:root {
    --bg: #09111d;
    --bg-soft: #0f1d2d;
    --panel: #121e2f;
    --panel-alt: #16253a;
    --card: rgba(17, 27, 40, 0.9);
    --line: rgba(139, 176, 255, 0.18);
    --text: #edf3ff;
    --muted: #a0b5d6;
    --accent: #5ea6ff;
    --accent-strong: #7a7cff;
    --success: #6ee7b7;
    --warning: #f7d580;
    --danger: #ff7d7d;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, rgba(92, 125, 255, 0.25), transparent 30%), var(--bg);
    color: var(--text);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container {
    width: min(1180px, calc(100% - 24px));
    margin: 0 auto;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(20px);
    background: rgba(9, 17, 29, 0.75);
    border-bottom: 1px solid var(--line);
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(94, 166, 255, 0.22), rgba(122, 124, 255, 0.6));
    border: 1px solid rgba(255,255,255,0.18);
    font-size: 0.8rem;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 0.96rem;
}
.nav-links a:hover { color: var(--text); }
.primary-button, .secondary-button, .ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s ease;
    font-weight: 600;
}
.primary-button {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: white;
    box-shadow: var(--shadow);
}
.primary-button:hover { transform: translateY(-1px); }
.secondary-button {
    background: rgba(255,255,255,0.04);
    color: var(--text);
    border-color: var(--line);
}
.ghost-button {
    background: transparent;
    color: var(--muted);
    border-color: var(--line);
}
.page-shell {
    padding: 36px 0 72px;
}
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 26px;
    align-items: center;
    padding: 28px 0 24px;
}
.hero-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.06em;
}
.hero-copy p {
    margin: 0 0 18px;
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 640px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
}
.count-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(94, 166, 255, 0.08);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
}
.hero-panel {
    background: linear-gradient(145deg, rgba(27, 38, 54, 0.95), rgba(15, 22, 36, 0.95));
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow);
}
.panel-grid {
    display: grid;
    gap: 14px;
}
.metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px 18px;
}
.metric strong { font-size: 1.4rem; }
.search-wrap {
    display: grid;
    gap: 12px;
    margin: 24px 0 10px;
}
.search-input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(11, 18, 29, 0.7);
    color: var(--text);
    padding: 0 16px;
}
.filter-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.filter-tag {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 12px;
    background: rgba(255,255,255,0.02);
    color: var(--muted);
    cursor: pointer;
    font-size: 0.88rem;
}
.filter-tag.active {
    background: rgba(94, 166, 255, 0.14);
    color: var(--text);
    border-color: rgba(94, 166, 255, 0.4);
}
.business-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.business-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px;
    min-height: 240px;
    box-shadow: 0 14px 24px rgba(0,0,0,0.12);
}
.business-card.hidden { display: none; }
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.card-logo {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    object-fit: cover;
}
.business-name {
    margin: 0;
    font-size: 1.1rem;
}
.business-segment {
    display: inline-flex;
    color: var(--muted);
    font-size: 0.8rem;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
    border-radius: 999px;
    padding: 5px 8px;
}
.business-desc {
    color: var(--muted);
    margin: 0;
    flex: 1;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.text-link {
    color: var(--accent);
    font-weight: 600;
}
.empty-state {
    background: rgba(255,255,255,0.02);
    border: 1px dashed var(--line);
    border-radius: 18px;
    padding: 32px 20px;
    text-align: center;
    color: var(--muted);
}
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.section-title h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}
.form-card {
    background: rgba(17, 26, 38, 0.9);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow);
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
.field {
    display: grid;
    gap: 8px;
}
label {
    color: var(--muted);
    font-size: 0.93rem;
}
.input, .select, .textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(10, 17, 28, 0.86);
    color: var(--text);
    padding: 0 14px;
    min-height: 48px;
}
.textarea {
    min-height: 120px;
    padding: 12px 14px;
    resize: vertical;
}
.helper-text {
    color: var(--muted);
    font-size: 0.82rem;
    margin-top: -4px;
}
.inline-note {
    background: rgba(94, 166, 255, 0.08);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--muted);
}
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.checkbox-row input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
}
.alert {
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 125, 125, 0.08);
    border: 1px solid rgba(255,125,125,0.2);
    color: #ffd7d7;
    margin-bottom: 18px;
}
.success-box {
    border-radius: 18px;
    border: 1px solid rgba(110, 231, 183, 0.26);
    background: rgba(110, 231, 183, 0.07);
    padding: 26px;
    text-align: center;
}
.profile-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: start;
}
.profile-card, .profile-side {
    background: rgba(17, 24, 37, 0.92);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 24px;
}
.profile-hero {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}
.profile-logo {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid var(--line);
}
.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}
.meta-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--line);
    padding: 7px 10px;
    font-size: 0.82rem;
    color: var(--muted);
}
.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.side-links {
    display: grid;
    gap: 10px;
}
.admin-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}
.admin-sidebar {
    background: rgba(17, 24, 37, 0.92);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
}
.admin-sidebar nav {
    display: grid;
    gap: 8px;
}
.admin-sidebar a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted);
    border: 1px solid transparent;
}
.admin-sidebar a.active, .admin-sidebar a:hover {
    background: rgba(94, 166, 255, 0.08);
    border-color: rgba(94, 166, 255, 0.2);
    color: var(--text);
}
.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(17,24,37,0.7);
}
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 840px;
}
th, td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
th { color: var(--muted); font-weight: 600; }
.status-tag {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    border: 1px solid var(--line);
    text-transform: capitalize;
}
.status-published { background: rgba(110,231,183,0.09); color: #c6f5df; }
.status-hidden { background: rgba(247,213,128,0.08); color: #ffe9b4; }
.status-disabled { background: rgba(255,125,125,0.08); color: #ffcfcc; }
.form-actions, .button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.textarea-counter { text-align: right; color: var(--muted); font-size: 0.78rem; }
.footer {
    border-top: 1px solid var(--line);
    padding: 26px 0 40px;
    color: var(--muted);
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
@media (max-width: 860px) {
    .hero, .profile-layout, .admin-shell, .business-grid, .form-grid {
        grid-template-columns: 1fr;
    }
    .navbar {
        flex-wrap: wrap;
        padding: 12px 0;
        gap: 12px;
    }
    .nav-links {
        width: 100%;
        justify-content: space-between;
    }
    .page-shell { padding-top: 18px; }
    .site-header { position: static; }
}
