@font-face {
  font-family: "Anticva";
  src: url("./fonts/Anticva-Regular.otf") format("opentype");
  font-display: swap;
}

:root {
  --owner-ink: #0b0d0f;
  --owner-panel: #15191d;
  --owner-panel-soft: #101418;
  --owner-panel-raised: #1a1f24;
  --owner-porcelain: #f1eee8;
  --owner-muted: #969ca2;
  --owner-line: rgba(241, 238, 232, 0.12);
  --owner-line-strong: rgba(241, 238, 232, 0.2);
  --owner-wine: #7a1638;
  --owner-wine-light: #a62a52;
  --owner-steel: #6ea8e8;
  --owner-gold: #c6a15b;
}

body.owner-console {
  background: var(--owner-ink) !important;
  background-image: none !important;
  color: var(--owner-porcelain);
  letter-spacing: 0;
  scrollbar-color: rgba(110, 168, 232, 0.5) #111519;
  scrollbar-width: thin;
}

body.owner-console::before,
body.owner-console::after {
  display: none !important;
}

.owner-console *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.owner-console *::-webkit-scrollbar-track {
  background: #111519;
}

.owner-console *::-webkit-scrollbar-thumb {
  border: 2px solid #111519;
  border-radius: 999px;
  background: rgba(110, 168, 232, 0.5);
}

.owner-console *::-webkit-scrollbar-thumb:hover {
  background: rgba(110, 168, 232, 0.72);
}

.owner-console .app-top-safe-area-cover {
  background: rgba(11, 13, 15, 0.97) !important;
}

.owner-console .app-top-header {
  border-color: var(--owner-line) !important;
  background: rgba(11, 13, 15, 0.92) !important;
  box-shadow: none !important;
}

.owner-console .app-top-header > div {
  max-width: 1460px !important;
}

.owner-console .app-top-header > div > a.group > span:first-child {
  background: none !important;
  color: var(--owner-porcelain) !important;
  font-family: "Anticva", Georgia, serif;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
}

.owner-console .app-top-header .nav-link::after {
  left: 1rem !important;
  right: 1rem !important;
  height: 1px !important;
  border-radius: 0 !important;
  background: var(--owner-steel) !important;
}

.owner-console .app-notification-button,
.owner-console .app-menu-button {
  border: 1px solid var(--owner-line) !important;
  border-radius: 7px !important;
  background: rgba(241, 238, 232, 0.04) !important;
  box-shadow: none !important;
}

.owner-console-shell {
  width: min(1460px, 100%);
  max-width: none !important;
  padding-top: 104px !important;
}

.owner-console-header {
  margin-bottom: 22px !important;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--owner-line);
}

.owner-console-header h1,
.owner-console-header h1 span {
  background: none !important;
  color: var(--owner-porcelain) !important;
  font-family: "Anticva", Georgia, serif;
  font-size: 3.45rem !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  -webkit-text-fill-color: currentColor !important;
}

.owner-console-header p {
  max-width: 720px;
  color: var(--owner-muted) !important;
  line-height: 1.6;
}

.owner-console-header > div > div:last-child {
  align-items: center;
}

.owner-console button,
.owner-console a {
  letter-spacing: 0;
}

.owner-console-header button,
.owner-filter-panel button,
.owner-invites-panel button,
.owner-user-card button,
.owner-user-card a,
#ownerUserDrawer button {
  min-height: 40px;
  border-radius: 6px !important;
  box-shadow: none !important;
}

.owner-console #refreshBtn,
.owner-console #createInviteBtn,
.owner-console #ownerUserSaveBtn {
  border: 1px solid rgba(198, 161, 91, 0.42) !important;
  background: rgba(198, 161, 91, 0.11) !important;
  color: #e4cc9b !important;
}

.owner-console #auditLogBtn,
.owner-console #refreshInvitesBtn,
.owner-console #resetFiltersBtn {
  border: 1px solid var(--owner-line) !important;
  background: var(--owner-panel-soft) !important;
  color: #c6cbd0 !important;
}

.owner-console #logoutBtn {
  border: 1px solid rgba(166, 42, 82, 0.34) !important;
  background: rgba(122, 22, 56, 0.11) !important;
  color: #dfabbc !important;
}

.owner-console-header button:hover,
.owner-filter-panel button:hover,
.owner-invites-panel button:hover,
.owner-user-card button:hover,
.owner-user-card a:hover,
#ownerUserDrawer button:hover {
  filter: brightness(1.12);
  transform: none !important;
}

.owner-console #statusPill,
.owner-console #updatedAtPill {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 10px 0 0 !important;
  box-shadow: none !important;
}

.owner-console #statusPill {
  color: #c5cacf !important;
}

.owner-console #updatedAtPill {
  color: #717981 !important;
}

.owner-console #errorBox {
  border: 1px solid rgba(166, 42, 82, 0.35) !important;
  border-radius: 7px !important;
  background: rgba(122, 22, 56, 0.12) !important;
  color: #e3b4c3 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.owner-console .glass-card {
  overflow: visible;
  border: 1px solid var(--owner-line) !important;
  border-radius: 8px !important;
  background: var(--owner-panel) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: border-color 160ms ease !important;
}

.owner-console .glass-card::before {
  display: none !important;
}

.owner-console .glass-card:hover {
  border-color: var(--owner-line-strong) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18) !important;
  transform: none !important;
}

.owner-console h2,
.owner-console .owner-table-panel h2 {
  color: var(--owner-porcelain) !important;
  font-family: "Anticva", Georgia, serif;
  font-weight: 400 !important;
  letter-spacing: 0;
}

.owner-console .owner-metrics {
  gap: 10px !important;
}

.owner-console .metric-card {
  min-height: 128px;
  padding: 18px !important;
  border-top-width: 2px !important;
}

.owner-console .metric-card:nth-child(1) { border-top-color: rgba(198, 161, 91, 0.58) !important; }
.owner-console .metric-card:nth-child(2) { border-top-color: rgba(110, 168, 232, 0.52) !important; }
.owner-console .metric-card:nth-child(3) { border-top-color: rgba(122, 22, 56, 0.68) !important; }
.owner-console .metric-card:nth-child(4) { border-top-color: rgba(198, 161, 91, 0.36) !important; }
.owner-console .metric-card:nth-child(5) { border-top-color: rgba(110, 168, 232, 0.32) !important; }

.owner-console .metric-card > div:first-child {
  color: #777f86 !important;
  font-size: 0.67rem !important;
  font-weight: 700;
  letter-spacing: 0;
}

.owner-console .metric-card > div:nth-child(2) {
  color: var(--owner-porcelain) !important;
  font-family: "Anticva", Georgia, serif;
  font-size: 2rem !important;
  font-weight: 400 !important;
  line-height: 1.05;
}

.owner-console .metric-card p {
  color: #777f86 !important;
  line-height: 1.45;
}

.owner-console .owner-filter-panel,
.owner-console .owner-invites-panel {
  padding: 20px !important;
}

.owner-console .owner-filter-panel {
  border-top: 2px solid rgba(110, 168, 232, 0.4) !important;
}

.owner-console .owner-invites-panel {
  border-top: 2px solid rgba(198, 161, 91, 0.5) !important;
}

.owner-console .owner-invites-panel > div:first-child > div:first-child > div:first-child {
  border: 1px solid rgba(198, 161, 91, 0.28) !important;
  border-radius: 4px !important;
  background: rgba(198, 161, 91, 0.08) !important;
  color: #d8bd85 !important;
}

.owner-console label {
  color: #c9cdd1 !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
}

.owner-console .input-glass,
.owner-console select.ui-select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(241, 238, 232, 0.13) !important;
  border-radius: 6px !important;
  background: #0d1114 !important;
  color: var(--owner-porcelain) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.owner-console .input-glass:hover,
.owner-console select.ui-select:hover {
  border-color: rgba(241, 238, 232, 0.23) !important;
  background: #101519 !important;
}

.owner-console .input-glass:focus,
.owner-console select.ui-select:focus {
  border-color: rgba(110, 168, 232, 0.7) !important;
  background: #101519 !important;
  box-shadow: 0 0 0 3px rgba(110, 168, 232, 0.1) !important;
}

.owner-console .select-wrap::after {
  color: #737b82 !important;
}

.owner-console select option {
  background: #111519;
  color: var(--owner-porcelain);
}

.owner-console #filterHint,
.owner-console #tableCount {
  color: #777f86 !important;
}

.owner-console .owner-insights {
  gap: 12px !important;
}

.owner-console .owner-insights > .glass-card {
  min-height: 160px;
  padding: 20px !important;
  border-left: 2px solid rgba(122, 22, 56, 0.58) !important;
}

.owner-console .owner-insights > .glass-card:nth-child(2) {
  border-left-color: rgba(198, 161, 91, 0.5) !important;
}

.owner-console .owner-insights > .glass-card:nth-child(3) {
  border-left-color: rgba(110, 168, 232, 0.48) !important;
}

.owner-console .owner-table-panel {
  overflow: hidden !important;
}

.owner-console .owner-table-panel > div:first-child {
  border-color: var(--owner-line) !important;
  background: #13171b;
}

.owner-console .analytics-table {
  border-spacing: 0;
  background: #101418;
}

.owner-console .analytics-table th,
.owner-console .analytics-table td {
  border-color: var(--owner-line) !important;
}

.owner-console .analytics-table th {
  background: #151a1e !important;
  color: #7f878e !important;
  font-size: 0.67rem !important;
  letter-spacing: 0 !important;
}

.owner-console .analytics-table td {
  color: #c8cdd1 !important;
}

.owner-console .analytics-table tbody tr:hover {
  background: rgba(110, 168, 232, 0.04) !important;
}

.owner-users-page #invitesList {
  gap: 8px !important;
}

.owner-users-page .owner-invite-card {
  border: 1px solid var(--owner-line) !important;
  border-radius: 7px !important;
  background: var(--owner-panel-soft) !important;
  box-shadow: none !important;
}

.owner-users-page #inviteResultBox,
.owner-users-page #invitesEmptyState,
.owner-users-page #emptyState {
  border: 1px solid var(--owner-line) !important;
  border-radius: 7px !important;
  background: var(--owner-panel-soft) !important;
  box-shadow: none !important;
}

.owner-users-page #usersList {
  gap: 12px !important;
}

.owner-users-page .owner-user-card {
  min-width: 0;
  padding: 20px !important;
  border-left: 2px solid rgba(110, 168, 232, 0.35) !important;
}

.owner-users-page .owner-user-card > div:first-child > div:first-child {
  border-radius: 7px !important;
  background: rgba(110, 168, 232, 0.1) !important;
  color: #c8def4 !important;
  box-shadow: inset 0 0 0 1px rgba(110, 168, 232, 0.2) !important;
}

.owner-users-page .owner-user-card .text-lg {
  color: var(--owner-porcelain) !important;
  font-family: "Anticva", Georgia, serif;
  font-size: 1.35rem !important;
  font-weight: 400 !important;
}

.owner-users-page .owner-user-detail {
  min-width: 0;
  border: 0 !important;
  border-bottom: 1px solid var(--owner-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 9px 2px !important;
  box-shadow: none !important;
}

.owner-users-page .owner-user-detail > div:first-child {
  color: #6f777e !important;
  letter-spacing: 0 !important;
}

.owner-users-page .owner-user-controls {
  margin: 18px -20px -20px !important;
  border: 0 !important;
  border-top: 1px solid var(--owner-line) !important;
  border-radius: 0 0 8px 8px !important;
  background: #111519 !important;
  padding: 16px 20px !important;
  box-shadow: none !important;
}

.owner-users-page .owner-user-controls button,
.owner-users-page .owner-user-controls a {
  border: 1px solid var(--owner-line) !important;
  background: rgba(241, 238, 232, 0.035) !important;
  color: #c8cdd1 !important;
}

.owner-users-page .owner-user-controls button:first-child {
  border-color: rgba(198, 161, 91, 0.3) !important;
  background: rgba(198, 161, 91, 0.08) !important;
  color: #dec58f !important;
}

.owner-users-page #ownerUserDrawerBackdrop {
  background: rgba(3, 5, 6, 0.82) !important;
  backdrop-filter: blur(5px);
}

.owner-users-page #ownerUserDrawerPanel {
  border-color: var(--owner-line) !important;
  background: #0f1215 !important;
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.42) !important;
}

.owner-users-page #ownerUserDrawerPanel > header,
.owner-users-page #ownerUserTabs {
  border-color: var(--owner-line) !important;
  background: #13171a;
}

.owner-users-page #ownerUserDrawerTitle,
.owner-users-page #ownerUserDrawerPanel h3 {
  color: var(--owner-porcelain) !important;
  font-family: "Anticva", Georgia, serif;
  font-weight: 400 !important;
}

.owner-users-page #ownerUserDrawerAvatar,
.owner-users-page #ownerUserDrawerCloseBtn {
  border-radius: 7px !important;
  background: rgba(110, 168, 232, 0.09) !important;
  color: #c8def4 !important;
  box-shadow: inset 0 0 0 1px var(--owner-line) !important;
}

.owner-users-page #ownerUserTabs .owner-user-tab {
  min-height: 36px;
  border-radius: 5px !important;
}

.owner-users-page #ownerUserDrawer [class*="rounded-2xl"],
.owner-users-page #ownerUserDrawer [class*="rounded-xl"] {
  border-radius: 7px !important;
}

.owner-users-page #ownerUserDrawer [class*="bg-white/"] {
  background: rgba(241, 238, 232, 0.035) !important;
}

.owner-users-page #ownerUserProfileForm,
.owner-users-page #ownerUserOverviewTab > div:last-child {
  border-color: var(--owner-line) !important;
}

.owner-console .app-footer {
  max-width: 1460px;
}

@media (min-width: 1380px) {
  .owner-users-page #usersList {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1100px) {
  .owner-console-header h1,
  .owner-console-header h1 span {
    font-size: 3rem !important;
  }

  .owner-console .owner-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .owner-console-shell {
    padding-top: 92px !important;
  }

  .owner-console-header {
    margin-bottom: 16px !important;
    padding-bottom: 18px;
  }

  .owner-console-header h1,
  .owner-console-header h1 span {
    font-size: 2.45rem !important;
  }

  .owner-console-header > div > div:last-child {
    width: 100%;
  }

  .owner-console-header > div > div:last-child button {
    flex: 1 1 auto;
  }

  .owner-console .owner-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .owner-console .metric-card {
    min-height: 116px;
    padding: 15px !important;
  }

  .owner-console .metric-card > div:nth-child(2) {
    font-size: 1.75rem !important;
  }

  .owner-console .owner-filter-panel,
  .owner-console .owner-invites-panel {
    padding: 16px !important;
  }

  .owner-users-page .owner-user-card {
    padding: 16px !important;
  }

  .owner-users-page .owner-user-controls {
    margin: 16px -16px -16px !important;
    padding: 14px 16px !important;
  }
}

@media (max-width: 480px) {
  .owner-console-shell {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .owner-console .owner-metrics {
    grid-template-columns: 1fr !important;
  }

  .owner-console .metric-card {
    min-height: 104px;
  }

  .owner-users-page .owner-user-card > div:first-child {
    gap: 12px !important;
  }

  .owner-users-page .owner-user-card > div:first-child > div:first-child {
    width: 48px !important;
    height: 48px !important;
  }

  .owner-users-page .owner-user-controls .flex.flex-wrap {
    align-items: stretch;
  }

  .owner-users-page .owner-user-controls button,
  .owner-users-page .owner-user-controls a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .owner-console *,
  .owner-console *::before,
  .owner-console *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
