/* =============================================
   DK Makes — Premium Modules CSS
   Desacoplado. Não interfere nos estilos base.
   ============================================= */

/* ---------- Shared ---------- */
[id^="dk-"]:empty { display: none; }

/* ---------- PRO Version ---------- */
.pm-pro-card {
  border: 2px solid #C7A263;
  border-radius: 12px;
  padding: 1.2rem;
  margin: 1rem 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
.pm-pro-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .6rem;
}
.pm-pro-badge {
  background: #C7A263;
  color: #0D1117;
  font-weight: 700;
  font-size: .7rem;
  padding: .2rem .6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.pm-pro-label {
  font-weight: 600;
  font-size: 1.05rem;
  color: #F0F6FC;
}
.pm-pro-desc {
  color: #8B949E;
  font-size: .88rem;
  margin: .4rem 0 .8rem;
  line-height: 1.5;
}
.pm-pro-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .35rem;
}
.pm-pro-features li {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  color: #C9D1D9;
}
.pm-pro-features li svg { color: #C7A263; flex-shrink: 0; }

/* ---------- Country Selector ---------- */
.pm-country-card {
  border: 1px solid #30363D;
  border-radius: 12px;
  padding: 1.2rem;
  margin: 1rem 0;
  background: #161B22;
}
.pm-country-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .8rem;
}
.pm-country-flag { font-size: 1.6rem; }
.pm-country-name { font-weight: 600; font-size: .95rem; color: #F0F6FC; }
.pm-country-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin-bottom: .8rem;
}
.pm-country-detail {
  background: #0D1117;
  border-radius: 8px;
  padding: .6rem .8rem;
}
.pm-country-detail-label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  color: #8B949E;
  letter-spacing: .04em;
}
.pm-country-detail-value {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  color: #F0F6FC;
  margin-top: .15rem;
}
.pm-country-cost { color: #C7A263; }
.pm-country-select {
  width: 100%;
  padding: .5rem .8rem;
  border: 1px solid #30363D;
  border-radius: 8px;
  background: #0D1117;
  color: #F0F6FC;
  font-size: .85rem;
  cursor: pointer;
  appearance: auto;
}
.pm-country-select:focus { border-color: #C7A263; outline: none; }

/* ---------- Kit Builder ---------- */
.pm-kit-card {
  border: 1px solid #30363D;
  border-radius: 12px;
  padding: 1.2rem;
  margin: 1rem 0;
  background: #161B22;
}
.pm-kit-header { margin-bottom: 1rem; }
.pm-kit-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #F0F6FC;
  margin: 0 0 .25rem;
}
.pm-kit-subtitle {
  color: #8B949E;
  font-size: .85rem;
  margin: 0;
}
.pm-kit-subtitle strong { color: #C7A263; }
.pm-kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .6rem;
  margin-bottom: 1rem;
}
.pm-kit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .6rem;
  border: 2px solid #30363D;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  text-align: center;
}
.pm-kit-item:hover { border-color: #C7A263; }
.pm-kit-item--selected {
  border-color: #C7A263;
  background: rgba(199,162,99,.08);
}
.pm-kit-cb { display: none; }
.pm-kit-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}
.pm-kit-img-placeholder {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0D1117;
  border-radius: 6px;
  font-size: 1.4rem;
}
.pm-kit-item-title {
  font-size: .75rem;
  color: #C9D1D9;
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
}
.pm-kit-item-price {
  font-size: .8rem;
  font-weight: 600;
  color: #C7A263;
}
.pm-kit-summary {
  border-top: 1px solid #30363D;
  padding-top: .8rem;
}
.pm-kit-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  color: #C9D1D9;
  padding: .25rem 0;
}
.pm-kit-discount { color: #3FB950; }
.pm-kit-total { color: #F0F6FC; font-size: .95rem; border-top: 1px solid #30363D; margin-top: .3rem; padding-top: .5rem; }

/* ---------- Loyalty Level ---------- */
.pm-loyalty-card {
  border: 1px solid #30363D;
  border-radius: 12px;
  padding: 1.2rem;
  margin: 1rem 0;
  background: #161B22;
}
.pm-loyalty-header {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: .8rem;
}
.pm-loyalty-icon { font-size: 2rem; }
.pm-loyalty-level {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
}
.pm-loyalty-stats {
  display: block;
  font-size: .82rem;
  color: #8B949E;
}
.pm-loyalty-progress { margin-bottom: .8rem; }
.pm-loyalty-bar {
  height: 6px;
  background: #21262D;
  border-radius: 3px;
  overflow: hidden;
}
.pm-loyalty-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .6s ease;
}
.pm-loyalty-next {
  font-size: .78rem;
  color: #8B949E;
  margin: .35rem 0 0;
}
.pm-loyalty-tiers {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.pm-loyalty-tier {
  font-size: .76rem;
  padding: .2rem .5rem;
  border-radius: 4px;
  background: #21262D;
  color: #8B949E;
}
.pm-loyalty-tier--active {
  background: #0D1117;
  color: var(--tier-color, #C7A263);
  font-weight: 600;
  border: 1px solid var(--tier-color, #C7A263);
}

/* ---------- Print History ---------- */
.pm-history-card {
  border: 1px solid #30363D;
  border-radius: 12px;
  padding: 1.2rem;
  margin: 1rem 0;
  background: #161B22;
}
.pm-history-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #F0F6FC;
  margin: 0 0 .8rem;
}
.pm-history-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-bottom: .8rem;
}
.pm-history-stat {
  text-align: center;
  background: #0D1117;
  border-radius: 8px;
  padding: .6rem .4rem;
}
.pm-history-stat-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #C7A263;
}
.pm-history-stat-label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  color: #8B949E;
  letter-spacing: .04em;
}
.pm-history-dates {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  color: #8B949E;
  margin-bottom: .8rem;
}
.pm-history-dates strong { color: #C9D1D9; }
.pm-history-products-title {
  font-size: .88rem;
  font-weight: 600;
  color: #F0F6FC;
  margin: 0 0 .5rem;
}
.pm-history-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: .5rem;
}
.pm-history-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: .2rem;
}
.pm-history-product-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
}
.pm-history-product-img-placeholder {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0D1117;
  border-radius: 6px;
  font-size: 1.2rem;
}
.pm-history-product-title {
  font-size: .68rem;
  color: #C9D1D9;
  text-align: center;
  max-height: 2.6em;
  overflow: hidden;
  line-height: 1.3;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .pm-history-stats { grid-template-columns: 1fr 1fr 1fr; }
  .pm-kit-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
  .pm-country-details { grid-template-columns: 1fr; }
}
