/* ============================================
   MASTERMIND – UI/UX REDESIGN (DARK + GLASS)
   Versão final com todas as cores e slots
   + CORREÇÕES MOBILE DATATABLES
   ============================================ */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --c-green: #10b981;
  --c-red: #ef4444;
  --c-yellow: #f59e0b;
  --bg-deep: #0a0e17;
  --bg-surface: rgba(15, 23, 42, 0.75);
  --border-color: #2d3a4f;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --radius: 16px;
  --shadow-card: 0 8px 30px rgba(0,0,0,0.5);
  --transition: 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse at 20% 30%, #1e293b30 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, #0f172a60 0%, transparent 50%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.5rem 1rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* ---------- CARTÕES (GLASS) ---------- */
.box {
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.box:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

/* ---------- CABEÇALHO (WALLET) ---------- */
.box:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 1rem 1.4rem;
}

.box:first-child h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

#user-balance {
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-green);
}

/* ---------- JACKPOT & ESTATÍSTICAS ---------- */
.jackpot {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 1rem 0 0.5rem;
  letter-spacing: -1px;
}

.game-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0.8rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.game-stats span {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---------- SLOTS (PALPITE) ---------- */
.slots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.slot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px dashed #334155;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  cursor: pointer;
}

.slot.filled {
  border: 2px solid transparent;
  transform: scale(1.08);
  box-shadow: 0 0 12px currentColor;
}

/* animação de reset dos slots */
.slot-reset {
  transform: scale(0.8);
  opacity: 0.5;
  transition: transform 0.1s, opacity 0.1s;
}

/* ---------- SELETOR DE CORES ---------- */
.picker {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.c-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.15s, box-shadow 0.15s, border 0.15s;
  border: 2px solid transparent;
}

.c-btn:hover,
.c-btn.active {
  transform: scale(1.2);
  border: 2px solid white;
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}

#selectedColorFeedback {
  text-align: center;
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  min-height: 22px;
}

/* ---------- BOTÕES PRINCIPAIS ---------- */
.btn-main {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0.6rem auto;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.btn-paid {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: white;
}

.btn-free {
  background: linear-gradient(135deg, #065f46, #10b981);
  color: white;
}

.btn-paid:hover,
.btn-free:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

/* estados desabilitados */
.btn-paid:disabled,
.btn-free:disabled,
.btn-paid-disabled,
.btn-free-disabled {
  opacity: 0.65;
  filter: none;
  transform: none;
  background: #334155 !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
}

.time-left {
  display: block;
  font-size: 0.8rem;
  color: #f59e0b;
}

/* ---------- TABS ---------- */
.tabs-container {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
  padding-bottom: 0.3rem;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.tab-btn:hover {
  border-color: var(--primary-hover);
  color: white;
}

.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* ---------- TABELAS (DataTables) ---------- */
.dataTables_wrapper {
  font-size: 0.85rem;
}

table.dataTable {
  border-collapse: separate;
  border-spacing: 0;
  background: transparent !important;
}

table.dataTable thead th {
  background: #0f172a;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.4px;
}

table.dataTable tbody tr {
  background: rgba(30, 41, 59, 0.4);
  transition: background 0.2s;
}

table.dataTable tbody tr:hover {
  background: rgba(51, 65, 85, 0.6);
}

table.dataTable tbody td {
  border-color: #1e293b;
  padding: 0.6rem 0.8rem;
  color: #cbd5e1;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  background: #1e293b;
  border: 1px solid var(--border-color);
  color: white;
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: var(--text-secondary) !important;
  background: transparent;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--primary);
  color: white !important;
}

/* ---------- RESUMOS ---------- */
.dt-summary {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.dt-summary-card {
  flex: 1;
  background: #0f172a;
  border-radius: 12px;
  padding: 0.8rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.dt-summary-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.dt-summary-value {
  font-size: 1.3rem;
  font-weight: 700;
}

/* ---------- ADMIN STYLES ---------- */
.admin-stat-card {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.admin-stat-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.admin-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.3rem 0;
}

/* ---------- CLASSES PARA DATATABLES (DT) ---------- */
.dt-muted { color: #94a3b8; }
.dt-tiny { font-size: 0.7rem; }
.dt-wallet { font-family: monospace; background: #0f172a; padding: 2px 4px; border-radius: 6px; }
.dt-date { font-size: 0.7rem; color: #94a3b8; }
.dt-usdc { color: #f59e0b; font-weight: 500; }
.dt-amount-pos { color: #10b981; font-weight: bold; }
.dt-amount-neg { color: #f43f5e; font-weight: bold; }
.dt-amount-zero { color: #64748b; }
.dt-color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 2px;
  vertical-align: middle;
}
.dt-pins { font-size: 0.85rem; letter-spacing: 1px; }
.dt-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}
.dt-badge-free { background: #334155; color: #94a3b8; }
.dt-badge-paid { background: #6366f1; color: white; }
.dt-badge-deposit { background: #10b981; color: white; }
.dt-badge-win { background: #f59e0b; color: #1e293b; }
.dt-badge-withdrawal { background: #ef4444; color: white; }
.dt-badge-referral { background: #8b5cf6; color: white; }
.dt-badge-pending { background: #f59e0b; color: #1e293b; }
.dt-badge-processing { background: #3b82f6; color: white; }
.dt-badge-completed { background: #10b981; color: white; }
.dt-badge-rejected { background: #ef4444; color: white; }
.dt-badge-current { background: #10b981; color: white; }
.dt-game-current { font-weight: bold; color: #10b981; }
.dt-game-past { font-size: 0.7rem; color: #64748b; }
.dt-tx-link { color: #6366f1; text-decoration: none; font-size: 0.7rem; }
.dt-tx-link:hover { text-decoration: underline; }
.dt-dest-binance { background: #f0b90b; color: #1e293b; padding: 2px 6px; border-radius: 6px; font-weight: bold; }
.dt-wd-reason { font-size: 0.7rem; color: #f43f5e; }
.dt-btn {
  background: #334155;
  border: none;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.7rem;
  margin: 0 2px;
  transition: 0.2s;
}
.dt-btn:hover { background: #475569; }
.dt-btn-edit { background: #3b82f6; }
.dt-btn-edit:hover { background: #2563eb; }
.dt-btn-approve { background: #10b981; }
.dt-btn-approve:hover { background: #059669; }
.dt-btn-reject { background: #ef4444; }
.dt-btn-reject:hover { background: #dc2626; }
.dt-btn-copy { background: #6366f1; }
.dt-btn-copy:hover { background: #4f46e5; }

/* ---------- SweetAlert2 custom class ---------- */
.swal2-popup.my-swal {
  background: #1e293b !important;
  color: #fff !important;
}
.swal2-popup.my-swal .swal2-title,
.swal2-popup.my-swal .swal2-html-container {
  color: #fff !important;
}
.swal2-popup.my-swal .swal2-confirm,
.swal2-popup.my-swal .swal2-cancel,
.swal2-popup.my-swal .swal2-deny {
  border-radius: 8px;
}

/* ---------- DEPÓSITO (modal) ---------- */
.deposit-amount-btn {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #f59e0b;
  cursor: pointer;
  transition: 0.2s;
  min-width: 70px;
}
.deposit-amount-btn:hover {
  background: #2d3748;
  border-color: #f59e0b;
}

/* ---------- WALLET BUTTONS (login) ---------- */
.wallet-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 8px;
  color: white;
}
.wallet-btn.phantom { background: linear-gradient(135deg, #ab9ff2, #7c3aed); }
.wallet-btn.solflare { background: linear-gradient(135deg, #fc9c54, #f06543); }
.wallet-btn.backpack { background: #e33e3f; }

/* ---------- ANIMAÇÃO DE PROCESSAMENTO DATATABLES ---------- */
.dt-processing {
  padding: 15px;
  color: #f59e0b;
  text-align: center;
}

/* ========== CORES DOS BOTÕES (PICKER) ========== */
.c-red    { background: #dc2626; }
.c-blue   { background: #3b82f6; }
.c-green  { background: #10b981; }
.c-yellow { background: #eab308; }
.c-purple { background: #8b5cf6; }
.c-orange { background: #f97316; }
.c-pink   { background: #ec4899; }
.c-brown  { background: #78350f; }
.c-cyan   { background: #06b6d4; }
.c-lime   { background: #84cc16; }
.c-indigo { background: #6366f1; }
.c-silver { background: #94a3b8; }

/* ========== CORES DOS SLOTS QUANDO PREENCHIDOS ========== */
.slot.c-red    { background: #dc2626; border-color: #dc2626; }
.slot.c-blue   { background: #3b82f6; border-color: #3b82f6; }
.slot.c-green  { background: #10b981; border-color: #10b981; }
.slot.c-yellow { background: #eab308; border-color: #eab308; }
.slot.c-purple { background: #8b5cf6; border-color: #8b5cf6; }
.slot.c-orange { background: #f97316; border-color: #f97316; }
.slot.c-pink   { background: #ec4899; border-color: #ec4899; }
.slot.c-brown  { background: #78350f; border-color: #78350f; }
.slot.c-cyan   { background: #06b6d4; border-color: #06b6d4; }
.slot.c-lime   { background: #84cc16; border-color: #84cc16; }
.slot.c-indigo { background: #6366f1; border-color: #6366f1; }
.slot.c-silver { background: #94a3b8; border-color: #94a3b8; }

/* ========== CORREÇÕES MOBILE DATATABLES ========== */
/* Permite rolagem horizontal suave apenas quando necessário */
.dataTables_wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  margin-bottom: 1rem;
}

/* Força uma largura mínima para tabelas com muitas colunas */
table.dataTable {
  width: 100% !important;
  min-width: 520px;   /* Ajuste conforme a complexidade - para 6 colunas funciona bem */
  margin: 0 auto;
}

/* Ajustes para ecrãs pequenos (≤600px) */
@media (max-width: 600px) {
  .dataTables_wrapper {
    overflow-x: auto;
    white-space: nowrap;
  }
  table.dataTable {
    min-width: 480px;
  }
  /* Reduz padding para ganhar espaço horizontal */
  table.dataTable tbody td,
  table.dataTable thead th {
    padding: 0.4rem 0.5rem !important;
  }
  /* Paginação compacta */
  .dataTables_paginate {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }
  .paginate_button {
    padding: 0.2rem 0.5rem !important;
    font-size: 0.7rem !important;
  }
}

/* Scrollbar bonita para mobile (opcional) */
@media (hover: none) and (pointer: coarse) {
  .dataTables_wrapper::-webkit-scrollbar {
    height: 4px;
  }
  .dataTables_wrapper::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 10px;
  }
  .dataTables_wrapper::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 10px;
  }
}

/* ============================================
   ============= MATRIX & LANDING =============
   ============================================ */

/* ========== LANDING PAGE ========== */
.landing-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

@media (min-width: 640px) {
  .landing-container {
    grid-template-columns: 1fr 1fr;
  }
}

.landing-card {
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  display: block;
}

.landing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(99,102,241,0.08));
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.landing-card.global::before {
  background: linear-gradient(135deg, transparent, rgba(245,158,11,0.10));
}

.landing-card.matrix::before {
  background: linear-gradient(135deg, transparent, rgba(168,85,247,0.10));
}

.landing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  border-color: var(--primary);
}

.landing-card.global:hover { border-color: #f59e0b; }
.landing-card.matrix:hover { border-color: #a855f7; }

.landing-card:hover::before { opacity: 1; }

.landing-card-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.landing-card h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.5px;
}

.landing-card.global h2 {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-card.matrix h2 {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 1.2rem;
  min-height: 60px;
  line-height: 1.5;
}

.landing-card-stats {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.landing-card-stats strong {
  display: block;
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-top: 4px;
  text-transform: none;
  letter-spacing: 0;
}

.landing-card-cta {
  display: inline-block;
  margin-top: 1.2rem;
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: all var(--transition);
}

.landing-card:hover .landing-card-cta {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(99,102,241,0.5);
}

/* ========== MATRIX GRID ========== */
.matrix-grid {
  display: grid;
  /* grid-template-columns gerado dinamicamente via JS: repeat(N, 1fr) */
  gap: 6px;
  margin: 1rem auto;
  padding: 8px;
  background: #0f172a;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  max-width: 100%;
}

.matrix-cell {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: #1e293b;
  border: 2px solid #334155;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--text-secondary);
  user-select: none;
  min-width: 40px;
  min-height: 40px;
}

.matrix-cell.free::after {
  content: attr(data-coord);
  opacity: 0.35;
}

.matrix-cell:not(.blocked):not(.selected):hover {
  transform: scale(1.05);
  border-color: var(--primary);
  z-index: 2;
}

/* Selected (multi-mode preview) */
.matrix-cell.selected {
  border: 3px dashed var(--c-yellow);
  box-shadow: 0 0 12px var(--c-yellow);
  animation: pulse-select 1.4s infinite;
}

@keyframes pulse-select {
  0%, 100% { box-shadow: 0 0 8px var(--c-yellow); }
  50%      { box-shadow: 0 0 18px var(--c-yellow); }
}

/* Cell with chosen color preview (multi mode) */
.matrix-cell.preview-color {
  opacity: 0.7;
  border-style: solid;
}

/* Blocked cell (won by someone) */
.matrix-cell.blocked {
  cursor: not-allowed;
  border-style: solid;
  box-shadow: 0 0 8px currentColor;
}

.matrix-cell.blocked.mine {
  outline: 2px solid #fbbf24;
  outline-offset: 1px;
}

.matrix-cell.blocked.mine::before {
  content: "👑";
  position: absolute;
  top: -8px;
  right: -4px;
  font-size: 0.85rem;
  filter: drop-shadow(0 1px 2px black);
  z-index: 3;
}

.matrix-cell .owner-tag {
  position: absolute;
  bottom: 2px;
  left: 2px;
  right: 2px;
  font-size: 0.45rem;
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 1px 3px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Cell tried but wrong (only visible to the user) */
.matrix-cell.tried::after {
  content: "✗";
  color: var(--c-red);
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 0 0 4px black;
}

/* ========== MATRIX MODE SELECTOR ========== */
.matrix-mode-selector {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.matrix-mode-btn {
  padding: 8px 18px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.matrix-mode-btn:hover:not(.active) {
  border-color: var(--primary-hover);
  color: var(--text-primary);
}

.matrix-mode-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.matrix-mode-btn.free.active {
  background: var(--c-green);
  border-color: var(--c-green);
  box-shadow: 0 4px 12px rgba(16,185,129,0.4);
}

/* ========== MATRIX INFO BAR ========== */
.matrix-info-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #0f172a;
  border-radius: 10px;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.matrix-info-item {
  text-align: center;
}

.matrix-info-label {
  color: var(--text-secondary);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.matrix-info-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-yellow);
  margin-top: 2px;
}

.matrix-info-value.green { color: var(--c-green); }
.matrix-info-value.purple { color: #a855f7; }

/* ========== PROGRESS BAR ========== */
.matrix-progress {
  height: 10px;
  background: #1e293b;
  border-radius: 5px;
  overflow: hidden;
  margin: 0.4rem 0 1rem;
  position: relative;
}

.matrix-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-green), var(--c-yellow), #fbbf24);
  transition: width 0.6s ease;
  border-radius: 5px;
}

.matrix-progress-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* ========== MULTI SELECTION INDICATOR ========== */
.matrix-selection-info {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  color: var(--c-yellow);
  text-align: center;
}

.matrix-selection-info strong {
  font-size: 1rem;
}

/* ========== MATRIX RESPONSIVE ========== */
@media (max-width: 480px) {
  .matrix-cell {
    border-radius: 6px;
    border-width: 1px;
    min-width: 32px;
    min-height: 32px;
  }
  .matrix-cell .owner-tag {
    font-size: 0.4rem;
  }
  .matrix-grid {
    gap: 3px;
    padding: 4px;
  }
  .matrix-info-value {
    font-size: 0.95rem;
  }
}

/* ========== BOTÕES DE PARTILHA ========== */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}
.share-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.share-btn.twitter {
    background: #1DA1F2;
}
.share-btn.twitter:hover {
    background: #0c85d0;
    transform: translateY(-2px);
}
.share-btn.facebook {
    background: #4267B2;
}
.share-btn.facebook:hover {
    background: #365899;
    transform: translateY(-2px);
}
.share-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.share-btn.instagram:hover {
    filter: brightness(0.95);
    transform: translateY(-2px);
}