/* ==============================================================================
   External Dev - Customer Script Portal (Dark Luxury Blue Theme)
   Follows strict FiveM UI & Dark Luxury Guidelines (Outfit & Kanit typography)
   ============================================================================== */

:root {
  --bg-main: rgba(15, 15, 15, 0.96);
  --bg-card: rgba(22, 24, 28, 0.95);
  --bg-card-hover: rgba(26, 30, 36, 0.98);
  --bg-input: rgba(12, 13, 16, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(8, 144, 234, 0.5);
  --primary: #0890ea;
  --primary-hover: #0779c4;
  --accent: #47b4fd;
  --accent-glow: rgba(71, 180, 253, 0.25);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --font-content: 'Kanit', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-card: 18px;
  --radius-pill: 8px;
  --radius-sm: 8px;
}

/* Reset & Base Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

/* Remove number input spinners (stepper arrows) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

[v-cloak] {
  display: none !important;
}

body {
  background-color: #0b0c0e;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(8, 144, 234, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(71, 180, 253, 0.06) 0%, transparent 40%);
  color: var(--text-main);
  font-family: var(--font-content);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  user-select: none;
}

/* Background Ambient Glows & Grid (Cinematic Feel) */
.ambient-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.ambient-glow.top-left {
  top: -150px;
  left: -150px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.ambient-glow.bottom-right {
  bottom: -150px;
  right: -150px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

/* Wrapper Layout */
.app-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Animations */
.zoom-entrance {
  animation: zoomInEntrance 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes zoomInEntrance {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==============================================================================
   HEADER & NAVIGATION
   ============================================================================== */
.luxury-header {
  background: rgba(15, 17, 20, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-logo-ring {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(8, 144, 234, 0.2), rgba(71, 180, 253, 0.05));
  border: 1px solid rgba(8, 144, 234, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  color: #ffffff;
}

.brand-accent {
  color: var(--primary);
  text-shadow: 0 0 12px rgba(8, 144, 234, 0.5);
}

.brand-subtitle {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-dim);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.system-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-pill);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.status-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--success);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  object-fit: cover;
}

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

.user-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  line-height: 1.1;
}

.user-id {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.btn-icon-danger {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-icon-danger:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.btn-discord-login {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #5865f2;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-discord-login:hover {
  background: #4752c4;
}

/* ==============================================================================
   MAIN CONTENT & HERO (GUEST VIEW)
   ============================================================================== */
.content-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 16px 24px;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.content-container:has(.hero-guest-section) {
  justify-content: center;
}

/* ==============================================================================
   MAIN CONTENT & HERO (GUEST VIEW - PERFECT VIEWPORT CENTER)
   ============================================================================== */
.hero-guest-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 1100px;
  margin: auto;
  padding: 10px 0 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 144, 234, 0.08);
  border: 1px solid rgba(8, 144, 234, 0.28);
  padding: 7px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1.8px;
  color: var(--accent);
  margin-bottom: 22px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  color: #ffffff;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent) 80%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-top: 6px;
  letter-spacing: 1px;
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 700px;
  margin: 0 auto 32px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  color: #ffffff;
  border: 1px solid rgba(88, 101, 242, 0.45);
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #6875f5 0%, #5865f2 100%);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-hero-primary i {
  font-size: 1.25rem;
}

.btn-hero-secondary {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  text-align: left;
}

.highlight-card {
  background: linear-gradient(160deg, rgba(22, 24, 29, 0.95) 0%, rgba(14, 16, 20, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(8, 144, 234, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.highlight-card:hover {
  border-color: rgba(71, 180, 253, 0.45);
}

.highlight-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(8, 144, 234, 0.16) 0%, rgba(71, 180, 253, 0.05) 100%);
  border: 1px solid rgba(8, 144, 234, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 18px;
  transition: all 0.25s ease;
}

.highlight-card:hover .card-icon {
  background: linear-gradient(135deg, rgba(8, 144, 234, 0.3) 0%, rgba(71, 180, 253, 0.12) 100%);
  border-color: var(--accent);
  color: #ffffff;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.16rem;
  margin-bottom: 10px;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.card-desc {
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .hero-title {
    font-size: 1.95rem;
  }
  .highlights-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================================================================
   CUSTOMER DASHBOARD (AUTHENTICATED)
   ============================================================================== */
.dashboard-banner {
  background: linear-gradient(135deg, rgba(22, 24, 28, 0.95) 0%, rgba(15, 17, 21, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.banner-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-holder {
  position: relative;
}

.banner-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 2px solid var(--primary);
  object-fit: cover;
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid #0f1115;
}

.welcome-text {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.customer-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 2px;
}

.customer-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.meta-tag.active {
  background: rgba(8, 144, 234, 0.15);
  color: var(--accent);
  border: 1px solid rgba(8, 144, 234, 0.25);
  font-family: var(--font-content);
  font-weight: 500;
}

.banner-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-box {
  background: rgba(12, 13, 16, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 6px 16px;
  text-align: center;
  min-width: 90px;
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  line-height: 1;
  margin-bottom: 2px;
}

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

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Controls Toolbar (Search & Filter Tabs - Esports Style) */
.portal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.filter-tabs-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  background: rgba(14, 16, 20, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, #0779c4 100%);
  border-color: rgba(71, 180, 253, 0.4);
  color: #ffffff;
  font-weight: 700;
}

/* Search Capsule (Cinematic Esports Style) */
.search-capsule-portal {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 280px;
  background: rgba(14, 16, 20, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 2px 8px 2px 14px;
  transition: border-color 0.2s ease;
}

.search-capsule-portal:focus-within {
  border-color: rgba(8, 144, 234, 0.6);
}

.search-icon-portal {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-right: 8px;
  flex-shrink: 0;
}

.search-input-portal {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-content);
  font-size: 0.85rem;
  padding: 4px 0;
}

.search-input-portal::placeholder {
  color: var(--text-dim);
}

.btn-clear-search {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 3px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border-radius: 50%;
  transition: color 0.2s ease;
}

.btn-clear-search:hover {
  color: #ffffff;
}

/* ==============================================================================
   SCRIPT CARDS GRID (DARK LUXURY BLUE)
   ============================================================================== */
.scripts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.script-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.script-card:hover {
  background: var(--bg-card-hover);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.script-type-badge {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.script-type-badge.sell {
  background: rgba(8, 144, 234, 0.15);
  color: var(--accent);
  border: 1px solid rgba(8, 144, 234, 0.3);
}

.script-type-badge.free {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.script-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.script-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(8, 144, 234, 0.2) 0%, rgba(71, 180, 253, 0.05) 100%);
  border: 1px solid rgba(8, 144, 234, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.script-icon-box.locked {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.script-title-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.script-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  word-break: break-word;
}

.script-version-text {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}

/* IP Management Panel */
.ip-info-panel {
  background: rgba(12, 13, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.ip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.ip-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cooldown-badge {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.cooldown-badge.ready {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.cooldown-badge.locked {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.ip-display-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ip-code-box {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
}

.ip-code-box code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #fff;
}

.btn-change-ip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(8, 144, 234, 0.15);
  border: 1px solid rgba(8, 144, 234, 0.3);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-change-ip:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
}

.btn-change-ip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  background: transparent;
}

.cooldown-countdown-text {
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--warning);
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}

/* License Meta */
.license-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 8px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
}

.meta-label {
  color: var(--text-dim);
}

.meta-val {
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
}

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

/* Card Actions */
.card-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-action-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary) 0%, #0779c4 100%);
  color: #fff;
  border: 1px solid rgba(71, 180, 253, 0.35);
  padding: 9px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-action-primary:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
}

/* Status Badges */
.badge-status-owned {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-status-locked {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Unowned Card Info Panel */
.unowned-info-panel {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 12px;
}

.unowned-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0;
}

/* Discord Order Action Button */
.btn-action-discord-buy {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 9px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action-discord-buy:hover {
  background: #5865f2;
  border-color: #5865f2;
  color: #ffffff;
}

/* No Search Results */
.no-search-results {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  margin-bottom: 40px;
}

/* ==============================================================================
   MODALS & DIALOGS
   ============================================================================== */
.modal-backdrop-custom {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: rgba(22, 24, 28, 0.98);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
}

.modal-box.changelog-modal {
  max-width: 650px;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: #ffffff;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

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

.modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-info-alert {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #fde68a;
  line-height: 1.3;
  margin-bottom: 16px;
}

.modal-info-alert i {
  font-size: 1.2rem;
  color: var(--warning);
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.required-star {
  color: var(--danger);
}

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-content);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
}

.form-input.readonly {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: not-allowed;
}

.input-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.input-display-copy {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-copy-mini {
  background: rgba(8, 144, 234, 0.15);
  border: 1px solid rgba(8, 144, 234, 0.3);
  color: var(--accent);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-copy-mini:hover {
  background: var(--primary);
  color: #fff;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.input-with-icon .form-input {
  padding-left: 38px;
}

.btn-discord-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #5865f2;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-bottom: 18px;
}

.btn-discord-block:hover {
  background: #4752c4;
}

.or-divider {
  text-align: center;
  position: relative;
  margin: 18px 0;
}

.or-divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
}

.or-divider span {
  position: relative;
  background: rgba(22, 24, 28, 0.98);
  padding: 0 12px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Changelog Details */
.changelog-script-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.cl-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}

.cl-version {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(8, 144, 234, 0.12);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.changelog-content-box {
  background: rgba(12, 13, 16, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.changelog-pre {
  font-family: var(--font-content);
  font-size: 0.9rem;
  color: #d1d5db;
  white-space: pre-wrap;
  line-height: 1.6;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, #0779c4 100%);
  color: #fff;
  border: 1px solid rgba(71, 180, 253, 0.4);
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-glow:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
}

.btn-primary-glow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ==============================================================================
   FOOTER
   ============================================================================== */
.luxury-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(12, 13, 16, 0.95);
  padding: 0px 24px;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-sep {
  opacity: 0.3;
}

.footer-link-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.footer-link-btn:hover {
  color: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

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

  .banner-stats {
    width: 100%;
    justify-content: space-between;
  }

  .stat-box {
    flex: 1;
  }

  .scripts-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================================================================
   CUSTOM DROPDOWN UI (DARK LUXURY SELECT)
   ============================================================================== */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-select-trigger {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #ffffff;
  font-family: var(--font-content);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s ease;
}

.custom-select-trigger:hover {
  background: rgba(18, 20, 25, 0.95);
}

.custom-select-trigger .custom-select-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-arrow {
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: transform 0.2s ease;
  margin-left: 10px;
}

.custom-select-wrapper.open .custom-select-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: rgba(20, 22, 26, 0.98);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 6px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 1050;
  display: none;
}

.custom-select-wrapper.open .custom-select-menu {
  display: block;
}

.custom-select-option {
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-main);
  font-family: var(--font-content);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s ease, color 0.15s ease;
  margin-bottom: 2px;
}

.custom-select-option:last-child {
  margin-bottom: 0;
}

.custom-select-option:hover {
  background: rgba(8, 144, 234, 0.15);
  color: var(--accent);
}

.custom-select-option.selected {
  background: rgba(8, 144, 234, 0.2);
  color: #ffffff;
  font-weight: 600;
}

.custom-select-option .option-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-heading);
}

.custom-select-menu::-webkit-scrollbar {
  width: 5px;
}

.custom-select-menu::-webkit-scrollbar-track {
  background: transparent;
}

.custom-select-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}