:root {
  --gold: #facc15;
  --green: #238636;
  --text: #ffffff;
  --muted: #cbd5e1;
  --card-radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #10233f 0%, #020617 55%, #000 100%);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

.app {
  max-width: 1250px;
  margin: 0 auto;
  padding: 42px 24px 80px;
}

/* HEADER NAV */

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 42px;
  padding: 16px 24px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

.brand {
  width: 190px;
  height: 116px;
  flex: 0 0 auto;
  overflow: hidden;
  color: transparent;
  background-image: url("oak-coliseum-logo-header.webp");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 0;
}

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

.site-nav nav a {
  display: flex;
  align-items: center;
  height: 42px;
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: 0.2s;
}

.site-nav nav a:hover {
  color: white;
}

.login-link {
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(250, 204, 21, 0.55);
  border-radius: 10px;
  color: var(--gold) !important;
  font-weight: 800;
}

.login-link:hover {
  background: rgba(250, 204, 21, 0.12);
  border-color: var(--gold);
}

/* HERO */

.header {
  text-align: center;
  margin-bottom: 28px;
}

.logo {
  font-size: 48px;
  color: var(--gold);
}

h1 {
  margin: 8px 0;
  color: var(--gold);
  font-size: 42px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

/* CONTROLS */

.controls {
  max-width: 760px;
  margin: 0 auto 28px;
  padding: 16px;
  display: grid;
  grid-template-columns: 90px 1fr 260px;
  gap: 16px;
  align-items: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

.controls h2 {
  margin-top: 0;
  color: var(--gold);
  font-size: 28px;
}

.controls p {
  color: #cbd5e1;
  line-height: 1.6;
}

label {
  font-weight: 800;
  text-transform: uppercase;
  color: #e5e7eb;
}

select,
button {
  width: 100%;
  padding: 16px;
  border-radius: 10px;
  font-size: 16px;
}

select {
  background: #020617;
  color: white;
  border: 1px solid #334155;
}

button {
  background: linear-gradient(135deg, #2e7d32, #16a34a);
  color: white;
  border: none;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.15);
}

.home-button {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2e7d32, #16a34a);
  color: white;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
}

.home-button:hover {
  filter: brightness(1.15);
}

/* RESULTS / CARDS */

.hidden {
  display: none !important;
}

.results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.team-card {
  min-height: 300px;
  padding: 20px;
  border-radius: var(--card-radius);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.team-card.great {
  background: linear-gradient(145deg, #0b4fd8, #001b4d);
}

.team-card.ultra {
  background: linear-gradient(145deg, #2f2f2f, #080808);
}

.team-card.master {
  background: linear-gradient(145deg, #38106b, #120023);
}

.card-top {
  display: flex;
  gap: 16px;
  align-items: center;
}

.league-icon {
  font-size: 52px;
}

.team-card h2 {
  margin: 0;
  font-size: 23px;
  text-transform: uppercase;
}

.team-card.great h2 {
  color: #ff2f2f;
}

.team-card.ultra h2 {
  color: #ffd400;
}

.team-card.master h2 {
  color: #ff5fd2;
}

.score {
  margin: 14px 0;
  font-size: 42px;
  font-weight: 900;
}

.score span {
  font-size: 16px;
  font-weight: 600;
}

.meta-coverage {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(59, 130, 246, 0.38);
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
}

.meta-coverage-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meta-coverage-score span {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-coverage-score strong {
  color: #f8fafc;
  font-size: 24px;
}

.meta-coverage-score small {
  font-size: 12px;
  font-weight: 700;
}

.meta-coverage p {
  margin: 6px 0 0;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.45;
}

.admin-panel {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--card-radius);
  background: rgba(7, 17, 38, 0.82);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.admin-panel h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

.admin-intro,
.admin-empty,
.admin-access-message {
  color: #cbd5e1;
  line-height: 1.55;
}

.admin-create-release {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 14px;
  background: rgba(30, 64, 175, 0.09);
}

.admin-create-release h2 {
  margin: 0 0 6px;
  font-size: 21px;
}

.admin-create-release p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}

.admin-create-release form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(210px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.admin-create-release label {
  display: grid;
  gap: 7px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
}

.admin-create-release input,
.admin-create-release select {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  color: #f8fafc;
  background: #050b1d;
}

.admin-create-release button {
  width: auto;
  min-height: 43px;
  padding: 10px 16px;
  white-space: nowrap;
}

.admin-create-release button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.admin-form-message {
  min-height: 20px;
  margin-top: 12px !important;
}

.admin-form-message.success {
  color: #86efac;
}

.admin-form-message.error {
  color: #fca5a5;
}

.admin-form-message.warning {
  color: #fde68a;
}

.admin-tool-link {
  display: inline-block;
  margin-top: 9px;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 800;
}

.league-rotation-panel {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(45, 212, 191, 0.32);
  border-radius: 14px;
  background: rgba(13, 148, 136, 0.08);
}

.league-rotation-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.league-rotation-header h2,
.league-rotation-history-wrap h3 {
  margin: 0 0 6px;
}

.league-rotation-header p,
.league-rotation-preview p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}

.league-rotation-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.league-rotation-column {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(3, 10, 25, 0.56);
}

.league-rotation-column h3 {
  margin: 0;
  color: #fde047;
  font-size: 18px;
  text-transform: uppercase;
}

.league-rotation-column > p {
  margin: 3px 0 12px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.league-rotation-column-options {
  display: grid;
  gap: 9px;
}

.league-rotation-empty {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.league-rotation-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
}

.league-rotation-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.league-rotation-option span {
  display: grid;
  gap: 3px;
}

.league-rotation-option small {
  color: #94a3b8;
}

.league-rotation-option.unavailable {
  border-color: rgba(239, 68, 68, 0.35);
  opacity: 0.72;
}

.league-rotation-preview {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.rotation-confirmation-label {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
}

.rotation-confirmation-label code {
  color: #fde68a;
  overflow-wrap: anywhere;
}

.rotation-confirmation-label input {
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  color: #f8fafc;
  background: #050b1d;
}

#apply-league-rotation-button,
#refresh-rotation-button,
.rollback-rotation-button {
  width: auto;
  margin-top: 12px;
  padding: 10px 14px;
}

#apply-league-rotation-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  filter: saturate(0.35);
}

.league-rotation-history-wrap {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.rotation-history-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rotation-history-entry p {
  margin: 0;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.5;
}

.rotation-history-entry .rotation-history-status {
  color: #94a3b8;
}

@media (max-width: 700px) {
  .league-rotation-header,
  .rotation-history-entry {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  #refresh-rotation-button,
  .rollback-rotation-button {
    width: 100%;
  }

  .league-rotation-options {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .league-rotation-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bundle-builder-panel {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 14px;
  background: rgba(30, 64, 175, 0.09);
}

.bundle-builder-steps {
  margin: 0 0 20px;
  padding-left: 22px;
  color: #cbd5e1;
  line-height: 1.7;
}

.bundle-builder-panel form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.bundle-builder-panel label {
  display: grid;
  gap: 7px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
}

.bundle-builder-panel input,
.bundle-builder-panel select {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  color: #f8fafc;
  background: #050b1d;
}

.bundle-folder-field {
  grid-column: 1 / -1;
}

.bundle-format-discovery {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 9px;
  color: #bfdbfe;
  background: rgba(30, 64, 175, 0.12);
  font-size: 13px;
  line-height: 1.5;
}

.bundle-format-discovery.success {
  border-color: rgba(34, 197, 94, 0.38);
  color: #86efac;
}

.bundle-format-discovery.error {
  border-color: rgba(248, 113, 113, 0.42);
  color: #fca5a5;
}

.bundle-format-registration {
  grid-column: 1 / -1;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid rgba(250, 204, 21, 0.42);
  border-radius: 10px;
  background: rgba(113, 63, 18, 0.18);
}

.bundle-format-registration.hidden {
  display: none;
}

.bundle-format-registration div {
  display: grid;
  flex: 1 1 auto;
  gap: 5px;
  min-width: 0;
}

.bundle-format-registration strong {
  color: #fde047;
}

.bundle-format-registration span {
  color: #e2e8f0;
  font-size: 13px;
}

#register-format-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 280px;
}

.bundle-folder-field input {
  padding: 8px;
}

#folder-selection-message {
  color: #94a3b8;
  font-weight: 400;
}

#build-bundle-button {
  grid-column: 1 / -1;
}

.bundle-progress-wrap {
  margin-top: 20px;
}

.bundle-progress-wrap progress {
  width: 100%;
  height: 16px;
  accent-color: #22c55e;
}

.bundle-progress-wrap p {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 13px;
}

@media (max-width: 800px) {

  .bundle-builder-panel form {
    grid-template-columns: 1fr;
  }

  .bundle-folder-field,
  .bundle-format-discovery,
  .bundle-format-registration,
  #build-bundle-button {
    grid-column: auto;
  }

  .bundle-format-registration {
    align-items: stretch;
    flex-direction: column;
  }

}

@media (max-width: 900px) {

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

  .admin-create-release button {
    width: 100%;
  }

}

.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.release-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(3, 10, 25, 0.72);
}

.release-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.release-card h2 {
  margin: 0;
  font-size: 21px;
}

.release-key {
  margin: 6px 0 16px;
  color: #94a3b8;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.release-status {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.release-status.active,
.release-status.validated {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.18);
}

.release-status.staging {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.18);
}

.release-status.failed,
.release-status.archived {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.16);
}

.release-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
}

.release-counts div {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.release-counts dt {
  color: #94a3b8;
  font-size: 11px;
  text-transform: uppercase;
}

.release-counts dd {
  margin: 4px 0 0;
  font-size: 19px;
  font-weight: 800;
}

.release-source {
  margin: 16px 0 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}

.validation-indicator {
  margin: 14px 0 0;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 700;
}

.validation-indicator.complete {
  color: #86efac;
}

.release-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.release-upload-button,
.validate-release-button,
.compare-release-button,
.publish-release-button,
.rollback-release-button,
.discard-release-button {
  width: auto;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.compare-release-button {
  border: 1px solid rgba(96, 165, 250, 0.42);
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.14);
}

.compare-release-button:hover {
  background: rgba(37, 99, 235, 0.24);
}

.publish-release-button {
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #fde68a;
  background: rgba(250, 204, 21, 0.13);
}

.publish-release-button:hover {
  background: rgba(250, 204, 21, 0.22);
}

.rollback-release-button {
  border: 1px solid rgba(251, 146, 60, 0.45);
  color: #fed7aa;
  background: rgba(234, 88, 12, 0.14);
}

.rollback-release-button:hover {
  background: rgba(234, 88, 12, 0.24);
}

.validate-release-button {
  border: 1px solid rgba(34, 197, 94, 0.38);
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
}

.validate-release-button:hover {
  background: rgba(34, 197, 94, 0.22);
}

.release-upload-button {
  cursor: pointer;
  border: 1px solid rgba(59, 130, 246, 0.38);
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.14);
}

.release-upload-button:hover {
  background: rgba(59, 130, 246, 0.22);
}

.release-bundle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.discard-release-button {
  border: 1px solid rgba(239, 68, 68, 0.34);
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
}

.discard-release-button:hover {
  background: rgba(239, 68, 68, 0.2);
}

.validate-release-button:disabled,
.compare-release-button:disabled,
.publish-release-button:disabled,
.rollback-release-button:disabled,
.discard-release-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.pokemon-list {
  margin: 12px 0 16px;
  padding-left: 22px;
  font-size: 17px;
  line-height: 1.65;
}

.reason {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 12px;
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.45;
}

/* FOOTER */

.site-footer {
  margin-top: 80px;
  padding: 30px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  font-size: 13px;
  opacity: 0.7;
}

/* RESPONSIVE */

@media (max-width: 1000px) {
  .results {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 700px) {
  .site-nav {
    flex-direction: column;
    gap: 14px;
  }

  .site-nav nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .brand {
    width: 175px;
    height: 108px;
    background-position: center;
  }
}

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

  h1 {
    font-size: 30px;
  }
}
.signup-message {
  min-height: 24px;
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

.signup-message.success {
  color: #86efac;
}

.signup-message.error {
  color: #fca5a5;
}

.signup-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.database-status {
  margin: 0 auto 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.database-success {
  color: #86efac;
}

.database-error {
  color: #fca5a5;
}
/* ============================================================
   INVENTORY PAGE
   ============================================================ */


/* PAGE INTRODUCTION */

.inventory-header {
  max-width: 850px;
  margin: 0 auto 34px;
  text-align: center;
}

.inventory-eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.inventory-header h1 {
  margin: 0 0 14px;
}

.inventory-description {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}


/* ENTRY OPTION GRID */

.inventory-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 950px;
  margin: 0 auto 22px;
}

.inventory-entry-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 0 18px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--card-radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.inventory-card-icon {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 52px;
  font-size: 34px;
}

.inventory-card-content {
  grid-column: 2;
  grid-row: 1;
}

.inventory-card-label {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.inventory-entry-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.inventory-entry-card p {
  color: var(--muted);
  line-height: 1.55;
}

.inventory-action-button {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  width: auto;
  min-width: 150px;
  margin-top: 18px;
  padding: 12px 18px;
  font-size: 14px;
}


/* CSV HELP */

.csv-help-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  max-width: 950px;
  margin: 0 auto 46px;
  padding: 18px 22px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 14px;
}

.csv-help-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(250, 204, 21, 0.65);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 900;
}

.csv-help-content h2 {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 18px;
}

.csv-help-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.csv-help-status {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.09);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}


/* READY NOW SECTION */

.inventory-ready-section {
  max-width: 950px;
  margin: 0 auto;
}

.inventory-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 16px;
}

.inventory-section-heading h2 {
  margin: 0;
  font-size: 30px;
}

.inventory-count {
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.inventory-empty-state {
  padding: 54px 24px;
  text-align: center;
  background: rgba(15, 23, 42, 0.75);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--card-radius);
}

.inventory-empty-icon {
  margin-bottom: 12px;
  font-size: 42px;
}

.inventory-empty-state h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.inventory-empty-state p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.6;
}


/* INVENTORY RESPONSIVE */

@media (max-width: 800px) {

  .inventory-entry-grid {
    grid-template-columns: 1fr;
  }

  .csv-help-card {
    grid-template-columns: auto 1fr;
  }

  .csv-help-status {
    grid-column: 2;
    justify-self: start;
  }

}


@media (max-width: 600px) {

  .inventory-entry-card {
    grid-template-columns: 1fr;
  }

  .inventory-card-icon,
  .inventory-card-content,
  .inventory-action-button {
    grid-column: 1;
  }

  .inventory-card-icon {
    justify-content: flex-start;
    margin-bottom: 12px;
  }

  .inventory-action-button {
    justify-self: stretch;
    width: 100%;
  }

  .inventory-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

}
/* ============================================================
   INVENTORY CARD INTERACTION TEST
   ============================================================ */

.inventory-entry-card {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.inventory-entry-card:hover {
  transform: translateY(-1px);

  border-color:
    rgba(255, 255, 255, 0.2);

  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.32);
}

.inventory-entry-card:active {
  transform: translateY(1px);

  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.28),
    0 8px 20px rgba(0, 0, 0, 0.18);
}
/* ============================================================
   CSV IMPORT WORKFLOW
   ============================================================ */

.csv-import-section {
  max-width: 950px;
  margin: 0 auto 30px;
  padding: 28px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: var(--card-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.csv-import-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.csv-import-header h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.csv-import-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.csv-close-button {
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
}

.csv-close-button:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}


/* IMPORT STEPS */

.csv-import-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.csv-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
}

.csv-step span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.csv-step-active {
  color: white;
  border-color: rgba(250, 204, 21, 0.45);
}

.csv-step-active span {
  background: var(--gold);
  color: #020617;
}


/* UPLOAD ZONE */

.csv-upload-zone {
  padding: 48px 24px;
  text-align: center;
  background: rgba(2, 6, 23, 0.48);
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.csv-upload-zone:hover {
  transform: translateY(-1px);
  border-color: rgba(250, 204, 21, 0.45);
  background: rgba(2, 6, 23, 0.65);
}

.csv-upload-zone:active {
  transform: translateY(1px);
}

.csv-upload-icon {
  margin-bottom: 12px;
  font-size: 46px;
}

.csv-upload-zone h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.csv-upload-zone p {
  margin: 0;
  color: var(--muted);
}

.csv-browse-button {
  width: auto;
  margin: 20px auto 14px;
  padding: 12px 22px;
  font-size: 14px;
}

.csv-format-note {
  font-size: 12px;
  color: #64748b !important;
}


/* FILE STATUS */

.csv-file-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 16px 18px;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.csv-file-status > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.csv-file-icon {
  font-size: 30px;
}

.csv-file-status strong {
  display: block;
}

.csv-file-status p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.csv-remove-button {
  width: auto;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
}


/* REVIEW */

.csv-review-section {
  margin-top: 28px;
}

.csv-review-heading h3 {
  margin: 0 0 18px;
  font-size: 24px;
}

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

.csv-summary-card {
  padding: 18px;
  text-align: center;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.csv-summary-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 28px;
  font-weight: 900;
}

.csv-summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.csv-preview-table-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.csv-preview-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.csv-preview-table th,
.csv-preview-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.csv-preview-table th {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.csv-preview-table td {
  color: #e5e7eb;
  font-size: 14px;
}

.csv-import-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.csv-confirm-button {
  width: auto;
  min-width: 220px;
  padding: 13px 20px;
  font-size: 14px;
}

.csv-confirm-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* CSV RESPONSIVE */

@media (max-width: 700px) {

  .csv-import-steps {
    grid-template-columns: 1fr;
  }

  .csv-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .csv-import-header {
    align-items: flex-start;
  }

}
/* ============================================================
   MANUAL ENTRY WORKFLOW
   ============================================================ */

.manual-entry-section {
  max-width: 950px;
  margin: 0 auto 30px;
  padding: 28px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: var(--card-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.manual-entry-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.manual-entry-header h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.manual-entry-header p {
  margin: 0;
  color: var(--muted);
}

.manual-pokemon-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

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

.manual-field label {
  font-size: 12px;
  letter-spacing: 0.7px;
}

.manual-field input,
.manual-field select {
  width: 100%;
  padding: 14px;
  background: #020617;
  color: white;
  border: 1px solid #334155;
  border-radius: 10px;
  font-size: 15px;
}

.manual-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.manual-save-button {
  width: auto;
  min-width: 190px;
  padding: 13px 20px;
  font-size: 14px;
}

@media (max-width: 700px) {

  .manual-pokemon-form {
    grid-template-columns: 1fr;
  }

}

/* ============================================================
   COMPACT INVENTORY ROSTER
   ============================================================ */

.inventory-roster-list {
  overflow: hidden;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.inventory-roster-header,
.inventory-roster-row {
  display: grid;
  grid-template-columns:
    minmax(155px, 1.35fr)
    72px
    86px
    minmax(130px, 1fr)
    minmax(220px, 1.7fr)
    132px;
  gap: 14px;
  align-items: center;
}

.inventory-roster-header {
  min-height: 40px;
  padding: 0 16px;
  background: rgba(2, 6, 23, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.inventory-roster-row {
  min-height: 52px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.inventory-roster-row:last-child {
  border-bottom: none;
}

.inventory-roster-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.inventory-roster-cell {
  min-width: 0;
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.35;
}

.inventory-roster-name {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.inventory-roster-cp,
.inventory-roster-ivs {
  font-variant-numeric: tabular-nums;
}

.inventory-roster-fast-move,
.inventory-roster-charged-moves {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #cbd5e1;
}

.inventory-type-shadow {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
  color: #d8b4fe;
}

.inventory-type-purified {
  background: rgba(147, 197, 253, 0.18);
  border-color: rgba(147, 197, 253, 0.48);
  color: #e0f2fe;
}


.inventory-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}


.inventory-status-ready {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #86efac;
}

.inventory-status-warning {
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.3);
  color: var(--gold);
}

.inventory-status-standard {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #cbd5e1;
}

.inventory-status-shadow {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.32);
  color: #d8b4fe;
}

.inventory-status-purified {
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.32);
  color: #bfdbfe;
}

.inventory-roster-row-missing-moves {
  background: rgba(250, 204, 21, 0.045);
  box-shadow: inset 3px 0 0 rgba(250, 204, 21, 0.72);
}

.inventory-roster-row-missing-moves .inventory-roster-fast-move,
.inventory-roster-row-missing-moves .inventory-roster-charged-moves {
  color: var(--gold);
}


/* COMPACT INVENTORY RESPONSIVE */

@media (max-width: 950px) {

  .inventory-roster-list {
    overflow-x: auto;
  }

  .inventory-roster-header,
  .inventory-roster-row {
    min-width: 900px;
  }

}


@media (max-width: 700px) {

  .inventory-roster-list {
    overflow: visible;
    background: transparent;
    border: none;
  }

  .inventory-roster-header {
    display: none;
  }

  .inventory-roster-row {
    min-width: 0;
    margin-bottom: 10px;
    padding: 12px 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
  }

  .inventory-roster-row:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .inventory-roster-cell {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }

  .inventory-roster-cell::before {
    content: attr(data-label);
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  .inventory-roster-name,
  .inventory-roster-charged-moves,
  .inventory-roster-type,
  .inventory-roster-status {
    grid-column: 1 / -1;
  }

  .inventory-roster-fast-move,
  .inventory-roster-charged-moves {
    white-space: normal;
  }

}


/* ============================================================
   INVENTORY MANAGEMENT CONTROLS
   ============================================================ */

.inventory-management-controls {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.5fr)
    minmax(150px, 0.8fr)
    minmax(170px, 0.9fr)
    minmax(160px, 0.8fr);
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.inventory-search-field,
.inventory-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inventory-search-field label,
.inventory-filter-field label {
  color: #94a3b8;
  font-size: 10px;
  letter-spacing: 0.7px;
}

.inventory-search-field input,
.inventory-filter-field select {
  width: 100%;
  height: 42px;
  padding: 9px 11px;
  background: #020617;
  color: white;
  border: 1px solid #334155;
  border-radius: 9px;
  font-size: 13px;
}

.inventory-search-field input::placeholder {
  color: #64748b;
}

.inventory-no-results {
  margin-bottom: 14px;
  padding: 24px;
  text-align: center;
  background: rgba(15, 23, 42, 0.72);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
}


/* ============================================================
   INVENTORY EDITOR
   ============================================================ */

.inventory-edit-section {
  margin-bottom: 16px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.inventory-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.inventory-edit-header h3 {
  margin: 0;
  font-size: 22px;
}

.inventory-edit-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.inventory-edit-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.inventory-secondary-button,
.inventory-save-edit-button {
  width: auto;
  min-width: 140px;
  padding: 11px 16px;
  font-size: 12px;
}

.inventory-secondary-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--muted);
}

.inventory-secondary-button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}


/* ============================================================
   INVENTORY ROW ACTIONS
   ============================================================ */

.inventory-roster-header,
.inventory-roster-row {
  grid-template-columns:
    minmax(150px, 1.25fr)
    58px
    76px
    74px
    74px
    minmax(110px, 0.95fr)
    minmax(150px, 1.35fr)
    84px
    118px
    104px;
  gap: 10px;
}

.inventory-roster-actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
  align-items: center;
}

.inventory-row-action {
  width: auto;
  padding: 6px 7px;
  border-radius: 7px;
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}

.inventory-row-edit {
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.32);
  color: #bfdbfe;
}

.inventory-row-delete {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fca5a5;
}

.inventory-row-action:hover {
  filter: brightness(1.2);
}


@media (max-width: 950px) {

  .inventory-management-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-roster-header,
  .inventory-roster-row {
    min-width: 1180px;
  }

}


@media (max-width: 700px) {

  .inventory-management-controls {
    grid-template-columns: 1fr;
  }

  .inventory-edit-form {
    grid-template-columns: 1fr;
  }

  .inventory-edit-actions {
    flex-direction: column-reverse;
  }

  .inventory-secondary-button,
  .inventory-save-edit-button {
    width: 100%;
  }

  .inventory-roster-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

}


/* ============================================================
   INVENTORY IV RANK COLUMN POLISH
   ============================================================ */

.inventory-roster-gl-rank,
.inventory-roster-ul-rank {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 700px) {

  .inventory-roster-gl-rank,
  .inventory-roster-ul-rank {
    grid-column: auto;
  }

}
/* ============================================================
   v0.26.37 — INVENTORY 10-COLUMN DESKTOP LAYOUT
   ============================================================ */

.inventory-ready-section {
  max-width: 1180px;
}

.inventory-roster-list {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-gutter: stable;
}

.inventory-roster-header,
.inventory-roster-row {
  min-width: 1040px;

  grid-template-columns:
    minmax(130px, 1.25fr)  /* Pokémon */
    58px                   /* CP */
    72px                   /* IVs */
    62px                   /* GL Rank */
    62px                   /* UL Rank */
    minmax(110px, 1fr)     /* Fast Move */
    minmax(160px, 1.4fr)   /* Charged Moves */
    78px                   /* Type */
    94px                   /* Status */
    100px;                 /* Actions */

  gap: 10px;
}

.inventory-roster-header,
.inventory-roster-row {
  padding-left: 14px;
  padding-right: 14px;
}

.inventory-roster-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.inventory-row-action {
  width: auto;
  min-width: 42px;
  padding: 7px 8px;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}


/* Preserve compact mobile cards */

@media (max-width: 700px) {

  .inventory-ready-section {
    max-width: 950px;
  }

  .inventory-roster-list {
    overflow: visible;
  }

  .inventory-roster-header {
    display: none;
  }

  .inventory-roster-row {
    min-width: 0;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
  }

  .inventory-roster-actions {
    grid-column: 1 / -1;
  }

}
.inventory-roster-header,
.inventory-roster-row {
  grid-template-columns:
    minmax(130px, 1.25fr)
    58px
    72px
    62px
    62px
    minmax(110px, 1fr)
    minmax(160px, 1.4fr)
    78px
    94px
    116px;
}

.inventory-roster-actions {
  width: 100%;
}

.inventory-row-action {
  flex: 1 1 0;
  min-width: 0;
  padding: 7px 5px;
  text-align: center;
}
a[href="premium.html"] {
  display: none !important;
}

[hidden] {
  display: none !important;
}
