/* ================================================
   FreelancerHub - Estilos Completos
   ================================================ */

:root {
  --primary: #6C3CE1;
  --primary-dark: #5429C8;
  --primary-light: #EEE8FF;
  --accent: #FF6B35;
  --accent2: #00C896;
  --gold: #FFB830;
  --bg: #F4F6FB;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --text: #1A202C;
  --muted: #718096;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 30px rgba(108,60,225,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Rubik', sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
h1,h2,h3,h4,h5 { font-family: 'Nunito', sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: 'Rubik', sans-serif; border: none; }
input, select, textarea { font-family: 'Rubik', sans-serif; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== CONTAINER ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 200; box-shadow: 0 1px 6px rgba(0,0,0,0.06); }
.header-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 12px 20px; }

.logo { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.5rem; white-space: nowrap; }
.logo span { color: var(--primary); }

.search-form { flex: 1; display: flex; align-items: center; background: var(--bg); border: 2px solid var(--border); border-radius: 8px; overflow: hidden; max-width: 600px; transition: border-color .2s; }
.search-form:focus-within { border-color: var(--primary); }
.search-form input { flex: 1; border: none; background: transparent; padding: 10px 14px; font-size: 0.9rem; outline: none; color: var(--text); }
.search-form select { border: none; border-left: 1px solid var(--border); background: transparent; padding: 10px 10px; font-size: 0.82rem; color: var(--muted); outline: none; }
.search-form button { background: var(--primary); color: #fff; border: none; padding: 10px 18px; font-size: 0.88rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s; }
.search-form button:hover { background: var(--primary-dark); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-btn { display: flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 8px; background: transparent; color: var(--text); font-size: 0.85rem; font-weight: 500; transition: background .2s; text-decoration: none; position: relative; }
.nav-btn:hover, .nav-btn.active { background: var(--primary-light); color: var(--primary); }
.nav-btn .badge { background: var(--accent); color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: 0.65rem; display: flex; align-items: center; justify-content: center; }
.nav-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.nav-initials { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 800; }

.btn-cta { background: var(--accent); color: #fff; padding: 9px 16px; border-radius: 8px; font-weight: 600; font-size: 0.88rem; white-space: nowrap; text-decoration: none; transition: all .2s; display: inline-block; }
.btn-cta:hover { background: #e85d2d; transform: translateY(-1px); }

.nav-dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); min-width: 180px; box-shadow: var(--shadow); z-index: 100; overflow: hidden; }
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 16px; font-size: 0.85rem; transition: background .15s; }
.dropdown-menu a:hover { background: var(--bg); }
.dropdown-menu hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

.hamburger { display: none; background: transparent; border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; font-size: 1.1rem; }

/* CATBAR */
.catbar { background: var(--white); border-bottom: 1px solid var(--border); overflow-x: auto; white-space: nowrap; }
.catbar::-webkit-scrollbar { height: 0; }
.catbar-inner { max-width: 1280px; margin: 0 auto; display: flex; padding: 0 20px; }
.cat-item { display: inline-flex; align-items: center; gap: 5px; padding: 11px 14px; font-size: 0.82rem; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; transition: all .2s; white-space: nowrap; text-decoration: none; }
.cat-item:hover, .cat-item.active { color: var(--primary); border-bottom-color: var(--primary); }

/* MOBILE MENU */
.mobile-menu { display: none; flex-direction: column; background: var(--white); border-top: 1px solid var(--border); }
.mobile-menu.active { display: flex; }
.mobile-menu a { padding: 12px 20px; font-size: 0.95rem; border-bottom: 1px solid var(--border); }

/* ===== MAIN LAYOUT ===== */
.main-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; padding: 20px; max-width: 1280px; margin: 0 auto; }
.feed { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* BANNER */
.banner-wrap { max-width: 1280px; margin: 0 auto; padding: 14px 20px 0; }
.ad-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-radius: var(--radius); color: #fff; cursor: pointer; text-decoration: none; position: relative; overflow: hidden; transition: opacity .2s; }
.ad-banner:hover { opacity: .92; }
.ad-label { position: absolute; top: 8px; right: 10px; background: rgba(255,255,255,0.25); padding: 2px 8px; border-radius: 4px; font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; }
.ad-content h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 3px; }
.ad-content p { font-size: 0.82rem; opacity: .85; }
.ad-btn { background: rgba(255,255,255,0.22); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.35); padding: 8px 18px; border-radius: 6px; font-weight: 600; font-size: 0.82rem; white-space: nowrap; color: #fff; }
.ad-banner-wide { display: flex; border-radius: var(--radius); }

/* GOOGLE ADS SLOT */
.google-ads-slot { background: var(--white); border: 1px dashed var(--border); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); min-height: 90px; font-size: 0.8rem; }
.google-ads-slot span { font-size: 0.65rem; letter-spacing: 1.5px; text-transform: uppercase; }

/* CHAMPIONS */
.champions-section { background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); padding: 24px 0; }
.champions-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.champions-header h2 { font-size: 1.2rem; font-weight: 900; color: #fff; }
.champions-header p { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.champions-grid { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.champions-grid::-webkit-scrollbar { height: 0; }
.champion-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 16px 12px; flex-shrink: 0; width: 150px; text-align: center; cursor: pointer; transition: all .25s; }
.champion-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-3px); }
.champion-card.rank-1 { border-color: var(--gold); background: rgba(255,184,48,.1); }
.champion-card.rank-2 { border-color: #C0C0C0; }
.champion-card.rank-3 { border-color: #CD7F32; }
.champion-avatar { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 8px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.champion-avatar img { width: 100%; height: 100%; object-fit: cover; }
.champion-avatar span { font-family: 'Nunito',sans-serif; font-weight: 900; font-size: 1.3rem; color: #fff; }
.av-gold { background: linear-gradient(135deg, var(--gold), #ff8c00); }
.av-silver { background: linear-gradient(135deg, #C0C0C0, #808080); }
.av-bronze { background: linear-gradient(135deg, #CD7F32, #8B4513); }
.champion-avatar:not(.av-gold):not(.av-silver):not(.av-bronze) { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.crown { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-size: 1rem; }
.ch-name { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.85rem; color: #fff; margin-bottom: 2px; }
.ch-role { font-size: 0.72rem; color: rgba(255,255,255,0.55); margin-bottom: 6px; }
.ch-xp { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1rem; }
.ch-xp.gold { color: var(--gold); }
.ch-xp.silver { color: #C0C0C0; }
.ch-xp.bronze { color: #CD7F32; }
.ch-xp:not(.gold):not(.silver):not(.bronze) { color: rgba(255,255,255,0.8); }
.ch-label { font-size: 0.65rem; color: rgba(255,255,255,0.4); }
.xp-bar-wrap { background: rgba(255,255,255,0.1); border-radius: 50px; height: 4px; }
.xp-bar { background: linear-gradient(90deg, var(--primary), var(--accent)); height: 4px; border-radius: 50px; transition: width .4s; }

/* FEED SECTIONS */
.feed-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; overflow: hidden; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-header h2 { font-size: 1rem; font-weight: 800; }
.ver-todos { font-size: 0.82rem; color: var(--primary); font-weight: 600; }
.ver-todos:hover { text-decoration: underline; }

/* CARDS ROW */
.cards-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.cards-row::-webkit-scrollbar { height: 4px; }

/* PROFILE CARD */
.profile-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; flex-shrink: 0; width: 185px; cursor: pointer; transition: all .25s; }
.profile-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.card-img { height: 120px; position: relative; background: var(--primary-light); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-initials { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 2.5rem; color: var(--primary); }
.card-badge { position: absolute; top: 8px; left: 8px; background: var(--primary); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 0.65rem; font-weight: 700; }
.card-badge.badge-gold { background: var(--gold); color: #333; }
.card-avail { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.5); color: #fff; padding: 2px 7px; border-radius: 4px; font-size: 0.65rem; font-weight: 600; }
.card-body { padding: 10px 12px; }
.card-body h4 { font-size: 0.88rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.card-role { font-size: 0.75rem; color: var(--primary); font-weight: 600; margin-bottom: 4px; }
.card-stars { font-size: 0.72rem; color: var(--gold); }
.card-stars span { color: var(--muted); }
.card-city { font-size: 0.72rem; color: var(--muted); margin-top: 3px; }

/* CARDS GRID (buscar.php) */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 14px; }
.cards-grid .profile-card { width: auto; }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.widget h4 { font-size: 0.9rem; font-weight: 800; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.widget-cta { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-radius: var(--radius); padding: 18px; }
.widget-cta h3 { font-weight: 800; margin-bottom: 6px; }
.widget-cta p { font-size: 0.83rem; opacity: .85; }
.widget-game { background: linear-gradient(135deg, #1a1a2e, #16213e); color: #fff; border-radius: var(--radius); padding: 18px; }
.widget-game h3 { font-weight: 900; margin-bottom: 4px; }
.widget-game > p { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.xp-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.xp-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #ff8c00); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.xp-info { flex: 1; }
.xp-info strong { display: block; font-family: 'Nunito',sans-serif; font-size: 0.85rem; font-weight: 800; color: var(--gold); }
.xp-info span { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.xp-bar-wrap { flex: 1; background: rgba(255,255,255,0.1); border-radius: 50px; height: 6px; }
.missoes-list { display: flex; flex-direction: column; gap: 7px; }
.missao { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.07); border-radius: 7px; padding: 8px 10px; font-size: 0.8rem; gap: 8px; }
.missao span:first-child { flex: 1; color: rgba(255,255,255,0.85); }
.missao-xp { background: var(--gold); color: #333; padding: 2px 8px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; white-space: nowrap; }
.missao-xp.done-xp { background: var(--accent2); color: #fff; }
.missao.done { opacity: .7; }

.mini-profile { display: flex; gap: 10px; align-items: center; padding: 7px; border-radius: 8px; cursor: pointer; transition: background .2s; }
.mini-profile:hover { background: var(--bg); }
.mini-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-family: 'Nunito',sans-serif; font-weight: 800; color: #fff; font-size: 0.85rem; flex-shrink: 0; overflow: hidden; }
.mini-av img { width: 100%; height: 100%; object-fit: cover; }
.mini-info strong { display: block; font-size: 0.84rem; font-weight: 700; }
.mini-info span { display: block; font-size: 0.73rem; color: var(--muted); }
.mini-info em { font-size: 0.68rem; color: var(--gold); font-style: normal; }

.link-list { display: flex; flex-direction: column; gap: 6px; }
.link-list a { font-size: 0.83rem; color: var(--primary); font-weight: 600; }
.link-list a:hover { text-decoration: underline; }

/* EMPTY */
.empty-msg { font-size: 0.85rem; color: var(--muted); padding: 10px; }
.loading-spinner { color: var(--muted); font-size: 0.85rem; padding: 10px; }

/* ===== CHAT ===== */
.chat-layout { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 140px); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.chat-sidebar { display: flex; flex-direction: column; border-right: 1px solid var(--border); }
.chat-sidebar-head { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.chat-sidebar-head h3 { font-size: 1.05rem; font-weight: 800; }
.chat-tabs { display: flex; border-bottom: 1px solid var(--border); }
.chat-tab { flex: 1; padding: 10px; text-align: center; font-size: 0.8rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; transition: all .2s; background: none; }
.chat-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.chat-search { padding: 10px; border-bottom: 1px solid var(--border); }
.chat-search input { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 0.82rem; outline: none; }
.chat-list { flex: 1; overflow-y: auto; }
.chat-item { display: flex; gap: 10px; padding: 12px 14px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background .15s; align-items: flex-start; }
.chat-item:hover, .chat-item.active { background: var(--primary-light); }
.chat-av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-family: 'Nunito',sans-serif; font-weight: 800; color: #fff; font-size: 0.9rem; flex-shrink: 0; overflow: hidden; }
.chat-av img { width: 100%; height: 100%; object-fit: cover; }
.chat-item-body { flex: 1; min-width: 0; }
.chat-item-top { display: flex; justify-content: space-between; margin-bottom: 3px; }
.chat-item-name { font-size: 0.85rem; font-weight: 700; }
.chat-item-time { font-size: 0.68rem; color: var(--muted); }
.chat-item-prev { font-size: 0.77rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-unread { background: var(--primary); color: #fff; border-radius: 50%; width: 20px; height: 20px; font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-window { display: flex; flex-direction: column; }
.chat-win-head { padding: 13px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.chat-win-head h4 { font-size: 0.95rem; font-weight: 700; }
.chat-win-head p { font-size: 0.75rem; color: var(--muted); }
.chat-win-head .actions { margin-left: auto; display: flex; gap: 6px; }
.online-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent2); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #FAFBFF; }
.msg-row { display: flex; gap: 8px; max-width: 78%; align-self: flex-start; }
.msg-row.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-av { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; color: #fff; flex-shrink: 0; overflow: hidden; }
.msg-av img { width: 100%; height: 100%; object-fit: cover; }
.msg-bubble { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; font-size: 0.84rem; line-height: 1.5; }
.msg-row.mine .msg-bubble { background: var(--primary); color: #fff; border-color: var(--primary); }
.msg-time { font-size: 0.65rem; color: var(--muted); margin-top: 4px; }
.msg-row.mine .msg-time { text-align: right; color: rgba(255,255,255,0.7); }
.chat-input { padding: 12px 14px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.chat-input textarea { flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 0.88rem; resize: none; outline: none; min-height: 42px; max-height: 100px; transition: border-color .2s; }
.chat-input textarea:focus { border-color: var(--primary); }
.chat-input button { background: var(--primary); color: #fff; border: none; width: 42px; height: 42px; border-radius: 10px; font-size: 1.1rem; transition: background .2s; flex-shrink: 0; }
.chat-input button:hover { background: var(--primary-dark); }

/* FORMS */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; max-width: 500px; margin: 40px auto; }
.form-card h2 { font-size: 1.4rem; font-weight: 900; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 0.85rem; margin-bottom: 20px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; border: 1.5px solid var(--border); border-radius: 8px; padding: 11px 13px; font-size: 0.9rem; outline: none; transition: border-color .2s; background: var(--white); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: 0.72rem; color: var(--muted); margin-top: 3px; }
.cpf-ok { color: var(--accent2); font-size: 0.72rem; }
.cpf-err { color: var(--accent); font-size: 0.72rem; }

.btn-primary { background: var(--primary); color: #fff; padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 0.92rem; border: none; cursor: pointer; transition: all .2s; display: inline-block; text-align: center; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: all .2s; }
.btn-outline:hover { background: var(--primary-light); }
.btn-danger-sm { background: transparent; color: #ef4444; border: 1px solid #ef4444; padding: 8px 14px; border-radius: 8px; font-size: 0.8rem; cursor: pointer; }
.btn-google { width: 100%; padding: 11px; border: 1.5px solid var(--border); border-radius: 8px; background: var(--white); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.88rem; font-weight: 500; cursor: pointer; margin-bottom: 14px; transition: border-color .2s; }
.btn-google:hover { border-color: var(--primary); }
.or-divider { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-size: 0.75rem; color: var(--muted); }
.or-divider::before, .or-divider::after { content:''; flex:1; height:1px; background: var(--border); }

/* ADMIN */
.admin-wrap { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-nav { background: #1a1a2e; color: #fff; display: flex; flex-direction: column; padding: 20px 0; }
.admin-logo { padding: 0 20px 20px; font-family: 'Nunito',sans-serif; font-weight: 900; font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 10px; }
.admin-logo span { color: var(--primary); }
.admin-menu a { display: flex; align-items: center; gap: 8px; padding: 12px 20px; font-size: 0.88rem; color: rgba(255,255,255,.65); border-left: 3px solid transparent; transition: all .2s; text-decoration: none; }
.admin-menu a:hover { background: rgba(255,255,255,.05); color: #fff; }
.admin-menu a.active { background: rgba(108,60,225,.2); color: var(--primary); border-left-color: var(--primary); }
.admin-content { background: var(--bg); padding: 26px; overflow-y: auto; }
.admin-header { margin-bottom: 22px; }
.admin-header h1 { font-size: 1.5rem; font-weight: 900; }
.admin-header p { color: var(--muted); font-size: 0.85rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 10px; }
.stat-card h3 { font-size: 1.8rem; font-weight: 900; }
.stat-card p { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.trend-up { color: var(--accent2); font-size: 0.75rem; font-weight: 600; }
.trend-down { color: #ef4444; font-size: 0.75rem; font-weight: 600; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.admin-card-head { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-card-head h3 { font-size: 0.95rem; font-weight: 800; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.data-table th { background: var(--bg); padding: 9px 14px; text-align: left; font-weight: 600; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .5px; }
.data-table td { padding: 10px 14px; border-top: 1px solid var(--border); vertical-align: middle; }
.data-table tr:hover td { background: #fafbff; }
.badge-status { padding: 3px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 600; }
.badge-ativo { background: rgba(0,200,150,.1); color: var(--accent2); }
.badge-pendente { background: rgba(255,184,48,.1); color: var(--gold); }
.badge-bloqueado { background: rgba(239,68,68,.1); color: #ef4444; }
.btn-xs { padding: 4px 10px; border-radius: 5px; border: 1px solid var(--border); background: transparent; font-size: 0.72rem; cursor: pointer; transition: all .15s; }
.btn-xs:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-xs.danger:hover { background: #ef4444; border-color: #ef4444; }

/* MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 500; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal { background: var(--white); border-radius: 16px; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; padding: 28px; position: relative; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close { position: absolute; top: 14px; right: 14px; background: var(--bg); border: 1px solid var(--border); width: 30px; height: 30px; border-radius: 50%; font-size: 0.9rem; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }

.perfil-modal { }
.perfil-topo { display: flex; gap: 16px; margin-bottom: 14px; }
.perfil-foto-wrap { flex-shrink: 0; }
.perfil-foto { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; display: block; }
.perfil-foto.perfil-initials { background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-family: 'Nunito',sans-serif; font-weight: 900; font-size: 2rem; color: #fff; }
.perfil-info h2 { font-size: 1.2rem; font-weight: 900; }
.perfil-funcao { color: var(--primary); font-size: 0.85rem; font-weight: 600; margin: 2px 0; }
.perfil-stars { color: var(--gold); font-size: 0.82rem; }
.perfil-nivel { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.perfil-bio { font-size: 0.84rem; line-height: 1.6; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 10px; margin-bottom: 12px; }
.perfil-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; margin-bottom: 12px; }
.perfil-stats div { background: var(--bg); border-radius: 8px; padding: 10px; }
.perfil-stats strong { display: block; font-size: 1.2rem; font-weight: 900; color: var(--primary); }
.perfil-stats span { font-size: 0.72rem; color: var(--muted); }
.perfil-avail, .perfil-cpf, .perfil-tel { font-size: 0.84rem; margin-bottom: 6px; color: var(--muted); }
.perfil-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.avaliacao-item { background: var(--bg); border-radius: 8px; padding: 10px; margin-bottom: 6px; font-size: 0.83rem; }
.avaliacao-item strong { display: block; font-weight: 700; }

/* TOAST */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--text); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 0.84rem; transform: translateX(120px); opacity: 0; transition: all .3s; max-width: 300px; pointer-events: auto; }
.toast.show { transform: translateX(0); opacity: 1; }
.toast.toast-success { background: var(--accent2); }
.toast.toast-error { background: #ef4444; }
.toast.toast-warn { background: var(--gold); color: #333; }

/* FOOTER */
.footer { background: var(--white); border-top: 1px solid var(--border); margin-top: 40px; padding: 36px 20px 0; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-col p { font-size: 0.82rem; color: var(--muted); line-height: 1.7; margin-top: 8px; }
.footer-col h4 { font-family: 'Nunito', sans-serif; font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.footer-col a { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { text-align: center; padding: 16px 0; margin-top: 24px; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--muted); }

/* ALERTS */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 0.85rem; margin-bottom: 14px; }
.alert-error { background: #fff5f5; border: 1px solid #feb2b2; color: #c53030; }
.alert-success { background: #f0fff4; border: 1px solid #9ae6b4; color: #276749; }

/* PAGINAÇÃO */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.page-btn { padding: 7px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--white); font-size: 0.85rem; cursor: pointer; transition: all .2s; }
.page-btn.active, .page-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .search-form { order: 3; flex: 1 1 100%; }
  .search-form select { display: none; }
  .nav-actions span { display: none; }
  .hamburger { display: block; }
  .nav-actions .nav-btn:not(.user-btn) { display: none; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-nav { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .profile-card { width: 155px; }
  .champion-card { width: 130px; }
  .footer-inner { grid-template-columns: 1fr; }
  .perfil-topo { flex-direction: column; align-items: center; text-align: center; }
}
