/* ================================================================
   KROSMOZ CARD — DARK GAMING THEME
   Inspired by Dofus/Wakfu UI · Deep darks · Gold accents
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Jost:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* -------- CSS VARIABLES -------- */

:root {
 /* Backgrounds */
 --bg-deepest:    #07070f;
 --bg-dark:       #0b0b18;
 --bg-card:       #10101f;
 --bg-elevated:   #16162a;
 --bg-hover:      #1c1c35;
 --bg-input:      #121220;

 /* Gold (Primary) */
 --gold:          #c9a84c;
 --gold-light:    #e8d48b;
 --gold-bright:   #f0d264;
 --gold-dark:     #8a7233;
 --gold-glow:     rgba(201, 168, 76, 0.25);
 --gold-subtle:   rgba(201, 168, 76, 0.08);

 /* Accent */
 --accent:        #6c5ce7;
 --accent-light:  #a29bfe;

 /* Text */
 --text-primary:  #e8e6e3;
 --text-secondary:#9896a3;
 --text-muted:    #5e5c6b;
 --text-gold:     #d4b55a;

 /* Rarity Colors */
 --rarity-C:      #95a5a6;
 --rarity-U:      #2ecc71;
 --rarity-R:      #3498db;
 --rarity-SR:     #9b59b6;
 --rarity-HR:     #e74c3c;
 --rarity-UR:     #f1c40f;
 --rarity-S:      #ecf0f1;
 --rarity-SSR:    #ffcc00;

 /* Layout */
 --max-width:     1200px;
 --radius:        12px;
 --radius-sm:     8px;
 --radius-lg:     20px;

 /* Transitions */
 --ease:          cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------- RESET & BASE -------- */

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

html {
 scroll-behavior: smooth;
 -webkit-font-smoothing: antialiased;
}

body {
 font-family: 'Jost', sans-serif;
 font-weight: 400;
 color: var(--text-primary);
 background: var(--bg-deepest);
 line-height: 1.6;
 overflow-x: hidden;
 min-height: 100vh;
}

a {
 color: var(--gold);
 text-decoration: none;
 transition: color 0.2s var(--ease);
}
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

/* -------- AMBIENT BACKGROUND -------- */

body::before {
 content: '';
 position: fixed;
 top: 0; left: 0;
 width: 100%; height: 100%;
 background:
  radial-gradient(ellipse 80% 50% at 20% 20%, rgba(108, 92, 231, 0.06), transparent),
  radial-gradient(ellipse 60% 40% at 80% 80%, rgba(201, 168, 76, 0.04), transparent),
  radial-gradient(ellipse 50% 50% at 50% 0%, rgba(201, 168, 76, 0.03), transparent);
 pointer-events: none;
 z-index: 0;
}

/* Noise overlay */
body::after {
 content: '';
 position: fixed;
 top: 0; left: 0;
 width: 100%; height: 100%;
 opacity: 0.015;
 background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
 pointer-events: none;
 z-index: 0;
}

/* -------- LAYOUT -------- */

.container {
 max-width: var(--max-width);
 margin: 0 auto;
 padding: 0 24px;
 position: relative;
 z-index: 1;
}

.page {
 min-height: 100vh;
 padding-top: 80px;
}

/* -------- NAVBAR -------- */

.navbar {
 position: fixed;
 top: 0; left: 0; right: 0;
 z-index: 100;
 background: rgba(7, 7, 15, 0.85);
 backdrop-filter: blur(20px);
 border-bottom: 1px solid rgba(201, 168, 76, 0.1);
 transition: all 0.3s var(--ease);
}

.navbar.scrolled {
 background: rgba(7, 7, 15, 0.95);
 border-bottom-color: rgba(201, 168, 76, 0.2);
}

.navbar-inner {
 max-width: var(--max-width);
 margin: 0 auto;
 padding: 0 24px;
 display: flex;
 align-items: center;
 justify-content: space-between;
 height: 64px;
}

.navbar-right {
 display: flex;
 align-items: center;
 gap: 10px;
}

.navbar-brand {
 display: flex;
 align-items: center;
 gap: 10px;
 font-family: 'Cinzel', serif;
 font-weight: 700;
 font-size: 1.2rem;
 color: var(--gold);
 letter-spacing: 1px;
}

.navbar-brand span {
 font-size: 1.5rem;
}

.navbar-links {
 display: flex;
 gap: 32px;
 list-style: none;
}

.navbar-links a {
 font-size: 0.95rem;
 font-weight: 500;
 color: var(--text-secondary);
 position: relative;
 padding: 4px 0;
 transition: color 0.25s var(--ease);
}

.navbar-links a::after {
 content: '';
 position: absolute;
 bottom: -2px; left: 0;
 width: 0; height: 2px;
 background: var(--gold);
 transition: width 0.3s var(--ease);
}

.navbar-links a:hover,
.navbar-links a.active {
 color: var(--gold);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
 width: 100%;
}

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

.discord-mini {
 width: 32px;
 height: 32px;
 border-radius: 10px;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 background: rgba(88, 101, 242, 0.2);
 border: 1px solid rgba(88, 101, 242, 0.4);
 transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.discord-mini:hover {
 transform: translateY(-1px);
 background: rgba(88, 101, 242, 0.35);
}

.discord-mini svg {
 width: 18px;
 height: 18px;
 fill: #cfd4ff;
 display: block;
}

.github-mini {
 width: 32px;
 height: 32px;
 border-radius: 10px;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 background: rgba(255, 255, 255, 0.08);
 border: 1px solid rgba(255, 255, 255, 0.2);
 transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.github-mini:hover {
 transform: translateY(-1px);
 background: rgba(255, 255, 255, 0.15);
}

.github-mini svg {
 width: 17px;
 height: 17px;
 fill: #f5f5f5;
 display: block;
}

/* -------- HERO -------- */

.hero {
 position: relative;
 padding: 120px 0 80px;
 text-align: center;
 overflow: hidden;
}

.hero::before {
 content: '';
 position: absolute;
 top: -50%;
 left: 50%;
 transform: translateX(-50%);
 width: 800px;
 height: 800px;
 background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
 pointer-events: none;
}

.hero-badge {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 padding: 6px 16px;
 background: var(--gold-subtle);
 border: 1px solid rgba(201, 168, 76, 0.2);
 border-radius: 100px;
 font-size: 0.85rem;
 color: var(--gold);
 font-weight: 500;
 margin-bottom: 24px;
 animation: fadeInUp 0.6s var(--ease) both;
}

.hero h1 {
 font-family: 'Cinzel', serif;
 font-size: clamp(2.5rem, 6vw, 4.5rem);
 font-weight: 900;
 line-height: 1.1;
 margin-bottom: 20px;
 animation: fadeInUp 0.6s var(--ease) 0.1s both;
}

.hero h1 .gold { color: var(--gold); }

.hero p {
 font-size: 1.15rem;
 color: var(--text-secondary);
 max-width: 600px;
 margin: 0 auto 40px;
 animation: fadeInUp 0.6s var(--ease) 0.2s both;
}

.hero-buttons {
 display: flex;
 gap: 16px;
 justify-content: center;
 flex-wrap: wrap;
 animation: fadeInUp 0.6s var(--ease) 0.3s both;
}

/* -------- BUTTONS -------- */

.btn {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 padding: 12px 28px;
 border-radius: var(--radius);
 font-family: 'Jost', sans-serif;
 font-size: 0.95rem;
 font-weight: 600;
 border: none;
 cursor: pointer;
 transition: all 0.25s var(--ease);
 text-decoration: none;
}

.btn-gold {
 background: linear-gradient(135deg, var(--gold), var(--gold-dark));
 color: #0b0b18;
 box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-gold:hover {
 transform: translateY(-2px);
 box-shadow: 0 8px 30px rgba(201, 168, 76, 0.35);
 color: #0b0b18;
}

.btn-outline {
 background: transparent;
 color: var(--text-primary);
 border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
 background: rgba(255, 255, 255, 0.05);
 border-color: rgba(255, 255, 255, 0.25);
 color: var(--text-primary);
}

/* -------- STATS BAR -------- */

.stats-bar {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
 gap: 16px;
 padding: 40px 0;
 animation: fadeInUp 0.6s var(--ease) 0.4s both;
}

.stat-item {
 text-align: center;
 padding: 24px 16px;
 background: var(--bg-card);
 border: 1px solid rgba(255, 255, 255, 0.04);
 border-radius: var(--radius);
 transition: all 0.3s var(--ease);
}

.stat-item:hover {
 border-color: var(--gold-glow);
 transform: translateY(-3px);
 box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.stat-value {
 font-family: 'JetBrains Mono', monospace;
 font-size: 1.8rem;
 font-weight: 700;
 color: var(--gold);
 line-height: 1.2;
}

.stat-label {
 font-size: 0.85rem;
 color: var(--text-muted);
 margin-top: 6px;
 text-transform: uppercase;
 letter-spacing: 1px;
}

/* -------- SECTIONS -------- */

.section {
 padding: 80px 0;
}

.section-title {
 font-family: 'Cinzel', serif;
 font-size: 2rem;
 font-weight: 700;
 text-align: center;
 margin-bottom: 12px;
}

.section-subtitle {
 text-align: center;
 color: var(--text-secondary);
 margin-bottom: 48px;
 font-size: 1.05rem;
}

/* -------- FEATURE CARDS -------- */

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

.feature-card {
 padding: 32px;
 background: var(--bg-card);
 border: 1px solid rgba(255, 255, 255, 0.04);
 border-radius: var(--radius-lg);
 transition: all 0.35s var(--ease);
 position: relative;
 overflow: hidden;
}

.feature-card::before {
 content: '';
 position: absolute;
 top: 0; left: 0;
 width: 100%; height: 3px;
 background: linear-gradient(90deg, var(--gold), transparent);
 opacity: 0;
 transition: opacity 0.35s var(--ease);
}

.feature-card:hover {
 border-color: rgba(201, 168, 76, 0.15);
 transform: translateY(-4px);
 box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

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

.feature-icon {
 font-size: 2rem;
 margin-bottom: 16px;
}

.feature-card h3 {
 font-family: 'Cinzel', serif;
 font-size: 1.15rem;
 margin-bottom: 10px;
 color: var(--gold-light);
}

.feature-card p {
 color: var(--text-secondary);
 font-size: 0.95rem;
 line-height: 1.6;
}

/* -------- LEADERBOARD PAGE -------- */

.leaderboard-tabs {
 display: flex;
 gap: 8px;
 flex-wrap: wrap;
 justify-content: center;
 margin-bottom: 32px;
}

.tab-btn {
 padding: 10px 20px;
 background: var(--bg-card);
 border: 1px solid rgba(255, 255, 255, 0.06);
 border-radius: var(--radius);
 color: var(--text-secondary);
 font-family: 'Jost', sans-serif;
 font-size: 0.9rem;
 font-weight: 500;
 cursor: pointer;
 transition: all 0.25s var(--ease);
}

.tab-btn:hover {
 background: var(--bg-elevated);
 border-color: rgba(201, 168, 76, 0.2);
 color: var(--text-primary);
}

.tab-btn.active {
 background: var(--gold-subtle);
 border-color: var(--gold);
 color: var(--gold);
}

/* -------- LEADERBOARD TABLE -------- */

.lb-table {
 width: 100%;
 border-collapse: separate;
 border-spacing: 0 6px;
}

.lb-row {
 background: var(--bg-card);
 border-radius: var(--radius);
 transition: all 0.25s var(--ease);
 cursor: pointer;
}

.lb-row:hover {
 background: var(--bg-hover);
 transform: scale(1.01);
}

.lb-row td {
 padding: 14px 20px;
 vertical-align: middle;
}

.lb-row td:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.lb-row td:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }

.lb-rank {
 font-family: 'JetBrains Mono', monospace;
 font-weight: 700;
 font-size: 1.1rem;
 width: 60px;
 text-align: center;
}

.lb-rank.gold   { color: #ffd700; }
.lb-rank.silver { color: #c0c0c0; }
.lb-rank.bronze { color: #cd7f32; }

.lb-row.top-1 { border: 1px solid rgba(255, 215, 0, 0.2); box-shadow: 0 0 20px rgba(255, 215, 0, 0.05); }
.lb-row.top-2 { border: 1px solid rgba(192, 192, 192, 0.15); }
.lb-row.top-3 { border: 1px solid rgba(205, 127, 50, 0.15); }

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

.lb-avatar {
 width: 40px;
 height: 40px;
 border-radius: 50%;
 border: 2px solid rgba(255, 255, 255, 0.1);
 object-fit: cover;
}

.lb-name {
 font-weight: 600;
 font-size: 1rem;
}

.lb-title {
 font-size: 0.8rem;
 color: var(--text-muted);
}

.lb-value {
 font-family: 'JetBrains Mono', monospace;
 font-weight: 700;
 color: var(--gold);
 font-size: 1.1rem;
 text-align: right;
}

.lb-level {
 font-size: 0.85rem;
 color: var(--text-muted);
 text-align: right;
}

/* -------- PROFILE PAGE -------- */

.profile-header {
 display: flex;
 align-items: center;
 gap: 24px;
 padding: 32px;
 background: var(--bg-card);
 border: 1px solid rgba(255, 255, 255, 0.04);
 border-radius: var(--radius-lg);
 margin-bottom: 24px;
 position: relative;
 overflow: hidden;
}

.profile-header::before {
 content: '';
 position: absolute;
 top: 0; left: 0;
 width: 100%; height: 4px;
 background: linear-gradient(90deg, var(--gold), var(--accent), var(--gold));
}

.profile-avatar {
 width: 96px;
 height: 96px;
 border-radius: 50%;
 border: 3px solid var(--gold);
 box-shadow: 0 0 20px var(--gold-glow);
 flex-shrink: 0;
}

.profile-info h1 {
 font-family: 'Cinzel', serif;
 font-size: 1.8rem;
 font-weight: 700;
}

.profile-meta {
 display: flex;
 gap: 16px;
 flex-wrap: wrap;
 margin-top: 6px;
}

.profile-tag {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 font-size: 0.9rem;
 color: var(--text-secondary);
 padding: 4px 12px;
 background: var(--bg-elevated);
 border-radius: 100px;
}

.profile-tag .tag-gold { color: var(--gold); }

/* XP Bar */
.xp-bar-wrapper {
 margin-top: 16px;
 max-width: 400px;
}

.xp-bar-label {
 display: flex;
 justify-content: space-between;
 font-size: 0.85rem;
 color: var(--text-muted);
 margin-bottom: 6px;
}

.xp-bar-label span:last-child { color: var(--gold); }

.xp-bar {
 height: 8px;
 background: var(--bg-deepest);
 border-radius: 100px;
 overflow: hidden;
}

.xp-bar-fill {
 height: 100%;
 background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-bright));
 border-radius: 100px;
 transition: width 1s var(--ease);
 box-shadow: 0 0 8px var(--gold-glow);
}

/* Profile grid */
.profile-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
 gap: 20px;
 margin-bottom: 24px;
}

.profile-card {
 padding: 24px;
 background: var(--bg-card);
 border: 1px solid rgba(255, 255, 255, 0.04);
 border-radius: var(--radius);
}

.profile-card h2 {
 font-family: 'Cinzel', serif;
 font-size: 1.1rem;
 margin-bottom: 16px;
 color: var(--gold-light);
}

/* Stats rows */
.stat-row {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 10px 0;
 border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.stat-row:last-child { border-bottom: none; }

.stat-row-label {
 color: var(--text-secondary);
 font-size: 0.95rem;
}

.stat-row-value {
 font-family: 'JetBrains Mono', monospace;
 font-weight: 600;
 color: var(--text-primary);
}

/* Set progress */
.set-item {
 margin-bottom: 16px;
}

.set-header {
 display: flex;
 justify-content: space-between;
 margin-bottom: 6px;
}

.set-name {
 font-weight: 500;
 font-size: 0.95rem;
}

.set-count {
 font-family: 'JetBrains Mono', monospace;
 font-size: 0.85rem;
 color: var(--text-muted);
}

.set-bar {
 height: 6px;
 background: var(--bg-deepest);
 border-radius: 100px;
 overflow: hidden;
}

.set-bar-fill {
 height: 100%;
 border-radius: 100px;
 transition: width 1.2s var(--ease);
}

.set-bar-fill.pct-100 { background: linear-gradient(90deg, #2ecc71, #27ae60); box-shadow: 0 0 8px rgba(46, 204, 113, 0.3); }
.set-bar-fill.pct-70  { background: linear-gradient(90deg, var(--gold-dark), var(--gold)); }
.set-bar-fill.pct-50  { background: linear-gradient(90deg, #3498db, #2980b9); }
.set-bar-fill.pct-0   { background: linear-gradient(90deg, #636e72, #95a5a6); }

/* Rarity breakdown */
.rarity-grid {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 8px;
}

.rarity-item {
 text-align: center;
 padding: 12px 8px;
 background: var(--bg-elevated);
 border-radius: var(--radius-sm);
 border: 1px solid rgba(255, 255, 255, 0.03);
}

.rarity-label {
 font-size: 0.75rem;
 color: var(--text-muted);
 text-transform: uppercase;
 letter-spacing: 1px;
}

.rarity-count {
 font-family: 'JetBrains Mono', monospace;
 font-size: 1.2rem;
 font-weight: 700;
 margin-top: 4px;
}

/* -------- FOOTER -------- */

.footer {
 padding: 40px 0;
 text-align: center;
 border-top: 1px solid rgba(255, 255, 255, 0.04);
 margin-top: 60px;
}

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

.footer a { color: var(--gold); }

/* -------- LOADING -------- */

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

/* -------- FORM / CATALOG -------- */

.toolbar {
 display: grid;
 grid-template-columns: 1.8fr repeat(3, minmax(140px, 1fr)) auto;
 gap: 10px;
 margin-bottom: 18px;
}

.input {
 width: 100%;
 background: var(--bg-input);
 color: var(--text-primary);
 border: 1px solid rgba(255, 255, 255, 0.08);
 border-radius: var(--radius-sm);
 padding: 10px 12px;
 font-family: 'Jost', sans-serif;
 font-size: 0.95rem;
}

.input:focus {
 outline: none;
 border-color: rgba(201, 168, 76, 0.45);
 box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.15);
}

.input-select {
 appearance: none;
}

.result-meta {
 font-size: 0.92rem;
 color: var(--text-secondary);
 margin: 8px 0 14px;
}

.notice-strip {
 margin: 0 auto 14px;
 padding: 10px 12px;
 border-radius: 10px;
 border: 1px solid rgba(201, 168, 76, 0.2);
 background: rgba(201, 168, 76, 0.08);
 color: var(--text-secondary);
 font-size: .9rem;
 max-width: 980px;
}

.catalog-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
 gap: 14px;
}

.catalog-card {
 background: var(--bg-card);
 border: 1px solid rgba(255, 255, 255, 0.06);
 border-radius: var(--radius);
 padding: 16px;
 transition: all .25s var(--ease);
}

.catalog-card:hover {
 transform: translateY(-3px);
 border-color: rgba(201, 168, 76, 0.25);
}

.catalog-card h3 {
 font-family: 'Cinzel', serif;
 font-size: 1.03rem;
 margin: 8px 0;
 color: var(--gold-light);
}

.catalog-card p {
 color: var(--text-secondary);
 font-size: .9rem;
 margin: 2px 0;
}

.card-thumb-wrap {
 width: 100%;
 aspect-ratio: 1 / 1;
 border-radius: 10px;
 overflow: hidden;
 margin-bottom: 10px;
 border: 1px solid rgba(255, 255, 255, 0.08);
 background: rgba(255, 255, 255, 0.02);
}

.card-thumb {
 width: 100%;
 height: 100%;
 object-fit: cover;
 display: block;
}

.catalog-card-head {
 display: flex;
 justify-content: space-between;
 gap: 6px;
 flex-wrap: wrap;
}

.chip {
 display: inline-flex;
 align-items: center;
 padding: 4px 9px;
 border-radius: 999px;
 background: var(--bg-elevated);
 color: var(--text-secondary);
 font-size: .78rem;
 border: 1px solid rgba(255, 255, 255, 0.06);
}

.chip-rarity {
 color: var(--gold);
 border-color: rgba(201, 168, 76, 0.25);
 background: rgba(201, 168, 76, 0.12);
}

.price-line {
 margin-top: 8px !important;
 color: var(--gold) !important;
 font-weight: 700;
 font-family: 'JetBrains Mono', monospace;
}

.pagination {
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 10px;
 margin-top: 18px;
}

.pagination-meta {
 color: var(--text-secondary);
 font-size: .9rem;
}

.btn[disabled] {
 opacity: .4;
 cursor: not-allowed;
 pointer-events: none;
}

.stats-inline {
 display: flex;
 gap: 8px;
 flex-wrap: wrap;
 margin: 10px 0 6px;
}

.auth-box {
 background: var(--bg-card);
 border: 1px solid rgba(255, 255, 255, 0.08);
 border-radius: var(--radius);
 padding: 14px 16px;
 margin-bottom: 14px;
}

.auth-inner {
 display: flex;
 justify-content: space-between;
 align-items: center;
 gap: 12px;
}

.auth-inner h3 {
 font-family: 'Cinzel', serif;
 font-size: 1rem;
 color: var(--gold-light);
 margin-bottom: 2px;
}

.auth-inner p {
 color: var(--text-secondary);
 font-size: .9rem;
}

.trade-panel {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 12px;
 margin-bottom: 16px;
}

.trade-col {
 background: var(--bg-card);
 border: 1px solid rgba(255, 255, 255, 0.08);
 border-radius: var(--radius);
 padding: 12px;
}

.trade-col h3 {
 font-family: 'Cinzel', serif;
 font-size: .96rem;
 color: var(--gold-light);
 margin-bottom: 8px;
}

.inline-form {
 display: grid;
 grid-template-columns: 1fr 140px auto;
 gap: 8px;
}

.action-row {
 margin-top: 10px;
 display: flex;
 gap: 8px;
}

.listing-mini {
 display: grid;
 gap: 8px;
 margin-top: 8px;
}

.listing-mini-row {
 display: flex;
 justify-content: space-between;
 gap: 10px;
 align-items: center;
 padding: 8px 10px;
 border-radius: 10px;
 background: var(--bg-elevated);
 border: 1px solid rgba(255, 255, 255, 0.06);
}

.listing-mini-row span {
 color: var(--text-secondary);
 font-size: .9rem;
}

.toast {
 position: fixed;
 right: 16px;
 bottom: 16px;
 background: #1f4028;
 border: 1px solid rgba(109, 242, 149, 0.4);
 color: #ddffe8;
 padding: 10px 12px;
 border-radius: 10px;
 opacity: 0;
 transform: translateY(8px);
 transition: all .2s ease;
 z-index: 9999;
}

.toast.toast-error {
 background: #4a1f26;
 border-color: rgba(255, 128, 148, 0.45);
 color: #ffdfe6;
}

.toast.show {
 opacity: 1;
 transform: translateY(0);
}

.spinner {
 width: 40px;
 height: 40px;
 border: 3px solid rgba(201, 168, 76, 0.15);
 border-top-color: var(--gold);
 border-radius: 50%;
 margin: 0 auto 16px;
 animation: spin 0.8s linear infinite;
}

/* -------- ANIMATIONS -------- */

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

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

.fade-in {
 animation: fadeInUp 0.5s var(--ease) both;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* -------- SCROLLBAR -------- */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deepest); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* -------- RESPONSIVE -------- */

@media (max-width: 768px) {
 .navbar-links { display: none; }
 .nav-toggle { display: block; }

 .navbar-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px; left: 0; right: 0;
  background: rgba(7, 7, 15, 0.98);
  padding: 20px;
  gap: 16px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
 }

 .hero h1 { font-size: 2.2rem; }
 .hero { padding: 80px 0 40px; }
 .stats-bar { grid-template-columns: repeat(2, 1fr); }
 .profile-header { flex-direction: column; text-align: center; }
 .profile-meta { justify-content: center; }
 .profile-grid { grid-template-columns: 1fr; }
 .rarity-grid { grid-template-columns: repeat(4, 1fr); }
 .xp-bar-wrapper { margin-left: auto; margin-right: auto; }
 .toolbar { grid-template-columns: 1fr 1fr; }
 .trade-panel { grid-template-columns: 1fr; }
 .inline-form { grid-template-columns: 1fr; }
 .auth-inner { flex-direction: column; align-items: flex-start; }

 .lb-table, .lb-table tbody, .lb-row, .lb-row td {
  display: block;
  width: 100%;
 }
 .lb-row {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: var(--radius);
 }
 .lb-row td { padding: 4px 0; border-radius: 0 !important; }
 .lb-value, .lb-level { text-align: left; }
}

@media (max-width: 480px) {
 .container { padding: 0 16px; }
 .stats-bar { grid-template-columns: 1fr 1fr; gap: 10px; }
 .hero-buttons { flex-direction: column; align-items: center; }
 .rarity-grid { grid-template-columns: repeat(2, 1fr); }
 .toolbar { grid-template-columns: 1fr; }
}
