/* ====================================================== */
/* style.css -- FOGLIO DI STILE UNICO PER L'INTERO SITO   */
/* ====================================================== */

/* ====================================================== */
/* 1. STILI GLOBALI (Base, Header, Footer, Bottoni, etc.) */
/* ====================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif; background: radial-gradient(circle at center, #1e1e3f 0%, #0a0a1a 100%); color: #ffffff; min-height: 100vh; overflow-x: hidden; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.main-header { background: #0a0a1a; padding: 15px 0; border-bottom: 2px solid #00cfff11; }
.main-header .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px; }
.logo { font-size: 1.5rem; font-weight: 800; color: #00cfff; }
.main-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.main-nav a { color: #ffffffcc; text-decoration: none; font-weight: 700; transition: color .3s; }
.main-nav a:hover, .main-nav a.active { color: #00cfff; }
.main-footer { text-align: center; padding: 24px 15px; color: #aaa; margin-top: 40px; background: #0a0a1a; }
#admin-abuse-timer { background: #0d102a; border: 2px solid #00cfff; border-radius: 14px; padding: 18px 34px; margin: 24px auto; max-width: 680px; text-align: center; box-shadow: 0 0 22px #00cfff66, 0 0 38px #00cfff33; animation: pulseGlow 2.4s ease-in-out infinite; }
#admin-abuse-timer .title { display: block; font-size: 22px; font-weight: 800; letter-spacing: .5px; color: #8fe9ff; margin-bottom: 6px; text-transform: uppercase; }
#admin-abuse-timer #countdown { font-size: 34px; font-weight: 900; color: #fff; letter-spacing: .5px; text-shadow: 0 0 10px #00cfff, 0 0 24px #00cfff99; }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 18px #00cfff66, 0 0 28px #00cfff33; } 50% { box-shadow: 0 0 28px #00cfffaa, 0 0 48px #00cfff55; } }
.btn-primary { background: #00cfff; color: #000; border: none; border-radius: 8px; padding: 10px 14px; font-weight: 800; cursor: pointer; transition: background-color .2s; text-decoration: none; }
.btn-ghost { background: #14172b; color: #cfefff; border: 1px solid #243056; border-radius: 8px; padding: 10px 14px; cursor: pointer; transition: background-color .2s; text-decoration: none; }
.btn-ghost.danger { border-color: #ff5c5c44; color: #ffaaaa; }
.btn-ghost.small { padding: 7px 10px; font-size: .9rem; }
.btn-link { background:#00cfff; color:#000; border:none; border-radius:8px; padding:8px 12px; font-weight:800; text-decoration:none; }
.checkbox-inline { color: #ddd; display: flex; align-items: center; gap: 8px; background: #14172b; padding: 10px 14px; border-radius: 10px; }
#cookie-banner { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #111427; color: #ccc; padding: 15px; align-items: center; justify-content: center; z-index: 9999; border-top: 1px solid #00cfff33; gap: 15px; }
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #1e223d; color: #fff; padding: 15px 20px; border-radius: 8px; border-left: 5px solid; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4); opacity: 0; transform: translateX(100%); transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); }
.toast.show { opacity: 1; transform: translateX(0); }
.toast.error { border-color: #f44336; } .toast.success { border-color: #4caf50; } .toast.info { border-color: #00cfff; }
/* In style.css, dopo le regole di .main-nav */

.header-search {
  display: flex;
  align-items: center;
  margin-left: auto; /* Spinge la barra a destra */
}

.header-search input {
  background: #1e223d;
  border: 1px solid #243056;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px 0 0 8px; /* Angoli arrotondati solo a sinistra */
  border-right: none;
}

.header-search button {
  background: #1e223d;
  border: 1px solid #243056;
  color: #00cfff;
  padding: 8px 12px;
  border-radius: 0 8px 8px 0; /* Angoli arrotondati solo a destra */
  cursor: pointer;
}

/* Stili per il menu a tendina */
.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; background-color: #111427; min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 1; border-radius: 8px; border: 1px solid #00cfff33; }
.dropdown-content a { color: #ccc; padding: 12px 16px; text-decoration: none; display: block; }
.dropdown-content a:hover { background-color: #1e223d; color: #fff; }
.dropdown:hover .dropdown-content { display: block; }

/* ====================================================== */
/* 2. STILI PAGINA CALCULATOR (INDEX.HTML)                */
/* ====================================================== */
.trade-container { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; margin-top: 20px; }
.trade-box { background: rgba(13, 16, 42, 0.7); padding: 25px; border-radius: 8px; width: 340px; border: 1px solid #00cfff88; box-shadow: 0 0 22px #00cfff66, 0 0 38px #00cfff33; animation: pulseGlow 3s ease-in-out infinite; transition: all 0.3s ease; }
.trade-box h2 { text-align: center; margin-bottom: 15px; }
.grid { display: grid; grid-template-columns: repeat(2, 150px); grid-gap: 15px; justify-content: center; }
.slot { background: rgba(255, 255, 255, 0.07); border: 2px dashed #666; border-radius: 15px; height: 140px; font-size: 38px; color: #aaa; display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer; transition: all .2s ease-in-out; }
.slot.filled { border: 2px solid #00cfff; flex-direction: column; padding: 6px; font-size: 13px; color: #fff; justify-content: center; }
.slot.filled .item-name { margin-top: 6px; }
.slot.filled img { max-width: 80px; max-height: 80px; object-fit: contain; }
.remove-button { position: absolute; top: 5px; right: 5px; background: #ff3c3c; border: none; border-radius: 50%; width: 22px; height: 22px; color: #fff; font-size: 12px; cursor: pointer; z-index: 2; }
.value-label { margin-top: 12px; text-align: center; font-weight: 700; background: #14172b; padding: 8px 12px; border-radius: 12px; font-size: 15px; color: #ffc107; }
#value-difference { text-align: center; font-size: 1.2rem; font-weight: 500; margin-top: 30px; line-height: 1.6; padding: 0 15px; }
.result-ok { color: #ffc107; font-weight: 700; font-size: 1.3rem; }
.result-bad { color: #ff4d4d; font-weight: 700; font-size: 1.3rem; }
#reset-button { background: #00cfff; border: none; padding: 10px 20px; border-radius: 12px; font-weight: 800; color: #000; cursor: pointer; display: block; margin: 20px auto; transition: all .3s; box-shadow: 0 0 12px #00cfff66, 0 0 20px #00cfff33; animation: pulseButtonGlow 2.8s ease-in-out infinite; }
#reset-button:hover { background: #00b8dd; transform: translateY(-2px); box-shadow: 0 0 18px #00cfffaa, 0 0 30px #00cfff55; }
@keyframes pulseButtonGlow { 0%, 100% { box-shadow: 0 0 12px #00cfff66, 0 0 20px #00cfff33; } 50% { box-shadow: 0 0 20px #00cfff88, 0 0 32px #00cfff44; } }

/* ----- MODAL (CALCULATOR) ----- */
.modal { position: fixed; inset: 0; background: rgba(10, 12, 28, 0.85); display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal:not(.hidden) { display: flex; }
.modal .modal-content { position: relative; background: #161933; color: #fff; width: 92%; max-width: 960px; max-height: 85vh; overflow: auto; padding: 24px; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.55); }
.modal .close-modal { position: absolute; top: 10px; right: 14px; background: transparent; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.modal #searchInput { width: 100%; padding: 12px 14px; border: none; border-radius: 10px; background: #1e223d; color: #fff; margin: 10px 0 16px; }
.brainrot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.brainrot-card { position: relative; background: #0a0a1a; border: 2px solid; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; overflow: hidden; }
.brainrot-card:hover { transform: translateY(-3px); }
.brainrot-card img { max-width: 120px; max-height: 120px; width: auto; height: auto; object-fit: contain; display: block; }
.brainrot-card .name { font-weight: 800; text-align: center; }
.brainrot-card.common { border-color: #28a745; } .brainrot-card.common:hover { box-shadow: 0 0 18px #28a74588; }
.brainrot-card.rare { border-color: #007bff; } .brainrot-card.rare:hover { box-shadow: 0 0 18px #007bff88; }
.brainrot-card.epic { border-color: #9d4edd; } .brainrot-card.epic:hover { box-shadow: 0 0 18px #9d4edd88; }
.brainrot-card.legendary { border-color: #ffc107; } .brainrot-card.legendary:hover { box-shadow: 0 0 18px #ffc10788; }
.brainrot-card.mythic { border-color: #dc3545; } .brainrot-card.mythic:hover { box-shadow: 0 0 18px #dc354588; }
.brainrot-card.og { border-color: #ff69b4; } .brainrot-card.og:hover { box-shadow: 0 0 18px #ff69b488; }
.brainrot-card.secret:hover { box-shadow: 0 0 20px #ffffff55; }
.brainrot-card.brainrotgod:hover { box-shadow: 0 0 22px #ffffff77; }
#modal .brainrot-grid:has(.brainrot-highlighted) { display: flex; justify-content: center; flex-direction: column; align-items: center; }
#trait-selector, #mutation-selector { margin-top: 20px; display: flex; align-items: center; gap: 10px; width: 100%; max-width: 600px; margin-left: auto; margin-right: auto;}
#trait-selector label, #mutation-selector label { font-weight: 700; white-space: nowrap; }
.trait-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex-grow: 1; }
.trait-add-btn { background: #1e223d; border: 1px solid #666; color: #fff; border-radius: 8px; width: 42px; height: 42px; font-size: 22px; cursor: pointer; transition: background-color 0.2s; padding: 0; display: flex; align-items: center; justify-content: center; }
.custom-select-wrapper { position: relative; min-width: 150px; }
.custom-select-trigger { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: #fff; position: relative; border: 1px solid #666; border-radius: 8px; background-color: #1e223d; cursor: pointer; }
.custom-select-trigger img { width: 24px; height: 24px; object-fit: contain; }
.custom-select-trigger::after { content: ''; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2300cfff' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; transition: transform 0.2s ease; }
.custom-select-wrapper.open .custom-select-trigger::after { transform: translateY(-50%) rotate(180deg); }
.custom-options { display: none; position: absolute; top: 105%; left: 0; right: 0; background: #161933; border: 1px solid #666; border-radius: 8px; z-index: 1001; max-height: 250px; overflow-y: auto; }
.custom-select-wrapper.open .custom-options { display: block; }
.custom-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; transition: background-color 0.2s ease; font-size: 1.05rem; }
.custom-option:hover { background-color: #007bff; }
.custom-option img { width: 30px; height: 30px; object-fit: contain; }
.custom-option.disabled { opacity: 0.5; cursor: not-allowed; background-color: #2a2f4d !important; }
.remove-trait-btn { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; background-color: #ff3c3c; border: none; border-radius: 50%; color: white; font-size: 14px; font-weight: bold; line-height: 22px; text-align: center; cursor: pointer; z-index: 10; transition: background-color 0.2s; display: flex; align-items: center; justify-content: center; }
.remove-trait-btn:hover { background-color: #e02c2c; }

#mutation-selector select { flex-grow: 1; width: 100%; padding: 10px 12px; border: 1px solid #666; border-radius: 8px; background-color: #1e223d; color: #fff; font-size: 1rem; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2300cfff' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }

.modal-total { text-align: center; font-size: 1.6rem; font-weight: 800; color: #00cfff; margin: 28px auto 20px; padding: 12px; background: rgba(0, 0, 0, 0.25); border-radius: 12px; width: 60%; max-width: 300px; }
#confirm-selection { margin-top: 24px; background: #00cfff; color: #000; border: 0; padding: 10px 24px; border-radius: 10px; font-weight: 800; cursor: pointer; display: block; margin-left: auto; margin-right: auto; }


/* ====================================================== */
/* 3. STILI PAGINE GUIDA (Rebirth, Traits)                */
/* ====================================================== */
#rebirth-guide, .seo-section { padding: 40px 20px; max-width: 900px; margin: 40px auto; color: #fff; background: rgba(22, 25, 51, 0.5); border-radius: 12px; border: 1px solid #00cfff1a; }
#rebirth-guide h1, .seo-section h2 { font-size: 2rem; color: #00cfff; margin-bottom: 20px; text-align: center; }
#rebirth-guide > p, .seo-section p { font-size: 1rem; line-height: 1.6; color: #ccc; text-align: center; margin-bottom: 40px; }
.rebirth-step { position: relative; background: #111427; border-radius: 14px; padding: 24px; margin-bottom: 30px; box-shadow: 0 0 18px #00cfff66, 0 0 28px #00cfff33; animation: pulseGlow 2.4s ease-in-out infinite; }
.rebirth-step h2 { font-size: 1.5rem; color: #00cfff; margin-bottom: 14px; text-align: center; }
.rebirth-content { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.rebirth-text-centered { text-align: center; width: 100%; max-width: 700px; margin-top: 16px; }
.rebirth-cash, .rebirth-unlocks { font-size: 1.1rem; line-height: 1.7; color: #e0e0e0; overflow-wrap: break-word; }
.rebirth-cash strong, .rebirth-unlocks strong { color: #00cfff; font-weight: 800; }
.required-brainrots { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 12px 0 20px; width: 100%; }
.brainrot-card-fixed { width: 200px; height: 200px; background: #0a0a1a; border-radius: 12px; border: 2px solid #00cfff55; box-shadow: 0 0 12px #00cfff44; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: transform .2s, box-shadow .2s; flex-shrink: 1; }
.brainrot-card-fixed img { max-width: 90%; max-height: 90%; object-fit: contain; }
.rebirth-index { margin: 30px auto; text-align: center; }
.rebirth-index h3 { color: #00cfff; margin-bottom: 10px; }
.rebirth-index ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rebirth-index li a { color: #ffffffcc; background: #1a1f3a; padding: 8px 14px; border-radius: 8px; text-decoration: none; transition: background .3s, color .3s; font-weight: 700; display: inline-block; }
.data-table { width: 100%; max-width: 900px; margin: 20px auto; border-collapse: collapse; color: #ccc; }
.data-table th, .data-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #00cfff33; }
.data-table thead th { background-color: #161933; color: #00cfff; font-size: 1.1rem; }
.data-table tbody tr:hover { background-color: #1e223d; }
.data-table td img { width: 32px; height: 32px; vertical-align: middle; }


/* ====================================================== */
/* 4. STILI PAGINA INDEX TRACKER (E COMPONENTI RIUTILIZZABILI) */
/* ====================================================== */
#index-tracker { max-width: 1100px; margin: 0 auto; padding: 20px; }
#index-tracker h1 { text-align: center; color: #00cfff; margin: 6px 0 8px; font-size: 2rem; }
#index-tracker > p { text-align: center; color: #ccc; margin: 0 0 18px; line-height: 1.5; }
#index-tracker .tracker-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin: 10px 0 22px; }
#index-tracker .tracker-controls input[type="search"], #index-tracker .tracker-controls select { background: #1e223d; border: none; color: #fff; padding: 12px 14px; border-radius: 10px; min-width: 210px; outline: none; }
#index-tracker .tracker-actions { display: flex; gap: 10px; }
#index-tracker .tracker-progress { max-width: 900px; margin: 0 auto 22px; }
#index-tracker .progress-top { display: flex; justify-content: center; color: #8fe9ff; margin-bottom: 8px; font-weight: 800; }
#index-tracker .progress-bar { height: 14px; background: #111427; border: 2px solid #00cfff55; border-radius: 999px; overflow: hidden; box-shadow: 0 0 16px #00cfff33; }
#index-tracker .progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #00cfff, #38f1ff); transition: width .25s ease; }

/* --- MODIFICA CHIAVE QUI --- */
/* Regole rese globali rimuovendo #index-tracker */
.tracker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tracker-card {
  background: #111427;
  border: 2px solid #00cfff33;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 0 18px #00cfff22;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tracker-card .top { display: flex; align-items: center; gap: 12px; min-height: 66px; }
.tracker-card .thumb { width: 66px; height: 66px; background: #0a0a1a; border-radius: 12px; border: 2px solid #00cfff33; box-shadow: 0 0 12px #00cfff44; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.tracker-card .thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tracker-card .name { font-weight: 900; color: #ffffff; line-height: 1.1; }
.tracker-card .rarity-badge { display: inline-block; font-size: .78rem; padding: 2px 8px; border-radius: 999px; background: #1a1f3a; color: #8fe9ff; }
.tracker-card .mutations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 2px; }
.mutation-chip { background: #1e223d; color: #fff; border: 1px solid #00cfff33; border-radius: 10px; padding: 9px 6px; text-align: center; font-weight: 800; cursor: pointer; user-select: none; transition: all .2s; }
.mutation-chip.owned { background: #00cfff; color: #000; border-color: #00cfff; box-shadow: 0 0 14px #00cfff66; }
/* --- FINE MODIFICA --- */

/* ====================================================== */
/* 5. STILI PAGINE TRADES, AUTH, PROFILO                  */
/* ====================================================== */
.page-title { text-align:center; color:#00cfff; margin:14px 0 6px; font-size:2rem; }
.page-sub { text-align:center; color:#ccc; margin:0 0 24px; }
#trades.container, #my-profile-page, .auth-container { margin-left: auto; margin-right: auto; }
.trade-form { background:#111427; border:2px solid #00cfff33; border-radius:14px; padding:18px; box-shadow:0 0 18px #00cfff22; margin-bottom:18px; }
.trade-form h2 { margin:0 0 12px; color:#8fe9ff; }
.form-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; }
.form-field { display:flex; flex-direction:column; gap:6px; }
.form-field span { color:#8fb6c6; font-weight:700; }
.form-field input, .form-field textarea, .form-field .tagify { background:#1e223d; color:#fff; border: 1px solid #243056; padding:10px 12px; border-radius:8px; }
.form-field-full { grid-column:1 / -1; }
.form-actions { display:flex; gap:10px; margin-top:10px; }
.tiny-note { color:#888; margin-top:6px; font-size:0.8rem; }
.trade-filters { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:center; margin:18px 0; }
.trade-filters input[type="search"], .trade-filters select { background:#1e223d; border:none; color:#fff; padding:10px 12px; border-radius:8px; min-width:200px; }
.ads-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:16px; }
.empty { text-align:center; color:#9ccddd; opacity:.8; grid-column:1 / -1; padding:16px 0; }
.ad-card { background:#111427; border:2px solid #00cfff33; border-radius:14px; padding:14px; box-shadow:0 0 18px #00cfff22; display:flex; flex-direction:column; gap:12px; }
.ad-head { display:flex; align-items:center; justify-content:space-between; }
.poster { display:flex; align-items:center; gap:10px; }
.avatar { width:42px; height:42px; display:grid; place-items:center; background:#0a0a1a; border-radius:10px; border:2px solid #00cfff33; box-shadow:0 0 12px #00cfff44; font-size:20px; }
.ad-card .name { font-weight:900; }
.meta { color:#8fb6c6; font-size:.9rem; }
.scorebox { display:flex; align-items:center; gap:8px; font-weight:900; }
.vote { background:#1e223d; color:#fff; border:1px solid #00cfff33; border-radius:6px; width:32px; height:32px; cursor:pointer; transition: all .2s; }
.vote.voted-up { background-color: #2e7d32; border-color: #4caf50; box-shadow: 0 0 8px #4caf5088; }
.vote.voted-down { background-color: #b71c1c; border-color: #f44336; box-shadow: 0 0 8px #f4433688; }
.ad-body .line { display:flex; gap:10px; align-items:flex-start; margin-bottom: 5px; }
.ad-body .label { color:#8fe9ff; font-weight:800; flex:0 0 auto; width:80px; }
.chips { display:flex; flex-wrap:wrap; gap:8px; align-items: center; }
.chip { display: inline-flex; align-items: center; background:#1e223d; color:#fff; border:1px solid #00cfff33; border-radius:999px; padding:4px 8px; font-weight:700; font-size:.9rem; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ad-foot { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top: auto; padding-top: 10px; border-top: 1px solid #00cfff1a;}
.auth-container { max-width: 450px; margin: 40px auto; padding: 20px; }
.auth-toggle { text-align: center; margin-top: 20px; }
#auth-message { text-align: center; margin-top: 15px; font-weight: bold; min-height: 1.2em; }
.profile-card { background: #111427; border: 2px solid #00cfff33; border-radius: 14px; padding: 24px; text-align: center; }
.elo-stats { display: flex; justify-content: center; gap: 30px; margin-bottom: 20px; }
.stat span { display: block; font-size: 2rem; font-weight: 800; }
.upvotes span { color: #4caf50; }
.downvotes span { color: #f44336; }
.report-item, .trade-list-item { background: #0a0a1a; border-radius: 8px; padding: 15px; margin-bottom: 12px; text-align: left; }
.report-item { border-left: 4px solid #dc3545; }
.report-info p { margin: 0 0 10px 0; line-height: 1.6; }
.report-info small { color: #8fb6c6; font-style: italic; }
.trade-info { text-align: left; }

/* Stili per Tagify */
.tagify { --tags-border-color: #666; --tags-hover-border-color: #00cfff; --tags-focus-border-color: #00cfff; --tag-bg: #14172b; --tag-hover: #1f2544; --tag-text-color: #fff; --tag-remove-btn-color: #ff3c3c; --tag-pad: 0.3em 0.5em; }
.tagify__input::placeholder, .tagify--empty .tagify__input::before { color: #8fb6c6 !important; opacity: 0.8 !important; }
.tags-look .tagify__dropdown__item { display: inline-block; border-radius: 8px; padding: .3rem .5rem; margin: .2rem; font-size: .85em; }
.tags-look .tagify__dropdown__item--active { background-color: #007bff; }
}
.tags-look .tagify__dropdown__item { display: inline-block; border-radius: 8px; padding: .3rem .5rem; margin: .2rem; font-size: .85em; }
.tags-look .tagify__dropdown__item--active { background-color: #007bff; }

/* In style.css, prima delle Media Queries */

/* NUOVI STILI PER IL MENU DELLE MUTAZIONI NELLA PAGINA PROFILO */
.mutation-filter-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.mutation-tab {
  background: #1e223d;
  color: #fff;
  border: 1px solid #00cfff33;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.mutation-tab:hover {
  background-color: #2a2f4d;
  border-color: #00cfff88;
}

.mutation-tab.active {
  background-color: #00cfff;
  color: #000;
  border-color: #00cfff;
  box-shadow: 0 0 14px #00cfff66;
}

/* ====================================================== */
/* 6. SCROLL TO TOP BUTTON                                */
/* ====================================================== */
#scrollToTopBtn { display: none; position: fixed; bottom: 20px; right: 20px; z-index: 99; width: 50px; height: 50px; background-color: #00cfff; color: #000; border: none; border-radius: 50%; cursor: pointer; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0, 207, 255, 0.4); transition: background-color 0.3s, transform 0.3s; }
#scrollToTopBtn:hover { background-color: #00b8dd; transform: translateY(-3px); }
#scrollToTopBtn.show { display: flex; }

/* NUOVI STILI PER LA PAGINA PROFILO A SCHEDE */
.profile-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  border-bottom: 2px solid #00cfff33;
  margin: 20px auto;
  max-width: fit-content;
}

.profile-tab {
  padding: 10px 20px;
  color: #ccc;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.profile-tab:hover {
  color: #fff;
}

.profile-tab.active {
  color: #00cfff;
  border-bottom-color: #00cfff;
}

.profile-panel {
  display: none; /* Tutti i pannelli sono nascosti di default */
}

.profile-panel.active {
  display: block; /* Solo il pannello attivo viene mostrato */
}

/* ====================================================== */
/* 7. MEDIA QUERIES RESPONSIVE                            */
/* ====================================================== */
@media (max-width: 992px) { #index-tracker .tracker-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .profile-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .form-grid { grid-template-columns:1fr; } .ad-body .label { width:64px; } }
@media (max-width: 600px) { .rebirth-step h2 { font-size: 1.2rem; } .rebirth-step .brainrot-card-fixed { width: 180px; height: 180px; } }
@media (max-width: 576px) { #index-tracker .tracker-grid { grid-template-columns: 1fr; } #index-tracker .tracker-controls input[type="search"], #index-tracker .tracker-controls select { min-width: 100%; } }
@media (max-width: 520px) { .modal #brainrot-grid { grid-template-columns: repeat(2, 1fr); } .modal .brainrot-card img { max-width: 96px; max-height: 96px; } }

#online-users-container {
  padding: 10px;
  margin-bottom: 20px;
  color: #ccc;
  font-size: 0.9rem;
  border-top: 1px solid #00cfff1a;
  border-bottom: 1px solid #00cfff1a;
}
#online-users-container a { color: #00cfff; text-decoration: none; }
#online-users-container a:hover { text-decoration: underline; }

.profile-brainrot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

/* In style.css, aggiungi una nuova sezione alla fine */

/* ====================================================== */
/* 8. STILI PAGINE WIKI (Brainrot List & Detail)          */
/* ====================================================== */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin-top: 20px; }
.detail-main-content h1 { font-size: 2.5rem; color: #00cfff; margin-top: 0; }
.detail-main-content h2 { border-bottom: 2px solid #00cfff33; padding-bottom: 10px; margin-top: 30px; }
.detail-main-image { background: #0a0a1a; padding: 20px; border-radius: 12px; border: 1px solid #243056; }
.detail-main-image img { width: 100%; height: auto; object-fit: contain; }
.info-box { background: #111427; border-radius: 12px; padding: 20px; margin-top: 20px; }
.info-box h3 { margin-top: 0; border-bottom: 1px solid #243056; padding-bottom: 10px; }
.info-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #243056; }
.info-item:last-child { border-bottom: none; }
.info-item span:first-child { font-weight: 700; color: #ccc; }
.info-item audio { max-width: 150px; height: 30px; }
.detail-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 15px; }
.detail-gallery img { width: 100%; border-radius: 8px; border: 2px solid #243056; }

@media (max-width: 992px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { grid-row: 1; } /* Sposta la sidebar in alto su mobile */
}

/* In style.css, aggiungi una nuova sezione alla fine */

/* ====================================================== */
/* 9. STILI PAGINA ADMIN ABUSE                            */
/* ====================================================== */
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.admin-abuse-timer-card {
    background: #111427;
    border: 2px solid #00cfff55;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 18px #00cfff22;
}
.admin-abuse-timer-card h2 {
    margin-top: 0;
    color: #8fe9ff;
}
.admin-abuse-timer-card .countdown {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px #00cfff, 0 0 24px #00cfff99;
}
.admin-abuse-timer-card.active-abuse .countdown {
    color: #ffc107;
    text-shadow: 0 0 10px #ffc107, 0 0 24px #ffc10799;
    animation: pulseGlowActive 1.2s ease-in-out infinite;
}
@keyframes pulseGlowActive { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }

/* ====================================================== */
/* 10. STILI PAGINA LIVE                                   */
/* ====================================================== */
.live-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.stream-wrapper {
    flex: 1 1 550px; /* Permette ai box di restringersi e allargarsi */
    max-width: 800px;
    background: #111427;
    border: 2px solid #00cfff33;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 18px #00cfff22;
}

.stream-wrapper h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
    color: #00cfff;
    font-size: 2rem;
}

#twitch-embed {
    width: 100%;
    aspect-ratio: 16 / 9; /* Mantiene le proporzioni del video */
}

.tiktok-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9; /* Mantiene le stesse proporzioni di Twitch */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #0a0a1a;
    border-radius: 8px;
    padding: 20px;
}

.tiktok-placeholder p {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 20px;
}

.tiktok-placeholder .tiktok-live-btn {
    font-size: 1.5rem;
    padding: 15px 30px;
    text-transform: uppercase;
    animation: pulseButtonGlow 2.8s ease-in-out infinite; /* Riusiamo l'animazione del bottone reset */
}

.tiktok-placeholder span {
    margin-top: 15px;
    color: #888;
    font-size: 0.9rem;
}