@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --pc-orange: #ff6000;
  --pc-orange-hover: #e55600;
  --pc-orange-light: #fff2ea;
  --pc-blue: #0053a0;
  --pc-dark: #131924;
  --pc-dark-surface: #1a2232;
  --pc-dark-card: #202b3e;
  --pc-border: #2c384e;
  --pc-border-light: #e2e8f0;
  --pc-bg: #f4f6f9;
  --pc-text-dark: #0f172a;
  --pc-text-muted: #64748b;
  --pc-green: #00a650;
  --pc-red: #ef4444;
  --pc-star: #ff9900;
  --pc-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --pc-font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--pc-font);
  background-color: var(--pc-bg);
  color: var(--pc-text-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

.pc-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   TOP BAR & HEADER
   ============================================================ */
.pc-top-status {
  background: #0b1018;
  color: #94a3b8;
  font-size: 0.78rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pc-status-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pc-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #22c55e;
  font-weight: 600;
}

.pc-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pcPulse 2s infinite;
}

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

.pc-header {
  background: var(--pc-dark);
  color: #ffffff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.pc-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pc-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

.pc-logo-icon {
  background: var(--pc-orange);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.35rem;
  padding: 6px 12px;
  border-radius: 8px;
  letter-spacing: -0.03em;
}

.pc-logo-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  display: block;
}

.pc-logo-sub {
  color: var(--pc-orange);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-top: -4px;
}

/* Search Box */
.pc-search-wrap {
  flex: 1;
  max-width: 640px;
  position: relative;
}

.pc-search-field {
  width: 100%;
  padding: 13px 52px 13px 22px;
  border-radius: 9999px;
  border: 2px solid transparent;
  background: #ffffff;
  font-size: 0.95rem;
  color: var(--pc-text-dark);
  outline: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
}

.pc-search-field:focus {
  border-color: var(--pc-orange);
  box-shadow: 0 0 0 4px rgba(255, 96, 0, 0.2);
}

.pc-search-button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--pc-orange);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s;
}

.pc-search-button:hover {
  background: var(--pc-orange-hover);
}

/* Header Actions */
.pc-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pc-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s;
  cursor: pointer;
}

.pc-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--pc-orange);
}

.pc-cart-btn {
  background: var(--pc-orange) !important;
  border-color: var(--pc-orange) !important;
}

.pc-cart-badge {
  background: #ffffff;
  color: var(--pc-orange);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
}

/* Subnav */
.pc-subnav {
  background: var(--pc-dark-surface);
  border-bottom: 1px solid var(--pc-border);
  padding: 6px 0;
  overflow-x: auto;
  white-space: nowrap;
}

.pc-subnav-items {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}

.pc-subnav-items button {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.pc-subnav-items button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.pc-subnav-items .active button {
  background: var(--pc-orange);
  color: #ffffff;
}

/* ============================================================
   VALUE PROPOSITIONS
   ============================================================ */
.pc-trust-section,
.pc-trust-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--pc-border-light);
  padding: 16px 0;
  margin-bottom: 24px;
}

.pc-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.pc-trust-card,
.pc-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pc-trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pc-orange-light);
  color: var(--pc-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.pc-trust-h4,
.pc-trust-text strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pc-text-dark);
  margin-bottom: 2px;
  display: block;
}

.pc-trust-p,
.pc-trust-text span {
  font-size: 0.78rem;
  color: var(--pc-text-muted);
  display: block;
}

/* ============================================================
   PROMO HERO BANNER
   ============================================================ */
.pc-promo-hero,
.pc-hero-banner {
  background: linear-gradient(135deg, #131924 0%, #1e293b 100%);
  border-radius: 16px;
  padding: 36px 44px;
  color: #ffffff;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.pc-promo-glow {
  position: absolute;
  right: 0;
  top: 0;
  width: 450px;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 96, 0, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.pc-promo-badge,
.pc-badge-tag {
  background: var(--pc-orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.pc-promo-h2,
.pc-hero-h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 10px;
  color: #ffffff;
}

.pc-promo-desc,
.pc-hero-p {
  color: #cbd5e1;
  font-size: 1.02rem;
  max-width: 620px;
  margin-bottom: 0;
}

/* ============================================================
   MARKETPLACE LAYOUT: SIDEBAR + PRODUCT GRID
   ============================================================ */
.pc-main-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  margin-bottom: 60px;
}

@media (max-width: 1024px) {
  .pc-main-layout {
    grid-template-columns: 1fr;
  }
  .pc-sidebar {
    display: none;
  }
}

/* Sidebar */
.pc-sidebar {
  background: #ffffff;
  border: 1px solid var(--pc-border-light);
  border-radius: 14px;
  padding: 24px;
  height: fit-content;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.pc-filter-box {
  border-bottom: 1px solid var(--pc-border-light);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.pc-filter-box:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pc-filter-header,
.pc-filter-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pc-text-dark);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pc-checkbox-row,
.pc-filter-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: #475569;
  cursor: pointer;
}

.pc-checkbox-row input[type="checkbox"],
.pc-filter-label input[type="checkbox"] {
  accent-color: var(--pc-orange);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Results header */
.pc-results-header,
.pc-catalog-header {
  background: #ffffff;
  border: 1px solid var(--pc-border-light);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Products Grid */
.pc-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}

/* Product Card */
.pc-card {
  background: #ffffff;
  border: 1px solid var(--pc-border-light);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pc-card:hover {
  border-color: var(--pc-orange);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

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

.pc-badge-top,
.pc-card-badge-top {
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  border: 1px solid rgba(255, 96, 0, 0.5);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.pc-card-badge-top {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.pc-badge-novedad {
  background: #ffebeb;
  color: var(--pc-red);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.pc-platform-pills {
  display: flex;
  gap: 4px;
}

.pc-pill {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
}

.pc-card-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  background: #0b111e;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pc-card:hover .pc-card-img {
  transform: scale(1.05);
}

.pc-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pc-card-category {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 6px;
  line-height: 1.4;
  display: block;
}

.pc-card-stars,
.pc-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.pc-stars-gold,
.pc-stars {
  color: var(--pc-star);
  letter-spacing: 1px;
}

.pc-rating-count {
  color: var(--pc-text-muted);
  font-size: 0.76rem;
}

.pc-card-h3,
.pc-card-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--pc-text-dark);
  margin-bottom: 6px;
  line-height: 1.35;
}

.pc-card-p {
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 14px;
}

.pc-card-specs,
.pc-specs-list {
  list-style: none;
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.pc-card-specs li,
.pc-specs-list li {
  font-size: 0.78rem;
  color: #475569;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pc-specs-list li::before {
  content: "✓";
  color: var(--pc-orange);
  font-weight: 800;
}

.pc-card-specs li:last-child,
.pc-specs-list li:last-child {
  margin-bottom: 0;
}

.pc-card-price-area,
.pc-price-box {
  border-top: 1px solid var(--pc-border-light);
  padding-top: 14px;
  margin-top: auto;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pc-old-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.pc-old-price {
  font-size: 0.9rem;
  color: var(--pc-text-muted);
  text-decoration: line-through;
}

.pc-discount-tag {
  background: var(--pc-red);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.pc-price-large,
.pc-price-calc {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--pc-orange);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.pc-price-period {
  font-size: 0.82rem;
  color: var(--pc-text-muted);
  font-weight: 600;
}

.pc-delivery-info,
.pc-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  color: var(--pc-green);
  font-weight: 700;
}

.pc-period-selector {
  margin-top: auto;
  margin-bottom: 12px;
}

.pc-period-picker,
.pc-period-group {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 8px;
}

.pc-period-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 6px 2px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.pc-period-btn.active {
  background: #ffffff;
  color: var(--pc-orange);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.pc-btn-primary,
.pcc-btn-primary {
  width: 100%;
  background: var(--pc-orange);
  color: #ffffff !important;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s;
}

.pc-btn-primary:hover,
.pcc-btn-primary:hover {
  background: var(--pc-orange-hover);
  box-shadow: 0 6px 16px rgba(255, 96, 0, 0.35);
}

.pc-btn-secondary,
.pcc-btn-secondary {
  background: #f8fafc;
  color: #0f172a !important;
  border: 1px solid #cbd5e1;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s;
}

.pc-btn-secondary:hover,
.pcc-btn-secondary:hover {
  border-color: var(--pc-orange);
  background: #fff7ed;
}

/* ============================================================
   CART DRAWER & MODALS
   ============================================================ */
.pc-drawer-overlay,
.pcc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000000;
  display: none;
  justify-content: center;
  align-items: center;
}

.pc-drawer-overlay.active,
.pcc-modal-overlay.active,
.pc-drawer-overlay.open {
  display: flex !important;
}

#cart-drawer {
  justify-content: flex-end;
}

.pc-drawer {
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: #ffffff;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  padding: 28px;
  box-sizing: border-box;
  overflow-y: auto;
  position: relative;
  animation: pcSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pcSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.pc-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--pc-border-light);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.pc-close-btn {
  background: #f1f5f9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--pc-border-light);
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  box-sizing: border-box;
  font-family: var(--pc-font);
}

.pc-input:focus {
  outline: none;
  border-color: var(--pc-orange);
  box-shadow: 0 0 0 3px rgba(255, 96, 0, 0.15);
}

/* Footer */
.pc-footer {
  background: var(--pc-dark);
  color: #94a3b8;
  padding: 50px 0 30px;
  border-top: 1px solid var(--pc-border);
}

.pc-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .pc-footer-grid {
    grid-template-columns: 1fr;
  }
}

.pc-footer-h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.pc-footer-links {
  list-style: none;
}

.pc-footer-links li {
  margin-bottom: 8px;
}

.pc-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.pc-footer-links a:hover {
  color: var(--pc-orange);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.pcc-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--pc-dark);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border-left: 4px solid var(--pc-orange);
  font-size: 0.92rem;
  font-weight: 600;
  z-index: 99999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.pcc-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================
   USER HEADER & CONTROLS
   ============================================================ */
.user-logged-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-user-btn {
  background: var(--pc-dark-card);
  border: 1px solid var(--pc-border);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s;
}

.header-user-btn:hover {
  background: var(--pc-orange);
  border-color: var(--pc-orange);
  color: #ffffff;
}

.header-logout-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.header-logout-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

/* ============================================================
   BADGES, SWITCHES & TABLES
   ============================================================ */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-green { background: #dcfce7; color: #166534; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-orange { background: #ffedd5; color: #9a3412; }
.badge-blue { background: #e0f2fe; color: #0369a1; }

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--pc-green);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.pcc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 10px;
}

.pcc-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid #e2e8f0;
}

.pcc-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.pcc-table tr:hover {
  background-color: #f8fafc;
}

.license-code {
  font-family: var(--pc-font-mono);
  background: #0f172a;
  color: #38bdf8;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.btn-mini {
  background: none;
  border: none;
  color: var(--pc-text-muted);
  cursor: pointer;
  padding: 4px;
  margin-left: 4px;
}

.btn-mini:hover {
  color: var(--pc-orange);
}

.btn-group-actions {
  display: flex;
  gap: 6px;
}

.btn-action-primary {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
}

.btn-action-primary:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.btn-action-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
}

.btn-action-danger:hover {
  background: #dc2626;
  color: #ffffff;
}

/* ============================================================
   ADMIN DASHBOARD MODAL (FULL-SCREEN & CLEAR TABS)
   ============================================================ */
.admin-modal-box {
  width: 98vw;
  max-width: 1680px;
  height: 95vh;
  max-height: 95vh;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-modal-header {
  background: var(--pc-dark);
  color: #ffffff;
  padding: 16px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  padding: 14px 26px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.stat-icon.orange { background: #fff7ed; color: #ff6000; }
.stat-icon.green { background: #ecfdf5; color: #059669; }
.stat-icon.blue { background: #eff6ff; color: #2563eb; }
.stat-icon.purple { background: #f5f3ff; color: #7c3aed; }

.stat-info h5 { font-size: 0.76rem; color: #64748b; margin-bottom: 2px; text-transform: uppercase; }
.stat-info .stat-value { font-size: 1.25rem; font-weight: 800; color: #0f172a; }

.admin-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: #f1f5f9;
  padding: 10px 26px;
  border-bottom: 1px solid #cbd5e1;
  gap: 8px;
  flex-shrink: 0;
  overflow: visible;
}

.admin-tab-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 15px;
  font-weight: 700;
  font-size: 0.86rem;
  color: #1e293b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1.3;
  transition: all 0.15s;
}

.admin-tab-btn:hover {
  border-color: var(--pc-orange);
  color: var(--pc-orange);
  background: #fff7ed;
}

.admin-tab-btn.active {
  color: #ffffff !important;
  background: var(--pc-orange);
  border-color: var(--pc-orange);
  box-shadow: 0 3px 10px rgba(255, 96, 0, 0.25);
}

.admin-modal-body {
  padding: 22px 26px;
  overflow-y: auto;
  flex: 1;
}

.client-dashboard-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .client-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

/* ============================================================
   CLIENT PORTAL & LICENSE CARDS
   ============================================================ */
.license-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.license-card.lic-disabled { border-left: 4px solid var(--pc-red); opacity: 0.8; }
.license-card.lic-expired { border-left: 4px solid #94a3b8; }

.license-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.lic-title { font-size: 1.1rem; color: #0f172a; font-weight: 800; }
.lic-meta { font-size: 0.82rem; color: #64748b; margin-top: 3px; }

.license-key-box {
  background: #0f172a;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.lic-key-label { color: #94a3b8; font-size: 0.78rem; text-transform: uppercase; font-weight: 700; }
.lic-key-display { display: flex; align-items: center; gap: 10px; }
.lic-key-display code { font-family: var(--pc-font-mono); color: #38bdf8; font-size: 1.05rem; font-weight: bold; letter-spacing: 1px; }

.btn-copy-key {
  background: #1e293b;
  color: #ffffff;
  border: 1px solid #334155;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-copy-key:hover { background: var(--pc-orange); border-color: var(--pc-orange); }

.license-card-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ============================================================
   MAINTENANCE MODE OVERLAY
   ============================================================ */
.maintenance-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(11, 16, 24, 0.97);
  backdrop-filter: blur(12px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.maintenance-card {
  background: #1a2232;
  border: 1px solid #2c384e;
  border-radius: 20px;
  padding: 44px 36px;
  max-width: 580px;
  width: 100%;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  position: relative;
}

.maintenance-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 96, 0, 0.12);
  color: var(--pc-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 24px;
}

.maintenance-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.maintenance-text {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.maintenance-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-admin-bypass {
  background: transparent;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-admin-bypass:hover {
  color: #ffffff;
  border-color: #64748b;
}

/* ============================================================
   WOOCOMMERCE PRODUCT BUILDER & BLOCK SELECTOR
   ============================================================ */
.woo-editor-grid {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 860px) {
  .woo-editor-grid {
    grid-template-columns: 1fr;
  }
}

.woo-data-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.woo-data-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  color: #0f172a;
}

.woo-data-body {
  display: flex;
  min-height: 360px;
}

@media (max-width: 680px) {
  .woo-data-body {
    flex-direction: column;
  }
}

.woo-tabs-nav {
  width: 195px;
  background: #f1f5f9;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .woo-tabs-nav {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
}

.woo-tab-link {
  background: transparent;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  padding: 13px 14px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: all 0.15s;
}

.woo-tab-link:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.woo-tab-link.active {
  background: #ffffff;
  color: var(--pc-orange);
  border-left: 3px solid var(--pc-orange);
}

.woo-tabs-panel {
  flex: 1;
  padding: 18px;
  background: #ffffff;
}

.woo-tab-pane {
  display: none;
}

.woo-tab-pane.active {
  display: block;
}

.woo-side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.woo-side-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
}

.woo-side-title {
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pc-block-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #5b21b6;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}

.pc-block-pill:hover {
  border-color: #8b5cf6;
  background: #ede9fe;
}

