/* ============================================================
   SHINOBI RPG THEME — Bootstrap 5.3 Customization
   ============================================================ */

:root {
  --shinobi-green: #2E7D32;
  --shinobi-green-light: #43A047;
  --shinobi-green-dark: #1B5E20;
  --shinobi-gold: #D4AF37;
  --shinobi-gold-light: #F0D060;
  --shinobi-gold-dark: #A67C00;
  --shinobi-dark: #0D0D0D;
  --shinobi-dark-2: #141414;
  --shinobi-dark-3: #1C1C1C;
  --shinobi-card: #1E1E1E;
  --shinobi-card-border: #2A2A2A;
  --shinobi-text: #E0E0E0;
  --shinobi-text-muted: #888;
  --shinobi-hp: #C62828;
  --shinobi-hp-light: #EF5350;
  --shinobi-chakra: #1565C0;
  --shinobi-chakra-light: #42A5F5;
  --shinobi-energy: #2E7D32;
  --shinobi-energy-light: #66BB6A;
  --sidebar-width: 260px;
  --topbar-height: 56px;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: var(--shinobi-dark);
  color: var(--shinobi-text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--shinobi-gold); text-decoration: none; }
a:hover { color: var(--shinobi-gold-light); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--shinobi-dark-2); }
::-webkit-scrollbar-thumb { background: var(--shinobi-green); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--shinobi-green-light); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.shinobi-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--shinobi-dark-2);
  border-right: 1px solid var(--shinobi-green-dark);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: transform .3s ease;
  overflow-y: auto;
}

.shinobi-sidebar .sidebar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--shinobi-green-dark), var(--shinobi-dark-2));
  border-bottom: 1px solid var(--shinobi-green-dark);
  text-decoration: none;
}

.shinobi-sidebar .sidebar-brand .brand-icon {
  font-size: 2rem;
  line-height: 1;
}

.shinobi-sidebar .sidebar-brand .brand-title {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--shinobi-gold);
  line-height: 1.2;
}

.shinobi-sidebar .sidebar-brand .brand-sub {
  font-size: .65rem;
  color: var(--shinobi-text-muted);
  letter-spacing: .15em;
}

.sidebar-nav {
  padding: 1rem 0;
  flex: 1;
}

.sidebar-section-label {
  padding: .5rem 1.5rem .25rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--shinobi-text-muted);
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.5rem;
  color: var(--shinobi-text-muted);
  font-size: .875rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all .2s ease;
}

.sidebar-nav .nav-link i {
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-nav .nav-link:hover {
  color: var(--shinobi-gold);
  background: rgba(212, 175, 55, .07);
  border-left-color: var(--shinobi-gold);
}

.sidebar-nav .nav-link.active {
  color: var(--shinobi-gold);
  background: rgba(212, 175, 55, .1);
  border-left-color: var(--shinobi-gold);
}

.sidebar-nav .nav-link.nav-logout {
  color: #EF5350;
}

.sidebar-nav .nav-link.nav-logout:hover {
  color: #FF8A80;
  background: rgba(239, 83, 80, .07);
  border-left-color: #EF5350;
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--shinobi-card-border);
  font-size: .75rem;
  color: var(--shinobi-text-muted);
}

/* ── Overlay for mobile ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 1039;
}

/* ============================================================
   TOPBAR (mobile)
   ============================================================ */
.shinobi-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: var(--shinobi-dark-2);
  border-bottom: 1px solid var(--shinobi-green-dark);
  align-items: center;
  padding: 0 1rem;
  z-index: 1030;
  gap: 1rem;
}

.topbar-brand {
  font-size: .85rem;
  font-weight: 700;
  color: var(--shinobi-gold);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.btn-sidebar-toggle {
  background: transparent;
  border: 1px solid var(--shinobi-green-dark);
  color: var(--shinobi-text);
  padding: .35rem .6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all .2s;
}

.btn-sidebar-toggle:hover {
  border-color: var(--shinobi-gold);
  color: var(--shinobi-gold);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.shinobi-main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  background: var(--shinobi-dark);
}

.shinobi-content {
  padding: 2rem;
  max-width: 1400px;
}

.page-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--shinobi-card-border);
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--shinobi-gold);
  margin: 0;
}

.page-header p {
  font-size: .875rem;
  color: var(--shinobi-text-muted);
  margin: .25rem 0 0;
}

/* ============================================================
   CARDS
   ============================================================ */
.shinobi-card {
  background: var(--shinobi-card);
  border: 1px solid var(--shinobi-card-border);
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.shinobi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 0 1px var(--shinobi-green-dark);
}

.shinobi-card.gold-border {
  border-color: var(--shinobi-gold-dark);
  box-shadow: 0 0 20px rgba(212,175,55,.1);
}

.shinobi-card.gold-border:hover {
  box-shadow: 0 8px 32px rgba(212,175,55,.15), 0 0 0 1px var(--shinobi-gold-dark);
}

.shinobi-card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--shinobi-card-border);
  padding: .875rem 1.25rem;
  font-weight: 600;
  font-size: .875rem;
  color: var(--shinobi-gold);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.shinobi-card .card-body {
  padding: 1.25rem;
}

/* ============================================================
   CHARACTER CARD
   ============================================================ */
.character-card {
  text-align: center;
}

.character-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.character-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--shinobi-green-dark), var(--shinobi-dark-3));
  border: 3px solid var(--shinobi-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(212,175,55,.2);
}

.character-level-badge {
  position: absolute;
  bottom: 0;
  right: -4px;
  background: var(--shinobi-gold);
  color: var(--shinobi-dark);
  font-size: .65rem;
  font-weight: 800;
  padding: .15rem .45rem;
  border-radius: 20px;
  letter-spacing: .05em;
}

.character-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--shinobi-text);
  margin: 0 0 .25rem;
}

.character-village {
  font-size: .8rem;
  color: var(--shinobi-green-light);
  margin: 0 0 .5rem;
}

.character-rank {
  display: inline-block;
  background: rgba(212,175,55,.12);
  border: 1px solid var(--shinobi-gold-dark);
  color: var(--shinobi-gold);
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .75rem;
  border-radius: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ============================================================
   RESOURCE BARS
   ============================================================ */
.resource-bar-group { display: flex; flex-direction: column; gap: .875rem; }

.resource-bar-item {}

.resource-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .35rem;
}

.resource-bar-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--shinobi-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.resource-bar-value {
  font-size: .75rem;
  color: var(--shinobi-text-muted);
  font-variant-numeric: tabular-nums;
}

.progress {
  height: 10px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}

.progress-bar {
  border-radius: 6px;
  transition: width .6s ease;
}

/* HP */
.progress-bar.bar-hp {
  background: linear-gradient(90deg, var(--shinobi-hp), var(--shinobi-hp-light));
  box-shadow: 0 0 8px rgba(198,40,40,.4);
}

/* Chakra */
.progress-bar.bar-chakra {
  background: linear-gradient(90deg, var(--shinobi-chakra), var(--shinobi-chakra-light));
  box-shadow: 0 0 8px rgba(21,101,192,.4);
}

/* Energia */
.progress-bar.bar-energy {
  background: linear-gradient(90deg, var(--shinobi-energy), var(--shinobi-energy-light));
  box-shadow: 0 0 8px rgba(46,125,50,.4);
}

/* ============================================================
   XP BAR
   ============================================================ */
.xp-bar-wrap {}

.xp-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .4rem;
}

.xp-bar-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--shinobi-gold);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.xp-bar-percent {
  font-size: .75rem;
  font-weight: 700;
  color: var(--shinobi-gold);
}

.xp-progress {
  height: 12px;
  border-radius: 8px;
  background: rgba(212,175,55,.1);
  border: 1px solid rgba(212,175,55,.2);
  overflow: hidden;
  position: relative;
}

.xp-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--shinobi-gold-dark), var(--shinobi-gold), var(--shinobi-gold-light));
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(212,175,55,.5);
  transition: width .8s ease;
  position: relative;
}

.xp-progress-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: rgba(255,255,255,.15);
  border-radius: 8px 8px 0 0;
}

.xp-detail {
  font-size: .72rem;
  color: var(--shinobi-text-muted);
  margin-top: .35rem;
  text-align: right;
}

/* ============================================================
   CURRENCY WIDGET
   ============================================================ */
.currency-widget {
  background: linear-gradient(135deg, rgba(212,175,55,.1), rgba(212,175,55,.05));
  border: 1px solid var(--shinobi-gold-dark);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .875rem;
}

.currency-icon {
  font-size: 1.75rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(212,175,55,.5));
}

.currency-info {}

.currency-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--shinobi-gold-dark);
}

.currency-amount {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--shinobi-gold);
  letter-spacing: .02em;
  line-height: 1;
}

.currency-unit {
  font-size: .7rem;
  color: var(--shinobi-gold-dark);
  font-weight: 600;
}

/* ============================================================
   STAT BADGES (attributes)
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.stat-item {
  background: var(--shinobi-dark-3);
  border: 1px solid var(--shinobi-card-border);
  border-radius: 8px;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  transition: border-color .2s;
}

.stat-item:hover { border-color: var(--shinobi-green-dark); }

.stat-icon { font-size: 1.1rem; }

.stat-info { flex: 1; min-width: 0; }

.stat-name {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--shinobi-text-muted);
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--shinobi-text);
}

.stat-item.full-width { grid-column: 1 / -1; }

/* ============================================================
   QUICK STATS (dashboard summary)
   ============================================================ */
.quick-stat-card {
  background: var(--shinobi-card);
  border: 1px solid var(--shinobi-card-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all .2s;
}

.quick-stat-card:hover {
  border-color: var(--shinobi-green-dark);
  transform: translateY(-1px);
}

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

.quick-stat-icon.green { background: rgba(46,125,50,.2); color: var(--shinobi-green-light); }
.quick-stat-icon.gold  { background: rgba(212,175,55,.15); color: var(--shinobi-gold); }
.quick-stat-icon.red   { background: rgba(198,40,40,.2); color: #EF5350; }
.quick-stat-icon.blue  { background: rgba(21,101,192,.2); color: #42A5F5; }

.quick-stat-info {}
.quick-stat-value { font-size: 1.4rem; font-weight: 800; color: var(--shinobi-text); line-height: 1; }
.quick-stat-label { font-size: .72rem; color: var(--shinobi-text-muted); text-transform: uppercase; letter-spacing: .06em; }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-container { position: fixed; top: 1rem; right: 1rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; max-width: 360px; }

.flash-alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .875rem 1rem;
  border-radius: 10px;
  font-size: .875rem;
  border: 1px solid transparent;
  backdrop-filter: blur(8px);
  animation: slideInRight .3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}

.flash-alert.flash-success { background: rgba(46,125,50,.2); border-color: var(--shinobi-green-dark); color: #81C784; }
.flash-alert.flash-error   { background: rgba(198,40,40,.2); border-color: #C62828; color: #EF9A9A; }
.flash-alert.flash-warning { background: rgba(212,175,55,.15); border-color: var(--shinobi-gold-dark); color: var(--shinobi-gold-light); }
.flash-alert.flash-info    { background: rgba(21,101,192,.2); border-color: #1565C0; color: #90CAF9; }

/* ============================================================
   FORMS (login / register / create character)
   ============================================================ */
.shinobi-form-page {
  min-height: 100vh;
  background: radial-gradient(ellipse at top, rgba(46,125,50,.08), transparent 60%), var(--shinobi-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.shinobi-form-card {
  background: var(--shinobi-card);
  border: 1px solid var(--shinobi-gold-dark);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px rgba(212,175,55,.05);
}

.shinobi-form-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}

.shinobi-form-logo .logo-icon { font-size: 3rem; display: block; margin-bottom: .5rem; }
.shinobi-form-logo h1 { font-size: 1.1rem; font-weight: 800; color: var(--shinobi-gold); letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.shinobi-form-logo p  { font-size: .75rem; color: var(--shinobi-text-muted); margin: .25rem 0 0; }

/* Bootstrap form overrides */
.form-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--shinobi-text-muted); margin-bottom: .35rem; }

.form-control, .form-select {
  background: var(--shinobi-dark-3);
  border: 1px solid var(--shinobi-card-border);
  color: var(--shinobi-text);
  border-radius: 8px;
  padding: .6rem .875rem;
  font-size: .875rem;
  transition: border-color .2s, box-shadow .2s;
}

.form-control:focus, .form-select:focus {
  background: var(--shinobi-dark-3);
  border-color: var(--shinobi-gold-dark);
  color: var(--shinobi-text);
  box-shadow: 0 0 0 3px rgba(212,175,55,.15);
}

.form-control::placeholder { color: var(--shinobi-text-muted); }

.form-select option { background: var(--shinobi-dark-3); color: var(--shinobi-text); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-shinobi {
  background: linear-gradient(135deg, var(--shinobi-green-dark), var(--shinobi-green));
  border: 1px solid var(--shinobi-green-light);
  color: #fff;
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .04em;
  padding: .6rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  text-transform: uppercase;
}

.btn-shinobi:hover {
  background: linear-gradient(135deg, var(--shinobi-green), var(--shinobi-green-light));
  color: #fff;
  box-shadow: 0 4px 16px rgba(46,125,50,.4);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--shinobi-gold-dark), var(--shinobi-gold));
  border: 1px solid var(--shinobi-gold-light);
  color: var(--shinobi-dark);
  font-weight: 700;
}

.btn-gold:hover {
  box-shadow: 0 4px 16px rgba(212,175,55,.4);
  color: var(--shinobi-dark);
  transform: translateY(-1px);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge-shinobi { background: rgba(212,175,55,.15); color: var(--shinobi-gold); border: 1px solid var(--shinobi-gold-dark); font-size: .7rem; font-weight: 600; letter-spacing: .06em; border-radius: 20px; padding: .25rem .65rem; }
.badge-village { background: rgba(46,125,50,.2); color: var(--shinobi-green-light); border: 1px solid var(--shinobi-green-dark); font-size: .7rem; font-weight: 600; border-radius: 20px; padding: .25rem .65rem; }

/* ============================================================
   TABLES
   ============================================================ */
.shinobi-table {
  color: var(--shinobi-text);
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.shinobi-table thead th {
  background: var(--shinobi-dark-3);
  color: var(--shinobi-gold);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--shinobi-card-border);
}

.shinobi-table tbody td {
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: .875rem;
}

.shinobi-table tbody tr:hover td {
  background: rgba(255,255,255,.03);
}

/* ============================================================
   PENDING POINTS ALERT
   ============================================================ */
.pending-alert {
  background: rgba(212,175,55,.1);
  border: 1px solid var(--shinobi-gold-dark);
  border-radius: 8px;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  color: var(--shinobi-gold-light);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
}

.empty-state-icon { font-size: 4rem; display: block; margin-bottom: 1rem; opacity: .4; }
.empty-state h3   { font-size: 1.1rem; color: var(--shinobi-text-muted); margin: 0 0 .5rem; }
.empty-state p    { font-size: .875rem; color: var(--shinobi-text-muted); opacity: .7; margin: 0 0 1.5rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .shinobi-sidebar {
    transform: translateX(-100%);
  }

  .shinobi-sidebar.show {
    transform: translateX(0);
  }

  .sidebar-overlay.show { display: block; }

  .shinobi-topbar { display: flex; }

  .shinobi-main {
    margin-left: 0;
    padding-top: var(--topbar-height);
  }

  .shinobi-content { padding: 1.25rem 1rem; }

  .stat-grid { grid-template-columns: 1fr; }
}

@media (min-width: 992px) {
  .shinobi-topbar { display: none !important; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: fadeInUp .4s ease both; }
.animate-in:nth-child(2) { animation-delay: .07s; }
.animate-in:nth-child(3) { animation-delay: .14s; }
.animate-in:nth-child(4) { animation-delay: .21s; }

/* ============================================================
   FLASH LEVEL UP — banner dedicado de progressão de nível
   ============================================================ */
.flash-levelup {
  border: 1px solid #2e7d32;
  border-radius: 12px;
  background: rgba(27,94,32,.25);
  padding: 1rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: .5rem;
  backdrop-filter: blur(8px);
  animation: slideInRight .3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}

.flash-levelup__header {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.flash-levelup__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(46,125,50,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.flash-levelup__titles { flex: 1; min-width: 0; }

.flash-levelup__title {
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
  color: #A5D6A7;
  line-height: 1.2;
}

.flash-levelup__subtitle {
  margin: .15rem 0 0;
  font-size: .775rem;
  color: #81C784;
  opacity: .85;
}

.flash-levelup__progression {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem;
}

.flash-levelup__chip {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(46,125,50,.5);
  border-radius: 8px;
  padding: .5rem .75rem;
  text-align: center;
}

.flash-levelup__chip--highlight {
  border-color: #2e7d32;
  background: rgba(46,125,50,.25);
}

.flash-levelup__chip-label {
  display: block;
  font-size: .68rem;
  color: #81C784;
  margin-bottom: .2rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.flash-levelup__chip-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #C8E6C9;
  line-height: 1;
}

.flash-levelup__chip--highlight .flash-levelup__chip-value {
  color: #69F0AE;
}

.flash-levelup__arrow {
  color: #4CAF50;
  font-size: 1.1rem;
  text-align: center;
}

.flash-levelup__points {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(46,125,50,.4);
  border-radius: 8px;
  padding: .5rem .75rem;
  color: #81C784;
  font-size: .85rem;
}

.flash-levelup__points i {
  font-size: 1rem;
  color: #69F0AE;
  flex-shrink: 0;
}

.flash-levelup__points-value {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  color: #69F0AE;
  margin-top: .1rem;
}

/* ============================================================
   FLASH LEVEL UP — variante dourada (reforço de impacto)
   Reservada para o evento de level up; demais flashes seguem verdes.
   ============================================================ */
.flash-levelup--gold {
  border-color: var(--shinobi-gold-dark);
  background: rgba(166,124,0,.18);
  box-shadow: 0 4px 24px rgba(212,175,55,.25), 0 4px 20px rgba(0,0,0,.35);
}
.flash-levelup--gold .flash-levelup__title { color: var(--shinobi-gold-light); }
.flash-levelup--gold .flash-levelup__subtitle { color: var(--shinobi-gold); opacity: .85; }
.flash-levelup--gold .flash-levelup__icon { background: rgba(212,175,55,.3); }
.flash-levelup--gold .flash-levelup__chip { border-color: rgba(212,175,55,.4); }
.flash-levelup--gold .flash-levelup__chip--highlight {
  border-color: var(--shinobi-gold);
  background: rgba(212,175,55,.22);
}
.flash-levelup--gold .flash-levelup__chip-label { color: var(--shinobi-gold); }
.flash-levelup--gold .flash-levelup__chip-value { color: #F5E6B8; }
.flash-levelup--gold .flash-levelup__chip--highlight .flash-levelup__chip-value { color: var(--shinobi-gold-light); }
.flash-levelup--gold .flash-levelup__arrow { color: var(--shinobi-gold-light); }
.flash-levelup--gold .flash-levelup__points {
  border-color: rgba(212,175,55,.4);
  color: var(--shinobi-gold);
}
.flash-levelup--gold .flash-levelup__points i { color: var(--shinobi-gold-light); }
.flash-levelup--gold .flash-levelup__points-value { color: var(--shinobi-gold-light); }

/* Ícone com pulso de destaque — CSS puro, sem JS */
.flash-levelup__icon--burst {
  animation: levelupPulse 1.4s ease-out 2;
}
@keyframes levelupPulse {
  0%   { box-shadow: 0 0 0 0 rgba(212,175,55,.55); }
  70%  { box-shadow: 0 0 0 14px rgba(212,175,55,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
}

.flash-levelup__cta {
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ============================================================
   DASHBOARD CTA
   Reaproveita as variáveis --shinobi-* já definidas no topo
   deste arquivo. Adicionado para o componente dashboard_cta.
   ============================================================ */
.dashboard-cta-icon {
  font-size: 1.8rem;
  color: var(--shinobi-gold);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(212, 175, 55, .1);
  flex-shrink: 0;
}

.dashboard-cta-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--shinobi-text);
}

.dashboard-cta-subtext {
  font-size: .85rem;
  color: var(--shinobi-text-muted);
}
