:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --input-bg: #ffffff;
  --surface-alt: #eef2f7;
  --border: #d8e0ea;
  --text: #1a2433;
  --muted: #5c6b7f;
  --accent: #1d6fd4;
  --accent-soft: rgba(29, 111, 212, 0.1);
  --ok: #15803d;
  --ok-bg: #dcfce7;
  --ok-fg: #166534;
  --bad: #dc2626;
  --bad-bg: #fee2e2;
  --bad-fg: #991b1b;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --warn-fg: #92400e;
  --off-bg: #e8edf3;
  --off-fg: #64748b;
  --flash-bg: #e8f2fc;
  --shadow-sm: 0 1px 3px rgba(26, 36, 51, 0.06);
  --shadow-panel: 0 4px 24px rgba(26, 36, 51, 0.08);
  --backdrop: rgba(26, 36, 51, 0.35);
  --sidebar-width: 17.5rem;
  --sidebar-collapsed: 3.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-alt);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.lang-btn:hover {
  background: var(--panel);
}

.lang-btn.is-active {
  background: var(--panel);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.lang-btn .fi {
  font-size: 1.15rem;
  border-radius: 2px;
  overflow: hidden;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
}

.brand-text h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
}

.product-tagline {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--surface-alt);
  text-decoration: none;
}

/* Buttons */

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font: inherit;
  border-radius: 8px;
  border: none;
  padding: 0.55rem 1.1rem;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
}

button.secondary,
.btn.secondary {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
}

button.secondary:hover,
.btn.secondary:hover {
  background: var(--surface-alt);
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

/* Hero */

.hero {
  padding: 3.5rem 1.5rem 4rem;
  background: linear-gradient(180deg, var(--surface-alt) 0%, var(--bg) 70%);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-copy .lead {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-panel);
  width: 100%;
  max-width: 420px;
}

.hero-card img {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 1rem;
}

.hero-card .product-name {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.hero-card .product-tagline {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* Stats */

.stats-bar {
  max-width: 1100px;
  margin: -2rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.dashboard-stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.dashboard-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.dashboard-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

/* Sections */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-alt .section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Feature grid */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.feature-icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

/* Benefits */

.benefits-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.benefit-check {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.benefits-list strong {
  display: block;
  margin-bottom: 0.2rem;
}

.benefits-list span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Table */

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.devices-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.devices-table th,
.devices-table td {
  text-align: left;
  padding: 0.85rem 1.25rem;
  vertical-align: middle;
}

.devices-table thead tr {
  border-bottom: 1px solid var(--border);
}

.devices-table tbody tr {
  box-shadow: inset 0 -1px 0 var(--border);
}

.devices-table tbody tr:hover {
  background: var(--surface-alt);
}

.devices-table th {
  color: var(--muted);
  font-weight: 600;
  background: var(--surface-alt);
}

/* Badges */

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.ok {
  background: var(--ok-bg);
  color: var(--ok-fg);
}

.badge.warn {
  background: var(--warn-bg);
  color: var(--warn-fg);
}

/* Licensing */

.license-package {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 1rem 1.25rem;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.license-package-stat {
  text-align: center;
  min-width: 7rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.license-package-stat-accent .license-package-value {
  color: var(--accent);
}

.license-package-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.license-package-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.license-package-copy {
  margin: 0;
  font-size: 0.95rem;
  max-width: 36rem;
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.license-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.license-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.license-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.flash {
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  background: var(--flash-bg);
  border: 1px solid rgba(29, 111, 212, 0.35);
  font-size: 0.9rem;
}

/* Pricing */

.pricing-block {
  margin-bottom: 2.5rem;
}

.pricing-block:last-child {
  margin-bottom: 0;
}

.pricing-subtitle {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.pricing-intro {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.pricing-table td:last-child,
.pricing-table th:last-child {
  text-align: center;
}

.pricing-table-compact td:last-child,
.pricing-table-compact th:last-child {
  text-align: left;
}

.pricing-row-starter {
  background: var(--accent-soft);
}

.pricing-row-unlimited td {
  border-top: 2px solid var(--border);
}

.term-discount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.term-discount-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.term-discount-card-featured {
  border-color: rgba(29, 111, 212, 0.45);
  box-shadow: var(--shadow-panel);
}

.term-discount-term {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.term-discount-value {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}

.term-discount-card-featured .term-discount-value {
  color: var(--text);
}

.term-discount-note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
}

/* Contact */

body.contact-modal-open {
  overflow: hidden;
}

.contact-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 720px;
  margin: 0 auto;
}

.contact-picker-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contact-picker-card:hover {
  box-shadow: var(--shadow-panel);
  transform: translateY(-2px);
}

.contact-picker-card-sales:hover {
  border-color: rgba(29, 111, 212, 0.45);
}

.contact-picker-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-picker-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.contact-picker-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.contact-picker-card p {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-open-btn {
  width: 100%;
  max-width: 15rem;
}

/* Contact modal */

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 36, 51, 0.45);
  backdrop-filter: blur(4px);
}

.contact-modal-panel {
  position: relative;
  width: min(100%, 560px);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(26, 36, 51, 0.18);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
}

.contact-modal.is-open .contact-modal-panel {
  transform: translateY(0) scale(1);
}

.contact-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1;
}

.contact-modal-close:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.contact-modal-close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.contact-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0;
  padding-right: 3.5rem;
}

.contact-modal-logo {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  flex-shrink: 0;
}

.contact-modal-heading h3 {
  margin: 0.35rem 0 0.2rem;
  font-size: 1.25rem;
}

.contact-modal-subtitle {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.contact-modal-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-modal-badge-sales {
  background: var(--accent-soft);
  color: var(--accent);
}

.contact-modal-badge-support {
  background: var(--ok-bg);
  color: var(--ok-fg);
}

.contact-form-body {
  padding: 1.25rem 1.5rem 0.5rem;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.contact-form .form-field {
  margin-bottom: 0.85rem;
}

.contact-form label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.label-optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.65rem 0.8rem;
  background: var(--input-bg);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #94a3b8;
}

.contact-form textarea {
  resize: vertical;
  min-height: 6.5rem;
  line-height: 1.5;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-turnstile-wrap {
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.contact-turnstile {
  min-height: 65px;
}

.contact-form .contact-flash {
  margin: 0 1.5rem;
}

.contact-form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  border-radius: 0 0 14px 14px;
}

.contact-form-footer .btn {
  min-width: 7.5rem;
}

.contact-honeypot {
  display: none !important;
}

button.small {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

/* Support portal (gateway tool layout) */

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.support-page {
  --flash-error-bg: #fef2f2;
}

.support-page--app {
  overflow: hidden;
}

.support-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.support-page--app .support-top-bar {
  display: none;
}

.support-top-home {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

.support-top-home:hover {
  color: var(--accent);
}

.support-page .login-panel {
  max-width: 520px;
  margin: 2rem auto 3rem;
  box-shadow: var(--shadow-panel);
}

.support-page .login-panel h1 {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
}

.support-page .login-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0 0;
  font-size: inherit;
  color: inherit;
}

.support-page .login-field-label {
  flex: 0 0 auto;
  min-width: 5.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.support-page .login-field input {
  flex: 1;
  min-width: 0;
  font: inherit;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.65rem 0.8rem;
  background: var(--input-bg);
  color: var(--text);
}

.support-page .login-panel button[type="submit"] {
  margin-top: 1.5rem;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 600;
}

.support-page .brand-block-login {
  flex-direction: column;
  text-align: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.support-page .brand-block-login .brand-logo-login {
  width: min(240px, 70vw);
  height: auto;
  max-height: 240px;
}

.support-page .app-shell {
  display: flex;
  min-height: 100vh;
}

.support-page .sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: width 0.2s ease;
  overflow: hidden;
}

.support-page .sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

.support-page .sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.support-page .sidebar-header .sidebar-toggle {
  align-self: flex-end;
}

.support-page .sidebar.collapsed .sidebar-header {
  align-items: center;
  padding: 0.5rem;
}

.support-page .sidebar-toggle {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: inherit;
}

.support-page .sidebar-toggle-icon {
  width: 1.125rem;
  height: 1.125rem;
}

.support-page .sidebar.collapsed .sidebar-toggle-icon {
  transform: rotate(180deg);
}

.support-page .sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  text-align: center;
  padding: 0.25rem 0 0.5rem;
}

.support-page .brand-logo-sidebar {
  width: 128px;
  height: 128px;
  flex-shrink: 0;
  transition: width 0.2s ease, height 0.2s ease;
}

.support-page .sidebar.collapsed .brand-logo-sidebar {
  width: 40px;
  height: 40px;
}

.support-page .sidebar-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.support-page .sidebar-brand-name {
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.25;
}

.support-page .sidebar-brand-tagline {
  font-weight: 500;
  font-size: 0.62rem;
  line-height: 1.25;
  color: var(--muted);
}

.support-page .sidebar.collapsed .sidebar-brand-text {
  display: none;
}

.support-page .sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0.65rem;
}

.support-page .nav-section {
  margin-bottom: 1rem;
}

.support-page .nav-section-title {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.35rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
}

.support-page .sidebar.collapsed .nav-section-title {
  height: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
}

.support-page .nav-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  margin-bottom: 0.35rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  font: inherit;
}

.support-page .nav-btn.secondary {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
}

.support-page .nav-btn.secondary:hover {
  background: var(--surface-alt);
}

.support-page .nav-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.support-page .nav-btn.active:hover {
  filter: brightness(1.05);
}

.support-page .nav-btn-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  fill: none;
  color: inherit;
}

.support-page .nav-btn-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.support-page .sidebar.collapsed .nav-btn {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  min-height: 2.5rem;
}

.support-page .sidebar.collapsed .nav-btn-label {
  display: none;
}

.support-page .sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}

.support-page .sidebar-user {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-page .sidebar.collapsed .sidebar-user {
  display: none;
}

.support-page .app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: auto;
}

.support-page .content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.support-page .content-header h1 {
  margin: 0;
  font-size: 1.35rem;
}

.support-page .content-header-text p {
  margin: 0.25rem 0 0;
}

.support-page .status-summary {
  font-size: 0.9rem;
  white-space: nowrap;
  padding-top: 0.25rem;
}

.support-page .content-main {
  flex: 1;
  padding: 1rem 1.5rem 2rem;
  overflow-x: auto;
}

.support-form-panel {
  margin-bottom: 1rem;
}

.support-form-panel .form-field {
  margin-bottom: 0.85rem;
}

.support-form-panel label,
.support-form-panel .form-field > span:first-child {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.support-form-panel input,
.support-form-panel textarea,
.support-form-panel select {
  width: 100%;
  font: inherit;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.65rem 0.8rem;
  background: var(--input-bg);
  color: var(--text);
}

.support-user-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.support-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.support-create-user-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.support-users-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem !important;
}

.support-users-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.support-users-count {
  font-size: 0.9rem;
}

.support-users-table-wrap {
  padding: 0 !important;
  overflow: hidden;
}

.support-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.support-users-table th,
.support-users-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.support-users-table th {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface-alt);
}

.support-users-table tbody tr:last-child td {
  border-bottom: none;
}

.support-users-table tbody tr:hover {
  background: var(--surface-alt);
}

.support-users-table-wrap .support-empty {
  padding: 1.5rem 1rem;
}

.support-create-user-panel {
  padding: 1.25rem 1.5rem 1.5rem;
}

.support-create-user-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.support-create-user-panel .muted {
  margin: 0 0 1rem;
}

.support-page .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}

.support-page .form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.support-page .form-grid label input,
.support-page .form-grid label select {
  font: inherit;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.65rem 0.8rem;
  background: var(--input-bg);
  color: var(--text);
}

.support-page .form-grid-full {
  grid-column: 1 / -1;
}

.support-page .dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.support-user-list {
  display: grid;
  gap: 0.5rem;
}

.support-user-row-info {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.support-user-row-info span {
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-ticket-list {
  display: grid;
  gap: 0.5rem;
}

.support-ticket-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
  font: inherit;
  color: inherit;
  box-shadow: var(--shadow-sm);
}

.support-ticket-item:hover {
  background: var(--surface-alt);
}

.support-ticket-item-subject {
  font-weight: 500;
}

.support-ticket-item-id,
.support-ticket-id {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.support-empty {
  padding: 1rem 0;
  text-align: center;
}

.support-ticket-detail {
  margin-bottom: 1rem;
}

.support-ticket-detail h4 {
  margin: 0.5rem 0;
}

.support-ticket-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.support-ticket-message {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem;
  margin: 0.75rem 0 0;
}

.support-ticket-item-customer {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.support-thread {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.support-thread-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.support-thread-support .support-ticket-message,
.support-thread-admin .support-ticket-message {
  border-color: var(--accent);
}

.support-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.support-attachment-image img {
  display: block;
  max-width: 100%;
  max-height: 12rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.support-attachment-file {
  display: inline-block;
  font-size: 0.85rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
}

.support-attachment-file:hover {
  border-color: var(--accent);
}

.support-file-list {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}

.support-file-list li {
  margin: 0.15rem 0;
}

.form-hint {
  font-size: 0.8rem;
  margin: 0.35rem 0 0;
}

.support-status-select,
.support-role-select {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: inherit;
}

.support-detail-customer {
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
}

.support-page .error {
  color: var(--bad);
  font-size: 0.9rem;
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

.brand-link:hover .brand-text h1 {
  color: var(--accent);
}

.site-nav .nav-current {
  color: var(--accent);
  font-weight: 600;
}

.badge.off {
  background: var(--off-bg);
  color: var(--off-fg);
}

.contact-form select {
  width: 100%;
  font: inherit;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.65rem 0.8rem;
  background: var(--input-bg);
  color: var(--text);
}

.flash.error {
  background: var(--bad-bg);
  border-color: rgba(220, 38, 38, 0.35);
  color: var(--bad-fg);
}

.hidden {
  display: none !important;
}

/* CTA */

.cta-section {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}

.cta-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.cta-section p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Footer */

.site-footer {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer strong {
  color: var(--text);
}

/* Cookie consent */

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 180;
  padding: 0 1rem 1rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-panel);
}

.cookie-consent-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.cookie-consent-message {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  max-width: 52rem;
}

.cookie-consent-actions {
  flex-shrink: 0;
}

.cookie-consent-actions .btn {
  min-width: 7rem;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .feature-grid,
  .license-grid,
  .term-discount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .license-package {
    grid-template-columns: 1fr 1fr;
  }

  .license-package-copy {
    grid-column: 1 / -1;
  }

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

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lang-switch {
    align-self: center;
  }

  .site-nav {
    justify-content: center;
  }

  .support-page .app-shell {
    flex-direction: column;
  }

  .support-page .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .support-page .sidebar.collapsed {
    width: 100%;
  }

  .support-page .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .support-page .nav-section {
    flex: 1 1 100%;
    margin-bottom: 0.5rem;
  }

  .support-page .nav-btn {
    width: auto;
    flex: 1 1 auto;
  }

  .support-user-form-grid,
  .support-page .form-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .benefits-list,
  .license-grid,
  .term-discount-grid {
    grid-template-columns: 1fr;
  }

  .license-package {
    grid-template-columns: 1fr;
  }

  .contact-picker {
    grid-template-columns: 1fr;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-footer {
    flex-direction: column-reverse;
  }

  .contact-form-footer .btn,
  .support-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .support-actions {
    flex-direction: column-reverse;
  }

  .contact-modal-header {
    flex-direction: column;
    text-align: center;
    padding-right: 1.5rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .stats-bar {
    margin-top: -1rem;
  }

  .cookie-consent {
    padding: 0 0.75rem 0.75rem;
  }

  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-actions .btn {
    width: 100%;
    min-width: 0;
  }
}
