/* FAMM Engage - Dark Gamer Theme v1.6 (Level System) */

:root {
    --famm-bg-dark: #121212;
    --famm-bg-card: #1e1e1e;
    --famm-border: #333;
    --famm-text-main: #e0e0e0;
    --famm-text-muted: #a0a0a0;
    --famm-primary: #6200ea;
    --famm-primary-hover: #7c4dff;
    --famm-success: #00e676;
    --famm-danger: #ff5252;
    --famm-gold: #ffd700;
}

.famm-wrapper { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: var(--famm-text-main); max-width: 1200px; margin: 0 auto; }

/* --- ABAS --- */
.famm-tabs { display: flex; gap: 10px; margin-bottom: 25px; overflow-x: auto; padding-bottom: 5px; border-bottom: none; }
.famm-tab-btn { background: #333; border: none; color: #aaa; padding: 12px 24px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 15px; white-space: nowrap; flex: 1; text-align: center; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 0.5px; }
.famm-tab-btn:hover { background: #444; color: #fff; transform: translateY(-2px); }
.famm-tab-btn.active { background: var(--famm-primary) !important; color: #fff !important; box-shadow: 0 4px 15px rgba(98, 0, 234, 0.5); transform: translateY(-2px); }
.famm-tab-btn.active:hover { background: var(--famm-primary-hover) !important; }
.famm-tab-content { display: none; animation: fammFadeIn 0.3s; }
.famm-tab-content.active { display: block; }
@keyframes fammFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- GAMIFICAÇÃO (XP BAR) --- */
.famm-level-container { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.famm-level-badge {
    background: linear-gradient(135deg, var(--famm-primary), #4a148c);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 0 15px rgba(98, 0, 234, 0.6);
    border: 2px solid #fff;
    flex-shrink: 0;
}
.famm-level-label { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; }
.famm-level-number { font-size: 24px; line-height: 1; }

.famm-xp-wrapper { flex: 1; }
.famm-xp-info { display: flex; justify-content: space-between; font-size: 0.85em; color: var(--famm-text-muted); margin-bottom: 5px; font-weight: 600; }
.famm-xp-track {
    background: #000;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #333;
    position: relative;
}
.famm-xp-fill {
    background: linear-gradient(90deg, var(--famm-primary), var(--famm-success));
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease-in-out;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

/* --- Cards --- */
.famm-card { background: var(--famm-bg-card); border: 1px solid var(--famm-border); border-radius: 12px; padding: 25px; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.famm-card h2, .famm-card h3 { margin-top: 0; color: #fff; }
.famm-card hr { border: 0; border-top: 1px solid var(--famm-border); margin: 20px 0; }
.famm-highlight-balance { color: var(--famm-primary-hover); font-size: 2.5em; font-weight: 800; text-shadow: 0 0 15px rgba(98, 0, 234, 0.6); }

/* --- Tabelas & Paginação --- */
.famm-table-responsive { overflow-x: auto; }
.famm-table { width: 100%; border-collapse: collapse; background: var(--famm-bg-card); border-radius: 8px; overflow: hidden; }
.famm-table th { background: #252525; color: #fff; padding: 15px; text-align: left; font-weight: 700; text-transform: uppercase; font-size: 0.85em; letter-spacing: 1px; }
.famm-table td { padding: 15px; border-bottom: 1px solid var(--famm-border); color: var(--famm-text-muted); }
.famm-table tr:last-child td { border-bottom: none; }
.famm-pagination { display: flex; justify-content: center; gap: 5px; margin-top: 20px; }
.famm-page-link { display: inline-block; padding: 8px 14px; background: var(--famm-bg-card); border: 1px solid var(--famm-border); color: var(--famm-text-main); text-decoration: none; border-radius: 6px; font-size: 14px; transition: 0.2s; font-weight: 600; }
.famm-page-link:hover { background: var(--famm-primary); border-color: var(--famm-primary); color: #fff; }
.famm-page-link.current { background: var(--famm-primary); border-color: var(--famm-primary); color: #fff; pointer-events: none; }
.famm-text-success { color: var(--famm-success); font-weight: bold; }
.famm-text-danger { color: var(--famm-danger); font-weight: bold; }

/* --- Grid --- */
.famm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.famm-item-card { background: var(--famm-bg-card); border: 1px solid var(--famm-border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.famm-item-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(98, 0, 234, 0.25); border-color: var(--famm-primary); }
.famm-item-image { height: 180px; background-size: cover; background-position: center; background-color: #2c2c2c; position: relative; }
.famm-item-image.no-img { display: flex; align-items: center; justify-content: center; color: #555; font-weight: bold; }
.famm-item-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.famm-item-title { margin: 0 0 10px 0; font-size: 1.2em; color: #fff; font-weight: 700; }
.famm-item-desc { font-size: 0.9em; color: var(--famm-text-muted); margin-bottom: 15px; flex: 1; line-height: 1.5; }
.famm-item-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.famm-price-tag { color: var(--famm-primary-hover); font-weight: 800; font-size: 1.2em; }
.famm-stock-tag { background: #333; color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 0.8em; font-weight: 600; }
.famm-badge-points { background: #333; color: var(--famm-success); padding: 4px 8px; border-radius: 4px; font-size: 0.8em; font-weight: bold; }

/* --- Botões e Forms --- */
.famm-btn { width: 100%; border: none; padding: 14px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 1.1em; transition: background 0.3s, transform 0.1s; text-align: center; text-decoration: none; display: inline-block; text-transform: uppercase; }
.famm-btn-primary { background: var(--famm-primary); color: #fff; box-shadow: 0 4px 10px rgba(98,0,234,0.3); }
.famm-btn-primary:hover { background: var(--famm-primary-hover); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(98,0,234,0.5); }
.famm-btn-disabled { background: #333; color: #666; cursor: not-allowed; }
.famm-btn-success-disabled { background: rgba(0, 230, 118, 0.1); color: var(--famm-success); border: 1px solid var(--famm-success); cursor: default; }
.famm-form-group { margin-bottom: 15px; }
.famm-form-label { display: block; margin-bottom: 5px; color: #fff; font-weight: 600; }
.famm-form-input, .famm-form-textarea { width: 100%; padding: 12px; background: #121212; border: 1px solid var(--famm-border); border-radius: 6px; color: #fff; font-family: inherit; font-size: 15px; }
.famm-form-input:focus, .famm-form-textarea:focus { border-color: var(--famm-primary); outline: none; box-shadow: 0 0 0 2px rgba(98,0,234,0.3); }
.famm-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .famm-form-grid-2 { grid-template-columns: 1fr; } }

/* --- Notificações --- */
.famm-alert { padding: 15px; margin-bottom: 20px; border-radius: 8px; font-weight: 600; border-left: 5px solid; }
.famm-alert-success { background: #1b3a24; color: #4ade80; border-color: #22c55e; }
.famm-alert-error { background: #3a1b1b; color: #f87171; border-color: #ef4444; }
.famm-notif-list { list-style: none; padding: 0; margin: 0; }
.famm-notif-item { background: #252525; margin-bottom: 10px; padding: 15px; border-radius: 6px; border-left: 4px solid var(--famm-border); }
.famm-notif-date { font-size: 0.8em; color: var(--famm-text-muted); margin-bottom: 5px; }
.famm-notif-msg { color: #fff; }

/* --- Player --- */
.famm-live-layout { display: flex; flex-wrap: wrap; background: #000; border: 1px solid var(--famm-border); border-radius: 12px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.5); }
.famm-live-video-container { flex: 3; min-width: 320px; position: relative; padding-bottom: 56.25%; height: 0; background: #000; }
.famm-live-video-container iframe, .famm-live-video-container > div { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.famm-live-chat-container { flex: 1; min-width: 300px; background: #18181b; border-left: 1px solid var(--famm-border); display: flex; flex-direction: column; }
.famm-live-chat-iframe { width: 100%; height: 100%; min-height: 500px; border: none; }
.famm-live-status-bar { background: #1a1a1a; color: #fff; padding: 12px 20px; border-top: 1px solid var(--famm-border); display: flex; justify-content: space-between; align-items: center; width: 100%; }
@media (max-width: 960px) { .famm-live-layout { flex-direction: column; } .famm-live-video-container { width: 100%; padding-bottom: 56.25%; } .famm-live-chat-container { width: 100%; border-left: none; border-top: 1px solid var(--famm-border); } .famm-live-chat-iframe { height: 400px; min-height: auto; } }