:root {
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-soft: rgba(247, 250, 252, 0.9);
  --ink: #162231;
  --muted: #5f7184;
  --line: rgba(22, 34, 49, 0.1);
  --accent: #0b8a7d;
  --accent-deep: #143f52;
  --alert: #c96b1f;
  --danger: #b54332;
  --ok: #1f7a45;
  --info: #325ca8;
  --shadow: 0 26px 80px rgba(12, 28, 47, 0.12);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(11, 138, 125, 0.16), transparent 24%),
    radial-gradient(circle at bottom right, rgba(50, 92, 168, 0.13), transparent 28%),
    linear-gradient(180deg, #f3f7fb 0%, #e6edf4 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  background: none;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.page-shell,
.login-section,
.app-screen {
  min-height: 100vh;
}

.login-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.brand-panel,
.login-panel {
  padding: 52px;
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 18%),
    linear-gradient(155deg, rgba(20, 63, 82, 0.99), rgba(7, 28, 47, 0.99));
  color: #f7fbff;
  position: relative;
  overflow: hidden;
}

.brand-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  top: 10%;
  width: 240px;
  height: 240px;
  border-radius: 42px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  transform: rotate(22deg);
}

.brand-panel h1,
.sidebar h2,
.hero h3,
.section-heading h3,
.login-panel h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.brand-panel h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.brand-logo {
  width: 124px;
  height: 124px;
  object-fit: contain;
  border-radius: 28px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.brand-stack {
  position: relative;
  z-index: 1;
}

.brand-chip,
.panel-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.brand-chip {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fbff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lead {
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(247, 251, 255, 0.84);
}

.login-note {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 251, 255, 0.88);
  max-width: 34rem;
}

.inline-link {
  color: #dffaf5;
}

.feature-list,
.stack-form,
.filters,
.form-grid,
.quick-list,
.report-list,
.status-board,
.settings-grid,
.ticket-list,
.chip-list {
  display: grid;
  gap: 14px;
}

.feature-list {
  margin-top: 28px;
}

.feature-list article,
.quick-item,
.report-item,
.status-item,
.ticket-card {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.feature-list article {
  background: rgba(255, 255, 255, 0.05);
}

.quick-item,
.report-item,
.status-item,
.ticket-card {
  background: rgba(255, 255, 255, 0.62);
}

.feature-list span,
.sidebar-copy,
.message,
.empty-state,
.muted,
small,
.quick-item p,
.report-item p,
.status-item p,
.ticket-card p,
.system-line {
  color: var(--muted);
}

.brand-panel .eyebrow,
.feature-list span {
  color: rgba(247, 251, 255, 0.8);
}

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

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82)),
    linear-gradient(180deg, rgba(11, 138, 125, 0.08), rgba(50, 92, 168, 0.04));
}

.panel-intro,
.section-copy {
  margin: 10px 0 0;
  max-width: 54rem;
  line-height: 1.7;
  color: var(--muted);
}

.compact-heading {
  margin-bottom: 12px;
}

.panel-badge {
  width: max-content;
  background: rgba(0, 121, 107, 0.1);
  color: var(--accent-deep);
  border: 1px solid rgba(0, 121, 107, 0.14);
}

.role-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.customer-portal-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customer-mode-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  box-shadow: 0 8px 18px rgba(12, 28, 47, 0.05);
}

.customer-mode-button.active {
  background: rgba(11, 138, 125, 0.12);
  border-color: rgba(11, 138, 125, 0.22);
  color: var(--accent-deep);
}

.role-tab,
.primary-button,
.ghost-button,
.danger-button,
.status-pill,
.priority-pill {
  min-height: 46px;
  border-radius: 999px;
}

.role-tab {
  padding: 0 16px;
  border: 1px solid rgba(24, 33, 43, 0.08);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(15, 37, 64, 0.06);
}

.role-tab.active {
  background: var(--accent-deep);
  color: #f5fcfb;
  border-color: transparent;
}

.stack-form label,
.filters label,
.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
}

input[type="checkbox"] {
  width: 22px;
  height: 22px;
  padding: 0;
  accent-color: var(--accent);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(0, 121, 107, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 121, 107, 0.12);
}

.primary-button,
.ghost-button,
.danger-button,
.full-width {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.primary-button {
  background: var(--accent);
  color: #f8fffd;
  box-shadow: 0 12px 24px rgba(11, 138, 125, 0.22);
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.danger-button {
  border: 1px solid rgba(181, 67, 50, 0.2);
  background: rgba(181, 67, 50, 0.1);
  color: var(--danger);
}

.full-width {
  width: 100%;
}

.demo-box,
.panel,
.hero,
.metrics-strip {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.demo-box,
.panel,
.hero {
  border-radius: var(--radius);
  padding: 20px;
}

.demo-title {
  margin: 0 0 8px;
  font-weight: 700;
}

.message {
  min-height: 24px;
  margin: 0;
}

.app-screen {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 24px;
  background: rgba(13, 28, 41, 0.97);
  color: #f4f8fb;
  border-top-right-radius: 32px;
  border-bottom-right-radius: 32px;
}

.sidebar-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  padding: 6px;
  margin-bottom: 16px;
}

.sidebar .eyebrow,
.sidebar-copy,
.nav-block a,
.panel-label,
.user-card span {
  color: rgba(244, 248, 251, 0.74);
}

.nav-block {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.nav-block a {
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(244, 248, 251, 0.12);
}

.sidebar-panel {
  padding-top: 18px;
  border-top: 1px solid rgba(244, 248, 251, 0.12);
}

.user-card {
  display: grid;
  gap: 4px;
  margin: 12px 0 18px;
}

.main-content {
  padding: 30px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  border-radius: 34px;
}

.hero h3 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.hero-copy {
  max-width: 54rem;
  line-height: 1.7;
  color: rgba(24, 33, 43, 0.8);
}

.install-copy {
  margin-top: 10px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 20px;
}

.metric-card {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.metric-card:last-child {
  border-right: 0;
}

.metric-card p {
  margin: 0 0 6px;
  color: var(--muted);
}

.metric-card strong {
  font-size: clamp(1.9rem, 2.5vw, 2.5rem);
  letter-spacing: -0.05em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  margin: 20px 0;
}

.section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-heading h3 {
  font-size: 1.5rem;
}

.dashboard-heading {
  margin-bottom: 22px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.summary-card,
.admin-block {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.6);
}

.summary-card {
  padding: 18px 20px;
}

.summary-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.summary-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.summary-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-stack {
  display: grid;
  gap: 18px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-tab {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  box-shadow: 0 8px 18px rgba(12, 28, 47, 0.05);
}

.admin-tab.active {
  background: var(--accent-deep);
  border-color: transparent;
  color: #f7fbff;
}

.admin-block {
  padding: 20px;
}

.toggle-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px !important;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

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

.full-span {
  grid-column: 1 / -1;
}

.filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 16px;
}

.chip-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
}

.chip-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.chip-button-solid {
  justify-content: center;
  border-color: rgba(11, 138, 125, 0.18);
  background: rgba(11, 138, 125, 0.08);
}

.chip-button span {
  color: var(--danger);
}

.system-line {
  margin: 16px 0 0;
}

.table-wrap {
  overflow: auto;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.status-pill,
.priority-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  min-height: 32px;
  font-size: 0.84rem;
}

.status-pill.open {
  background: rgba(181, 67, 50, 0.12);
  color: var(--danger);
}

.status-pill.in-progress {
  background: rgba(50, 92, 168, 0.12);
  color: var(--info);
}

.status-pill.pending-customer {
  background: rgba(201, 107, 31, 0.12);
  color: var(--alert);
}

.status-pill.resolved,
.status-pill.closed {
  background: rgba(31, 122, 69, 0.12);
  color: var(--ok);
}

.priority-pill.low {
  background: rgba(31, 122, 69, 0.12);
  color: var(--ok);
}

.priority-pill.medium {
  background: rgba(201, 107, 31, 0.12);
  color: var(--alert);
}

.priority-pill.high,
.priority-pill.critical {
  background: rgba(181, 67, 50, 0.12);
  color: var(--danger);
}

.ticket-head,
.report-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.tiny {
  font-size: 0.88rem;
}

@media (max-width: 1180px) {
  .login-section,
  .app-screen,
  .dashboard-grid,
  .metrics-strip,
  .filters,
  .grid-two,
  .inline-form,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .brand-panel,
  .login-panel,
  .main-content,
  .sidebar {
    padding: 20px;
  }

  .login-section {
    grid-template-columns: 1fr;
  }

  .brand-panel,
  .login-panel {
    min-height: auto;
  }

  .login-panel {
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    margin-top: -18px;
    position: relative;
    z-index: 2;
  }

  .sidebar {
    border-radius: 0;
    padding-bottom: 110px;
  }

  .hero,
  .hero-actions,
  .ticket-head,
  .report-head,
  .admin-tabs {
    flex-direction: column;
    align-items: start;
  }

  .role-tabs {
    grid-template-columns: 1fr;
  }

  .customer-portal-switch {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 18px;
  }

}
