/**
 * chainRank — Estilos Globais / Global Styles
 * Para mudar cores: edite as variáveis em :root abaixo.
 * To change colors: edit the variables in :root below.
 */

/* ─────────────────────────────────────────────
   VARIÁVEIS / CSS VARIABLES — EDITE AQUI / EDIT HERE
   ───────────────────────────────────────────── */
:root {
    /* Cores principais / Main colors */
    --bg:       #070610;
    --bg2:      #0d0b1a;
    --bg3:      #141228;
    --bg4:      #1c1935;
    --bg5:      #231f42;

    /* Roxo / Purple */
    --purple:   #7c5cbf;
    --purple2:  #a07de0;
    --purple3:  #5a3fa0;
    --purple4:  #3d2880;

    /* Destaque / Accent — sobrescrito pelo PHP dinamicamente */
    --accent:   #c084fc;
    --accent2:  #e879f9;

    /* Texto / Text */
    --text:     #f0ecff;
    --text2:    #9f98c8;
    --text3:    #6b6390;
    --text4:    #3d3860;

    /* Semânticas / Semantic */
    --green:    #3dd68c;
    --amber:    #f0b840;
    --red:      #f05060;
    --blue:     #60a0f0;

    /* Bordas / Borders */
    --border:   #2d2850;
    --border2:  #3d3868;
    --border3:  #4d4880;

    /* Glows */
    --glow:     rgba(124,92,191,.25);
    --glow2:    rgba(192,132,252,.15);

    /* Tipografia / Typography */
    --font-display: 'Orbitron', monospace;
    --font-body:    'DM Sans', sans-serif;

    /* Border radius */
    --r:  10px;
    --r2: 14px;
    --r3: 20px;
}

/* ─────────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(90,63,160,.2) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 110%, rgba(61,40,128,.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

#app { position: relative; z-index: 1; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--purple4); border-radius: 3px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ─────────────────────────────────────────────
   TIPOGRAFIA / TYPOGRAPHY
   ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─────────────────────────────────────────────
   FLASH MESSAGES
   ───────────────────────────────────────────── */
.flash-msg {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    padding: 12px 20px;
    border-radius: var(--r2);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 340px;
    animation: slideUp .3s ease;
    cursor: pointer;
}
.flash-success { background: rgba(61,214,140,.1); border: 1px solid rgba(61,214,140,.4); color: var(--green); }
.flash-error   { background: rgba(240,80,96,.1);  border: 1px solid rgba(240,80,96,.4);  color: var(--red);   }
@keyframes slideUp {
    from { transform: translateY(60px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ─────────────────────────────────────────────
   BOTÕES / BUTTONS
   ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all .2s;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
}
.btn:hover { text-decoration: none; }

.btn-purple {
    background: var(--purple3);
    color: var(--accent);
    border: 1px solid var(--purple);
}
.btn-purple:hover {
    background: var(--purple4);
    box-shadow: 0 0 16px var(--glow);
    color: var(--accent);
}

.btn-ghost {
    background: transparent;
    color: var(--text3);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--border2);
    color: var(--text2);
    background: var(--bg4);
}

.btn-green {
    background: rgba(61,214,140,.12);
    color: var(--green);
    border: 1px solid rgba(61,214,140,.3);
}
.btn-green:hover { background: rgba(61,214,140,.2); }

.btn-danger {
    background: rgba(240,80,96,.1);
    color: var(--red);
    border: 1px solid rgba(240,80,96,.25);
}
.btn-danger:hover { background: rgba(240,80,96,.2); }

.btn-sm { padding: 5px 10px; font-size: 11px; border-radius: 7px; }
.btn-lg { padding: 11px 22px; font-size: 14px; border-radius: 11px; }
.btn-block { width: 100%; justify-content: center; }

/* ─────────────────────────────────────────────
   FORMULÁRIOS / FORMS
   ───────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-group label { font-size: 11px; color: var(--text3); display: block; margin-bottom: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

input[type="text"], input[type="url"], input[type="number"], input[type="email"],
input[type="password"], select, textarea {
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    color: var(--text);
    outline: none;
    font-family: var(--font-body);
    transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--purple); }
input::placeholder, textarea::placeholder { color: var(--text4); }
select option { background: var(--bg3); }
textarea { resize: vertical; min-height: 80px; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--text2);
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] { width: auto; }

/* ─────────────────────────────────────────────
   BADGES / STATUS
   ───────────────────────────────────────────── */
.badge {
    display: inline-block;
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    font-family: var(--font-display);
    letter-spacing: .3px;
}
.badge-hot      { background: rgba(240,80,96,.15);  color: #f08080; border: 1px solid rgba(240,80,96,.3);  }
.badge-new      { background: rgba(61,214,140,.12); color: var(--green); border: 1px solid rgba(61,214,140,.25); }
.badge-top      { background: rgba(192,132,252,.12);color: var(--accent); border: 1px solid rgba(192,132,252,.25); }
.badge-spon     { background: rgba(240,184,64,.12); color: var(--amber); border: 1px solid rgba(240,184,64,.25); }
.badge-active   { background: rgba(61,214,140,.12); color: var(--green); border: 1px solid rgba(61,214,140,.2); }
.badge-pending  { background: rgba(240,184,64,.1);  color: var(--amber); border: 1px solid rgba(240,184,64,.25); }
.badge-rejected { background: rgba(240,80,96,.1);   color: var(--red);   border: 1px solid rgba(240,80,96,.25); }

/* Tag inline */
.tag {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 8px;
    background: var(--bg5);
    color: var(--text3);
    border: 1px solid var(--border);
}
.tag-chain { color: var(--purple2); border-color: rgba(160,125,224,.3); background: rgba(160,125,224,.08); }

/* ─────────────────────────────────────────────
   TOPBAR / NAVEGAÇÃO
   ───────────────────────────────────────────── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(7,6,16,.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo-icon { width: 30px; height: 30px; }
.logo-text {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text);
}
.logo-text span { color: var(--accent); }

.topnav { display: flex; gap: 2px; flex: 1; margin-left: 8px; }
.topnav-btn {
    background: none;
    border: none;
    padding: 7px 12px;
    border-radius: 7px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text3);
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
    display: inline-block;
}
.topnav-btn:hover { color: var(--text2); background: var(--bg4); text-decoration: none; }
.topnav-btn.active { color: var(--accent); background: rgba(192,132,252,.08); }

.topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Seletor de idioma / Language selector */
.lang-sel { display: flex; gap: 4px; align-items: center; }
.lang-btn {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text4);
    cursor: pointer;
    font-family: var(--font-body);
    transition: all .15s;
    text-decoration: none;
}
.lang-btn:hover, .lang-btn.active { color: var(--accent); border-color: var(--purple); background: rgba(192,132,252,.08); text-decoration: none; }

.wallet-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid var(--border2);
    background: var(--bg3);
    cursor: pointer;
    font-size: 12px;
    color: var(--text2);
    transition: all .2s;
    font-family: var(--font-body);
}
.wallet-btn:hover { border-color: var(--purple); color: var(--accent); }
.wallet-btn.connected { border-color: var(--green); color: var(--green); background: rgba(61,214,140,.08); }
.wallet-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* ─────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────── */
.hero {
    padding: 48px 24px 36px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--accent);
    background: rgba(192,132,252,.1);
    border: 1px solid rgba(192,132,252,.25);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    font-family: var(--font-display);
    letter-spacing: .5px;
}
.hero h1 { font-size: 2rem; margin-bottom: 14px; letter-spacing: .5px; }
.hero p { font-size: 15px; color: var(--text2); line-height: 1.7; margin-bottom: 24px; max-width: 460px; }
.hero-actions { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.hstat { text-align: center; }
.hstat-n { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--accent); }
.hstat-l { font-size: 11px; color: var(--text3); margin-top: 2px; }
.hstat-sep { width: 1px; background: var(--border); align-self: stretch; }

/* Cards flutuantes do hero / Hero floating cards */
.hero-visual { position: relative; height: 280px; }
.hf-card {
    position: absolute;
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: var(--r2);
    padding: 14px;
    width: 180px;
}
.hf-card.c1 { top: 0; left: 10px; animation: float1 4s ease-in-out infinite; }
.hf-card.c2 { top: 60px; right: 0; animation: float2 4s ease-in-out infinite .8s; }
.hf-card.c3 { bottom: 20px; left: 30px; animation: float1 4s ease-in-out infinite 1.5s; }
@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }
.hf-emoji { font-size: 28px; margin-bottom: 8px; }
.hf-name  { font-size: 12px; font-weight: 500; color: var(--text); margin-bottom: 3px; }
.hf-chain { font-size: 10px; color: var(--text3); }
.hf-stars { color: var(--amber); font-size: 12px; margin-top: 6px; }

/* ─────────────────────────────────────────────
   STATS BAR
   ───────────────────────────────────────────── */
.stats-bar {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
}
.stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.sbar-stat { text-align: center; }
.sbar-n { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text); }
.sbar-l { font-size: 10px; color: var(--text3); margin-top: 2px; letter-spacing: .3px; }
.sbar-div { width: 1px; height: 32px; background: var(--border); }

/* ─────────────────────────────────────────────
   LAYOUT PRINCIPAL / MAIN LAYOUT
   ───────────────────────────────────────────── */
.main-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 20px;
}

/* ─────────────────────────────────────────────
   SIDEBAR
   ───────────────────────────────────────────── */
.sidebar { position: sticky; top: 76px; height: fit-content; }
.sidebar-section { margin-bottom: 20px; }
.sidebar-title {
    font-size: 10px;
    color: var(--text4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-family: var(--font-display);
}
.filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 9px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text3);
    transition: all .12s;
    margin-bottom: 2px;
    border: 1px solid transparent;
    text-decoration: none;
}
.filter-item:hover { color: var(--text2); background: var(--bg4); border-color: var(--border); text-decoration: none; }
.filter-item.active { color: var(--accent); background: rgba(192,132,252,.08); border-color: rgba(192,132,252,.2); }
.filter-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-right: 6px; }
.filter-label { display: flex; align-items: center; flex: 1; }
.filter-count { font-size: 10px; color: var(--text4); background: var(--bg5); padding: 1px 6px; border-radius: 10px; }

/* ─────────────────────────────────────────────
   BANNER PATROCINADO / SPONSORED BANNER
   ───────────────────────────────────────────── */
.ad-banner {
    background: linear-gradient(135deg, var(--bg3) 0%, rgba(90,63,160,.2) 100%);
    border: 1px solid var(--border2);
    border-radius: var(--r2);
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 12px;
    flex-wrap: wrap;
}
.ad-label {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 9px;
    color: var(--text4);
    font-family: var(--font-display);
    letter-spacing: .5px;
}
.ad-content { display: flex; align-items: center; gap: 12px; flex: 1; }
.ad-icon { font-size: 28px; }
.ad-text h4 { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.ad-text p  { font-size: 11px; color: var(--text3); }

/* ─────────────────────────────────────────────
   ÁREA DE JOGOS / GAMES AREA
   ───────────────────────────────────────────── */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.search-box {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 8px 12px;
    transition: border-color .15s;
}
.search-box:focus-within { border-color: var(--purple); }
.search-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 13px;
    flex: 1;
    padding: 0;
}
.sort-sel {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    color: var(--text2);
    cursor: pointer;
    width: auto;
}

/* ─────────────────────────────────────────────
   FEATURED BANNER
   ───────────────────────────────────────────── */
.featured-banner {
    background: linear-gradient(135deg, var(--bg3) 0%, rgba(90,63,160,.2) 100%);
    border: 1px solid var(--border2);
    border-radius: var(--r2);
    padding: 20px;
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: border-color .2s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}
.featured-banner:hover { border-color: var(--purple); text-decoration: none; }
.featured-badge {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 9px;
    font-family: var(--font-display);
    color: var(--accent);
    letter-spacing: 1px;
    background: rgba(192,132,252,.1);
    border: 1px solid rgba(192,132,252,.2);
    padding: 3px 10px;
    border-radius: 10px;
}
.featured-thumb {
    width: 84px;
    height: 84px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    flex-shrink: 0;
    background: var(--bg5);
}
.featured-info { flex: 1; min-width: 0; }
.featured-name { font-size: 16px; font-weight: 700; font-family: var(--font-display); color: var(--text); margin-bottom: 4px; }
.featured-desc { font-size: 12px; color: var(--text2); line-height: 1.6; margin-bottom: 10px; }
.featured-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.featured-scores { display: flex; flex-direction: column; gap: 7px; min-width: 170px; }

/* Score bar */
.score-row { display: flex; align-items: center; gap: 8px; }
.score-label { font-size: 10px; color: var(--text3); width: 76px; flex-shrink: 0; }
.score-bar { flex: 1; height: 4px; background: var(--bg5); border-radius: 2px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 2px; transition: width .5s ease; }
.score-val { font-size: 10px; color: var(--text2); width: 28px; text-align: right; }

/* ─────────────────────────────────────────────
   GRID DE JOGOS / GAMES GRID
   ───────────────────────────────────────────── */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 12px;
}
.game-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--r2);
    overflow: hidden;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    display: block;
}
.game-card:hover {
    border-color: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124,92,191,.2);
    text-decoration: none;
}
.gc-thumb {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    position: relative;
}
.gc-body { padding: 11px; }
.gc-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gc-genre { font-size: 10px; color: var(--text3); margin-bottom: 8px; }
.gc-scores { display: flex; gap: 5px; margin-bottom: 8px; flex-wrap: wrap; }
.sc-pill {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 3px;
}
.sc-play { background: rgba(160,125,224,.12); color: var(--purple2); border: 1px solid rgba(160,125,224,.2); }
.sc-ret  { background: rgba(61,214,140,.1);   color: var(--green);   border: 1px solid rgba(61,214,140,.2);  }
.gc-footer { display: flex; align-items: center; justify-content: space-between; }
.gc-chain { font-size: 10px; color: var(--text3); background: var(--bg4); padding: 2px 7px; border-radius: 7px; border: 1px solid var(--border); }
.gc-stars { font-size: 11px; color: var(--amber); font-weight: 500; }

/* ─────────────────────────────────────────────
   DETALHE DO JOGO / GAME DETAIL
   ───────────────────────────────────────────── */
.detail-wrap { max-width: 1200px; margin: 0 auto; padding: 24px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text3); font-size: 13px; margin-bottom: 20px; transition: color .15s; text-decoration: none; }
.back-link:hover { color: var(--text2); }

.detail-hero {
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: var(--r2);
    padding: 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}
.detail-thumb {
    width: 100px;
    height: 100px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    background: var(--bg5);
    flex-shrink: 0;
}
.detail-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.detail-sub  { font-size: 13px; color: var(--text3); margin-bottom: 12px; }
.detail-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.detail-links { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 220px; }
.dscore-card { background: var(--bg4); border: 1px solid var(--border); border-radius: 9px; padding: 12px; text-align: center; }
.dscore-val { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 3px; }
.dscore-lbl { font-size: 10px; color: var(--text3); }

.detail-body { display: grid; grid-template-columns: 1fr 340px; gap: 16px; }
.detail-section {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--r2);
    padding: 18px;
    margin-bottom: 14px;
}
.section-heading {
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-display);
    color: var(--text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-heading::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Avaliações / Reviews */
.review-card { background: var(--bg4); border: 1px solid var(--border); border-radius: 9px; padding: 14px; margin-bottom: 10px; }
.review-header { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.review-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--purple4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--accent);
    font-weight: 500;
    font-family: var(--font-display);
    flex-shrink: 0;
}
.review-author { font-size: 12px; font-weight: 500; color: var(--text2); }
.review-date   { font-size: 10px; color: var(--text4); }
.review-stars  { color: var(--amber); font-size: 13px; margin-left: auto; }
.review-text   { font-size: 12px; color: var(--text2); line-height: 1.65; }

/* Form de avaliação / Review form */
.review-form { background: var(--bg4); border: 1px solid var(--border2); border-radius: 9px; padding: 16px; margin-top: 12px; }
.star-selector { display: flex; gap: 5px; margin-bottom: 12px; }
.star-btn {
    font-size: 24px;
    cursor: pointer;
    color: var(--text4);
    transition: color .1s;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}
.star-btn.on { color: var(--amber); }
.score-inputs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.score-inputs .form-group { margin-bottom: 0; }

/* Box de afiliado / Affiliate box */
.affiliate-box {
    background: rgba(61,214,140,.05);
    border: 1px solid rgba(61,214,140,.2);
    border-radius: 9px;
    padding: 16px;
    text-align: center;
}
.affiliate-token { font-family: var(--font-display); font-size: 22px; color: var(--green); font-weight: 700; margin-bottom: 4px; }
.affiliate-note  { font-size: 10px; color: var(--text4); margin-top: 8px; }

/* ─────────────────────────────────────────────
   RANKINGS
   ───────────────────────────────────────────── */
.ranking-item {
    display: grid;
    grid-template-columns: 40px 40px 1fr repeat(4, 70px);
    gap: 12px;
    align-items: center;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color .15s;
    text-decoration: none;
}
.ranking-item:hover { border-color: var(--purple); text-decoration: none; }
.rank-pos { font-family: var(--font-display); font-weight: 700; text-align: center; }
.rank-1 { color: var(--amber); font-size: 18px; }
.rank-2 { color: var(--text2); font-size: 16px; }
.rank-3 { color: #cd7f32;      font-size: 16px; }
.rank-n { color: var(--text4); font-size: 14px; }
.rank-emoji  { font-size: 24px; }
.rank-name   { font-size: 14px; font-weight: 500; color: var(--text); }
.rank-genre  { font-size: 11px; color: var(--text3); }
.rank-score-col { text-align: center; }
.rsc-val { font-size: 13px; font-weight: 500; }
.rsc-lbl { font-size: 10px; color: var(--text4); }

/* ─────────────────────────────────────────────
   MODAIS / MODALS
   ───────────────────────────────────────────── */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(5px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--r3);
    padding: 28px;
    width: 100%;
    max-width: 460px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-lg { max-width: 540px; }
.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    cursor: pointer;
    color: var(--text3);
    font-size: 18px;
    line-height: 1;
    background: none;
    border: none;
    padding: 4px;
}
.modal-close:hover { color: var(--text); }
.modal-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.modal-sub   { font-size: 12px; color: var(--text3); margin-bottom: 20px; line-height: 1.6; }
.modal-footer { display: flex; gap: 8px; margin-top: 16px; }
.modal-divider { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
.modal-note { font-size: 11px; color: var(--text4); text-align: center; line-height: 1.6; }

/* Opções de wallet / Wallet options */
.wallet-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s;
    margin-bottom: 8px;
    text-decoration: none;
}
.wallet-option:hover { border-color: var(--purple); background: var(--bg4); }
.wallet-icon { font-size: 24px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: var(--bg5); border-radius: 10px; flex-shrink: 0; }
.wallet-info h4 { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.wallet-info p  { font-size: 11px; color: var(--text3); }
.wallet-status { margin-left: auto; font-size: 11px; padding: 3px 9px; border-radius: 8px; flex-shrink: 0; }
.ws-ok  { background: rgba(61,214,140,.12); color: var(--green); border: 1px solid rgba(61,214,140,.2); }
.ws-no  { background: var(--bg5); color: var(--text3); border: 1px solid var(--border); }

/* ─────────────────────────────────────────────
   PÁGINA DE LOGIN / LOGIN PAGE
   ───────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.login-card {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--r3);
    padding: 36px;
    width: 100%;
    max-width: 440px;
}
.login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
.footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    margin-top: 60px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { font-family: var(--font-display); font-size: 13px; color: var(--text3); }
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 11px; color: var(--text4); margin-top: 4px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 12px; color: var(--text3); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg4);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: all .15s;
}
.footer-social a:hover { border-color: var(--purple); background: var(--bg5); }

/* ─────────────────────────────────────────────
   RESPONSIVO / RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .detail-body { grid-template-columns: 1fr; }
    .detail-scores { grid-column: 1/-1; }
}

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .main-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .detail-hero { grid-template-columns: auto 1fr; }
    .ranking-item { grid-template-columns: 30px 30px 1fr repeat(2, 60px); }
    .ranking-item .rank-score-col:nth-child(5),
    .ranking-item .rank-score-col:nth-child(6) { display: none; }
}

@media (max-width: 640px) {
    .topnav { display: none; }
    .hero h1 { font-size: 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .score-inputs { grid-template-columns: 1fr 1fr; }
    .modal { padding: 20px; }
    .detail-hero { grid-template-columns: 1fr; }
    .detail-thumb { width: 72px; height: 72px; font-size: 34px; }
    .detail-scores { grid-template-columns: 1fr 1fr; }
}

/* ─────────────────────────────────────────────
   UTILITÁRIOS / UTILITIES
   ───────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text3); }
.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-amber { color: var(--amber); }
.text-red   { color: var(--red); }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12{ margin-top: 12px; }
.mt-16{ margin-top: 16px; }
.mt-24{ margin-top: 24px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12{ margin-bottom: 12px; }
.mb-16{ margin-bottom: 16px; }
.hidden { display: none !important; }
.d-flex { display: flex; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
