:root {
  color-scheme: dark;
  --bg: #0b0f0d;
  --bg-2: #101713;
  --panel: rgba(18, 27, 23, 0.78);
  --panel-solid: #121b17;
  --panel-soft: #17231e;
  --ink: #eef7ef;
  --muted: #93a69b;
  --line: rgba(126, 246, 209, 0.16);
  --line-strong: rgba(126, 246, 209, 0.34);
  --green: #7ef6d1;
  --cyan: #52d7ff;
  --amber: #ffbd6b;
  --danger: #ff7d6b;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  --mono: "SFMono-Regular", "Cascadia Code", "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 8%, rgba(126, 246, 209, 0.12), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(255, 189, 107, 0.12), transparent 24%),
    linear-gradient(180deg, #0a0f0d 0, #101713 44%, #0b0f0d 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  background:
    linear-gradient(rgba(126, 246, 209, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 246, 209, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
}

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

button,
a.button {
  appearance: none;
}

.button {
  align-items: center;
  background: rgba(126, 246, 209, 0.08);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-height: 42px;
  padding: 0 14px;
  text-align: center;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
  white-space: nowrap;
}

.button:hover,
.button:focus-visible {
  border-color: var(--green);
  outline: none;
  transform: translateY(-1px);
}

.button.small {
  min-height: 34px;
  padding: 0 11px;
  font-size: 0.78rem;
}

.button.primary {
  background: linear-gradient(135deg, var(--green), #caffef);
  border-color: rgba(126, 246, 209, 0.78);
  color: #07100d;
}

.button.ghost {
  background: rgba(126, 246, 209, 0.08);
  border-color: var(--line);
  color: var(--ink);
}

.button.buy {
  background: rgba(255, 189, 107, 0.12);
  border-color: rgba(255, 189, 107, 0.36);
  color: var(--amber);
}

.button.disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.dialog-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.site-header,
main {
  margin: 0 auto;
  max-width: 1320px;
  position: relative;
  width: min(100% - 40px, 1320px);
  z-index: 1;
}

.site-header {
  padding: 18px 0 0;
}

.nav {
  align-items: center;
  background: rgba(18, 27, 23, 0.68);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
}

.brand {
  align-items: center;
  color: var(--green);
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 900;
  gap: 10px;
  letter-spacing: 0;
}

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

.nav-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav-actions a,
.language-picker select {
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 10px;
}

.language-picker {
  align-items: center;
  display: flex;
  gap: 0;
}

.language-picker select {
  background: rgba(14, 21, 18, 0.82);
  border-color: var(--line);
  color: var(--ink);
  min-height: 36px;
  min-width: 150px;
  padding: 0 10px;
}

.nav-actions a:hover,
.language-picker select:hover {
  border-color: var(--line);
  color: var(--ink);
}

main { padding: 18px 0 80px; }

.section { padding: 18px 0 0; }

.section-kicker {
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 18px;
  text-transform: uppercase;
}


.toolbar {
  align-items: end;
  background: rgba(18, 27, 23, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  padding: 22px;
}

h1,
h2 {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 1;
  margin: 0;
}

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

label {
  color: var(--muted);
  display: grid;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
  gap: 6px;
}

input,
select {
  background: #0e1512;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  min-height: 40px;
  min-width: 220px;
  padding: 0 12px;
}

input:focus,
select:focus {
  border-color: var(--green);
  outline: none;
}

.projects-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 54px;
}

.project-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: 250px 1fr;
  min-height: 520px;
  overflow: hidden;
}

.project-card.featured {
  border-color: rgba(126, 246, 209, 0.32);
}

.project-cover {
  background: #080d0b;
  border-bottom: 1px solid var(--line);
  min-height: 250px;
  overflow: hidden;
  position: relative;
}

.project-cover::after {
  background:
    linear-gradient(180deg, transparent 40%, rgba(8, 13, 11, 0.74)),
    repeating-linear-gradient(0deg, rgba(126, 246, 209, 0.06) 0 1px, transparent 1px 4px);
  content: "";
  inset: 0;
  position: absolute;
}

.project-cover img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.project-cover.fallback {
  align-items: center;
  background:
    radial-gradient(circle at 22% 25%, rgba(82, 215, 255, 0.18), transparent 28%),
    radial-gradient(circle at 78% 40%, rgba(255, 189, 107, 0.16), transparent 24%),
    #0e1512;
  display: flex;
  justify-content: center;
}

.project-cover.fallback span {
  color: rgba(126, 246, 209, 0.42);
  font-family: var(--mono);
  font-size: 6rem;
  font-weight: 950;
}

.project-card-body {
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.card-topline {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.type-pill,
.status,
.tags span {
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 900;
  padding: 5px 8px;
}

.type-pill {
  background: rgba(126, 246, 209, 0.12);
  color: var(--green);
}

.status { color: var(--amber); }

.project-card h3 {
  font-size: 1.7rem;
  line-height: 1.05;
  margin: 20px 0 10px;
}

.project-card p {
  color: var(--muted);
  margin: 0;
}

.commerce-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.commerce-meta span {
  background: rgba(255, 189, 107, 0.1);
  border: 1px solid rgba(255, 189, 107, 0.2);
  border-radius: 999px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 5px 8px;
}

.dialog-commerce {
  margin-top: 18px;
}

.addons-panel {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
}

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

.addon-item {
  background: rgba(126, 246, 209, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.addon-item strong {
  color: var(--ink);
  line-height: 1.15;
}

.addon-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.addon-item b {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.86rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.tags span {
  background: rgba(255, 255, 255, 0.05);
  color: #b5c5bd;
}

.card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}

.card-actions .button {
  min-width: 104px;
}

.empty-state {
  color: var(--muted);
  font-size: 1rem;
}

code {
  background: rgba(126, 246, 209, 0.1);
  border-radius: 5px;
  color: var(--green);
  padding: 2px 6px;
}

dialog {
  background: transparent;
  border: 0;
  max-height: min(92vh, 1100px);
  max-width: min(1280px, calc(100vw - 32px));
  padding: 0;
  width: 1280px;
}

dialog::backdrop {
  background: rgba(4, 7, 6, 0.78);
  backdrop-filter: blur(6px);
}

.dialog-content {
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: min(92vh, 1100px);
  overflow: auto;
  padding: 28px;
  position: relative;
}

.icon-button {
  background: rgba(126, 246, 209, 0.12);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  float: right;
  font: inherit;
  font-family: var(--mono);
  font-weight: 900;
  height: 36px;
  position: sticky;
  top: 0;
  width: 36px;
  z-index: 2;
}

.dialog-hero {
  align-items: stretch;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.8fr);
}

.dialog-summary {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 720px;
}

.dialog-cover {
  background: #050807;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: 360px;
  overflow: hidden;
}

.dialog-cover img {
  display: block;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  width: 100%;
}

.readme {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 24px;
}

.readme h2,
.readme h3,
.readme h4 {
  font-size: 1.55rem;
  line-height: 1.12;
  margin: 28px 0 10px;
}

.readme p,
.readme li {
  color: var(--muted);
  font-size: 1rem;
}

.readme a {
  color: var(--green);
  font-weight: 900;
}

.readme img {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  height: auto;
  margin: 18px 0 28px;
  max-width: 100%;
}

.checkout-shell {
  display: grid;
  gap: 20px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

/* Sidebar Styling */
.admin-sidebar {
  background: rgba(10, 15, 12, 0.72);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(20px);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  gap: 28px;
}

.admin-sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-sidebar-header .brand {
  font-size: 1.1rem;
  font-weight: 950;
}

.admin-sidebar-subtitle {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.admin-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
  font-family: Inter, sans-serif;
  font-size: 0.9rem;
  font-weight: 555;
  transition: all 0.2s ease;
  width: 100%;
}

.admin-tab-btn svg {
  opacity: 0.7;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
}

.admin-tab-btn.active {
  color: var(--green);
  background: rgba(126, 246, 209, 0.08);
  border-color: rgba(126, 246, 209, 0.18);
  font-weight: 600;
}

.admin-tab-btn.active svg {
  opacity: 1;
  stroke: var(--green);
}

/* Sidebar Footer */
.admin-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--ink);
}

.admin-user-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
}

.admin-ip-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 10px;
  font-size: 0.72rem;
}

.admin-ip-box span {
  color: var(--muted);
}

.admin-ip-box code {
  color: var(--ink);
  font-family: var(--mono);
}

.admin-ip-box form {
  margin: 0;
  width: 100%;
}

.admin-ip-box button {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.68rem;
  min-height: 24px;
}

.admin-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.15s ease;
}

.admin-footer-link:hover {
  color: var(--ink);
}

.admin-footer-link.logout {
  color: var(--danger);
  opacity: 0.8;
}

.admin-footer-link.logout:hover {
  opacity: 1;
}

/* Main Content Styling */
.admin-main {
  padding: 40px;
  overflow-y: auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Tab content visibility */
.admin-tab-content {
  display: none;
  flex-direction: column;
  gap: 32px;
  animation: fadeIn 0.2s ease-out forwards;
}

.admin-tab-content.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header style inside tabs */
.admin-page-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-page-header h1 {
  font-size: 1.8rem;
  font-weight: 900;
  margin: 0;
  color: var(--ink);
}

.admin-page-header .dialog-summary {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}

/* Rediseño de tarjetas de métricas */
.admin-overview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.admin-stat-card {
  background: linear-gradient(180deg, rgba(126, 246, 209, 0.06), rgba(255, 255, 255, 0.01)), rgba(7, 13, 10, 0.4);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-card-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 800;
}

.stat-card-value {
  color: var(--green);
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.1;
}

.stat-card-desc {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Checklist Styling */
.admin-checklist {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.admin-check {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  gap: 12px;
}

.admin-check.ok {
  border-color: rgba(126, 246, 209, 0.28);
  background: linear-gradient(135deg, rgba(126, 246, 209, 0.03), transparent);
}

.admin-check.warn {
  border-color: rgba(255, 189, 107, 0.28);
  background: linear-gradient(135deg, rgba(255, 189, 107, 0.03), transparent);
}

.admin-check strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.admin-check span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
  margin-top: 4px;
}

.admin-check b {
  color: var(--green);
  font-family: var(--mono);
  font-size: 1.25rem;
}

.admin-check.warn b {
  color: var(--amber);
}

/* Metrics Grid styling */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.metric-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.metric-card span {
  color: var(--muted);
  font-size: 0.74rem;
  font-family: var(--mono);
  text-transform: uppercase;
}

.metric-card strong {
  font-size: 1.8rem;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.2;
}

.metric-card small {
  color: var(--muted);
  font-size: 0.76rem;
}

/* General panels */
.checkout-box {
  background: rgba(18, 27, 23, 0.4);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.checkout-box h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 8px;
}

.checkout-box p.dialog-summary {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

/* Product editor card redesign */
.admin-product-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.admin-product-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.admin-product-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-product-head strong {
  font-size: 1.05rem;
  color: var(--ink);
}

.admin-product-head span {
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-product-badges {
  display: flex;
  gap: 8px;
}

.status-pill {
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 800;
  padding: 4px 8px;
  text-transform: uppercase;
}

.status-pill.ok {
  background: rgba(126, 246, 209, 0.06);
  color: var(--green);
  border-color: rgba(126, 246, 209, 0.2);
}

.status-pill.warn {
  background: rgba(255, 189, 107, 0.06);
  color: var(--amber);
  border-color: rgba(255, 189, 107, 0.2);
}

.status-pill.neutral {
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.08);
}

.admin-product-form {
  display: grid;
  grid-template-columns: repeat(3, 120px) 1fr auto;
  gap: 14px;
  align-items: flex-end;
}

.admin-product-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
}

.admin-product-form input,
.admin-product-form select {
  background: #090e0c;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  height: 38px;
  padding: 0 10px;
  font-family: Inter, sans-serif;
  font-size: 0.88rem;
  width: 100%;
}

.admin-product-form input:focus,
.admin-product-form select:focus {
  border-color: var(--green);
  outline: none;
}

/* Grids and general tool layouts */
.admin-grid {
  display: grid;
  gap: 20px;
}

.admin-tools-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.admin-access-grid {
  grid-template-columns: 0.8fr 1.2fr;
}

.admin-traffic-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.admin-traffic-grid h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--mono);
  margin-top: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.auth-form input,
.auth-form select {
  background: #090e0c;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  height: 38px;
  padding: 0 12px;
  font-size: 0.88rem;
}

.auth-form button {
  height: 38px;
}

/* Table Wrapping and aesthetics */
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #090e0c;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(126, 246, 209, 0.08);
}

.admin-table th {
  background: rgba(126, 246, 209, 0.04);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
}

.admin-table td {
  color: var(--muted);
  vertical-align: middle;
}

.admin-table td strong {
  color: var(--ink);
  font-weight: 600;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.admin-table code {
  font-family: var(--mono);
  color: var(--green);
  background: rgba(126, 246, 209, 0.04);
  padding: 2px 4px;
  border-radius: 3px;
}

.analytics-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.analytics-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.8rem;
}

.analytics-list span {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.analytics-list strong {
  color: var(--amber);
  font-family: var(--mono);
}

.checkout-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-list li {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.8rem;
}

.checkout-list a {
  color: var(--green);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.76rem;
  word-break: break-all;
}

.checkout-list a:hover {
  text-decoration: underline;
}

.notice {
  background: rgba(126, 246, 209, 0.05);
  border: 1px solid var(--green);
  border-radius: 6px;
  color: var(--green);
  font-size: 0.84rem;
  padding: 12px 16px;
  margin-bottom: 8px;
}

/* Responsive media queries */
@media (max-width: 1024px) {
  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    height: auto;
    position: sticky;
    top: 0;
    padding: 14px 18px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .admin-sidebar-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .admin-sidebar-subtitle {
    display: none;
  }

  .admin-sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .admin-tab-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
    width: auto;
    flex-shrink: 0;
  }

  .admin-tab-btn svg {
    width: 14px;
    height: 14px;
  }

  .admin-sidebar-footer {
    border-top: none;
    padding-top: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    position: absolute;
    right: 18px;
    top: 14px;
  }

  .admin-user-info,
  .admin-ip-box {
    display: none; /* Hide IP exclusion and email on top mobile header to avoid clutter */
  }

  .admin-sidebar-actions {
    flex-direction: row;
    gap: 10px;
  }

  .admin-footer-link {
    font-size: 0.72rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.02);
  }

  .admin-main {
    padding: 20px;
    height: auto;
    overflow-y: visible;
  }
}

@media (max-width: 1000px) {
  .hero {
    min-height: 470px;
  }

  .dialog-hero {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
    display: grid;
  }

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

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

  .metrics-grid,
  .admin-grid,
  .admin-checklist,
  .admin-tools-grid,
  .admin-access-grid,
  .admin-traffic-grid {
    grid-template-columns: 1fr;
  }

  .admin-product-head {
    display: grid;
  }

  .admin-product-badges {
    justify-content: flex-start;
  }

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

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    position: static;
  }

  .dialog-cover,
  .dialog-cover img {
    max-height: 320px;
  }
}

@media (max-width: 640px) {
  .site-header,
  main {
    width: min(100% - 24px, 1320px);
  }

  .nav,
  .nav-actions,
  .controls {
    align-items: stretch;
    flex-direction: column;
  }



  .language-picker,
  .language-picker select {
    width: 100%;
  }

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

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

  input,
  select {
    min-width: 100%;
  }

  .project-card {
    grid-template-rows: 210px 1fr;
    min-height: 500px;
  }

  .dialog-content {
    padding: 18px 14px;
  }

  .admin-hero,
  .checkout-box {
    padding: 18px;
  }

  .admin-control-grid span,
  .admin-ip-line,
  .admin-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dialog-cover,
  .dialog-cover img {
    max-height: 240px;
    min-width: 0;
  }
}
