/* ============================================
   YOUCON HUB — Design System
   ============================================ */

:root {
  --primary-color: #E37944;
  --primary-hover: #f48b55;
  --primary-glow: rgba(227, 121, 68, 0.2);
  --bg-color: #0b0b0d;
  --sidebar-bg: #0f0f12;
  --sidebar-text: #6b6b80;
  --sidebar-active-bg: rgba(227, 121, 68, 0.08);
  --sidebar-active-text: #E37944;
  --header-bg: rgba(11, 11, 13, 0.9);
  --card-bg: #111114;
  --card-hover-bg: #141418;
  --text-color: #e1e1e6;
  --text-muted: #6b6b80;
  --border-color: #1e1e24;
  --border-hover: rgba(227, 121, 68, 0.3);
  --input-bg: #0d0d10;
  --success-color: #00b37e;
  --danger-color: #f75a68;
  --warning-color: #f5a623;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.7);
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
  width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1001;
  transition: transform var(--transition), width var(--transition);
  overflow: hidden;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  transition: opacity var(--transition);
}

.sidebar-overlay.visible {
  opacity: 1;
}

.sidebar-header {
  padding: 28px 20px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--border-color);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--border-color);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary-color);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
}

/* Nav */
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-section {
  margin-bottom: 24px;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  padding: 0 10px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  color: var(--sidebar-text);
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
}

.sidebar-menu a .nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.sidebar-menu a .nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-menu a:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-color);
}

.sidebar-menu a.active {
  background-color: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
  font-weight: 600;
}

.sidebar-menu a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 3px;
  background: var(--primary-color);
  border-radius: 0 4px 4px 0;
}

.sidebar-menu a.nav-danger {
  color: var(--danger-color);
  opacity: 0.7;
}

.sidebar-menu a.nav-danger:hover {
  background-color: rgba(247, 90, 104, 0.08);
  color: var(--danger-color);
  opacity: 1;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
}

/* ============================================
   LAYOUT
   ============================================ */

.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  height: var(--header-height);
  background-color: var(--header-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 999;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-color);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  transition: background var(--transition);
}

.hamburger:hover {
  background: rgba(255,255,255,0.05);
}

.header-title h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

#user-name-display {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-color), #F48B55);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

/* ============================================
   CONTENT
   ============================================ */

.content {
  padding: 40px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}

/* ============================================
   GRID
   ============================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background-color: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================
   DASHBOARD
   ============================================ */

.dashboard-block {
  margin-bottom: 32px;
}

.dashboard-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dashboard-block-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
}

.metric-card {
  text-align: center;
  padding: 32px 24px;
  margin-bottom: 0;
}

.metric-value {
  font-size: 40px;
  font-weight: 700;
  margin: 8px 0 4px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   QUICK LINKS
   ============================================ */

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px;
  color: var(--text-color);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: all var(--transition);
  gap: 10px;
  margin-bottom: 0;
}

.link-card:hover {
  background-color: var(--card-hover-bg);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(227, 121, 68, 0.1);
}

.link-card-icon {
  font-size: 26px;
}

.link-card-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
  line-height: 1;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #F48B55 100%);
  color: white;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(227, 121, 68, 0.4);
}

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

.btn-outline:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--text-muted);
  color: var(--text-color);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.badge-primary {
  background-color: var(--primary-glow);
  color: var(--primary-color);
}

.badge-success {
  background-color: rgba(0, 179, 126, 0.1);
  color: var(--success-color);
}

.badge-danger {
  background-color: rgba(247, 90, 104, 0.1);
  color: var(--danger-color);
}

/* ============================================
   TABLES
   ============================================ */

.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  min-width: 500px;
}

th {
  text-align: left;
  padding: 8px 20px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

td {
  padding: 16px 20px;
  background-color: var(--card-bg);
  font-size: 14px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition);
}

tr:hover td {
  background-color: var(--card-hover-bg);
}

td:first-child {
  border-left: 1px solid var(--border-color);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

td:last-child {
  border-right: 1px solid var(--border-color);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.form-control {
  background: var(--input-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  outline: none;
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

/* Mantém compatibilidade com inputs inline dos htmls */
input[type="text"],
input[type="date"],
select {
  transition: border-color var(--transition), box-shadow var(--transition);
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.model-content-edit {
  width: 100%;
  min-height: 160px;
  background-color: var(--input-bg);
  color: var(--text-color);
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.7;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
  outline: none;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.model-content-edit:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Filtros toolbar */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  background: rgba(255,255,255,0.02);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.filters-bar .form-group {
  flex: 1;
  min-width: 160px;
}

/* ============================================
   ANALYTICS PAGE
   ============================================ */

/* KPI grid — 3 cols desktop, 2 tablet, 1 mobile */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  gap: 6px;
  margin-bottom: 0;
  cursor: default;
}

.kpi-icon {
  font-size: 26px;
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kpi-sub {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Layout 2/3 + 1/3 */
.analytics-grid-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

/* Layout 1/3 + 2/3 */
.analytics-grid-side {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

/* Funnel */
.funnel-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.funnel-step {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.funnel-bar-wrap {
  width: 100%;
}

.funnel-bar {
  min-width: 40%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  transition: width 0.4s ease;
}

.funnel-bar-label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.funnel-numbers {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px 0;
  gap: 8px;
}

.funnel-count {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.funnel-pct {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.funnel-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  color: var(--text-muted);
  font-size: 13px;
}

.funnel-conv {
  font-size: 11px;
  font-weight: 600;
  color: var(--success-color);
  background: rgba(0,179,126,0.08);
  padding: 2px 8px;
  border-radius: 99px;
}

/* Responsive analytics */
@media (max-width: 1024px) {
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .analytics-grid-main,
  .analytics-grid-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kpi-value { font-size: 26px; }
}

@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   HISTORY PAGE
   ============================================ */

#history-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  align-items: start;
}

.history-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.history-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.history-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.015);
  gap: 12px;
  flex-wrap: wrap;
}

.history-contact-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.history-number {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
  font-variant-numeric: tabular-nums;
}

.history-datetime {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.history-date-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.history-time-text {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.7;
}

.dispatch-list {
  display: flex;
  flex-direction: column;
}

.dispatch-item {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

.dispatch-item:last-child {
  border-bottom: none;
}

.dispatch-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.dispatch-channel {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.dispatch-preview {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid rgba(227, 121, 68, 0.35);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.dispatch-empty-msg {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.6;
  font-style: italic;
}

.dispatch-empty {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  color: var(--text-muted);
  gap: 12px;
}

.empty-icon {
  font-size: 40px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 14px;
}

@media (max-width: 768px) {
  #history-container {
    grid-template-columns: 1fr;
  }

  .history-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
  }

  .history-datetime {
    align-items: flex-start;
    flex-direction: row;
    gap: 8px;
  }

  .dispatch-item {
    padding: 14px 16px;
  }
}

/* ============================================
   NEWS PAGE
   ============================================ */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.news-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
  flex: 1;
}

.tabs-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 6px;
  border-radius: var(--radius-lg);
  width: fit-content;
}

.tab-item {
  padding: 8px 20px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.tab-item:hover {
  color: var(--text-color);
  background: rgba(255,255,255,0.04);
}

.tab-item.active {
  background: linear-gradient(135deg, var(--primary-color), #F48B55);
  color: white;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* ============================================
   LOADING / SKELETON
   ============================================ */

.loading {
  padding: 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.skeleton {
  display: block;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    90deg,
    var(--card-bg)     0%,
    var(--border-color) 40%,
    rgba(255,255,255,0.05) 50%,
    var(--border-color) 60%,
    var(--card-bg)     100%
  );
  background-size: 600px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE — Tablet (≤ 1024px)
   ============================================ */

@media (max-width: 1024px) {
  .content { padding: 32px; }
  .header { padding: 0 32px; }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-card {
    padding: 24px;
  }

  .metric-value {
    font-size: 32px;
  }
}

/* ============================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================ */

@media (max-width: 768px) {
  /* Sidebar goes off-canvas */
  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: block;
  }

  /* Main takes full width */
  .main-wrapper {
    margin-left: 0;
  }

  /* Header */
  .header {
    padding: 0 20px;
    height: 60px;
  }

  .hamburger {
    display: inline-flex;
  }

  .header-title h2 {
    font-size: 17px;
  }

  #user-name-display {
    display: none;
  }

  /* Content */
  .content {
    padding: 20px 16px;
  }

  /* Grids */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  /* Filters */
  .filters-bar {
    padding: 16px;
    gap: 12px;
  }

  .filters-bar .form-group {
    min-width: 100%;
  }

  /* Cards */
  .card {
    padding: 20px;
    border-radius: var(--radius-lg);
  }

  /* Metric */
  .metric-value { font-size: 28px; }

  /* Table */
  .table-container { margin: 0 -20px; }

  /* Tabs */
  .tabs-nav {
    width: 100%;
    justify-content: stretch;
  }

  .tab-item {
    flex: 1;
    text-align: center;
    padding: 8px 8px;
    font-size: 11px;
  }

  /* Buttons full-width on mobile */
  .btn-block-mobile {
    width: 100%;
  }
}

/* ============================================
   RESPONSIVE — Small Mobile (≤ 480px)
   ============================================ */

@media (max-width: 480px) {
  .grid-auto {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-value { font-size: 26px; }

  .dashboard-block-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
