:root {
  /* Paleta de Cores Premium Elite */
  --gold-primary: #59f0cc;
  --gold-secondary: #7da2ff;
  --gold-dark: #3ec8e0;
  --bg-black: #050505;
  --bg-card: rgba(20, 20, 20, 0.7);
  --bg-input: rgba(255, 255, 255, 0.05);
  --text-white: #ffffff;
  --text-gray: #b0b0b0;
  --accent-red: #ff3e3e;
  --accent-purple: #9d50bb;
  --accent-pink: #ff007f;
  --success-green: #00ff88;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-gold: 0 0 30px rgba(89, 240, 204, 0.18);
  --shadow-pink: 0 0 30px rgba(255, 0, 127, 0.15);
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--bg-black);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 0, 127, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(89, 240, 204, 0.10) 0%, transparent 40%),
    url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
}

/* Scrollbar Customizada */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-black); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 10px; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Menu Lateral */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 280px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-area {
  text-align: center;
  margin-bottom: 50px;
}

.logo-area h1 {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(to right, var(--gold-primary), var(--gold-secondary), var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-item:hover, .nav-item.active {
  background: rgba(89, 240, 204, 0.10);
  color: var(--gold-primary);
  border-color: rgba(89, 240, 204, 0.22);
  transform: translateX(8px);
}

.nav-item i { font-size: 1.3rem; }

/* Header Superior */
.top-header {
  margin-left: 280px;
  padding: 25px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 900;
}

.main-content {
  margin-left: 280px;
  padding: 50px;
  min-height: calc(100vh - 100px - 70px);
}

.app-footer {
  position: relative;
  margin-left: 280px;
  width: calc(100% - 280px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  padding: 8px 18px;
  margin-top: 18px;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-gray);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.25);
}

.app-footer p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.1;
}

.app-footer .footer-adult {
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.6px;
  font-size: 0.64rem;
}

/* Financeiro */
.finance-compact {
  display: flex;
  gap: 25px;
  align-items: center;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 10px 25px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-gold);
}

.stat-pill .label { font-size: 0.75rem; color: var(--text-gray); text-transform: uppercase; font-weight: 600; }
.stat-pill .value { font-weight: 800; color: var(--gold-secondary); font-size: 1.1rem; }

/* Abas */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.6s ease forwards;
}

/* Modais */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none !important;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(145deg, #151515, #0a0a0a);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: var(--radius-lg);
  z-index: 2001;
  width: 90%;
  max-width: 450px;
  display: none !important;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), var(--shadow-gold);
}

/* Quando ativos, sobrescrevemos o display: none */
.overlay[style*="display: block"] {
  display: block !important;
}

.modal[style*="display: block"] {
  display: block !important;
}

/* Botoes */
.btn {
  padding: 14px 30px;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
  color: #000;
}

.btn-primary:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 15px 30px rgba(89, 240, 204, 0.20); 
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-white);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--gold-primary);
}

/* Inputs */
.input-group {
  margin-bottom: 25px;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--text-gray);
  font-weight: 600;
}

.input-group input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  color: white;
  font-size: 1rem;
  transition: 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(255,255,255,0.08);
}

/* Animacoes */
@keyframes fadeIn { 
  from { opacity: 0; transform: translateY(30px); } 
  to { opacity: 1; transform: translateY(0); } 
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-20px); }
}

/* Responsividade */
@media (max-width: 1024px) {
  .sidebar { width: 90px; padding: 30px 10px; }
  .sidebar .nav-item span, .logo-area h1, .logo-area p { display: none; }
  .sidebar .nav-item { justify-content: center; padding: 16px; }
  .top-header, .main-content { margin-left: 90px; }
}

@media (max-width: 768px) {
  .sidebar { 
    bottom: 0; top: auto; height: 80px; width: 100%; 
    flex-direction: row; border-right: none; 
    border-top: 1px solid var(--glass-border); 
    padding: 10px; justify-content: space-around; 
  }
  .top-header, .main-content { margin-left: 0; }
  .top-header { padding: 20px; }
  .main-content { padding: 25px; padding-bottom: 120px; }
  .logo-area { display: none; }
}

/* Botoes */
.support-bot-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #000;
  cursor: pointer;
  z-index: 1500;
  box-shadow: 0 10px 30px rgba(89, 240, 204, 0.20);
  transition: 0.3s;
}

.support-bot-btn:hover {
  transform: scale(1.1) rotate(10deg);
}

.support-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  height: 500px;
  background: #0a0a0a;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1500;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.support-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.msg-bot, .msg-user {
  padding: 12px 16px;
  border-radius: 15px;
  font-size: 0.85rem;
  max-width: 80%;
  line-height: 1.4;
}

.msg-bot {
  background: rgba(255,255,255,0.05);
  color: var(--text-white);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.msg-user {
  background: var(--gold-primary);
  color: #000;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  font-weight: 600;
}

.support-input {
  padding: 15px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 10px;
}

.support-input input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 10px;
  color: #fff;
}

@media (max-width: 768px) {
  .support-bot-btn { bottom: 90px; right: 20px; }
  .support-window { bottom: 160px; right: 20px; width: calc(100% - 40px); height: 400px; }
}

/* Sistema de Toast Global */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 300px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: auto;
}

.toast.success { border-left: 4px solid var(--success-green); }
.toast.error { border-left: 4px solid var(--accent-red); }
.toast.info {
  border-left: 4px solid var(--gold-secondary);
  box-shadow: 0 16px 36px rgba(89, 240, 204, 0.14);
}

.toast-icon { font-size: 1.5rem; }
.toast-title { font-weight: 800; font-size: 0.9rem; text-transform: uppercase; color: var(--text-white); }
.toast-message { font-size: 0.85rem; color: var(--text-gray); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast.hiding {
  animation: slideOut 0.3s forwards;
}

@keyframes slideOut {
  to { opacity: 0; transform: translateX(50px); }
}

/* =============================================
   ANIMACOES DE SALDO
============================================= */
@keyframes balanceUp {
  0%   { color: inherit; }
  30%  { color: #4caf50; transform: scale(1.08); }
  100% { color: inherit; transform: scale(1); }
}

@keyframes balanceDown {
  0%   { color: inherit; }
  30%  { color: #f44336; transform: scale(0.95); }
  100% { color: inherit; transform: scale(1); }
}

.balance-animate-up   { animation: balanceUp   0.6s ease forwards; }
.balance-animate-down { animation: balanceDown 0.6s ease forwards; }

/* =============================================
   CONFETE DE SUCESSO
============================================= */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  top: -20px;
  animation: confettiFall linear forwards;
  z-index: 9999;
  pointer-events: none;
}

@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* Estilos para Modais Personalizados */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
}

.custom-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #151515, #0a0a0a);
    border: 1px solid var(--gold-primary);
    padding: 30px;
    border-radius: var(--radius-lg);
    z-index: 10001;
    width: 90%;
    max-width: 400px;
    display: none;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8), var(--shadow-gold);
    text-align: center;
}

.modal-header h3 {
    color: var(--gold-primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body {
    margin-bottom: 30px;
    color: var(--text-gray);
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* =============================================
   NOTIFICACOES
   ============================================= */

#notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent-red);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
}

#notifications-panel {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 400px;
  max-height: 600px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

#notifications-panel.open {
  display: flex;
}

.notifications-header {
  padding: 20px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notifications-header h3 {
  margin: 0;
  color: var(--gold-secondary);
  font-size: 1.1rem;
}

.notifications-header button {
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  font-size: 1.2rem;
  transition: 0.3s;
}

.notifications-header button:hover {
  color: var(--gold-secondary);
}

#notifications-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.notification-item {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: 0.3s;
  align-items: flex-start;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.notification-item.unread {
  background: linear-gradient(90deg, rgba(89, 240, 204, 0.10), rgba(255,255,255,0.02));
  border-left: 3px solid var(--gold-secondary);
}

.notification-icon {
  font-size: 1.5rem;
  min-width: 30px;
  text-align: center;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 700;
  color: var(--text-white);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.notification-message {
  color: var(--text-gray);
  font-size: 0.85rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.notification-time {
  color: var(--text-gray);
  font-size: 0.75rem;
  margin-top: 6px;
}

.notification-delete {
  opacity: 0;
  transition: 0.3s;
  padding: 0;
  min-width: 24px;
}

.notification-item:hover .notification-delete {
  opacity: 1;
}

/* =============================================
   RESPONSIVO GLOBAL (MOBILE/TABLET)
   ============================================= */
img, video, canvas, svg {
  max-width: 100%;
}

textarea, input, select {
  max-width: 100%;
}

@media (max-width: 1024px) {
  .sidebar {
    width: 84px;
    padding: 18px 10px;
    gap: 8px;
  }
  .logo-area {
    margin-bottom: 20px;
  }
  .logo-area h1 {
    display: none;
  }
  .nav-item {
    padding: 12px;
    justify-content: center;
    gap: 0;
  }
  .nav-item span {
    display: none;
  }
  .nav-item:hover, .nav-item.active {
    transform: none;
  }
  .top-header,
  .main-content {
    margin-left: 84px;
  }
  .top-header {
    padding: 16px 18px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .main-content {
    padding: 20px 18px 28px;
    min-height: calc(100vh - 84px - 64px);
  }
  .app-footer {
    margin-left: 84px;
    width: calc(100% - 84px);
  }
  #notifications-panel {
    width: min(92vw, 400px);
    right: 10px;
    top: 70px;
    max-height: 70vh;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }
  body {
    -webkit-text-size-adjust: 100%;
  }
  .container {
    padding: 12px;
  }
  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    height: 78px;
    border-right: none;
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(14px);
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 8px max(8px, env(safe-area-inset-right, 8px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 8px));
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .sidebar::-webkit-scrollbar {
    display: none;
  }
  .logo-area {
    display: none;
  }
  .sidebar .sidebar-footer-links {
    margin-top: 0 !important;
    border-top: none !important;
    padding-top: 0 !important;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .nav-item {
    flex: 0 0 auto;
    min-width: 44px;
    width: 44px;
    min-height: 44px;
    border-radius: 12px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    scroll-snap-align: center;
  }
  .nav-item i {
    font-size: 1rem;
    line-height: 1;
  }
  .nav-item span {
    display: none;
  }
  .sidebar .sidebar-footer-links .nav-item {
    margin: 0;
  }
  .top-header,
  .main-content {
    margin-left: 0;
  }
  .app-footer {
    margin-left: 0;
    width: 100%;
    min-height: 42px;
    padding: 6px 10px;
    margin-top: 12px;
  }
  .app-footer p {
    font-size: 0.68rem;
  }
  .app-footer .footer-adult {
    font-size: 0.62rem;
    letter-spacing: 0.5px;
  }
  .top-header {
    position: sticky;
    top: 0;
    padding: 12px;
    gap: 10px;
    z-index: 950;
  }
  .main-content {
    padding: 14px 12px calc(90px + env(safe-area-inset-bottom, 0px));
    min-height: auto;
  }
  .section-title {
    font-size: 1.15rem !important;
    margin-bottom: 14px !important;
    gap: 8px !important;
    flex-wrap: wrap;
  }
  .finance-compact {
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
  }
  .stat-pill {
    flex: 1 1 100%;
    min-width: 0;
    padding: 10px 12px;
    justify-content: space-between;
  }
  .modal {
    width: min(96vw, 520px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px 16px;
    border-radius: 18px;
  }
  .custom-modal {
    width: min(96vw, 420px);
    padding: 18px 14px;
  }
  .modal-footer {
    flex-direction: column;
  }
  .btn {
    min-height: 44px;
  }
  #notifications-panel {
    left: 10px;
    right: 10px;
    width: auto;
    top: 66px;
    max-height: 68vh;
  }
}

@media (max-width: 480px) {
  .top-header {
    padding: 10px;
  }
  .main-content {
    padding: 10px 10px calc(92px + env(safe-area-inset-bottom, 0px));
  }
  .stat-pill .label {
    font-size: 0.68rem;
  }
  .stat-pill .value {
    font-size: 0.98rem;
  }
  .btn {
    padding: 12px 16px;
    font-size: 0.78rem;
    letter-spacing: 0.4px;
  }
}


/* 2026 refresh: identidade visual focada em rifas */
:root {
  --gold-primary: #59f0cc;
  --gold-secondary: #7da2ff;
  --gold-dark: #3ec8e0;
  --bg-black: #08111a;
  --bg-card: rgba(15, 23, 34, 0.82);
  --bg-input: rgba(255, 255, 255, 0.06);
  --text-white: #f5f8ff;
  --text-gray: #9eb0c7;
  --accent-red: #ff5a7a;
  --accent-purple: #5673ff;
  --accent-pink: #ff4db8;
  --success-green: #3dffb5;
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(126, 162, 206, 0.14);
  --shadow-gold: 0 18px 45px rgba(255, 177, 0, 0.16);
  --shadow-pink: 0 18px 40px rgba(255, 77, 184, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
}

html, body {
  background:
    radial-gradient(circle at 12% 14%, rgba(61, 255, 181, 0.13), transparent 22%),
    radial-gradient(circle at 88% 10%, rgba(255, 177, 0, 0.16), transparent 26%),
    radial-gradient(circle at 82% 78%, rgba(86, 115, 255, 0.13), transparent 24%),
    linear-gradient(180deg, #09131d 0%, #08111a 35%, #061019 100%);
}

body {
  color: var(--text-white);
  background-attachment: fixed;
}

.sidebar {
  width: 300px;
  padding: 28px 18px 24px;
  background:
    linear-gradient(180deg, rgba(8, 14, 21, 0.95), rgba(10, 18, 27, 0.86)),
    radial-gradient(circle at top, rgba(255,177,0,.08), transparent 35%);
  border-right: 1px solid rgba(126, 162, 206, 0.12);
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.22);
}

.logo-area {
  text-align: left;
  margin-bottom: 30px;
  padding: 8px 10px 18px;
  border-bottom: 1px solid rgba(126, 162, 206, 0.1);
}

.logo-area h1 {
  font-size: 2.2rem;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, #ffffff, #8bf3cf 35%, #ffd465 72%, #59f0cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: none;
}

.nav-item {
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  color: #a6b5ca;
  border: 1px solid transparent;
  background: transparent;
}

.nav-item i {
  width: 20px;
  text-align: center;
  font-size: 1.05rem;
}

.nav-item:hover, .nav-item.active {
  transform: translateX(0);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255,177,0,.18), rgba(86,115,255,.12)),
    rgba(255,255,255,.03);
  border-color: rgba(255, 177, 0, 0.24);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.top-header {
  margin-left: 300px;
  padding: 22px 32px;
  background: rgba(7, 15, 22, 0.72);
  border-bottom: 1px solid rgba(126, 162, 206, 0.1);
  backdrop-filter: blur(18px);
}

.main-content {
  margin-left: 300px;
  padding: 32px;
}

.app-footer {
  margin-left: 300px;
  width: calc(100% - 300px);
  background: rgba(7, 15, 22, 0.9);
  border-top: 1px solid rgba(126, 162, 206, 0.1);
  color: #90a3bb;
  box-shadow: none;
}

.app-footer .footer-adult {
  color: #8bf3cf;
  letter-spacing: .3px;
}

.section-title {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2.1rem);
  letter-spacing: -0.04em;
  color: #ffffff;
}

.section-title i {
  color: #8bf3cf;
}

.finance-compact {
  gap: 14px;
}

.stat-pill {
  padding: 12px 16px;
  border-radius: 20px;
  border: 1px solid rgba(126, 162, 206, 0.12);
  background:
    linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.015)),
    rgba(7, 15, 22, 0.62);
  box-shadow: none;
}

.stat-pill .label {
  color: #85a0bd;
  letter-spacing: .08em;
}

.stat-pill .value {
  color: #ffffff;
  font-size: 1rem;
}

.btn {
  border-radius: 16px;
  text-transform: none;
  letter-spacing: 0;
  font-size: .88rem;
  font-weight: 800;
}

.btn-primary {
  background: linear-gradient(135deg, #59f0cc 0%, #ffd465 50%, #ffe79e 100%);
  color: #111827;
  box-shadow: 0 18px 34px rgba(255, 177, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px rgba(255, 177, 0, 0.28);
}

.btn-outline {
  background: rgba(255,255,255,.03);
  color: #e8eef8;
  border: 1px solid rgba(126, 162, 206, 0.16);
}

.btn-outline:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(139, 243, 207, 0.3);
  color: #ffffff;
}

.modal {
  background:
    radial-gradient(circle at top right, rgba(139,243,207,.08), transparent 28%),
    linear-gradient(145deg, #0e1722, #09111b);
  border: 1px solid rgba(126, 162, 206, 0.14);
  box-shadow: 0 40px 100px rgba(0,0,0,.55);
}

input, textarea, select {
  border-color: rgba(126, 162, 206, 0.14) !important;
}

@media (max-width: 1100px) {
  .sidebar {
    width: 98px;
    padding: 18px 10px;
  }
  .sidebar .nav-item span,
  .logo-area p {
    display: none;
  }
  .logo-area {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }
  .logo-area h1 {
    font-size: 1.2rem;
  }
  .nav-item {
    justify-content: center;
    padding: 15px 12px;
  }
  .top-header,
  .main-content,
  .app-footer {
    margin-left: 98px;
    width: calc(100% - 98px);
  }
}

@media (max-width: 768px) {
  .top-header,
  .main-content,
  .app-footer {
    margin-left: 0;
    width: 100%;
  }
  .top-header {
    padding: 18px 16px;
  }
  .main-content {
    padding: 18px 16px 110px;
  }
  .sidebar {
    background: rgba(7, 15, 22, 0.96);
  }
}

/* Raffle-only refresh */
.tab-content {
  animation: fadeIn .26s ease;
}

.home-surface-card,
.raffles-header,
.raffle-club-panel,
.raffle-purchases-panel,
.custom-store-panel,
.profile-card,
.profile-visual-card {
  background:
    linear-gradient(145deg, rgba(10, 19, 29, 0.92), rgba(12, 16, 28, 0.84)),
    radial-gradient(circle at top right, rgba(61, 255, 181, 0.08), transparent 28%);
  border: 1px solid rgba(123, 164, 210, 0.14);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.home-hero-panel,
.custom-store-hero,
.profile-header {
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.raffles-highlight-grid,
.raffles-others-grid,
.custom-store-sections {
  gap: 20px;
}

.raffle-hero-card,
.raffle-compact-card,
.custom-store-item {
  border: 1px solid rgba(126, 162, 206, 0.16);
  background:
    linear-gradient(160deg, rgba(8, 15, 24, 0.92), rgba(15, 18, 32, 0.92));
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}

.raffle-hero-card::after,
.raffle-compact-card::after,
.custom-store-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 28%);
}

.raffle-highlight-label,
.custom-store-kicker,
.profile-visual-chip {
  background: rgba(255, 177, 0, 0.11);
  border: 1px solid rgba(255, 177, 0, 0.18);
  color: #ffe08c;
}

.raffle-progress-track {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(126, 162, 206, 0.12);
}

.raffle-progress-fill {
  background: linear-gradient(90deg, #42f5be 0%, #ffcf66 48%, #6985ff 100%);
  box-shadow: 0 0 18px rgba(66,245,190,.24);
}

.custom-store-preview-card,
.profile-visual-preview {
  background:
    radial-gradient(circle at top right, rgba(255, 177, 0, 0.16), transparent 24%),
    radial-gradient(circle at 12% 18%, rgba(61, 255, 181, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(9, 18, 28, 0.98), rgba(13, 13, 31, 0.96));
}

.custom-store-status-card,
.custom-store-slot,
.home-stat-card,
.raffle-metric,
.profile-visual-slot,
.profile-review-stat {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}

.legacy-modal {
  display: none !important;
}

#dep-modal,
#raffle-buy-modal,
#raffle-result-modal {
  border-radius: 28px;
  width: min(680px, 92vw);
  padding: 28px;
}

#raffle-buy-modal {
  width: min(760px, 94vw);
}

#raffle-buy-offers .btn {
  width: 100%;
}

#raffle-result-content .raffle-result-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
}

#tab-home .section-title,
#tab-raffles .section-title,
#tab-customizations .section-title,
#tab-indications .section-title,
#tab-admin .section-title {
  margin-bottom: 18px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Brand reset v2 */
:root {
  --gold-primary: #59f0cc;
  --gold-secondary: #9ab7ff;
  --gold-dark: #4ed8e7;
  --bg-black: #050816;
  --bg-card: rgba(14, 19, 35, 0.78);
  --bg-input: rgba(255, 255, 255, 0.055);
  --text-white: #f7fbff;
  --text-gray: #93a4bc;
  --accent-red: #ff6b8f;
  --accent-purple: #4d6dff;
  --accent-pink: #ff7f50;
  --success-green: #58d6b3;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(151, 179, 227, 0.14);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
  opacity: .75;
}

body::before {
  width: 28rem;
  height: 28rem;
  top: -8rem;
  right: -6rem;
  background: radial-gradient(circle, rgba(77, 109, 255, 0.18), transparent 64%);
}

body::after {
  width: 26rem;
  height: 26rem;
  left: -6rem;
  bottom: -7rem;
  background: radial-gradient(circle, rgba(88, 214, 179, 0.15), transparent 62%);
}

.main-content,
.top-header,
.app-footer,
.sidebar {
  position: relative;
  z-index: 1;
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 14px 10px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.03);
  pointer-events: none;
}

.logo-area h1,
.auth-brand,
.admin-title,
.hero-title,
.home-hero-title,
.profile-name {
  letter-spacing: -0.06em;
}

.nav-item {
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(72,240,188,.12), rgba(255,191,71,.12), rgba(123,97,255,.12));
  opacity: 0;
  transition: opacity .22s ease;
}

.nav-item:hover::before,
.nav-item.active::before {
  opacity: 1;
}

.nav-item > * {
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #48f0bc 0%, #7b61ff 48%, #ffbf47 100%);
  color: #07101d;
}

.btn-outline {
  backdrop-filter: blur(14px);
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.section-title {
  font-weight: 900;
}

.home-hero-panel,
.raffles-header,
.raffle-club-panel,
.raffle-hero-card,
.raffle-compact-card,
.custom-store-panel,
.profile-header,
.profile-visual-card,
.admin-header,
.request-card,
.stat-card {
  border-radius: 28px;
}

.home-hero-panel,
.raffle-club-panel,
.custom-store-hero,
.profile-header,
.admin-header {
  overflow: hidden;
}

.home-hero-panel::before,
.raffle-club-panel::before,
.custom-store-hero::before,
.profile-header::after,
.admin-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,.06), transparent 22%, transparent 78%, rgba(255,255,255,.04)),
    radial-gradient(circle at 84% 18%, rgba(255,191,71,.18), transparent 28%);
  opacity: .8;
}

.home-hero-title span,
.hero-title .accent {
  background: linear-gradient(90deg, #48f0bc, #7b61ff 55%, #ffbf47);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-stat-card strong,
.raffle-metric strong,
.custom-store-status-card strong,
.profile-visual-slot strong,
.profile-review-stat strong,
.stat-value {
  color: #fff;
  text-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.raffle-status-pill,
.raffle-club-tag,
.custom-store-preview-chip,
.mock-badge {
  backdrop-filter: blur(12px);
}

.raffle-status-pill.ending-soon,
.raffle-highlight-label.ending-soon {
  color: #08111f !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, #59f0cc, #9ab7ff) !important;
  box-shadow: 0 12px 28px rgba(246,189,96,.28);
}

.raffle-hero-media,
.raffle-compact-head img,
.profile-photo-preview img,
.profile-visual-frame img {
  transition: transform .45s ease, filter .3s ease;
}

.raffle-hero-card:hover .raffle-hero-media,
.raffle-compact-card:hover .raffle-compact-head img,
.profile-visual-card:hover .profile-visual-frame img {
  transform: scale(1.05);
  filter: saturate(1.06);
}

/* Structural reset for new top-nav application layout */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  padding: 18px 22px 0;
  backdrop-filter: blur(22px);
}

.site-header-top,
.site-nav-bar,
.main-content,
.app-footer {
  width: min(1440px, calc(100vw - 44px));
  margin-left: auto !important;
  margin-right: auto !important;
}

.site-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border: 1px solid rgba(151, 179, 227, 0.12);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(9, 18, 28, 0.92), rgba(12, 14, 26, 0.88));
  box-shadow: 0 20px 48px rgba(0,0,0,.18);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #07101d;
  background: linear-gradient(135deg, #48f0bc, #7b61ff 55%, #ffbf47);
  box-shadow: 0 18px 36px rgba(123,97,255,.18);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-copy strong {
  font-size: 1.24rem;
  color: #fff;
  font-weight: 900;
  letter-spacing: -.05em;
}

.brand-copy small {
  color: var(--text-gray);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-social-link {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(151,179,227,.16);
  background: linear-gradient(145deg, rgba(8,16,26,.88), rgba(12,19,30,.72));
  color: #f7fbff;
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
  text-decoration: none !important;
}

.site-social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255,110,182,.38);
  color: #ff9ad3;
  box-shadow: 0 18px 34px rgba(255,110,182,.12);
}

.site-social-link i {
  font-size: 1.08rem;
}

.site-nav-bar {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 0 6px 6px;
}

.site-nav,
.site-utility-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px;
  border-radius: 24px;
  background: rgba(8,16,26,.44);
  border: 1px solid rgba(151,179,227,.1);
}

.site-nav .nav-item,
.site-utility-nav .nav-item {
  border: 1px solid rgba(151,179,227,.14);
  background: rgba(8,16,26,.64);
}

.site-utility-nav .nav-item {
  padding-inline: 16px;
}

.main-content {
  flex: 1;
  margin-top: 26px;
  padding: 18px 0 54px !important;
  min-height: auto !important;
}

.app-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 4px 30px !important;
  background: transparent !important;
  border-top: none !important;
  box-shadow: none !important;
}

.footer-branding {
  display: grid;
  gap: 4px;
}

.footer-branding strong {
  font-size: 1rem;
  color: #fff;
  font-weight: 900;
}

.footer-branding span {
  color: var(--text-gray);
  font-size: .82rem;
  max-width: 52ch;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#notification-badge {
  position: absolute !important;
  top: 8px !important;
  right: 10px !important;
  transform: none !important;
  min-width: 24px !important;
  height: 24px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: .72rem !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, #ff6b8f, #ff875f) !important;
  box-shadow: 0 10px 20px rgba(255,107,143,.26);
}

.home-hero-shell,
.home-split-grid,
.raffles-shell,
.custom-store-shell {
  gap: 30px !important;
}

.home-hero-panel,
.home-side-panel,
.raffles-header,
.raffle-club-panel,
.raffle-purchases-panel,
.custom-store-hero,
.custom-store-panel {
  padding: 28px !important;
}

.home-hero-copy,
.raffles-section-subtitle,
.custom-store-subtitle,
.admin-header-copy,
.profile-email,
.profile-visual-card p {
  max-width: 62ch;
  line-height: 1.7;
}

.home-stat-grid,
.raffle-metrics,
.custom-store-status,
.profile-visual-slots,
.profile-review-stats {
  gap: 14px !important;
}

.footer-link {
  border: 1px solid rgba(151,179,227,.14);
  background: rgba(8,16,26,.64);
  color: var(--text-white);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-link:hover {
  border-color: rgba(72,240,188,.32);
}

/* neutralize old sidebar layout */
.sidebar,
.top-header {
  display: none !important;
}

@media (max-width: 980px) {
  .site-header-top,
  .site-nav-bar,
  .main-content,
  .app-footer {
    width: min(100vw - 32px, 100%);
  }

  .site-header-top,
  .site-nav-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header-actions,
  .site-nav,
  .site-utility-nav {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 14px 14px 0;
  }

  .site-header-top,
  .site-nav-bar,
  .main-content,
  .app-footer {
    width: min(100vw - 28px, 100%);
  }

  .site-nav .nav-item,
  .site-utility-nav .nav-item {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
  }

  .app-footer {
    padding-bottom: 24px !important;
  }
}
