/* ---- Reset & Variables ---- */
:root {
  --bg-color: #08090c;
  --panel-bg: rgba(13, 14, 18, 0.75);
  --card-bg: rgba(22, 24, 29, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  
  /* Brand Premium Accent: Gold Amber */
  --accent-gold: #ffb000;
  --accent-gold-glow: rgba(255, 176, 0, 0.35);
  --accent-gold-dark: #cc8d00;
  
  /* Cyberpunk / Neon highlights */
  --neon-green: #23a55a;
  --neon-green-glow: rgba(35, 165, 90, 0.3);
  --neon-red: #da373c;
  --neon-red-glow: rgba(218, 55, 60, 0.3);
  --neon-yellow: #f0b232;
  --neon-blue: #5865f2;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body::selection {
  background: rgba(255, 176, 0, 0.28);
  color: #ffffff;
}

.toast-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(420px, calc(100vw - 24px));
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 9999;
}

.site-toast {
  align-items: center;
  animation: toast-in 0.18s ease-out;
  background: rgba(13, 14, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--accent-gold);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  color: var(--text-main);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  line-height: 1.35;
  padding: 12px 12px;
}

.site-toast > i {
  color: var(--accent-gold);
}

.site-toast.toast-error {
  border-left-color: var(--neon-red);
}

.site-toast.toast-error > i {
  color: var(--neon-red);
}

.site-toast.toast-warning {
  border-left-color: var(--neon-yellow);
}

.site-toast.toast-warning > i {
  color: var(--neon-yellow);
}

.site-toast button {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.site-toast button:hover {
  color: var(--text-main);
}

.site-toast.toast-out {
  animation: toast-out 0.18s ease-in forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ---- Background Cyber Grid & Glow ---- */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
}

.bg-glow {
  position: fixed;
  top: -40vh;
  left: -40vw;
  width: 180vw;
  height: 180vh;
  z-index: -1;
  background: 
    radial-gradient(circle at 75% 25%, rgba(255, 176, 0, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 25% 75%, rgba(88, 101, 242, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.03) 0%, transparent 50%);
  pointer-events: none;
  animation: slow-glow 25s infinite alternate ease-in-out;
}

@keyframes slow-glow {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* ---- Main Wrapper ---- */
.dashboard-wrapper {
  width: min(100% - 40px, 1760px);
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---- Glassmorphism Base ---- */
.glass {
  background: var(--panel-bg);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.launch-notice {
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 176, 0, 0.1), rgba(13, 14, 18, 0.72));
  border-color: rgba(255, 176, 0, 0.18);
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.launch-notice-icon {
  align-items: center;
  background: rgba(255, 176, 0, 0.12);
  border: 1px solid rgba(255, 176, 0, 0.22);
  border-radius: 8px;
  color: var(--accent-gold);
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.launch-notice-copy {
  flex: 1;
  min-width: 0;
}

.launch-notice-copy span {
  color: var(--accent-gold);
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.launch-notice-copy strong {
  color: var(--text-main);
  display: block;
  font-size: 14px;
  margin-top: 2px;
}

.launch-notice-copy p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 3px 0 0;
}

.launch-notice-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 34px;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  width: 34px;
}

.launch-notice-close:hover {
  background: rgba(255, 176, 0, 0.1);
  border-color: rgba(255, 176, 0, 0.2);
  color: var(--accent-gold);
}

/* ---- Navbar ---- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 15px 25px;
  background: rgba(13, 14, 18, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.logo-mark {
  width: 44px;
  height: 44px;
  margin-right: 10px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(255, 176, 0, 0.16);
  background: #050505;
}

.logo-icon {
  color: var(--accent-gold);
  margin-right: 10px;
  filter: drop-shadow(0 0 8px var(--accent-gold-glow));
  animation: logo-glow 3s infinite alternate;
}

.logo .accent {
  color: var(--accent-gold);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-contact-dropdown {
  display: inline-block;
  position: relative;
}

.navbar-contact-btn {
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  height: 38px;
  padding: 8px 12px;
}

.navbar-contact-menu {
  background: rgba(13, 14, 18, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  min-width: 240px;
  padding: 15px;
  position: absolute;
  right: 0;
  text-align: left;
  top: 46px;
  z-index: 1000;
}

.navbar-contact-menu h5 {
  align-items: center;
  color: var(--accent-gold);
  display: flex;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
  margin-bottom: 10px;
}

.navbar-contact-list {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 8px;
}

.navbar-contact-item {
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  gap: 8px;
  padding: 8px;
}

.navbar-contact-item i {
  flex: 0 0 auto;
  font-size: 14px;
}

.navbar-contact-item a {
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.icon-discord {
  color: #5865f2;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold-glow);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.username {
  font-size: 15px;
  font-weight: 700;
}

.role-badge {
  font-size: 11px;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* ---- Hero Section ---- */
.hero-card {
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-left h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-left p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 600px;
  line-height: 1.5;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(35, 165, 90, 0.1);
  border: 1px solid rgba(35, 165, 90, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pulse-dot.green {
  background-color: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse 1.5s infinite;
}

.status-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--neon-green);
}

.connection-stats {
  display: flex;
  gap: 20px;
  align-items: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent-gold);
  text-shadow: 0 0 10px var(--accent-gold-glow);
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background-color: var(--border-color);
}

/* ---- Headings ---- */
.section-title {
  margin-bottom: 15px;
}

.section-title-spaced {
  margin-top: 40px;
}

.section-title h3 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  letter-spacing: 0.5px;
}

.title-icon {
  color: var(--accent-gold);
  margin-right: 8px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 25px;
}

.profile-action-grid,
.keys-tools-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 25px;
}

.profile-action-grid {
  max-width: 900px;
}

.profile-action-card {
  border-color: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  padding: 25px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.profile-action-card:hover {
  border-color: rgba(255, 176, 0, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.profile-action-admin {
  border-color: rgba(255, 176, 0, 0.25);
}

.profile-action-icon {
  font-size: 32px;
  margin-bottom: 15px;
}

.icon-gold {
  color: var(--accent-gold);
}

.icon-blue {
  color: var(--neon-blue);
}

.icon-green {
  color: var(--neon-green);
}

.profile-action-card h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.profile-action-card p,
.panel-copy {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.key-tool-card,
.customer-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 25px;
}

.customer-panel {
  margin-bottom: 25px;
}

.panel-heading {
  align-items: center;
  color: var(--text-main);
  display: flex;
  font-size: 16px;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 12px;
}

.panel-heading i,
.subpanel-title i,
.form-section-label i,
.compact-form-group label i {
  color: var(--accent-gold);
}

.panel-copy-spaced {
  margin-bottom: 20px;
}

.inline-action-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.compact-form-gap {
  margin-bottom: 12px;
}

.panel-input {
  background: #0d0e12;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #ffffff;
  flex: 1;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  min-width: 200px;
  outline: none;
  padding: 10px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.panel-input:focus {
  border-color: rgba(255, 176, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 176, 0, 0.08);
}

.panel-action-btn {
  font-weight: 800;
  min-height: 40px;
  padding: 10px 18px;
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  border: 0;
  color: #000000;
}

.btn-info {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  border: 0;
  color: #000000;
}

.btn-warning {
  background: linear-gradient(135deg, var(--neon-yellow) 0%, #cc8d00 100%);
  border: 0;
  color: #000000;
}

.full-width {
  width: 100%;
}

.panel-stack-bottom {
  margin-top: auto;
}

.consult-result-box {
  background: rgba(8, 9, 12, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  transition: all 0.3s ease;
}

.consult-result-grid {
  display: grid;
  font-size: 13px;
  gap: 10px 20px;
  grid-template-columns: 1fr 1fr;
}

.consult-result-grid span {
  color: var(--text-muted);
}

.consult-result-grid strong,
.consult-result-grid code {
  color: var(--text-main);
}

.consult-result-grid code {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
}

.consult-binding-row {
  border-top: 1px solid var(--border-color);
  grid-column: span 2;
  margin-top: 5px;
  padding-top: 8px;
}

.uid-management-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.uid-list-panel,
.uid-action-form {
  background: rgba(8, 9, 12, 0.42);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.uid-list-panel {
  padding: 20px;
}

.subpanel-title {
  align-items: center;
  color: #ffffff;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  gap: 6px;
  margin-bottom: 15px;
}

.uid-list-container {
  flex: 1;
  max-height: 250px;
  overflow-y: auto;
}

.panel-empty-line {
  color: var(--text-muted);
  font-size: 12px;
  padding: 20px;
  text-align: center;
}

.uid-forms-stack {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.uid-action-form {
  gap: 10px;
  padding: 15px;
}

.uid-action-form-warning {
  border-color: rgba(240, 178, 50, 0.16);
}

.form-section-label {
  color: var(--accent-gold);
  font-size: 13px;
  font-weight: 800;
}

.form-section-label.warning {
  color: var(--neon-yellow);
}

.compact-form-group {
  gap: 4px;
}

.compact-form-group label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.inline-checkbox {
  align-items: center;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  font-size: 11px;
  gap: 6px;
  margin-top: 4px;
  user-select: none;
}

.form-field-hint {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
  margin: -2px 0 2px;
}

.uid-days-input {
  flex: 0 0 92px;
  text-align: center;
}

.inline-checkbox input {
  cursor: pointer;
  height: 14px;
  width: 14px;
}

.two-input-grid,
.contact-info-form {
  display: grid;
  gap: 12px;
}

.two-input-grid {
  grid-template-columns: 1fr 1fr;
}

.contact-info-form {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-end-column {
  align-items: flex-end;
  display: flex;
}

.contact-save-status {
  color: var(--neon-green);
  font-size: 12px;
  margin-top: 10px;
}

.table-loading-cell {
  color: #718096;
  padding: 20px;
  text-align: center;
}

.logs-pagination {
  align-items: center;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  justify-content: space-between;
  padding: 12px 20px;
}

.logs-page-indicator {
  color: var(--text-muted);
}

.logs-pagination-actions {
  display: flex;
  gap: 8px;
}

.logs-page-btn {
  font-size: 12px;
  padding: 6px 12px;
}

/* ---- Keys Grid ---- */
.keys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.key-card {
  background: linear-gradient(180deg, rgba(22, 24, 29, 0.86), rgba(10, 11, 15, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 8px;
  min-width: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.key-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 176, 0, 0.2);
  box-shadow: 0 10px 30px rgba(255, 176, 0, 0.05);
}

.key-card.premium-border {
  border: 1px solid rgba(255, 176, 0, 0.25);
  background: linear-gradient(rgba(22, 24, 29, 0.7), rgba(22, 24, 29, 0.7)), radial-gradient(circle at top left, rgba(255, 176, 0, 0.08), transparent 40%);
}

.key-card.premium-border:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 10px 30px rgba(255, 176, 0, 0.15);
}

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

.key-product-heading {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.badge {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0;
  width: fit-content;
}

.badge.premium {
  background: rgba(255, 176, 0, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  text-shadow: 0 0 5px var(--accent-gold-glow);
}

.badge.standard {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.key-status {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 7px 10px;
  white-space: nowrap;
}

.status-active {
  color: var(--neon-green);
  text-shadow: 0 0 5px var(--neon-green-glow);
}

.status-paused {
  color: var(--neon-yellow);
}

.product-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.key-delivery-box {
  background: rgba(4, 5, 8, 0.72);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 14px;
}

.key-delivery-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.key-delivery-head span {
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.key-delivery-head small {
  color: var(--text-muted);
  font-size: 11px;
  text-align: right;
}

.key-display-wrapper {
  background: #0d0e12;
  border: 1px solid rgba(255, 176, 0, 0.18);
  border-radius: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
  padding: 12px 14px;
}

.key-code {
  display: block;
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
  line-height: 1.45;
  white-space: nowrap;
}

.btn-copy,
.btn-copy-key-wide {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px;
  font-size: 14px;
  transition: color 0.2s;
}

.btn-copy:hover {
  color: #ffffff;
}

.btn-copy-key-wide {
  align-items: center;
  background: rgba(255, 176, 0, 0.12);
  border: 1px solid rgba(255, 176, 0, 0.28);
  border-radius: 6px;
  color: var(--accent-gold);
  display: flex;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  min-height: 38px;
  padding: 9px 12px;
  width: 100%;
}

.btn-copy-key-wide:hover {
  background: rgba(255, 176, 0, 0.2);
  color: #ffffff;
}

.key-metadata {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.meta-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  font-size: 13px;
  min-width: 0;
  padding: 12px;
}

.meta-lbl {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  font-size: 10px;
  font-weight: 900;
  gap: 7px;
  text-transform: uppercase;
}

.meta-val {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.meta-val.highlight {
  color: var(--accent-gold);
}

.meta-val.is-free {
  color: #23a55a;
}

/* ---- Card Action Buttons ---- */
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}

.btn {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-action-reset {
  background: #111317;
  border: 1px solid rgba(255, 176, 0, 0.4);
  color: var(--accent-gold);
}

.btn-action-reset:hover:not(:disabled) {
  background: var(--accent-gold);
  color: #000000;
  box-shadow: 0 0 15px var(--accent-gold-glow);
  border-color: var(--accent-gold);
}

.btn-action-pause {
  background: #111317;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-pause:hover {
  background: rgba(218, 55, 60, 0.15);
  color: var(--neon-red);
  border-color: var(--neon-red);
}

.btn-resume:hover {
  background: rgba(35, 165, 90, 0.15);
  color: var(--neon-green);
  border-color: var(--neon-green);
}

.btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: var(--border-color) !important;
  color: var(--text-muted) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  box-shadow: none !important;
}

/* Paused States styling */
.paused-card {
  opacity: 0.65;
  border-color: rgba(240, 178, 50, 0.15);
}

.paused-card:hover {
  opacity: 0.9;
  border-color: var(--neon-yellow);
}

/* ---- Console / Terminal ---- */
.terminal-wrapper {
  background: #06070a;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: #0f1115;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.terminal-body {
  padding: 18px;
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  line-height: 1.6;
  max-height: 180px;
  overflow-y: auto;
  color: #a3b3c2;
}

.log-line {
  margin-bottom: 6px;
  animation: fade-in-line 0.3s ease-out;
}

.log-time {
  color: #4b5563;
}

.log-tag {
  font-weight: 700;
}

.tag-info { color: var(--neon-blue); }
.tag-success { color: var(--neon-green); }
.tag-warning { color: var(--neon-yellow); }
.tag-error { color: var(--neon-red); }

/* ---- Footer ---- */
.footer {
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer p {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 10px;
}

.footer-legal-links a,
.checkout-legal-consent a {
  color: var(--accent-gold);
  font-size: 12px;
  text-decoration: none;
}

.footer-legal-links a:hover,
.checkout-legal-consent a:hover {
  text-decoration: underline;
}

.checkout-legal-consent {
  align-items: flex-start;
  background: rgba(255, 176, 0, 0.05);
  border: 1px solid rgba(255, 176, 0, 0.18);
  border-radius: 6px;
  color: var(--text-muted);
  display: flex;
  font-size: 12px;
  gap: 10px;
  line-height: 1.45;
  margin: 16px 0;
  padding: 12px;
}

.checkout-legal-consent input {
  flex: 0 0 auto;
  margin-top: 2px;
}

/* ---- Keyframe Animations ---- */
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

@keyframes logo-glow {
  0% { filter: drop-shadow(0 0 2px var(--accent-gold-glow)); }
  100% { filter: drop-shadow(0 0 10px var(--accent-gold)); }
}

@keyframes fade-in-line {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Loading Spinner for Action click ---- */
.spinning {
  animation: spin 1s linear infinite;
}

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

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .dashboard-wrapper {
    width: min(100% - 24px, 1760px);
    padding: 12px 0;
  }
  .toast-container {
    left: 12px;
    right: 12px;
    top: 12px;
  }
  .dashboard-wrapper {
    padding: 12px;
  }
  .hero-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
  }
  .hero-right {
    align-items: flex-start;
    width: 100%;
  }
  .connection-stats {
    width: 100%;
    justify-content: space-between;
  }
  .stat-divider {
    display: none;
  }
  .navbar {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
    padding: 14px;
  }
  .launch-notice {
    align-items: flex-start;
    padding: 13px;
  }
  .launch-notice-icon {
    height: 38px;
    width: 38px;
  }
  .launch-notice-copy strong {
    font-size: 13px;
  }
  .logo,
  .user-profile {
    justify-content: center;
  }
  .logo {
    font-size: 18px;
  }
  .logo-mark {
    height: 38px;
    width: 38px;
  }
  .user-profile {
    flex-wrap: wrap;
  }
  .navbar-contact-dropdown {
    order: 3;
    width: 100%;
  }
  .navbar-contact-btn {
    width: 100%;
  }
  .navbar-contact-menu {
    left: 0;
    min-width: 0;
    right: 0;
    width: 100%;
  }
  .user-info {
    min-width: 0;
  }
  .username {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    order: 3;
    width: 100%;
  }
  .panel-back-btn {
    align-self: flex-start;
    order: 2;
  }
  .nav-tab-btn {
    padding: 9px 12px;
  }
  .shop-grid {
    grid-template-columns: 1fr;
  }
  .shop-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .shop-trust-strip {
    justify-content: flex-start;
  }
  .shop-card-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .downloads-hero,
  .downloads-toolbar,
  .download-product-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .downloads-toolbar .admin-search-box,
  .downloads-toolbar-meta {
    max-width: none;
    width: 100%;
  }
  .downloads-toolbar-meta {
    justify-content: flex-start;
  }
  .downloads-guide,
  .download-product-grid,
  .purchase-summary-grid,
  .purchase-history-cards {
    grid-template-columns: 1fr;
  }
  .purchase-history-cards {
    display: grid;
  }
  .purchases-wrapper .table-wrapper {
    display: none;
  }
  .btn-buy-now {
    width: 100%;
    justify-content: center;
  }
  .checkout-form-grid,
  .checkout-payment-layout,
  .checkout-success-actions {
    grid-template-columns: 1fr;
  }
  .checkout-steps {
    grid-template-columns: 1fr;
    margin-right: 34px;
  }
  .input-copy-group {
    flex-direction: column;
  }
  .qr-code-container img {
    width: 190px;
    height: 190px;
  }
  .modal-card {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 22px;
  }
  .admin-double-layout {
    grid-template-columns: 1fr !important;
  }
  .admin-sidebar {
    position: static !important;
  }
  .admin-workspace-layout .admin-sidebar,
  .admin-product-card .admin-config-form {
    grid-template-columns: 1fr;
  }
  .admin-product-card {
    grid-column: auto;
  }
  .admin-form-grid,
  .admin-form-grid-compact {
    grid-template-columns: 1fr;
  }
  .admin-form-section {
    padding: 12px;
  }
  .inline-action-form,
  .two-input-grid,
  .consult-result-grid {
    grid-template-columns: 1fr;
  }
  .inline-action-form {
    flex-direction: column;
  }
  .panel-input,
  .panel-action-btn {
    width: 100%;
  }
  .uid-days-input {
    flex-basis: auto;
  }
  .consult-binding-row {
    grid-column: auto;
  }
}

/* ---- Tabs Display ---- */
.tab-content {
  display: none;
  animation: fade-in-line 0.4s ease-out;
}
.tab-content.active {
  display: block;
}

/* ---- Navigation Tabs ---- */
.nav-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 4px;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.nav-tabs::-webkit-scrollbar {
  height: 4px;
}

.nav-tabs::-webkit-scrollbar-track {
  background: transparent;
}

.nav-tabs::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.nav-tab-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

.nav-tab-btn.active {
  color: var(--accent-gold);
  background: rgba(255, 176, 0, 0.1);
  border: 1px solid rgba(255, 176, 0, 0.2);
}

.panel-back-btn {
  align-items: center;
  align-self: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 38px;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  width: 42px;
}

.panel-back-btn:hover:not(:disabled) {
  background: rgba(255, 176, 0, 0.1);
  border-color: rgba(255, 176, 0, 0.24);
  color: var(--accent-gold);
}

.panel-back-btn:disabled,
.panel-back-btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

/* ---- Software Status Tab ---- */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.status-item {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.status-product-name {
  font-weight: 700;
  font-size: 15px;
}

.status-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-badge.functional {
  background: rgba(35, 165, 90, 0.12);
  color: var(--neon-green);
  border: 1px solid rgba(35, 165, 90, 0.25);
}

.status-badge.updating {
  background: rgba(240, 178, 50, 0.12);
  color: var(--neon-yellow);
  border: 1px solid rgba(240, 178, 50, 0.25);
}

.status-badge.detected {
  background: rgba(218, 55, 60, 0.12);
  color: var(--neon-red);
  border: 1px solid rgba(218, 55, 60, 0.25);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-badge.functional .badge-dot {
  background: var(--neon-green);
  box-shadow: 0 0 6px var(--neon-green);
  animation: pulse 1.5s infinite;
}

.status-badge.updating .badge-dot {
  background: var(--neon-yellow);
}

.status-badge.detected .badge-dot {
  background: var(--neon-red);
}

/* ---- Downloads Area ---- */
.download-loading,
.downloads-empty {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 35px auto;
  max-width: 620px;
  padding: 38px;
  text-align: center;
}

.downloads-empty i {
  color: var(--accent-gold);
  font-size: 38px;
}

.downloads-empty.error i {
  color: var(--neon-red);
}

.downloads-empty h4 {
  color: var(--text-main);
  font-size: 20px;
  font-weight: 900;
  margin: 0;
}

.downloads-empty p {
  line-height: 1.55;
  margin: 0;
}

.downloads-toolbar {
  align-items: center;
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 18px;
  max-width: 1080px;
  padding: 14px;
}

.downloads-toolbar .admin-search-box {
  flex: 1;
  max-width: 440px;
}

.downloads-toolbar-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.downloads-toolbar-meta span {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 10px;
  text-transform: uppercase;
}

.downloads-hero {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 24px;
}

.download-kicker {
  color: var(--accent-gold);
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.downloads-hero h4,
.download-product h4 {
  color: var(--text-main);
  font-size: 20px;
  font-weight: 900;
  margin: 0;
}

.downloads-hero p {
  color: var(--text-muted);
  line-height: 1.5;
  margin: 8px 0 0;
}

.downloads-hero-stat {
  align-items: center;
  background: rgba(255, 176, 0, 0.08);
  border: 1px solid rgba(255, 176, 0, 0.16);
  border-radius: 8px;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  min-width: 140px;
  padding: 16px;
}

.downloads-hero-stat strong {
  color: var(--accent-gold);
  font-size: 30px;
  line-height: 1;
}

.downloads-hero-stat span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  margin-top: 6px;
  text-align: center;
}

.downloads-guide {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.downloads-guide div {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: var(--text-muted);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
}

.downloads-guide i {
  color: var(--accent-gold);
}

.downloads-products {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.download-product {
  padding: 16px;
}

.download-product-header {
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.download-product-header h4 {
  align-items: center;
  display: flex;
  gap: 8px;
}

.download-access-badge {
  align-items: center;
  background: rgba(35, 165, 90, 0.1);
  border: 1px solid rgba(35, 165, 90, 0.22);
  border-radius: 999px;
  color: var(--neon-green);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
  padding: 7px 10px;
}

.download-product-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .download-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.download-resource-card {
  background: rgba(8, 9, 12, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}

.download-resource-title {
  align-items: flex-start;
  display: flex;
  gap: 10px;
}

.download-resource-title > i {
  color: var(--accent-gold);
  font-size: 15px;
  margin-top: 2px;
}

.download-resource-title strong {
  color: var(--text-main);
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.download-resource-title span {
  color: var(--text-muted);
  display: block;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 2px;
}

.download-video-frame {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.download-video-frame iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.download-password-box {
  align-items: center;
  background: rgba(255, 176, 0, 0.08);
  border: 1px solid rgba(255, 176, 0, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 6px 10px;
}

.download-password-box.muted {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  grid-template-columns: auto minmax(0, 1fr);
}

.download-password-box span {
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.download-password-box code {
  color: var(--text-main);
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-password-box button {
  background: transparent;
  border: 0;
  color: var(--accent-gold);
  cursor: pointer;
  padding: 4px;
}

.download-link-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.download-action {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-main);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  text-decoration: none;
}

.download-action.primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  border-color: rgba(255, 176, 0, 0.42);
  color: #000000;
}

.download-action.disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.62;
}

.download-action:not(.disabled):hover {
  border-color: rgba(255, 176, 0, 0.36);
  transform: translateY(-1px);
}

.download-support-note {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
}

.download-support-note > i {
  color: var(--accent-gold);
  font-size: 18px;
  margin-top: 2px;
}

.download-support-note strong {
  color: var(--text-main);
  display: block;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 4px;
}

.download-support-note p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.admin-download-form {
  gap: 14px;
}

/* ---- Admin Stats Grid ---- */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.admin-section-nav {
  display: grid;
  grid-template-columns: repeat(7, minmax(105px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px;
}

.admin-section-tab {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-section-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.admin-section-tab.active {
  background: rgba(255, 176, 0, 0.1);
  border-color: rgba(255, 176, 0, 0.35);
  color: var(--accent-gold);
}

.admin-section-tab i {
  font-size: 13px;
}

.admin-section-heading {
  align-items: end;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 2px 14px;
}

.admin-section-heading h4 {
  font-size: 16px;
  margin-top: 3px;
}

.admin-section-heading p {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0;
  text-align: right;
}

.admin-section-eyebrow {
  color: var(--accent-gold);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-section-hidden {
  display: none !important;
}

.admin-affiliate-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-affiliate-stats > div {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px;
}

.admin-affiliate-stats span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-affiliate-stats strong {
  color: var(--accent-gold);
  font-size: 18px;
}

.admin-percentage-control {
  align-items: center;
  display: flex;
  gap: 6px;
  min-width: 130px;
}

.admin-percentage-control input {
  max-width: 66px;
  min-width: 0;
}

@media (max-width: 720px) {
  .admin-affiliate-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .admin-section-nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .admin-section-tab {
    flex: 0 0 auto;
    min-width: 112px;
  }

  .admin-table-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-table-tools {
    justify-content: stretch;
  }

  .admin-search-box,
  .admin-table-tools select,
  .admin-result-count {
    width: 100%;
  }

  .admin-result-count {
    text-align: left;
  }

  .admin-sales-summary {
    grid-template-columns: 1fr;
  }

  .client-summary-grid,
  .coupon-summary-grid,
  .coupon-workspace {
    grid-template-columns: 1fr;
  }

  .admin-overview-actions {
    grid-template-columns: 1fr;
  }

  .admin-launch-grid {
    grid-template-columns: 1fr;
  }

  .production-guide-grid {
    grid-template-columns: 1fr;
  }

  .admin-product-summary,
  .admin-product-card .admin-config-form,
  .admin-store-card .admin-config-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .admin-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .admin-section-heading p {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .dashboard-wrapper {
    width: min(100% - 16px, 1760px);
    padding: 8px 0;
  }

  .navbar {
    padding: 12px;
  }

  .nav-tab-btn {
    font-size: 12px;
    min-height: 36px;
    padding: 8px 10px;
  }

  .nav-tab-btn i {
    font-size: 12px;
  }

  .section-title h3,
  .shop-toolbar h3 {
    font-size: 18px;
    line-height: 1.25;
  }

  .modal-card {
    padding: 18px;
  }
}

.admin-stat-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.admin-overview-actions {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.admin-overview-card {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  cursor: pointer;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 4px 12px;
  min-height: 112px;
  padding: 16px;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  width: 100%;
}

.admin-overview-card:hover {
  background: rgba(255, 176, 0, 0.045);
  border-color: rgba(255, 176, 0, 0.28);
  transform: translateY(-2px);
}

.admin-overview-card i {
  align-items: center;
  background: rgba(255, 176, 0, 0.1);
  border: 1px solid rgba(255, 176, 0, 0.18);
  border-radius: 8px;
  color: var(--accent-gold);
  display: inline-flex;
  font-size: 15px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.admin-overview-card span {
  align-self: end;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 900;
  min-width: 0;
}

.admin-overview-card small {
  color: var(--text-muted);
  font-size: 12px;
  grid-column: 2;
  line-height: 1.45;
  min-width: 0;
}

.admin-launch-checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
}

.admin-launch-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-launch-item {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 13px;
}

.admin-launch-item i {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  flex: 0 0 28px;
  height: 28px;
  justify-content: center;
  margin-top: 1px;
  width: 28px;
}

.admin-launch-item span {
  color: var(--text-main);
  display: block;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 4px;
}

.admin-launch-item small {
  color: var(--text-muted);
  display: block;
  font-size: 12px;
  line-height: 1.4;
}

.admin-launch-item.is-ok {
  border-color: rgba(35, 165, 90, 0.2);
}

.admin-launch-item.is-ok i {
  background: rgba(35, 165, 90, 0.14);
  color: #5ee08f;
}

.admin-launch-item.is-warning {
  border-color: rgba(240, 178, 50, 0.22);
}

.admin-launch-item.is-warning i {
  background: rgba(240, 178, 50, 0.14);
  color: var(--neon-yellow);
}

.admin-launch-item.is-loading i {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-gold);
}

.admin-production-guide {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
}

.admin-product-command {
  margin-bottom: 20px;
  padding: 24px;
}

.admin-product-flow {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.admin-product-flow-card {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  color: var(--text-main);
  cursor: pointer;
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.admin-product-flow-card:hover {
  background: rgba(255, 176, 0, 0.055);
  border-color: rgba(255, 176, 0, 0.24);
  transform: translateY(-1px);
}

.admin-product-flow-card.active {
  background: rgba(255, 176, 0, 0.09);
  border-color: rgba(255, 176, 0, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 176, 0, 0.08);
}

.admin-product-flow-card i {
  color: var(--accent-gold);
  font-size: 19px;
}

.admin-product-flow-card span {
  font-size: 14px;
  font-weight: 900;
}

.admin-product-flow-card small {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

#tab-admin.admin-product-mode-catalog [data-product-panel-card="downloads"],
#tab-admin.admin-product-mode-catalog [data-product-panel-card="status"],
#tab-admin.admin-product-mode-delivery [data-product-panel-card="downloads"],
#tab-admin.admin-product-mode-delivery [data-product-panel-card="status"],
#tab-admin.admin-product-mode-downloads [data-product-panel-card="catalog-delivery"],
#tab-admin.admin-product-mode-downloads [data-product-panel-card="status"],
#tab-admin.admin-product-mode-status [data-product-panel-card="catalog-delivery"],
#tab-admin.admin-product-mode-status [data-product-panel-card="downloads"] {
  display: none;
}

#tab-admin.admin-product-mode-catalog [data-product-part]:not([data-product-part~="catalog"]),
#tab-admin.admin-product-mode-delivery [data-product-part]:not([data-product-part~="delivery"]) {
  display: none;
}

.production-guide-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.production-guide-step {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr);
  min-width: 0;
  padding: 15px;
}

.production-guide-step > span {
  align-items: center;
  background: rgba(255, 176, 0, 0.1);
  border: 1px solid rgba(255, 176, 0, 0.18);
  border-radius: 8px;
  color: var(--accent-gold);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.production-guide-step h5 {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 900;
  margin: 0 0 6px;
}

.production-guide-step p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 1080px) {
  .admin-overview-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-launch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .production-guide-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card-icon {
  font-size: 28px;
  color: var(--accent-gold);
  filter: drop-shadow(0 0 6px var(--accent-gold-glow));
}

.stat-card-info {
  display: flex;
  flex-direction: column;
}

.stat-card-val {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.stat-card-lbl {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- Admin Double Layout ---- */
.admin-double-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 25px;
  margin-bottom: 40px;
  align-items: start;
}

.admin-workspace-layout {
  grid-template-columns: minmax(0, 1fr);
}

.admin-main-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 20px;
}

.admin-workspace-layout .admin-sidebar {
  align-items: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(340px, 1fr));
  position: static;
}

.admin-workspace-layout .admin-sidebar > .admin-block {
  min-width: 0;
}

.admin-product-card {
  grid-column: 1 / -1;
}

.admin-store-card {
  grid-column: 1 / -1;
}

.admin-product-card .admin-config-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.admin-store-card .admin-config-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.admin-product-card .admin-form-section {
  min-width: 0;
}

.admin-product-card .admin-form-section:first-child,
.admin-product-card .admin-stock-section {
  grid-column: 1 / -1;
}

.admin-keyauth-section {
  border-color: rgba(255, 176, 0, 0.14);
}

.admin-stock-section textarea {
  min-height: 138px;
}

.admin-product-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-product-summary > div {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 13px;
}

.admin-product-summary span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-product-summary strong {
  color: var(--accent-gold);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-block {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.admin-block-topline {
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 3px;
  padding-bottom: 12px;
}

.admin-block-topline h4 {
  border-bottom: 0;
  margin: 0;
  padding-bottom: 0;
}

.keyauth-status-badge {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-muted);
  display: flex;
  font-size: 11px;
  gap: 4px;
  padding: 4px 8px;
}

.admin-ops-card {
  gap: 18px;
  overflow: hidden;
}

.admin-card-header {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.admin-card-kicker {
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-block h4 {
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.admin-card-header h4 {
  border-bottom: 0;
  padding-bottom: 0;
  margin: 0;
}

.admin-card-header p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.admin-block h4 i {
  color: var(--accent-gold);
  font-size: 13px;
}

.admin-table-header {
  align-items: flex-end;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-bottom: 14px;
}

.admin-table-header h4 {
  border-bottom: 0;
  margin: 3px 0 0;
  padding-bottom: 0;
}

.admin-table-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-search-box {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  display: flex;
  gap: 8px;
  min-height: 38px;
  min-width: min(320px, 100%);
  padding: 0 10px;
}

.admin-search-box i {
  color: var(--text-muted);
  font-size: 12px;
}

.admin-search-box input,
.admin-table-tools select {
  background: transparent;
  border: 0;
  color: var(--text-main);
  font-family: inherit;
  font-size: 12px;
  min-height: 36px;
  outline: none;
}

.admin-search-box input {
  flex: 1;
  min-width: 0;
}

.admin-table-tools select {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0 10px;
}

.admin-result-count {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  min-width: 76px;
  text-align: right;
  text-transform: uppercase;
}

.admin-sales-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-sales-summary > div {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px;
}

.admin-sales-summary span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-sales-summary strong {
  color: var(--accent-gold);
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.client-ops-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
  padding: 14px;
}

.client-ops-card {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  color: var(--text-main);
  cursor: pointer;
  display: grid;
  gap: 7px;
  min-height: 108px;
  padding: 16px;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.client-ops-card:hover {
  background: rgba(255, 176, 0, 0.055);
  border-color: rgba(255, 176, 0, 0.24);
  transform: translateY(-1px);
}

.client-ops-card i {
  color: var(--accent-gold);
  font-size: 18px;
}

.client-ops-card span {
  font-size: 14px;
  font-weight: 900;
}

.client-ops-card small {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.coupon-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.coupon-summary-grid > div {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 15px;
}

.coupon-summary-grid span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.coupon-summary-grid strong {
  color: var(--accent-gold);
  font-size: 18px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coupon-workspace {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.coupon-editor-card .admin-config-form {
  gap: 14px;
}

.coupon-code {
  background: rgba(255, 176, 0, 0.08);
  border: 1px solid rgba(255, 176, 0, 0.14);
  border-radius: 4px;
  color: var(--accent-gold);
  display: inline-block;
  font-family: monospace;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 7px;
}

.coupon-discount {
  color: #23a55a;
  font-weight: 900;
}

.coupon-role {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.admin-table th {
  padding: 10px 12px;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 2px solid var(--border-color);
}

.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

.admin-key-owner {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 150px;
}

.admin-key-owner span {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
}

.admin-key-owner code,
.admin-key-code {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 10px;
}

.admin-key-code {
  color: var(--accent-gold);
  font-size: 11px;
}

.admin-expiration-text,
.admin-hwid-text {
  color: var(--text-muted);
  display: inline-block;
  font-size: 12px;
  line-height: 1.35;
  max-width: 190px;
  overflow-wrap: anywhere;
}

.admin-hwid-text.is-free {
  color: #23a55a;
}

.admin-muted-text {
  color: var(--text-muted);
  font-size: 11px;
}

.admin-uids-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-uid-item {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-uid-item code {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-main);
  font-family: monospace;
  font-size: 11px;
  padding: 3px 6px;
}

.admin-uid-item span {
  color: var(--accent-gold);
  font-size: 10px;
  font-weight: 700;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 150px;
}

.admin-row-actions .btn-table-action,
.admin-row-actions .btn-table-delete {
  margin: 0;
  white-space: nowrap;
}

.admin-row-actions .action-pause {
  background: rgba(255, 176, 0, 0.1);
  border-color: rgba(255, 176, 0, 0.2);
  color: var(--accent-gold);
}

.admin-row-actions .action-resume {
  background: rgba(35, 165, 90, 0.1);
  border-color: rgba(35, 165, 90, 0.2);
  color: #23a55a;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-config-form {
  gap: 16px;
}

.admin-form-section {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.admin-section-title {
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-inline-check {
  align-items: flex-start;
  background: rgba(255, 176, 0, 0.06);
  border: 1px solid rgba(255, 176, 0, 0.16);
  border-radius: 8px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 10px;
  line-height: 1.4;
  padding: 12px;
}

.admin-inline-check input {
  accent-color: var(--accent-gold);
  flex: 0 0 auto;
  margin-top: 2px;
}

.admin-mini-check {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.admin-mini-check input {
  cursor: pointer;
  height: 14px;
  width: 14px;
}

.admin-mini-check label {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  user-select: none;
}

.product-keyauth-info {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  font-size: 11px;
  gap: 4px;
  margin-top: 4px;
}

.btn-sm-admin {
  font-size: 12px;
}

.admin-card-followup {
  margin-top: 10px;
}

.admin-table-compact {
  font-size: 12px;
}

.table-loading-cell-compact {
  color: var(--text-muted);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.form-group input, 
.form-group select,
.form-group textarea {
  background: #0d0e12;
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus, 
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(255, 176, 0, 0.5);
}

.form-inline {
  display: flex;
  gap: 8px;
}

.form-inline input {
  flex: 1;
}

.btn-generate-key {
  background: rgba(255, 176, 0, 0.05);
  border: 1px solid rgba(255, 176, 0, 0.2);
  color: var(--accent-gold);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-generate-key:hover {
  background: var(--accent-gold);
  color: #000000;
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(255, 176, 0, 0.4);
}

.btn-block-submit {
  width: 100%;
  margin-top: 5px;
}

.btn-table-delete {
  background: rgba(220, 55, 60, 0.1);
  border: 1px solid rgba(220, 55, 60, 0.2);
  color: #ef4444;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-table-delete:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.loading-spinner {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.loading-spinner p {
  margin-top: 10px;
  font-size: 13px;
}

/* ---- Clientes Table Styling ---- */
.table-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 15px;
  gap: 15px;
  flex-wrap: wrap;
}

.table-header-actions h4 {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.search-bar-wrapper {
  position: relative;
  max-width: 300px;
  width: 100%;
}

.search-bar-wrapper input {
  width: 100%;
  background: #0d0e12;
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 8px 12px 8px 35px;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar-wrapper input:focus {
  border-color: rgba(255, 176, 0, 0.5);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
}

.client-profile-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--accent-gold);
  box-shadow: 0 0 5px var(--accent-gold-glow);
}

.client-name {
  font-weight: 700;
  color: #ffffff;
}

.client-provider-label {
  background: rgba(255, 176, 0, 0.1);
  border: 1px solid rgba(255, 176, 0, 0.18);
  border-radius: 6px;
  color: var(--accent-gold);
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  margin-left: 6px;
  padding: 2px 6px;
  vertical-align: middle;
}

.client-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.client-summary-grid > div {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 15px;
}

.client-summary-grid span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.client-summary-grid strong {
  color: var(--accent-gold);
  font-size: 18px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-id-code,
.client-contact-text {
  color: var(--text-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.client-contact-text {
  color: var(--text-main);
  font-size: 13px;
}

.client-money-text {
  color: var(--accent-gold);
  font-weight: 900;
}

.btn-table-action {
  background: rgba(255, 176, 0, 0.1);
  border: 1px solid rgba(255, 176, 0, 0.2);
  color: var(--accent-gold);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 700;
}

.btn-table-action:hover {
  background: var(--accent-gold);
  color: #000000;
  border-color: var(--accent-gold);
}

/* ---- Purchases Table & History Section ---- */
.purchases-wrapper {
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 40px;
}

.purchase-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.purchase-summary-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px;
}

.purchase-summary-card span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.purchase-summary-card strong {
  color: var(--text-main);
  font-size: 16px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-history-cards {
  display: none;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.purchase-history-card,
.purchase-empty-state {
  background: rgba(8, 9, 12, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  min-width: 0;
  padding: 16px;
}

.purchase-empty-state {
  color: var(--text-muted);
  grid-column: 1 / -1;
  text-align: center;
}

.purchase-empty-state i {
  color: var(--accent-gold);
  font-size: 28px;
  margin-bottom: 10px;
}

.purchase-empty-state.error i {
  color: var(--neon-red);
}

.purchase-empty-state h4 {
  color: var(--text-main);
  font-size: 17px;
  margin: 0 0 8px;
}

.purchase-empty-state p {
  line-height: 1.5;
  margin: 0;
}

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

.purchase-card-header span {
  color: var(--accent-gold);
  display: block;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.purchase-card-header h4 {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  margin: 0;
}

.purchase-card-header strong {
  color: var(--accent-gold);
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 900;
}

.purchase-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.purchase-card-meta span {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  color: var(--text-muted);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 6px;
  padding: 6px 8px;
}

.purchase-card-keys small {
  color: var(--text-muted);
  display: block;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.client-purchases-table th,
.client-purchases-table td {
  border-bottom: 1px solid var(--border-color);
}

.purchase-bank-badge {
  font-family: 'Outfit', sans-serif;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.2);
  color: var(--neon-blue);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.purchase-keys-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 100%;
}

.purchase-key-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 4px;
  gap: 10px;
}

.purchase-key-code {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-purchase-key {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-copy-purchase-key:hover {
  color: var(--accent-gold);
  background: rgba(255, 176, 0, 0.1);
}

.purchase-empty-key {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

/* ---- Game UID Management Section ---- */
.uids-wrapper input:focus {
  border-color: var(--accent-gold) !important;
  box-shadow: 0 0 8px rgba(255, 176, 0, 0.2);
}
.btn-change-uid-prefill:hover {
  background: rgba(240, 178, 50, 0.3) !important;
  box-shadow: 0 0 10px rgba(240, 178, 50, 0.2);
  transform: translateY(-1px);
}
.btn-change-uid-prefill:active {
  transform: translateY(0);
}

/* ---- Shop / Vitrine de Produtos ---- */
.shop-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.shop-toolbar h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
}

.shop-toolbar p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.shop-trust-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.shop-trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  font-weight: 700;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 15px;
}

.shop-loading {
  color: var(--text-muted);
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
}

.shop-feedback {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  width: 100%;
}

.shop-feedback i {
  color: var(--accent-gold);
  font-size: 40px;
  margin-bottom: 15px;
}

.shop-feedback strong {
  color: var(--text-main);
  font-size: 15px;
  margin-bottom: 6px;
}

.shop-feedback p {
  margin: 0;
}

.shop-feedback-error {
  color: var(--neon-red);
}

.shop-feedback-error i {
  color: var(--neon-red);
}

.shop-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  background: rgba(18, 20, 25, 0.82);
  min-height: 100%;
}

.shop-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 176, 0, 0.25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
}

.shop-card-banner {
  height: 150px;
  background-size: 100% 100%;
  background-position: center;
  position: relative;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.03);
}

.shop-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

.product-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 26px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  flex: 0 0 auto;
}

.title-stock-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
}

.stock-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stock-badge.auto {
  background: rgba(88, 101, 242, 0.12);
  color: #5865f2;
  border: 1px solid rgba(88, 101, 242, 0.2);
}

.stock-badge.available {
  background: rgba(35, 165, 90, 0.12);
  color: var(--neon-green);
  border: 1px solid rgba(35, 165, 90, 0.2);
}

.stock-badge.out-of-stock {
  background: rgba(218, 55, 60, 0.12);
  color: var(--neon-red);
  border: 1px solid rgba(218, 55, 60, 0.2);
}

.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 12px;
}

.product-feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.product-meta-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 12px;
}

.product-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.product-meta-row i {
  color: var(--accent-gold);
}

.product-feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-main);
  font-size: 12px;
  line-height: 1.45;
}

.product-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold-glow);
}

.shop-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-top: auto;
  gap: 14px;
}

.price-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0;
}

.price-value {
  font-size: 18px;
  font-weight: 900;
  color: var(--accent-gold);
}

.btn-buy-now {
  min-width: 118px;
  justify-content: center;
}

.btn-buy-now:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

/* ---- Global Modal Overlay ---- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 5, 7, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  max-width: 460px;
  width: 100%;
  padding: 30px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkout-modal-card {
  max-width: 560px;
}

.checkout-steps {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 34px 18px 0;
  position: relative;
}

.checkout-steps span {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-muted);
  display: grid;
  font-size: 11px;
  font-weight: 900;
  gap: 6px;
  justify-content: center;
  min-height: 52px;
  padding: 8px;
  text-align: center;
  text-transform: uppercase;
}

.checkout-steps span i {
  font-size: 14px;
}

.checkout-steps span b {
  line-height: 1;
}

.checkout-steps span small {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.checkout-steps span.active {
  background: rgba(255, 176, 0, 0.12);
  border-color: rgba(255, 176, 0, 0.28);
  color: var(--accent-gold);
}

.checkout-steps span.done {
  background: rgba(35, 165, 90, 0.08);
  border-color: rgba(35, 165, 90, 0.22);
  color: var(--neon-green);
}

.checkout-steps span.done small {
  color: rgba(35, 165, 90, 0.8);
}

.checkout-status-line {
  align-items: center;
  background: rgba(255, 176, 0, 0.075);
  border: 1px solid rgba(255, 176, 0, 0.16);
  border-radius: 8px;
  color: var(--text-main);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 9px;
  line-height: 1.45;
  margin: -6px 34px 18px 0;
  padding: 10px 12px;
}

.checkout-status-line i {
  color: var(--accent-gold);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 5px;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.checkout-selected-product {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(255, 176, 0, 0.18);
  background: rgba(255, 176, 0, 0.06);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

.checkout-selected-product span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.checkout-selected-product strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.3;
}

.checkout-selected-product small {
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 800;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.checkout-form-grid-single {
  grid-template-columns: 1fr;
}

.checkout-coupon-field {
  margin-bottom: 18px;
}

.checkout-primary-action {
  font-weight: 800;
  min-height: 42px;
}

.checkout-estimate-box {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 13px 14px;
}

.checkout-estimate-box span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-estimate-box strong {
  color: var(--accent-gold);
  font-size: 18px;
  font-weight: 900;
}

.checkout-next-steps {
  display: grid;
  gap: 8px;
  margin: 15px 0;
}

.checkout-next-steps div {
  align-items: center;
  background: rgba(8, 9, 12, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  color: var(--text-muted);
  display: flex;
  font-size: 12px;
  gap: 10px;
  padding: 10px 12px;
}

.checkout-next-steps i {
  color: var(--accent-gold);
  width: 16px;
}

/* ---- Checkout Configuration / Summary ---- */
.checkout-details-summary {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.checkout-payment-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: stretch;
  gap: 16px;
}

.checkout-waiting-banner {
  align-items: center;
  background: rgba(255, 176, 0, 0.08);
  border: 1px solid rgba(255, 176, 0, 0.18);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  padding: 12px;
}

.checkout-waiting-banner i {
  align-items: center;
  background: rgba(255, 176, 0, 0.12);
  border-radius: 8px;
  color: var(--accent-gold);
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
}

.checkout-waiting-banner strong {
  color: var(--text-main);
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.checkout-waiting-banner span {
  color: var(--text-muted);
  display: block;
  font-size: 12px;
  line-height: 1.45;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.summary-row strong {
  color: #ffffff;
}

.summary-row.total-row {
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.summary-row.total-row strong {
  font-size: 18px;
  color: var(--accent-gold);
}

/* ---- QR Code & Polling ---- */
.qr-code-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 0;
  position: relative;
}

.qr-code-container img {
  width: 178px;
  height: 178px;
}

.polling-status {
  position: static;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #111827;
  font-weight: 700;
}

.polling-status-error {
  color: var(--neon-red);
}

.checkout-issue-box {
  align-items: center;
  background: rgba(255, 77, 77, 0.08);
  border: 1px solid rgba(255, 77, 77, 0.22);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 14px 0;
  padding: 13px;
}

.checkout-issue-box i {
  color: var(--neon-red);
  font-size: 18px;
}

.checkout-issue-box strong {
  color: var(--text-main);
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
}

.checkout-issue-box span {
  color: var(--text-muted);
  display: block;
  font-size: 12px;
  line-height: 1.4;
}

.checkout-issue-box button {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: var(--text-main);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
  padding: 0 12px;
}

.checkout-issue-box button:hover {
  border-color: rgba(255, 176, 0, 0.28);
  color: var(--accent-gold);
}

/* ---- Input Copy Box ---- */
.copia-cola-wrapper {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.copia-cola-wrapper label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.input-copy-group {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.input-copy-group input {
  flex: 1;
  min-width: 0;
  background: #0d0e12;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 12px;
  font-family: monospace;
  outline: none;
}

.pix-help-text {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 4px 0 0;
}

.btn-checkout-cancel {
  background: rgba(218, 55, 60, 0.08);
  border: 1px solid rgba(218, 55, 60, 0.28);
  color: #ff8a8f;
  font-weight: 800;
  margin-top: 8px;
  min-height: 40px;
  width: 100%;
}

.btn-checkout-cancel:hover:not(:disabled) {
  background: rgba(218, 55, 60, 0.16);
  border-color: rgba(218, 55, 60, 0.48);
  color: #ffffff;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  padding: 10px 15px !important;
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* ---- Success State ---- */
.success-animation {
  display: flex;
  justify-content: center;
  align-items: center;
}

.checkout-success-animation {
  margin-bottom: 15px;
  text-align: center;
}

.checkout-success-icon {
  font-size: 48px;
}

.checkout-centered-title {
  justify-content: center;
  text-align: center;
}

.checkout-centered-copy {
  text-align: center;
}

.checkout-success-card {
  margin-top: 20px;
}

.checkout-done-btn {
  margin-top: 20px;
}

.checkout-success-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-success-actions .checkout-done-btn {
  margin-top: 0;
}

.success-key-card {
  background: rgba(35, 165, 90, 0.05);
  border: 1px solid rgba(35, 165, 90, 0.2);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.key-label {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.success-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.btn-block {
  width: 100%;
}

.text-gold {
  color: var(--accent-gold);
}

.text-green {
  color: var(--neon-green);
}

.animate-bounce {
  animation: bounce 1.5s infinite;
}

/* ---- Key list in success state ---- */
.success-key-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid var(--border-color);
}

.success-key-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.success-key-text span {
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.success-key-code {
  display: block;
  font-family: monospace;
  font-size: 13px;
  color: #ffffff;
  overflow-x: auto;
  white-space: nowrap;
}

.btn-copy-success-key {
  align-items: center;
  background: rgba(255, 176, 0, 0.12);
  border: 1px solid rgba(255, 176, 0, 0.28);
  border-radius: 6px;
  color: var(--accent-gold);
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  min-height: 36px;
  padding: 8px 12px;
  transition: color 0.2s;
}

.btn-copy-success-key:hover {
  background: rgba(255, 176, 0, 0.2);
  color: #ffffff;
}

/* ---- Animations ---- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---- Contact Tab Social Buttons ---- */
.contact-social-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.contact-social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 14px;
}

.contact-social-btn:hover {
  transform: translateY(-4px);
}

.contact-social-btn:hover::before {
  opacity: 1;
}

/* WhatsApp */
.contact-btn-whatsapp { border-color: rgba(37, 211, 102, 0.2); }
.contact-btn-whatsapp::before { background: radial-gradient(ellipse at 30% 50%, rgba(37, 211, 102, 0.1) 0%, transparent 70%); }
.contact-btn-whatsapp:hover { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.25); border-color: rgba(37, 211, 102, 0.5); }
.contact-btn-whatsapp .contact-btn-icon { background: linear-gradient(135deg, #25d366, #128c5e); box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }

/* YouTube */
.contact-btn-youtube { border-color: rgba(255, 0, 0, 0.2); }
.contact-btn-youtube::before { background: radial-gradient(ellipse at 30% 50%, rgba(255, 0, 0, 0.1) 0%, transparent 70%); }
.contact-btn-youtube:hover { box-shadow: 0 8px 32px rgba(255, 0, 0, 0.25); border-color: rgba(255, 0, 0, 0.5); }
.contact-btn-youtube .contact-btn-icon { background: linear-gradient(135deg, #ff0000, #cc0000); box-shadow: 0 4px 16px rgba(255, 0, 0, 0.4); }

/* TikTok */
.contact-btn-tiktok { border-color: rgba(105, 201, 208, 0.2); }
.contact-btn-tiktok::before { background: radial-gradient(ellipse at 30% 50%, rgba(105, 201, 208, 0.08) 0%, transparent 70%); }
.contact-btn-tiktok:hover { box-shadow: 0 8px 32px rgba(105, 201, 208, 0.2); border-color: rgba(105, 201, 208, 0.5); }
.contact-btn-tiktok .contact-btn-icon { background: linear-gradient(135deg, #010101, #2d2d2d); box-shadow: 0 4px 16px rgba(105, 201, 208, 0.3); }
.contact-btn-tiktok .contact-btn-icon i { text-shadow: 2px 2px 0 #69c9d0, -1px -1px 0 #ee1d52; }

.contact-btn-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
  color: #fff;
}

.contact-btn-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.contact-btn-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.3px;
}

.contact-btn-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.contact-btn-arrow {
  font-size: 13px;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.contact-social-btn:hover .contact-btn-arrow {
  transform: translate(3px, -3px);
  color: var(--text-main);
}

.contact-buttons-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 980px;
}

.contact-empty-state {
  padding: 58px 20px;
  text-align: center;
}

.contact-empty-state i {
  color: var(--text-muted);
  display: block;
  font-size: 42px;
  margin-bottom: 16px;
}

.contact-empty-state p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.support-ticket-panel {
  border-radius: 8px;
  margin-top: 34px;
  max-width: 980px;
  padding: 24px;
}

.support-ticket-header {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 18px;
  padding-bottom: 16px;
}

.support-ticket-header .panel-heading {
  align-items: center;
  color: var(--text-main);
  display: flex;
  font-size: 16px;
  gap: 8px;
  margin: 4px 0 8px;
}

.support-ticket-header .panel-heading i {
  color: var(--accent-gold);
}

.support-ticket-header .panel-copy {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.support-open-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.support-open-form .form-group {
  text-align: left;
}

.support-open-form input,
.support-open-form textarea,
.support-send-form input {
  background: rgba(8, 9, 12, 0.45);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-sizing: border-box;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  padding: 12px;
  width: 100%;
}

.support-open-form textarea {
  min-height: 112px;
  resize: vertical;
}

.support-primary-btn {
  align-self: flex-start;
  font-weight: 800;
  padding: 10px 24px;
}

.support-primary-btn.disabled,
.support-primary-btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.support-discord-box {
  align-items: center;
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  padding: 16px;
}

.support-discord-icon {
  align-items: center;
  background: rgba(88, 101, 242, 0.16);
  border: 1px solid rgba(88, 101, 242, 0.22);
  border-radius: 8px;
  color: #aab2ff;
  display: inline-flex;
  font-size: 20px;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.support-discord-box strong {
  color: var(--text-main);
  display: block;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 5px;
}

.support-discord-box p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.support-active-header {
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 15px;
}

.support-active-header h5 {
  color: var(--accent-gold);
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 4px;
}

.support-active-header span {
  color: var(--text-muted);
  font-size: 12px;
}

.support-close-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #ef4444;
  font-weight: 800;
  padding: 8px 16px;
}

.support-chat-window {
  background: rgba(8, 9, 12, 0.34);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 350px;
  margin-bottom: 15px;
  overflow-y: auto;
  padding: 15px;
  text-align: left;
}

.support-send-form {
  display: flex;
  gap: 10px;
}

.support-send-form input {
  flex: 1;
  min-width: 0;
}

.support-send-form button {
  flex: 0 0 auto;
  font-weight: 800;
  min-width: 54px;
  padding: 12px 18px;
}

@media (max-width: 640px) {
  .support-ticket-panel {
    padding: 18px;
  }

  .support-active-header,
  .support-discord-box,
  .support-send-form {
    align-items: stretch;
    flex-direction: column;
  }

  .support-discord-box {
    display: flex;
  }

  .support-close-btn,
  .support-primary-btn,
  .support-send-form button {
    width: 100%;
  }
}

/* ---- Profile / Account Polish ---- */
#tab-profile,
#tab-keys,
#tab-purchases,
#tab-security {
  max-width: 1280px;
}

#tab-profile .section-title,
#tab-keys > .section-title:first-child,
#tab-purchases > .section-title:first-child,
#tab-security > .section-title:first-child {
  background: linear-gradient(135deg, rgba(255, 176, 0, 0.08), rgba(88, 101, 242, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 22px 24px;
}

#tab-profile .section-title h3,
#tab-keys > .section-title:first-child h3,
#tab-purchases > .section-title:first-child h3,
#tab-security > .section-title:first-child h3 {
  font-size: 22px;
  margin: 0;
}

#tab-profile .section-subtitle,
#tab-purchases .section-subtitle,
#tab-security .section-subtitle {
  margin: 0 0 24px;
  max-width: 620px;
}

#tab-profile .profile-action-grid {
  gap: 18px;
  max-width: 1080px;
}

#tab-profile .profile-action-card {
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(24, 26, 31, 0.78), rgba(13, 14, 18, 0.78));
  display: flex;
  flex-direction: column;
  min-height: 178px;
  padding: 24px;
}

#tab-profile .profile-action-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: inline-flex;
  font-size: 24px;
  height: 48px;
  justify-content: center;
  margin-bottom: 16px;
  width: 48px;
}

#tab-keys > .section-title:first-child {
  margin-bottom: 22px;
}

.customer-license-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.customer-license-summary > div {
  background: linear-gradient(180deg, rgba(22, 24, 29, 0.78), rgba(13, 14, 18, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
}

.customer-license-summary span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.customer-license-summary strong {
  color: var(--accent-gold);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

#tab-keys .keys-tools-grid {
  gap: 22px;
  margin-bottom: 28px;
}

.customer-panel-heading {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  margin: 6px 0 16px;
  padding-bottom: 12px;
}

.customer-panel-heading .panel-heading {
  margin: 3px 0 0;
}

.customer-card-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.customer-card-header .panel-heading,
.customer-card-header .panel-copy {
  margin: 0;
}

#tab-keys .key-tool-card,
#tab-keys .customer-panel,
#tab-keys .purchases-wrapper {
  background: linear-gradient(180deg, rgba(22, 24, 29, 0.78), rgba(13, 14, 18, 0.82));
  border-color: rgba(255, 255, 255, 0.085);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  padding: 28px;
}

#tab-keys .customer-panel {
  gap: 18px;
  margin-bottom: 28px;
}

#tab-keys .panel-heading {
  font-size: 17px;
  margin-bottom: 4px;
}

#tab-keys .panel-copy {
  max-width: 760px;
}

#tab-keys .uid-management-grid {
  gap: 22px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
}

#tab-keys .uid-list-panel,
#tab-keys .uid-action-form {
  background: rgba(8, 9, 12, 0.32);
  border-color: rgba(255, 255, 255, 0.075);
}

#tab-keys .uid-list-panel {
  min-height: 230px;
  padding: 18px;
}

#tab-keys .uid-forms-stack {
  gap: 18px;
}

#tab-keys .uid-action-form {
  padding: 18px;
}

#tab-keys .inline-action-form,
#tab-keys .contact-info-form {
  gap: 12px;
}

#tab-keys .panel-input {
  min-height: 42px;
}

#tab-keys .keys-grid {
  gap: 22px;
  margin: 6px 0 34px;
}

#tab-keys .section-title-spaced {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 34px;
  padding-top: 26px;
}

#tab-keys .purchases-wrapper {
  margin-bottom: 44px;
}

#tab-purchases .purchases-wrapper,
#tab-security .customer-panel,
#tab-security .activity-logs-wrapper,
#tab-security .terminal-wrapper {
  background: linear-gradient(180deg, rgba(22, 24, 29, 0.78), rgba(13, 14, 18, 0.82));
  border-color: rgba(255, 255, 255, 0.085);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  padding: 28px;
}

.security-overview-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
  margin-bottom: 30px;
}

.security-account-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.security-account-list div {
  align-items: center;
  background: rgba(8, 9, 12, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.security-account-list span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.security-account-list strong {
  color: var(--text-main);
  font-size: 13px;
  max-width: 58%;
  overflow-wrap: anywhere;
  text-align: right;
}

.security-password-form {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
}

.security-form-title {
  align-items: center;
  color: var(--accent-gold);
  display: flex;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
  text-transform: uppercase;
}

.security-password-form .panel-input {
  min-height: 42px;
}

.security-form-status {
  font-size: 12px;
  line-height: 1.45;
  margin: 4px 0 0;
}

.security-form-status.muted {
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.18);
  border-radius: 8px;
  color: var(--text-muted);
  margin-top: 16px;
  padding: 12px;
}

#tab-keys .purchase-summary-grid {
  gap: 14px;
  margin-bottom: 20px;
}

#tab-keys .purchase-summary-card,
#tab-keys .purchase-history-card,
#tab-keys .purchase-empty-state {
  background: rgba(8, 9, 12, 0.3);
}

@media (max-width: 900px) {
  .admin-product-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #tab-keys .uid-management-grid,
  .security-overview-grid {
    grid-template-columns: 1fr;
  }

  .customer-license-summary,
  .admin-sales-summary,
  .client-ops-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .key-metadata {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #tab-profile .section-title,
  #tab-keys > .section-title:first-child,
  #tab-keys .key-tool-card,
  #tab-keys .customer-panel,
  #tab-keys .purchases-wrapper,
  #tab-purchases .purchases-wrapper,
  #tab-security .customer-panel,
  #tab-security .activity-logs-wrapper,
  #tab-security .terminal-wrapper {
    padding: 20px;
  }

  #tab-profile .profile-action-card {
    min-height: auto;
  }

  .keys-grid,
  #tab-keys .keys-grid {
    grid-template-columns: 1fr;
  }

  .card-header,
  .key-delivery-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .key-status,
  .key-delivery-head small {
    text-align: left;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .checkout-issue-box {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .checkout-issue-box button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .customer-license-summary,
  .admin-sales-summary,
  .client-ops-strip,
  .admin-product-flow {
    grid-template-columns: 1fr;
  }
}

/* ---- Professional Shop Cards ---- */
.shop-grid {
  align-items: stretch;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
}

.shop-card {
  background:
    linear-gradient(180deg, rgba(24, 26, 31, 0.94), rgba(13, 14, 18, 0.94)),
    rgba(18, 20, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  min-height: 100%;
  position: relative;
}

.shop-card:hover {
  border-color: rgba(255, 176, 0, 0.34);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 176, 0, 0.04);
  transform: translateY(-3px);
}

.shop-card.is-soldout {
  background:
    linear-gradient(180deg, rgba(24, 26, 31, 0.82), rgba(13, 14, 18, 0.92)),
    rgba(18, 20, 25, 0.86);
}

.shop-card-banner {
  aspect-ratio: 16 / 7;
  background:
    linear-gradient(135deg, rgba(255, 176, 0, 0.16), rgba(88, 101, 242, 0.08)),
    #111317;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: auto;
  overflow: hidden;
}

.shop-card-banner::after {
  background: linear-gradient(180deg, rgba(6, 7, 10, 0), rgba(6, 7, 10, 0.72));
  content: "";
  inset: 0;
  position: absolute;
}

.shop-banner-fallback {
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
  display: flex;
  flex-direction: column;
  gap: 8px;
  inset: 0;
  justify-content: center;
  position: absolute;
  text-align: center;
}

.shop-banner-fallback span {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: inline-flex;
  font-size: 30px;
  height: 58px;
  justify-content: center;
  min-width: 58px;
  padding: 0 12px;
}

.shop-banner-fallback small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-card-banner.has-banner .shop-banner-fallback {
  display: none;
}

.shop-banner-overlay {
  align-items: flex-end;
  bottom: 10px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  left: 12px;
  position: absolute;
  right: 12px;
  z-index: 1;
}

.shop-banner-overlay > span:first-child {
  align-items: center;
  background: rgba(8, 9, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 6px;
  padding: 7px 9px;
}

.shop-card-content {
  gap: 14px;
  padding: 16px;
}

.shop-card-header {
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  min-height: 48px;
}

.product-emoji {
  background: rgba(255, 176, 0, 0.08);
  border-color: rgba(255, 176, 0, 0.18);
  font-size: 22px;
  height: 44px;
  width: 44px;
}

.title-stock-group {
  min-width: 0;
}

.product-title {
  display: -webkit-box;
  font-size: 15px;
  line-height: 1.25;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card-subtitle {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.stock-badge {
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 9px;
  white-space: nowrap;
}

.stock-badge.auto {
  background: rgba(88, 101, 242, 0.18);
  color: #aab2ff;
}

.stock-badge.available {
  background: rgba(35, 165, 90, 0.16);
  color: #5ee08f;
}

.stock-badge.out-of-stock {
  background: rgba(218, 55, 60, 0.16);
  color: #ff7b80;
}

.product-desc {
  color: #c3c7cf;
  display: -webkit-box;
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
  min-height: 38px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-feature-list {
  gap: 7px;
  margin: 0;
}

.product-feature-list li {
  color: #e3e6eb;
  font-size: 11px;
  line-height: 1.45;
  padding-left: 16px;
}

.product-feature-list li::before {
  height: 5px;
  top: 0.62em;
  width: 5px;
}

.product-meta-row {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 11px;
  gap: 8px;
  margin-top: auto;
  padding: 10px;
}

.shop-card-footer {
  border-top-color: rgba(255, 255, 255, 0.07);
  gap: 12px;
  padding-top: 14px;
}

.price-label {
  font-size: 10px;
  font-weight: 800;
}

.price-value {
  font-size: 20px;
  letter-spacing: 0;
}

.btn-buy-now {
  border-radius: 6px;
  min-height: 40px;
  min-width: 124px;
}

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

  .shop-banner-overlay {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---- Home Quick Action Cards ---- */
.home-quick-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 30px;
}

.home-quick-card {
  cursor: pointer;
  padding: 25px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.home-quick-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.home-quick-icon.icon-gold {
  color: var(--accent-gold);
}

.home-quick-icon.icon-green {
  color: var(--neon-green);
}

.home-quick-icon.icon-blue {
  color: var(--neon-blue);
}

.home-quick-icon.icon-violet {
  color: #a78bfa;
}

.home-quick-card h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.home-quick-card p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.home-quick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.32);
  border-color: rgba(255, 176, 0, 0.25);
}

/* ---- Welcome Banner & Dynamic Home Elements ---- */
.welcome-banner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 16px;
  gap: 20px;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 176, 0, 0.15);
  background: linear-gradient(135deg, rgba(22, 24, 29, 0.75) 0%, rgba(13, 14, 18, 0.85) 100%);
  overflow: hidden;
}

.welcome-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 12, 0.94) 0%, rgba(8, 9, 12, 0.76) 50%, rgba(8, 9, 12, 0.58) 100%),
    url("/assets/rf-x-cheat.png") center / cover no-repeat;
  opacity: 0.44;
  pointer-events: none;
}

.welcome-banner > * {
  position: relative;
  z-index: 1;
}

.welcome-profile {
  display: flex;
  align-items: center;
  gap: 20px;
}

.welcome-avatar-wrapper {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.welcome-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  z-index: 2;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.welcome-avatar-wrapper:hover .welcome-avatar {
  transform: scale(1.1);
}

.welcome-avatar-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent-gold);
  filter: blur(10px);
  opacity: 0.4;
  z-index: 1;
  animation: welcome-pulse 2s infinite alternate;
}

.welcome-text h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.welcome-text .accent-username {
  color: var(--accent-gold);
  text-shadow: 0 0 10px var(--accent-gold-glow);
}

.welcome-text p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.welcome-stats {
  display: flex;
  gap: 15px;
  align-items: center;
}

.welcome-stat-card {
  background: rgba(13, 14, 18, 0.5);
  border: 1px solid var(--border-color);
  padding: 15px 20px;
  border-radius: 12px;
  text-align: center;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.welcome-stat-card .stat-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.welcome-stat-card #home-keys-count {
  color: var(--accent-gold);
  text-shadow: 0 0 8px var(--accent-gold-glow);
}

.welcome-stat-card #home-role-badge {
  color: var(--neon-blue);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.welcome-stat-card .stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Bottom Grid (Mural + Status) */
.home-bottom-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 25px;
  margin-bottom: 30px;
  align-items: stretch;
}

.announcements-panel, .status-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.section-title-compact {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.section-title-compact h3 {
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.announcements-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.announcement-item {
  padding: 15px;
  background: rgba(8, 9, 12, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.25s ease;
}

.announcement-item:hover {
  border-color: rgba(255, 176, 0, 0.2);
  transform: translateX(4px);
  background: rgba(8, 9, 12, 0.6);
}

.announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.announcement-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.5px;
}

.announcement-tag.log {
  background: rgba(88, 101, 242, 0.12);
  color: #8fa0ff;
  border: 1px solid rgba(88, 101, 242, 0.2);
}

.announcement-tag.promo {
  background: rgba(255, 176, 0, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 176, 0, 0.2);
}

.announcement-tag.alert {
  background: rgba(218, 55, 60, 0.12);
  color: #ff767b;
  border: 1px solid rgba(218, 55, 60, 0.2);
}

.announcement-tag.info {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.announcement-time {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.announcement-item p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.announcement-item p strong {
  color: var(--text-main);
}

.admin-announcement-form {
  gap: 14px;
}

.admin-announcements-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.admin-announcement-item {
  align-items: flex-start;
  background: rgba(8, 9, 12, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.admin-announcement-header {
  justify-content: flex-start;
}

.admin-announcement-item p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0 0 8px;
}

.admin-announcement-state {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.admin-announcement-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

/* Redesigned Status Grid items in Home Panel */
.status-panel .status-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 0;
}

.status-panel .status-item {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(8, 9, 12, 0.4);
  transition: all 0.25s ease;
}

.status-panel .status-item:hover {
  transform: translateY(-2px);
  background: rgba(8, 9, 12, 0.6);
}

.status-panel .status-item:has(.functional):hover {
  border-color: rgba(35, 165, 90, 0.25);
  box-shadow: 0 4px 15px rgba(35, 165, 90, 0.08);
}

.status-panel .status-item:has(.updating):hover {
  border-color: rgba(240, 178, 50, 0.25);
  box-shadow: 0 4px 15px rgba(240, 178, 50, 0.08);
}

.status-panel .status-item:has(.detected):hover {
  border-color: rgba(218, 55, 60, 0.25);
  box-shadow: 0 4px 15px rgba(218, 55, 60, 0.08);
}

@keyframes welcome-pulse {
  0% { opacity: 0.25; filter: blur(8px) scale(0.95); }
  100% { opacity: 0.45; filter: blur(12px) scale(1.05); }
}

@media (max-width: 992px) {
  .home-bottom-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================
   PREMIUM CUSTOM STYLES (PROFESSIONAL LEVEL)
   ========================================== */

/* ---- Custom Global Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(8, 9, 12, 0.4);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  border: 2px solid var(--bg-color);
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 176, 0, 0.3);
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) rgba(8, 9, 12, 0.4);
}

/* ---- Premium Gold Button ---- */
.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%) !important;
  color: #000000 !important;
  border: none !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 15px rgba(255, 176, 0, 0.3) !important;
  text-shadow: none !important;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #ffbe33 0%, #e69f00 100%) !important;
  box-shadow: 0 6px 20px rgba(255, 176, 0, 0.45) !important;
  transform: translateY(-1.5px) !important;
}

.btn-gold:active {
  transform: translateY(1px) !important;
}

/* ---- Glassmorphism Hover Effects ---- */
.glass {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
}

.glass:hover {
  border-color: rgba(255, 176, 0, 0.22) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 176, 0, 0.03) !important;
}

/* ---- Chat / Ticket Styling ---- */
.chat-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  font-family: 'Outfit', sans-serif;
  position: relative;
  word-break: break-word;
}

.chat-bubble.user {
  align-self: flex-end;
  background: rgba(255, 176, 0, 0.15);
  border: 1px solid rgba(255, 176, 0, 0.25);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.chat-bubble.staff {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-bottom-left-radius: 2px;
}

.chat-bubble-meta {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.chat-bubble.user .chat-bubble-meta {
  text-align: right;
}

.chat-bubble.staff .chat-bubble-meta {
  text-align: left;
}

.chat-bubble-author {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 2px;
  display: block;
}
