/* ==========================================================
   💠 VELVET ADMIN PRICING — Gold Luxury Edition
   (Plans / Boosts / Coins / Gifts / Add-ons / Visuals)
   Consistente com adminSettings.css e adminDashboard.css
   ========================================================== */

:root {
  --gold: #d4af37;
  --gold-dark: #b38e2e;
  --surface: #121212;
  --card: #1a1a1a;
  --border: #2b2b2b;
  --text: #f5f5f5;
  --muted: #aaa;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ==========================================================
   SECTION BASE
========================================================== */
.pricing-admin {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px;
  color: var(--text);
  font-family: "Inter", sans-serif;
}

.pricing-admin h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================
   HEADER / TABS
========================================================== */
.admin-header {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-header p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

/* ===== Tabs ===== */
.pricing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.pricing-tabs .tab-btn {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold);
  border-radius: 12px;
  padding: 8px 16px;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
}
.pricing-tabs .tab-btn:hover {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
}
.pricing-tabs .tab-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.25);
}

/* ==========================================================
   GRID ITEMS / INPUTS
========================================================== */
.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: fadeIn 0.4s ease;
}

.pricing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.pricing-item:hover {
  border-color: rgba(212, 175, 55, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.pricing-item strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: capitalize;
  flex: 1;
}

.price-input {
  width: 90px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  text-align: right;
  transition: all 0.25s ease;
}
.price-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.btn-sm {
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  background: transparent;
  color: var(--gold);
  padding: 6px 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-sm:hover {
  background: var(--gold);
  color: #000;
}

.promo-badge {
  background: linear-gradient(135deg, #ffd451, #d4af37);
  color: #000;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.25);
}

/* ==========================================================
   COINS TABLE
========================================================== */
.coins-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 10px;
  background: var(--card);
}
.coins-table th, .coins-table td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.coins-table th {
  color: var(--gold);
  font-weight: 600;
}
.coins-table input {
  width: 80%;
  padding: 6px;
  text-align: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.25s ease;
}
.coins-table input:focus {
  border-color: var(--gold);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}

/* ==========================================================
   TOAST
========================================================== */
.admin-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.35s ease;
  z-index: 1000;
}
.admin-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width: 900px) {
  .pricing-admin {
    padding: 22px;
  }
  .pricing-grid {
    padding: 16px;
  }
  .coins-table th, .coins-table td {
    font-size: 0.85rem;
    padding: 8px;
  }
  .pricing-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .price-input {
    width: 100%;
  }
  .btn-sm {
    align-self: flex-end;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   💠 PROMO MODAL (Custom Dialog)
========================================================== */
.promo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn .3s ease;
}

.promo-modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 26px rgba(0,0,0,.45);
  animation: fadeInUp .35s ease;
}

.promo-modal h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 14px;
}

.promo-modal label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 10px;
  margin-bottom: 6px;
}

.promo-modal input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.promo-modal input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,.2);
}

.promo-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  gap: 10px;
}

.btn-cancel {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all .25s ease;
}
.btn-cancel:hover {
  background: rgba(255,255,255,.08);
  color: var(--text);
}

.btn-gold {
  flex: 1;
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  border-radius: 10px;
  padding: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .25s ease, transform .2s ease;
}
.btn-gold:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   💎 PROMO ACTIVE BADGE STYLE (highlight discounted items)
========================================================== */
.pricing-item.promo-active {
  border-color: rgba(212,175,55,.4);
  background: rgba(212,175,55,.06);
  box-shadow: 0 0 12px rgba(212,175,55,.2);
}
.pricing-item.promo-active strong::after {
  content: " (Promo)";
  color: var(--gold);
  font-size: 0.8em;
  margin-left: 4px;
}
.promo-badge {
  background: linear-gradient(135deg, #ffd451, #d4af37);
  color: #000;
  font-weight: 600;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.8rem;
  box-shadow: 0 4px 10px rgba(212,175,55,.25);
}



/* assets/css/modelBoost.css */

/* --- CONTAINER PRINCIPAL --- */
.boost-main-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  margin-bottom: 40px;
}

@media (max-width: 600px) {
  .boost-main-card { padding: 15px; }
}

.boost-section {
  display: flex;
  flex-direction: column;
  gap: 40px; /* Mais espaço entre seções */
  padding: 10px 0;
}

.dash-subheading {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  font-weight: 600;
}

/* --- PLANS GRID (4 Colunas) --- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 10px;
}

@media (max-width: 1100px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .plans-grid { grid-template-columns: 1fr; }
}

.plan-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  /* Espaço no topo para a ribbon */
  padding: 45px 20px 25px 20px; 
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  min-height: 480px; /* Altura mínima garantida */
}

.plan-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

.plan-card.plan-silver { border-top: 4px solid #C0C0C0; }
.plan-card.plan-gold { border-top: 4px solid #FFD700; }
.plan-card.plan-platinum { border-top: 4px solid #E5E4E2; }
.plan-card.plan-redDiamond { border-top: 4px solid #FF4444; }

.plan-ribbon {
  position: absolute;
  top: 15px;
  right: -5px;
  background: var(--gold);
  color: #000;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px 0 0 4px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  z-index: 2;
}

.plan-head {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.plan-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--text-color);
  margin: 0;
  line-height: 1.2;
}

.plan-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1; /* Empurra o footer para baixo */
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: left;
}

.plan-bullets li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.plan-bullets li i {
  color: var(--gold);
  margin-top: 3px;
  flex-shrink: 0;
}

.plan-actions {
  margin-top: 25px;
  text-align: center;
  width: 100%;
}

.plan-price {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.price-month {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.price-month i { font-size: 1rem; color: var(--gold); }
.plan-price small { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }

.upgrade-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.2s;
}
.upgrade-btn:hover { background: var(--gold); color: #000; }

.badge-current {
  display: inline-block;
  width: 100%;
  padding: 12px;
  text-align: center;
  color: var(--success-color);
  font-weight: bold;
  border: 1px solid var(--success-color);
  border-radius: 8px;
  background: rgba(0, 255, 0, 0.05);
}

/* --- BOOSTS GRID --- */
.boost-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.boost-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* Espaça o conteúdo */
  min-height: 280px;
}

.boost-card:hover { border-color: var(--gold); transform: translateY(-3px); }

.boost-icon i {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 15px;
  display: inline-block;
}

.boost-head h4 { margin: 0 0 10px 0; font-size: 1.2rem; color: var(--text-color); }
.boost-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; line-height: 1.4; flex-grow: 1; }

.boost-price-vc {
  display: block;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 1.1rem;
}
.boost-price-vc i { color: var(--gold); margin-right: 5px; }

.boost-btn {
  width: 100%;
  padding: 10px;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}
.boost-btn:hover { opacity: 0.9; }

/* --- UTILITIES (ADDONS) - CORRIGIDO --- */
.addons-options {
  display: grid;
  /* Garante que os cards tenham espaço suficiente */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.addon-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: all 0.2s;
  position: relative;
  min-height: 180px; /* Altura mínima */
}

.addon-card:hover { border-color: var(--gold); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.addon-card.active { border-color: var(--success-color); background: rgba(0, 255, 0, 0.03); }

.addon-top {
  display: flex;
  align-items: flex-start; /* Alinha ícone e texto no topo */
  gap: 15px;
}

.addon-top i {
  font-size: 1.5rem;
  color: var(--gold);
  background: rgba(255, 215, 0, 0.1);
  padding: 10px;
  border-radius: 10px;
  width: 45px; height: 45px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.addon-info h4 { margin: 0; font-size: 1.1rem; color: var(--text-color); font-weight: 600; }
.addon-info p { margin: 5px 0 0 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

.addon-active-note {
  font-size: 0.75rem;
  color: var(--success-color);
  font-weight: bold;
  margin-top: 5px;
  display: block;
}

/* Container de Ações (Preço + Botão) */
.addon-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto; /* Empurra para o fundo */
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  gap: 10px;
  flex-wrap: wrap; /* Permite quebrar linha se apertar */
}

.addon-price-vc {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-color);
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.addon-price-vc i { color: var(--gold); margin-right: 5px; }

/* Botão de Addon */
.addon-btn {
  padding: 8px 24px;
  border-radius: 20px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.addon-btn:hover { background: var(--gold); color: #000; }

/* Tabela de opções (Duração/Uso) */
.addon-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}

.addon-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  gap: 10px;
}

.addon-row span:first-child {
  color: var(--text-muted);
  flex-grow: 1;
}

.addon-row span:nth-child(2) {
  font-weight: bold;
  color: var(--text-color);
  white-space: nowrap;
}

.addon-buy {
  padding: 5px 12px;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: bold;
  white-space: nowrap;
  min-width: 60px;
}
.addon-buy:hover { opacity: 0.9; }
.addon-buy:disabled { background: #444; color: #888; cursor: not-allowed; }

.icon-help {
  background: none; border: none; color: var(--text-muted); cursor: pointer; margin-left: 5px; font-size: 0.9rem;
}
.icon-help:hover { color: var(--gold); }

/* Modals */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 9999; display: none; align-items: center; justify-content: center; }
.modal-overlay.open { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.modal-box { background: var(--bg-color); border: 1px solid var(--gold); padding: 25px; border-radius: 12px; max-width: 450px; width: 90%; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.modal-close { position: absolute; top: 10px; right: 15px; background: none; border: none; color: var(--text-muted); font-size: 1.8rem; cursor: pointer; }
.btn-gold { background: var(--gold); color: #000; border: none; padding: 12px; width: 100%; border-radius: 8px; cursor: pointer; font-weight: bold; font-size: 1rem; margin-top: 15px; }
.btn-ghost { background: transparent; border: 1px solid var(--text-muted); color: var(--text-muted); padding: 8px 16px; border-radius: 6px; cursor: pointer; }