/* ============================
   Torneios Manager - CSS
   Mobile-first, clean, moderno
   ============================ */

:root {
    --tm-primary: #2563eb;
    --tm-primary-dark: #1d4ed8;
    --tm-primary-light: #dbeafe;
    --tm-success: #16a34a;
    --tm-success-light: #dcfce7;
    --tm-warning: #ea580c;
    --tm-warning-light: #fff7ed;
    --tm-danger: #dc2626;
    --tm-danger-light: #fef2f2;
    --tm-gray-50: #f9fafb;
    --tm-gray-100: #f3f4f6;
    --tm-gray-200: #e5e7eb;
    --tm-gray-300: #d1d5db;
    --tm-gray-400: #9ca3af;
    --tm-gray-500: #6b7280;
    --tm-gray-600: #4b5563;
    --tm-gray-700: #374151;
    --tm-gray-800: #1f2937;
    --tm-gray-900: #111827;
    --tm-radius: 12px;
    --tm-radius-sm: 8px;
    --tm-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --tm-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --tm-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --tm-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--tm-font);
    background: var(--tm-gray-50);
    color: var(--tm-gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Container */
.tm-container {
  max-width: 1170px;
  margin: 0 auto;
  width: 96%;
}
/* ============================
   HEADER
   ============================ */
.tm-header {
    background: #fff;
    border-bottom: 1px solid var(--tm-gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 90px;
}

.tm-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.tm-header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--tm-gray-900);
    font-weight: 700;
    font-size: 1.1rem;
    transition: opacity 0.2s;
}

.tm-header__logo:hover {
    opacity: 0.8;
}

.tm-header__logo img {
    height: 105px;
    width: auto;
    object-fit: contain;
}

.tm-header__logo svg {
    color: var(--tm-primary);
}

.tm-header__nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--tm-gray-200);
    padding: 8px 0;
    box-shadow: var(--tm-shadow-md);
}

.tm-header__nav.active {
    display: flex;
}

.tm-header__nav a {
    padding: 12px 20px;
    text-decoration: none;
    color: var(--tm-gray-600);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s, background 0.2s;
}

.tm-header__nav a:hover {
    color: var(--tm-primary);
    background: var(--tm-gray-50);
}

/* Hamburger */
.tm-header__menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.tm-header__menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--tm-gray-700);
    border-radius: 2px;
    transition: 0.2s;
}

@media (min-width: 768px) {
    .tm-header__nav {
        display: flex;
        flex-direction: row;
        position: static;
        border-bottom: none;
        padding: 0;
        box-shadow: none;
        gap: 4px;
    }

    .tm-header__nav a {
        padding: 8px 14px;
        border-radius: var(--tm-radius-sm);
    }

    .tm-header__menu-toggle {
        display: none;
    }
}

/* ============================
   FOOTER
   ============================ */
.tm-footer {
    background: #fff;
    border-top: 1px solid var(--tm-gray-200);
    padding: 20px 0;
    text-align: center;
    color: var(--tm-gray-400);
    font-size: 0.85rem;
    margin-top: auto;
}

/* ============================
   DASHBOARD
   ============================ */
.tm-dashboard {
    padding: 24px 0 40px;
}

.tm-dashboard__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--tm-gray-900);
    margin-bottom: 6px;
}

.tm-dashboard__subtitle {
    color: var(--tm-gray-500);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* Quick Actions */
.tm-quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

@media (min-width: 480px) {
    .tm-quick-actions {
        grid-template-columns: 1fr 1fr;
    }
}

.tm-quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: #fff;
    border: 2px solid var(--tm-gray-200);
    border-radius: var(--tm-radius);
    text-decoration: none;
    color: var(--tm-gray-800);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
}

.tm-quick-action:hover {
    border-color: var(--tm-primary);
    box-shadow: var(--tm-shadow-md);
    transform: translateY(-1px);
}

.tm-quick-action__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.tm-quick-action__icon--primary {
    background: var(--tm-primary-light);
    color: var(--tm-primary);
}

.tm-quick-action__icon--success {
    background: var(--tm-success-light);
    color: var(--tm-success);
}

/* Search */
.tm-search {
    margin-bottom: 24px;
}

.tm-search__input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid var(--tm-gray-200);
    border-radius: var(--tm-radius);
    font-size: 0.95rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 14px center no-repeat;
    outline: none;
    transition: border-color 0.2s;
    font-family: var(--tm-font);
}

.tm-search__input:focus {
    border-color: var(--tm-primary);
}

/* Torneios Grid */
.tm-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tm-gray-800);
    margin-bottom: 16px;
}

.tm-torneios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 640px) {
    .tm-torneios-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 900px) {
    .tm-torneios-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ============================
   CARD TORNEIO
   ============================ */
.tm-card {
    background: #fff;
    border-radius: var(--tm-radius);
    border: 1px solid var(--tm-gray-200);
    padding: 20px;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tm-card:hover {
    box-shadow: var(--tm-shadow-lg);
    transform: translateY(-2px);
}

.tm-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tm-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tm-gray-900);
    line-height: 1.3;
}

.tm-card__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--tm-gray-500);
}

.tm-card__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tm-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--tm-gray-100);
}

.tm-card__players {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tm-player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.tm-player-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tm-gray-200);
    color: var(--tm-gray-600);
    font-size: 0.7rem;
    font-weight: 600;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Status Badge */
.tm-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tm-badge--grupos {
    background: var(--tm-primary-light);
    color: var(--tm-primary);
}

.tm-badge--mata_mata {
    background: var(--tm-warning-light);
    color: var(--tm-warning);
}

.tm-badge--finalizado {
    background: var(--tm-success-light);
    color: var(--tm-success);
}

/* ============================
   SINGLE TORNEIO
   ============================ */
.tm-single {
    padding: 24px 0 40px;
}

.tm-single__header {
    margin-bottom: 28px;
}

.tm-single__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--tm-gray-900);
    margin-bottom: 8px;
}

.tm-single__info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--tm-gray-500);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.tm-single__info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Progress Steps */
.tm-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--tm-gray-200);
    border-radius: var(--tm-radius);
    overflow-x: auto;
}

.tm-progress__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    flex: 1;
    min-width: 60px;
}

.tm-progress__step::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--tm-gray-200);
    z-index: 0;
}

.tm-progress__step:last-child::after {
    display: none;
}

.tm-progress__dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tm-gray-200);
    border: 2px solid var(--tm-gray-300);
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.tm-progress__step--active .tm-progress__dot {
    background: var(--tm-primary);
    border-color: var(--tm-primary);
    box-shadow: 0 0 0 4px var(--tm-primary-light);
}

.tm-progress__step--done .tm-progress__dot {
    background: var(--tm-success);
    border-color: var(--tm-success);
}

.tm-progress__step--done::after {
    background: var(--tm-success);
}

.tm-progress__label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--tm-gray-400);
    text-align: center;
    white-space: nowrap;
}

.tm-progress__step--active .tm-progress__label {
    color: var(--tm-primary);
}

.tm-progress__step--done .tm-progress__label {
    color: var(--tm-success);
}

/* Action Bar */
.tm-action-bar {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--tm-gray-200);
    text-align: center;
}

/* Tabs */
.tm-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--tm-gray-200);
    margin-bottom: 24px;
    overflow-x: auto;
}

.tm-tab {
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--tm-gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: var(--tm-font);
    transition: color 0.2s;
}

.tm-tab:hover {
    color: var(--tm-gray-700);
}

.tm-tab.active {
    color: var(--tm-primary);
    border-bottom-color: var(--tm-primary);
}

.tm-tab-content {
    display: none;
}

.tm-tab-content.active {
    display: block;
}

/* ============================
   TABELA DE CLASSIFICACAO
   ============================ */
.tm-table-wrapper {
    overflow-x: auto;
    margin-bottom: 24px;
}

.tm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 500px;
}

.tm-table th {
    background: var(--tm-gray-100);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--tm-gray-600);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.tm-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--tm-gray-100);
    color: var(--tm-gray-700);
}

.tm-table th:first-child,
.tm-table td:first-child {
    border-radius: var(--tm-radius-sm) 0 0 var(--tm-radius-sm);
}

.tm-table th:last-child,
.tm-table td:last-child {
    border-radius: 0 var(--tm-radius-sm) var(--tm-radius-sm) 0;
}

.tm-table tr:hover td {
    background: var(--tm-gray-50);
}

.tm-table .tm-pos {
    font-weight: 700;
    color: var(--tm-gray-400);
    width: 30px;
    text-align: center;
}

.tm-table .tm-pos--top {
    color: var(--tm-success);
}

.tm-table .tm-jogador-nome {
    font-weight: 600;
    color: var(--tm-gray-900);
}

.tm-table .tm-num {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* ============================
   PARTIDAS (Rodadas)
   ============================ */
.tm-rodada {
    margin-bottom: 24px;
}

.tm-rodada__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tm-gray-700);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--tm-gray-200);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tm-rodada__check {
    color: var(--tm-success);
    font-size: 1rem;
}

.tm-rodada__lock {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--tm-gray-400);
    margin-left: auto;
}

.tm-rodada--locked .tm-partidas-list {
    opacity: 0.3;
    pointer-events: none;
    filter: blur(2px);
    user-select: none;
}

.tm-rodada--locked .tm-rodada__title {
    color: var(--tm-gray-400);
}

.tm-rodada--done .tm-rodada__title {
    color: var(--tm-success);
    border-bottom-color: var(--tm-success-light);
}

.tm-partidas-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tm-partida {
    background: #fff;
    border: 1px solid var(--tm-gray-200);
    border-radius: var(--tm-radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.tm-partida--bye {
    opacity: 0.5;
}

.tm-partida__jogadores {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.tm-partida__nome {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--tm-gray-800);
    min-width: 80px;
    text-align: center;
}

.tm-partida__vs {
    color: var(--tm-gray-400);
    font-size: 0.8rem;
    font-weight: 700;
}

.tm-partida__placar {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tm-partida__placar-display {
    font-weight: 700;
    font-size: 1rem;
    color: var(--tm-gray-900);
    background: var(--tm-gray-100);
    padding: 4px 12px;
    border-radius: var(--tm-radius-sm);
}

.tm-partida__placar-form {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tm-partida__placar-input {
    width: 50px;
    padding: 6px 8px;
    border: 2px solid var(--tm-gray-200);
    border-radius: var(--tm-radius-sm);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--tm-font);
    outline: none;
    transition: border-color 0.2s;
}

.tm-partida__placar-input:focus {
    border-color: var(--tm-primary);
}

.tm-partida__placar-x {
    color: var(--tm-gray-400);
    font-weight: 700;
    font-size: 0.85rem;
}

/* ============================
   MATA-MATA BRACKET
   ============================ */
.tm-bracket {
    margin-top: 16px;
}

.tm-bracket__round {
    margin-bottom: 24px;
}

.tm-bracket__round-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tm-primary);
    margin-bottom: 12px;
    padding: 6px 14px;
    background: var(--tm-primary-light);
    border-radius: var(--tm-radius-sm);
    display: inline-block;
}

/* ============================
   BUTTONS
   ============================ */
.tm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--tm-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--tm-font);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}

.tm-btn--primary {
    background: var(--tm-primary);
    color: #fff;
}

.tm-btn--primary:hover {
    background: var(--tm-primary-dark);
}

.tm-btn--success {
    background: var(--tm-success);
    color: #fff;
}

.tm-btn--success:hover {
    background: #15803d;
}

.tm-btn--outline {
    background: #fff;
    color: var(--tm-gray-700);
    border: 2px solid var(--tm-gray-200);
}

.tm-btn--outline:hover {
    border-color: var(--tm-primary);
    color: var(--tm-primary);
}

.tm-btn--sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.tm-btn--block {
    width: 100%;
}

.tm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================
   FORMS
   ============================ */
.tm-form {
    background: #fff;
    border-radius: var(--tm-radius);
    border: 1px solid var(--tm-gray-200);
    padding: 24px;
}

.tm-form__group {
    margin-bottom: 18px;
}

.tm-form__label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--tm-gray-700);
    margin-bottom: 6px;
}

.tm-form__input,
.tm-form__select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--tm-gray-200);
    border-radius: var(--tm-radius-sm);
    font-size: 0.9rem;
    font-family: var(--tm-font);
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}

.tm-form__input:focus,
.tm-form__select:focus {
    border-color: var(--tm-primary);
}

.tm-form__hint {
    font-size: 0.8rem;
    color: var(--tm-gray-400);
    margin-top: 4px;
}

.tm-form__help {
    display: block;
    font-size: 0.75rem;
    color: var(--tm-gray-500);
    margin-top: 4px;
}

/* Jogadores Selector */
.tm-jogadores-selector {
    border: 2px solid var(--tm-gray-200);
    border-radius: var(--tm-radius-sm);
    max-height: 300px;
    overflow-y: auto;
}

.tm-jogadores-selector__search {
    padding: 10px;
    border-bottom: 1px solid var(--tm-gray-200);
    position: sticky;
    top: 0;
    background: #fff;
}

.tm-jogadores-selector__search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--tm-gray-200);
    border-radius: var(--tm-radius-sm);
    font-size: 0.85rem;
    font-family: var(--tm-font);
    outline: none;
}

.tm-jogadores-selector__list {
    padding: 8px;
}

.tm-jogadores-selector__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--tm-radius-sm);
    cursor: pointer;
    transition: background 0.15s;
}

.tm-jogadores-selector__item:hover {
    background: var(--tm-gray-50);
}

.tm-jogadores-selector__item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--tm-primary);
}

.tm-jogadores-selector__item label {
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--tm-gray-700);
}

.tm-jogadores-selector__count {
    padding: 8px 14px;
    background: var(--tm-gray-50);
    font-size: 0.8rem;
    color: var(--tm-gray-500);
    border-top: 1px solid var(--tm-gray-200);
    position: sticky;
    bottom: 0;
}

/* ============================
   ALERTS / MESSAGES
   ============================ */
.tm-alert {
    padding: 14px 18px;
    border-radius: var(--tm-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 16px;
    display: none;
}

.tm-alert.show {
    display: block;
}

.tm-alert--success {
    background: var(--tm-success-light);
    color: var(--tm-success);
    border: 1px solid #bbf7d0;
}

.tm-alert--error {
    background: var(--tm-danger-light);
    color: var(--tm-danger);
    border: 1px solid #fecaca;
}

.tm-alert--info {
    background: var(--tm-primary-light);
    color: var(--tm-primary);
    border: 1px solid #bfdbfe;
}

/* ============================
   JOGADORES PAGE
   ============================ */
.tm-jogadores {
    padding: 24px 0 40px;
}

.tm-jogadores__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

@media (min-width: 640px) {
    .tm-jogadores__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 900px) {
    .tm-jogadores__grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.tm-jogador-card {
    background: #fff;
    border: 1px solid var(--tm-gray-200);
    border-radius: var(--tm-radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.tm-jogador-card__foto {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--tm-gray-100);
}

.tm-jogador-card__info {
    flex: 1;
    min-width: 0;
}

.tm-jogador-card__name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--tm-gray-900);
    margin-bottom: 2px;
}

.tm-jogador-card__apelido {
    color: var(--tm-gray-500);
    font-size: 0.85rem;
}

.tm-jogador-card__cidade {
    color: var(--tm-gray-400);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ============================
   EMPTY STATE
   ============================ */
.tm-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--tm-gray-400);
  width: 100%;
  position: absolute;
  right: 0;
  left: 0;
}
.tm-empty__icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.tm-empty__text {
    font-size: 1rem;
    margin-bottom: 16px;
}

/* ============================
   LOADING
   ============================ */
.tm-loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--tm-gray-200);
    border-top-color: var(--tm-primary);
    border-radius: 50%;
    animation: tm-spin 0.6s linear infinite;
}

@keyframes tm-spin {
    to { transform: rotate(360deg); }
}

/* ============================
   NOVO TORNEIO PAGE
   ============================ */
.tm-novo-torneio {
    padding: 24px 0 40px;
}

.tm-novo-torneio .tm-form {
    max-width: 700px;
}

/* ============================
   ACTION BAR
   ============================ */
.tm-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 10px;
}

/* ============================
   BACK LINK
   ============================ */
.tm-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tm-gray-500);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.tm-back:hover {
    color: var(--tm-primary);
}

/* ============================
   CAMPEAO
   ============================ */
.tm-campeao {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, #fef9c3, #fde68a);
    border-radius: var(--tm-radius);
    margin-bottom: 24px;
    border: 2px solid #fcd34d;
}

.tm-campeao__trophy {
    font-size: 3rem;
    margin-bottom: 8px;
}

.tm-campeao__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #92400e;
    font-weight: 600;
}

.tm-campeao__name {
    font-size: 1.6rem;
    font-weight: 800;
    color: #78350f;
    margin-top: 4px;
}

/* ============================
   UTILITIES
   ============================ */
.tm-mt-16 { margin-top: 16px; }
.tm-mb-16 { margin-bottom: 16px; }
.tm-mb-24 { margin-bottom: 24px; }
.tm-text-center { text-align: center; }
.tm-text-muted { color: var(--tm-gray-400); }
.tm-hidden { display: none !important; }
