/* Darkframe Billing — Front-end Styles */

/* ── Variables ──────────────────────────────────────────────────────────────── */
:root {
  --darkframe-primary:   #e95d6b;
  --darkframe-secondary: #1e2330;
  --darkframe-success:   #38a169;
  --darkframe-error:     #e53e3e;
  --darkframe-warning:   #d69e2e;
  --darkframe-text:      #1e2330;
  --darkframe-muted:     #7c8190;
  --darkframe-bg:        #ffffff;
  --darkframe-border:    #e8e2dc;
  --darkframe-radius:    10px;
  --darkframe-shadow:    0 2px 16px rgba(30,35,48,.07);
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.darkframe-button {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--darkframe-radius);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  line-height: 1.3;
  transition: opacity 0.2s, transform 0.15s;
}

.darkframe-button:hover  { opacity: 0.88; transform: translateY(-1px); }
.darkframe-button:active { transform: translateY(0); }
.darkframe-button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.darkframe-button--primary   { background: var(--darkframe-primary);   color: #fff; }
.darkframe-button--secondary { background: var(--darkframe-secondary); color: #fff; }
.darkframe-button--small     { padding: 6px 14px; font-size: 0.82rem; }

/* ── Spinner ────────────────────────────────────────────────────────────────── */
.darkframe-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid var(--darkframe-border);
  border-top-color: var(--darkframe-primary);
  border-radius: 50%;
  animation: darkframe-spin 0.7s linear infinite;
  margin: 8px auto;
}

@keyframes darkframe-spin { to { transform: rotate(360deg); } }

/* ── Badges ─────────────────────────────────────────────────────────────────── */
.darkframe-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.darkframe-badge--active  { background: var(--darkframe-success); color: #fff; }
.darkframe-badge--full    { background: var(--darkframe-primary);  color: #fff; }
.darkframe-badge--partial { background: var(--darkframe-secondary); color: #fff; }
.darkframe-badge--warning { background: var(--darkframe-warning);  color: #fff; }

/* ── Login ──────────────────────────────────────────────────────────────────── */
.darkframe-login {
  max-width: 440px;
  margin: 0 auto;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--darkframe-border);
  border-radius: var(--darkframe-radius);
  box-shadow: var(--darkframe-shadow);
}

.darkframe-login__title { margin-top: 0; color: var(--darkframe-text); }
.darkframe-login__links { font-size: 0.875rem; color: var(--darkframe-muted); }
.darkframe-login #darkframe-login-form .input { width: 100%; box-sizing: border-box; }

/* ── Account: header ────────────────────────────────────────────────────────── */
.darkframe-account__header {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--darkframe-border);
}

/* Terminal command line — hidden in corporate theme */
.darkframe-account__header-cmd { display: none; }
.darkframe-account__header-prompt { display: none; }

.darkframe-account__title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--darkframe-text);
  font-family: 'Oswald', 'Barlow Condensed', sans-serif;
}

.darkframe-account__meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--darkframe-muted);
}

.darkframe-account__meta strong { color: var(--darkframe-text); font-weight: 600; }

/* ── Account: summary stats ─────────────────────────────────────────────────── */
.darkframe-account__summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  margin-bottom: 1.5rem;
  padding: 0;
}

.darkframe-account__summary-item {
  background: var(--darkframe-bg);
  border: 1px solid var(--darkframe-border);
  border-radius: var(--darkframe-radius);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: var(--darkframe-shadow);
}

.darkframe-account__summary dt {
  font-family: 'Mulish', -apple-system, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--darkframe-muted);
  font-weight: 700;
  opacity: 1;
}

.darkframe-account__summary dd {
  font-family: 'Oswald', 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--darkframe-text);
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

/* Status dots */
.darkframe-account__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.darkframe-account__dot--active   { background: var(--darkframe-success); }
.darkframe-account__dot--warning  { background: var(--darkframe-warning); }
.darkframe-account__dot--inactive { background: var(--darkframe-muted); }

/* ── Account: sections ──────────────────────────────────────────────────────── */
.darkframe-account__section {
  margin-bottom: 16px;
  padding: 24px;
  background: var(--darkframe-bg);
  border: 1px solid var(--darkframe-border);
  border-radius: var(--darkframe-radius);
}

.darkframe-account__section h3 {
  margin: 0 0 18px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--darkframe-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--darkframe-border);
  padding-bottom: 10px;
}

/* ── Account: studio plan ───────────────────────────────────────────────────── */
.darkframe-account__plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.darkframe-account__plan-name {
  font-size: 1.05rem;
  display: block;
  margin-bottom: 4px;
  color: var(--darkframe-text);
}

.darkframe-account__plan-detail {
  font-size: 0.85rem;
  color: var(--darkframe-muted);
}

.darkframe-account__plan-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.darkframe-account__empty {
  color: var(--darkframe-muted);
  font-size: 0.9rem;
  margin: 0;
}

.darkframe-account__empty a {
  color: var(--darkframe-primary);
  text-decoration: none;
}

/* ── Account: game grid ─────────────────────────────────────────────────────── */
.darkframe-account__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.darkframe-account__game-card {
  border: 1px solid var(--darkframe-border);
  border-radius: var(--darkframe-radius);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  transition: box-shadow 0.2s;
}

.darkframe-account__game-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }

.darkframe-account__game-logo {
  width: 76px;
  min-width: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.darkframe-account__game-logo img { width: 100%; height: 100%; object-fit: cover; }

.darkframe-account__game-logo--placeholder {
  background: linear-gradient(145deg, var(--darkframe-secondary), #3d3d80);
}

.darkframe-account__game-logo--placeholder span {
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

.darkframe-account__game-body {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.darkframe-account__game-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.darkframe-account__game-name { font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.darkframe-account__game-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.darkframe-account__game-status {
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--darkframe-muted);
}

.darkframe-account__game-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--darkframe-muted);
}

.darkframe-account__game-status.is-online .darkframe-account__game-dot { background: var(--darkframe-success); }
.darkframe-account__game-status.is-online { color: var(--darkframe-success); }

.darkframe-account__game-desc {
  font-size: 0.8rem;
  color: var(--darkframe-muted);
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.darkframe-account__game-cta    { align-self: flex-start; margin-top: 4px; }
.darkframe-account__game-offline-note { font-size: 0.78rem; color: var(--darkframe-muted); font-style: italic; }

/* ── Account: purchase history ──────────────────────────────────────────────── */
.darkframe-account__purchases {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.darkframe-account__purchases th,
.darkframe-account__purchases td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--darkframe-border);
}

.darkframe-account__purchases thead tr { background: var(--darkframe-bg); }

.darkframe-account__purchases th {
  color: var(--darkframe-muted);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.darkframe-account__purchases tbody tr:last-child td { border-bottom: none; }
.darkframe-account__purchases tbody tr:hover { background: var(--darkframe-bg); }

/* ── Checkout ───────────────────────────────────────────────────────────────── */
.darkframe-checkout {
  display: flex;
  justify-content: center;
  padding: 40px 16px;
}

.darkframe-checkout__card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--darkframe-border);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  overflow: hidden;
}

.darkframe-checkout__logo {
  background: var(--darkframe-bg);
  border-bottom: 1px solid var(--darkframe-border);
  padding: 24px 32px;
  text-align: center;
}

.darkframe-checkout__logo img {
  max-height: 44px;
  max-width: 200px;
  width: auto;
  display: inline-block;
}

.darkframe-checkout__loading,
.darkframe-checkout__success,
.darkframe-checkout__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 32px;
  gap: 14px;
}

.darkframe-checkout__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.darkframe-checkout__icon svg { width: 28px; height: 28px; }

.darkframe-checkout__icon--success {
  background: rgba(39,174,96,.12);
  color: var(--darkframe-success);
}

.darkframe-checkout__success h2,
.darkframe-checkout__loading p { margin: 0; }

.darkframe-checkout__success p { margin: 0; color: var(--darkframe-muted); }

.darkframe-checkout__sub {
  font-size: 0.82rem;
  color: var(--darkframe-muted);
  margin: 0;
}

/* ── Pricing ────────────────────────────────────────────────────────────────── */
.darkframe-pricing__intro {
  color: var(--darkframe-muted); font-size: 1rem; line-height: 1.7;
  margin: 24px 0 40px;
}

.darkframe-pricing__section { margin: 48px 0; }

.darkframe-pricing__section-title { color: var(--darkframe-text); margin: 0 0 6px; font-size: 1.5rem; }
.darkframe-pricing__section-desc  { color: var(--darkframe-muted); margin: 0 0 28px; font-size: 0.95rem; }
.darkframe-pricing__game-title    {
  margin: 36px 0 16px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--darkframe-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--darkframe-border);
  padding-bottom: 8px;
}

.darkframe-pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.darkframe-pricing__card {
  background: #fff;
  border: 1px solid var(--darkframe-border);
  border-radius: var(--darkframe-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--darkframe-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.darkframe-pricing__card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.11);
  transform: translateY(-3px);
}

.darkframe-pricing__plan-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--darkframe-bg);
  border-bottom: 1px solid var(--darkframe-border);
}

.darkframe-pricing__plan-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.darkframe-pricing__plan-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.darkframe-pricing__plan-image--placeholder svg { width: 80px; height: 48px; }

.darkframe-pricing__card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.darkframe-pricing__plan-name  { margin: 0; color: var(--darkframe-text); font-size: 1.1rem; font-weight: 700; }
.darkframe-pricing__plan-desc  { color: var(--darkframe-muted); font-size: 0.875rem; flex: 1; margin: 0; line-height: 1.55; }

.darkframe-pricing__plan-price {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--darkframe-primary);
  margin: 2px 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ── Terminal elements — hidden in corporate theme ───────────────────────────── */
.darkframe-terminal { display: none; }

/* ── Clean redeem card form ─────────────────────────────────────────────────── */
.darkframe-redeem-form-card {
  max-width: 540px;
  margin: 0 auto 2rem;
  background: var(--darkframe-bg);
  border: 1px solid var(--darkframe-border);
  border-radius: var(--darkframe-radius);
  padding: 2rem;
  box-shadow: var(--darkframe-shadow);
}

.darkframe-redeem-form-card h3 {
  font-family: 'Oswald', 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--darkframe-text);
  margin: 0 0 1.25rem;
}

.darkframe-redeem-form-card label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--darkframe-muted);
  margin-bottom: 0.4em;
}

.darkframe-redeem-form-card input[type="text"] {
  width: 100%;
  padding: 0.7em 0.9em;
  font-size: 1rem;
  border: 1px solid var(--darkframe-border);
  border-radius: 6px;
  background: var(--darkframe-bg);
  color: var(--darkframe-text);
  margin-bottom: 1rem;
  transition: border-color 0.18s, box-shadow 0.18s;
  letter-spacing: 0.08em;
}

.darkframe-redeem-form-card input[type="text"]:focus {
  outline: none;
  border-color: var(--darkframe-primary);
  box-shadow: 0 0 0 3px rgba(233, 93, 107, 0.1);
}

.darkframe-redeem-form-card input[type="text"]::placeholder {
  color: #b0b7c3;
  letter-spacing: 0.05em;
}

.darkframe-gift-form { display: flex; flex-direction: column; }

.darkframe-gift-message {
  min-height: 1.4em;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.darkframe-gift-message--success { color: var(--darkframe-success); font-weight: 600; }
.darkframe-gift-message--error   { color: var(--darkframe-error); font-weight: 600; }

/* ── Games grid [darkframe_games] ───────────────────────────────────────────── */

.dfb-games { }

.dfb-games__intro {
  margin-top:    1.5rem;
  margin-bottom: 2rem;
  border:        none !important;
  padding:       0 !important;
  background:    none !important;
  box-shadow:    none !important;
}

.dfb-games__intro p {
  margin:      0 0 0.75rem;
  font-size:   0.95rem;
  color:       var(--darkframe-text, #1e2330);
  line-height: 1.65;
}

.dfb-games__intro-points {
  margin:      0;
  padding:     0 0 0 1.1rem;
  list-style:  disc;
}

.dfb-games__intro-points li {
  font-size:   0.875rem;
  color:       var(--darkframe-muted, #7c8190);
  line-height: 1.6;
  margin-bottom: 0.25rem;
}

.dfb-games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.dfb-games__empty {
  font-size: 0.9rem;
  color: var(--darkframe-muted);
  text-align: center;
  padding: 2.5rem 0;
}

.dfb-game-card {
  display: flex;
  flex-direction: column;
  background: #1e2330;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--darkframe-radius);
  overflow: hidden;
  box-shadow: var(--darkframe-shadow);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.dfb-game-card:hover {
  box-shadow: 0 4px 32px rgba(0,0,0,0.35);
  transform: translateY(-2px);
  border-color: rgba(233, 93, 107, 0.4);
}

.dfb-game-card__logo {
  width: 100%;
  height: 160px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.dfb-game-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dfb-game-card__logo-placeholder {
  font-family: 'Oswald', 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  opacity: 1;
}

.dfb-game-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  flex: 1;
}

.dfb-game-card__status {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.dfb-game-card--live .dfb-game-card__status {
  color: var(--darkframe-success);
}

.dfb-game-card__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
  opacity: 1;
}

.dfb-game-card--live .dfb-game-card__dot {
  background: var(--darkframe-success);
  box-shadow: 0 0 5px rgba(56,161,105,0.4);
  opacity: 1;
  animation: dfb-dot-blink 2.5s ease-in-out infinite;
}

@keyframes dfb-dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.dfb-game-card__name {
  font-family: 'Oswald', 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.dfb-game-card__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
  line-height: 1.6;
  flex: 1;
}

.dfb-game-card__btn {
  display: inline-block;
  padding: 0.55em 1.25em;
  border: 2px solid var(--darkframe-primary);
  border-radius: 6px;
  font-family: 'Mulish', -apple-system, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: var(--darkframe-primary);
  align-self: flex-start;
  transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.dfb-game-card__btn:hover {
  background: var(--darkframe-primary);
  color: #fff;
  opacity: 0.88;
}

.dfb-game-card__btn--disabled {
  display: inline-block;
  padding: 0.55em 1.25em;
  border: 2px solid var(--darkframe-border);
  border-radius: 6px;
  font-family: 'Mulish', -apple-system, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--darkframe-muted);
  cursor: default;
  align-self: flex-start;
  opacity: 0.6;
}

@media (max-width: 640px) {
  .dfb-games__grid { grid-template-columns: 1fr; }
}

/* ── Game card: actions row (Play + More) ────────────────────────────────── */

.dfb-game-card__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.dfb-game-card__actions > * {
  flex: 1;
  text-align: center;
}

.dfb-game-card__more-btn {
  display: inline-block;
  padding: 0.55em 1.25em;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  font-family: 'Mulish', -apple-system, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.dfb-game-card__more-btn:hover {
  border-color: var(--darkframe-primary);
  color: var(--darkframe-primary);
}

/* ── Game detail modal ───────────────────────────────────────────────────── */

/* Prevent body scroll while modal is open */
body.dfb-modal-open { overflow: hidden; }

.dfb-game-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.dfb-game-modal--open {
  display: flex;
}

/* Backdrop */
.dfb-game-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 35, 48, 0.72);
  backdrop-filter: blur(4px);
}

/* Dialog */
.dfb-game-modal__dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 14px;
  width: min(680px, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  box-shadow: 0 8px 48px rgba(30, 35, 48, 0.22);
  display: flex;
  flex-direction: column;
  animation: dfb-modal-in 0.22s ease;
}

@keyframes dfb-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Close button */
.dfb-game-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--darkframe-text, #1e2330);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(30, 35, 48, 0.15);
  transition: background 0.15s ease;
}

.dfb-game-modal__close:hover { background: #fff; }

/* Banner */
.dfb-game-modal__banner {
  position: relative;
  width: 100%;
  min-height: 220px;
  background: var(--darkframe-secondary, #1e2330);
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  flex-shrink: 0;
}

.dfb-game-modal__banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.dfb-game-modal__banner-overlay {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2rem 1.75rem;
  background: linear-gradient(
    to bottom,
    rgba(20, 22, 30, 0.08) 0%,
    rgba(20, 22, 30, 0.72) 60%,
    rgba(20, 22, 30, 0.88) 100%
  );
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.dfb-game-modal__title {
  font-family: 'Oswald', 'Barlow Condensed', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.35rem;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.dfb-game-modal__short-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  line-height: 1.5;
  max-width: 52ch;
}

/* Body */
.dfb-game-modal__body {
  padding: 1.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Genre badge */
.dfb-game-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dfb-game-modal__genre {
  display: inline-block;
  padding: 0.3em 0.9em;
  background: rgba(233, 93, 107, 0.08);
  border: 1px solid rgba(233, 93, 107, 0.25);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--darkframe-primary, #e95d6b);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Synopsis */
.dfb-game-modal__synopsis-label {
  font-family: 'Mulish', -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--darkframe-muted, #7c8190);
  margin: 0 0 0.5rem;
}

.dfb-game-modal__synopsis {
  font-size: 0.95rem;
  color: var(--darkframe-text, #3a3f4d);
  line-height: 1.7;
  margin: 0;
  white-space: pre-line;
}

/* Footer / play button */
.dfb-game-modal__footer {
  padding-top: 0.25rem;
}

.dfb-game-modal__play-btn {
  display: inline-block;
  padding: 0.7em 2em;
  background: var(--darkframe-primary, #e95d6b);
  color: #fff;
  border-radius: 8px;
  font-family: 'Mulish', -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.15s ease;
}

.dfb-game-modal__play-btn:hover {
  background: #d44458;
  transform: translateY(-2px);
  color: #fff;
}

@media (max-width: 480px) {
  .dfb-game-modal__dialog { border-radius: 10px; }
  .dfb-game-modal__banner { border-radius: 10px 10px 0 0; min-height: 180px; }
  .dfb-game-modal__banner-overlay { padding: 1.75rem 1.25rem 1.25rem; min-height: 180px; }
  .dfb-game-modal__body { padding: 1.25rem 1.25rem 1.5rem; }
}

/* ── Account: referral links ─────────────────────────────────────────────── */
.darkframe-account__referral-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Each labelled group (per-game block, general block) */
.darkframe-account__referral-group {
  background: var(--darkframe-bg);
  border: 1px solid var(--darkframe-border);
  border-radius: var(--darkframe-radius);
  padding: 16px 18px;
}

.darkframe-account__referral-group-label {
  margin: 0 0 12px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--darkframe-muted);
  font-weight: 700;
}

/* Individual game row inside the "Share a game" group */
.darkframe-account__referral-game + .darkframe-account__referral-game {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--darkframe-border);
}

.darkframe-account__referral-game-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.darkframe-account__referral-game-header img {
  height: 20px;
  width: auto;
  border-radius: 3px;
  flex-shrink: 0;
}

.darkframe-account__referral-game-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--darkframe-text);
}

/* Input + button fused row */
.darkframe-account__referral-copy-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--darkframe-border);
  border-radius: var(--darkframe-radius);
  overflow: hidden;
  background: #fff;
}

.darkframe-account__referral-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  font-size: 0.875rem;
  background: transparent;
  color: var(--darkframe-muted);
  border: none;
  outline: none;
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: all;
}

.darkframe-account__referral-copy-btn {
  flex-shrink: 0;
  padding: 0 20px;
  background: var(--darkframe-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  border-left: 1px solid rgba(255,255,255,.15);
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
  border-radius: 0 6px 6px 0;
}

.darkframe-account__referral-copy-btn:hover {
  background: #d44458;
}

.darkframe-account__referral-copy-btn.is-copied {
  background: var(--darkframe-success);
}

/* ── Utility ────────────────────────────────────────────────────────────────── */
.darkframe-error { color: var(--darkframe-error); }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .darkframe-account__title   { font-size: 1.15rem; }
  .darkframe-account__summary { grid-template-columns: repeat(2, 1fr); }
  .darkframe-account__game-grid { grid-template-columns: 1fr; }
  .darkframe-account__plan-row  { flex-direction: column; align-items: flex-start; }
  .darkframe-account__section   { padding: 18px; }
  .darkframe-pricing__grid      { grid-template-columns: 1fr; }
  .darkframe-checkout__card     { border-radius: 8px; }
  .darkframe-terminal           { border-radius: 4px; }
  .darkframe-terminal__body     { padding: 20px; }
  .darkframe-redeem-steps       { grid-template-columns: 1fr; gap: 0.75rem; }
  .darkframe-redeem-steps__divider { display: none; }
  .darkframe-account__referral-copy-btn { padding: 0 14px; font-size: 0.72rem; }
  .darkframe-account__referral-group { padding: 14px; }
}

/* ── Redeem page layout ─────────────────────────────────────────────────────── */

.darkframe-redeem-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

/* Hero */
.darkframe-redeem-hero {
  margin-bottom: 2.5rem;
  text-align: center;
}
.darkframe-redeem-hero__eyebrow {
  font-family: 'Oswald', 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--darkframe-primary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.darkframe-redeem-hero h1,
.darkframe-redeem-hero__title {
  font-family: 'Oswald', 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--darkframe-text);
  margin: 0 0 0.75rem;
}
.darkframe-redeem-hero__sub {
  font-size: 0.975rem;
  color: var(--darkframe-muted);
  line-height: 1.75;
  margin: 0 auto;
  max-width: 520px;
}

/* Steps */
.darkframe-redeem-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--darkframe-bg);
  border: 1px solid var(--darkframe-border);
  border-radius: var(--darkframe-radius);
  box-shadow: var(--darkframe-shadow);
}
.darkframe-redeem-steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}
.darkframe-redeem-steps__num {
  font-family: 'Oswald', 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--darkframe-primary);
}
.darkframe-redeem-steps__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.darkframe-redeem-steps__body strong {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--darkframe-text);
}
.darkframe-redeem-steps__body span {
  font-size: 0.82rem;
  color: var(--darkframe-muted);
  line-height: 1.5;
}
.darkframe-redeem-steps__divider {
  font-size: 1.4rem;
  color: var(--darkframe-border);
  padding: 0 0.25rem;
  user-select: none;
}

/* Footer note */
.darkframe-redeem-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: #fffbf0;
  border: 1px solid #fde68a;
  border-left: 4px solid var(--darkframe-warning);
  border-radius: var(--darkframe-radius);
}
.darkframe-redeem-note__icon {
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--darkframe-warning);
  margin-top: 1px;
}
.darkframe-redeem-note p {
  font-size: 0.875rem;
  color: var(--darkframe-muted);
  margin: 0;
  line-height: 1.65;
}
.darkframe-redeem-note strong {
  color: var(--darkframe-text);
}
.darkframe-redeem-note a {
  color: var(--darkframe-primary);
  font-weight: 600;
  text-decoration: none;
}
.darkframe-redeem-note a:hover {
  text-decoration: underline;
}

/* ════════════════════════════════════════════════════════════════
   Darkframe Billing — Admin Design System
   Loaded on all Darkframe admin pages via AdminMenu::enqueue_assets.
   Classes use the dfb- prefix to avoid collision with front-end styles.
   ════════════════════════════════════════════════════════════════ */

/* ── Admin tokens ─────────────────────────────────────────────── */
:root {
  --dfb-color-bg:         #fff;
  --dfb-color-border:     #dcdcde;
  --dfb-color-border-lt:  #f0f0f1;
  --dfb-color-header-bg:  #fafafa;
  --dfb-color-text:       #1d2327;
  --dfb-color-muted:      #50575e;
  --dfb-color-hint:       #8c8f94;
  --dfb-color-ok-bg:      #d1fae5;
  --dfb-color-ok-text:    #065f46;
  --dfb-color-warn-bg:    #fef3c7;
  --dfb-color-warn-text:  #92400e;
  --dfb-color-err-bg:     #fee2e2;
  --dfb-color-err-text:   #991b1b;
  --dfb-color-info-bg:    #eff6ff;
  --dfb-color-info-text:  #1e40af;
  --dfb-radius:           6px;
  --dfb-radius-lg:        8px;
  --dfb-shadow:           0 1px 3px rgba(0, 0, 0, .05);
}

/* ── Box-sizing reset ─────────────────────────────────────────── */
.dfb-page-header *, .dfb-page-header *::before, .dfb-page-header *::after,
.dfb-settings-grid *, .dfb-settings-grid *::before, .dfb-settings-grid *::after,
.dfb-card *, .dfb-card *::before, .dfb-card *::after,
.dfb-list-table-wrap *, .dfb-list-table-wrap *::before, .dfb-list-table-wrap *::after {
  box-sizing: border-box;
}

.dfb-card input[type="text"],
.dfb-card input[type="url"],
.dfb-card input[type="email"],
.dfb-card input[type="password"],
.dfb-card input[type="number"],
.dfb-card select,
.dfb-card textarea { max-width: 100%; }

/* ── Grid & layout ────────────────────────────────────────────── */
.dfb-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}
@media (max-width: 750px) {
  .dfb-settings-grid { grid-template-columns: 1fr; }
}

/* ── Settings page: full-width two-column layout ──────────────── */
.dfb-settings-two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: stretch;
  margin-top: 8px;
}
.dfb-settings-two-col > div:first-child {
  display: flex;
  flex-direction: column;
}
.dfb-settings-two-col > div:first-child > .dfb-card {
  flex: 1;
  margin-bottom: 0;
}
@media (max-width: 960px) {
  .dfb-settings-two-col { grid-template-columns: 1fr; }
}

/* ── Stripe Live / Test key columns ───────────────────────────── */
.dfb-stripe-key-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin-top: 12px;
}
@media (max-width: 600px) {
  .dfb-stripe-key-cols { grid-template-columns: 1fr; }
}
.dfb-stripe-col-title {
  margin: 0 0 12px;
  padding-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--dfb-color-muted);
  border-bottom: 1px solid var(--dfb-color-border-lt);
}

/* ── Page header ──────────────────────────────────────────────── */
.dfb-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
}
.dfb-page-title {
  margin: 0;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--dfb-color-text);
}
.dfb-page-header .button,
.dfb-page-header .button-primary { flex-shrink: 0; }

/* ── Cards ────────────────────────────────────────────────────── */
.dfb-card {
  background: var(--dfb-color-bg);
  border: 1px solid var(--dfb-color-border);
  border-radius: var(--dfb-radius);
  overflow: hidden;
  box-shadow: var(--dfb-shadow);
  margin-bottom: 20px;
}
.dfb-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px 12px;
  border-bottom: 1px solid var(--dfb-color-border-lt);
  background: var(--dfb-color-header-bg);
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .07em;
  line-height: 1.4;
}
.dfb-card-body { padding: 20px; }
.dfb-card-body p:first-child { margin-top: 0; }
.dfb-card-body p:last-child  { margin-bottom: 0; }

/* ── Badges ───────────────────────────────────────────────────── */
.dfb-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  line-height: 1.4;
  white-space: nowrap;
}
.dfb-badge-ok      { background: var(--dfb-color-ok-bg);   color: var(--dfb-color-ok-text); }
.dfb-badge-warn    { background: var(--dfb-color-warn-bg);  color: var(--dfb-color-warn-text); }
.dfb-badge-error   { background: var(--dfb-color-err-bg);   color: var(--dfb-color-err-text); }
.dfb-badge-info    { background: var(--dfb-color-info-bg);  color: var(--dfb-color-info-text); }
.dfb-badge-neutral { background: #f0f0f1;                   color: var(--dfb-color-muted); }

/* ── Status dot ───────────────────────────────────────────────── */
.dfb-status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 5px;
}

/* ── Form fields ──────────────────────────────────────────────── */
.dfb-field-row { margin-bottom: 16px; }
.dfb-field-row:last-child { margin-bottom: 0; }
.dfb-field-row > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dfb-color-text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.dfb-field-row input[type="text"],
.dfb-field-row input[type="url"],
.dfb-field-row input[type="email"],
.dfb-field-row input[type="password"],
.dfb-field-row input[type="number"],
.dfb-field-row select,
.dfb-field-row textarea { width: 100%; box-sizing: border-box; }
.dfb-field-row select { height: 30px; }
.dfb-field-desc {
  font-size: 11px;
  color: var(--dfb-color-hint);
  margin-top: 5px;
  line-height: 1.5;
}

/* Inline input + button row */
.dfb-input-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dfb-input-row input { flex: 1; min-width: 0; }

/* ── Save bar ─────────────────────────────────────────────────── */
.dfb-save-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--dfb-color-header-bg);
  border: 1px solid var(--dfb-color-border);
  border-radius: var(--dfb-radius);
}
.dfb-save-bar .button-primary {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  height: 36px !important;
  padding: 0 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: var(--dfb-radius) !important;
}

/* ── Info callouts ────────────────────────────────────────────── */
.dfb-info-card {
  padding: 14px 18px;
  border-left: 4px solid;
  border-radius: 0 var(--dfb-radius) var(--dfb-radius) 0;
  max-width: 1100px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.dfb-info-card-green  { background: #f0fdf4; border-left-color: #16a34a; color: #15803d; }
.dfb-info-card-blue   { background: var(--dfb-color-info-bg); border-left-color: #2563eb; color: var(--dfb-color-info-text); }
.dfb-info-card-yellow { background: var(--dfb-color-warn-bg); border-left-color: #f59e0b; color: var(--dfb-color-warn-text); }

/* ── Section titles ───────────────────────────────────────────── */
.dfb-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--dfb-color-border);
}

/* ── List table ───────────────────────────────────────────────── */
.dfb-list-table-wrap { overflow-x: auto; max-width: 100%; }
.dfb-list-table { width: 100%; border-collapse: collapse; }
.dfb-list-table thead { border-bottom: 1px solid var(--dfb-color-border-lt); }
.dfb-list-table th {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6b7280;
  text-align: left;
  white-space: nowrap;
  background: var(--dfb-color-header-bg);
}
.dfb-list-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--dfb-color-border-lt);
  vertical-align: middle;
  font-size: 13px;
  color: var(--dfb-color-muted);
}
.dfb-list-table tbody tr:last-child td { border-bottom: none; }
.dfb-list-table tbody tr:hover td { background: #fafafa; }
.dfb-list-table tfoot td {
  padding: 12px 16px;
  border-top: 2px solid var(--dfb-color-border);
  font-size: 12px;
  background: var(--dfb-color-header-bg);
  color: var(--dfb-color-muted);
}

/* Primary/name cell */
.dfb-list-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dfb-color-text);
  text-decoration: none;
  margin-bottom: 2px;
}
.dfb-list-name:hover { color: #2271b1; }
.dfb-list-key {
  display: block;
  font-size: 11px;
  color: var(--dfb-color-hint);
  font-family: ui-monospace, 'Courier New', monospace;
}

/* Actions column */
.dfb-list-actions { text-align: right; white-space: nowrap; }
.dfb-list-actions .button { margin-left: 4px; }
.dfb-list-actions .button:first-child { margin-left: 0; }

/* Danger action button */
.dfb-btn-danger { color: #b91c1c !important; border-color: #b91c1c !important; }
.dfb-btn-danger:hover { background: #fef2f2 !important; }

/* ── Game site cards ──────────────────────────────────────────── */
.dfb-admin-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.dfb-admin-game-grid .dfb-game-card {
  background: var(--dfb-color-bg);
  border: 1px solid var(--dfb-color-border);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--dfb-color-border);
}
.dfb-admin-game-grid .dfb-game-card--connected { border-top-color: #16a34a; }
.dfb-admin-game-grid .dfb-game-card--awaiting  { border-top-color: #d97706; }
.dfb-admin-game-grid .dfb-game-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 0;
}
.dfb-admin-game-grid .dfb-game-card__logo img,
.dfb-admin-game-grid .dfb-game-card__logo div {
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.dfb-admin-game-grid .dfb-game-card__title {
  flex: 1;
  min-width: 0;
}
.dfb-admin-game-grid .dfb-game-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dfb-color-text);
  display: block;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dfb-admin-game-grid .dfb-game-card__story {
  font-size: 11px;
  color: #888;
  font-style: italic;
  display: block;
}
.dfb-admin-game-grid .dfb-game-card__body {
  padding: 10px 16px 12px;
  flex: 1;
}
.dfb-admin-game-grid .dfb-game-card__desc {
  font-size: 12px;
  color: var(--dfb-color-muted);
  line-height: 1.5;
  margin: 0 0 8px;
}
.dfb-admin-game-grid .dfb-game-card__meta {
  font-size: 12px;
  color: var(--dfb-color-muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dfb-admin-game-grid .dfb-game-card__meta a { word-break: break-all; }
.dfb-admin-game-grid .dfb-game-card__status-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 16px;
  border-top: 1px solid var(--dfb-color-border-lt);
}
.dfb-admin-game-grid .dfb-game-card__footer {
  padding: 8px 12px 10px;
  border-top: 1px solid var(--dfb-color-border-lt);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Card action menu ─────────────────────────────────────────── */
.dfb-game-card__menu { position: relative; }
.dfb-game-card__menu-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: 1px solid var(--dfb-color-border);
  border-radius: 4px;
  color: var(--dfb-color-muted);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.1s, border-color 0.1s;
}
.dfb-game-card__menu-trigger:hover {
  background: var(--dfb-color-header-bg);
  border-color: #9ca3af;
  color: var(--dfb-color-text);
}
.dfb-game-card__menu-dropdown {
  position: absolute;
  bottom: calc(100% + 4px);
  right: 0;
  min-width: 170px;
  background: #fff;
  border: 1px solid var(--dfb-color-border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  z-index: 9999;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
}
.dfb-game-card__menu-dropdown[hidden] { display: none; }
.dfb-game-card__menu-item {
  display: block;
  width: 100%;
  padding: 7px 14px;
  background: none;
  border: none;
  text-align: left;
  font-size: 13px;
  color: var(--dfb-color-text);
  cursor: pointer;
  white-space: nowrap;
}
.dfb-game-card__menu-item:hover { background: var(--dfb-color-header-bg); }
.dfb-game-card__menu-item--danger { color: #b91c1c; }
.dfb-game-card__menu-item--danger:hover { background: #fef2f2; color: #991b1b; }
.dfb-game-card__menu-divider {
  height: 1px;
  background: var(--dfb-color-border-lt);
  margin: 4px 0;
}
/* forms inside the menu need full width */
.dfb-game-card__menu-dropdown form { display: block; }

/* Empty state inside card */
.dfb-list-empty { padding: 48px 24px; text-align: center; }
.dfb-list-empty__icon {
  display: block;
  font-size: 40px !important;
  width: 40px !important;
  height: 40px !important;
  color: #c3c4c7;
  margin: 0 auto 16px;
}
.dfb-list-empty__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dfb-color-text);
  margin: 0 0 8px;
}
.dfb-list-empty__desc {
  font-size: 13px;
  color: var(--dfb-color-muted);
  margin: 0 auto 20px;
  max-width: 400px;
  line-height: 1.6;
}

/* ── Key-value table ──────────────────────────────────────────── */
.dfb-kv-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 10px; }
.dfb-kv-table td { padding: 4px 0; vertical-align: top; }
.dfb-kv-table td:first-child { color: var(--dfb-color-muted); width: 45%; padding-right: 8px; }
.dfb-kv-table code { background: #f0f0f1; padding: 1px 5px; border-radius: 3px; font-size: 11px; }

/* ── Danger zone ──────────────────────────────────────────────── */
.dfb-danger-zone { max-width: 1100px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--dfb-color-border); }
.dfb-danger-zone h3 { font-size: 13px; font-weight: 700; color: #991b1b; margin: 0 0 8px; }
.dfb-danger-zone > p { font-size: 13px; color: var(--dfb-color-muted); margin: 0 0 12px; }

/* ── Sync compare (before/after) ──────────────────────────────── */
.dfb-sync-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1100px;
  margin-top: 20px;
}
.dfb-sync-compare h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--dfb-color-muted);
  margin: 0 0 8px;
}
.dfb-sync-compare pre {
  background: var(--dfb-color-header-bg);
  border: 1px solid var(--dfb-color-border);
  border-radius: var(--dfb-radius);
  padding: 12px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 750px) {
  .dfb-sync-compare { grid-template-columns: 1fr; }
}

/* ── Game details grid ────────────────────────────────────────── */
.dfb-game-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin-bottom: 32px;
}
.dfb-game-detail-card {
  background: var(--dfb-color-bg);
  border: 1px solid var(--dfb-color-border);
  border-radius: var(--dfb-radius);
  padding: 16px;
  box-shadow: var(--dfb-shadow);
}
.dfb-game-detail-card h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--dfb-color-text);
}

/* ── Secret reveal input ──────────────────────────────────────── */
.dfb-secret-input {
  font-family: ui-monospace, 'Courier New', monospace;
  background: #fff8e1;
  border: 1px solid #f59e0b;
  padding: 6px 10px;
  font-size: 13px;
  width: 520px;
  max-width: 100%;
}

/* ── Test connection result ───────────────────────────────────── */
.dfb-result-ok    { color: #16a34a; font-weight: 500; }
.dfb-result-error { color: #dc2626; font-weight: 500; }

/* ════════════════════════════════════════════════════════════════
   User Management Dashboard
   ════════════════════════════════════════════════════════════════ */

/* Page title count bubble */
.dfb-page-title-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--dfb-color-muted);
  background: var(--dfb-color-header-bg);
  border: 1px solid var(--dfb-color-border);
  border-radius: 20px;
  padding: 1px 9px;
  margin-left: 8px;
  vertical-align: middle;
  line-height: 1.6;
}

/* Back link */
.dfb-back-link {
  font-size: 12px;
  color: var(--dfb-color-muted);
  text-decoration: none;
  white-space: nowrap;
}
.dfb-back-link:hover { color: var(--dfb-color-text); text-decoration: none; }

/* ── Toolbar (search + level tabs) ───────────────────────────── */
.dfb-user-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0 10px;
  max-width: none;
}

.dfb-user-filters {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

.dfb-filter-tab {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--dfb-color-muted);
  text-decoration: none;
  border-radius: var(--dfb-radius);
  border: 1px solid transparent;
  line-height: 1.4;
  transition: background 0.1s, color 0.1s;
}
.dfb-filter-tab:hover   { background: var(--dfb-color-header-bg); color: var(--dfb-color-text); text-decoration: none; }
.dfb-filter-tab.is-active {
  background: var(--dfb-color-header-bg);
  border-color: var(--dfb-color-border);
  color: var(--dfb-color-text);
  font-weight: 600;
}

/* ── Users list table ─────────────────────────────────────────── */
.dfb-users-table { max-width: none; }

.dfb-users-row:hover td { background: #f6f7f7; cursor: pointer; }

.dfb-user-name-cell { min-width: 220px; }

.dfb-user-name-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.dfb-user-name-link:hover strong { text-decoration: underline; }

.dfb-avatar-sm { border-radius: 50%; display: block; flex-shrink: 0; }

.dfb-user-email {
  display: block;
  font-size: 11px;
  color: var(--dfb-color-muted);
  margin-top: 1px;
}

/* ── Grant game access radios ─────────────────────────────────── */
.dfb-grant-radios {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}
.dfb-grant-radio-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: normal;
  color: var(--dfb-color-text);
  cursor: pointer;
}

/* ── Pagination ───────────────────────────────────────────────── */
.dfb-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  max-width: none;
}
.dfb-pagination-links { display: flex; gap: 3px; align-items: center; }
.dfb-pagination-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  font-size: 12px;
  border: 1px solid var(--dfb-color-border);
  border-radius: var(--dfb-radius);
  text-decoration: none;
  color: var(--dfb-color-text);
  line-height: 1;
}
.dfb-pagination-links .page-numbers.current {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
  font-weight: 600;
}
.dfb-pagination-links .page-numbers:hover:not(.current) { background: var(--dfb-color-header-bg); }
.dfb-pagination-info { margin: 0; }

/* ── User detail: header card ─────────────────────────────────── */
.dfb-user-header-card {
  background: var(--dfb-color-bg);
  border: 1px solid var(--dfb-color-border);
  border-radius: var(--dfb-radius);
  box-shadow: var(--dfb-shadow);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.dfb-user-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}
.dfb-avatar-lg { border-radius: 50%; display: block; flex-shrink: 0; }
.dfb-user-header-info { min-width: 0; }
.dfb-user-header-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 18px;
  font-weight: 600;
  color: var(--dfb-color-text);
  margin-bottom: 4px;
  line-height: 1.3;
}
.dfb-user-header-email {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--dfb-color-muted);
}
.dfb-user-header-meta {
  margin: 0;
  font-size: 12px;
  color: var(--dfb-color-hint);
}

/* ── Stats row ────────────────────────────────────────────────── */
.dfb-stat-row {
  display: grid;
  grid-template-columns: repeat( 4, 1fr );
  gap: 12px;
  margin-bottom: 16px;
}
.dfb-stat-card {
  background: var(--dfb-color-bg);
  border: 1px solid var(--dfb-color-border);
  border-radius: var(--dfb-radius);
  box-shadow: var(--dfb-shadow);
  padding: 16px 18px;
}
.dfb-stat-card__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--dfb-color-text);
  line-height: 1.1;
  margin-bottom: 4px;
}
.dfb-stat-card__sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--dfb-color-muted);
}
.dfb-stat-card__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--dfb-color-muted);
}

/* ── Detail grid ──────────────────────────────────────────────── */
.dfb-user-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  align-items: start;
}
.dfb-user-detail-main,
.dfb-user-detail-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Override dfb-card defaults inside the detail grid */
.dfb-user-detail-card {
  max-width: none;
  margin-bottom: 0;
}

/* ── Actions card (danger zone) ───────────────────────────────── */
.dfb-card-actions .dfb-card-header {
  color: #991b1b;
  border-bottom-color: #fecaca;
  background: #fff5f5;
}
.dfb-btn-danger {
  color: #b91c1c !important;
  border-color: #fca5a5 !important;
  background: #fff5f5 !important;
}
.dfb-btn-danger:hover {
  background: #fee2e2 !important;
  border-color: #b91c1c !important;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media ( max-width: 960px ) {
  .dfb-user-detail-grid { grid-template-columns: 1fr; }
  .dfb-stat-row { grid-template-columns: repeat( 2, 1fr ); }
}
@media ( max-width: 640px ) {
  .dfb-user-toolbar { flex-direction: column; align-items: flex-start; }
  .dfb-user-header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dfb-stat-row { grid-template-columns: 1fr 1fr; }
  .dfb-user-header-name { font-size: 16px; }
}

/* ── Utility ──────────────────────────────────────────────────── */
.dfb-muted       { color: var(--dfb-color-muted); }
.dfb-small       { font-size: 11px; }
.dfb-mono        { font-family: ui-monospace, 'Courier New', monospace; font-size: 12px; }
.dfb-gap-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.dfb-max-w       { max-width: 1100px; }

/* Search box */
.dfb-search-box { display: flex; gap: 6px; align-items: center; margin-bottom: 16px; max-width: 480px; }
.dfb-search-box input[type="text"] { flex: 1; }

/* ── Game access revoke inline buttons ───────────────────────── */
.dfb-revoke-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.dfb-revoke-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  font-size: 11px;
  line-height: 1.6;
  border-radius: 3px;
  border: 1px solid var(--dfb-color-border);
  background: var(--dfb-color-bg);
  color: var(--dfb-color-muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.dfb-revoke-btn:hover {
  background: #fff5f5;
  border-color: #fca5a5;
  color: #b91c1c;
}
.dfb-revoke-btn--all {
  border-color: #fca5a5;
  color: #b91c1c;
  background: #fff5f5;
}
.dfb-revoke-btn--all:hover {
  background: #fee2e2;
  border-color: #b91c1c;
}

/* ── Admin notes ─────────────────────────────────────────────── */
.dfb-notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.dfb-note {
  background: #fffbe6;
  border: 1px solid #fde68a;
  border-left: 3px solid #f59e0b;
  border-radius: var(--dfb-radius);
  padding: 10px 12px;
}
.dfb-note-meta {
  font-size: 11px;
  color: var(--dfb-color-muted);
  margin-bottom: 4px;
}
.dfb-note-text {
  font-size: 13px;
  color: var(--dfb-color-text);
  white-space: pre-wrap;
  margin: 0;
}

/* ── Referred users list ─────────────────────────────────────── */
.dfb-referred-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.dfb-referred-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--dfb-color-bg);
  border: 1px solid var(--dfb-color-border);
  border-radius: var(--dfb-radius);
  font-size: 13px;
}
.dfb-referred-name {
  font-weight: 500;
  color: var(--dfb-color-text);
}
.dfb-referred-email {
  color: var(--dfb-color-muted);
  font-size: 12px;
  margin-left: auto;
}

/* ── Raw profile JSON inspector ──────────────────────────────── */
.dfb-raw-profile {
  margin-top: 4px;
}
.dfb-raw-profile summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--dfb-color-muted);
  user-select: none;
  padding: 4px 0;
}
.dfb-raw-profile summary:hover {
  color: var(--dfb-color-text);
}
.dfb-json-pre {
  margin-top: 8px;
  padding: 12px;
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: var(--dfb-radius);
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
  max-height: 400px;
  overflow-y: auto;
}

/* ── Ghost toggle active state ───────────────────────────────── */
.dfb-btn-active {
  background: #fef9c3 !important;
  border-color: #fde047 !important;
  color: #854d0e !important;
}
.dfb-btn-active:hover {
  background: #fef08a !important;
  border-color: #ca8a04 !important;
}

/* ── Grant game form ─────────────────────────────────────────── */
.dfb-grant-radios {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}
.dfb-grant-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 3px;
  transition: background .12s;
}
.dfb-grant-radio-label:hover {
  background: var(--dfb-color-bg);
}

/* ════════════════════════════════════════════════════════════════
   ARG design-system aliases
   Maps arg-* class names → dfb-* equivalents so the Hub dashboard
   can use the exact same HTML structure as the ARG Platform dashboard
   (page=arg_dashboard) and be visually identical.
   ════════════════════════════════════════════════════════════════ */

:root {
  --arg-color-bg:         var(--dfb-color-bg);
  --arg-color-border:     var(--dfb-color-border);
  --arg-color-border-lt:  var(--dfb-color-border-lt);
  --arg-color-header-bg:  var(--dfb-color-header-bg);
  --arg-color-text:       var(--dfb-color-text);
  --arg-color-muted:      var(--dfb-color-muted);
  --arg-color-hint:       var(--dfb-color-hint);
  --arg-color-ok-bg:      var(--dfb-color-ok-bg);
  --arg-color-ok-text:    var(--dfb-color-ok-text);
  --arg-color-warn-bg:    var(--dfb-color-warn-bg);
  --arg-color-warn-text:  var(--dfb-color-warn-text);
  --arg-color-err-bg:     var(--dfb-color-err-bg);
  --arg-color-err-text:   var(--dfb-color-err-text);
  --arg-color-info-bg:    var(--dfb-color-info-bg);
  --arg-color-info-text:  var(--dfb-color-info-text);
  --arg-radius:           var(--dfb-radius);
  --arg-radius-lg:        var(--dfb-radius-lg);
  --arg-shadow:           var(--dfb-shadow);
}

/* Card — no max-width/margin-bottom so it works freely inside grids */
.arg-card {
  background: var(--arg-color-bg);
  border: 1px solid var(--arg-color-border);
  border-radius: var(--arg-radius);
  overflow: hidden;
  box-shadow: var(--arg-shadow);
}
.arg-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px 12px;
  border-bottom: 1px solid var(--arg-color-border-lt);
  background: var(--arg-color-header-bg);
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .07em;
  line-height: 1.4;
}
.arg-card-header h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.arg-card-body { padding: 20px; }
.arg-card-body p:first-child { margin-top: 0; }
.arg-card-body p:last-child  { margin-bottom: 0; }

/* Page header */
.arg-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
  max-width: 1100px;
}
.arg-page-title {
  margin: 0;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--arg-color-text);
}
.arg-page-sub {
  font-size: 13px;
  color: var(--arg-color-hint);
  margin-top: 2px;
}
.arg-page-header .arg-primary-btn,
.arg-page-header .button-primary {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  height: 34px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  border-radius: var(--arg-radius) !important;
  flex-shrink: 0;
}
.arg-page-header .arg-primary-btn .dashicons {
  font-size: 15px; width: 15px; height: 15px; line-height: 1;
}

/* Badges */
.arg-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  line-height: 1.4;
  white-space: nowrap;
}
.arg-badge-ok      { background: var(--arg-color-ok-bg);   color: var(--arg-color-ok-text); }
.arg-badge-warn    { background: var(--arg-color-warn-bg);  color: var(--arg-color-warn-text); }
.arg-badge-error   { background: var(--arg-color-err-bg);   color: var(--arg-color-err-text); }
.arg-badge-info    { background: var(--arg-color-info-bg);  color: var(--arg-color-info-text); }
.arg-badge-neutral { background: #f0f0f1;                   color: var(--arg-color-muted); }

/* Status dot */
.arg-status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 5px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   DFB ACCOUNT DASHBOARD — .dfb-dashboard
   Terminal/phosphor-green aesthetic — brand colour #00FF41.
   All styles scoped under .dfb-dashboard to avoid conflicts with the hub
   site's light theme used elsewhere (pricing, login, checkout, etc.).
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Design tokens ──────────────────────────────────────────────────────────── */
.dfb-dashboard {
  --dfb-bg:          #ffffff;
  --dfb-surface:     #f8f5f1;
  --dfb-surface-2:   #f0ebe4;
  --dfb-border:      #e8e2dc;
  --dfb-border-dim:  #e8e2dc;
  --dfb-accent:      #e95d6b;
  --dfb-accent-rgb:  233, 93, 107;
  --dfb-accent-dim:  rgba(233,93,107,0.10);
  --dfb-amber:       #d69e2e;
  --dfb-red:         #e53e3e;
  --dfb-text:        #1e2330;
  --dfb-text-dim:    #3a3f4d;
  --dfb-muted:       #7c8190;
  --dfb-mono:        'Courier New', Courier, monospace;
  --dfb-radius:      10px;
  --dfb-radius-sm:   6px;
  --dfb-glow:        0 2px 16px rgba(30,35,48,0.07);
  --dfb-glow-sm:     0 1px 8px rgba(30,35,48,0.05);

  background:    var(--dfb-bg);
  color:         var(--dfb-text);
  border-radius: var(--dfb-radius);
  font-size:     0.9rem;
  line-height:   1.55;
  max-width:     1080px;
  margin:        0 auto;
  position:      relative;
  font-family:   'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Utility ────────────────────────────────────────────────────────────────── */
.dfb-dashboard .dfb-mono   { font-family: var(--dfb-mono); }
.dfb-dashboard .dfb-muted  { color: var(--dfb-muted); }
.dfb-dashboard .dfb-accent { color: var(--dfb-accent); }
.dfb-dashboard .dfb-link   { color: var(--dfb-accent); text-decoration: none; }
.dfb-dashboard .dfb-link:hover { text-decoration: underline; }
.dfb-dashboard .dfb-sep    { color: var(--dfb-muted); margin: 0 6px; }

/* ── Legacy header (kept for back-compat, replaced by sidebar layout) ──────── */
.dfb-dashboard__header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             16px;
  padding:         22px 24px 18px;
  border-bottom:   1px solid var(--dfb-border);
}

.dfb-dashboard__header-identity {
  display:     flex;
  align-items: center;
  gap:         14px;
  min-width:   0;
}

/* Avatar button wrapper (legacy — sidebar uses .dfb-account__avatar-wrap) */
.dfb-dashboard__avatar-wrap {
  position:        relative;
  width:           46px;
  height:          46px;
  border-radius:   50%;
  background:      var(--dfb-surface);
  border:          2px solid var(--dfb-border);
  display:         flex;
  align-items:     center;
  justify-content: center;
  cursor:          pointer;
  flex-shrink:     0;
  overflow:        hidden;
  padding:         0;
  transition:      border-color 0.2s;
  font-family:     'Oswald', sans-serif;
  font-size:       0.95rem;
  font-weight:     600;
  color:           var(--dfb-accent);
}

.dfb-dashboard__avatar-wrap:hover {
  border-color: var(--dfb-accent);
}

.dfb-dashboard__avatar-wrap img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}

/* Edit pencil hint on hover */
.dfb-dashboard__avatar-edit-hint {
  position:   absolute;
  inset:      0;
  background: rgba(30,35,48,0.45);
  display:    flex;
  align-items: center;
  justify-content: center;
  color:      #ffffff;
  opacity:    0;
  transition: opacity 0.15s;
  border-radius: 50%;
}

.dfb-dashboard__avatar-wrap:hover .dfb-dashboard__avatar-edit-hint { opacity: 1; }

.dfb-dashboard__welcome {
  margin:      0 0 4px;
  font-size:   1.2rem;
  font-weight: 700;
  color:       var(--dfb-text);
  line-height: 1.2;
}

.dfb-dashboard__welcome-name { color: var(--dfb-accent); }

.dfb-dashboard__header-meta {
  margin:     0;
  font-family: 'Mulish', -apple-system, sans-serif;
  font-size:  0.78rem;
  color:      var(--dfb-muted);
}

.dfb-dashboard__header-meta strong { color: var(--dfb-text); }

.dfb-dashboard__header-status {
  display:     flex;
  align-items: center;
  gap:         10px;
  flex-shrink: 0;
}

.dfb-dashboard__header-plan {
  font-size:  0.72rem;
  color:      var(--dfb-muted);
}

/* ── Status badges ──────────────────────────────────────────────────────────── */
.dfb-dashboard .dfb-status-badge {
  display:        inline-block;
  padding:        3px 10px;
  border-radius:  20px;
  font-family:    'Mulish', -apple-system, sans-serif;
  font-size:      0.65rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space:    nowrap;
}

.dfb-status-badge--active  {
  background: rgba(56,161,105,.1);
  color:      #38a169;
  border:     1px solid rgba(56,161,105,.3);
}
.dfb-status-badge--warning {
  background: rgba(214,158,46,.1);
  color:      var(--dfb-amber);
  border:     1px solid rgba(214,158,46,.3);
}
.dfb-status-badge--inactive {
  background: rgba(124,129,144,.1);
  color:      var(--dfb-muted);
  border:     1px solid var(--dfb-border);
}
.dfb-status-badge--sm { font-size: 0.6rem; padding: 2px 8px; }

/* ── Panel heading ──────────────────────────────────────────────────────────── */
.dfb-dashboard .dfb-panel__heading {
  font-family:   'Oswald', sans-serif;
  font-size:     1.6rem;
  font-weight:   600;
  color:         var(--dfb-text);
  margin:        0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dfb-border);
  line-height:   1.2;
}

/* ── Stats strip ────────────────────────────────────────────────────────────── */
.dfb-dashboard .dfb-stats-strip {
  display:       grid;
  grid-template-columns: repeat(4, 1fr);
  gap:           12px;
  margin-bottom: 24px;
}

.dfb-dashboard .dfb-stats-strip--compact {
  border:        1px solid var(--dfb-border);
  border-radius: var(--dfb-radius);
  overflow:      hidden;
  background:    var(--dfb-surface);
  grid-template-columns: repeat(4, 1fr);
  gap:           1px;
}

.dfb-dashboard .dfb-stat {
  background:     var(--dfb-bg);
  border:         1px solid var(--dfb-border);
  border-radius:  var(--dfb-radius-sm);
  padding:        14px 16px;
  display:        flex;
  flex-direction: column;
  gap:            4px;
  box-shadow:     var(--dfb-glow);
}

.dfb-dashboard .dfb-stats-strip--compact .dfb-stat {
  border:        none;
  border-radius: 0;
  box-shadow:    none;
}

.dfb-dashboard .dfb-stat__value {
  font-family:    'Oswald', 'Barlow Condensed', sans-serif;
  font-size:      1.5rem;
  font-weight:    600;
  color:          var(--dfb-text);
  display:        flex;
  align-items:    center;
  gap:            6px;
}

.dfb-dashboard .dfb-stat__value--accent { color: var(--dfb-accent); }

.dfb-dashboard .dfb-stat__label {
  font-family:    'Mulish', sans-serif;
  font-size:      0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color:          var(--dfb-muted);
  font-weight:    700;
}

/* Status dots */
.dfb-dashboard .dfb-dot {
  display:      inline-block;
  width:        7px;
  height:       7px;
  border-radius: 50%;
  flex-shrink:  0;
}

.dfb-dot--active  { background: #38a169; }
.dfb-dot--warning { background: var(--dfb-amber); }
.dfb-dot--inactive{ background: var(--dfb-muted); }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.dfb-dashboard .dfb-btn {
  display:         inline-flex;
  align-items:     center;
  gap:             6px;
  padding:         9px 18px;
  border-radius:   var(--dfb-radius-sm);
  font-family:     'Mulish', -apple-system, sans-serif;
  font-size:       0.85rem;
  font-weight:     700;
  text-decoration: none;
  cursor:          pointer;
  border:          1px solid transparent;
  transition:      background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s, color 0.15s;
  white-space:     nowrap;
}

.dfb-dashboard .dfb-btn--sm { padding: 5px 12px; font-size: 0.78rem; }

/* Primary — filled coral */
.dfb-dashboard .dfb-btn--primary {
  background:   var(--dfb-accent);
  color:        #ffffff;
  border-color: var(--dfb-accent);
}
.dfb-dashboard .dfb-btn--primary:hover {
  background:   #d44458;
  border-color: #d44458;
  transform:    translateY(-1px);
  color:        #ffffff;
  opacity:      1;
}
.dfb-dashboard .dfb-btn--primary:active { transform: translateY(0); }
.dfb-dashboard .dfb-btn--primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* Secondary — outline coral */
.dfb-dashboard .dfb-btn--secondary {
  background:   transparent;
  color:        var(--dfb-accent);
  border-color: rgba(233,93,107,0.45);
}
.dfb-dashboard .dfb-btn--secondary:hover {
  background:   var(--dfb-accent-dim);
  border-color: var(--dfb-accent);
  transform:    translateY(-1px);
  opacity:      1;
}
.dfb-dashboard .dfb-btn--secondary:active { transform: translateY(0); }

/* WP portal button compatibility */
.dfb-dashboard .darkframe-billing-portal-btn {
  display:         inline-flex;
  align-items:     center;
  padding:         5px 14px;
  border-radius:   var(--dfb-radius-sm);
  font-family:     'Mulish', -apple-system, sans-serif;
  font-size:       0.82rem;
  font-weight:     700;
  text-decoration: none;
  cursor:          pointer;
  background:      transparent;
  color:           var(--dfb-accent);
  border:          1px solid rgba(233,93,107,0.45);
  transition:      background 0.15s, border-color 0.15s, transform 0.15s;
}
.dfb-dashboard .darkframe-billing-portal-btn:hover {
  background:   var(--dfb-accent-dim);
  border-color: var(--dfb-accent);
  transform:    translateY(-1px);
  opacity:      1;
}

/* ── Sidebar layout ──────────────────────────────────────────────────────────── */
.dfb-account {
  display:     grid;
  grid-template-columns: 260px 1fr;
  gap:         2rem;
  align-items: start;
}

.dfb-account__sidebar {
  position: sticky;
  top:      80px;
}

/* Profile card */
.dfb-account__profile-card {
  background:    #1e2330;
  border:        1px solid rgba(255,255,255,0.08);
  border-radius: var(--dfb-radius);
  padding:       1.5rem;
  text-align:    center;
  margin-bottom: 0.75rem;
  box-shadow:    var(--dfb-glow);
}

.dfb-account__profile-card .dfb-account__name {
  color: #ffffff;
}

.dfb-account__profile-card .dfb-account__email,
.dfb-account__profile-card .dfb-account__since {
  color: rgba(255,255,255,0.55);
}

.dfb-account__profile-card .dfb-account__avatar-wrap {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

.dfb-account__profile-card .dfb-account__avatar-wrap:hover {
  border-color: var(--dfb-accent);
}

.dfb-account__profile-card .dfb-account__plan-label {
  color: rgba(255,255,255,0.45);
}

.dfb-account__avatar-wrap {
  position:        relative;
  width:           72px;
  height:          72px;
  border-radius:   50%;
  background:      var(--dfb-surface);
  border:          2px solid var(--dfb-border);
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  cursor:          pointer;
  overflow:        hidden;
  padding:         0;
  margin-bottom:   0.75rem;
  transition:      border-color 0.2s;
  font-family:     'Oswald', sans-serif;
  font-size:       1.1rem;
  font-weight:     600;
  color:           var(--dfb-accent);
}

.dfb-account__avatar-wrap:hover {
  border-color: var(--dfb-accent);
}

.dfb-account__avatar-wrap img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}

.dfb-account__avatar-edit-hint {
  position:        absolute;
  inset:           0;
  background:      rgba(30,35,48,0.45);
  display:         flex;
  align-items:     center;
  justify-content: center;
  color:           #ffffff;
  opacity:         0;
  transition:      opacity 0.15s;
  border-radius:   50%;
}

.dfb-account__avatar-wrap:hover .dfb-account__avatar-edit-hint { opacity: 1; }

.dfb-account__name {
  margin:      0 0 4px;
  font-family: 'Oswald', 'Barlow Condensed', sans-serif;
  font-size:   1.15rem;
  font-weight: 600;
  color:       var(--dfb-text);
  line-height: 1.2;
}

.dfb-account__email {
  margin:    0 0 4px;
  font-size: 0.8rem;
  color:     var(--dfb-muted);
}

.dfb-account__since {
  margin:    0 0 10px;
  font-size: 0.78rem;
  color:     var(--dfb-muted);
}

.dfb-account__badges {
  display:     flex;
  align-items: center;
  justify-content: center;
  gap:         6px;
  flex-wrap:   wrap;
}

.dfb-account__plan-label {
  font-size:      0.68rem;
  font-weight:    700;
  color:          var(--dfb-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Sidebar nav */
.dfb-account__nav {
  background:    var(--dfb-bg);
  border:        1px solid var(--dfb-border);
  border-radius: var(--dfb-radius);
  overflow:      hidden;
  box-shadow:    var(--dfb-glow);
}

.dfb-account__nav-link {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         11px 16px;
  color:           var(--dfb-muted);
  font-family:     'Mulish', -apple-system, sans-serif;
  font-size:       0.9rem;
  font-weight:     600;
  text-decoration: none;
  border-bottom:   1px solid var(--dfb-border);
  cursor:          pointer;
  background:      transparent;
  border-left:     3px solid transparent;
  transition:      color 0.15s, background 0.15s, border-left-color 0.15s;
  text-align:      left;
  width:           100%;
  border-right:    none;
  border-top:      none;
}

.dfb-account__nav-link:last-child { border-bottom: none; }

.dfb-account__nav-link:hover {
  color:      var(--dfb-text);
  background: var(--dfb-surface);
}

.dfb-account__nav-link.is-active {
  color:            var(--dfb-accent);
  background:       rgba(233,93,107,0.05);
  border-left-color: var(--dfb-accent);
  font-weight:      700;
}

/* Main content area */
.dfb-account__main { min-width: 0; }

/* ── Tab count badges ────────────────────────────────────────────────────────── */
.dfb-dashboard .dfb-tab__count {
  display:       inline-block;
  background:    var(--dfb-surface);
  border:        1px solid var(--dfb-border);
  border-radius: 20px;
  font-size:     0.65rem;
  padding:       1px 7px;
  color:         var(--dfb-muted);
  font-weight:   700;
}

.dfb-dashboard .dfb-tab__count--accent {
  color:        var(--dfb-accent);
  border-color: rgba(233,93,107,.3);
  background:   var(--dfb-accent-dim);
}

.dfb-dashboard .dfb-tab__count--glow {
  color:      #ffffff;
  background: var(--dfb-accent);
  border-color: var(--dfb-accent);
  animation:  dfb-pulse 2s ease-in-out infinite;
}

@keyframes dfb-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.75; }
}

/* ── Panels ─────────────────────────────────────────────────────────────────── */
.dfb-dashboard .dfb-panels { padding: 0; }
.dfb-dashboard .dfb-panel { display: none; }
.dfb-dashboard .dfb-panel.is-active { display: block; animation: dfb-fade-in 0.18s ease; }

/* Responsive — collapse to stacked on mobile */
@media (max-width: 768px) {
  .dfb-account {
    grid-template-columns: 1fr;
  }
  .dfb-account__sidebar {
    position: static;
  }
  .dfb-account__nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: var(--dfb-radius-sm);
  }
  .dfb-account__nav::-webkit-scrollbar { display: none; }
  .dfb-account__nav-link {
    flex-shrink: 0;
    border-bottom: none;
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 10px 14px;
    font-size: 0.82rem;
  }
  .dfb-account__nav-link.is-active {
    border-bottom-color: var(--dfb-accent);
    border-left-color: transparent;
    background: transparent;
  }
  .dfb-dashboard .dfb-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@keyframes dfb-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ── Cards ──────────────────────────────────────────────────────────────────── */
.dfb-dashboard .dfb-card {
  background:    var(--dfb-surface);
  border:        1px solid var(--dfb-border);
  border-radius: var(--dfb-radius);
  padding:       18px 20px;
}

.dfb-dashboard .dfb-card--full-width { box-sizing: border-box; width: 100%; }

.dfb-dashboard .dfb-card__label {
  font-family:    'Mulish', -apple-system, sans-serif;
  font-size:      0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color:          var(--dfb-muted);
  margin:         0 0 14px;
  font-weight:    700;
}

.dfb-dashboard .dfb-card__header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  margin-bottom:   14px;
}
.dfb-dashboard .dfb-card__header .dfb-card__label { margin: 0; }

.dfb-dashboard .dfb-card__link {
  background:  transparent;
  border:      none;
  color:       var(--dfb-accent);
  font-family: 'Mulish', -apple-system, sans-serif;
  font-size:   0.82rem;
  font-weight: 700;
  cursor:      pointer;
  padding:     0;
  text-decoration: none;
  transition:  opacity 0.15s;
}
.dfb-dashboard .dfb-card__link:hover { opacity: 0.75; }

/* ── Overview grid ──────────────────────────────────────────────────────────── */
.dfb-dashboard .dfb-overview-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   14px;
}

.dfb-dashboard .dfb-card--plan          { grid-column: 1; }
.dfb-dashboard .dfb-card--games-preview { grid-column: 2; }
.dfb-dashboard .dfb-card--actions       { grid-column: 1 / -1; }

/* ── Plan card (overview) ───────────────────────────────────────────────────── */
.dfb-dashboard .dfb-plan-card__main {
  display:       flex;
  align-items:   center;
  gap:           10px;
  margin-bottom: 8px;
}

.dfb-dashboard .dfb-plan-card__name { font-size: 1rem; font-weight: 700; color: var(--dfb-text); }

.dfb-dashboard .dfb-plan-card__detail {
  font-size: 0.78rem;
  color:     var(--dfb-muted);
  margin:    0 0 14px;
}
.dfb-dashboard .dfb-plan-card__detail strong { color: var(--dfb-text-dim); }

/* ── Game preview list ──────────────────────────────────────────────────────── */
.dfb-dashboard .dfb-game-preview-list {
  list-style: none;
  margin:     0;
  padding:    0;
  display:    flex;
  flex-direction: column;
  gap:        1px;
  background: var(--dfb-border-dim);
  border-radius: var(--dfb-radius-sm);
  overflow:   hidden;
}

.dfb-dashboard .dfb-game-preview {
  background:      var(--dfb-surface-2);
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         9px 12px;
  gap:             12px;
}
.dfb-dashboard .dfb-game-preview--unavailable { opacity: 0.45; }

.dfb-dashboard .dfb-game-preview__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dfb-dashboard .dfb-game-preview__name { font-size: 0.8rem; font-weight: 700; color: var(--dfb-text); }
.dfb-dashboard .dfb-game-preview__ep   { font-size: 0.7rem; color: var(--dfb-muted); font-family: 'Mulish', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }

.dfb-dashboard .dfb-game-preview__stats { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.dfb-dashboard .dfb-mini-stat {
  font-size:   0.7rem;
  color:       var(--dfb-muted);
  font-family: 'Mulish', sans-serif;
}

.dfb-dashboard .dfb-enter-btn {
  background:      var(--dfb-accent-dim);
  border:          1px solid rgba(233,93,107,0.25);
  color:           var(--dfb-accent);
  font-family:     'Mulish', sans-serif;
  font-size:       0.65rem;
  font-weight:     700;
  text-transform:  uppercase;
  letter-spacing:  0.06em;
  padding:         3px 10px;
  border-radius:   20px;
  text-decoration: none;
  white-space:     nowrap;
  transition:      background 0.15s, box-shadow 0.15s;
}
.dfb-dashboard .dfb-enter-btn:hover { background: rgba(233,93,107,0.18); box-shadow: var(--dfb-glow-sm); }

/* ── Quick actions ──────────────────────────────────────────────────────────── */
.dfb-dashboard .dfb-quick-actions {
  display:       flex;
  flex-wrap:     wrap;
  gap:           6px;
  margin-bottom: 20px;
}

.dfb-dashboard .dfb-action-list { list-style: none; margin: 0; padding: 0; display: contents; }

.dfb-dashboard .dfb-action-item {
  display:       flex;
  align-items:   center;
  gap:           6px;
  background:    transparent;
  border:        none;
  border-radius: var(--dfb-radius-sm);
  padding:       7px 14px;
  font-family:   'Mulish', sans-serif;
  font-size:     0.78rem;
  font-weight:   600;
  color:         var(--dfb-text-dim);
  cursor:        pointer;
  text-decoration: none;
  transition:    background 0.15s, color 0.15s;
}
.dfb-dashboard .dfb-action-item:hover {
  background: var(--dfb-accent-dim);
  color:      var(--dfb-accent);
}
.dfb-dashboard .dfb-action-item--glow {
  color:     var(--dfb-accent);
  animation: dfb-pulse 2s ease-in-out infinite;
}

/* ── Empty states ───────────────────────────────────────────────────────────── */
.dfb-dashboard .dfb-empty-state { padding: 20px 0 6px; color: var(--dfb-muted); font-size: 0.84rem; }
.dfb-dashboard .dfb-empty-state--centered { text-align: center; padding: 48px 24px; }
.dfb-dashboard .dfb-empty-state__heading  { font-size: 1rem; font-weight: 700; color: var(--dfb-text); margin: 0 0 8px; }

/* ── Badges ─────────────────────────────────────────────────────────────────── */
.dfb-dashboard .dfb-badge {
  display:        inline-block;
  padding:        2px 8px;
  border-radius:  20px;
  font-family:    'Mulish', sans-serif;
  font-size:      0.58rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dfb-badge--full    { background: var(--dfb-accent-dim); color: var(--dfb-accent); border: 1px solid rgba(233,93,107,0.25); }
.dfb-badge--partial { background: rgba(245,166,35,.1);   color: var(--dfb-amber);  border: 1px solid rgba(245,166,35,.25); }
.dfb-badge--neutral { background: rgba(74,112,85,.15);   color: var(--dfb-muted);  border: 1px solid var(--dfb-border); }

/* Badge colours inside dark game cards (account My Games) */
.dfb-dashboard .dfb-game-card__banner-overlay .dfb-badge--full    { background: rgba(233,93,107,0.25); color: #ffb3bb; border-color: rgba(233,93,107,0.45); }
.dfb-dashboard .dfb-game-card__banner-overlay .dfb-badge--partial { background: rgba(245,166,35,0.2);  color: #ffd875; border-color: rgba(245,166,35,0.45); }
.dfb-dashboard .dfb-game-card__banner-overlay .dfb-badge--neutral { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); }

/* ── Game grid ──────────────────────────────────────────────────────────────── */
.dfb-dashboard .dfb-game-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap:                   14px;
}

/* Account page game cards — dark banner style matching [darkframe_games] */
.dfb-dashboard .dfb-game-card {
  background:     #1e2330;
  border:         1px solid rgba(255,255,255,0.08);
  border-radius:  var(--dfb-radius);
  display:        flex;
  flex-direction: column;
  overflow:       hidden;
  transition:     border-color 0.15s, box-shadow 0.15s;
}
.dfb-dashboard .dfb-game-card:hover { border-color: rgba(233,93,107,0.4); box-shadow: 0 4px 20px rgba(0,0,0,0.35); }
.dfb-dashboard .dfb-game-card--offline { opacity: 0.65; }

/* Banner image area — full width, tall, overlaid content */
.dfb-dashboard .dfb-game-card__logo {
  position: relative;
  width: 100%; height: 160px;
  overflow: hidden; flex-shrink: 0;
  background: #2a3042;
}
.dfb-dashboard .dfb-game-card__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dfb-dashboard .dfb-game-card__logo-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(233,93,107,0.18), rgba(30,35,48,0.9));
  font-family: 'Oswald', sans-serif; font-size: 2.2rem; font-weight: 700; color: rgba(233,93,107,0.6);
}

/* Gradient overlay with title/status/badges */
.dfb-dashboard .dfb-game-card__banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,12,20,0.92) 0%, rgba(10,12,20,0.45) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 12px 14px;
  gap: 5px;
}
.dfb-dashboard .dfb-game-card__status {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.68rem; font-weight: 600; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.dfb-dashboard .dfb-game-card__dot {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.25); flex-shrink: 0;
}
.dfb-dashboard .dfb-game-card--online .dfb-game-card__dot,
.dfb-dashboard .dfb-game-card:not(.dfb-game-card--offline) .dfb-game-card__dot {
  background: #38a169; box-shadow: 0 0 5px rgba(56,161,105,0.6);
}
.dfb-dashboard .dfb-game-card__name {
  font-family: 'Oswald', sans-serif; font-size: 1.35rem; font-weight: 700;
  color: #ffffff; margin: 0; line-height: 1.15;
}
.dfb-dashboard .dfb-game-card__badges { display: flex; flex-wrap: wrap; gap: 4px; }

/* Body area below the banner */
.dfb-dashboard .dfb-game-card__body {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px; flex: 1;
}

.dfb-dashboard .dfb-game-card__progress {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--dfb-radius-sm); overflow: hidden;
}
.dfb-dashboard .dfb-progress-stat { background: rgba(255,255,255,0.04); padding: 7px 10px; display: flex; flex-direction: column; gap: 3px; }
.dfb-dashboard .dfb-progress-stat__label { font-family: 'Mulish', sans-serif; font-size: 0.54rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.4); }
.dfb-dashboard .dfb-progress-stat__value { font-family: 'Mulish', sans-serif; font-size: 0.78rem; color: rgba(255,255,255,0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dfb-dashboard .dfb-progress-stat__value--accent { color: var(--dfb-accent); }

.dfb-dashboard .dfb-game-card__desc { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin: 0; line-height: 1.4; }
.dfb-dashboard .dfb-game-card__unavailable { font-size: 0.76rem; color: rgba(255,255,255,0.35); font-style: italic; margin: 0; }
.dfb-dashboard .dfb-offline-note { font-size: 0.76rem; color: rgba(255,255,255,0.35); font-style: italic; }

/* Play button inside account game cards */
.dfb-dashboard .dfb-game-card__actions {
  margin-top: auto; display: flex; gap: 8px;
}
.dfb-dashboard .dfb-game-card__btn {
  flex: 1; display: inline-block; text-align: center;
  padding: 9px 16px; border-radius: var(--dfb-radius-sm);
  background: var(--dfb-accent); color: #fff;
  font-family: 'Mulish', sans-serif; font-size: 0.78rem; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.dfb-dashboard .dfb-game-card__btn:hover { background: var(--dfb-accent-hover); transform: translateY(-1px); }
.dfb-dashboard .dfb-game-card__btn--disabled {
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.35); cursor: not-allowed;
}
.dfb-dashboard .dfb-game-card__btn--disabled:hover { transform: none; background: rgba(255,255,255,0.1); }

/* ── Billing panel ──────────────────────────────────────────────────────────── */
.dfb-dashboard .dfb-billing-plan { display: flex; flex-direction: column; gap: 6px; }
.dfb-dashboard .dfb-billing-plan__info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.dfb-dashboard .dfb-billing-plan__name { font-size: 1rem; font-weight: 700; color: var(--dfb-text); }
.dfb-dashboard .dfb-billing-plan__detail { font-size: 0.8rem; color: var(--dfb-muted); margin: 0 0 10px; }
.dfb-dashboard .dfb-billing-plan__detail strong { color: var(--dfb-text-dim); }

/* ── Table ──────────────────────────────────────────────────────────────────── */
.dfb-dashboard .dfb-table-wrap { overflow-x: auto; margin-top: 4px; }
.dfb-dashboard .dfb-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.dfb-dashboard .dfb-table th {
  font-family: 'Mulish', sans-serif; font-size: 0.56rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--dfb-muted); padding: 8px 12px;
  text-align: left; border-bottom: 1px solid var(--dfb-border); font-weight: 700;
}
.dfb-dashboard .dfb-table td { padding: 10px 12px; border-bottom: 1px solid var(--dfb-border-dim); color: var(--dfb-text); }
.dfb-dashboard .dfb-table tbody tr:last-child td { border-bottom: none; }
.dfb-dashboard .dfb-table tbody tr:hover { background: var(--dfb-surface-2); }

/* ── Referrals ──────────────────────────────────────────────────────────────── */
.dfb-dashboard .dfb-intro { font-size: 0.82rem; color: var(--dfb-muted); margin: 0 0 18px; line-height: 1.6; }

.dfb-dashboard .dfb-ref-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px; margin-bottom: 24px;
}

.dfb-dashboard .dfb-ref-card { padding: 16px; }
.dfb-dashboard .dfb-ref-card__header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dfb-dashboard .dfb-ref-card__logo { width: 34px; height: 34px; object-fit: cover; border-radius: var(--dfb-radius-sm); flex-shrink: 0; }
.dfb-dashboard .dfb-ref-card__icon {
  width: 34px; height: 34px; background: var(--dfb-surface-2); border: 1px solid var(--dfb-border);
  border-radius: var(--dfb-radius-sm); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.dfb-dashboard .dfb-ref-card__name { font-weight: 700; font-size: 0.84rem; margin: 0 0 2px; color: var(--dfb-text); }
.dfb-dashboard .dfb-ref-card__desc { font-size: 0.72rem; color: var(--dfb-muted); margin: 0; font-family: 'Mulish', sans-serif; }

.dfb-dashboard .dfb-copy-row { display: flex; overflow: hidden; border: 1px solid var(--dfb-border); border-radius: var(--dfb-radius-sm); }
.dfb-dashboard .dfb-copy-row__input { flex: 1; background: var(--dfb-bg); border: none; padding: 8px 10px; font-family: var(--dfb-mono); font-size: 0.68rem; color: var(--dfb-muted); min-width: 0; outline: none; }
.dfb-dashboard .dfb-copy-row__btn {
  background: var(--dfb-surface-2); border: none; border-left: 1px solid var(--dfb-border);
  color: var(--dfb-text-dim); font-family: var(--dfb-mono); font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; padding: 0 14px; cursor: pointer;
  white-space: nowrap; transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.dfb-dashboard .dfb-copy-row__btn:hover { background: var(--dfb-accent); color: #fff; }
.dfb-dashboard .dfb-copy-row__btn.is-copied { background: var(--dfb-accent); color: #fff; }

/* ── Redeem section ─────────────────────────────────────────────────────────── */
.dfb-dashboard .dfb-rewards { padding-top: 4px; }

.dfb-dashboard .dfb-redeem-banner {
  display:       flex;
  align-items:   flex-start;
  gap:           14px;
  padding:       16px 18px;
  background:    var(--dfb-accent-dim);
  border:        1px solid rgba(233,93,107,0.25);
  border-radius: var(--dfb-radius);
  margin-bottom: 20px;
}
.dfb-dashboard .dfb-redeem-banner__icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1; }
.dfb-dashboard .dfb-redeem-banner strong { color: var(--dfb-accent); font-size: 0.9rem; }
.dfb-dashboard .dfb-redeem-banner p { margin: 4px 0 0; font-size: 0.8rem; color: var(--dfb-muted); }

.dfb-dashboard .dfb-section-label {
  font-family: 'Mulish', sans-serif; font-size: 0.58rem; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--dfb-muted); font-weight: 700; margin: 0 0 14px;
}

.dfb-dashboard .dfb-rewards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }

.dfb-dashboard .dfb-reward-card { display: flex; flex-direction: column; gap: 10px; text-align: center; padding: 18px 16px; }
.dfb-dashboard .dfb-reward-card--affordable { border-color: rgba(233,93,107,0.35); box-shadow: var(--dfb-glow-sm); }

.dfb-dashboard .dfb-reward-card__label { font-weight: 700; font-size: 0.88rem; margin: 0; color: var(--dfb-text); }
.dfb-dashboard .dfb-reward-card__cost { font-family: 'Oswald', sans-serif; font-size: 1.1rem; margin: 0; }

.dfb-dashboard .dfb-reward-card__progress-wrap { height: 3px; background: var(--dfb-border); border-radius: 2px; overflow: hidden; }
.dfb-dashboard .dfb-reward-card__progress-bar { height: 100%; background: var(--dfb-accent); border-radius: 2px; transition: width 0.6s ease; }

.dfb-dashboard .dfb-reward-card__shortfall { font-size: 0.7rem; font-family: 'Mulish', sans-serif; margin: 0; }

/* Ready-to-redeem glow pulse */
.dfb-dashboard .dfb-redeem-btn--ready {
  box-shadow: var(--dfb-glow-sm);
  animation: dfb-pulse 2.5s ease-in-out infinite;
}

/* ── Feedback notices ───────────────────────────────────────────────────────── */
.dfb-dashboard .dfb-notice { padding: 10px 14px; border-radius: var(--dfb-radius-sm); font-family: 'Mulish', sans-serif; font-size: 0.78rem; margin: 0 0 14px; }
.dfb-notice--ok  { background: rgba(56,161,105,0.08);  color: #38a169; border: 1px solid rgba(56,161,105,0.25); }
.dfb-notice--err { background: rgba(255,77,77,.08); color: var(--dfb-red);    border: 1px solid rgba(255,77,77,.25); }

/* ── Generic referral link — full width hero card ───────────────────────────── */
.dfb-dashboard .dfb-ref-hero {
  background: linear-gradient(135deg, var(--dfb-accent-dim) 0%, rgba(233,93,107,0.06) 100%);
  border: 1px solid rgba(233,93,107,0.2);
  border-radius: var(--dfb-radius);
  padding: 22px 24px;
  margin-bottom: 20px;
}
.dfb-dashboard .dfb-ref-hero__eyebrow {
  font-family: 'Mulish', sans-serif; font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--dfb-accent);
  margin: 0 0 6px;
}
.dfb-dashboard .dfb-ref-hero__title {
  font-family: 'Oswald', sans-serif; font-size: 1.25rem; font-weight: 600;
  color: var(--dfb-text); margin: 0 0 4px;
}
.dfb-dashboard .dfb-ref-hero__sub {
  font-size: 0.8rem; color: var(--dfb-muted); margin: 0 0 14px; line-height: 1.5;
}
.dfb-dashboard .dfb-ref-hero .dfb-copy-row { max-width: 560px; }

/* ── Per-game referral heading ──────────────────────────────────────────────── */
.dfb-dashboard .dfb-ref-games-heading {
  margin: 24px 0 6px;
}
.dfb-dashboard .dfb-ref-games-heading h3 {
  font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 600;
  color: var(--dfb-text); margin: 0 0 4px;
}
.dfb-dashboard .dfb-ref-games-heading p {
  font-size: 0.78rem; color: var(--dfb-muted); margin: 0 0 14px; line-height: 1.5;
}

/* ── Personal Details / Security panel forms ─────────────────────────────────── */
.dfb-dashboard .dfb-form-panel { }
.dfb-dashboard .dfb-form-section { margin-bottom: 28px; }
.dfb-dashboard .dfb-form-section__title {
  font-family: 'Oswald', sans-serif; font-size: 0.95rem; font-weight: 600;
  color: var(--dfb-text); margin: 0 0 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--dfb-border);
}
.dfb-dashboard .dfb-field { margin-bottom: 14px; }
.dfb-dashboard .dfb-field label {
  display: block; font-size: 0.75rem; font-weight: 700; color: var(--dfb-text-dim);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 5px;
  font-family: 'Mulish', sans-serif;
}
.dfb-dashboard .dfb-field input[type="text"],
.dfb-dashboard .dfb-field input[type="email"],
.dfb-dashboard .dfb-field input[type="password"] {
  width: 100%; padding: 9px 12px; border: 1px solid var(--dfb-border);
  border-radius: var(--dfb-radius-sm); background: var(--dfb-bg);
  color: var(--dfb-text); font-family: 'Mulish', sans-serif; font-size: 0.85rem;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.dfb-dashboard .dfb-field input:focus {
  border-color: var(--dfb-accent); box-shadow: 0 0 0 3px rgba(233,93,107,0.12);
}
.dfb-dashboard .dfb-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Delete Account panel ──────────────────────────────────────────────────── */
.dfb-dashboard .dfb-delete-panel { }

.dfb-dashboard .dfb-delete-warning-box {
  background: rgba(229,62,62,0.06); border: 1px solid rgba(229,62,62,0.25);
  border-radius: var(--dfb-radius); padding: 18px 20px; margin-bottom: 20px;
}
.dfb-dashboard .dfb-delete-warning-box h3 {
  font-family: 'Oswald', sans-serif; font-size: 1rem; color: #c53030;
  margin: 0 0 10px; font-weight: 600;
}
.dfb-dashboard .dfb-delete-warning-box ul {
  margin: 0 0 0 16px; padding: 0; font-size: 0.82rem; color: var(--dfb-muted);
  line-height: 1.8;
}

.dfb-dashboard .dfb-delete-step { display: none; }
.dfb-dashboard .dfb-delete-step.is-active { display: block; }

.dfb-dashboard .dfb-delete-check-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.84rem; color: var(--dfb-text); cursor: pointer; margin-bottom: 16px;
}
.dfb-dashboard .dfb-delete-check-label input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: #e53e3e; }

.dfb-dashboard .dfb-delete-confirm-input {
  width: 100%; padding: 9px 12px; border: 1px solid rgba(229,62,62,0.35);
  border-radius: var(--dfb-radius-sm); background: var(--dfb-bg);
  color: var(--dfb-text); font-family: 'Mulish', sans-serif; font-size: 0.85rem;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box; margin-bottom: 14px;
}
.dfb-dashboard .dfb-delete-confirm-input:focus {
  border-color: #e53e3e; box-shadow: 0 0 0 3px rgba(229,62,62,0.12);
}

.dfb-dashboard .dfb-btn--danger {
  background: #e53e3e; color: #fff; border: none;
}
.dfb-dashboard .dfb-btn--danger:hover { background: #c53030; }
.dfb-dashboard .dfb-btn--danger:disabled { background: rgba(229,62,62,0.4); cursor: not-allowed; }

/* Danger nav tab */
.dfb-dashboard .dfb-account__nav-link.dfb-tab--danger { color: rgba(229,62,62,0.7); }
.dfb-dashboard .dfb-account__nav-link.dfb-tab--danger:hover,
.dfb-dashboard .dfb-account__nav-link.dfb-tab--danger.is-active {
  background: rgba(229,62,62,0.08); color: #e53e3e;
}

/* ── Avatar picker modal ────────────────────────────────────────────────────── */
.dfb-avatar-modal {
  position: fixed;
  inset:    0;
  z-index:  99999;
  display:  flex;
  align-items: center;
  justify-content: center;
  padding:  20px;
}

.dfb-avatar-modal[hidden] { display: none; }

.dfb-avatar-modal__backdrop {
  position:   absolute;
  inset:      0;
  background: rgba(30,35,48,0.55);
  backdrop-filter: blur(3px);
}

.dfb-avatar-modal__box {
  position:      relative;
  z-index:       1;
  background:    #ffffff;
  border:        1px solid var(--dfb-border);
  border-radius: var(--dfb-radius);
  box-shadow:    0 8px 40px rgba(30,35,48,0.18);
  max-width:     520px;
  width:         100%;
  max-height:    90vh;
  overflow:      auto;
  padding:       24px;
}

.dfb-avatar-modal__header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  margin-bottom:   14px;
}

.dfb-avatar-modal__header span {
  font-family: 'Oswald', sans-serif;
  font-size:   1rem;
  font-weight: 600;
  color:       var(--dfb-text);
  letter-spacing: 0.02em;
}

.dfb-avatar-modal__close {
  background:  transparent;
  border:      none;
  color:       var(--dfb-muted);
  font-size:   1rem;
  cursor:      pointer;
  padding:     2px 6px;
  border-radius: var(--dfb-radius-sm);
  transition:  color 0.15s, background 0.15s;
}
.dfb-avatar-modal__close:hover { color: var(--dfb-accent); background: var(--dfb-accent-dim); }

.dfb-avatar-modal__hint {
  font-size:   0.78rem;
  color:       var(--dfb-muted);
  margin:      0 0 18px;
  line-height: 1.5;
}

.dfb-avatar-modal__grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   10px;
}

.dfb-avatar-option {
  background:    var(--dfb-surface);
  border:        1px solid var(--dfb-border);
  border-radius: var(--dfb-radius-sm);
  padding:       10px 6px 8px;
  cursor:        pointer;
  display:       flex;
  flex-direction: column;
  align-items:   center;
  gap:           6px;
  transition:    border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.dfb-avatar-option:hover {
  border-color: rgba(233,93,107,.5);
  background:   var(--dfb-surface-2);
}
.dfb-avatar-option.is-selected {
  border-color: var(--dfb-accent);
  background:   var(--dfb-accent-dim);
}
.dfb-avatar-option img { width: 56px; height: 56px; image-rendering: pixelated; border-radius: var(--dfb-radius-sm); display: block; }
.dfb-avatar-option__label { font-size: 0.6rem; color: var(--dfb-muted); font-weight: 600; text-align: center; }
.dfb-avatar-option.is-selected .dfb-avatar-option__label { color: var(--dfb-accent); }

.dfb-avatar-modal__footer { margin-top: 16px; text-align: center; min-height: 20px; }

.dfb-avatar-modal__status { font-family: var(--dfb-mono); font-size: 0.72rem; color: var(--dfb-muted); }
.dfb-avatar-modal__status--ok  { color: var(--dfb-accent); }
.dfb-avatar-modal__status--err { color: var(--dfb-red); }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .dfb-dashboard__header   { flex-direction: column; align-items: flex-start; padding: 16px; }
  .dfb-dashboard__header-status { width: 100%; }
  .dfb-dashboard .dfb-stats-strip { grid-template-columns: repeat(2, 1fr); }
  .dfb-dashboard .dfb-overview-grid { grid-template-columns: 1fr; }
  .dfb-dashboard .dfb-card--plan, .dfb-dashboard .dfb-card--games-preview { grid-column: 1; }
  .dfb-dashboard .dfb-panels { padding: 14px; }
}

@media (max-width: 480px) {
  .dfb-dashboard .dfb-stats-strip { grid-template-columns: repeat(2, 1fr); }
  .dfb-dashboard .dfb-stats-strip--compact { grid-template-columns: repeat(2, 1fr); }
  .dfb-dashboard .dfb-tabs { padding: 0 4px; }
  .dfb-dashboard .dfb-tab { padding: 11px 12px 9px; font-size: 0.66rem; }
  .dfb-dashboard .dfb-game-grid { grid-template-columns: 1fr; }
  .dfb-dashboard .dfb-ref-cards { grid-template-columns: 1fr; }
  .dfb-dashboard .dfb-rewards-grid { grid-template-columns: 1fr 1fr; }
  .dfb-avatar-modal__grid { grid-template-columns: repeat(3, 1fr); }
  .dfb-dashboard__welcome { font-size: 1.05rem; }
}
