/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

* {
  box-sizing: border-box;
}

html {
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2937;
  background: #f8fafc;
}

body {
  margin: 0;
  padding: 0;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 24px;
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-brand {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-nav__user {
  color: #6b7280;
  font-size: 14px;
}

.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.page-title {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 28px;
  line-height: 1.2;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.card__title {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 20px;
}

.flash {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.flash--notice {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.flash--alert {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.form-input,
.form-select {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
  color: #111827;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.button,
.button:visited {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  text-decoration: none;
}

.button--secondary,
.button--secondary:visited {
  background: #ffffff;
  color: #111827;
  border-color: #d1d5db;
}

.button--secondary:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.button--danger,
.button--danger:visited {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.button--danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.inline-form {
  display: inline;
}

.data-list {
  margin: 0;
  padding-left: 18px;
}

.data-list li {
  margin-bottom: 8px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.data-table th,
.data-table td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.data-table th {
  background: #f9fafb;
  font-weight: 700;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
}

.status-badge--active {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.status-badge--disabled {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fdba74;
}

.status-badge--archived {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}

.status-badge--admin {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.status-badge--user {
  background: #f9fafb;
  color: #374151;
  border-color: #d1d5db;
}

.status-badge--suspended,
.status-badge--alert {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.status-badge--notice {
  background: #ecfeff;
  color: #155e75;
  border-color: #a5f3fc;
}

.qr-preview {
  display: inline-block;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}

.actions-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.muted {
  color: #6b7280;
}

.section-spacer {
  margin-top: 24px;
}

.error-box {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  border-radius: 10px;
  color: #991b1b;
}

.error-box h2,
.error-box h3 {
  margin-top: 0;
}

.split-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .split-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.page-subtitle {
  margin-top: -12px;
  margin-bottom: 16px;
  color: #6b7280;
  font-size: 14px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.stat-number {
  margin: 0;
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  color: #111827;
}

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

.card-header .card__title {
  margin-bottom: 0;
}

.text-link {
  font-size: 14px;
  font-weight: 600;
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #e5e7eb;
}

.activity-list__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.activity-list__item span {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 14px;
}

.empty-state {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

@media (min-width: 700px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  margin-bottom: 0;
}

.qr-list-card {
  margin-top: 20px;
}

.qr-list {
  display: grid;
  gap: 14px;
}

.qr-list-item {
  display: grid;
  grid-template-columns: 82px 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
}

.qr-list-item__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

.qr-list-item__image {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.qr-list-item__main {
  min-width: 0;
}

.qr-list-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.qr-type {
  color: #f97316;
  font-size: 12px;
  font-weight: 700;
}

.qr-list-item__title {
  margin: 0 0 6px;
  font-size: 16px;
  color: #111827;
}

.qr-list-item__url,
.qr-list-item__muted {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.qr-list-item__url {
  color: #2563eb;
}

.qr-list-item__muted {
  margin-top: 4px;
}

.qr-list-item__scans {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 72px;
}

.qr-list-item__scans span {
  color: #2563eb;
  font-size: 14px;
}

.qr-list-item__scans strong {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #f3f7ff;
  color: #2563eb;
  font-size: 20px;
}

.qr-list-item__actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 800px) {
  .dashboard-header {
    flex-direction: column;
  }

  .qr-list-item {
    grid-template-columns: 72px 1fr;
  }

  .qr-list-item__scans,
  .qr-list-item__actions {
    grid-column: 2;
    justify-items: start;
    justify-content: flex-start;
  }
}

.app-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  padding: 24px 18px;
}

.sidebar__brand {
  display: inline-block;
  margin-bottom: 28px;
  color: #111827;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.sidebar__brand:hover {
  text-decoration: none;
}

.sidebar__nav {
  display: grid;
  gap: 6px;
}

.sidebar__link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
}

.sidebar__link:hover {
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
}

.app-main {
  min-width: 0;
}

.app-main .site-header {
  padding: 12px 24px;
}

.app-main .site-header__inner {
  max-width: none;
}

.site-header__spacer {
  flex: 1;
}

@media (max-width: 800px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .sidebar__nav {
    display: flex;
    overflow-x: auto;
    gap: 8px;
  }

  .sidebar__link {
    white-space: nowrap;
  }
}

.sidebar__link--active {
  background: #2563eb;
  color: #ffffff;
}

.sidebar__link {
  transition: all 0.15s ease;
}

.stat-number--small {
  font-size: 20px;
  line-height: 1.3;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #2563eb;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}

.profile-name {
  margin: 0;
  font-size: 18px;
}

.billing-plan__name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111827;
}

.brand-logo {
  display: block;
  width: 120px;
  height: auto;
  object-fit: contain;
}

.sidebar__brand--logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 28px;
}

.site-brand--logo {
  display: inline-flex;
  align-items: center;
}


.auth-header {
  display: flex;
  justify-content: center;
  padding: 32px 24px 12px;
}

.auth-header .brand-logo {
  width: 140px;
}

body:has(.auth-card) {
  background: linear-gradient(180deg, #f8fbff 0%, #f8fafc 100%);
}

.auth-card {
  max-width: 460px;
  margin: 32px auto 0;
  padding: 32px;
}

.auth-card .page-title {
  margin-bottom: 8px;
}

.auth-subtitle {
  margin: 0 0 24px;
  color: #6b7280;
  font-size: 14px;
}

.auth-links {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.button--full {
  width: 100%;
  text-align: center;
}

.auth-card .form-actions {
  display: block;
  margin-top: 8px;
}

@media (max-width: 800px) {
  .page-container {
    padding: 18px 14px;
  }

  .site-header {
    padding: 10px 14px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav__user {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar {
    padding: 16px 14px;
  }

  .sidebar__brand--logo {
    margin-bottom: 14px;
  }

  .brand-logo {
    width: 105px;
  }

  .sidebar__nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .sidebar__link {
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size: 13px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .dashboard-header .button {
    width: 100%;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    padding: 16px;
    border-radius: 12px;
  }

  .page-title {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .page-subtitle {
    margin-top: 0;
  }

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

  .qr-list-card {
    overflow: hidden;
  }

  .qr-list-item {
    grid-template-columns: 64px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .qr-list-item__preview {
    width: 64px;
    height: 64px;
  }

  .qr-list-item__image {
    width: 50px;
    height: 50px;
  }

  .qr-list-item__main {
    min-width: 0;
  }

  .qr-list-item__title,
  .qr-list-item__url,
  .qr-list-item__muted {
    overflow-wrap: anywhere;
  }

  .qr-list-item__scans {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
  }

  .qr-list-item__scans strong {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .qr-list-item__actions {
    grid-column: 1 / -1;
  }

  .qr-list-item__actions .button {
    width: 100%;
    text-align: center;
  }

  .form-actions {
    width: 100%;
  }

  .form-actions .button,
  .form-actions input[type="submit"] {
    width: 100%;
    text-align: center;
  }

  .profile-header {
    align-items: flex-start;
  }

  .auth-card {
    margin-top: 16px;
    padding: 24px 18px;
  }
}

@media (max-width: 800px) {
  .app-layout {
    display: block;
    padding-bottom: 76px;
  }

  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 50;
    height: auto;
    padding: 8px 10px env(safe-area-inset-bottom);
    border-top: 1px solid #e5e7eb;
    border-bottom: 0;
    background: #ffffff;
  }

  .sidebar__brand--logo {
    display: none;
  }

  .sidebar__nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    overflow: visible;
  }

  .sidebar__link {
    padding: 8px 4px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .app-main .site-header {
    padding: 10px 14px;
  }

  .site-header__inner {
    justify-content: flex-end;
  }

  .site-nav {
    justify-content: flex-end;
    gap: 8px;
  }

  .site-nav__user {
    display: none;
  }

  .page-container {
    padding: 16px 14px 20px;
  }

  .page-title {
    font-size: 28px;
    margin-bottom: 6px;
  }

  .page-subtitle {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .dashboard-header {
    margin-bottom: 14px;
  }

  .dashboard-header .button {
    width: auto;
    align-self: flex-start;
    padding: 9px 14px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-card .card__title {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .stat-number {
    font-size: 28px;
  }

  .card {
    padding: 14px;
    margin-bottom: 14px;
  }

  .card__title {
    font-size: 17px;
  }

  .qr-list {
    gap: 10px;
  }

  .qr-list-item {
    grid-template-columns: 54px 1fr auto;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
  }

  .qr-list-item__preview {
    width: 54px;
    height: 54px;
    border-radius: 10px;
  }

  .qr-list-item__image {
    width: 42px;
    height: 42px;
  }

  .qr-list-item__meta {
    gap: 6px;
    margin-bottom: 4px;
  }

  .qr-type {
    font-size: 10px;
  }

  .status-badge {
    padding: 3px 7px;
    font-size: 10px;
  }

  .qr-list-item__title {
    font-size: 14px;
    margin-bottom: 3px;
  }

  .qr-list-item__url,
  .qr-list-item__muted {
    font-size: 12px;
  }

  .qr-list-item__scans {
    grid-column: auto;
    display: grid;
    justify-items: center;
    gap: 4px;
    padding-top: 0;
    border-top: 0;
    min-width: 42px;
  }

  .qr-list-item__scans span {
    font-size: 11px;
  }

  .qr-list-item__scans strong {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .qr-list-item__actions {
    grid-column: 1 / -1;
  }

  .qr-list-item__actions .button {
    width: 100%;
    padding: 8px 10px;
  }
}

.form-card {
  max-width: 520px;
}

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

.form-group {
  display: grid;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.form-input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
}

.form-input:focus {
  outline: none;
  border-color: #2563eb;
}


.filters-grid {
  display: grid;
  gap: 14px;
}

.filters-actions {
  align-items: end;
}

.pagination-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #374151;
  background: #ffffff;
  font-size: 14px;
}

.pagination .current {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

@media (min-width: 800px) {
  .filters-grid {
    grid-template-columns: 1fr 220px auto;
    align-items: end;
  }
}

.mobile-header-logo {
  display: none;
}

.sidebar__icon {
  display: none;
}

@media (max-width: 800px) {
  .mobile-header-logo {
    display: inline-flex;
    align-items: center;
  }

  .mobile-header-logo .brand-logo {
    width: 96px;
  }

  .site-header__spacer {
    flex: 1;
  }

  .sidebar__nav {
    display: flex;
    justify-content: space-around;
    gap: 4px;
  }

  .sidebar__link {
    flex: 1 1 0;
    display: grid;
    justify-items: center;
    gap: 4px;
    min-width: 0;
    padding: 8px 2px;
    font-size: 10px;
  }

  .sidebar__icon {
    display: block;
    font-size: 18px;
    line-height: 1;
  }

  .sidebar__link span:last-child {
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sidebar__link--active {
    border-radius: 14px;
  }
}

.verification-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.settings-form {
  margin-top: 20px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.field-control {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-size: 15px;
}

.field-control:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-actions {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}


.btn-primary {
  background: #2563eb;
  color: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.eyebrow {
  margin: 0 0 6px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.campaign-show {
  display: grid;
  gap: 18px;
}

.campaign-show__header {
  margin-bottom: 0;
}

.analytics-panel {
  padding: 22px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.analytics-stats-grid {
  display: grid;
  gap: 12px;
}

.analytics-stat-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.analytics-stat-card span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.analytics-stat-card strong {
  color: #0f172a;
  font-size: 30px;
  line-height: 1;
}

.analytics-stat-card__small {
  font-size: 18px !important;
  line-height: 1.25 !important;
}

.analytics-breakdown-card {
  margin-bottom: 0;
}

.analytics-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.analytics-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.analytics-tab:hover {
  background: #f8fafc;
  color: #111827;
  text-decoration: none;
}

.analytics-tab--active,
.analytics-tab--active:visited {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.analytics-tab--active:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.analytics-table th:last-child,
.analytics-table td:last-child {
  width: 120px;
  text-align: right;
}

.qr-management-card,
.qr-preview-card {
  margin-bottom: 0;
}

.qr-details-list {
  padding-left: 0;
  list-style: none;
}

.qr-details-list li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.qr-details-list li:last-child {
  border-bottom: 0;
}

.qr-details-list strong {
  color: #475569;
}

.qr-details-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.qr-preview-card {
  display: grid;
  align-content: start;
}

.qr-preview--large {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 22px;
  background: #f8fafc;
}

.qr-preview__image {
  width: 240px;
  max-width: 100%;
  height: auto;
}

@media (min-width: 700px) {
  .analytics-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .analytics-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .campaign-show {
    gap: 14px;
  }

  .analytics-panel {
    padding: 16px;
    border-radius: 16px;
  }

  .analytics-stat-card {
    padding: 14px;
  }

  .analytics-stat-card strong {
    font-size: 26px;
  }

  .analytics-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .analytics-tab {
    flex: 0 0 auto;
    padding: 8px 11px;
    font-size: 12px;
  }

  .qr-details-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .qr-preview--large {
    padding: 16px;
  }

  .qr-preview__image {
    width: 210px;
  }
}

.dashboard-page {
  display: grid;
  gap: 18px;
}

.dashboard-insights-grid {
  display: grid;
  gap: 20px;
}

.dashboard-panel {
  margin-bottom: 0;
}

.dashboard-panel--accent {
  border-color: #dbeafe;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dashboard-rank-list {
  margin-top: 4px;
}

.dashboard-rank-item__main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dashboard-rank-item__number {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.dashboard-rank-item {
  align-items: center;
}

.dashboard-rank-item__main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dashboard-focus-number {
  margin: 14px 0 8px;
  color: #2563eb;
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
}

@media (min-width: 900px) {
  .dashboard-insights-grid {
    grid-template-columns: 2fr 1fr;
  }
}

@media (max-width: 800px) {
  .dashboard-page {
    gap: 14px;
  }

  .dashboard-insights-grid {
    gap: 14px;
  }

  .dashboard-rank-item {
    align-items: flex-start;
  }

  .dashboard-focus-number {
    font-size: 38px;
  }
}

.analytics-controls {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.analytics-tabs--range .analytics-tab {
  background: #f8fafc;
}

.analytics-tabs--range .analytics-tab--active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

@media (min-width: 800px) {
  .analytics-controls {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .analytics-tabs--range {
    justify-content: flex-end;
  }
}

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

@media (min-width: 900px) {
  .admin-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .admin-stats-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.server-health-grid .stat-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.server-health-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.server-health-card-header .card__title {
  margin-bottom: 0;
}

.health-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid transparent;
}

.health-badge--ok {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.health-badge--warning {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fdba74;
}

.health-badge--critical {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.server-health-help {
  margin-top: 20px;
}

.server-health-help-grid {
  display: grid;
  gap: 16px;
}

.server-health-help h3 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 15px;
}

.server-health-help p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .server-health-help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}