/* Riftbound Zone — Custom Styles */
/* Loaded AFTER Elementor + Hello Elementor to win specificity */

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

:root {
  --bg: #0a0c14;
  --bg2: #0f1220;
  --bg3: #141828;
  --card: #181d2e;
  --card2: #1e2438;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --gold: #c8a45a;
  --gold2: #e8c47a;
  --gold-glow: rgba(200,164,90,0.25);
  --teal: #3ecfcf;
  --teal2: #5ee8e8;
  --teal-glow: rgba(62,207,207,0.2);
  --red: #e05555;
  --green: #4ecb80;
  --text: #d8dae8;
  --text2: #8890aa;
  --text3: #545c74;
  --white: #f0f2ff;
  --nav-h: 80px;
}

/* Override Elementor kit variables */
.elementor-kit-7,
[class*="elementor-kit-"] {
  --e-global-color-primary: #c8a45a !important;
  --e-global-color-secondary: #3ecfcf !important;
  --e-global-color-text: #d8dae8 !important;
  --e-global-typography-primary-font-family: 'Cinzel', serif !important;
  --e-global-typography-secondary-font-family: 'Barlow Condensed', sans-serif !important;
  --e-global-typography-text-font-family: 'Barlow', sans-serif !important;
}

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

body {
  font-family: 'Barlow', sans-serif !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Remove Elementor default padding on canvas */
.elementor-page .page-content,
.elementor-location-single,
body.elementor-template-canvas {
  padding: 0 !important;
  margin: 0 !important;
}

/* ── NAV ── */
#rbz-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: var(--nav-h);
  background: rgba(10,12,20,0.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.6rem;
  letter-spacing: 0.08em; color: var(--gold);
  text-shadow: 0 0 24px var(--gold-glow); cursor: pointer;
}
.nav-logo span { color: var(--teal); }
.nav-links { display: flex; gap: 0.25rem; list-style: none; }
.nav-links li a {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text2); text-decoration: none; padding: 0.5rem 1rem;
  border-radius: 4px; transition: all 0.2s; cursor: pointer;
}
.nav-links li a:hover, .nav-links li a.active { color: var(--teal); background: var(--teal-glow); }
.nav-actions { display: flex; gap: 0.6rem; }
.btn-nav {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.55rem 1.25rem; border-radius: 4px; border: none; cursor: pointer; transition: all 0.2s;
}
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border2); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-primary { background: var(--gold); color: #0a0c14; }
.btn-primary:hover { background: var(--gold2); box-shadow: 0 0 16px var(--gold-glow); }

.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; flex-direction: column; gap: 5px; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text2); transition: all 0.3s; }

/* Announcement banner */
#rbz-announcement {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 90;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold2) 100%);
  text-align: center;
  padding: 0.5rem 1rem;
}
#rbz-announcement a {
  color: var(--bg);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.03em;
}
#rbz-announcement a:hover { text-decoration: underline; }

/* Page content top padding for fixed nav */
#rbz-content {
  padding-top: var(--nav-h) !important;
}
/* Global sidebar layout (logged-in users) */
.rbz-has-sidebar { display: flex; min-height: calc(100vh - var(--nav-h)); }
.rbz-global-sidebar { width: 260px; flex-shrink: 0; background: var(--bg2); border-right: 1px solid var(--border); padding: 1.5rem 0; position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto; }
.rbz-main-content { flex: 1; min-width: 0; overflow-x: hidden; }
/* Home and Torneo landing heroes handle their own padding */
body.page-id-5 #rbz-content,
body.page-id-14 #rbz-content {
  padding-top: 0 !important;
}
.hero {
  padding-top: calc(var(--nav-h) + 5rem) !important;
}
/* Extra space on home for announcement banner */
body.page-id-5 .hero {
  padding-top: calc(var(--nav-h) + 2.5rem + 5rem) !important;
}

/* ── HERO ── */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center; padding: 5rem 2rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(62,207,207,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(200,164,90,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(62,207,207,0.04) 0%, transparent 60%);
}
.hero-cards { position: absolute; inset: 0; pointer-events: none; }
.hex-card {
  position: absolute; width: 80px; height: 92px;
  background: linear-gradient(135deg, var(--card2), var(--card));
  border: 1px solid var(--border2); border-radius: 4px; opacity: 0.35;
}
.hex-card:nth-child(1){top:15%;left:8%;animation:float1 8s ease-in-out infinite}
.hex-card:nth-child(2){top:60%;left:5%;width:55px;height:75px;animation:float2 10s ease-in-out infinite}
.hex-card:nth-child(3){top:20%;right:10%;width:65px;height:88px;animation:float3 9s ease-in-out infinite}
.hex-card:nth-child(4){top:65%;right:8%;width:70px;height:90px;animation:float1 11s ease-in-out infinite 2s}
.hex-card:nth-child(5){top:40%;left:15%;width:45px;height:62px;animation:float2 7s ease-in-out infinite 1s}
.hex-card:nth-child(6){top:35%;right:18%;width:50px;height:68px;animation:float3 9s ease-in-out infinite 3s}
@keyframes float1{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-20px) rotate(2deg)}}
@keyframes float2{0%,100%{transform:translateY(0) rotate(5deg)}50%{transform:translateY(-14px) rotate(-2deg)}}
@keyframes float3{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-18px) rotate(4deg)}}

.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
  font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); border: 1px solid rgba(62,207,207,0.3);
  padding: 0.4rem 1.1rem; border-radius: 2px; margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}
.hero-title {
  font-family: 'Cinzel', serif; font-weight: 900;
  font-size: clamp(4rem,10vw,7.5rem); line-height: 0.92;
  color: var(--white); margin-bottom: 0.4rem;
  animation: fadeUp 0.6s ease 0.1s both;
}
.hero-title .accent  { color: var(--gold); text-shadow: 0 0 50px var(--gold-glow); }
.hero-title .accent2 { color: var(--teal); text-shadow: 0 0 50px var(--teal-glow); }
.hero-sub {
  font-size: 1.25rem; font-weight: 300; color: var(--text2); line-height: 1.65;
  margin: 2rem auto 3rem; max-width: 560px;
  animation: fadeUp 0.6s ease 0.2s both;
}
.hero-cta { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; animation: fadeUp 0.6s ease 0.3s both; }
.btn-lg {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 1.05rem 2.4rem; border-radius: 4px; border: none; cursor: pointer; transition: all 0.25s;
}
.btn-gold { background: var(--gold); color: #0a0c14; box-shadow: 0 4px 24px rgba(200,164,90,0.3); }
.btn-gold:hover { background: var(--gold2); box-shadow: 0 4px 36px rgba(200,164,90,0.55); transform: translateY(-2px); }
.btn-outline-teal { background: transparent; color: var(--teal); border: 1px solid rgba(62,207,207,0.45); }
.btn-outline-teal:hover { background: var(--teal-glow); border-color: var(--teal); }
.hero-divider { margin: 5rem auto 0; width: 80px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: fadeUp 0.6s ease 0.4s both; }

/* STATS BAR */
.stats-bar { display: flex; justify-content: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); }
.stat-item { flex: 1; max-width: 200px; padding: 1.5rem 1rem; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.9rem; color: var(--gold); }
.stat-label { font-family: 'Barlow Condensed', sans-serif; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text3); margin-top: 0.2rem; }

/* SECTIONS */
.section { padding: 5rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.section-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.5rem; color: var(--white); }
.section-sub { font-family: 'Barlow Condensed', sans-serif; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text3); }
.section-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border2), transparent); }

/* BADGES */
.badge { display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 2px; }
.badge-vendo  { background: rgba(78,203,128,0.15); color: var(--green); border: 1px solid rgba(78,203,128,0.3); }
.badge-cerco  { background: rgba(62,207,207,0.1);  color: var(--teal);  border: 1px solid rgba(62,207,207,0.25); }
.badge-scambio{ background: rgba(200,164,90,0.1);  color: var(--gold);  border: 1px solid rgba(200,164,90,0.25); }

/* LISTING CARD */
.listing-card {
  background: var(--card); cursor: pointer; transition: all 0.2s;
  position: relative; overflow: hidden; display: flex; gap: 0;
}
.listing-card:hover { background: var(--card2); }
.listing-photo {
  width: 160px; flex-shrink: 0;
  background: var(--bg3); border-right: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.listing-photo .lp-default, .listing-photo .lp-hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s; }
.listing-photo .lp-hover { opacity: 0; }
.listing-card:hover .listing-photo .lp-hover { opacity: 1; }
.listing-card:hover .listing-photo .lp-default { opacity: 0; }
.listing-photo-placeholder {
  width: 100%; height: 100%; min-height: 110px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; opacity: 0.3;
}
.listing-body { flex: 1; padding: 1rem 1.25rem; border-left: 3px solid transparent; transition: border-color 0.2s; position: relative; }
.listing-card:hover .listing-body { border-left-color: var(--gold); }
.listing-title { font-weight: 600; font-size: 0.95rem; color: var(--white); margin: 0.4rem 0 0.3rem; }
.listing-meta { font-size: 0.8rem; color: var(--text2); display: flex; gap: 1rem; flex-wrap: wrap; }
.listing-price { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--gold); }
.listing-user { font-size: 0.74rem; color: var(--text3); margin-top: 0.5rem; }
.listing-lang { font-size: 0.68rem; background: var(--card2); color: var(--text2); padding: 0.1rem 0.4rem; border-radius: 2px; letter-spacing: 0.05em; }
.listing-preview { margin-top: 0.5rem; opacity: 0.85; }
.listing-desc { font-size: 0.78rem; color: var(--text2); margin-top: 0.4rem; line-height: 1.4; }
.listing-thumbs { display: flex; gap: 0.3rem; margin-top: 0.5rem; }
.listing-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 3px; border: 1px solid var(--border); cursor: pointer; transition: transform 0.15s; }
.listing-thumb:hover { transform: scale(1.15); }
.listing-body-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.25rem; }
.listing-fav { display: flex; align-items: center; gap: 0.3rem; cursor: pointer; padding: 0.2rem 0.4rem; border-radius: 4px; transition: all 0.15s; user-select: none; }
.listing-fav:hover { background: rgba(224,85,85,0.1); }
.listing-fav-icon { font-size: 1.1rem; color: var(--text3); transition: color 0.15s; }
.listing-fav[data-fav="1"] .listing-fav-icon { color: #e05555; }
.listing-fav-count { font-family: 'Barlow Condensed', sans-serif; font-size: 0.8rem; font-weight: 600; color: var(--text3); }
.mercatino-actions { display: flex; align-items: center; margin-bottom: 1.5rem; }
#mercatino-pagination { display: flex; justify-content: center; gap: 0.4rem; padding: 2rem 0; }

/* TOURNAMENT CARD */
.torneo-card { background: var(--card); cursor: pointer; transition: all 0.2s; overflow: hidden; }
.torneo-card:hover { background: var(--card2); }
.torneo-header { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.torneo-name { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1rem; color: var(--white); }
.torneo-format { font-family: 'Barlow Condensed', sans-serif; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-top: 0.25rem; }
.torneo-status { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 2px; white-space: nowrap; }
.status-open  { background: rgba(78,203,128,0.15); color: var(--green); border: 1px solid rgba(78,203,128,0.3); }
.status-closed{ background: rgba(224,85,85,0.1);   color: var(--red);   border: 1px solid rgba(224,85,85,0.25); }
.torneo-body  { padding: 1rem 1.5rem; }
.torneo-info  { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.info-label   { color: var(--text3); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; font-family: 'Barlow Condensed', sans-serif; }
.info-value   { color: var(--text); margin-top: 0.15rem; font-size: 0.9rem; }
.torneo-footer{ padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 0.75rem; }

/* BUTTONS */
.btn-sm { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.5rem 1rem; border-radius: 3px; border: none; cursor: pointer; transition: all 0.2s; }
.btn-teal   { background: var(--teal); color: #0a0c14; }
.btn-teal:hover { background: var(--teal2); }
.btn-subtle { background: var(--bg3); color: var(--text2); border: 1px solid var(--border2); }
.btn-subtle:hover { border-color: var(--teal); color: var(--teal); }

/* PAGE HERO */
.page-hero { padding: 3rem 2rem 2rem; max-width: 1100px; margin: 0 auto; }
.page-eyebrow { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.5rem; }
.page-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 2.4rem; color: var(--white); }

/* FILTERS */
.filters-bar { max-width: 1100px; margin: 0 auto; padding: 0 2rem 1.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.filter-btn { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.45rem 1rem; border-radius: 3px; cursor: pointer; border: 1px solid var(--border2); background: transparent; color: var(--text2); transition: all 0.2s; }
.filter-btn:hover, .filter-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(200,164,90,0.08); }
.search-box { margin-left: auto; display: flex; align-items: center; border: 1px solid var(--border2); border-radius: 4px; overflow: hidden; background: var(--bg2); }
.search-box input { background: transparent; border: none; outline: none; font-family: 'Barlow', sans-serif; font-size: 0.85rem; color: var(--text); padding: 0.45rem 0.8rem; width: 200px; }
.search-box input::placeholder { color: var(--text3); }

/* MERCATINO GRID */
.mercatino-grid { max-width: 1100px; margin: 0 auto; padding: 0 2rem 4rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); }

/* FAB */
.fab { position: fixed; bottom: 2rem; right: 2rem; z-index: 50; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.8rem 1.6rem; border-radius: 4px; border: none; background: var(--gold); color: #0a0c14; cursor: pointer; box-shadow: 0 4px 24px rgba(200,164,90,0.4); transition: all 0.2s; }
.fab:hover { background: var(--gold2); box-shadow: 0 4px 32px rgba(200,164,90,0.6); transform: translateY(-2px); }

/* TORNEI GRID */
.tornei-grid { max-width: 800px; margin: 0 auto; padding: 0 2rem 4rem; display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); }

/* TORNEO DETAIL */
.torneo-detail { max-width: 860px; margin: 0 auto; padding: 3rem 2rem 5rem; }
.detail-header { padding-bottom: 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.detail-title  { font-family: 'Cinzel', serif; font-weight: 900; font-size: 2.2rem; color: var(--white); line-height: 1.1; }
.detail-meta   { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1.5rem; }
.meta-label    { font-family: 'Barlow Condensed', sans-serif; font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text3); }
.meta-value    { font-size: 0.95rem; color: var(--text); margin-top: 0.2rem; }
.detail-body   { line-height: 1.8; color: var(--text2); font-size: 0.9rem; }
.detail-body h3{ font-family: 'Cinzel', serif; font-size: 1rem; color: var(--white); margin: 2rem 0 0.75rem; }
.detail-body p { margin-bottom: 1rem; }
.detail-actions{ margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-melee { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.8rem 1.75rem; border-radius: 4px; border: none; cursor: pointer; background: var(--teal); color: #0a0c14; transition: all 0.2s; }
.btn-melee:hover { background: var(--teal2); box-shadow: 0 4px 20px var(--teal-glow); }

/* COMMUNITY */
.community-hero { text-align: center; padding: 5rem 2rem 3rem; }
.community-hero-title { font-family: 'Cinzel', serif; font-weight: 900; font-size: clamp(2rem,5vw,3.5rem); color: var(--white); margin-bottom: 0.75rem; }
.community-hero-sub { color: var(--text2); font-size: 1rem; max-width: 540px; margin: 0 auto 3.5rem; line-height: 1.7; }
.social-grid { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; padding: 0 2rem; max-width: 900px; margin: 0 auto; }
.social-card { flex: 1; min-width: 220px; max-width: 260px; background: var(--card); padding: 2.5rem 1.75rem; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; transition: all 0.3s; text-align: center; }
.social-card:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,0.5); }
.social-card:hover.whatsapp { border-color: #25D366; }
.social-card:hover.discord  { border-color: #5865F2; }
.social-card:hover.instagram{ border-color: #E1306C; }
.social-icon-wrap { width: 60px; height: 60px; border-radius: 14px; margin: 0 auto 1.2rem; display: flex; align-items: center; justify-content: center; }
.social-icon-wrap.whatsapp  { background: rgba(37,211,102,0.12); border: 1px solid rgba(37,211,102,0.25); }
.social-icon-wrap.discord   { background: rgba(88,101,242,0.12); border: 1px solid rgba(88,101,242,0.25); }
.social-icon-wrap.instagram { background: rgba(225,48,108,0.1);  border: 1px solid rgba(225,48,108,0.2); }
.social-icon-wrap svg { width: 28px; height: 28px; }
.social-name { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.1rem; color: var(--white); margin-bottom: 0.5rem; }
.social-desc { font-size: 0.8rem; color: var(--text2); line-height: 1.5; margin-bottom: 1.4rem; }
.social-btn-wa { background: rgba(37,211,102,0.15); color: #25D366; border: 1px solid rgba(37,211,102,0.35); }
.social-btn-wa:hover { background: rgba(37,211,102,0.25); }
.social-btn-dc { background: rgba(88,101,242,0.15); color: #7289da; border: 1px solid rgba(88,101,242,0.35); }
.social-btn-dc:hover { background: rgba(88,101,242,0.25); }
.social-btn-ig { background: rgba(225,48,108,0.1); color: #E1306C; border: 1px solid rgba(225,48,108,0.25); }
.social-btn-ig:hover { background: rgba(225,48,108,0.2); }

/* FEEDBACK */
.feedback-section { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem 5rem; }
.feedback-search-bar { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 2.5rem; flex-wrap: wrap; }
.feedback-search { flex: 1; min-width: 220px; display: flex; align-items: center; border: 1px solid var(--border2); border-radius: 4px; overflow: hidden; background: var(--card); }
.feedback-search input { flex: 1; background: transparent; border: none; outline: none; font-family: 'Barlow', sans-serif; font-size: 0.9rem; color: var(--text); padding: 0.6rem 1rem; }
.feedback-search input::placeholder { color: var(--text3); }
.feedback-search span { padding: 0.6rem 0.9rem; color: var(--text3); font-size: 0.9rem; }
.stars { color: var(--gold); letter-spacing: 0.1em; font-size: 1.3rem; }
.feedback-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); }
.feedback-card { background: var(--card); padding: 2.2rem; transition: background 0.2s; display: flex; flex-direction: column; gap: 0.2rem; }
.feedback-card:hover { background: var(--card2); }
.feedback-people { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.feedback-stars { margin-bottom: 0.8rem; }
.feedback-text  { font-size: 1.05rem; color: #b8bdd0; line-height: 1.8; margin-bottom: 1.4rem; flex: 1; }
.feedback-person { display: flex; align-items: center; gap: 1rem; }
.feedback-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--teal)); display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.25rem; color: #0a0c14; flex-shrink: 0; }
.feedback-label { font-size: 0.8rem; color: #9ca3b8; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1; }
.feedback-name  { font-weight: 700; font-size: 1.15rem; color: var(--white); margin-top: 0.25rem; }
.feedback-city { font-size: 0.8rem; color: #9ca3b8; margin-top: 0.1rem; }
.feedback-badge-type { font-size: 0.85rem; color: var(--teal); background: rgba(0,208,176,0.1); padding: 0.35rem 0.85rem; border-radius: 4px; font-weight: 600; }
.feedback-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--border); }
.feedback-author { font-size: 0.9rem; color: #9ca3b8; }
.feedback-author strong { color: #c8cdd8; }
.feedback-date  { font-size: 0.85rem; color: #9ca3b8; }
.feedback-approved { font-size: 0.85rem; color: #4caf50; margin-top: 0.6rem; }
.fb-actions { display: flex; gap: 0.5rem; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--border); }
.fb-actions .btn-sm { font-size: 0.78rem; padding: 0.3rem 0.7rem; }
.fb-clickable { cursor: pointer; transition: color 0.2s; }
.fb-clickable:hover { color: var(--teal); }

/* User profile modal */
.fb-profile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 2rem; }
.fb-profile-overlay.active { display: flex; }
.fb-profile-modal { background: var(--card); border: 1px solid var(--border); border-radius: 12px; width: 100%; max-width: 640px; max-height: 85vh; overflow-y: auto; position: relative; padding: 2.5rem; }
.fb-profile-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: #9ca3b8; font-size: 1.8rem; cursor: pointer; line-height: 1; padding: 0.2rem 0.5rem; }
.fb-profile-close:hover { color: var(--white); }
.fb-profile-header { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 2rem; }
.fb-profile-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--white); }
.fb-profile-city { font-size: 0.9rem; color: #9ca3b8; margin-top: 0.15rem; }
.fb-profile-stats { font-size: 0.95rem; color: #9ca3b8; margin-top: 0.3rem; }
.fb-rating-bars { margin-bottom: 2rem; padding: 1.2rem 1.5rem; background: rgba(255,255,255,0.02); border-radius: 8px; border: 1px solid var(--border); }
.fb-rating-row { display: flex; align-items: center; gap: 0.75rem; height: 28px; }
.fb-rating-label { font-size: 0.9rem; color: var(--gold); width: 3.2rem; text-align: right; flex-shrink: 0; white-space: nowrap; }
.fb-rating-bar { flex: 1; height: 10px; background: rgba(255,255,255,0.06); border-radius: 5px; overflow: hidden; min-width: 0; }
.fb-rating-fill { height: 100%; background: linear-gradient(90deg, var(--gold), #f5d77a); border-radius: 5px; min-width: 2px; transition: width 0.4s ease; }
.fb-rating-count { font-size: 0.85rem; color: #9ca3b8; width: 5rem; flex-shrink: 0; text-align: left; white-space: nowrap; }
.fb-role-averages { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.6rem; }
.fb-role-avg { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; color: #b8bdd0; }
.fb-role-icon { font-size: 1.1rem; }
.fb-role-val { color: #9ca3b8; font-size: 0.85rem; }
.fb-profile-section { margin-bottom: 1.5rem; }
.fb-profile-section h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.05rem; color: var(--white); font-weight: 600; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.fb-profile-item { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.fb-profile-item:last-child { border-bottom: none; }
.fb-profile-item-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.fb-profile-item-text { font-size: 0.95rem; color: #b8bdd0; line-height: 1.7; margin-bottom: 0.4rem; }
.fb-profile-item-meta { font-size: 0.85rem; color: #9ca3b8; }
.fb-profile-item-meta strong { color: #c8cdd8; }

/* Feedback form */
.feedback-form-wrap { max-width: 1100px; margin: 0 auto; padding: 0 2rem 2rem; }
.feedback-form-box { background: var(--card); border: 1px solid var(--border); border-radius: 4px; padding: 2rem; max-width: 600px; margin: 0 auto; }
.feedback-form-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.1rem; color: var(--white); margin-bottom: 1.5rem; }
.feedback-form .form-row { display: flex; gap: 1rem; }
.feedback-form select.form-input { cursor: pointer; }
.feedback-form select.form-input option { background: var(--card); color: var(--text); }

/* Autocomplete dropdown */
.autocomplete-list { position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border: 1px solid var(--border); border-top: none; border-radius: 0 0 4px 4px; max-height: 220px; overflow-y: auto; z-index: 100; display: none; }
.ac-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.75rem; cursor: pointer; transition: background 0.15s; }
.ac-item:hover { background: rgba(0,255,204,0.07); }
.ac-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; flex-shrink: 0; }
.ac-card-thumb { width: 36px; height: 50px; border-radius: 4px; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.1); }
.ac-version { font-size: 0.7rem; color: var(--teal); font-weight: 400; opacity: 0.85; }
.ac-name { color: var(--white); font-size: 0.85rem; font-weight: 600; }
.ac-login { color: var(--text3); font-size: 0.75rem; margin-left: auto; }

/* Photo upload */
.photo-upload-area { margin-top: 0.4rem; }
.photo-previews { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.6rem; }
.photo-preview { position: relative; width: 80px; height: 80px; border-radius: 4px; overflow: hidden; border: 1px solid var(--border); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.7); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 14px; line-height: 18px; cursor: pointer; padding: 0; }
.photo-remove:hover { background: var(--red, #e74c3c); }
.feedback-photos { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.feedback-photo { width: 60px; height: 60px; object-fit: cover; border-radius: 3px; border: 1px solid var(--border); cursor: pointer; transition: transform 0.15s; }
.feedback-photo:hover { transform: scale(1.1); }

/* Star selector */
.star-select { display: flex; gap: 0.25rem; }
.star-btn { font-size: 1.6rem; cursor: pointer; color: var(--text3); transition: color 0.15s, transform 0.15s; user-select: none; }
.star-btn:hover, .star-btn.star-active { color: var(--gold); }
.star-btn:hover { transform: scale(1.15); }

/* Char count */
.form-char-count { text-align: right; font-size: 0.7rem; color: var(--text3); margin-top: 0.3rem; }

/* Pagination */
.feedback-pagination { display: flex; justify-content: center; gap: 0.4rem; padding: 2rem 0; }
.pagination-btn { background: var(--card); border: 1px solid var(--border); color: var(--text2); padding: 0.4rem 0.8rem; border-radius: 3px; cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-size: 0.82rem; transition: all 0.2s; }
.pagination-btn:hover { border-color: var(--teal); color: var(--teal); }
.pagination-btn.active { background: var(--teal); color: var(--bg); border-color: var(--teal); }

/* Feedback search bar layout fix */
.feedback-search-bar { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 2.5rem; flex-wrap: wrap; }
.feedback-search-bar .btn-sm { flex-shrink: 0; }

@media (max-width: 600px) {
  .feedback-form .form-row { flex-direction: column; gap: 0; }
}

/* FORM */
.form-container { max-width: 640px; margin: 0 auto; padding: 3rem 2rem 5rem; }
.form-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.6rem; color: var(--white); margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.form-group { margin-bottom: 1.5rem; }
.form-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text2); display: block; margin-bottom: 0.5rem; }
.form-label span { color: var(--red); }
.form-input { width: 100%; background: var(--card); border: 1px solid var(--border2); border-radius: 4px; padding: 0.7rem 1rem; font-family: 'Barlow', sans-serif; font-size: 0.9rem; color: var(--text); outline: none; transition: border-color 0.2s; }
.form-input:focus { border-color: var(--teal); }
.form-input::placeholder { color: var(--text3); }
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 100px; }

/* AUTH */
.auth-page { min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; justify-content: center; padding: 3rem 2rem; }
.auth-box { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border); padding: 2.5rem; border-radius: 4px; }
.auth-logo { text-align: center; margin-bottom: 2rem; font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.5rem; color: var(--gold); }
.auth-tabs { display: flex; margin-bottom: 2rem; border-bottom: 1px solid var(--border); }
.auth-tab { flex: 1; padding: 0.65rem; text-align: center; cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text2); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.2s; }
.auth-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.78rem; color: var(--text3); }
.auth-footer a { color: var(--teal); cursor: pointer; }
.auth-msg { padding: 0.75rem 1rem; border-radius: 4px; font-size: 0.82rem; margin-bottom: 1.5rem; line-height: 1.5; }
.auth-msg-success { background: rgba(78,203,128,0.1); border: 1px solid rgba(78,203,128,0.3); color: var(--green); }
.auth-msg-error { background: rgba(224,85,85,0.1); border: 1px solid rgba(224,85,85,0.3); color: var(--red); }
.auth-terms { font-size: 0.75rem; color: var(--text3); margin-bottom: 1rem; line-height: 1.5; }
.auth-terms a { color: var(--teal); }
.auth-forgot-text { font-size: 0.85rem; color: var(--text2); margin-bottom: 1.5rem; line-height: 1.6; }

/* Nav user state */
.nav-user { display: flex; align-items: center; gap: 0.5rem; }
.nav-user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--bg); display: flex; align-items: center; justify-content: center; font-family: 'Cinzel', serif; font-weight: 700; font-size: 0.8rem; }
.nav-user-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.82rem; color: var(--text); letter-spacing: 0.04em; }

/* INFO PAGE */
.info-layout { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem 5rem; display: grid; grid-template-columns: 210px 1fr; gap: 3rem; }
.info-nav { list-style: none; }
.info-nav li { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.5rem 0.75rem; margin-bottom: 0.2rem; border-radius: 3px; cursor: pointer; color: var(--text2); transition: all 0.2s; border-left: 2px solid transparent; }
.info-nav li:hover { color: var(--text); border-left-color: var(--border2); }
.info-nav li.active { color: var(--gold); border-left-color: var(--gold); background: rgba(200,164,90,0.05); }
.info-section-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.4rem; color: var(--white); margin-bottom: 1.5rem; }
.info-body { line-height: 1.9; color: var(--text2); font-size: 0.88rem; }
.info-body h4 { color: var(--white); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 1.5rem 0 0.5rem; }
.info-body p { margin-bottom: 1rem; }
.info-body ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.info-body ul li { margin-bottom: 0.4rem; }

/* BACK BUTTON */
.back-btn { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text2); background: transparent; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0 0 1.5rem; transition: color 0.2s; }
.back-btn:hover { color: var(--teal); }

/* ── FOOTER ── */
#rbz-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  background: var(--bg2);
  text-align: center;
}
.footer-discord { margin-bottom: 1.25rem; }
.footer-discord-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.2rem; border-radius: 8px;
  background: rgba(88,101,242,0.1); border: 1px solid rgba(88,101,242,0.25);
  color: #ccc; font-size: 0.85rem; font-weight: 600; text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0.02em;
  transition: background 0.15s, border-color 0.15s;
}
.footer-discord-link:hover { background: rgba(88,101,242,0.18); border-color: rgba(88,101,242,0.4); color: #fff; }
.footer-discord-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ba55d; flex-shrink: 0; }
.footer-discord-sep { color: var(--border); margin: 0 0.15rem; }
.footer-logo { font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.2rem; color: var(--gold); margin-bottom: 0.4rem; }
.footer-copy { font-size: 0.8rem; color: var(--text3); margin-bottom: 0.3rem; }
.footer-legal { font-size: 0.73rem; color: var(--text3); line-height: 1.7; max-width: 600px; margin: 0 auto; }
.footer-legal a { color: var(--teal); cursor: pointer; text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }

/* MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.78); backdrop-filter: blur(5px); align-items: center; justify-content: center; padding: 2rem; }
.modal-overlay.open { display: flex; }
.modal { background: var(--card); border: 1px solid var(--border2); border-radius: 4px; padding: 2rem; max-width: 540px; width: 100%; max-height: 82vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 1rem; right: 1rem; cursor: pointer; color: var(--text3); font-size: 1.2rem; background: none; border: none; transition: color 0.2s; }
.modal-close:hover { color: var(--text); }
.modal-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.15rem; color: var(--white); margin-bottom: 1.5rem; }

/* COOKIE BANNER */
#cookie-banner {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9000;
  background: var(--card2); border: 1px solid var(--border2);
  border-radius: 6px; padding: 1.5rem;
  max-width: 360px; width: calc(100% - 3rem);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  animation: slideUp 0.4s ease;
}
#cookie-banner h4 { font-family: 'Cinzel', serif; font-weight: 700; font-size: 0.95rem; color: var(--white); margin-bottom: 0.6rem; }
#cookie-banner p  { font-size: 0.78rem; color: var(--text2); line-height: 1.6; margin-bottom: 1.1rem; }
#cookie-banner p a{ color: var(--teal); cursor: pointer; }
.cookie-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-btns button { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.5rem 1rem; border-radius: 3px; cursor: pointer; transition: all 0.2s; }
.btn-accept-all { background: var(--gold); color: #0a0c14; border: none; flex: 1; }
.btn-accept-all:hover { background: var(--gold2); }
.btn-essential  { background: transparent; color: var(--text2); border: 1px solid var(--border2); }
.btn-essential:hover { border-color: var(--teal); color: var(--teal); }

#cookie-pref-toggle {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 8990;
  background: var(--card2); border: 1px solid var(--border2);
  border-radius: 50px; padding: 0.65rem 1.3rem;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text2); cursor: pointer; transition: all 0.2s; display: none;
}
#cookie-pref-toggle:hover { color: var(--teal); border-color: var(--teal); }

.cookie-modal { max-width: 480px; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.cookie-row:last-child { border-bottom: none; }
.cookie-row-label { font-weight: 500; font-size: 0.88rem; color: var(--text); }
.cookie-row-desc  { font-size: 0.75rem; color: var(--text3); margin-top: 0.2rem; }
.toggle-wrap { flex-shrink: 0; }
.toggle { position: relative; width: 38px; height: 20px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--bg3); border-radius: 20px; cursor: pointer; transition: 0.3s; border: 1px solid var(--border2); }
.toggle-slider::before { content: ''; position: absolute; width: 14px; height: 14px; left: 2px; bottom: 2px; background: var(--text3); border-radius: 50%; transition: 0.3s; }
.toggle input:checked + .toggle-slider { background: rgba(62,207,207,0.2); border-color: var(--teal); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); background: var(--teal); }
.toggle input:disabled + .toggle-slider { opacity: 0.5; cursor: not-allowed; }


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

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 768px) {
  #rbz-nav { padding: 0 1rem; }
  #rbz-announcement { display: none; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: rgba(10,12,20,0.98); flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--border); z-index: 200; }
  #rbz-nav.nav-open .nav-links { display: flex; }
  .nav-more, .nav-dropdown { display: contents; }
  .nav-more > a { display: none; }
  .nav-dropdown > a { display: block; padding: 0.5rem 1rem; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text2); text-decoration: none; }
  .nav-more-dropdown { position: static; transform: none; display: contents; box-shadow: none; border: none; background: none; padding: 0; min-width: auto; margin: 0; }
  .nav-more-dropdown a { display: block; padding: 0.5rem 1rem; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text2); text-decoration: none; }
  .nav-more-dropdown a:hover { color: var(--teal); background: var(--teal-glow); }
  .nav-actions .nav-user, .nav-actions .btn-ghost { display: none; }
  .nav-actions .notif-bell { display: inline-flex; }
  .mobile-menu-toggle { display: flex; }
  .hero-title { font-size: clamp(2.5rem, 8vw, 4rem); }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { min-width: 50%; }
  .mercatino-grid, .tornei-grid { grid-template-columns: 1fr; }
  .info-layout { grid-template-columns: 1fr; }
  .tornei-grid { grid-template-columns: 1fr; }
  .listing-card { flex-direction: column; }
  .listing-photo { width: 100%; height: 120px; border-right: none; border-bottom: 1px solid var(--border); }
  .torneo-info-grid { grid-template-columns: 1fr !important; }
  .premi-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .iscrizione-box { flex-direction: column !important; }
  .iscrizione-price { min-width: auto !important; }
  .torneo-landing-title { font-size: clamp(2.5rem, 8vw, 4rem) !important; }
  .roadmap-hero-title { font-size: clamp(1.8rem, 6vw, 3rem); }
  .roadmap-rotate { min-width: 180px; }
  .roadmap-grid { grid-template-columns: 1fr; padding: 0 0.5rem; gap: 1rem; }
}

/* ── TORNEO LANDING PAGE ── */
.torneo-landing { overflow: hidden; }

.torneo-landing-hero {
  position: relative; min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center; padding: 5rem 2rem;
  padding-top: calc(var(--nav-h) + 5rem);
}
.torneo-landing-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(200,164,90,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(62,207,207,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(200,164,90,0.04) 0%, transparent 60%);
}
.torneo-landing-hero-content {
  position: relative; z-index: 1; max-width: 820px;
}
.torneo-landing-title {
  font-family: 'Cinzel', serif; font-weight: 900;
  font-size: clamp(3.5rem, 9vw, 6.5rem); line-height: 0.95;
  color: var(--white); margin-bottom: 0.4rem;
  animation: fadeUp 0.6s ease 0.1s both;
}
.torneo-landing-sub {
  font-size: 1.15rem; font-weight: 300; color: var(--text2); line-height: 1.65;
  margin: 2rem auto 2rem; max-width: 540px;
  animation: fadeUp 0.6s ease 0.2s both;
}
.torneo-landing-date {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1.1rem; letter-spacing: 0.08em;
  color: var(--gold); margin-bottom: 2.5rem;
  animation: fadeUp 0.6s ease 0.25s both;
}
.date-icon { font-size: 1.3rem; }
.torneo-landing-cta {
  display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.6s ease 0.3s both;
}
.torneo-landing-cta .btn-lg {
  text-decoration: none; display: inline-flex; align-items: center;
}

/* INFO CARDS GRID */
.torneo-info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
}
.torneo-info-card {
  background: var(--card); padding: 2rem 1.5rem;
  transition: background 0.2s;
}
.torneo-info-card:hover { background: var(--card2); }
.info-card-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.info-card-label {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.5rem;
}
.info-card-value {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 1rem; color: var(--white); margin-bottom: 0.25rem;
}
.info-card-detail {
  font-size: 0.82rem; color: var(--text2); line-height: 1.5;
}

/* DARK SECTION */
.torneo-section-dark {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* STRUCTURE TIMELINE */
.torneo-structure { max-width: 680px; }
.structure-item {
  display: flex; gap: 1.5rem; margin-bottom: 2rem;
  position: relative;
}
.structure-item:not(:last-child)::after {
  content: '';
  position: absolute; left: 21px; top: 48px; bottom: -8px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), transparent);
}
.structure-step {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.1rem;
  color: #0a0c14; background: var(--gold);
  border-radius: 50%; position: relative; z-index: 1;
}
.structure-content h3 {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 1rem; color: var(--white); margin-bottom: 0.4rem;
}
.structure-content p {
  font-size: 0.88rem; color: var(--text2); line-height: 1.7;
}
.structure-content strong { color: var(--gold2); }

/* REQUISITI */
.requisiti-list { max-width: 680px; }
.requisito-item {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.25rem 0; border-bottom: 1px solid var(--border);
}
.requisito-item:last-child { border-bottom: none; }
.requisito-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: var(--green);
  background: rgba(78,203,128,0.1); border: 1px solid rgba(78,203,128,0.25);
  border-radius: 50%;
}
.requisito-text strong {
  display: block; font-size: 0.95rem; color: var(--white); margin-bottom: 0.2rem;
}
.requisito-text span {
  font-size: 0.82rem; color: var(--text2); line-height: 1.5;
}

/* ISCRIZIONE BOX */
.iscrizione-box {
  display: flex; gap: 0;
  background: var(--card); border: 1px solid var(--border2);
  border-radius: 4px; overflow: hidden;
}
.iscrizione-price {
  min-width: 220px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(200,164,90,0.1), rgba(200,164,90,0.02));
  border-right: 1px solid var(--border);
}
.price-amount {
  font-family: 'Cinzel', serif; font-weight: 900;
  font-size: 3.5rem; color: var(--gold);
  text-shadow: 0 0 40px var(--gold-glow);
}
.price-label {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text3); margin-top: 0.3rem;
}
.iscrizione-details { padding: 2rem; flex: 1; }
.iscrizione-step {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 0;
  font-size: 0.88rem; color: var(--text2);
}
.step-num {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.8rem; color: var(--teal);
  border: 1px solid rgba(62,207,207,0.3); border-radius: 50%;
}
.iscrizione-warning {
  margin-top: 1.25rem; padding: 1rem 1.25rem;
  background: rgba(224,85,85,0.08); border: 1px solid rgba(224,85,85,0.2);
  border-radius: 4px;
  font-size: 0.85rem; font-weight: 600; color: var(--red);
}

/* PREMI GRID */
.premi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
}
.premio-card {
  background: var(--card); padding: 2.5rem 1.5rem;
  text-align: center; transition: all 0.2s;
}
.premio-card:hover { background: var(--card2); transform: translateY(-3px); }
.premio-pos { font-size: 2.2rem; margin-bottom: 0.75rem; }
.premio-place {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text2); margin-bottom: 0.5rem;
}
.premio-value {
  font-family: 'Cinzel', serif; font-weight: 900;
  font-size: 2.2rem; margin-bottom: 0.3rem;
}
.premio-gold .premio-value { color: var(--gold); text-shadow: 0 0 30px var(--gold-glow); }
.premio-silver .premio-value { color: #c0c0c0; }
.premio-bronze .premio-value { color: #cd7f32; }
.premio-other .premio-value { color: var(--teal); }
.premio-desc {
  font-size: 0.78rem; color: var(--text3);
}
.premi-note {
  text-align: center; font-size: 0.78rem; color: var(--text3);
  margin-top: 1.5rem; font-style: italic;
}

/* PRANZO BOX */
.torneo-pranzo-box {
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--card); border: 1px solid var(--border2);
  border-radius: 4px; padding: 2rem;
}
.pranzo-icon { font-size: 2.5rem; flex-shrink: 0; }
.pranzo-content h3 {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 1rem; color: var(--white); margin-bottom: 0.4rem;
}
.pranzo-content p {
  font-size: 0.88rem; color: var(--text2); line-height: 1.6;
}

/* FINAL CTA */
/* ── ROADMAP PAGE ── */
.roadmap-page { overflow: hidden; }

/* Roadmap Hero */
.roadmap-hero {
  position: relative; min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center; padding: 5rem 2rem;
  padding-top: calc(var(--nav-h) + 5rem);
}
.roadmap-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(62,207,207,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(200,164,90,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(62,207,207,0.04) 0%, transparent 60%);
}
.roadmap-hero-content {
  position: relative; z-index: 1; max-width: 820px;
}
.roadmap-hero-title {
  font-family: 'Cinzel', serif; font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.1;
  color: var(--white); margin-bottom: 0.5rem;
  animation: fadeUp 0.6s ease 0.1s both;
}
.roadmap-rotate-wrap {
  font-family: 'Cinzel', serif; font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 3.5rem); line-height: 1.2;
  animation: fadeUp 0.6s ease 0.2s both;
  margin-bottom: 0.5rem;
  display: flex; align-items: baseline; justify-content: center; gap: 0.3em;
}
.roadmap-rotate-wrap .accent2 {
  color: var(--gold); text-shadow: 0 0 40px var(--gold-glow);
  flex-shrink: 0;
}
.roadmap-hero-sub {
  font-size: 1.05rem; font-weight: 300; color: var(--text2); line-height: 1.7;
  margin: 1.5rem auto 1.5rem; max-width: 520px;
  animation: fadeUp 0.6s ease 0.3s both;
}
.roadmap-hero-free {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--green); padding: 0.5rem 1.5rem;
  border: 1px solid rgba(78,203,128,0.35);
  background: rgba(78,203,128,0.08);
  border-radius: 3px; margin-bottom: 2rem;
  animation: fadeUp 0.6s ease 0.4s both;
}
.roadmap-hero-stats {
  display: flex; justify-content: center; gap: 3rem;
  margin-top: 1rem; animation: fadeUp 0.6s ease 0.5s both;
}
.roadmap-hero-stat { text-align: center; }
.roadmap-hero-stat-num {
  display: block; font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 2rem; color: var(--teal);
}
.roadmap-hero-stat-label {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text3);
}

/* Rotating words */
.roadmap-rotate {
  position: relative;
  display: inline-grid;
}
.roadmap-rotate .rotate-word {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  color: var(--teal); text-shadow: 0 0 50px var(--teal-glow);
  white-space: nowrap;
  visibility: hidden;
}
.roadmap-rotate .rotate-word.active {
  opacity: 1; transform: translateY(0);
  visibility: visible;
}

/* No extra padding — hero handles it */
body.page-id-25 #rbz-content {
  padding-top: 0 !important;
}
.roadmap-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem; padding: 0 1rem;
}
.roadmap-card {
  background: var(--card); padding: 1.75rem;
  border: 1px solid var(--border); border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s; position: relative;
}
.roadmap-card:hover { border-color: rgba(62,207,207,0.3); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.roadmap-card.roadmap-done { border-left: 3px solid var(--teal); }
.roadmap-card.roadmap-wip { border-left: 3px solid var(--gold); }
.roadmap-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.roadmap-card h3 {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 1.05rem; color: var(--white); margin-bottom: 0.4rem;
  display: inline;
}
.roadmap-pct {
  display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.82rem; color: var(--teal); background: rgba(62,207,207,0.1);
  padding: 0.2rem 0.6rem; border-radius: 4px; margin-left: 0.6rem; vertical-align: middle;
}
.roadmap-card p {
  font-size: 0.84rem; color: var(--text2); line-height: 1.6; margin-top: 0.4rem;
}
.roadmap-sub {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: flex; flex-direction: column; gap: 0.4rem;
  border-top: 1px solid var(--border); padding-top: 0.85rem;
}
.roadmap-sub li {
  font-size: 0.82rem; color: var(--text2); padding-left: 1.8rem;
  position: relative; line-height: 1.6;
}
.roadmap-sub li::before { position: absolute; left: 0; top: 0.1rem; font-size: 0.9rem; }
.roadmap-sub li.sub-done::before { content: '\2705'; }
.roadmap-sub li.sub-done { color: var(--text); }
.roadmap-sub li.sub-wip::before { content: '\1F6E0\FE0F'; }
.roadmap-sub li.sub-wip { color: var(--gold); }
.roadmap-sub li.sub-planned::before { content: '\274C'; }
.roadmap-sub li.sub-planned { color: var(--text3); }
.roadmap-status-badge {
  display: inline-block; font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.2rem 0.6rem;
  border-radius: 4px; margin-bottom: 0.85rem;
}
.badge-done {
  background: rgba(78,203,128,0.15); color: var(--green);
  border: 1px solid rgba(78,203,128,0.3);
}
.badge-wip {
  background: rgba(200,164,90,0.12); color: var(--gold);
  border: 1px solid rgba(200,164,90,0.3);
}
.badge-planned {
  background: rgba(62,207,207,0.1); color: var(--teal);
  border: 1px solid rgba(62,207,207,0.25);
}

/* PARTECIPANTI GRID */
.partecipanti-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px; background: var(--border);
}
.partecipante-card {
  background: var(--card); padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  transition: background 0.2s;
}
.partecipante-card:hover { background: var(--card2); }
.partecipante-avatar {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.9rem; color: #0a0c14;
}
.partecipante-name {
  font-size: 0.88rem; font-weight: 500; color: var(--white);
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.partecipante-num {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
  font-size: 0.7rem; letter-spacing: 0.1em; color: var(--text3);
}

/* FINAL CTA */
.torneo-final-cta {
  text-align: center; padding: 6rem 2rem;
  background:
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(200,164,90,0.06) 0%, transparent 70%);
}
.torneo-final-cta h2 {
  font-family: 'Cinzel', serif; font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--white);
  margin-bottom: 0.75rem;
}
.torneo-final-cta p {
  font-size: 1rem; color: var(--text2); max-width: 480px;
  margin: 0 auto 2.5rem; line-height: 1.6;
}

/* ── SHARED: filter-group, search-input, page containers ── */
.filter-group { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.search-input-sm { width: 100%; max-width: 200px; }
.feature-page { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.feature-page-narrow { max-width: 900px; margin: 0 auto; padding: 0 1rem; }
.feature-actions { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; justify-content: space-between; }
.feature-actions-right { display: flex; gap: 0.5rem; align-items: center; }
.owned-label { font-size: 0.8rem; color: var(--text2); display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.torneo-winner-box { background: rgba(200,164,90,0.1); border: 1px solid var(--gold); border-radius: 10px; padding: 1rem; margin-bottom: 1.5rem; text-align: center; }
.torneo-winner-box span { font-size: 1.5rem; }
.torneo-winner-box strong { color: var(--gold); font-size: 1.1rem; }
.bracket-container { display: flex; gap: 2rem; overflow-x: auto; padding: 1rem 0; -webkit-overflow-scrolling: touch; }
.bracket-round-title { color: var(--text3); font-size: 0.75rem; text-align: center; margin-bottom: 0.5rem; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.08em; }
.torneo-detail-page { max-width: 900px; margin: 0 auto; }
.torneo-detail-title { color: var(--gold); font-family: 'Cinzel', serif; font-size: 1.5rem; margin: 0; }
.torneo-detail-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0.75rem 0 1.5rem; align-items: center; }
.torneo-players-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.torneo-section-title { color: var(--white); font-family: 'Cinzel', serif; font-size: 1rem; margin: 1.5rem 0 0.75rem; }

/* Nav dropdowns (Altro + Mercatino) */
.nav-more, .nav-dropdown { position: relative; }
.nav-more > a, .nav-dropdown > a { cursor: pointer; }
.nav-more-dropdown { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 180px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.4); padding: 0.4rem 0; z-index: 200; padding-top: 0.5rem; }
.nav-more-dropdown::before { content: ''; position: absolute; top: -0.5rem; left: 0; right: 0; height: 0.5rem; }
.nav-more:hover .nav-more-dropdown,
.nav-more.open .nav-more-dropdown,
.nav-dropdown:hover .nav-more-dropdown,
.nav-dropdown.open .nav-more-dropdown { display: block; }
.nav-more-dropdown a { display: block; padding: 0.6rem 1.2rem; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text2); text-decoration: none; transition: all 0.15s; }
.nav-more-dropdown a:hover { color: var(--teal); background: var(--teal-glow); }

/* ── GUIDE ── */
.guide-page { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.guide-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform 0.2s, border-color 0.2s; display: flex; flex-direction: column; }
.guide-card:hover { transform: translateY(-3px); border-color: var(--teal); }
.guide-thumb { height: 160px; background: var(--bg3); background-size: cover; background-position: center; }
.guide-thumb-placeholder { background: linear-gradient(135deg, var(--bg3), var(--card2)); display: flex; align-items: center; justify-content: center; }
.guide-thumb-placeholder::after { content: "\1F4DA"; font-size: 2.5rem; opacity: 0.3; }
.guide-card-body { padding: 1rem 1.2rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.guide-card-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.guide-card-title { color: var(--white); font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem; line-height: 1.3; }
.guide-card-excerpt { color: var(--text2); font-size: 0.82rem; line-height: 1.5; flex: 1; margin-bottom: 0.75rem; }
.guide-card-footer { display: flex; gap: 0.75rem; font-size: 0.75rem; color: var(--text3); border-top: 1px solid var(--border); padding-top: 0.6rem; }
.guide-detail-overlay { max-width: 800px; margin: 0 auto; padding: 2rem 1rem; }
.guide-detail-meta { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.guide-detail-title { color: var(--gold); font-family: 'Cinzel', serif; font-size: 1.5rem; margin: 0.5rem 0 1rem; }
.guide-detail-author { color: var(--text2); margin-bottom: 1.5rem; }
.guide-detail-author strong { color: var(--teal); }
.guide-content { color: var(--text); line-height: 1.75; font-size: 0.95rem; }
.guide-content p { margin-bottom: 1rem; }
.guide-content h2, .guide-content h3 { color: var(--gold); margin: 1.5rem 0 0.75rem; }
.guide-content ul, .guide-content ol { margin: 0.75rem 0; padding-left: 1.5rem; }
.guide-content li { margin-bottom: 0.4rem; }

/* ── PROFILO GIOCATORE ── */
.profilo-page { max-width: 900px; margin: 0 auto; padding: 2rem 1rem; }
.profilo-header { display: flex; gap: 2rem; align-items: center; margin-bottom: 2rem; padding: 2rem; background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.profilo-avatar { width: 90px; height: 90px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 700; color: var(--bg); flex-shrink: 0; }
.profilo-info h1 { color: var(--gold); font-family: 'Cinzel', serif; font-size: 1.6rem; margin: 0 0 0.3rem; }
.profilo-info-sub { color: var(--text2); font-size: 0.85rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.profilo-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.profilo-stat { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem; text-align: center; }
.profilo-stat-num { font-size: 1.8rem; font-weight: 700; color: var(--teal); font-family: 'Barlow Condensed', sans-serif; }
.profilo-stat-label { font-size: 0.75rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 0.25rem; }
.profilo-section { margin-bottom: 2rem; }
.profilo-section h2 { color: var(--gold); font-family: 'Cinzel', serif; font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.profilo-activity { display: flex; flex-direction: column; gap: 0.75rem; }
.profilo-activity-item { display: flex; gap: 0.75rem; align-items: center; padding: 0.75rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 8px; font-size: 0.85rem; color: var(--text); }
.profilo-activity-icon { font-size: 1.1rem; flex-shrink: 0; }
.profilo-activity-date { color: var(--text3); font-size: 0.75rem; margin-left: auto; flex-shrink: 0; }
.profilo-decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.75rem; }
.profilo-deck-card { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 8px; transition: border-color 0.15s; }
.profilo-deck-card:hover { border-color: var(--teal); }
.profilo-deck-icon { font-size: 1.3rem; flex-shrink: 0; }

/* ── COLLEZIONE — Album ── */
.collezione-page { max-width: 1100px; margin: 0 auto; padding: 0 1rem 4rem; }
.coll-overview { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem 2rem; margin-bottom: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; text-align: center; }
.coll-ov-block { padding: 0.5rem 0; }
.coll-ov-block-bar { padding: 0.75rem 0.5rem; display: flex; flex-direction: column; justify-content: center; }
.coll-ov-block h4 { font-family: 'Cinzel', serif; font-size: 0.85rem; font-weight: 700; color: var(--white); margin: 0 0 0.5rem; }
.coll-ov-block .coll-overview-num { font-size: 2rem; }
.coll-ov-block .coll-overview-label { font-size: 0.82rem; color: var(--text2); }
.coll-ov-pct { font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--teal); }
.coll-ov-setname { font-size: 0.82rem; color: var(--text2); margin-top: 0.2rem; }
.coll-overview-stat { text-align: center; }
.coll-overview-num { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 700; color: var(--teal); display: block; line-height: 1; }
.coll-overview-num small { font-size: 1rem; }
.coll-overview-label { font-size: 0.7rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 0.2rem; }
/* Album covers */
.coll-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.coll-album { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.coll-album:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 8px 30px rgba(62,207,207,0.15); }
.coll-album-cover { height: 180px; background-size: cover; background-position: center top; position: relative; }
.coll-album-cover::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(transparent, var(--card)); }
.coll-album-body { padding: 1rem 1.25rem 1.25rem; }
.coll-album-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.1rem; color: var(--white); margin: 0 0 0.3rem; }
.coll-album-count { font-size: 0.82rem; color: var(--text2); margin-bottom: 0.6rem; }
.coll-album-bar { height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.coll-album-fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: 3px; transition: width 0.4s; min-width: 2px; }
.coll-album-pct { font-size: 0.72rem; color: var(--text3); margin-top: 0.35rem; }
/* Album animations */
.coll-album-opening { animation: albumOpen 0.35s ease forwards; }
.coll-album-fading { animation: albumFade 0.3s ease forwards; }
.coll-av-entering { animation: albumViewIn 0.4s ease both; }
.coll-av-closing { animation: albumClose 0.25s ease both; }
.coll-albums-returning .coll-album { animation: albumReturn 0.35s ease both; }
.coll-albums-returning .coll-album:nth-child(1) { animation-delay: 0s; }
.coll-albums-returning .coll-album:nth-child(2) { animation-delay: 0.05s; }
.coll-albums-returning .coll-album:nth-child(3) { animation-delay: 0.1s; }
.coll-albums-returning .coll-album:nth-child(4) { animation-delay: 0.15s; }
.coll-albums-returning .coll-album:nth-child(n+5) { animation-delay: 0.2s; }
.coll-back-btn { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.85rem; color: var(--text2); background: none; border: none; cursor: pointer; padding: 0.4rem 0; transition: color 0.15s; }
.coll-back-btn:hover { color: var(--teal); }
@keyframes albumOpen { 0%{transform:scale(1);opacity:1} 100%{transform:scale(1.05);opacity:0;} }
@keyframes albumFade { 0%{transform:scale(1);opacity:1} 100%{transform:scale(0.95);opacity:0;} }
@keyframes albumViewIn { 0%{opacity:0;transform:translateY(20px)} 100%{opacity:1;transform:translateY(0)} }
@keyframes albumClose { 0%{opacity:1;transform:scale(1)} 100%{opacity:0;transform:scale(0.95)} }
@keyframes albumReturn { 0%{opacity:0;transform:scale(0.9)} 100%{opacity:1;transform:scale(1)} }
/* Page turn animations */
.coll-page-out-left { animation: pageOutLeft 0.25s ease forwards; }
.coll-page-out-right { animation: pageOutRight 0.25s ease forwards; }
.coll-page-in-left { animation: pageInLeft 0.3s ease both; }
.coll-page-in-right { animation: pageInRight 0.3s ease both; }
@keyframes pageOutLeft { 0%{opacity:1;transform:translateX(0) scale(1)} 100%{opacity:0;transform:translateX(-40px) scale(0.97)} }
@keyframes pageOutRight { 0%{opacity:1;transform:translateX(0) scale(1)} 100%{opacity:0;transform:translateX(40px) scale(0.97)} }
@keyframes pageInLeft { 0%{opacity:0;transform:translateX(40px) scale(0.97)} 100%{opacity:1;transform:translateX(0) scale(1)} }
@keyframes pageInRight { 0%{opacity:0;transform:translateX(-40px) scale(0.97)} 100%{opacity:1;transform:translateX(0) scale(1)} }
.coll-album-soon { opacity: 0.55; cursor: default; pointer-events: none; }
.coll-album-cover-soon { background: linear-gradient(135deg, var(--bg3), var(--card2)); display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; position: relative; }
.coll-album-cover-soon::before { content: ""; position: absolute; inset: 0; background: rgba(10,12,20,0.6); }
.coll-soon-badge { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); background: rgba(200,164,90,0.15); border: 1px solid rgba(200,164,90,0.3); padding: 0.4rem 1rem; border-radius: 4px; z-index: 1; }
/* Language selector */
.coll-lang-selector { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; padding: 0.75rem 0; margin-bottom: 0.5rem; }
.coll-lang-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); }
.coll-lang-btn { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.85rem; padding: 0.45rem 1rem; border-radius: 6px; border: 1px solid var(--border2); background: transparent; color: var(--text2); cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; gap: 0.4rem; }
.coll-lang-btn:hover { border-color: var(--teal); color: var(--teal); }
.coll-lang-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(200,164,90,0.08); }
.coll-lang-soon { opacity: 0.5; cursor: default; pointer-events: none; }
.coll-soon-badge-sm { font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); background: rgba(200,164,90,0.12); padding: 0.15rem 0.4rem; border-radius: 3px; }
/* Album view (open) */
.coll-av-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.coll-av-info { flex: 1; min-width: 200px; }
.coll-av-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.4rem; color: var(--gold); margin: 0.5rem 0 0.3rem; }
.coll-av-stats { font-size: 0.85rem; color: var(--text2); margin-bottom: 0.5rem; }
.coll-av-controls { display: flex; gap: 0.4rem; }
/* Cards in album — 9 per page (3x3) */
.coll-av-grid-page { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 720px; margin: 0 auto; position: relative; }
.coll-av-grid-full { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.7rem; }
.coll-av-card { background: var(--card); border: 2px solid var(--border); border-radius: 10px; overflow: hidden; cursor: pointer; transition: transform 0.15s, border-color 0.15s; position: relative; }
.coll-av-card:hover { transform: translateY(-2px); border-color: var(--teal); }
.coll-av-card.owned { border-color: var(--gold); }
.coll-av-card.coll-legend { border-color: rgba(200,164,90,0.5); }
.coll-av-card.coll-epic { border-color: rgba(168,85,247,0.4); }
.coll-av-card.coll-rare { border-color: rgba(62,207,207,0.3); }
.coll-av-card.coll-showcase { border-color: rgba(200,164,90,0.35); }
.coll-av-card.owned.coll-legend { box-shadow: 0 0 14px rgba(200,164,90,0.2); }
.coll-av-card.owned.coll-epic { box-shadow: 0 0 14px rgba(168,85,247,0.15); }
.coll-av-card-img { position: relative; }
.coll-av-card-img img { width: 100%; aspect-ratio: 0.716; object-fit: cover; display: block; }
.coll-av-placeholder { aspect-ratio: 0.716; background: var(--bg3); }
.collezione-qty { position: absolute; top: 6px; right: 6px; background: var(--gold); color: var(--bg); font-size: 0.7rem; font-weight: 700; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.coll-av-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10,12,20,0.78); display: flex; align-items: center; justify-content: center; gap: 0.5rem; opacity: 0; transition: opacity 0.2s; }
.coll-av-card:hover .coll-av-overlay { opacity: 1; }
.coll-av-overlay span { color: var(--white); font-weight: 700; font-size: 1.1rem; }
.coll-add-hint { font-size: 0.85rem !important; color: var(--teal) !important; font-weight: 600 !important; }
.coll-btn-minus, .coll-btn-plus { width: 32px; height: 32px; border-radius: 50%; border: none; font-size: 1.1rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.coll-btn-minus { background: rgba(224,85,85,0.2); color: var(--red); }
.coll-btn-minus:hover { background: rgba(224,85,85,0.4); }
.coll-btn-plus { background: rgba(62,207,207,0.2); color: var(--teal); }
.coll-btn-plus:hover { background: rgba(62,207,207,0.4); }
.coll-av-card-info { padding: 0.4rem 0.6rem; }
.coll-av-card-name { font-size: 0.78rem; color: var(--white); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coll-av-card-meta { font-size: 0.65rem; color: var(--text3); }
/* Pagination */
/* Side arrows */
.coll-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 80; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border2); background: var(--card); color: var(--teal); font-size: 1.8rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 16px rgba(0,0,0,0.3); line-height: 1; }
.coll-arrow:hover { background: var(--teal); color: var(--bg); border-color: var(--teal); }
.coll-arrow-left { left: -52px; }
.coll-arrow-right { right: -52px; }
.coll-av-pag { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1rem 0; }
.coll-av-pag-info { font-size: 0.85rem; color: var(--text3); }
@media (max-width: 768px) {
  .coll-arrow { width: 36px; height: 36px; font-size: 1.5rem; }
  .coll-arrow-left { left: 0.5rem; }
  .coll-arrow-right { right: 0.5rem; }
}
@media (max-width: 768px) {
  .coll-overview { grid-template-columns: repeat(2, 1fr); padding: 1rem; gap: 0.75rem; }
  .coll-albums { grid-template-columns: repeat(2, 1fr); }
  .coll-album-cover { height: 130px; }
  .coll-av-header { flex-direction: column; align-items: flex-start; }
  .coll-av-grid-page { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .coll-av-grid-full { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

/* ── CLASSIFICHE ── */
.classifiche-page { max-width: 900px; margin: 0 auto; padding: 0 1rem; }
.classifiche-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.classifiche-table th { background: var(--card2); color: var(--gold); font-family: 'Cinzel', serif; font-size: 0.75rem; padding: 0.8rem 0.75rem; text-align: left; border-bottom: 2px solid var(--gold); white-space: nowrap; }
.classifiche-table th.col-center { text-align: center; }
.classifiche-table th.col-rank { width: 50px; }
.classifiche-table td { padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--border); font-size: 0.82rem; color: var(--text); }
.classifiche-table td.col-center { text-align: center; }
.classifiche-table td.col-gold { text-align: center; color: var(--gold); font-weight: 700; }
.classifiche-table td.col-teal { text-align: center; }
.classifiche-table td.col-teal strong { color: var(--teal); font-size: 1.05rem; }
.classifiche-table tr:hover td { background: rgba(62,207,207,0.04); }
.classifiche-rank { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.1rem; }
.classifiche-rank-1 { color: #ffd700; }
.classifiche-rank-2 { color: #c0c0c0; }
.classifiche-rank-3 { color: #cd7f32; }
.classifiche-user { display: flex; align-items: center; gap: 0.6rem; }
.classifiche-user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: var(--bg); flex-shrink: 0; }

/* ── TORNEI ── */
.tornei-page { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.tornei-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); }
.torneo-card { background: var(--card); cursor: pointer; transition: background 0.2s; overflow: hidden; display: flex; flex-direction: column; }
.torneo-card:hover { background: var(--card2); }
.torneo-card .torneo-body { flex: 1; }
.torneo-card .torneo-footer { margin-top: auto; }
.badge-open { background: rgba(78,203,128,0.15); color: var(--green); }
.badge-active { background: rgba(62,207,207,0.15); color: var(--teal); }
.badge-closed { background: rgba(224,85,85,0.15); color: var(--red); }
.bracket-round { display: flex; flex-direction: column; gap: 1.5rem; min-width: 200px; }
.bracket-match { background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.bracket-player { padding: 0.6rem 0.8rem; font-size: 0.82rem; color: var(--text); display: flex; justify-content: space-between; }
.bracket-player + .bracket-player { border-top: 1px solid var(--border); }
.bracket-player.winner { color: var(--gold); font-weight: 600; background: rgba(200,164,90,0.08); }
.swiss-round { display: flex; flex-direction: column; gap: 0.5rem; }
.swiss-match { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 8px; font-size: 0.85rem; }
.swiss-p { font-weight: 600; min-width: 100px; }
.swiss-res { margin-left: auto; }
@media (max-width: 768px) { .swiss-match { flex-wrap: wrap; gap: 0.4rem; } .swiss-p { min-width: auto; } }
.import-section { padding-bottom: 0.5rem; }
.torneo-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; padding: 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.torneo-info-item {}
.torneo-info-label { font-family: 'Barlow Condensed', sans-serif; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); margin-bottom: 0.2rem; }
.torneo-info-value { color: var(--white); font-size: 0.92rem; font-weight: 600; }

/* ── NOTIFICHE ── */
.notif-bell { position: relative; cursor: pointer; display: inline-flex; align-items: center; margin-right: 0.75rem; }
.notif-bell svg { color: var(--text2); transition: color 0.2s; }
.notif-bell:hover svg { color: var(--teal); }
.notif-bell-count { position: absolute; top: -5px; right: -5px; background: var(--red); color: #fff; font-size: 0.6rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.notif-dropdown { position: absolute; top: calc(100% + 10px); right: -1rem; width: 320px; max-height: 400px; overflow-y: auto; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.5); z-index: 1000; display: none; }
.notif-dropdown.open { display: block; }
.notif-dropdown-header { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.notif-dropdown-header span { color: var(--gold); font-family: 'Cinzel', serif; font-size: 0.85rem; }
.notif-mark-read { background: none; border: none; color: var(--teal); cursor: pointer; font-size: 0.75rem; font-family: 'Barlow Condensed', sans-serif; }
.notif-item { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.82rem; color: var(--text); cursor: pointer; transition: background 0.15s; display: flex; gap: 0.6rem; align-items: flex-start; }
.notif-item:hover { background: rgba(62,207,207,0.05); }
.notif-item.unread { background: rgba(62,207,207,0.03); }
.notif-item-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.notif-item-body { flex: 1; }
.notif-item-text { line-height: 1.4; }
.notif-item-time { font-size: 0.7rem; color: var(--text3); margin-top: 2px; }
.notif-empty { padding: 2rem; text-align: center; color: var(--text3); font-size: 0.85rem; }

/* ── Side button "Area Personale" ── */
.side-btn-dashboard {
  position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 90;
  display: flex; align-items: center; gap: 0.7rem;
  background: linear-gradient(135deg, var(--teal), #2ab8b8); color: var(--bg); text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.92rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  padding: 0.9rem 1.5rem; border-radius: 50px;
  box-shadow: 0 4px 20px rgba(62,207,207,0.4), 0 0 0 0 rgba(62,207,207,0);
  transition: all 0.25s; animation: sideBtn 3s ease-in-out infinite;
}
.side-btn-dashboard:hover {
  background: linear-gradient(135deg, var(--teal2), var(--teal)); transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(62,207,207,0.55);
}
.side-btn-dashboard svg { width: 20px; height: 20px; flex-shrink: 0; }
@keyframes sideBtn { 0%,100%{box-shadow:0 4px 20px rgba(62,207,207,0.4),0 0 0 0 rgba(62,207,207,0.3)} 50%{box-shadow:0 4px 20px rgba(62,207,207,0.4),0 0 0 8px rgba(62,207,207,0)} }
.side-btn-wrap { position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 90; display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.side-btn-wrap .side-btn-dashboard { position: static; }
.side-btn-hints { position: relative; height: 1.6rem; min-width: 200px; }
.side-btn-hints span { position: absolute; left: 0; bottom: 0; white-space: nowrap; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.06em; color: var(--teal); background: rgba(10,12,20,0.88); backdrop-filter: blur(8px); padding: 0.5rem 1.2rem; border-radius: 24px; border: 1px solid rgba(62,207,207,0.25); opacity: 0; transform: translateY(6px); transition: opacity 0.5s, transform 0.5s; pointer-events: none; }
.side-btn-hints span.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) {
  .side-btn-dashboard { left: 1rem; bottom: 1rem; font-size: 0.82rem; padding: 0.75rem 1.2rem; }
}

/* ── HOME — Features section ── */
.home-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.home-feature-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; text-decoration: none; color: var(--text); transition: transform 0.2s, border-color 0.2s; display: flex; flex-direction: column; gap: 0.4rem; }
.home-feature-card:hover { transform: translateY(-3px); border-color: var(--teal); }
.home-feature-icon { font-size: 2rem; margin-bottom: 0.25rem; }
.home-feature-card h3 { font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 700; color: var(--white); margin: 0; }
.home-feature-card p { font-size: 0.82rem; color: var(--text2); line-height: 1.5; margin: 0; }
.home-feature-highlight { border-color: var(--teal); background: linear-gradient(135deg, rgba(62,207,207,0.06), var(--card)); position: relative; }
.home-feature-highlight h3 { color: var(--teal); }
.home-feature-arrow { font-size: 1.3rem; color: var(--teal); margin-top: auto; align-self: flex-end; }
.home-user-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1100px; margin: 0 auto 0; padding: 1rem 2rem; background: linear-gradient(135deg, rgba(62,207,207,0.08), rgba(200,164,90,0.06)); border: 1px solid rgba(62,207,207,0.15); border-radius: 10px; color: var(--text); font-size: 0.9rem; }
@media (max-width: 640px) {
  .home-features { grid-template-columns: 1fr; }
  .home-user-banner { flex-direction: column; text-align: center; margin: 0 1rem; }
}

/* ── DASHBOARD — Sidebar layout ── */
.dash-layout { display: flex; min-height: calc(100vh - var(--nav-h)); }
.dash-sidebar { width: 260px; flex-shrink: 0; background: var(--bg2); border-right: 1px solid var(--border); padding: 1.5rem 0; position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto; }
.dash-sidebar-user { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 0 1.5rem 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 0.75rem; }
.dash-sidebar-name { color: var(--white); font-family: 'Cinzel', serif; font-weight: 700; font-size: 0.95rem; }
.dash-sidebar-nav { display: flex; flex-direction: column; }
.dash-sidebar-label { font-family: 'Barlow Condensed', sans-serif; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text3); padding: 1rem 1.5rem 0.4rem; }
.dash-sidebar-link { display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 1.5rem; font-family: 'Barlow Condensed', sans-serif; font-size: 0.88rem; font-weight: 600; color: var(--text2); text-decoration: none; transition: all 0.15s; cursor: pointer; border-left: 3px solid transparent; }
.dash-sidebar-link:hover { color: var(--teal); background: rgba(62,207,207,0.04); }
.dash-sidebar-link.active { color: var(--teal); background: rgba(62,207,207,0.07); border-left-color: var(--teal); }
.dash-sidebar-icon { font-size: 1rem; width: 1.2rem; text-align: center; flex-shrink: 0; }
.dash-sidebar-logout { color: var(--red); }
.dash-sidebar-logout:hover { color: var(--red); background: rgba(224,85,85,0.06); }
.dash-main { flex: 1; min-width: 0; padding: 2rem 2.5rem; }
.dash-mobile-toggle { display: none; }
.dash-section-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.3rem; color: var(--white); margin: 0 0 1.5rem; }
.dash-section-subtitle { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1rem; color: var(--gold); margin: 0 0 1rem; }
.dash-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin-bottom: 2rem; }
.dash-quick-btn { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1.2rem 0.75rem; background: var(--card); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text); font-size: 0.8rem; font-weight: 600; transition: border-color 0.2s, transform 0.2s; text-align: center; }
.dash-quick-btn:hover { border-color: var(--teal); transform: translateY(-2px); color: var(--teal); }
.dash-quick-icon { font-size: 1.5rem; }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.75rem; margin-bottom: 2rem; }
.dash-list { display: flex; flex-direction: column; gap: 0.5rem; }
.dash-list-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 8px; font-size: 0.85rem; color: var(--text); }
.dash-list-main { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; flex: 1; min-width: 0; }
.dash-fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.dash-fav-card { display: flex; gap: 1rem; padding: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 12px; transition: background 0.2s; position: relative; }
.dash-fav-card:hover { background: var(--card2); }
.dash-fav-photo { width: 100px; height: 140px; border-radius: 8px; overflow: hidden; flex-shrink: 0; position: relative; border: 1px solid var(--border); background: var(--bg2); }
.dash-fav-photo img { width: 100%; height: 100%; object-fit: cover; }
.dash-fav-photo .lp-default, .dash-fav-photo .lp-hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s; }
.dash-fav-photo .lp-hover { opacity: 0; }
.dash-fav-photo:hover .lp-hover { opacity: 1; }
.dash-fav-photo:hover .lp-default { opacity: 0; }
.dash-fav-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.dash-fav-title { color: var(--white); font-weight: 600; font-size: 0.95rem; }
.dash-fav-title:hover { color: var(--teal); }
.dash-fav-remove { position: absolute; top: 0.6rem; right: 0.7rem; background: none; border: none; color: #e05555; font-size: 1.2rem; cursor: pointer; padding: 0.3rem; line-height: 1; opacity: 0.6; transition: opacity 0.2s; }
.dash-fav-remove:hover { opacity: 1; }
@media (max-width: 640px) { .dash-fav-grid { grid-template-columns: 1fr; } }
.dash-settings { max-width: 480px; }
.dash-settings-divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
/* ── Area Personale Landing (Apple/Stripe style) ── */
.ap-landing { overflow: hidden; }

/* Hero */
.ap-hero { min-height: 85vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; padding: 0 2rem; }
.ap-hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(62,207,207,0.06) 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 80% 60%, rgba(200,164,90,0.05) 0%, transparent 60%); }
.ap-hero-content { position: relative; z-index: 1; max-width: 700px; }
.ap-eyebrow { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); margin-bottom: 1.5rem; }
.ap-title { font-family: 'Cinzel', serif; font-weight: 900; font-size: clamp(2.8rem, 6vw, 4.5rem); line-height: 1.05; color: var(--white); margin: 0 0 1.5rem; }
.ap-sub { font-size: 1.15rem; color: var(--text2); line-height: 1.6; max-width: 500px; margin: 0 auto 2.5rem; }
.ap-hero-cta { margin-bottom: 3rem; }
.ap-scroll-hint { font-family: 'Barlow Condensed', sans-serif; font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text3); animation: apBounce 2s ease-in-out infinite; }
@keyframes apBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }
/* Hero animated gradient title */
.ap-title { background: linear-gradient(135deg, var(--white) 0%, var(--teal) 50%, var(--gold) 100%); background-size: 200% 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: apGradient 6s ease infinite; }
@keyframes apGradient { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }

/* Hero glow orbs */
.ap-hero-bg::before, .ap-hero-bg::after { content:""; position:absolute; border-radius:50%; filter:blur(80px); animation:apOrb 8s ease-in-out infinite; }
.ap-hero-bg::before { width:300px; height:300px; background:rgba(62,207,207,0.12); top:20%; left:15%; }
.ap-hero-bg::after { width:250px; height:250px; background:rgba(200,164,90,0.1); bottom:20%; right:15%; animation-delay:-4s; animation-name:apOrb2; }
@keyframes apOrb { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(30px,-20px) scale(1.1)} 66%{transform:translate(-20px,30px) scale(0.9)} }
@keyframes apOrb2 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(-25px,25px) scale(1.15)} 66%{transform:translate(20px,-15px) scale(0.85)} }

/* Reveal */
.ap-reveal { opacity: 0; transform: translateY(40px) scale(0.97); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.ap-reveal.ap-visible { opacity: 1; transform: translateY(0) scale(1); }
.ap-d1 { transition-delay: 0.15s; }
.ap-d2 { transition-delay: 0.3s; }
.ap-d3 { transition-delay: 0.45s; }
.ap-d4 { transition-delay: 0.6s; }
.ap-reveal-scroll { opacity: 0; transform: translateY(80px); transition: opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1); }
.ap-reveal-scroll.ap-visible { opacity: 1; transform: translateY(0); }

/* Stat number glow pulse */
.ap-stat-num { text-shadow: 0 0 20px rgba(62,207,207,0.3); }

/* Stats */
.ap-section { max-width: 1100px; margin: 0 auto; padding: 5rem 2rem; }
.ap-stats-section { padding: 3rem 2rem; }
.ap-stats { display: flex; justify-content: center; gap: 3.5rem; flex-wrap: wrap; }
.ap-stat { text-align: center; }
.ap-stat-num { font-family: 'Barlow Condensed', sans-serif; font-size: 3rem; font-weight: 700; color: var(--teal); display: block; line-height: 1; }
.ap-stat-label { font-family: 'Barlow Condensed', sans-serif; font-size: 0.78rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 0.3rem; }

/* Feature sections */
.ap-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.ap-feature-reverse { direction: rtl; }
.ap-feature-reverse > * { direction: ltr; }
.ap-feature-tag { font-family: 'Barlow Condensed', sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.75rem; }
.ap-feature-text h2 { font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--white); margin: 0 0 1rem; line-height: 1.15; }
.ap-feature-text p { color: var(--text2); font-size: 1rem; line-height: 1.65; margin: 0 0 1.5rem; }

/* Mock visuals */
.ap-feature-visual { display: flex; flex-direction: column; gap: 0.75rem; }
.ap-mock-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem; transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s, border-color 0.3s; perspective: 800px; }
.ap-mock-card:hover { transform: translateY(-4px) rotateX(2deg); box-shadow: 0 12px 40px rgba(62,207,207,0.12); border-color: var(--teal); }
.ap-mock-title { color: var(--white); font-weight: 600; font-size: 0.92rem; margin: 0.3rem 0 0.2rem; }
.ap-mock-meta { color: var(--text3); font-size: 0.78rem; }
.ap-mock-progress { margin-bottom: 0.5rem; }
.ap-mock-prog-label { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text2); margin-bottom: 0.3rem; }
.ap-mock-prog-label span { color: var(--teal); font-weight: 700; }
.ap-animate-bar { transition: width 1.2s cubic-bezier(0.16,1,0.3,1) 0.3s; }
/* Bracket mock */
.ap-mock-bracket { display: flex; gap: 1.5rem; }
.ap-mock-match { background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; flex: 1; }
.ap-mock-p { padding: 0.6rem 0.8rem; font-size: 0.82rem; color: var(--text); }
.ap-mock-p + .ap-mock-p { border-top: 1px solid var(--border); }
.ap-mock-p.winner { color: var(--gold); font-weight: 600; background: rgba(200,164,90,0.06); }

/* Stagger mock cards */
.ap-visible .ap-mock-card, .ap-visible .ap-mock-progress, .ap-visible .ap-mock-match { opacity: 0; animation: apCardIn 0.6s cubic-bezier(0.16,1,0.3,1) forwards; }
.ap-visible .ap-mock-card:nth-child(1), .ap-visible .ap-mock-match:nth-child(1), .ap-visible .ap-mock-progress:nth-child(1) { animation-delay: 0.2s; }
.ap-visible .ap-mock-card:nth-child(2), .ap-visible .ap-mock-match:nth-child(2), .ap-visible .ap-mock-progress:nth-child(2) { animation-delay: 0.35s; }
.ap-visible .ap-mock-card:nth-child(3), .ap-visible .ap-mock-progress:nth-child(3) { animation-delay: 0.5s; }
@keyframes apCardIn { 0%{opacity:0;transform:translateY(20px) scale(0.95)} 100%{opacity:1;transform:translateY(0) scale(1)} }

/* Feature text highlight on scroll */
.ap-feature-text h2 { transition: color 0.5s; }
.ap-visible .ap-feature-text h2 { background: linear-gradient(90deg, var(--white), var(--teal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* CTA glow */
.ap-final-cta .btn-gold { animation: apGlow 3s ease-in-out infinite; }
@keyframes apGlow { 0%,100%{box-shadow:0 4px 24px rgba(200,164,90,0.3)} 50%{box-shadow:0 4px 40px rgba(200,164,90,0.6),0 0 60px rgba(200,164,90,0.15)} }

/* Final CTA */
.ap-final-cta { text-align: center; padding: 6rem 2rem; position: relative; }
.ap-final-cta::before { content:""; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:400px; height:400px; background:radial-gradient(circle, rgba(200,164,90,0.08) 0%, transparent 70%); border-radius:50%; pointer-events:none; }
.ap-final-cta h2 { font-family: 'Cinzel', serif; font-weight: 900; font-size: clamp(2rem, 5vw, 3.5rem); color: var(--gold); margin: 0 0 0.75rem; }
.ap-final-cta p { color: var(--text2); font-size: 1.1rem; margin-bottom: 2rem; }

@media (max-width: 768px) {
  .ap-feature { grid-template-columns: 1fr; gap: 2rem; }
  .ap-feature-reverse { direction: ltr; }
  .ap-section { padding: 3rem 1.5rem; }
  .ap-stats { gap: 2rem; }
  .ap-stat-num { font-size: 2.2rem; }
  .ap-mock-bracket { flex-direction: column; }
}
/* Dashboard preview (non-logged) */
.dash-preview { max-width: 1000px; margin: 0 auto; padding: 2rem 1rem; }
.dash-preview-header { text-align: center; margin-bottom: 2rem; }
.dash-preview-sub { color: var(--text2); font-size: 0.95rem; margin-top: 0.5rem; }
.dash-layout-preview { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; pointer-events: none; }
.dash-sidebar-preview { pointer-events: none; }
.dash-main-preview { pointer-events: auto; padding: 2rem; }
.dash-preview-cta { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; pointer-events: auto; }
@media (max-width: 768px) {
  .dash-layout-preview { flex-direction: column; }
  .dash-sidebar-preview { width: 100%; height: auto; position: static; transform: none; max-height: none; border-right: none; border-bottom: 1px solid var(--border); }
  .dash-preview-cta { flex-direction: column; align-items: center; }
}
.dash-sidebar-sep { height: 1px; background: var(--border); margin: 0.5rem 1.5rem; }
.dash-home-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 0.6rem; margin-bottom: 1.5rem; }
.dash-stat-box { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 0.75rem; text-align: center; }
.dash-stat-val { font-size: 1.5rem; font-weight: 700; color: var(--teal); font-family: 'Barlow Condensed', sans-serif; }
.dash-stat-lbl { font-size: 0.68rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 0.2rem; }
/* Onboarding steps */
.dash-onboarding { background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 2rem; overflow: hidden; }
.dash-onboarding-header { padding: 0.75rem 1.2rem; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); background: rgba(200,164,90,0.06); border-bottom: 1px solid var(--border); }
.dash-step { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); transition: background 0.15s; }
.dash-step:last-child { border-bottom: none; }
.dash-step:hover { background: rgba(62,207,207,0.03); }
.dash-step-icon { font-size: 1.2rem; flex-shrink: 0; }
.dash-step-text { flex: 1; font-size: 0.88rem; }
.dash-step .btn-sm { flex-shrink: 0; }
/* Empty states */
.dash-empty { text-align: center; padding: 3rem 1.5rem; background: var(--card); border: 1px dashed var(--border2); border-radius: 12px; }
.dash-empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.5; }
.dash-empty p { color: var(--text); font-size: 0.95rem; margin: 0 0 0.3rem; }
.dash-empty-hint { color: var(--text3); font-size: 0.82rem; margin-bottom: 1rem !important; }
/* Progress bar */
.dash-progress { height: 8px; background: var(--bg3); border-radius: 4px; overflow: hidden; }
.dash-progress-bar { height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: 4px; transition: width 0.5s ease; min-width: 2px; }

/* ── RESPONSIVE — new features ── */
@media (max-width: 768px) {
  .guide-page, .collezione-page, .tornei-page { padding: 0 0.75rem; }
  .feature-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .feature-actions-right { flex-wrap: wrap; }
  .search-input-sm { max-width: 100%; }
  .nav-more-dropdown { left: auto; right: 0; transform: none; }
  .notif-dropdown { right: -3rem; width: calc(100vw - 2rem); max-width: 320px; }
  .bracket-container { gap: 1rem; }
  .bracket-round { min-width: 180px; }
  .classifiche-table th, .classifiche-table td { padding: 0.6rem 0.5rem; font-size: 0.75rem; }
}
@media (max-width: 640px) {
  .guide-grid, .tornei-grid { grid-template-columns: 1fr; }
  .collezione-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .profilo-header { flex-direction: column; text-align: center; }
  .profilo-info-sub { justify-content: center; }
  .collezione-summary { grid-template-columns: repeat(3, 1fr); }
}
/* Dashboard sidebar responsive */
@media (max-width: 768px) {
  .dash-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; height: auto; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 150; transform: translateX(-100%); transition: transform 0.25s ease; border-right: none; border-bottom: 1px solid var(--border); max-height: calc(100vh - var(--nav-h)); }
  .dash-sidebar.open { transform: translateX(0); }
  .dash-main { padding: 1rem; }
  .dash-mobile-toggle { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; margin-bottom: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 8px; color: var(--teal); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
  .dash-quick { grid-template-columns: repeat(2, 1fr); }
  .dash-stats { grid-template-columns: repeat(3, 1fr); }
}

/* Global sidebar mobile */
@media (max-width: 768px) {
  .rbz-has-sidebar { flex-direction: column; }
  .rbz-global-sidebar { width: 100%; height: auto; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 150; transform: translateX(-100%); transition: transform 0.25s ease; border-right: none; border-bottom: 1px solid var(--border); max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
  .rbz-global-sidebar.open { transform: translateX(0); }
  .rbz-sidebar-toggle { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; margin: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 8px; color: var(--teal); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
}
@media (min-width: 769px) {
  .rbz-sidebar-toggle { display: none; }
}
.sidebar-backdrop { display: none; position: fixed; inset: 0; top: var(--nav-h); background: rgba(0,0,0,0.5); z-index: 149; }
.sidebar-backdrop.active { display: block; }

/* ── Messages / Chat ── */
.msg-layout { display: flex; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; height: calc(100vh - var(--nav-h) - 10rem); min-height: 400px; }
.msg-conv-list { width: 300px; flex-shrink: 0; border-right: 1px solid var(--border); overflow-y: auto; background: var(--bg2); }
.msg-conv-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid var(--border); position: relative; }
.msg-conv-item:hover, .msg-conv-item.active { background: var(--card); }
.msg-conv-item.msg-unread { background: rgba(62,207,207,0.06); }
.msg-unread-badge { position: absolute; top: 0.5rem; right: 0.5rem; background: var(--teal); color: var(--bg); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.msg-chat { flex: 1; display: flex; flex-direction: column; background: var(--bg); }
.msg-chat-header { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); background: var(--card); display: flex; align-items: center; }
.msg-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.msg-bubble { max-width: 75%; padding: 0.6rem 0.9rem; border-radius: 12px; font-size: 0.88rem; line-height: 1.5; }
.msg-mine { align-self: flex-end; background: rgba(62,207,207,0.15); border-bottom-right-radius: 4px; }
.msg-other { align-self: flex-start; background: var(--card); border-bottom-left-radius: 4px; }
.msg-text { color: var(--text); word-break: break-word; }
.msg-time { font-size: 0.68rem; color: var(--text3); margin-top: 0.2rem; text-align: right; }
.msg-input-wrap { display: flex; gap: 0.5rem; align-items: flex-end; padding: 0.75rem 1rem; border-top: 1px solid var(--border); background: var(--card); }
.msg-input-wrap textarea { flex: 1; resize: none; }
@media (max-width: 768px) {
  .msg-layout { flex-direction: column; height: auto; min-height: auto; }
  .msg-conv-list { width: 100%; max-height: 250px; border-right: none; border-bottom: 1px solid var(--border); }
}

/* ── Creator ── */
.creator-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.creator-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; text-align: center; transition: border-color 0.15s; }
.creator-card:hover { border-color: var(--teal); }
.creator-featured { border-color: var(--gold); box-shadow: 0 0 20px rgba(200,164,90,0.1); }
.creator-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto; display: block; }
.creator-links a { text-decoration: none; transition: opacity 0.15s; }
.creator-links a:hover { opacity: 0.8; }

/* ── Negozi ── */
.stores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 1.25rem; }
.store-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: border-color 0.15s; }
.store-card:hover { border-color: var(--teal); }
.store-thumb { width: 100%; height: 160px; object-fit: cover; }
.store-body { padding: 1.25rem; }
@media (max-width: 768px) { .stores-grid { grid-template-columns: 1fr; } }

/* ── Deck Builder ── */
.deck-builder-layout { display: flex; gap: 2rem; margin-top: 1.5rem; }
.db-search-panel { flex: 1; min-width: 0; }
.db-deck-panel { width: 320px; flex-shrink: 0; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem; position: sticky; top: calc(var(--nav-h) + 1rem); max-height: calc(100vh - var(--nav-h) - 2rem); overflow-y: auto; }
.db-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); gap: 0.5rem; }
.db-card { position: relative; border-radius: 6px; border: 2px solid #333; overflow: hidden; cursor: pointer; transition: transform 0.15s, border-color 0.15s; aspect-ratio: 744/1039; }
.db-card:hover { transform: scale(1.05); z-index: 2; }
.db-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.db-card-qty { position: absolute; top: 4px; right: 4px; background: var(--teal); color: var(--bg); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.75rem; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.db-deck-stats { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.db-stat { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--teal); background: rgba(62,207,207,0.08); padding: 0.25rem 0.6rem; border-radius: 4px; }
.db-stat-sm { font-size: 0.75rem; color: var(--text2); background: var(--bg2); }
.db-deck-list { max-height: 400px; overflow-y: auto; }
.db-deck-group-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin: 0.75rem 0 0.3rem; }
.db-deck-item { display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.4rem; border-radius: 4px; cursor: pointer; font-size: 0.82rem; transition: background 0.1s; }
.db-deck-item:hover { background: rgba(224,85,85,0.08); }
.db-deck-item-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.db-deck-item-name { flex: 1; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-deck-item-qty { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; color: var(--text2); font-size: 0.8rem; }
.db-deck-item-remove { color: var(--text3); font-size: 0.7rem; cursor: pointer; opacity: 0; transition: opacity 0.15s; }
.db-deck-item:hover .db-deck-item-remove { opacity: 1; }
.db-load-item { display: flex; justify-content: space-between; padding: 0.5rem 0.6rem; border-radius: 4px; cursor: pointer; font-size: 0.85rem; color: var(--text); transition: background 0.1s; }
.db-load-item:hover { background: var(--bg2); }
.db-deck-item-energy { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.75rem; color: var(--gold); background: rgba(200,164,90,0.12); width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.db-stats-row { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; margin-bottom: 0.3rem; }
.db-domain-badge { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.75rem; padding: 0.15rem 0.5rem; border-radius: 12px; letter-spacing: 0.04em; }
.db-energy-curve { display: flex; gap: 2px; align-items: flex-end; height: 70px; padding: 0.25rem 0; }
.db-curve-col { display: flex; flex-direction: column; align-items: center; flex: 1; gap: 2px; }
.db-curve-bar { width: 100%; background: linear-gradient(to top, var(--gold), rgba(200,164,90,0.4)); border-radius: 2px 2px 0 0; min-width: 14px; transition: height 0.2s; }
.db-curve-val { font-family: 'Barlow Condensed', sans-serif; font-size: 0.65rem; color: var(--text2); font-weight: 600; min-height: 12px; }
.db-curve-label { font-family: 'Barlow Condensed', sans-serif; font-size: 0.65rem; color: var(--text3); }

/* ── Deck Viewer ── */
.dv-header h1 { margin-bottom: 0; }
.dv-layout { display: flex; gap: 2rem; }
.dv-list { width: 300px; flex-shrink: 0; }
.dv-gallery { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.5rem; align-content: start; }
.dv-group-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin: 1rem 0 0.3rem; }
.dv-group-title:first-child { margin-top: 0; }
.dv-item { display: flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.5rem; border-radius: 4px; font-size: 0.85rem; cursor: default; transition: background 0.1s; }
.dv-item:hover { background: rgba(62,207,207,0.06); }
.dv-item-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dv-item-name { flex: 1; color: var(--text); }
.dv-item-qty { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; color: var(--text2); }
.dv-gallery-card { border-radius: 6px; border: 2px solid #333; overflow: hidden; transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s; aspect-ratio: 744/1039; }
.dv-gallery-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dv-gallery-card:hover { transform: scale(1.05); z-index: 2; }
.dv-highlight { border-color: var(--teal) !important; box-shadow: 0 0 12px rgba(62,207,207,0.4); transform: scale(1.03); }

@media (max-width: 768px) {
  .deck-builder-layout { flex-direction: column; }
  .db-deck-panel { width: 100%; position: static; max-height: none; }
  .dv-layout { flex-direction: column; }
  .dv-list { width: 100%; }
  .db-card-grid { grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)); }
}

/* ── Discord Widget ── */
.discord-widget {
  max-width: 360px;
  margin: 2.5rem auto 0;
  background: #1a1a2e;
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 16px;
  overflow: hidden;
  font-family: inherit;
}
.discord-widget-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.2rem;
  background: rgba(88,101,242,0.1);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}
.discord-widget-stats {
  display: flex;
  gap: 1.2rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.dw-online { display: flex; align-items: center; gap: 0.3rem; }
.dw-dot {
  width: 8px; height: 8px;
  background: #57F287;
  border-radius: 50%;
  display: inline-block;
}
.discord-widget-members {
  padding: 0.5rem 1.2rem;
  max-height: 200px;
  overflow-y: auto;
}
.dw-member {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
}
.dw-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.dw-name {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  flex: 1;
}
.dw-status {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.dw-status-online { background: #57F287; }
.dw-status-idle { background: #FEE75C; }
.dw-status-dnd { background: #ED4245; }
.dw-empty {
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
  padding: 0.5rem 0;
  text-align: center;
}
.discord-widget-join {
  display: block;
  text-align: center;
  padding: 0.8rem;
  background: #5865F2;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
}
.discord-widget-join:hover {
  background: #4752C4;
}
