:root {
  --surface: #f8f9ff;
  --surface-dim: #fff3e3;
  --surface-low: #ffffff;
  --surface-panel: #fff8ef;
  --surface-panel-strong: #fff0dd;
  --surface-soft: #ffe7c2;
  --text: #0b1c30;
  --text-soft: #434654;
  --outline: #c3c5d7;
  --primary: #ff8a00;
  --primary-strong: #a14f00;
  --primary-soft: #fff3e3;
  --accent: #ff8a00;
  --accent-soft: #fff3e3;
  --shadow: 0 18px 45px rgba(11, 28, 48, 0.08);
  --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --sidebar-width: 240px;
  --content-width: 1200px;
  --font-display: "Inter", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 138, 0, 0.08), transparent 30%),
    linear-gradient(180deg, #fbfcff 0%, var(--surface) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.svg-icon {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.sidebar {
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  padding: 28px 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  background: #ffffff;
  border: 1px solid rgba(195, 197, 215, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 6px 18px;
}

.brand-mark {
  width: 100%;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  display: block;
}

.brand-logo {
  width: 100%;
  height: auto;
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
}

.brand-copy span {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.sidebar-nav,
.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-footer {
  margin-top: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-soft);
  font-weight: 600;
  letter-spacing: 0;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-item.secondary {
  min-height: 44px;
  font-size: 0.96rem;
  color: var(--text-soft);
}

.nav-item:hover {
  background: #F2EDED;
  color: var(--text);
}

.nav-item.active {
  background: #F2EDED;
  color: var(--text);
  font-weight: 700;
}



.nav-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: inherit;
  font-size: 1.08rem;
  flex: 0 0 24px;
}

.nav-item.active .nav-icon {
  color: inherit;
}

.nav-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: #a0a4b8;
  margin: 10px 0 4px 12px;
  display: block;
}

.nav-icon .svg-icon {
  width: 26px;
  height: 26px;
}

.workspace {
  min-width: 0;
  padding: 0 24px 32px 0;
  width: 100%;
}

.site-footer {
  max-width: var(--content-width);
  margin: 26px auto 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(195, 197, 215, 0.58);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.topbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 14px;
}

.search-shell {
  position: relative;
  width: min(100%, 380px);
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 18px 0 50px;
  border: 1px solid var(--outline);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  outline: none;
}

.search-input::placeholder {
  color: rgba(67, 70, 84, 0.52);
}

.search-input:focus {
  border-color: rgba(255, 138, 0, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.1), var(--shadow-soft);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(67, 70, 84, 0.8);
}

.topbar-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.lang-button {
  height: 46px;
  min-width: 46px;
  padding: 0 14px;
  border: 1px solid rgba(195, 197, 215, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-soft);
}

.icon-button:hover,
.lang-button:hover {
  border-color: rgba(255, 138, 0, 0.4);
  box-shadow: 0 12px 20px rgba(11, 28, 48, 0.08);
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fefefe, #d8e4fb);
  border: 1px solid rgba(195, 197, 215, 0.9);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  color: var(--primary-strong);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 120px;
  z-index: 20;
  min-width: 170px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid rgba(195, 197, 215, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.lang-dropdown li {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-soft);
}

.lang-dropdown li:hover {
  background: rgba(255, 138, 0, 0.1);
  color: var(--text);
}

.hidden {
  display: none !important;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

.hero {
  padding: 10px 0 4px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 3.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
  color: var(--text);
}

.hero-copy {
  max-width: 820px;
  margin: 12px 0 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.metric-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(195, 197, 215, 0.85);
  box-shadow: var(--shadow-soft);
}

.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.metric-label {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
}

.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(195, 197, 215, 0.85);
  box-shadow: var(--shadow-soft);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(195, 197, 215, 0.5);
}

.panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel-subtle {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--text-soft);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(195, 197, 215, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-soft);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.filter-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 138, 0, 0.35);
}

.filter-btn.active {
  background: linear-gradient(180deg, #ffffff, var(--primary-soft));
  border-color: rgba(255, 138, 0, 0.35);
  color: var(--primary-strong);
  box-shadow: var(--shadow-soft);
}

.tools-grid {
  display: grid;
  grid-template-columns: minmax(260px, 420px);
  gap: 14px;
}

.tool-card {
  position: relative;
  min-height: 190px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(195, 197, 215, 0.85);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 138, 0, 0.35);
  box-shadow: var(--shadow);
}

.tool-card.hidden {
  display: none;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-card,
.contact-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 248, 239, 0.78);
  border: 1px solid rgba(195, 197, 215, 0.65);
}

.faq-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
}

.faq-card p,
.contact-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin: 12px 0;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ff9d1f, var(--accent));
  color: #fff;
  font-weight: 700;
  box-shadow: none;
}

.contact-mail:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.tool-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 138, 0, 0.14);
  color: #a14f00;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tool-badge.beta {
  background: rgba(255, 138, 0, 0.14);
  color: #a14f00;
}

.tool-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff9f1, #ffe7c2);
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  color: var(--accent);
  margin-bottom: 18px;
}

.tool-icon .svg-icon {
  width: 28px;
  height: 28px;
}

.tool-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0;
}

.tool-description {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
  }

  .workspace {
    padding: 16px;
    padding-top: 76px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    height: 100vh;
    padding: 24px 20px;
    background: #ffffff;
    border: none;
    border-radius: 0;
    box-shadow: 2px 0 24px rgba(11, 28, 48, 0.15);
    z-index: 10001;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 28, 48, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  body.menu-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(195, 197, 215, 0.5);
    z-index: 9999;
  }

  .mobile-brand {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--text);
    border-radius: 10px;
    padding: 0;
  }

  .menu-toggle:hover {
    background: rgba(195, 197, 215, 0.2);
  }
}

@media (min-width: 1101px) {
  .mobile-header,
  .sidebar-overlay {
    display: none !important;
  }
}

@media (max-width: 860px) {
  .hero-metrics,
  .tools-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-head,
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

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

@media (max-width: 680px) {
  .hero-metrics,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.6rem);
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .contact-mail {
    width: 100%;
    justify-content: center;
  }
}
