:root {
  --ink: #142834;
  --muted: #7a858d;
  --line: #e5e9eb;
  --surface: #fff;
  --canvas: #f4f6f7;
  --pink: #f20b72;
  --coral: #ff4f5e;
  --orange: #ff7a3d;
  --gradient: linear-gradient(112deg,var(--pink),var(--coral) 58%,var(--orange));
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 245px minmax(0,1fr); }
.admin-sidebar { height: 100vh; padding: 28px 18px 18px; position: sticky; top: 0; display: flex; flex-direction: column; color: #fff; background: #111e27; }
.admin-logo { width: max-content; display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.admin-logo img { width: 42px; height: 42px; display: block; object-fit: cover; border: 1px solid rgba(255,255,255,.55); border-radius: 13px; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.13); }
.admin-logo strong { font-size: 27px; font-weight: 850; letter-spacing: -1.8px; }
.admin-sidebar > small { margin-top: 4px; color: rgba(255,255,255,.45); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.admin-sidebar nav { min-height: 0; margin-top: 24px; padding-right: 3px; display: grid; gap: 4px; overflow-y: auto; scrollbar-width: thin; }
.admin-sidebar nav a { min-height: 39px; padding: 0 10px; border-radius: 11px; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.58); font-size: 11px; font-weight: 700; }
.admin-sidebar nav a b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; font-size: 16px; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { color: #fff; background: rgba(255,255,255,.08); }
.admin-sidebar nav a.active b { background: var(--gradient); box-shadow: 0 8px 18px rgba(242,11,114,.2); }
.sidebar-profile { margin-top: auto; padding: 13px 10px; display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.09); }
.sidebar-profile > div { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient); font-size: 10px; font-weight: 850; }
.sidebar-profile strong, .sidebar-profile small { display: block; }
.sidebar-profile strong { font-size: 11px; }
.sidebar-profile small { margin-top: 3px; color: rgba(255,255,255,.42); font-size: 9px; }
.logout-link { padding: 8px 10px 0; color: rgba(255,255,255,.45); font-size: 10px; }
.logout-link:hover { color: #fff; }
.admin-main { min-width: 0; }
.admin-topbar { height: 66px; padding: 0 27px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); backdrop-filter: blur(15px); }
.admin-topbar > div { min-width: 0; }
.admin-topbar span, .admin-topbar strong { display: block; }
.admin-topbar span { color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.admin-topbar strong { margin-top: 2px; font-size: 13px; }
.admin-topbar > a { margin-left: auto; color: var(--pink); font-size: 11px; font-weight: 800; }
.mobile-menu { display: none; border: 0; background: transparent; }
.admin-content { max-width: 1500px; margin: 0 auto; padding: 30px; }
.page-heading { margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.eyebrow { color: #a56f5d; font-size: 9px; font-weight: 850; letter-spacing: .19em; }
.page-heading h1 { margin: 7px 0 5px; font: 500 36px/1 Georgia, "Times New Roman", serif; letter-spacing: -1px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.outline-button { padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; font-size: 10px; font-weight: 800; }
.live-chip { padding: 8px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; color: #15755d; background: #e9f8f2; font-size: 9px; font-weight: 850; }
.live-chip i { width: 7px; height: 7px; border-radius: 50%; background: #20a980; box-shadow: 0 0 0 4px rgba(32,169,128,.12); }
.metric-grid { margin-bottom: 22px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.metric-card { min-height: 133px; padding: 19px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 10px 28px rgba(20,40,52,.04); }
.metric-card::after { content: ""; width: 70px; height: 70px; position: absolute; right: -24px; top: -24px; border-radius: 50%; background: rgba(242,11,114,.07); }
.metric-card span, .metric-card strong, .metric-card small { display: block; }
.metric-card span { color: var(--muted); font-size: 10px; font-weight: 750; }
.metric-card strong { margin-top: 16px; font: 500 33px/1 Georgia,serif; }
.metric-card small { margin-top: 8px; color: #a0a7ac; font-size: 8px; }
.metric-card.partners::after { background: rgba(255,122,61,.1); }
.metric-card.bookings::after { background: rgba(29,134,192,.09); }
.metric-card.reviews::after { background: rgba(62,171,128,.1); }
.admin-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(20,40,52,.035); }
.section-heading { min-height: 68px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font: 500 21px/1 Georgia,serif; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.section-heading > a { color: var(--pink); font-size: 10px; font-weight: 800; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 15px; border-bottom: 1px solid #edf0f1; text-align: left; vertical-align: middle; white-space: nowrap; }
th { color: #8c959c; background: #fbfcfc; font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
td { color: #4b5a63; font-size: 10px; }
td strong, td small { display: block; }
td strong { color: var(--ink); font-size: 10px; }
td small { margin-top: 4px; color: #929aa0; font-size: 8px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fffafb; }
.person-cell, .service-cell { display: flex; align-items: center; gap: 10px; }
.person-cell img { width: 38px; height: 42px; border-radius: 11px; object-fit: cover; }
.service-cell img { width: 42px; height: 38px; border-radius: 10px; object-fit: cover; }
.status { padding: 5px 8px; border-radius: 999px; display: inline-block; color: #786f6a; background: #f3f1ef; font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.status.active, .status.verified, .status.published, .status.accepted, .status.confirmed, .status.completed { color: #15755d; background: #e9f8f2; }
.status.pending, .status.urgent { color: #a9621b; background: #fff3e4; }
.status.suspended, .status.hidden, .status.cancelled, .status.rejected { color: #b3384b; background: #fff0f2; }
.status.in_progress, .status.investigating, .status.waiting_user { color: #1c67a3; background: #eaf5ff; }
.status.critical { color: #fff; background: #b9213c; }
form button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-size: 8px; font-weight: 800; cursor: pointer; }
.inline-actions { display: flex; gap: 5px; }
.danger-link { color: #b3384b; }
.status-form { display: flex; align-items: center; gap: 5px; }
.status-form select { min-width: 105px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-size: 8px; }
.status-form input { min-width: 90px; max-width: 160px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-size: 8px; }
.admin-split { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(290px,.7fr); gap: 16px; align-items: start; }
.compact-card { position: sticky; top: 83px; }
.service-form { padding: 18px; }
.service-form label, .admin-form label { margin-bottom: 12px; display: block; color: #5f6b73; font-size: 9px; font-weight: 800; }
.service-form input, .service-form select, .service-form textarea, .admin-form input { width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #dfe4e7; border-radius: 10px; outline: none; color: var(--ink); background: #fff; font-size: 10px; }
.service-form textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.content-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; }
.gradient-button { width: 100%; padding: 12px 14px; border: 0; border-radius: 11px; color: #fff; background: var(--gradient); box-shadow: 0 10px 24px rgba(242,11,114,.16); font-weight: 850; cursor: pointer; }
.review-copy { max-width: 340px; white-space: normal; line-height: 1.5; }
.role-label { color: var(--pink); font-weight: 800; }
.admin-flash { margin-bottom: 17px; padding: 11px 14px; border-radius: 11px; color: #15755d; background: #e9f8f2; font-size: 10px; font-weight: 750; }
.empty-state { padding: 70px 20px; text-align: center; }

.admin-login-body { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: radial-gradient(circle at 15% 10%,rgba(242,11,114,.07),transparent 28%), #f4f6f7; }
.login-shell { width: min(900px,100%); min-height: 530px; overflow: hidden; display: grid; grid-template-columns: 1.08fr .92fr; border-radius: 24px; background: #fff; box-shadow: 0 30px 80px rgba(20,40,52,.15); }
.login-brand { padding: 48px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 75% 10%,rgba(255,122,61,.7),transparent 31%), linear-gradient(145deg,#f20b72,#ff4f5e 58%,#ff7a3d); }
.login-brand::after { content: ""; width: 270px; height: 270px; position: absolute; right: -120px; bottom: -110px; border: 50px solid rgba(255,255,255,.14); border-radius: 50%; }
.login-brand .admin-logo { position: absolute; top: 35px; left: 43px; }
.login-brand .admin-logo img { width: 50px; height: 50px; border-radius: 15px; box-shadow: 0 10px 28px rgba(95,17,52,.24); }
.login-brand .admin-logo strong { font-size: 30px; }
.login-brand > p { color: rgba(255,255,255,.65); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.login-brand h1 { max-width: 410px; margin: 20px 0 14px; font: 500 44px/.98 Georgia,serif; letter-spacing: -1.7px; }
.brand-note { max-width: 380px; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.6; }
.login-panel { padding: 48px 43px; display: flex; flex-direction: column; justify-content: center; }
.login-panel h2 { margin: 8px 0 6px; font: 500 34px/1 Georgia,serif; }
.login-panel > p { margin: 0 0 22px; color: var(--muted); font-size: 11px; }
.login-panel > small { margin-top: 13px; color: #9aa1a6; font-size: 8px; }
.login-error { margin-bottom: 13px; padding: 9px 11px; border-radius: 9px; color: #ad3346; background: #fff0f2; font-size: 9px; }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .admin-split { grid-template-columns: 1fr; }
  .compact-card { position: static; }
  .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .admin-shell { display: block; }
  .admin-sidebar { width: 245px; position: fixed; z-index: 50; left: -260px; transition: left .2s ease; }
  .nav-open .admin-sidebar { left: 0; box-shadow: 20px 0 50px rgba(20,40,52,.25); }
  .mobile-menu { display: block; }
  .admin-content { padding: 22px 15px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: 30px; }
  .login-shell { display: block; }
  .login-brand { min-height: 240px; padding: 80px 30px 32px; }
  .login-brand h1 { margin: 10px 0; font-size: 33px; }
  .login-brand .admin-logo { top: 25px; left: 29px; }
  .login-panel { padding: 35px 29px; }
}

@media (max-width: 500px) {
  .metric-grid { grid-template-columns: 1fr; }
  .page-heading { display: block; }
  .page-heading > a, .live-chip { margin-top: 13px; }
}
