/* ============================================================
   GoMobil Social - Main Stylesheet
   Tema: Preto, Amarelo, Branco
   Design: Moderno, minimalista, mobile-first
   ============================================================ */

/* === VARIABLES === */
:root {
  --black: #000000;
  --black-soft: #1a1a2e;
  --yellow: #FFD700;
  --yellow-soft: #FFC107;
  --white: #FFFFFF;
  --white-soft: #F8F9FA;
  --green: #28A745;
  --red: #DC3545;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  --bg-primary: var(--white);
  --bg-secondary: var(--white-soft);
  --bg-sidebar: var(--black-soft);
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-on-dark: var(--white);
  --border-color: var(--gray-200);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --shadow-yellow: 0 4px 14px rgba(255,215,0,.35);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-height: 64px;
  --sidebar-width: 280px;
  --sidebar-collapsed: 70px;
  --bottom-nav-height: 60px;
  --transition: all .3s cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --bg-primary: var(--black-soft);
  --bg-secondary: #111127;
  --text-primary: var(--white-soft);
  --text-secondary: var(--gray-400);
  --border-color: var(--gray-700);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.5);
}

@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --bg-primary: var(--black-soft);
    --bg-secondary: #111127;
    --text-primary: var(--white-soft);
    --text-secondary: var(--gray-400);
    --border-color: var(--gray-700);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--yellow); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--yellow-soft); }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-secondary); font-weight: 700; line-height: 1.2; }

/* === FOCUS VISIBLE === */
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }

/* === TYPOGRAPHY === */
.display-1 { font-size: clamp(2rem, 5vw, 3.5rem); font-family: var(--font-secondary); }
.display-2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
.text-gradient { background: linear-gradient(135deg, var(--yellow), var(--yellow-soft)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-muted { color: var(--text-secondary); }

/* === GLASSMORPHISM === */
.glass {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12);
}
[data-theme="dark"] .glass {
  background: rgba(0,0,0,.3);
  border-color: rgba(255,255,255,.06);
}

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}
[data-theme="dark"] .navbar { background: rgba(26,26,46,.85); }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-secondary); font-weight: 800; font-size: 1.4rem; }
.navbar-brand img { height: 32px; }
.navbar-brand span { background: linear-gradient(135deg, var(--black), var(--yellow)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.navbar-links { display: flex; align-items: center; gap: 24px; }
.navbar-links a { color: var(--text-primary); font-size: .9rem; font-weight: 500; position: relative; }
.navbar-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--yellow); transition: var(--transition);
}
.navbar-links a:hover::after { width: 100%; }
.navbar-toggle { display: none; font-size: 1.5rem; color: var(--text-primary); }
@media (max-width: 991px) {
  .navbar-links { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--bg-primary); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border-color); max-height: calc(100vh - var(--nav-height)); overflow-y: auto; }
  .navbar-links.active { display: flex; }
  .navbar-toggle { display: block; }
}
@media (max-width: 576px) {
  .navbar { padding: 0 12px; }
  .navbar-brand { font-size: 1.1rem; }
  .navbar-brand img { height: 28px; }
}

/* === HERO === */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--black) 0%, var(--black-soft) 50%, var(--yellow) 100%);
  color: var(--white); text-align: center; padding: 100px 20px 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('../images/hero-bg.svg') center/cover; opacity: .1;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; width: 100%; }
@media (min-width: 1400px) { .hero-content { max-width: 800px; } }
.hero h1 { font-size: clamp(2rem, 6vw, 3.5rem); margin-bottom: 16px; }
.hero p { font-size: 1.1rem; opacity: .9; margin-bottom: 32px; line-height: 1.8; }
@media (max-width: 576px) {
  .hero { padding: 80px 16px 40px; min-height: 90vh; }
  .hero p { font-size: 1rem; margin-bottom: 24px; }
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === CARDS === */
.card {
  background: var(--bg-primary); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-color);
  padding: 24px; transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title { font-size: 1.1rem; font-weight: 600; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: .95rem; transition: var(--transition); border: 2px solid transparent;
  white-space: normal; text-align: center; word-break: break-word;
}
@media (max-width: 576px) {
  .btn { padding: 10px 16px; font-size: .875rem; }
  .btn-sm { padding: 6px 12px; font-size: .8rem; }
  .btn-lg { padding: 12px 24px; font-size: 1rem; }
}
.btn-primary { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.btn-primary:hover { background: var(--yellow-soft); border-color: var(--yellow-soft); transform: translateY(-1px); box-shadow: var(--shadow-yellow); }
.btn-black { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-black:hover { background: var(--black-soft); }
.btn-outline { background: transparent; color: var(--yellow); border-color: var(--yellow); }
.btn-outline:hover { background: var(--yellow); color: var(--black); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: transparent; }
.btn-ghost:hover { background: var(--gray-200); }
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: var(--white-soft); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* === SOS BUTTON === */
.btn-sos {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--red); color: var(--white);
  font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 0 rgba(220,53,69,.6);
  animation: pulse 2s infinite; position: fixed; bottom: 90px; right: 20px; z-index: 999;
}
.btn-sos:hover { animation: none; transform: scale(1.1); }
@media (max-width: 576px) {
  .btn-sos { width: 50px; height: 50px; font-size: 1.2rem; bottom: 80px; right: 12px; }
}

/* === WHATSAPP FLOATING === */
.btn-whatsapp {
  position: fixed; bottom: 20px; right: 20px; z-index: 998;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: var(--white); font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: var(--transition);
}
.btn-whatsapp:hover { transform: scale(1.1); color: var(--white); }
@media (max-width: 576px) {
  .btn-whatsapp { width: 44px; height: 44px; font-size: 1.1rem; bottom: 12px; right: 12px; }
}

/* === FORMS === */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: 6px; color: var(--text-secondary); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color); background: var(--bg-primary);
  color: var(--text-primary); font-size: 1rem; transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,215,0,.15); outline: none;
}
.form-input.error { border-color: var(--red); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-error { color: var(--red); font-size: .8rem; margin-top: 4px; display: none; }
.form-error.show { display: block; }

/* === SIDEBAR === */
.sidebar {
  position: fixed; top: var(--nav-height); left: 0; bottom: 0;
  width: var(--sidebar-width); background: var(--bg-sidebar);
  color: var(--text-on-dark); z-index: 900;
  transition: var(--transition); overflow-y: auto;
  display: flex; flex-direction: column;
}
.sidebar.collapsed { width: var(--sidebar-collapsed); }
.sidebar-links { padding: 16px 0; flex: 1; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; color: var(--gray-400);
  transition: var(--transition); font-size: .9rem;
  position: relative;
}
.sidebar-link:hover, .sidebar-link.active { color: var(--yellow); background: rgba(255,215,0,.08); }
.sidebar-link.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 24px; background: var(--yellow); border-radius: 0 3px 3px 0;
}
.sidebar-link .icon { font-size: 1.2rem; width: 24px; text-align: center; }
.sidebar.collapsed .sidebar-link span:not(.icon) { display: none; }
.sidebar-overlay { display: none; }
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); width: 260px; }
  .sidebar.open { transform: translateX(0); width: 260px; }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 899; }
  .sidebar-overlay.show { display: block; }
}

/* === MAIN CONTENT === */
.main-content {
  padding: 20px; min-height: calc(100vh - var(--nav-height));
  margin-left: 0; transition: var(--transition);
}
.main-content.with-nav {
  padding-top: calc(var(--nav-height) + 20px);
}
@media (min-width: 769px) {
  .main-content.with-sidebar {
    margin-left: var(--sidebar-width);
  }
}
@media (max-width: 768px) {
  .main-content { padding: 16px; }
  .main-content.with-nav { padding-top: calc(var(--nav-height) + 12px); padding-bottom: calc(var(--bottom-nav-height) + 12px); }
}

/* === BOTTOM NAV === */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-height); background: var(--bg-primary);
  border-top: 1px solid var(--border-color); z-index: 1000;
  justify-content: space-around; align-items: center; padding: 4px 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--text-secondary); font-size: .65rem; transition: var(--transition);
  padding: 4px 12px; border-radius: var(--radius-sm);
  flex: 1; max-width: 80px;
}
.bottom-nav-item .icon { font-size: 1.3rem; }
.bottom-nav-item.active { color: var(--yellow); }
.bottom-nav-item:hover { color: var(--yellow); }
@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  body { padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px)); }
}

/* === ANIMATIONS === */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(220,53,69,.6); } 70% { box-shadow: 0 0 0 20px rgba(220,53,69,0); } 100% { box-shadow: 0 0 0 0 rgba(220,53,69,0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: calc(200px + 100%) 0; } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.animate-fadeIn { animation: fadeIn .4s ease; }
.animate-slideUp { animation: slideUp .5s ease; }
.animate-spin { animation: spin 1s linear infinite; }

/* === TABLES === */
.table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
@media (max-width: 768px) {
  .table-responsive-mobile { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-responsive-mobile table { min-width: 600px; }
  .table td, .table th { white-space: nowrap; padding: 10px 12px; }
}
.table th { text-align: left; padding: 12px 16px; font-weight: 600; color: var(--text-secondary); font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid var(--border-color); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); }
.table tbody tr:hover { background: rgba(255,215,0,.04); }
.table-striped tbody tr:nth-child(even) { background: var(--bg-secondary); }

/* === BADGES === */
.badge {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 20px;
  font-size: .75rem; font-weight: 600; gap: 4px;
}
.badge-active { background: rgba(40,167,69,.12); color: var(--green); }
.badge-inactive { background: rgba(108,117,125,.12); color: var(--gray-600); }
.badge-pending { background: rgba(255,193,7,.12); color: var(--yellow-soft); }
.badge-suspended { background: rgba(220,53,69,.12); color: var(--red); }
.badge-warning { background: rgba(255,215,0,.15); color: #b8860b; }

/* === MODAL === */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px); z-index: 2000;
  display: none; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn .2s ease;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--bg-primary); border-radius: var(--radius-lg);
  width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); animation: slideUp .3s ease;
  padding: 32px; position: relative;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-size: 1.3rem; font-weight: 700; }
.modal-close { font-size: 1.5rem; color: var(--text-secondary); padding: 4px; }
.modal-close:hover { color: var(--text-primary); }
.modal-lg { max-width: 700px; }

/* === TOAST === */
.toast-container { position: fixed; bottom: 80px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 576px) {
  .toast-container { left: 12px; right: 12px; bottom: 76px; }
  .toast { max-width: 100%; font-size: .85rem; padding: 12px 16px; }
}
.toast {
  padding: 14px 20px; border-radius: var(--radius-sm); color: var(--white);
  font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-lg);
  animation: slideInRight .3s ease; display: flex; align-items: center; gap: 10px;
  max-width: 360px;
}
.toast-success { background: var(--green); }
.toast-error { background: var(--red); }
.toast-warning { background: var(--yellow); color: var(--black); }
.toast-info { background: var(--black-soft); }
.toast-close { color: inherit; opacity: .8; font-size: 1rem; margin-left: auto; }
.toast-close:hover { opacity: 1; }

/* === CHAT UI === */
.chat-container { display: flex; flex-direction: column; height: 100%; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.chat-bubble {
  max-width: 80%; padding: 12px 16px; border-radius: 18px;
  font-size: .9rem; line-height: 1.4; word-wrap: break-word;
}
.chat-bubble.received { background: var(--gray-200); color: var(--text-primary); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble.sent { background: var(--yellow); color: var(--black); align-self: flex-end; border-bottom-right-radius: 4px; }
[data-theme="dark"] .chat-bubble.received { background: var(--gray-800); }
.chat-input-area { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border-color); }
.chat-input { flex: 1; }

/* === MAP === */
.map-container { width: 100%; height: 400px; border-radius: var(--radius-md); overflow: hidden; }
@media (max-width: 576px) { .map-container { height: 250px; } }
.map-container-full { width: 100%; height: calc(100vh - var(--nav-height)); border-radius: 0; }

/* === RATING === */
.rating { display: flex; gap: 4px; }
.rating-star { font-size: 1.3rem; color: var(--gray-300); cursor: pointer; transition: var(--transition); }
.rating-star.active, .rating-star:hover { color: var(--yellow); }

/* === TIMELINE === */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 4px; bottom: 4px;
  width: 2px; background: var(--border-color);
}
.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -20px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--yellow); border: 2px solid var(--bg-primary);
}
.timeline-item.completed::before { background: var(--green); }
.timeline-item.pending::before { background: var(--gray-400); }
.timeline-item.active::before { background: var(--yellow); box-shadow: 0 0 0 4px rgba(255,215,0,.2); }

/* === LOADING SKELETON === */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200px 100%; border-radius: 4px;
  animation: shimmer 1.5s infinite linear;
}
[data-theme="dark"] .skeleton { background: linear-gradient(90deg, var(--gray-700) 25%, var(--gray-800) 50%, var(--gray-700) 75%); background-size: 200px 100%; }
.skeleton-text { height: 14px; margin-bottom: 8px; width: 100%; }
.skeleton-title { height: 20px; margin-bottom: 12px; width: 60%; }
.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
.skeleton-card { height: 120px; border-radius: var(--radius-md); }

/* === SPINNER === */
.spinner { width: 24px; height: 24px; border: 3px solid var(--border-color); border-top-color: var(--yellow); border-radius: 50%; animation: spin .6s linear infinite; }
.spinner-lg { width: 40px; height: 40px; border-width: 4px; }
.spinner-white { border-color: rgba(255,255,255,.3); border-top-color: var(--white); }

/* === METRIC CARDS === */
.metrics-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (max-width: 576px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 400px) { .metrics-grid { grid-template-columns: 1fr; } }
.metric-card {
  background: var(--bg-primary); border-radius: var(--radius-md); padding: 20px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-color);
}
.metric-card .metric-icon { font-size: 1.5rem; margin-bottom: 8px; }
.metric-card .metric-value { font-size: 1.8rem; font-weight: 800; font-family: var(--font-secondary); }
.metric-card .metric-label { font-size: .8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .5px; }
.metric-card .metric-change { font-size: .8rem; font-weight: 600; }
.metric-change.positive { color: var(--green); }
.metric-change.negative { color: var(--red); }

/* === PROGRESS BAR === */
.progress { height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--yellow); border-radius: 4px; transition: width .5s ease; }
[data-theme="dark"] .progress { background: var(--gray-700); }

/* === PROFILE DROPDOWN === */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute; top: 100%; right: 0; min-width: 200px;
  background: var(--bg-primary); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-color);
  padding: 8px 0; z-index: 500; display: none;
}
@media (max-width: 576px) {
  .dropdown-menu { min-width: 160px; right: -40px; }
}
.dropdown-menu.show { display: block; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  color: var(--text-primary); font-size: .9rem; transition: var(--transition);
}
.dropdown-item:hover { background: var(--bg-secondary); color: var(--yellow); }
.dropdown-divider { height: 1px; background: var(--border-color); margin: 4px 0; }

/* === EMPTY STATE === */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state img { width: 160px; margin: 0 auto 20px; opacity: .6; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); max-width: 300px; margin: 0 auto 20px; }

/* === ERROR STATE === */
.error-state { text-align: center; padding: 60px 20px; }
.error-state img { width: 120px; margin: 0 auto 20px; }
.error-state h3 { font-size: 1.2rem; color: var(--red); margin-bottom: 8px; }
.error-state p { color: var(--text-secondary); margin-bottom: 20px; }

/* === ADS === */
.ad-banner { background: var(--bg-secondary); border-radius: var(--radius-sm); padding: 12px; text-align: center; font-size: .8rem; color: var(--text-secondary); border: 1px dashed var(--border-color); margin: 16px 0; min-height: 90px; display: flex; align-items: center; justify-content: center; }
.ad-native { display: flex; gap: 12px; align-items: center; padding: 16px; background: var(--bg-secondary); border-radius: var(--radius-sm); font-size: .85rem; }
.ad-sponsored { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 16px; background: var(--bg-primary); }

/* === CALENDAR === */
.calendar { width: 100%; }
.calendar-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.calendar-day { padding: 10px; border-radius: 50%; font-size: .9rem; cursor: pointer; transition: var(--transition); }
.calendar-day:hover { background: var(--yellow); color: var(--black); }
.calendar-day.selected { background: var(--yellow); color: var(--black); font-weight: 700; }
.calendar-day.today { border: 2px solid var(--yellow); }
.calendar-day.disabled { color: var(--gray-400); cursor: not-allowed; }
.calendar-weekday { font-size: .75rem; color: var(--text-secondary); text-transform: uppercase; padding: 8px 0; }

/* === GRID CARDS === */
.grid-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 576px) { .grid-cards { grid-template-columns: 1fr; } }

/* === LOADING OVERLAY === */
.loading-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 5000;
  display: none; align-items: center; justify-content: center;
}
.loading-overlay.show { display: flex; }

/* === BACK TO TOP === */
.back-to-top {
  position: fixed; bottom: 90px; right: 90px; z-index: 500;
  width: 40px; height: 40px; border-radius: 50%; background: var(--yellow);
  color: var(--black); font-size: 1.2rem; display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: var(--transition);
}
.back-to-top.show { display: flex; }
.back-to-top:hover { transform: translateY(-3px); }
@media (max-width: 768px) {
  .back-to-top { bottom: 80px; right: 16px; width: 36px; height: 36px; font-size: 1rem; }
}

/* === COOKIE CONSENT === */
.cookie-consent {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 3000;
  background: var(--black-soft); color: var(--white); padding: 16px 20px;
  display: none; align-items: center; justify-content: space-between; gap: 16px;
  font-size: .85rem;
}
.cookie-consent.show { display: flex; }
@media (max-width: 768px) { .cookie-consent { flex-direction: column; text-align: center; } }

/* === DASHBOARD === */
.dashboard { width: 100%; margin: 0 auto; }
.dashboard-header { margin-bottom: 24px; }
.dashboard-header h1 { font-size: clamp(1.2rem, 4vw, 1.8rem); font-weight: 700; }
.dashboard-header p { color: var(--text-secondary); font-size: .9rem; }
@media (max-width: 576px) {
  .dashboard-header { margin-bottom: 16px; }
  .dashboard-header p { font-size: .85rem; }
}

/* === UTILITY === */
.d-none { display: none; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.flex-column { flex-direction: column; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
@media (max-width: 576px) {
  .gap-4 { gap: 2px; } .gap-8 { gap: 4px; } .gap-12 { gap: 8px; }
  .gap-16 { gap: 10px; } .gap-20 { gap: 12px; } .gap-24 { gap: 16px; }
  .d-none-sm { display: none !important; }
}
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-yellow { color: var(--yellow); }
.text-black { color: var(--black); }
.text-white { color: var(--white); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.bg-yellow { background: var(--yellow); }
.bg-black { background: var(--black); }
.bg-white { background: var(--white); }
.p-8 { padding: 8px; }
.p-12 { padding: 12px; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }
.px-16 { padding-left: 16px; padding-right: 16px; }
.py-8 { padding-top: 8px; padding-bottom: 8px; }
.py-12 { padding-top: 12px; padding-bottom: 12px; }
.py-16 { padding-top: 16px; padding-bottom: 16px; }
.m-0 { margin: 0; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.w-100 { width: 100%; }
.rounded { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 50%; }
.shadow { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-sm { font-size: .85rem; }
.text-xs { font-size: .75rem; }
.text-lg { font-size: 1.1rem; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 576px) { .container { padding: 0 12px; } }

@media (max-width: 768px) {
  .d-none-mobile { display: none !important; }
  .d-block-mobile { display: block !important; }
  .text-center-mobile { text-align: center; }
  .flex-col-mobile { flex-direction: column !important; }
  .gap-sm-mobile { gap: 8px !important; }
  .w-full-mobile { width: 100% !important; }
}
@media (max-width: 400px) {
  body { font-size: 14px; }
  .btn { padding: 10px 16px; font-size: .85rem; }
  .card { padding: 16px; }
  .form-control { padding: 10px 12px; font-size: .85rem; }
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1rem; }
  .container { padding: 0 8px; }
  .main-content { padding: 12px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .d-none-tablet { display: none !important; }
}
@media (min-width: 1025px) {
  .d-none-desktop { display: none !important; }
}

/* === PRINT === */
@media print {
  .navbar, .sidebar, .bottom-nav, .btn-whatsapp, .btn-sos, .back-to-top,
  .toast-container, .modal-overlay, .loading-overlay, .cookie-consent,
  .ad-banner, .ad-native, .ad-sponsored { display: none !important; }
  body { background: white; color: black; }
  .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
}
