/* ==========================================================================
   TRIDENT RESELLER DASHBOARD - STYLING
   Matching Official Trident Susano Aesthetic & Exact Wireframe Layout
   ========================================================================== */

/* Main Wrapper */
.reseller-page {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 80px;
  overflow-x: hidden;
}

.reseller-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Atmospheric Ambient Glows */
.reseller-ambient-glow {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 550px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.09) 0%, rgba(245, 158, 11, 0.04) 40%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.reseller-ambient-glow-2 {
  position: fixed;
  bottom: 5%;
  right: 5%;
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.06) 0%, transparent 65%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   HERO / BANNER SECTION
   ========================================================================== */
.reseller-hero {
  position: relative;
  z-index: 1;
  margin-bottom: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.012) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px 36px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.reseller-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.reseller-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 8px;
}

.reseller-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  animation: pulseAmber 2s infinite ease-in-out;
}

@keyframes pulseAmber {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.reseller-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.reseller-title span {
  background: linear-gradient(135deg, #ff7a45 0%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.reseller-desc {
  font-size: 0.92rem;
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.55;
}

.reseller-hero-metrics {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.metric-pill {
  display: flex;
  flex-direction: column;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.metric-pill .label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.metric-pill .val {
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: #ffffff;
}

.metric-pill .val.highlight {
  color: #22c55e;
}

/* Section Header Labels */
.reseller-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.reseller-section-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.reseller-section-title .badge-count {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: rgba(239, 68, 68, 0.15);
  color: #ff6e6e;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.reseller-section-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TOP ROW: 6 SMALL CARDS (Normal Products - Wireframe 1:1)
   ========================================================================== */
.resellers-small-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.reseller-card-small {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.012) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.reseller-card-small::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.reseller-card-small:hover {
  transform: translateY(-5px);
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 16px 36px -12px rgba(239, 68, 68, 0.25), 0 0 20px rgba(239, 68, 68, 0.12);
}

.reseller-card-small:hover::before {
  opacity: 1;
}

.card-small-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-small-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6e6e;
}

.card-small-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-small-tag.normal {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.28);
}

.card-small-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-small-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-small-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-small-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.card-small-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.card-small-stock {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #22c55e;
}

.card-small-stock .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
}

.card-small-stock.low {
  color: #f59e0b;
}
.card-small-stock.low .dot {
  background: #f59e0b;
}

.btn-card-small {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-card-small:hover {
  background: var(--accent-grad);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px -4px rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

/* ==========================================================================
   BOTTOM ROW: 2 LARGE CARDS (Official Products - Wireframe 1:1)
   ========================================================================== */
.resellers-large-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.reseller-card-large {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 32px 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.7);
}

.reseller-card-large::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.08) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}


/* Privacy Protector Blue Accent & Hover Effect */
.reseller-card-large.card-privacy::after {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
}

.reseller-card-large.card-privacy:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 24px 60px -20px rgba(37, 99, 235, 0.4), 0 0 35px rgba(59, 130, 246, 0.28);
}

.reseller-card-large.card-privacy .tier-box:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.08);
}

.reseller-card-large:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 24px 60px -20px rgba(239, 68, 68, 0.25), 0 0 30px rgba(239, 68, 68, 0.12);
}

/* Large Card Top Header */
.card-large-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

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

.card-large-logo-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.card-large-logo-box img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.card-large-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-large-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ef4444;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-large-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.card-large-badge-official {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(185, 28, 28, 0.35) 100%);
  color: #fff;
  border: 1px solid rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 16px -2px rgba(239, 68, 68, 0.35);
}

.card-large-badge-official .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5757;
  box-shadow: 0 0 8px #ff5757;
}

/* Feature tags pill bar */
.card-large-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pill-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-tag.green {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.25);
}

.pill-tag.cyan {
  background: rgba(63, 227, 255, 0.1);
  color: #3fe3ff;
  border-color: rgba(63, 227, 255, 0.25);
}

/* Features List with Clean Checkmarks */
.card-large-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.card-large-features li {
  font-size: 0.88rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.45;
}

.card-large-features li svg {
  color: #22c55e;
  flex-shrink: 0;
}

/* Reseller Wholesale Pricing Table in Large Card */
.card-large-tiers {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 22px;
}

.tiers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
}

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


/* Interactive Tier Box Styles */
.tier-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
  position: relative;
  outline: none;
}

.tier-box:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-2px);
}

.tier-box.selected,
.tier-box.active {
  border-color: #3b82f6 !important;
  background: rgba(59, 130, 246, 0.16) !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.45), inset 0 0 10px rgba(59, 130, 246, 0.2) !important;
  transform: translateY(-2px);
}

.tier-box.selected .tier-name,
.tier-box.active .tier-name {
  color: #93c5fd !important;
  font-weight: 800;
}

.tier-box.selected .tier-price,
.tier-box.active .tier-price {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.85);
}

.tier-box.selected .tier-discount,
.tier-box.active .tier-discount {
  color: #60a5fa !important;
  font-weight: 800;
}

/* Original fallback */
.tier-box-orig {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  transition: all 0.2s ease;
}

.tier-box:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(239, 68, 68, 0.3);
}

.tier-name {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-bottom: 4px;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.tier-discount {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: #22c55e;
  font-weight: 700;
}

/* Actions in Large Card */
.card-large-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-large-primary {
  flex: 1;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  background: var(--accent-grad);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px -6px rgba(239, 68, 68, 0.5);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-large-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(239, 68, 68, 0.65);
}

.btn-large-secondary {
  padding: 12px 18px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Quantity Picker Control (Replaces Manage Stock) */
.quantity-picker-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 14, 20, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 12px;
  padding: 5px 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  user-select: none;
}

.quantity-picker-box:hover {
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
}

.qty-btn {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  padding: 0;
}

.qty-btn:hover {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
  transform: scale(1.05);
}

.qty-btn:active {
  transform: scale(0.95);
}

.qty-val-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 0 4px;
}

.qty-number {
  font-family: var(--font-display, inherit);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.qty-unit {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  font-weight: 700;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


/* Coming Soon Block inside Large Card (Replaces Wholesale Tiers & Buttons) */
.card-large-soon-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 28px rgba(239, 68, 68, 0.04);
}

.card-large-soon-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.6), transparent);
}

.card-large-soon-box .coming-soon-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.card-large-soon-box .coming-soon-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(239, 68, 68, 0.35);
  line-height: 1;
}

.card-large-soon-box .coming-soon-badge {
  background: linear-gradient(135deg, #ff5757, #ef4444);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
}

.card-large-soon-box .coming-soon-sub {
  color: var(--text-muted, #9c9cb0);
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0 0 10px;
}

.card-large-soon-box .coming-soon-perks {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #10b981;
}

.btn-large-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1200px) {
  .resellers-small-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .resellers-large-grid {
    grid-template-columns: 1fr;
  }
  .reseller-hero-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .reseller-hero-metrics {
    width: 100%;
  }
  .metric-pill {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .resellers-small-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .reseller-hero {
    padding: 24px 20px;
  }
  .reseller-title {
    font-size: 1.6rem;
  }
  .tiers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-large-actions {
    flex-direction: column;
  }
  .btn-large-primary,
  .btn-large-secondary {
    width: 100%;
  }
}
