:root {
  --primary-color: #ED0106;
  --accent-color: #5D6D7E;  
  --text-color: #212529;
  --link-color: #5D6D7E;
  --background-color: #FFFFFF;
  --hc-bg: #ffffff;
  --hc-surface: #ffffff;
  --hc-surface-2: #fafafa;
  --hc-border: rgba(0, 0, 0, 0.12);
  --hc-text: #111111;
  --hc-muted: #555555;
  --hc-primary: #ff1e1e;
  --hc-primary-soft: rgba(255, 30, 30, 0.12);
  --hc-success: #26d07c;
  --hc-warning: #ffb020;
  --hc-danger: #ff5a67;
  --hc-link: #111111;
  --hc-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  --hc-radius-lg: 22px;
  --hc-radius-md: 16px;
  --hc-radius-sm: 12px;
  --hc-max: 1440px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: #ffffff;
  color: var(--hc-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--hc-link);
  text-decoration: none;
}

a:hover {
  color: var(--hc-primary);
}

.hc-shell {
  max-width: var(--hc-max);
  margin: 0 auto;
  padding: 24px;
}

.hc-topbar,
.hc-card,
.hc-panel,
.hc-hero,
.hc-order-card,
.hc-table,
.hc-empty {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--hc-border);
  backdrop-filter: blur(8px);
  box-shadow: var(--hc-shadow);
}

.hc-topbar {
  border-radius: var(--hc-radius-lg);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 16px;
  z-index: 25;
  background: rgba(255, 255, 255, 0.96);
}

.hc-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hc-brand-mark {
  width: 190px;
  height: 52px;
  display: block;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hc-logo {
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

.hc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hc-nav.is-open {
  display: flex;
}

.hc-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--hc-text);
  border: 1px solid transparent;
}

.hc-nav a:hover,
.hc-nav a.is-active {
  background: rgba(255, 30, 30, 0.12);
  border-color: rgba(255, 30, 30, 0.35);
}

.hc-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.hc-sidebar,
.hc-main {
  min-width: 0;
}

.hc-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.hc-menu {
  border-radius: var(--hc-radius-lg);
  padding: 16px;
}

.hc-menu h3,
.hc-section-title,
.hc-card h3,
.hc-panel h3,
.hc-order-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.hc-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hc-menu li + li {
  margin-top: 8px;
}

.hc-menu a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--hc-text);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.hc-menu a span {
  margin-left: auto;
  color: var(--hc-muted);
}

.hc-menu a:hover,
.hc-menu a.is-active {
  border-color: rgba(255, 30, 30, 0.35);
  background: rgba(255, 30, 30, 0.08);
}

.hc-hero {
  border-radius: 28px;
  padding: 28px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 24px;
}

.hc-hero h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
  margin: 0 0 16px;
}

.hc-hero p,
.hc-muted {
  color: var(--hc-muted);
}

.hc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.hc-btn:hover {
  transform: translateY(-1px);
}

.hc-btn-primary {
  background: var(--hc-primary);
  color: #fff;
}

.hc-btn-secondary {
  background: #ffffff;
  color: var(--hc-text);
  border-color: var(--hc-border);
}

.hc-grid {
  display: grid;
  gap: 18px;
}

.hc-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hc-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hc-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hc-card,
.hc-panel,
.hc-order-card,
.hc-empty,
.hc-table {
  border-radius: var(--hc-radius-lg);
  padding: 20px;
}

.hc-reveal {
  animation: hcFadeUp 0.42s ease both;
}

.hc-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.hc-alert {
  border-left: 4px solid var(--hc-primary);
}

.hc-alert-warning {
  border-left-color: var(--hc-warning);
}

.hc-alert-success {
  border-left-color: var(--hc-success);
}

.hc-empty {
  display: grid;
  gap: 10px;
  text-align: center;
  justify-items: center;
  padding: 36px 24px;
}

.hc-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hc-stat strong {
  font-size: 1.8rem;
}

.hc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--hc-border);
  color: var(--hc-text);
  font-size: 0.85rem;
}

.hc-chip.is-success { background: rgba(38, 208, 124, 0.12); color: #7dffc0; }
.hc-chip.is-warning { background: rgba(255, 176, 32, 0.12); color: #ffd591; }
.hc-chip.is-danger { background: rgba(255, 90, 103, 0.12); color: #ffbac0; }

.hc-table {
  overflow: hidden;
}

.hc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--hc-muted);
}

.hc-tabs {
  display: grid;
  gap: 16px;
}

.hc-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hc-tab {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--hc-text);
  border: 1px solid transparent;
}

.hc-tab.is-active {
  background: rgba(255, 30, 30, 0.12);
  border-color: rgba(255, 30, 30, 0.24);
}

.hc-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 7, 14, 0.72);
  z-index: 50;
}

.hc-modal.is-open {
  display: flex;
}

.hc-modal-card {
  width: min(720px, 100%);
  border-radius: 24px;
  background: rgba(10, 18, 34, 0.96);
  border: 1px solid var(--hc-border);
  box-shadow: var(--hc-shadow);
  overflow: hidden;
}

.hc-modal-header,
.hc-modal-body {
  padding: 20px;
}

.hc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hc-form-group label {
  color: var(--hc-muted);
  font-size: 0.88rem;
}

.hc-form-group input,
.hc-form-group select,
.hc-form-group textarea {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--hc-border);
  background: #ffffff;
  color: var(--hc-text);
  padding: 12px 14px;
}

.hc-captcha {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.hc-table table {
  width: 100%;
  border-collapse: collapse;
}

.hc-table th,
.hc-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.hc-table th {
  color: var(--hc-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hc-footer {
  padding: 26px 0 16px;
  color: var(--hc-muted);
  text-align: center;
}

@keyframes hcFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hc-mobile-toggle {
  display: none;
}

@media (max-width: 1180px) {
  .hc-layout {
    grid-template-columns: 1fr;
  }

  .hc-sidebar {
    position: relative;
    top: 0;
  }

  .hc-hero,
  .hc-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .hc-shell {
    padding: 14px;
  }

  .hc-brand-mark {
    width: 160px;
    height: 42px;
  }

  .hc-topbar {
    flex-wrap: wrap;
  }

  .hc-mobile-toggle {
    display: inline-flex;
  }

  .hc-nav,
  .hc-menu {
    width: 100%;
  }

  .hc-nav {
    display: none;
  }

  .hc-section-header {
    align-items: start;
    flex-direction: column;
  }

  .hc-hero,
  .hc-grid-4,
  .hc-grid-3,
  .hc-grid-2 {
    grid-template-columns: 1fr;
  }
}
