:root {
  color: #16202a;
  background: #07141c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

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

.account-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 16% 12%, rgba(28, 182, 164, 0.18), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(68, 119, 255, 0.14), transparent 30%),
    linear-gradient(135deg, #061018 0%, #0b2530 54%, #102333 100%);
}

.account-panel {
  width: min(1120px, 100%);
  overflow: hidden;
  border: 1px solid rgba(126, 227, 212, 0.18);
  border-radius: 12px;
  background: #f8fafb;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.admin-panel {
  width: min(1220px, 100%);
}

header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: white;
}

footer {
  border-top: 1px solid #e2e8f0;
  border-bottom: 0;
}

.brand {
  color: #0e8a7a;
  font-size: 20px;
  font-weight: 900;
}

header span,
footer a {
  color: #647083;
  font-size: 13px;
  font-weight: 800;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions a,
.login-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  padding: 0 12px;
  color: #344154;
  font-size: 13px;
  font-weight: 900;
  background: #f8fafb;
}

.header-actions a:hover,
.login-card a:hover {
  border-color: #0e8a7a;
  color: #0e8a7a;
}

.intro {
  display: grid;
  gap: 10px;
  padding: 32px 24px 10px;
}

.intro p {
  margin: 0;
  color: #0e8a7a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.intro h1 {
  margin: 0;
  color: #111923;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.intro span,
.notice,
.sync-box p {
  color: #536173;
  line-height: 1.55;
}

.login-form,
.download-grid,
.sync-box,
.billing-box,
.notice,
.error {
  margin: 16px 24px 24px;
}

.login-form {
  display: inline-grid;
  width: calc(50% - 50px);
  min-width: 280px;
  vertical-align: top;
  gap: 14px;
}

.login-form h2 {
  margin: 0;
  color: #111923;
  font-size: 20px;
  line-height: 1.15;
}

.login-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  gap: 28px;
  padding: 42px;
}

.login-hero > section {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 520px;
  padding: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #082531, #0f3b45);
  color: white;
}

.login-hero > section p {
  margin: 0;
  color: #7ee3d4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 0.96;
}

.login-hero > section > span {
  max-width: 620px;
  color: #c7d8df;
  font-size: 17px;
  line-height: 1.55;
}

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

.login-metrics article {
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.login-metrics strong {
  color: white;
  font-size: 22px;
  line-height: 1;
}

.login-metrics span {
  color: #bfd0d7;
  font-size: 12px;
  font-weight: 800;
}

.login-stack {
  display: grid;
  align-content: center;
  gap: 14px;
}

.login-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid #dbe4ec;
  border-radius: 10px;
  background: white;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.login-card h2 {
  margin: 0;
  color: #111923;
  font-size: 28px;
  line-height: 1.1;
}

.login-card p {
  margin: -6px 0 2px;
  color: #647083;
  line-height: 1.45;
}

.login-card button {
  width: 100%;
}

.compact-notice,
.compact-error {
  margin: 0;
}

.admin-login-hero > section,
.register-hero > section {
  background: linear-gradient(145deg, #101820, #174a4f);
}

label {
  display: grid;
  gap: 6px;
  color: #344154;
  font-size: 13px;
  font-weight: 800;
}

input {
  height: 42px;
  border: 1px solid #ccd6e0;
  border-radius: 8px;
  outline: 0;
  padding: 0 12px;
  background: white;
  color: #111923;
}

textarea {
  min-height: 120px;
  border: 1px solid #ccd6e0;
  border-radius: 8px;
  outline: 0;
  padding: 12px;
  resize: vertical;
  background: white;
  color: #111923;
  font: inherit;
}

button,
.download-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: #0e8a7a;
  color: white;
  font-weight: 900;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.error {
  padding: 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 800;
}

.notice,
.sync-box,
.billing-box,
.download-grid article {
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  background: white;
}

.notice,
.sync-box,
.billing-box {
  padding: 16px;
}

.billing-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.billing-box div {
  display: grid;
  gap: 6px;
}

.billing-box strong {
  color: #182231;
}

.billing-box span,
.invoice-list {
  color: #647083;
  font-size: 13px;
}

.invoice-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.invoice-list div {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 100px 90px 120px 120px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #f4f7fa;
}

.admin-kpis,
.admin-section {
  margin: 16px 24px 24px;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.admin-kpis article,
.admin-section {
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  background: white;
}

.admin-kpis article {
  display: grid;
  gap: 4px;
  padding: 16px;
}

.admin-kpis strong {
  color: #111923;
  font-size: 28px;
  line-height: 1;
}

.admin-kpis span {
  color: #647083;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-section {
  padding: 16px;
}

.admin-section h2 {
  margin: 0 0 12px;
  color: #111923;
  font-size: 20px;
}

.admin-table {
  display: grid;
  gap: 8px;
}

.admin-table article {
  display: grid;
  grid-template-columns: 1.15fr 1.55fr 110px 100px 120px 96px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #f4f7fa;
  color: #344154;
  font-size: 13px;
}

.admin-table small {
  color: #647083;
}

.admin-table form {
  margin: 0;
}

.admin-table button {
  min-height: 34px;
  width: 100%;
  padding: 0 10px;
}

.users-table article {
  grid-template-columns: 1.7fr 100px 130px 120px 96px 96px;
}

.payments-table article {
  grid-template-columns: 1.2fr 1.6fr 110px 110px 120px;
}

.plan-table article,
.coupon-table article,
.webhook-table article,
.log-table article,
.notification-table article {
  grid-template-columns: 1.5fr 1fr 100px 120px 120px;
}

.feature-table article,
.audit-table article,
.sync-table article {
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

.feature-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.feature-guide article {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 14px;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  background: #f8fafb;
}

.feature-guide strong {
  color: #111923;
  font-size: 16px;
}

.feature-guide span {
  color: #5b687a;
  font-size: 13px;
  line-height: 1.45;
}

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

.feature-card-grid article {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 16px;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  background: white;
}

.feature-card-head,
.feature-card-grid footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feature-card-head span,
.feature-card-head b {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
}

.feature-card-head span {
  background: #e7f6f2;
  color: #087d68;
}

.feature-card-head b {
  background: #eef3f6;
  color: #344154;
}

.feature-card-grid h3 {
  margin: 0;
  color: #111923;
  font-size: 20px;
}

.feature-card-grid p {
  margin: 0;
  color: #5b687a;
  line-height: 1.5;
}

.feature-card-grid code {
  color: #425169;
  font-size: 12px;
  word-break: break-word;
}

.feature-card-grid small {
  color: #647083;
  text-align: right;
}

.feature-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.feature-next-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  padding: 0 14px;
  background: #f8fafb;
  color: #344154;
  text-decoration: none;
  font-weight: 800;
}

.feature-next-actions a:first-child {
  border-color: #14937f;
  background: #14937f;
  color: white;
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.checkbox-grid label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  padding: 0 12px;
  background: #f8fafb;
}

.checkbox-grid input {
  width: auto;
  height: auto;
}

.admin-app {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 720px;
  background: #eef3f6;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  background: #0b1820;
  color: white;
}

.admin-sidebar-head {
  display: grid;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-head strong {
  font-size: 19px;
}

.admin-sidebar-head span,
.admin-sidebar-foot a,
.admin-sidebar nav a span {
  color: #b9c9cf;
  font-size: 13px;
}

.admin-sidebar nav {
  display: grid;
  gap: 16px;
}

.sidebar-group {
  display: grid;
  gap: 5px;
}

.sidebar-group p {
  margin: 0 0 4px;
  color: #7ee3d4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-sidebar nav a,
.admin-sidebar-foot a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 900;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover,
.admin-sidebar-foot a:hover {
  background: rgba(126, 227, 212, 0.12);
}

.admin-sidebar nav a.active span {
  color: white;
}

.admin-sidebar nav b {
  min-width: 24px;
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 12px;
  text-align: center;
}

.admin-sidebar-foot {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-workspace {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
}

.admin-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-topline p {
  margin: 0 0 6px;
  color: #0e8a7a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-topline h1 {
  margin: 0;
  color: #111923;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
}

.admin-topline span,
.section-row span {
  color: #647083;
  font-weight: 800;
}

.admin-quick-actions {
  display: flex;
  gap: 8px;
}

.admin-quick-actions a,
.section-row a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  padding: 0 12px;
  background: white;
  color: #344154;
  font-size: 13px;
  font-weight: 900;
}

.admin-grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
}

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

.section-row h2 {
  margin: 0;
}

.compact-table article {
  grid-template-columns: 1fr 110px 100px;
}

.invoice-table article {
  grid-template-columns: 1.2fr 1.4fr 100px 90px 110px 120px 96px;
}

.admin-table article span {
  display: grid;
  gap: 3px;
}

.admin-table article span small {
  font-size: 12px;
}

.table-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 8px;
  padding: 0 10px;
  background: #14937f;
  color: white;
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: #e8eef4;
  color: #344154;
  font-size: 12px;
  font-weight: 900;
}

.status-pill.paid,
.status-pill.active {
  background: #dcfce7;
  color: #15803d;
}

.status-pill.open,
.status-pill.trialing {
  background: #fff7ed;
  color: #c2410c;
}

.action-list,
.report-list,
.settings-grid {
  display: grid;
  gap: 10px;
}

.action-list article,
.report-list article,
.settings-grid article {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 8px;
  background: #f4f7fa;
}

.action-list strong,
.report-list strong,
.settings-grid strong {
  color: #111923;
  font-size: 22px;
}

.action-list span,
.report-list span,
.settings-grid span {
  color: #647083;
  font-size: 13px;
  line-height: 1.35;
}

.settings-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.form-grid label {
  min-width: 0;
}

select {
  height: 42px;
  border: 1px solid #ccd6e0;
  border-radius: 8px;
  outline: 0;
  padding: 0 12px;
  background: white;
  color: #111923;
  font: inherit;
}

input[readonly] {
  background: #f4f7fa;
  color: #647083;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.plan-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 16px 24px 24px;
}

.plan-choice-grid article,
.ticket-list article {
  display: grid;
  gap: 10px;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  padding: 16px;
  background: white;
}

.plan-choice-grid strong {
  color: #111923;
  font-size: 20px;
}

.plan-choice-grid span {
  color: #0e8a7a;
  font-size: 24px;
  font-weight: 950;
}

.plan-choice-grid p,
.ticket-list p {
  margin: 0;
  color: #647083;
  line-height: 1.45;
}

.helpdesk-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.helpdesk-form button,
.helpdesk-form .span-2 {
  grid-column: 1 / -1;
}

.ticket-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.download-grid article {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.download-grid strong,
.sync-box strong {
  color: #182231;
  font-size: 16px;
}

.download-grid span {
  overflow-wrap: anywhere;
  color: #647083;
  font-size: 12px;
}

@media (max-width: 640px) {
  .account-shell {
    padding: 0;
    background: #f8fafb;
  }

  .account-panel {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  header,
  footer {
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
  }

  .header-actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  .header-actions a {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .brand {
    font-size: 18px;
  }

  .login-hero {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .login-hero > section {
    min-height: auto;
    gap: 10px;
    padding: 16px;
  }

  .login-hero > section p {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .login-hero h1 {
    font-size: 28px;
    line-height: 1.02;
  }

  .login-hero > section > span {
    display: none;
  }

  .login-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 4px;
  }

  .login-metrics article {
    min-height: 52px;
    padding: 9px;
  }

  .login-metrics strong {
    font-size: 15px;
  }

  .login-metrics span {
    font-size: 10px;
    line-height: 1.15;
  }

  .login-stack {
    gap: 10px;
  }

  .login-card {
    gap: 10px;
    padding: 16px;
    border-radius: 8px;
    box-shadow: none;
  }

  .login-card h2 {
    font-size: 22px;
  }

  .login-card p {
    font-size: 13px;
  }

  label {
    gap: 5px;
    font-size: 12px;
  }

  input {
    height: 38px;
  }

  button,
  .download-grid a {
    min-height: 40px;
  }

  .login-form {
    display: grid;
    width: auto;
  }

  .billing-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .invoice-list div {
    grid-template-columns: 1fr;
  }

  .plan-choice-grid,
  .helpdesk-form {
    grid-template-columns: 1fr;
  }

  .admin-table article,
  .users-table article,
  .payments-table article,
  .invoice-table article,
  .compact-table article,
  .plan-table article,
  .coupon-table article,
  .webhook-table article,
  .log-table article,
  .notification-table article,
  .feature-table article,
  .audit-table article,
  .sync-table article {
    grid-template-columns: 1fr;
  }

  .feature-guide,
  .feature-card-grid {
    grid-template-columns: 1fr;
  }

  .feature-guide article,
  .feature-card-grid article {
    min-height: auto;
  }

  .feature-card-head,
  .feature-card-grid footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-card-grid small {
    text-align: left;
  }

  .admin-app {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    gap: 12px;
    padding: 16px;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
  }

  .sidebar-group {
    align-content: start;
    min-width: 0;
  }

  .sidebar-group p {
    font-size: 10px;
  }

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

  .admin-workspace {
    padding: 16px;
  }

  .admin-topline,
  .section-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-grid-two {
    grid-template-columns: 1fr;
  }

  .admin-quick-actions {
    flex-wrap: wrap;
  }
}
