/* ==========================================================================
   XPOUDY ENTERPRISE SETTINGS & WORKSPACES UI SUITE (V3 ULTRA-PREMIUM)
   Matching the native Xpoudy Dark Design System & Lucide Icons
   ========================================================================== */

.xp-settings-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
}

/* Two-column layout */
.xp-settings-layout {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

@media (min-width: 880px) {
  .xp-settings-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Left vertical navigation sidebar rail */
.xp-settings-sidebar {
  width: 100%;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 0.375rem;
  padding: 0.375rem;
  background: #080A11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  scrollbar-width: none;
}

@media (min-width: 880px) {
  .xp-settings-sidebar {
    width: 255px;
    flex-shrink: 0;
    flex-direction: column;
    overflow-x: visible;
    padding: 0.5rem;
    position: sticky;
    top: 1.5rem;
  }
}

.xp-settings-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94A3B8;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  text-align: left;
  width: 100%;
}

.xp-settings-nav-item:hover {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.xp-settings-nav-item.active {
  color: #FFFFFF;
  font-weight: 600;
  background: rgba(0, 245, 212, 0.09);
  border: 1px solid rgba(0, 245, 212, 0.35);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.08);
}

.xp-settings-nav-item.active svg {
  color: #00F5D4 !important;
}

.xp-settings-content {
  flex: 1;
  min-width: 0;
}

/* Premium Cards */
.xp-card {
  background: #0B111E !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 1.125rem !important;
  padding: 1.75rem !important;
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.65) !important;
}

/* Inputs & Form Controls */
.xp-input {
  width: 100%;
  padding: 0.7rem 1rem;
  background: #070B13 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 0.75rem;
  color: #F8FAFC !important;
  font-size: 0.8125rem;
  transition: all 0.15s ease;
}

.xp-input:focus {
  outline: none;
  border-color: #00F5D4 !important;
  box-shadow: 0 0 0 2px rgba(0, 245, 212, 0.22) !important;
  background: #0B111E !important;
}

.xp-input::placeholder {
  color: #64748B !important;
}

.xp-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   BUTTONS: High Contrast, Visible, Interactive
   ========================================================================== */

/* Primary Button: Xpoudy Brand Cyan glow */
.xp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #030712 !important;
  background: #00F5D4 !important;
  border: 1px solid #00F5D4 !important;
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.28);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.xp-btn-primary:hover:not(:disabled) {
  box-shadow: 0 0 28px rgba(0, 245, 212, 0.45);
  transform: translateY(-1px);
  opacity: 0.96;
}

.xp-btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.xp-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Secondary Button: Premium Dark Slate with visible border and top highlight */
.xp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #F8FAFC !important;
  background: linear-gradient(180deg, #1A2438 0%, #101827 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.xp-btn-secondary:hover:not(:disabled) {
  background: linear-gradient(180deg, #22304A 0%, #152033 100%) !important;
  border-color: rgba(0, 245, 212, 0.45) !important;
  color: #00F5D4 !important;
  box-shadow: 0 0 16px rgba(0, 245, 212, 0.15);
  transform: translateY(-1px);
}

.xp-btn-secondary:active:not(:disabled) {
  transform: translateY(0);
}

.xp-btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Danger / Destructive Button */
.xp-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #FB7185 !important;
  background: rgba(244, 63, 94, 0.1) !important;
  border: 1px solid rgba(244, 63, 94, 0.28) !important;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.xp-btn-danger:hover {
  background: rgba(244, 63, 94, 0.22) !important;
  border-color: rgba(244, 63, 94, 0.55) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.25);
  transform: translateY(-1px);
}

/* Copy Pill Button */
.xp-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: linear-gradient(180deg, #142236 0%, #0C1523 100%) !important;
  color: #00F5D4 !important;
  border: 1px solid rgba(0, 245, 212, 0.4) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 245, 212, 0.08);
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
  white-space: nowrap;
}

.xp-copy-btn:hover {
  background: linear-gradient(180deg, #1C3150 0%, #122137 100%) !important;
  border-color: #00F5D4 !important;
  box-shadow: 0 0 16px rgba(0, 245, 212, 0.28);
  transform: translateY(-1px);
}

.xp-copy-btn.copied {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #34D399 !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
}

/* ==========================================================================
   METRIC HUD CARDS (Matching Dashboard)
   ========================================================================== */

.xp-hud-card {
  background: #0B111E;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
}

.xp-hud-icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   DNS SETUP 4-CELL GRID
   ========================================================================== */

.xp-dns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.xp-dns-field {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.875rem;
  background: #070B13;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.875rem;
  padding: 1.125rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Provider Guide Tab Buttons */
.xp-provider-tab {
  padding: 0.45rem 0.875rem;
  border-radius: 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.xp-provider-tab:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.xp-provider-tab.active {
  color: #00F5D4;
  font-weight: 700;
  background: rgba(0, 245, 212, 0.12);
  border: 1px solid rgba(0, 245, 212, 0.4);
  box-shadow: 0 0 14px rgba(0, 245, 212, 0.15);
}

/* Table rows */
.xp-table-row {
  background: #080E1A;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  transition: all 0.15s ease;
}

.xp-table-row:hover {
  background: #0E1626;
  border-color: rgba(255, 255, 255, 0.15);
}

/* Code Snippet Box with explicit top-right copy button */
.xp-code-box {
  position: relative;
  padding: 1.25rem;
  background: #050811;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: #E2E8F0;
  overflow-x: auto;
}

.xp-code-copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 20;
}

/* Modal Backdrop & Card */
.xp-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999 !important;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.xp-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #0B111E;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 245, 212, 0.1);
}

/* Explicit SVG size clamps */
.xp-settings-container svg {
  box-sizing: content-box;
}

.xp-settings-nav-item svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex-shrink: 0;
}

.xp-btn-primary svg,
.xp-btn-secondary svg,
.xp-btn-danger svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  flex-shrink: 0;
}

.xp-copy-btn svg {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
  max-width: 12px !important;
  max-height: 12px !important;
  flex-shrink: 0;
}

.xp-hud-icon-box svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex-shrink: 0;
}

/* ==========================================================================
   BILLING & PLANS SUITE (Organized, Modern SaaS Layout)
   ========================================================================== */

.xp-plan-card {
  background: linear-gradient(180deg, #0B1324 0%, #070C18 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.125rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.xp-plan-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.xp-plan-card.featured {
  background: linear-gradient(180deg, rgba(0, 245, 212, 0.05) 0%, #080E1C 100%);
  border: 1px solid rgba(0, 245, 212, 0.45);
  box-shadow: 0 0 25px rgba(0, 245, 212, 0.12), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.xp-plan-card.featured:hover {
  border-color: #00F5D4;
  box-shadow: 0 0 35px rgba(0, 245, 212, 0.24), 0 12px 30px rgba(0, 0, 0, 0.6);
}

.xp-plan-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.xp-quota-box {
  background: linear-gradient(180deg, rgba(16, 26, 46, 0.7) 0%, rgba(10, 16, 30, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.xp-quota-box:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(20, 32, 56, 0.8) 0%, rgba(12, 20, 36, 0.95) 100%);
}

.xp-plan-btn-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: default;
  user-select: none;
}

.xp-founding-banner {
  background: linear-gradient(90deg, rgba(16, 26, 48, 0.9) 0%, rgba(10, 16, 32, 0.95) 100%);
  border: 1px solid rgba(0, 245, 212, 0.3);
  border-radius: 1.125rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.15s ease;
}

@media (min-width: 640px) {
  .xp-founding-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.xp-founding-banner:hover {
  border-color: rgba(0, 245, 212, 0.5);
  box-shadow: 0 0 25px rgba(0, 245, 212, 0.1);
}

.xp-billing-top-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 900px) {
  .xp-billing-top-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.xp-quota-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .xp-quota-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.xp-plans-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .xp-plans-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Technology Lists Catalog 3-Column Responsive Grid */
.xp-tech-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (min-width: 640px) {
  .xp-tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) {
  .xp-tech-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}




/* Bulletproof Sticky Action Column in Leads Tables */
th.xp-sticky-action,
td.xp-sticky-action,
table tbody tr td.xp-sticky-action {
  position: sticky !important;
  right: 0 !important;
  background-color: #0A0F1D !important;
  background: #0A0F1D !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: -10px 0 18px -2px rgba(0, 0, 0, 0.9) !important;
  z-index: 10 !important;
  opacity: 1 !important;
}

/* Enterprise Leads Shimmer and Loading Animation */
@keyframes xpPulse {
  0%, 100% {
    opacity: 0.35;
    background-color: rgba(255, 255, 255, 0.05);
  }
  50% {
    opacity: 0.85;
    background-color: rgba(0, 245, 212, 0.10);
  }
}

@keyframes xpSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.xp-skeleton {
  animation: xpPulse 1.5s ease-in-out infinite;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  display: block;
}

.xp-spinner {
  animation: xpSpin 0.85s linear infinite;
  transform-origin: center center;
}


/* ==========================================================================
   XPOUDY ENTERPRISE UPGRADE & PURCHASING HUB (V2 - DESIGN SYSTEM ALIGNED)
   ========================================================================== */

/* Typography & Token Enforcements */
.xp-upgrade-hub-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 1.5rem 1rem 6rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #F8FAFC;
}

@media (min-width: 768px) {
  .xp-upgrade-hub-container {
    padding: 2.25rem 2rem 7rem;
  }
}

.xp-upgrade-hub-container h1,
.xp-upgrade-hub-container h2,
.xp-upgrade-hub-container h3,
.xp-upgrade-hub-container .font-display {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.xp-text-gradient-cyan {
  background: linear-gradient(135deg, #FFFFFF 20%, #00F5D4 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Live Balance HUD */
.xp-upgrade-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 960px) {
  .xp-upgrade-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.xp-upgrade-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid rgba(0, 245, 212, 0.3);
  color: #00F5D4;
}

.xp-balance-hud {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 1.35rem;
  background: rgba(11, 19, 43, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 1rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* Master Segmented Pill Navigation (Exact Landing Page Design) */
.xp-master-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2.75rem;
}

.xp-master-tabs-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem;
  background: rgba(11, 19, 43, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  max-width: 100%;
  overflow-x: auto;
}

.xp-master-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #94A3B8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.xp-master-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.xp-master-tab-btn.active {
  background: #00F5D4;
  color: #050912;
  font-weight: 700;
  box-shadow: 0 0 35px -5px rgba(0, 245, 212, 0.45);
}

.xp-tab-inner-badge {
  font-size: 0.625rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}

.xp-master-tab-btn.active .xp-tab-inner-badge {
  background: rgba(5, 9, 18, 0.2);
  color: #050912;
}

.xp-master-tab-btn:not(.active) .xp-tab-inner-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Sub-Tab Category Switcher for Pay-As-You-Go Credits */
.xp-subtabs-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.xp-subtabs-pill {
  display: inline-flex;
  padding: 0.35rem;
  background: rgba(11, 19, 43, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1rem;
  backdrop-filter: blur(12px);
  gap: 0.35rem;
}

.xp-subtab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94A3B8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.xp-subtab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.xp-subtab-btn.active {
  background: rgba(0, 245, 212, 0.15);
  border: 1px solid rgba(0, 245, 212, 0.4);
  color: #00F5D4;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.15);
}

/* 3-Column Plans Grid (Matches landing page Section 7) */
.xp-plans-grid-3 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.75rem;
}

@media (min-width: 960px) {
  .xp-plans-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.xp-plan-card-v2 {
  background: linear-gradient(180deg, rgba(14, 23, 44, 0.7) 0%, rgba(8, 13, 26, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 1.5rem;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.xp-plan-card-v2:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.xp-plan-card-v2.featured {
  background: linear-gradient(180deg, rgba(0, 245, 212, 0.05) 0%, rgba(8, 14, 28, 0.95) 100%);
  border: 1.5px solid rgba(0, 245, 212, 0.5);
  box-shadow: 0 0 40px -10px rgba(0, 245, 212, 0.25), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.xp-plan-card-v2.featured:hover {
  border-color: #00F5D4;
  box-shadow: 0 0 50px -5px rgba(0, 245, 212, 0.35), 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* Floating Badges */
.xp-card-top-pill {
  position: absolute;
  top: -0.85rem;
  left: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #0A1020;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
}

.xp-plan-card-v2.featured .xp-card-top-pill {
  background: rgba(0, 245, 212, 0.15);
  border: 1px solid rgba(0, 245, 212, 0.45);
  color: #00F5D4;
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.2);
}

/* Category Subtitle */
.xp-card-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

/* Price Row */
.xp-price-display {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.xp-price-amount {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.xp-price-period {
  font-size: 0.875rem;
  font-weight: 500;
  color: #94A3B8;
}

/* Feature Item */
.xp-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #CBD5E1;
}

.xp-feature-item strong {
  color: #FFFFFF;
  font-weight: 600;
}

/* Inset Price & Unit Economics Box (For Credits & Founding) */
.xp-inset-price-box {
  background: rgba(5, 9, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.875rem;
  padding: 1rem 1.15rem;
  margin: 1.15rem 0 1.35rem;
}

.xp-credit-amount-hero {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #FFFFFF;
}

.xp-credit-amount-hero span {
  font-size: 1.15rem;
  font-weight: 600;
  color: #00F5D4;
}

/* 4-Column Credit Packs Grid */
.xp-credit-packs-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .xp-credit-packs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .xp-credit-packs-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.xp-credit-card {
  background: linear-gradient(180deg, rgba(14, 23, 44, 0.65) 0%, rgba(7, 11, 24, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.375rem;
  padding: 1.75rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.xp-credit-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
}

.xp-credit-card.popular {
  background: linear-gradient(180deg, rgba(0, 245, 212, 0.05) 0%, rgba(7, 12, 26, 0.95) 100%);
  border: 1.5px solid rgba(0, 245, 212, 0.45);
  box-shadow: 0 0 35px -8px rgba(0, 245, 212, 0.2), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.xp-credit-card.popular:hover {
  border-color: #00F5D4;
  box-shadow: 0 0 45px -5px rgba(0, 245, 212, 0.32), 0 14px 35px rgba(0, 0, 0, 0.55);
}

/* Subscriber Perk Banner */
.xp-subscriber-banner-v2 {
  background: linear-gradient(90deg, rgba(0, 245, 212, 0.08) 0%, rgba(11, 19, 43, 0.75) 100%);
  border: 1px solid rgba(0, 245, 212, 0.35);
  border-radius: 1.125rem;
  padding: 1.15rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 2.25rem;
}

@media (min-width: 768px) {
  .xp-subscriber-banner-v2 {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Buttons */
.xp-btn-upgrade-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.75rem;
  background: #00F5D4;
  color: #050912;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 245, 212, 0.35);
  transition: all 0.2s ease;
}

.xp-btn-upgrade-primary:hover {
  background: #00e0c2;
  box-shadow: 0 6px 24px rgba(0, 245, 212, 0.5);
  transform: translateY(-1px);
}

.xp-btn-upgrade-secondary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.xp-btn-upgrade-secondary:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(0, 245, 212, 0.4);
  color: #FFFFFF;
}

.xp-btn-upgrade-active {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.75rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Animations */
@keyframes xpFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.xp-animate-fade {
  animation: xpFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


/* Upgrade CTA Banner inside Settings */
.xp-upgrade-cta-banner {
  background: linear-gradient(90deg, rgba(16, 26, 48, 0.95) 0%, rgba(10, 16, 32, 0.98) 100%);
  border: 1px solid rgba(0, 245, 212, 0.35);
  border-radius: 1.125rem;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

@media (min-width: 768px) {
  .xp-upgrade-cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.xp-upgrade-cta-banner:hover {
  border-color: rgba(0, 245, 212, 0.6);
  box-shadow: 0 0 30px rgba(0, 245, 212, 0.15);
}

/* Countdown Clock Box */
.xp-timer-grid {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.xp-timer-unit {
  background: #050914;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  padding: 0.625rem 0.875rem;
  text-align: center;
  min-width: 64px;
}



@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
