/* ============================================================
   P4kong - Growtopia Live Monitor & Stream Overlay CSS
   Theme: Luxury Black Gold Edition (Obsidian & Metallic Gold)
   ============================================================ */

:root {
  --bg-color: #030303;
  --bg-card: rgba(14, 13, 10, 0.75);
  --bg-card-hover: rgba(24, 21, 14, 0.85);
  --bg-input: rgba(12, 11, 8, 0.85);
  
  --border-color: rgba(212, 175, 55, 0.14);
  --border-highlight: rgba(212, 175, 55, 0.45);
  --border-hover: rgba(212, 175, 55, 0.6);
  
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-sub: #64748b;
  
  --primary-accent: #d4af37; /* Metallic Gold */
  --primary-glow: rgba(212, 175, 55, 0.35);
  --amber-accent: #f59e0b;
  --green-live: #22c55e;
  --red-danger: #ef4444;
  --blue-info: #38bdf8;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Background Ambient Aurora (Hardware Accelerated) */
.aurora-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.2;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  animation: auroraFloat 18s ease-in-out infinite alternate;
}

.aurora-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #d4af37, #f59e0b);
  top: -120px;
  left: 10%;
}

.aurora-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #b45309, #d4af37);
  bottom: 5%;
  right: 5%;
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

.aurora-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25), transparent);
  top: 40%;
  left: 55%;
  opacity: 0.12;
}

@keyframes auroraFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, -25px) scale(1.06); }
  100% { transform: translate(-25px, 25px) scale(0.96); }
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(212, 175, 55, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Header Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(4, 4, 5, 0.85);
  border-bottom: 1px solid var(--border-color);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid var(--border-highlight);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.2);
}

.logo-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-highlight);
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 10px;
  transition: all 0.2s;
}

nav a:hover, nav a.active {
  color: #fff;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-color);
}

.btn-nav-overlay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #d4af37, #b45309) !important;
  color: #030303 !important;
  font-weight: 700 !important;
  font-size: 0.88rem;
  padding: 7px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-nav-overlay:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

/* Main Container */
.main-content {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 24px 80px 24px;
}

/* Hero Status Banner */
.hero-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 22px;
  margin-bottom: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.status-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pulse-dot-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-live);
  box-shadow: 0 0 10px var(--green-live);
  animation: pulseLive 1.6s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 14px var(--green-live); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.status-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.status-sub {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-left: 6px;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.refresh-countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 8px;
}

.btn-manual-refresh {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-color);
  color: #d4af37;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-manual-refresh:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--border-highlight);
}

.btn-manual-refresh.spinning svg {
  animation: spin 0.8s linear infinite;
}

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

/* Banwave Warning Alert Banner (Hidden by default, shown when banwave detected) */
.banwave-alert-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.25), rgba(212, 175, 55, 0.2));
  border: 1.5px solid rgba(239, 68, 68, 0.6);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 24px;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.25);
  animation: pulseAlert 2s infinite ease-in-out;
}

.banwave-alert-banner.active {
  display: flex;
}

@keyframes pulseAlert {
  0% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }
  50% { box-shadow: 0 0 30px rgba(239, 68, 68, 0.45); }
  100% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }
}

.banwave-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.banwave-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fca5a5;
  font-size: 1.2rem;
}

.banwave-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
}

.banwave-sub {
  font-size: 0.85rem;
  color: #fecaca;
}

/* 4 Quick Stat Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.stat-card {
  content-visibility: auto;
  contain-intrinsic-size: 0 140px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-highlight);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.1);
}

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

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-sub);
}

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  font-size: 1.1rem;
}

.stat-role-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.title-role-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.35));
  image-rendering: -webkit-optimize-contrast;
}

.badge-role-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
  display: inline-block;
}

.tab-role-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
  display: inline-block;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stat-diff-up {
  color: #22c55e;
  font-weight: 600;
}

.stat-diff-down {
  color: #ef4444;
  font-weight: 600;
}

/* Progress bar inside load card */
.stat-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

.stat-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d4af37, #f59e0b);
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Split Content Grid (WOTD & Daily Quest) */
.dual-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 32px;
}

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

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.feature-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.feature-box-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-box-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-highlight);
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* WOTD Image Render Box */
.wotd-preview-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 200px;
  background: #080806;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.wotd-preview-card:hover {
  transform: scale(1.01);
}

.wotd-overlay-info {
  width: 100%;
  padding: 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wotd-world-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.btn-view-world {
  font-size: 0.8rem;
  color: #d4af37;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.btn-view-world:hover {
  background: rgba(212, 175, 55, 0.2);
}

/* Daily Quest List */
.dq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dq-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 16px;
  border-radius: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dq-item:hover {
  background: rgba(212, 175, 55, 0.03);
  border-color: rgba(212, 175, 55, 0.25);
}

.dq-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dq-item-thumb {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 8px;
  padding: 3px;
  flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: pixelated;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.dq-item:hover .dq-item-thumb {
  transform: scale(1.08);
  border-color: #d4af37;
}

.dq-quest-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dq-quest-cost {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #d4af37;
  font-size: 0.92rem;
  flex-shrink: 0;
  margin-left: 12px;
}

.dq-meta-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Active Mods & Banwave Log Tabs */
.tabs-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

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

.tab-btn.active {
  color: #030303;
  background: var(--primary-accent);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.tab-badge {
  font-size: 0.74rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
}

/* Mods Online Grid / List */
.mods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.mod-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: transform 0.2s, border-color 0.2s;
}

.mod-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-highlight);
}

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

.mod-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-highlight);
  color: #d4af37;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mod-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.mod-status {
  font-size: 0.74rem;
  color: var(--text-sub);
}

.mod-badge-online {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.mod-badge-undercover {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

/* Banwave History List */
.banwave-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.banwave-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

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

.bw-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.bw-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #f1f5f9;
}

.bw-rate {
  font-size: 0.75rem;
  color: #ef4444;
  font-weight: 600;
}

.bw-time {
  font-size: 0.78rem;
  color: var(--text-sub);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-sub);
  font-size: 0.9rem;
}

/* Modal Backdrop & Overlay Generator */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: #0d0c09;
  border: 1px solid var(--border-highlight);
  border-radius: 22px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 175, 55, 0.2);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

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

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.modal-body {
  padding: 24px;
}

.modal-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d4af37;
  margin-bottom: 12px;
}

/* Preset Layout Selector */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

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

.preset-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.preset-btn:hover {
  border-color: var(--border-highlight);
  background: rgba(212, 175, 55, 0.08);
}

.preset-btn.active {
  border-color: var(--primary-accent);
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
}

.preset-btn-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
}

.preset-btn-sub {
  font-size: 0.72rem;
  color: var(--text-sub);
}

/* Checkbox Grid for Custom Components */
.components-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

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

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s;
}

.checkbox-label:hover {
  background: rgba(212, 175, 55, 0.06);
  border-color: var(--border-color);
}

.checkbox-label input[type="checkbox"] {
  accent-color: #d4af37;
  width: 16px;
  height: 16px;
}

/* URL Result Box */
.url-output-wrap {
  background: #060503;
  border: 1px solid var(--border-highlight);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.url-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-family: monospace;
  font-size: 0.82rem;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-copy-url {
  background: linear-gradient(135deg, #d4af37, #b45309);
  color: #030303;
  font-weight: 700;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-copy-url:hover {
  opacity: 0.9;
}

.url-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-sub);
}

.btn-open-preview {
  color: #d4af37;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-open-preview:hover {
  text-decoration: underline;
}

/* Guide Box in Modal */
.guide-box {
  margin-top: 20px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.guide-box h4 {
  color: #d4af37;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.guide-box ol {
  margin-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-sub);
  font-size: 0.85rem;
}

footer a {
  color: #d4af37;
  text-decoration: none;
}

/* Device Performance Optimizations */
@media (max-width: 768px) {
  .aurora {
    filter: blur(40px);
    opacity: 0.14;
  }
  .stat-card, .feature-box, .modal-card {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora, .pulse-dot-live {
    animation: none;
  }
}
