.app-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-header .header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0 12px;
}

.app-header .header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-header .header-secondary {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 8px 0 10px;
  border-top: 1px solid var(--border);
  font-family: "Segoe UI", "Inter", sans-serif;
  font-size: 12px;
  color: var(--muted);
}

.app-header .language-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.app-header .language-picker select {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.app-header .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  margin-left: auto;
  text-align: right;
}

.app-header .user-name {
  color: var(--text);
  font-size: 14px;
}

.app-header .user-menu {
  position: relative;
}

.app-header .user-menu summary {
  list-style: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 10px;
}

.app-header .user-menu summary::-webkit-details-marker {
  display: none;
}

.app-header .user-menu[open] summary {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
}

.app-header .user-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 140px;
  padding: 8px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  z-index: 5;
}

.app-header .user-menu-item {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
}

.app-header .user-menu-item:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}

.app-header .service-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 0;
  font-size: 12px;
}

.app-header .service-select select {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  min-width: 220px;
}

.app-header .service-empty {
  font-size: 13px;
}

.logo {
  font-weight: 700;
  font-size: 18px;
}

.app-sidebar {
  width: 220px;
  padding: 24px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  min-height: 0;
  height: 100%;
  flex: 0 0 auto;
}

.app-sidebar ul li {
  margin: 12px 0;
}

.content-wrapper {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1;
  width: 100%;
  align-items: stretch;
}

.content {
  flex: 1;
  padding: 24px;
  min-width: 0;
}

.app-footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
}

.app-shell {
  display: flex;
  flex: 1;
  min-height: 0;
}

.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.ticket-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.ticket-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.help-script {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 6px;
}

.help-script p {
  margin: 0;
  color: var(--text);
}

.help-script ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.designer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.landing-page {
  background: #f8fafc;
  color: var(--text);
}

.landing-container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.landing-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 20;
}

.landing-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}

.landing-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.landing-tagline {
  color: var(--muted);
  font-size: 13px;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}


.landing-language-picker select {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.landing-nav a:not(.btn) {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.landing-nav a:not(.btn):hover {
  color: var(--text);
}

.landing-hero {
  padding: 96px 0 72px;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 55%),
    radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.12), transparent 45%);
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.landing-hero h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 16px;
  line-height: 1.15;
}

.landing-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 12px;
}

.landing-lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.landing-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.landing-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  background: #fff;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.landing-stats strong {
  display: block;
  font-size: 20px;
}

.landing-hero-card {
  display: flex;
  justify-content: center;
}

.landing-section {
  padding: 64px 0;
}

.landing-section-alt {
  background: #eef2ff;
}

.landing-subtitle {
  color: var(--muted);
  margin-top: 8px;
}

.landing-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.landing-steps {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.landing-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-weight: 700;
  margin-bottom: 12px;
}

.landing-plans {
  display: grid;
  gap: 24px;
}

.landing-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 48px 0 32px;
}

.landing-footer a {
  color: #e2e8f0;
}

.landing-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.landing-footer-grid h4 {
  margin-bottom: 12px;
}

.landing-footer-grid ul {
  display: grid;
  gap: 8px;
}

.landing-footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #94a3b8;
  font-size: 14px;
}

@media (max-width: 960px) {
  .app-shell {
    flex-direction: column;
  }

  .app-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .ticket-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .landing-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-nav {
    width: 100%;
    justify-content: flex-start;
  }
}
