/* =====================================================
   Adopt Me Values — Roblox trading platform UI
   ===================================================== */

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

:root {
  /* Surfaces — deep navy like Roblox dark UI */
  --bg: #0c1018;
  --panel: #141b28;
  --panel-2: #1a2436;
  --panel-elevated: #1f2d42;
  --grid: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.08);
  --card-bg: var(--panel);

  /* Text */
  --text: #f0f4fc;
  --muted: #94a3b8;

  /* Brand — Roblox blue + Adopt Me coral accent */
  --primary: #ff6b9d;
  --primary-hover: #ff85b0;
  --accent: #00a2ff;
  --accent-soft: #38bdf8;
  --roblox-blue: #00a2ff;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Shape & depth — no neon glow */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 16px 40px rgba(0, 0, 0, 0.4);
  --glow-primary: none;
  --glow-accent: none;

  --transition-fast: 140ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 280ms ease;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(0, 162, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(255, 107, 157, 0.06), transparent 45%);
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: none;
}

body > * {
  position: relative;
  z-index: 1;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: rgba(12, 16, 24, 0.92);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
  gap: 2rem;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition-base);
  letter-spacing: -0.03em;
}

.logo span,
.logo strong {
  color: var(--accent);
  font-weight: 800;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: var(--transition-base);
  position: relative;
  padding: 0.5rem 0.25rem;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--text);
}

nav a:after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--transition-base);
}

nav a:hover:after,
nav a.active:after {
  width: 100%;
}

nav a.active {
  color: var(--text);
  font-weight: 600;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 0 3.5rem;
  margin: 1rem 0 2rem;
  position: relative;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-content {
  z-index: 2;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1.25rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: var(--muted);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 2rem auto 0;
  display: none; /* Hide by default for centered layout */
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-fast);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn:before {
  display: none;
}

.btn:hover {
  background: #0088d6;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #0088d6;
  box-shadow: 0 4px 14px rgba(0, 162, 255, 0.35);
}

.btn-ghost {
  background: var(--panel);
  border: 1px solid var(--border-color);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(0, 162, 255, 0.45);
  background: var(--panel-2);
}

.btn-secondary {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--panel-elevated);
}

/* Main Content */
main {
  padding: 3rem 0;
  min-height: 60vh;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color var(--transition-base);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  margin: 0 0.5rem;
  color: var(--muted);
  opacity: 0.5;
}

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color var(--transition-base);
}

.card:hover {
  border-color: rgba(0, 162, 255, 0.22);
}

.card h2, .card h3 {
  margin-bottom: 1rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.5px;
}

.card p {
  color: var(--muted);
  line-height: 1.7;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

/* Feature Cards */
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: border-color var(--transition-base), background var(--transition-base);
  position: relative;
  text-align: center;
}

.feature-card:before {
  display: none;
}

.feature-card:hover {
  border-color: rgba(0, 162, 255, 0.25);
  background: var(--panel-2);
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  color: var(--accent);
  display: block;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.feature-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-link {
  color: var(--accent-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition-base), gap var(--transition-base);
  justify-content: center;
}

.feature-link:hover {
  color: var(--accent);
  gap: 0.65rem;
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Item Cards */
.item-card {
  background: var(--panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: border-color var(--transition-base), background var(--transition-base);
  text-decoration: none;
  color: var(--text);
  display: block;
  position: relative;
}

.item-card:before {
  display: none;
}

.item-card:hover {
  border-color: rgba(0, 162, 255, 0.28);
  background: var(--panel-2);
}

.item-card img,
.pet-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  transition: var(--transition-base);
}

.item-detail-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
  margin: 0 auto 1rem;
}

.item-card:hover img {
  transform: scale(1.03);
}

.item-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 600;
}

.item-rarity {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rarity-legendary {
  background: rgba(155, 89, 182, 0.2);
  border-color: #9b59b6;
  color: #c084fc;
}

.rarity-ultra-rare {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #f87171;
}

.rarity-rare {
  background: rgba(52, 152, 219, 0.2);
  border-color: #3498db;
  color: #60a5fa;
}

.rarity-uncommon {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
}

.rarity-common {
  background: rgba(107, 114, 128, 0.2);
  border-color: #6b7280;
  color: #9ca3af;
}

.item-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-soft);
  margin: 0.5rem 0;
}

.item-trend {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.trend-up {
  color: var(--success);
}

.trend-down {
  color: var(--danger);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

thead {
  background: var(--panel-elevated);
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border-color);
}

th, td {
  padding: 1rem;
  text-align: left;
  color: var(--text);
}

th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition-fast);
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.01);
}

tbody tr:hover {
  background: rgba(0, 162, 255, 0.06);
}

tbody tr:last-child {
  border-bottom: none;
}

/* Calculator */
.calculator {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.calc-section {
  margin-bottom: 2rem;
}

.calc-section h2 {
  color: var(--text);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.calc-section label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
  font-size: 0.9rem;
}

.calc-section select,
.calc-section input {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: var(--panel-2);
  color: var(--text);
  transition: var(--transition-base);
}

.calc-section select:focus,
.calc-section input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 162, 255, 0.2);
  background: var(--bg);
}

.calc-result {
  background: var(--panel);
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 1.5rem;
  animation: scaleIn 0.3s ease-out;
}

.calc-result h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: 700;
}

.result-fair {
  color: var(--success);
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.08);
}

.result-over {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.08);
}

.result-under {
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.08);
}

/* FAQ */
.faq-item {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition-base);
}

.faq-item:hover {
  border-color: rgba(0, 162, 255, 0.2);
  background: var(--panel-2);
}

.faq-question {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.faq-answer {
  color: var(--muted);
  line-height: 1.7;
}

/* Forms */
form {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--panel-2);
  color: var(--text);
  transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 162, 255, 0.2);
  background: var(--bg);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

button[type="submit"] {
  background: var(--accent);
  color: #fff;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition-base);
}

button[type="submit"]:hover {
  background: #0088d6;
}

/* Footer */
footer {
  background: var(--panel);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition-base);
  position: relative;
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: var(--accent-soft);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition-base);
}

.footer-bottom a:hover {
  color: var(--accent-soft);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.hidden {
  display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel);
    padding: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  nav ul.active {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .grid {
    grid-template-columns: 1fr;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  /* Live feed on mobile goes full width below content */
  div[style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 0.85rem;
  }

  th, td {
    padding: 0.5rem;
  }
  
  .command-palette-inner {
    margin: 0 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 1.75rem;
    letter-spacing: -1px;
  }

  main {
    padding: 2rem 0;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 162, 255, 0.35);
}

::selection {
  background: rgba(0, 162, 255, 0.35);
  color: var(--text);
}

a {
  color: var(--accent-soft);
  transition: color var(--transition-base);
}

a:hover {
  color: var(--accent);
}

/* =====================================================
   ANIMATIONS & EFFECTS
   ===================================================== */

/* Keyframe Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.8), 0 0 30px rgba(236, 72, 153, 0.6);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 1000px;
  }
}

/* Motion — subtle only (no infinite pulses / page-load spam) */
main,
.card,
.item-card,
.faq-item,
tbody tr,
footer,
.breadcrumb,
body {
  animation: none;
}

.logo {
  display: inline-block;
}

.logo:hover {
  color: var(--accent-soft);
  animation: none;
}

.item-value,
.trend-up,
.trend-down {
  animation: none;
}

nav a:hover {
  transform: none;
}

.calc-result {
  animation: none;
}

.result-fair,
.result-over,
.result-under {
  animation: none;
}

input:focus,
textarea:focus,
select:focus {
  animation: none;
}

.hero:before {
  display: none;
}

/* Skeleton Loading Animation */
.skeleton {
  background: linear-gradient(90deg, var(--card-bg) 0%, var(--border-color) 50%, var(--card-bg) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

/* Floating Elements */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Hover Glow Effect */
.glow-on-hover:hover {
  animation: glow 1.5s ease-in-out infinite;
}

/* Stagger Animation Utility Classes */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Fade In Animation Class */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Slide In Animation Classes */
.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* Scale In Animation Class */
.scale-in {
  animation: scaleIn 0.5s ease-out;
}

/* Pulse Animation Class */
.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

/* Bounce Animation Class */
.bounce-animation {
  animation: bounce 2s ease-in-out infinite;
}

/* Gradient Text Animation */
.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-soft), var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient 3s linear infinite;
}

/* Shimmer Effect for Loading */
.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect:after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 2s infinite;
}

/* Ripple Effect on Click */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple:active:after {
  width: 300px;
  height: 300px;
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Page Transitions */
@keyframes pageLoad {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  animation: none;
}

/* Hover Lift Effect */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Rotate on Hover */
.rotate-on-hover {
  transition: transform 0.3s ease;
}

.rotate-on-hover:hover {
  transform: rotate(5deg);
}

/* Zoom on Hover */
.zoom-on-hover {
  transition: transform 0.3s ease;
  overflow: hidden;
}

.zoom-on-hover:hover {
  transform: scale(1.1);
}

/* Print Styles */
@media print {
  header, footer, nav, .seo-nav {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  /* Disable animations for print */
  *, *:before, *:after {
    animation: none !important;
    transition: none !important;
  }
}

/* =====================================================
   LIVE TRADING FEED
   ===================================================== */

.live-feed {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-height: 600px;
  overflow-y: auto;
}

.live-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.live-feed-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 500;
}

.live-indicator:before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: none;
}

.trade-item {
  background: var(--panel-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.trade-item:hover {
  border-color: rgba(0, 162, 255, 0.22);
  background: var(--panel);
}

.trade-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.trade-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trade-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.trade-username {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.trade-time {
  font-size: 0.75rem;
  color: var(--muted);
}

.trade-items {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
}

.trade-badge {
  background: rgba(0, 162, 255, 0.12);
  border: 1px solid rgba(0, 162, 255, 0.28);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-soft);
}

.trade-badge.neon {
  background: rgba(255, 107, 157, 0.12);
  border-color: rgba(255, 107, 157, 0.3);
  color: var(--primary);
}

.trade-badge.mega {
  background: rgba(36, 210, 146, 0.15);
  border-color: rgba(36, 210, 146, 0.3);
  color: var(--success);
}

.trade-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.trade-btn {
  flex: 1;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.trade-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(0, 162, 255, 0.08);
}

/* =====================================================
   COMMAND PALETTE (Ctrl+K)
   ===================================================== */

.command-palette {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  z-index: 9999;
}

.command-palette.active {
  display: flex;
}

.command-palette-inner {
  width: 100%;
  max-width: 600px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: scaleIn 0.2s ease-out;
}

.command-input {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.1rem;
  outline: none;
}

.command-input::placeholder {
  color: var(--muted);
}

.command-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
}

.command-item {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.command-item:hover {
  background: rgba(0, 162, 255, 0.1);
}

.command-item-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.command-item-text {
  flex: 1;
  color: var(--text);
  font-size: 0.95rem;
}

.command-item-kbd {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: monospace;
}

/* =====================================================
   RARITY BADGES
   ===================================================== */

.rarity-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid;
}

.rarity-legendary {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.35);
  color: #c4b5fd;
}

.rarity-ultra-rare {
  background: rgba(255, 107, 157, 0.12);
  border-color: rgba(255, 107, 157, 0.35);
  color: #fda4c8;
}

.rarity-rare {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.rarity-uncommon {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.rarity-common {
  background: rgba(156, 163, 175, 0.15);
  border-color: rgba(156, 163, 175, 0.4);
  color: #9ca3af;
}

/* =====================================================
   SCROLL REVEAL
   ===================================================== */

.scroll-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.scroll-reveal:nth-child(1) { transition-delay: 0ms; }
.scroll-reveal:nth-child(2) { transition-delay: 60ms; }
.scroll-reveal:nth-child(3) { transition-delay: 120ms; }
.scroll-reveal:nth-child(4) { transition-delay: 180ms; }
.scroll-reveal:nth-child(5) { transition-delay: 240ms; }
.scroll-reveal:nth-child(6) { transition-delay: 300ms; }

/* =====================================================
   FOCUS VISIBLE
   ===================================================== */

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
.btn:focus-visible {
  outline-offset: 4px;
}

/* =====================================================
   CONTENT HUB — Blog, Guides, Legal
   ===================================================== */

.content-page {
  padding-bottom: 3rem;
}

.prose-article,
.legal-document {
  max-width: 820px;
  margin: 2rem auto;
}

.prose-article p,
.legal-document p,
.content-section p {
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.prose-article h2,
.content-section h2,
.legal-document h2 {
  color: var(--text);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.prose-article h3,
.legal-document h3 {
  color: var(--text);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.75rem;
}

.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-lead {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 65ch;
}

.article-intro {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.blog-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-soft);
  margin-bottom: 0.5rem;
}

.blog-hero {
  text-align: center;
  margin: 2rem 0 3rem;
}

.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.article-card:hover {
  border-color: rgba(0, 162, 255, 0.28);
  background: var(--panel-2);
}

.article-card h2 {
  font-size: 1.15rem;
  margin: 0.5rem 0;
  border: none;
  padding: 0;
}

.article-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.article-card h2 a:hover {
  color: var(--accent);
}

.article-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.75rem 0;
}

.read-more {
  color: var(--accent-soft);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.read-more:hover {
  color: var(--accent);
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.blog-sidebar ul,
.trending-list,
.resource-links {
  list-style: none;
  padding: 0;
}

.blog-sidebar li,
.trending-list li,
.resource-links li {
  margin-bottom: 0.5rem;
}

.blog-sidebar a,
.trending-list a,
.resource-links a {
  color: var(--muted);
  text-decoration: none;
}

.blog-sidebar a:hover,
.trending-list a:hover {
  color: var(--accent-soft);
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-tag {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--border-color);
  color: var(--muted);
}

.featured-card h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.related-articles ul {
  list-style: none;
  padding: 0;
}

.related-articles li {
  margin-bottom: 0.5rem;
}

.related-articles a {
  color: var(--accent-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.guide-hub .resource-links li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* Legal & Security */
.legal-document {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.legal-toc {
  background: var(--panel-2);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.legal-toc ul {
  list-style: none;
  padding: 0;
  columns: 2;
  gap: 1rem;
}

.legal-toc a {
  color: var(--accent-soft);
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  padding: 0.25rem 0;
}

.legal-toc a:hover {
  color: var(--accent);
}

.legal-notice {
  background: rgba(255, 204, 102, 0.08);
  border-left: 3px solid var(--warning);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.security-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.security-card h3 {
  color: var(--accent-soft);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.trust-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.trust-badge {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(36, 210, 146, 0.12);
  border: 1px solid rgba(36, 210, 146, 0.35);
  color: var(--success);
}

@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .legal-toc ul {
    columns: 1;
  }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =====================================================
   LEGACY INLINE PANELS (homepage sections)
   ===================================================== */

.card div[style*="rgba(139, 92, 246"],
.card div[style*="rgba(125, 92, 255"],
.card div[style*="rgba(236, 72, 153"],
.card div[style*="rgba(245, 158, 11"] {
  background: var(--panel-2) !important;
  border-color: var(--border-color) !important;
}

.card div[style*="rgba(16, 185, 129"] {
  background: rgba(34, 197, 94, 0.08) !important;
  border-color: rgba(34, 197, 94, 0.22) !important;
}

.card h3[style*="color: var(--primary)"],
.card h4[style*="color: var(--primary)"] {
  color: var(--accent-soft) !important;
}

.card h3[style*="color: var(--accent)"],
.card h4[style*="color: var(--accent)"] {
  color: var(--accent) !important;
}

.card strong[style*="color: var(--primary)"] {
  color: var(--primary) !important;
}

/* Section titles with emoji — calmer typography */
.card > h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1, h2, h3, h4 {
  font-family: inherit;
}

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

.freshness-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-soft);
  background: rgba(0, 162, 255, 0.12);
  border: 1px solid rgba(0, 162, 255, 0.28);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 auto 1.5rem;
}

.sitemap-links {
  list-style: none;
  padding: 0;
  columns: 2;
  gap: 2rem;
}

.sitemap-links li {
  margin-bottom: 0.5rem;
}

.sitemap-links a {
  color: var(--accent-soft);
  text-decoration: none;
}

.sitemap-links a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .sitemap-links {
    columns: 1;
  }
}

/* =====================================================
   HOMEPAGE — centered editorial layout
   ===================================================== */

.page-home main .container > section,
.page-home main .container .card,
.page-home main .container article.card,
.page-home main .container [style*="grid-template-columns: 2fr"] > div:first-child {
  text-align: center;
}

.page-home main .container .card > h2,
.page-home main .container .card > h3,
.page-home main .container article.card > h2,
.page-home main .container article.card > h3,
.page-home main .container article.card > h4,
.page-home main .container .card > p,
.page-home main .container article.card > p {
  text-align: center;
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.page-home main .container .grid.grid-2 > .card,
.page-home main .container .grid.grid-2 > article.card,
.page-home main .container .card .grid.grid-2 > .card,
.page-home main .container .card .grid.grid-2 > article,
.page-home main .container article.card .grid.grid-2 > div,
.page-home main .container article.card .grid.grid-3 > div,
.page-home main .container .card .grid.grid-3 > div {
  text-align: center;
}

.page-home main .container .card ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem auto 0;
  max-width: 26rem;
  text-align: center;
}

.page-home main .container .card ul li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.page-home .faq-item {
  text-align: center;
}

.page-home .faq-question,
.page-home .faq-answer {
  text-align: center;
}

.page-home .article-card {
  text-align: center;
}

.page-home .article-card h3,
.page-home .article-card p {
  text-align: center;
}

.page-home main .container .card .btn,
.page-home main .container article.card .btn {
  display: inline-flex;
}

.page-home main .container article.card .grid.grid-2,
.page-home main .container article.card .grid.grid-3 {
  text-align: center;
}

/* Item cards stay visually centered (already text-align: center on .item-card) */
.page-home .grid .item-card {
  text-align: center;
}

/* Sidebar feed — keep readable left alignment */
.page-home aside,
.page-home aside .live-feed,
.page-home aside .trade-item {
  text-align: left;
}
