/* Reseller & Partner Portal Styles */

.reseller-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.reseller-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* Header & Tier Banner */
.res-hero {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.res-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--kush), var(--haze), var(--kush));
}

.res-hero-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.res-badge-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.res-tier-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.res-tier-badge.partner {
  background: rgba(140, 255, 58, 0.15);
  color: var(--kush);
  border: 1px solid var(--kush);
  box-shadow: 0 0 14px rgba(140, 255, 58, 0.25);
}

.res-tier-badge.reseller {
  background: rgba(167, 139, 250, 0.15);
  color: var(--frost);
  border: 1px solid var(--haze);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.25);
}

.res-hero h2 {
  margin: 0;
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.res-hero p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
}

/* Stats Row */
.res-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.res-stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.res-stat-card span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--mute);
  font-weight: 600;
}

.res-stat-card b {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--frost);
  line-height: 1.1;
}

.res-stat-card.highlight b {
  color: var(--kush);
  text-shadow: 0 0 12px rgba(140, 255, 58, 0.4);
}

/* Main Layout Grid */
.res-main-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1050px) {
  .res-main-grid {
    grid-template-columns: 1fr;
  }
}

/* Wholesale Mint / Checkout Card */
.res-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.res-card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.res-card-h h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--frost);
  font-weight: 700;
}

.res-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.res-form-group label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mute);
  font-weight: 600;
}

/* Quantity Selector */
.res-qty-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.res-qty-btn {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--soft);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.res-qty-btn:hover {
  border-color: var(--kush);
  color: var(--frost);
}

.res-qty-btn.active {
  background: rgba(140, 255, 58, 0.15);
  border-color: var(--kush);
  color: var(--kush);
  font-weight: 800;
}

.res-custom-qty {
  width: 70px;
  text-align: center;
  padding: 5px 8px;
  font-size: 12px;
}

/* Wholesale Price Box */
.res-price-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.res-price-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--soft);
}

.res-price-line b {
  color: var(--frost);
}

.res-price-line.discount b {
  color: var(--kush);
}

.res-price-line.total {
  border-top: 1px dashed var(--line);
  padding-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--frost);
}

.res-price-line.total b {
  font-size: 20px;
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--kush);
}

/* Payment Gateway Selector */
.res-pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.res-pay-btn {
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 8px;
  padding: 10px 8px;
  color: var(--frost);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  text-align: center;
}

.res-pay-btn:hover {
  border-color: var(--kush);
  background: rgba(140, 255, 58, 0.08);
}

.res-pay-btn.active {
  border-color: var(--kush);
  background: rgba(140, 255, 58, 0.15);
  color: var(--kush);
}

/* Inventory Controls */
.res-inv-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.res-filter-tabs {
  display: flex;
  gap: 6px;
}

.res-filter-tab {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--soft);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.res-filter-tab.active {
  border-color: var(--kush);
  background: rgba(140, 255, 58, 0.12);
  color: var(--kush);
}

.res-export-btns {
  display: flex;
  gap: 6px;
}

/* Key Table / List */
.res-keys-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 480px;
  overflow-y: auto;
}

.res-keys-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.res-keys-table th {
  background: var(--bg);
  padding: 8px 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mute);
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
}

.res-keys-table td {
  padding: 8px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
  color: var(--soft);
}

.res-keys-table tr:hover td {
  background: rgba(140, 255, 58, 0.03);
}

.res-key-cell {
  font-family: var(--f-data);
  color: var(--frost);
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.res-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.res-status-chip.available {
  background: rgba(140, 255, 58, 0.12);
  color: var(--kush);
  border: 1px solid rgba(140, 255, 58, 0.3);
}

.res-status-chip.claimed {
  background: rgba(95, 212, 255, 0.12);
  color: #5fd4ff;
  border: 1px solid rgba(95, 212, 255, 0.3);
}

/* Customers List */
.res-customer-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}

.res-customer-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.res-customer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.res-customer-head b {
  color: var(--frost);
  font-size: 13px;
}

.res-customer-head small {
  color: var(--mute);
  font-size: 11px;
}

/* Stash CTA card */
.reseller-cta {
  background: linear-gradient(135deg, color-mix(in srgb, var(--panel) 90%, transparent), color-mix(in srgb, var(--kush) 6%, var(--panel)));
  border: 1px solid color-mix(in srgb, var(--kush) 40%, var(--line));
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .reseller-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

.reseller-cta-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reseller-cta h3 {
  margin: 0;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--frost);
}

.reseller-cta p {
  margin: 0;
  font-size: 13px;
  color: var(--soft);
  max-width: 600px;
}

.reseller-perks {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.reseller-perks span {
  font-size: 11px;
  color: var(--kush);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

