/*
Theme Name: The Eagles HTML
Theme URI: https://www.theeaglesmarketing.com
Author: Tallyson souza
Author URI: https://www.theeaglesmarketing.com
Description: Tema WordPress limpo e otimizado para qualquer tipo de código
Version: 1.0
License: GPL2
*/

/* -------------------------------------------------------
   BJJ BRACKETS
------------------------------------------------------- */

/* Category list */
.bjj-cat-group { margin-bottom: 24px; }
.bjj-cat-group-title {
    color: #fff; font-weight: 800; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 6px 14px; border-radius: 6px 6px 0 0;
    display: inline-block;
}
.bjj-cat-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; background: #fff;
    border: 1px solid #e5e7eb; border-top: none;
    cursor: pointer; transition: background 0.15s;
}
.bjj-cat-row:hover { background: #f8fafc; }
.bjj-cat-row:last-child { border-radius: 0 0 6px 6px; }
.bjj-cat-info { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.bjj-cat-weight { font-weight: 700; font-size: 0.95rem; color: #111; }
.bjj-cat-meta { font-size: 0.8rem; color: #888; }
.bjj-cat-badge-done {
    background: #d1fae5; color: #065f46;
    font-size: 0.75rem; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
}
.bjj-cat-badge-new {
    background: #f3f4f6; color: #6b7280;
    font-size: 0.75rem; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
}

/* Bracket controls */
.bjj-bracket-controls {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 0 18px; flex-wrap: wrap;
}
.bjj-btn-generate {
    padding: 9px 20px; background: #049A49; color: #fff;
    border: none; border-radius: 6px; font-weight: 700;
    font-size: 0.9rem; cursor: pointer;
}
.bjj-btn-generate:hover { background: #037a3a; }
.bjj-btn-secondary {
    padding: 8px 16px; background: #fff; color: #374151;
    border: 1px solid #d1d5db; border-radius: 6px;
    font-weight: 600; font-size: 0.85rem; cursor: pointer;
}
.bjj-btn-secondary:hover { background: #f9fafb; }
.bjj-btn-danger {
    padding: 8px 16px; background: #fff; color: #dc2626;
    border: 1px solid #fca5a5; border-radius: 6px;
    font-weight: 600; font-size: 0.85rem; cursor: pointer;
}
.bjj-btn-danger:hover { background: #fff5f5; }

/* Bracket layout */
.bjj-bracket-scroll { overflow-x: auto; padding-bottom: 16px; }
.bjj-bracket {
    display: flex; gap: 0; align-items: stretch;
    min-width: fit-content;
}
.bjj-round {
    display: flex; flex-direction: column; min-width: 200px; min-height: 480px;
}
.bjj-round-label {
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.5px; color: #9ca3af; text-align: center;
    padding: 6px 12px 10px; border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
}
.bjj-round-matches {
    display: flex; flex-direction: column; flex: 1;
    justify-content: space-around; gap: 16px; padding: 8px 6px;
}

.bjj-match {
    background: #fff; border: 1px solid #e5e7eb;
    border-radius: 8px; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.bjj-match-divider { height: 1px; background: #f0f0f0; }

/* Players */
.bjj-player {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px; font-size: 0.85rem; gap: 6px;
    transition: background 0.12s;
}
.bjj-player.clickable { cursor: pointer; }
.bjj-player.clickable:hover { background: #f0fdf4; }
.bjj-player.winner { background: #d1fae5; }
.bjj-player.winner .bjj-player-name { font-weight: 800; color: #065f46; }
.bjj-player.bye { color: #d1d5db; font-style: italic; font-size: 0.8rem; }
.bjj-player.tbd { color: #d1d5db; font-size: 0.8rem; font-style: italic; }
.bjj-player-name { font-weight: 600; color: #1f2937; flex: 1; }
.bjj-player-team { font-size: 0.72rem; color: #9ca3af; white-space: nowrap; }
.bjj-win-check {
    background: #049A49; color: #fff;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 800; flex-shrink: 0;
}

/* Champion */
.bjj-champion-round { min-width: 200px; }
.bjj-champion-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: 10px; padding: 20px 16px;
    text-align: center; font-size: 1rem;
    color: #92400e; line-height: 1.6;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}

/* Merged category badge */
.bjj-merged-tag {
    background:#fef3c7; color:#92400e; border:1px solid #fde68a;
    font-size:0.65rem; font-weight:700; padding:1px 6px;
    border-radius:20px; letter-spacing:0.3px; vertical-align:middle;
}

/* Schedule clear button */
.bjj-sched-actions { display:flex; align-items:center; gap:10px; margin-bottom:16px; }

/* Tournament management */
/* Tournament active toggle switch */
.bjj-t-toggle {
    display:flex; align-items:center; cursor:pointer; flex-shrink:0;
}
.bjj-t-toggle input[type="checkbox"] { display:none; }
.bjj-t-toggle-track {
    width:38px; height:22px; border-radius:11px;
    background:#d1d5db; position:relative; transition:background 0.2s;
    flex-shrink:0;
}
.bjj-t-toggle-track::after {
    content:''; position:absolute; top:3px; left:3px;
    width:16px; height:16px; border-radius:50%;
    background:#fff; transition:transform 0.2s;
    box-shadow:0 1px 3px rgba(0,0,0,0.2);
}
.bjj-t-toggle input:checked + .bjj-t-toggle-track { background:#049A49; }
.bjj-t-toggle input:checked + .bjj-t-toggle-track::after { transform:translateX(16px); }

.bjj-t-list { display:flex; flex-direction:column; gap:10px; margin-top:8px; }
.bjj-t-row {
    display:flex; align-items:center; justify-content:space-between;
    background:#fff; border:1px solid #e5e7eb; border-radius:8px;
    padding:14px 18px; gap:14px;
}
.bjj-t-row-left { display:flex; flex-direction:column; gap:3px; flex:1; min-width:0; }
.bjj-t-row-name { font-weight:700; color:#1f2937; font-size:0.95rem; }
.bjj-t-row-meta { font-size:0.8rem; color:#9ca3af; }
.bjj-t-badge-active {
    background:#d1fae5; color:#065f46; font-size:0.72rem; font-weight:700;
    padding:2px 8px; border-radius:20px; white-space:nowrap;
}
.bjj-t-badge-draft {
    background:#f3f4f6; color:#6b7280; font-size:0.72rem; font-weight:700;
    padding:2px 8px; border-radius:20px; white-space:nowrap;
}
.bjj-t-row-actions { display:flex; gap:8px; }
.bjj-t-edit-btn {
    padding:6px 14px; background:#fff; color:#374151;
    border:1px solid #d1d5db; border-radius:6px;
    font-size:0.82rem; font-weight:600; cursor:pointer;
}
.bjj-t-edit-btn:hover { background:#f9fafb; }
.bjj-t-delete-btn {
    padding:6px 14px; background:#fff; color:#dc2626;
    border:1px solid #fca5a5; border-radius:6px;
    font-size:0.82rem; font-weight:600; cursor:pointer;
}
.bjj-t-delete-btn:hover { background:#fff5f5; }
.bjj-t-empty { padding:40px; text-align:center; color:#9ca3af; }

/* Tournament modal footer */
.bjj-modal-footer {
    display:flex; align-items:center; gap:10px;
    padding:16px 24px; border-top:1px solid #f0f0f0;
}

/* -------------------------------------------------------
   CSS VARIABLES — Academy palette
------------------------------------------------------- */
:root {
    --bjj-green:  #049A49;
    --bjj-black:  #111111;
    --bjj-yellow: #e9b930;
    --bjj-white:  #ffffff;
    --bjj-red:    #dc2626;
    --bjj-gray:   #9ca3af;
    --bjj-border: #e5e7eb;
    --bjj-bg:     #f8fafc;
}

/* -------------------------------------------------------
   FONT INHERITANCE — match the rest of the site (Inter)
   Form controls (input/select/button/textarea) do NOT
   inherit font-family by default, so we set it explicitly.
------------------------------------------------------- */
.bjj-admin-wrap,
.bjj-modal-overlay,
.bjj-floating-admin-bar {
    font-family: "Inter", "Helvetica Neue", sans-serif;
}
.bjj-admin-wrap input,
.bjj-admin-wrap select,
.bjj-admin-wrap button,
.bjj-admin-wrap textarea,
.bjj-modal-overlay input,
.bjj-modal-overlay select,
.bjj-modal-overlay button,
.bjj-modal-overlay textarea {
    font-family: inherit;
}

/* -------------------------------------------------------
   ADMIN LAYOUT — wrap + sidebar + main
------------------------------------------------------- */
.bjj-admin-wrap {
    display: flex;
    min-height: 100vh;
    background: var(--bjj-bg);
}

/* --- Sidebar --- */
.bjj-admin-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--bjj-black);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.bjj-admin-logo {
    padding: 22px 20px 18px !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    color: var(--bjj-green) !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.bjj-admin-menu {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.bjj-admin-menu li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #9ca3af;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    border-left: 3px solid transparent;
    user-select: none;
}
.bjj-admin-menu li:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}
.bjj-admin-menu li.active {
    color: #fff;
    background: rgba(4,154,73,0.13);
    border-left-color: var(--bjj-green);
}
.bjj-admin-menu li svg { flex-shrink: 0; opacity: 0.65; }
.bjj-admin-menu li.active svg,
.bjj-admin-menu li:hover svg { opacity: 1; }

/* --- Main content --- */
.bjj-admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.bjj-admin-view { padding: 28px 32px; }

/* --- View header --- */
.bjj-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.bjj-admin-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #111;
}

/* --- Buttons --- */
.bjj-back-btn {
    padding: 7px 16px;
    background: #fff;
    border: 1px solid var(--bjj-border);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s;
}
.bjj-back-btn:hover { background: #f3f4f6; }

.bjj-toggle-btn {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--bjj-border);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s;
}
.bjj-toggle-btn:hover { background: #f9fafb; }

/* --- Filters --- */
.bjj-admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}
.bjj-admin-filters select {
    padding: 8px 12px;
    border: 1px solid var(--bjj-border);
    border-radius: 6px;
    font-size: 0.85rem;
    background: #fff;
    color: #374151;
    cursor: pointer;
}
.sort-wrapper { display: flex; align-items: center; gap: 8px; }

/* --- Athlete list row --- */
.bjj-admin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--bjj-border);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.bjj-admin-row:hover {
    border-color: var(--bjj-green);
    box-shadow: 0 2px 8px rgba(4,154,73,0.1);
}
.row-info { display: flex; flex-direction: column; gap: 2px; }
.row-meta { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: #6b7280; }
.row-belt { flex-shrink: 0; }

/* --- Mini belt (athlete list) --- */
.admin-mini-belt {
    display: flex;
    align-items: center;
    border-radius: 4px;
    overflow: hidden;
    height: 28px;
    min-width: 100px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.admin-belt-name {
    flex: 1;
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.admin-mini-tip {
    width: 22px;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0 3px;
}
.admin-stripe {
    width: 3px;
    height: 62%;
    background: #fff;
    border-radius: 1px;
    opacity: 0.85;
    flex-shrink: 0;
}
.admin-detail-stripe {
    height: 5px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    margin: 3px 6px;
}

/* Belt background colors */
.belt-white-bg  { background: #e8e8e8; }
.belt-grey-bg   { background: #9ca3af; }
.belt-yellow-bg { background: #eab308; }
.belt-orange-bg { background: #f97316; }
.belt-green-bg  { background: #16a34a; }
.belt-blue-bg   { background: #2563eb; }
.belt-purple-bg { background: #7c3aed; }
.belt-brown-bg  { background: #92400e; }
.belt-black-bg  { background: #1a1a1a; }

/* -------------------------------------------------------
   CATEGORY ENHANCEMENTS — Smoothcomp style
------------------------------------------------------- */
.bjj-cat-group-title { display: block; }
.bjj-cat-gender-header {
    padding: 6px 18px;
    background: #f3f4f6;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border: 1px solid #e5e7eb;
    border-top: none;
}
.bjj-cat-summary {
    background: #f9fafb; border: 1px solid #e5e7eb;
    border-radius: 6px; padding: 8px 16px;
    font-size: 0.85rem; color: #555;
    margin-bottom: 16px;
}
.bjj-abs-tag {
    display: inline-block;
    font-style: normal; font-size: 0.7rem;
    background: #e5e7eb; padding: 1px 6px;
    border-radius: 3px; margin-left: 4px;
    color: #374151; font-weight: 700;
}

/* -------------------------------------------------------
   FLOATING ADMIN BAR
------------------------------------------------------- */
.bjj-floating-admin-bar {
    position: fixed; bottom: 24px; right: 24px; z-index: 9999;
    display: flex; align-items: center; gap: 12px;
    background: var(--bjj-black); color: #fff;
    padding: 12px 18px; border-radius: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    font-size: 0.9rem; font-family: "Inter", "Helvetica Neue", sans-serif;
}
.bjj-floating-admin-icon {
    display: flex; align-items: center;
    color: #10b981;
}
.bjj-floating-admin-label { font-weight: 600; }
.bjj-floating-admin-btn {
    background: #049A49; color: #fff;
    padding: 6px 16px; border-radius: 20px;
    text-decoration: none; font-weight: 700;
    font-size: 0.85rem; white-space: nowrap;
    transition: background 0.15s;
}
.bjj-floating-admin-btn:hover { background: #037a3a; color: #fff; }

/* -------------------------------------------------------
   MODAL — INSCRIÇÃO GRATUITA
------------------------------------------------------- */
.bjj-modal-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,0.55);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.bjj-modal-box {
    background: #fff; border-radius: 12px;
    width: 100%; max-width: 580px;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.bjj-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid #e5e7eb;
}
.bjj-modal-header h3 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.bjj-modal-close {
    background: none; border: none; cursor: pointer;
    font-size: 1.1rem; color: #6b7280; line-height: 1;
}
.bjj-modal-body { padding: 20px 24px; }
.bjj-modal-footer {
    padding: 16px 24px; border-top: 1px solid #e5e7eb;
    display: flex; justify-content: flex-end; gap: 10px;
}
.bjj-form-group { margin-bottom: 14px; }
.bjj-form-group label {
    display: block; font-size: 0.85rem;
    font-weight: 600; color: #374151; margin-bottom: 5px;
}
.bjj-form-group input,
.bjj-form-group select {
    width: 100%; padding: 9px 12px;
    border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 0.9rem; box-sizing: border-box;
}
.bjj-form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.bjj-dropdown-results {
    position: relative; background: #fff;
    border: 1px solid #d1d5db; border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px; overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
}
.bjj-dropdown-results:not(:empty) { display: block; }
.bjj-dropdown-item {
    padding: 10px 14px; cursor: pointer;
    font-size: 0.88rem; border-bottom: 1px solid #f3f4f6;
    display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
}
.bjj-dropdown-item:hover { background: #f0fdf4; }
.bjj-selected-athlete { margin-top: 6px; }
.bjj-btn-free-reg {
    padding: 9px 18px; background: #7c3aed; color: #fff;
    border: none; border-radius: 6px;
    font-weight: 700; font-size: 0.88rem; cursor: pointer;
}
.bjj-btn-free-reg:hover { background: #6d28d9; }

/* -------------------------------------------------------
   CRONOGRAMA
------------------------------------------------------- */
.bjj-schedule-config {
    display: flex; flex-wrap: wrap; gap: 16px;
    align-items: flex-end; padding: 16px 0 20px;
    border-bottom: 1px solid #e5e7eb; margin-bottom: 20px;
}
.bjj-config-row {
    display: flex; flex-direction: column; gap: 5px;
}
.bjj-config-row label {
    font-size: 0.8rem; font-weight: 600;
    color: #555; text-transform: uppercase; letter-spacing: 0.3px;
}
.bjj-config-row input {
    padding: 8px 10px; border: 1px solid #d1d5db;
    border-radius: 6px; font-size: 0.9rem;
}
.bjj-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.bjj-schedule-mat {
    border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden;
}
.bjj-mat-header {
    padding: 10px 16px; color: #fff;
    font-weight: 800; font-size: 0.85rem;
    display: flex; justify-content: space-between; align-items: center;
}
.bjj-schedule-entry {
    display: flex; gap: 12px; padding: 10px 16px;
    border-bottom: 1px solid #f3f4f6;
}
.bjj-schedule-entry:last-child { border-bottom: none; }
.bjj-entry-time {
    font-size: 0.85rem; font-weight: 800; color: #111;
    min-width: 50px; text-align: right; flex-shrink: 0;
}
.bjj-entry-info { flex: 1; }
.bjj-entry-label {
    font-size: 0.88rem; font-weight: 600; color: #1f2937;
    text-transform: capitalize;
}
.bjj-entry-meta { font-size: 0.78rem; color: #9ca3af; margin-top: 2px; }

/* -------------------------------------------------------
   CATEGORY DRAG-TO-MERGE
------------------------------------------------------- */
.bjj-drag-handle { cursor: grab; opacity: 0.55; transition: opacity 0.15s; }
.bjj-cat-row:hover .bjj-drag-handle { opacity: 1; }
.bjj-cat-dragging { opacity: 0.4; background: #f3f4f6 !important; }
.bjj-cat-drop-target {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    outline: 2px dashed #3b82f6;
    outline-offset: -2px;
}
.bjj-split-btn {
    padding: 3px 10px; background: #fff; color: #92400e;
    border: 1px solid #fde68a; border-radius: 20px;
    font-size: 0.7rem; font-weight: 700; cursor: pointer; flex-shrink: 0;
}
.bjj-split-btn:hover { background: #fef3c7; }

/* -------------------------------------------------------
   ATHLETE EDITOR PANEL (inside bracket view)
------------------------------------------------------- */
.bjj-ae-panel {
    border: 1px solid #e5e7eb; border-radius: 8px;
    overflow: hidden; margin-bottom: 16px; background: #fff;
}
.bjj-ae-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 18px; background: #f9fafb;
    border-bottom: 1px solid #e5e7eb; font-size: 0.9rem;
}
.bjj-ae-close {
    padding: 5px 14px; background: #fff; border: 1px solid #d1d5db;
    border-radius: 6px; font-size: 0.82rem; font-weight: 600;
    cursor: pointer; color: #374151;
}
.bjj-ae-close:hover { background: #f9fafb; }
.bjj-ae-cols { display: grid; grid-template-columns: 1fr 1fr; }
.bjj-ae-col { padding: 14px 18px; }
.bjj-ae-col:first-child { border-right: 1px solid #e5e7eb; }
.bjj-ae-label {
    font-size: 0.72rem; font-weight: 700; color: #9ca3af;
    text-transform: uppercase; letter-spacing: 0.4px; margin: 0 0 10px;
}
.bjj-ae-search {
    width: 100%; padding: 7px 10px; border: 1px solid #d1d5db;
    border-radius: 6px; font-size: 0.85rem;
    margin-bottom: 8px; box-sizing: border-box;
}
.bjj-ae-item {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 0; border-bottom: 1px solid #f3f4f6;
}
.bjj-ae-item:last-child { border-bottom: none; }
.bjj-ae-item-info { flex: 1; min-width: 0; }
.bjj-ae-item-name {
    display: block; font-size: 0.85rem; font-weight: 600; color: #1f2937;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bjj-ae-item-sub { font-size: 0.73rem; color: #9ca3af; }
.bjj-ae-remove, .bjj-ae-add {
    flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; padding: 0;
}
.bjj-ae-remove { background: #fff; border: 1px solid #fca5a5; color: #dc2626; }
.bjj-ae-remove:hover { background: #fee2e2; }
.bjj-ae-add { background: #fff; border: 1px solid #86efac; color: #16a34a; }
.bjj-ae-add:hover { background: #dcfce7; }
.bjj-ae-empty { font-size: 0.82rem; color: #9ca3af; font-style: italic; padding: 6px 0; }

/* -------------------------------------------------------
   TOUCH MERGE — long-press pick mode (mobile)
------------------------------------------------------- */
.bjj-cat-row.bjj-touch-picked {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
}
.bjj-cat-row.bjj-touch-target {
    cursor: pointer;
    background: #f0fdf4;
}
.bjj-touch-hint {
    position: fixed;
    bottom: 72px;
    left: 12px; right: 12px;
    background: var(--bjj-black);
    color: #fff;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 0.85rem; font-weight: 600;
    display: none;
    align-items: center; justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    z-index: 8900;
    font-family: "Inter", "Helvetica Neue", sans-serif;
    animation: bjjSlideUp 0.2s ease;
}
@keyframes bjjSlideUp {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.bjj-touch-hint-cancel {
    background: var(--bjj-green);
    border: none; color: #fff; font-weight: 700;
    padding: 5px 13px; border-radius: 6px; cursor: pointer;
    font-size: 0.82rem; flex-shrink: 0;
}

/* -------------------------------------------------------
   MOBILE QUICKBAR — hidden on desktop
------------------------------------------------------- */
.bjj-quickbar { display: none; }
.bjj-drawer-overlay { display: none; }

/* -------------------------------------------------------
   MOBILE RESPONSIVE — target: 390px (iPhone 12 Pro)
------------------------------------------------------- */
@media (max-width: 768px) {

    /* ---- Sidebar → hidden ---- */
    .bjj-admin-sidebar { display: none !important; }

    /* ---- Wrap: column layout ---- */
    .bjj-admin-wrap { flex-direction: column !important; }

    /* ---- Main: bottom padding for quickbar ---- */
    .bjj-admin-main { padding-bottom: 72px !important; }

    /* ---- Quickbar ---- */
    .bjj-quickbar {
        display: flex;
        position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
        background: var(--bjj-black);
        height: 60px;
        align-items: center;
        justify-content: space-around;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
        border-top: 1px solid rgba(255,255,255,0.08);
        font-family: "Inter", "Helvetica Neue", sans-serif;
    }
    .bjj-qb-btn {
        display: flex; flex-direction: column; align-items: center; gap: 3px;
        color: #6b7280; background: none; border: none; cursor: pointer;
        font-size: 0.58rem; font-weight: 700; text-transform: uppercase;
        letter-spacing: 0.4px; padding: 6px 0; flex: 1;
        transition: color 0.15s;
    }
    .bjj-qb-btn.active { color: #10b981; }
    .bjj-qb-btn svg { flex-shrink: 0; }

    /* ---- Drawer overlay ---- */
    .bjj-drawer-overlay {
        position: fixed; inset: 0; z-index: 9500;
        background: rgba(0,0,0,0.5);
        opacity: 0; pointer-events: none;
        transition: opacity 0.2s;
        font-family: "Inter", "Helvetica Neue", sans-serif;
    }
    .bjj-drawer-overlay.open { display: block; opacity: 1; pointer-events: all; }
    .bjj-drawer {
        position: absolute; bottom: 60px; left: 0; right: 0;
        background: var(--bjj-black);
        border-radius: 16px 16px 0 0;
        padding: 0 0 8px;
        transform: translateY(100%);
        transition: transform 0.25s ease;
    }
    .bjj-drawer-overlay.open .bjj-drawer { transform: translateY(0); }
    .bjj-drawer-handle {
        width: 40px; height: 4px; border-radius: 2px;
        background: rgba(255,255,255,0.2);
        margin: 10px auto 8px;
    }
    .bjj-drawer-item {
        display: flex; align-items: center; gap: 14px;
        padding: 14px 24px; color: #d1d5db;
        font-size: 0.92rem; font-weight: 600; cursor: pointer;
        border: none; background: none; width: 100%; text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        transition: color 0.15s;
    }
    .bjj-drawer-item:last-child { border-bottom: none; }
    .bjj-drawer-item:active { color: #10b981; }
    .bjj-drawer-item svg { color: inherit; flex-shrink: 0; }

    /* ---- Athletes header ---- */
    .bjj-admin-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding-bottom: 12px !important;
    }
    /* Count badge — more subtle */
    #bjj-athlete-count {
        font-size: 0.72rem !important;
        padding: 2px 8px !important;
        box-shadow: none !important;
    }
    /* Action buttons: Free Reg + Unit toggle */
    .bjj-admin-header > div:last-child {
        display: flex !important; flex-wrap: wrap !important; gap: 7px !important;
    }
    .bjj-btn-free-reg {
        font-size: 0.8rem !important; padding: 7px 12px !important;
    }
    .bjj-toggle-btn {
        font-size: 0.8rem !important; padding: 7px 10px !important;
    }

    /* Filters row */
    .bjj-admin-filters select {
        font-size: 0.8rem !important; padding: 6px 8px !important;
    }
    .sort-wrapper { gap: 6px !important; flex-wrap: wrap; }

    /* ---- Tournament select in brackets/schedule header ---- */
    #bjj-tournament-select,
    #bjj-schedule-tournament-select {
        width: 100% !important; max-width: 100% !important; font-size: 0.85rem !important;
    }

    /* ---- Details view ---- */
    /* Hero header: stack photo+name / belt tip */
    .bjj-details-header {
        flex-direction: column !important;
        min-height: auto !important;
    }
    .bjj-details-header > div:first-child { padding: 16px !important; }
    .bjj-details-header > div:last-child {
        /* belt tip bar becomes a thin bottom strip */
        width: 100% !important; height: 6px !important;
        flex-direction: row !important; justify-content: center !important;
        gap: 6px !important; padding: 0 !important;
    }
    /* Name + email */
    .bjj-details-header h1 { font-size: 1.3rem !important; }
    .bjj-details-header p  { font-size: 0.82rem !important; }

    /* Main info grid: 2 cols → 1 col */
    .bjj-details-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 20px !important;
    }

    /* Registration card inner grid: 2 cols → 1 col */
    .bjj-reg-card-grid {
        grid-template-columns: 1fr !important;
        gap: 4px !important;
        padding: 12px !important;
        font-size: 0.82rem !important;
    }

    /* ---- Brackets — category list ---- */
    /* Reduce padding and font on category rows */
    .bjj-cat-row { padding: 10px 10px !important; }
    .bjj-cat-weight { font-size: 0.85rem !important; }
    .bjj-cat-meta { font-size: 0.7rem !important; }
    /* Hide drag handle — no drag on touch */
    .bjj-drag-handle { display: none !important; }
    /* Category group title */
    .bjj-cat-group-title { font-size: 0.72rem !important; padding: 5px 10px !important; }
    .bjj-cat-gender-header { font-size: 0.7rem !important; padding: 4px 10px !important; }

    /* ---- Bracket view — bracket title header ---- */
    #bjj-bracket-title {
        font-size: 0.82rem !important;
        flex-wrap: wrap !important;
        gap: 5px !important;
    }
    #bjj-bracket-title span { font-size: 0.72rem !important; padding: 3px 8px !important; }
    #bjj-bracket-title strong { font-size: 0.85rem !important; }

    /* Bracket controls wrap */
    .bjj-bracket-controls { flex-wrap: wrap !important; gap: 6px !important; padding: 10px 0 14px !important; }
    .bjj-btn-secondary,
    .bjj-btn-danger { font-size: 0.78rem !important; padding: 7px 12px !important; }

    /* Athlete editor 2 cols → 1 col */
    .bjj-ae-cols { grid-template-columns: 1fr !important; }
    .bjj-ae-col:first-child { border-right: none !important; border-bottom: 1px solid #e5e7eb; }

    /* General heading size reduction */
    .bjj-admin-header h2 { font-size: 1.1rem !important; margin: 0 !important; }

    /* Schedule config wrap */
    .bjj-schedule-config { gap: 12px !important; }
    .bjj-config-row input { width: 60px !important; }
    .bjj-btn-generate { font-size: 0.85rem !important; padding: 8px 14px !important; }
}

