* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, Arial, sans-serif;
    background: #f4f6fb;
    color: #111827;
}

a {
    text-decoration: none;
    color: inherit;
}

.login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(183,32,235,.22), transparent 32%),
        linear-gradient(135deg, #050816, #111827);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 420px;
    background: #fff;
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.brand-icon,
.logo-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0059ff, #b720eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin: 0 auto 14px;
}

.login-brand h1 {
    font-size: 26px;
    margin-bottom: 6px;
}

.login-brand p {
    color: #6b7280;
    font-size: 14px;
}

.login-box label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin: 16px 0 7px;
}

.login-box input {
    width: 100%;
    height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 0 15px;
    outline: none;
}

.login-box input:focus {
    border-color: #0059ff;
}

.login-box button {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #0059ff, #b720eb);
    color: #fff;
    font-weight: 800;
    margin-top: 22px;
    cursor: pointer;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    margin-bottom: 16px;
}

.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: #050816;
    color: #fff;
    padding: 26px 20px;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
}

.sidebar-logo {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 34px;
}

.sidebar-logo .logo-mark {
    margin: 0;
    width: 48px;
    height: 48px;
    border-radius: 16px;
}

.sidebar-logo strong {
    display: block;
    font-size: 17px;
}

.sidebar-logo span {
    color: #9ca3af;
    font-size: 13px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu a {
    padding: 14px 16px;
    border-radius: 14px;
    color: #d1d5db;
    font-weight: 700;
    font-size: 14px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: linear-gradient(135deg, #0059ff, #b720eb);
    color: #fff;
}

.main {
    margin-left: 280px;
    width: calc(100% - 280px);
    padding: 110px 28px 28px;
}

.topbar {
    position: fixed;
    left: 280px;
    right: 0;
    top: 0;
    height: 86px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.topbar h2 {
    font-size: 24px;
}

.topbar p {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
}

.topbar-user span {
    font-weight: 800;
}

.topbar-user a {
    background: #111827;
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 800;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.card-stat {
    background: #fff;
    border-radius: 22px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 30px rgba(15,23,42,.05);
}

.card-stat span {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.card-stat strong {
    display: block;
    margin-top: 10px;
    font-size: 32px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.panel-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 30px rgba(15,23,42,.05);
    overflow: hidden;
}

.panel-head {
    padding: 22px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-head h3 {
    font-size: 18px;
}

.panel-head a {
    font-size: 14px;
    font-weight: 800;
    color: #0059ff;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 15px 18px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}

th {
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e0ecff;
    color: #0059ff;
    font-size: 12px;
    font-weight: 800;
}

.badge.purple {
    background: #f4e2ff;
    color: #b720eb;
}

@media (max-width: 1100px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .sidebar {
        width: 230px;
    }

    .main {
        margin-left: 230px;
        width: calc(100% - 230px);
    }

    .topbar {
        left: 230px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}

.page-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    align-items: center;
}

.search-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 520px;
}

.search-form input {
    width: 100%;
    height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 0 14px;
    outline: none;
}

.search-form button,
.btn-primary {
    height: 46px;
    border: none;
    border-radius: 14px;
    padding: 0 18px;
    background: linear-gradient(135deg, #0059ff, #b720eb);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary {
    height: 46px;
    border-radius: 14px;
    padding: 0 18px;
    background: #111827;
    color: #fff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.form-card {
    background: #fff;
    border-radius: 24px;
    padding: 26px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 30px rgba(15,23,42,.05);
}

.form-card h3 {
    font-size: 22px;
    margin-bottom: 22px;
}

.form-card label {
    display: block;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 13px 14px;
    outline: none;
    font-family: inherit;
    margin-bottom: 18px;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    border-color: #0059ff;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
}

.check-line {
    display: flex;
    align-items: center;
}

.check-line label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.check-line input {
    width: auto;
    margin: 0;
}

.actions {
    display: flex;
    gap: 10px;
}

.actions a {
    font-weight: 800;
    font-size: 13px;
    color: #0059ff;
}

.badge.gray {
    background: #e5e7eb;
    color: #374151;
}

.sidebar-section-title {
    margin: 22px 0 10px;
    color: #9ca3af;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 900;
}

.business-menu {
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.04);
}

.business-title {
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
}

.business-title span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.business-link {
    padding: 10px 12px !important;
    font-size: 13px !important;
    margin-top: 5px;
    background: transparent !important;
}

.business-link:hover {
    background: rgba(255,255,255,.08) !important;
}

.business-empty {
    color: #9ca3af;
    font-size: 12px;
    display: block;
    padding: 6px 4px;
}