/* 
 * Me Indica Alguém? v2 - Design System & Core Styles
 * Enterprise-grade responsive system — Mobile-first, 7 breakpoints.
 * Inspired by Google Material, Apple HIG, and Vercel's design system.
 */

:root {
  /* Colors */
  --primary: #0f4c81;
  --primary-hover: #0a355c;
  --primary-light: #4299e1;
  --secondary: #ff6b6b;
  --secondary-hover: #e05b5b;

  --dark: #121826;
  --white: #ffffff;
  --gray-900: #212B36;
  --gray-800: #454F5B;
  --gray-600: #637381;
  --gray-400: #919EAB;
  --gray-200: #DFE3E8;
  --gray-100: #F4F6F8;
  --light: #ffffff;

  --bg-color: #f7f9fa;
  --text-main: var(--gray-900);
  --text-muted: var(--gray-600);

  /* Status Colors */
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;

  /* Typography — Fluid with clamp() */
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --text-lg: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
  --text-xl: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --text-2xl: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
  --text-3xl: clamp(1.6rem, 1.2rem + 2vw, 2.5rem);
  --text-4xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);

  /* Fluid Spacing */
  --space-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
  --space-sm: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-md: clamp(0.75rem, 0.6rem + 0.75vw, 1.25rem);
  --space-lg: clamp(1rem, 0.8rem + 1vw, 2rem);
  --space-xl: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  --space-2xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
  --space-3xl: clamp(3rem, 2rem + 5vw, 6rem);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(15, 76, 129, 0.08);

  /* Border & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease;

  /* Header Height — Dynamic */
  --header-height: 85px;

  /* Safe area for notched phones */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* 🌙 Dark Mode Variables */
html.dark {
  --bg-color: #0b0f19;
  --text-main: #f8f9fa;
  --text-muted: #a0aec0;
  --primary-light: #63b3ed;
  --glass-bg: rgba(18, 24, 38, 0.6);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --gray-100: #1a202c;
  --gray-200: #2d3748;
}

/* ================== RESET & BASE ================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Prevent horizontal overflow on mobile */
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  /* Safe area padding for notched devices */
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  overflow-wrap: break-word;
  word-break: break-word;
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  /* Larger touch target */
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  color: var(--primary-hover);
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: var(--text-base);
}

/* Ensure touch targets are at least 44px (Apple HIG minimum) */
button,
a.btn,
input[type="submit"],
select {
  min-height: 44px;
}

/* ================== UTILITIES ================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.font-bold {
  font-weight: 700;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: var(--space-lg);
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: var(--space-lg);
}

/* Visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ================== COMPONENTS ================== */

/* Buttons — Fluid sizing */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  gap: 0.5rem;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

/* Helper para garantir que botões redondos de ícones não fiquem ovais */
.btn-circle, .btn-icon-circle {
  width: 44px;
  height: 44px;
  padding: 0 !important;
  border-radius: 50% !important;
  aspect-ratio: 1/1;
}

.btn-circle-sm {
  width: 34px;
  height: 34px;
  padding: 0 !important;
  border-radius: 50% !important;
  aspect-ratio: 1/1;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(15, 76, 129, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 76, 129, 0.4);
  color: #fff;
}

.btn-secondary {
  background-color: var(--secondary);
  color: #fff;
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #fff;
}

.btn-success {
  background-color: var(--success);
  color: #fff;
}

/* Active/pressed state for touch */
.btn:active {
  transform: scale(0.97);
}

/* Glass Cards — Fluid padding */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(15, 76, 129, 0.12);
}

/* Forms — Touch-optimized */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background-color: var(--light);
  color: var(--text-main);
  font-size: var(--text-base);
  transition: var(--transition);
  /* Prevent iOS zoom on focus */
  font-size: max(16px, var(--text-base));
}

html.dark .form-control {
  background-color: var(--gray-100);
  border-color: var(--gray-200);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.2);
}

/* ================== PREMIUM SELECT COMPONENT ================== */
.premium-select {
    position: relative;
    width: 100%;
}

.ps-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    background: var(--light);
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    outline: none;
}

html.dark .ps-trigger {
    background: rgba(255,255,255,0.04);
    border-color: var(--gray-200);
    color: var(--text-main);
}

.ps-trigger:focus,
.premium-select.open .ps-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

.ps-trigger span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-arrow {
    font-size: 0.75rem;
    color: var(--gray-500);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.premium-select.open .ps-arrow {
    transform: rotate(180deg);
}

.ps-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.4rem;
}

html.dark .ps-dropdown {
    background: var(--gray-800);
    border-color: var(--gray-700);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.premium-select.open .ps-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ps-option {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

html.dark .ps-option { color: var(--white); }

.ps-option:hover {
    background: rgba(15, 76, 129, 0.08);
    color: var(--primary);
}

html.dark .ps-option:hover {
    background: rgba(66, 153, 225, 0.15);
    color: var(--primary-light);
}

.ps-option.selected {
    background: rgba(15, 76, 129, 0.12);
    color: var(--primary);
    font-weight: 700;
}

html.dark .ps-option.selected {
    background: rgba(66, 153, 225, 0.2);
    color: var(--primary-light);
}

/* Scrollbar */
.ps-dropdown::-webkit-scrollbar { width: 5px; }
.ps-dropdown::-webkit-scrollbar-track { background: transparent; }
.ps-dropdown::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 10px; }
html.dark .ps-dropdown::-webkit-scrollbar-thumb { background: var(--gray-600); }

/* ================== PREMIUM SELECT — GROUPED & SEARCHABLE ================== */

/* Grouped dropdown: taller, with internal scroll */
.ps-dropdown--grouped {
    max-height: 360px;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.premium-select.open .ps-dropdown--grouped {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Search bar inside dropdown */
.ps-search-wrap {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    padding: 0.6rem 0.75rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

html.dark .ps-search-wrap {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

.ps-search-icon {
    color: var(--gray-400);
    font-size: 0.8rem;
    margin-right: 0.6rem;
    flex-shrink: 0;
}

.ps-search {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    font-family: var(--font-body);
    padding: 0.3rem 0;
}

.ps-search::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

html.dark .ps-search {
    color: var(--text-main);
}

html.dark .ps-search::placeholder {
    color: var(--gray-500);
}

/* Scrollable options list */
.ps-options-list {
    overflow-y: auto;
    flex: 1;
    padding: 0.3rem;
    scroll-behavior: smooth;
}

.ps-options-list::-webkit-scrollbar { width: 5px; }
.ps-options-list::-webkit-scrollbar-track { background: transparent; }
.ps-options-list::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 10px; }
html.dark .ps-options-list::-webkit-scrollbar-thumb { background: var(--gray-600); }

/* Group styling */
.ps-group {
    margin-bottom: 0.25rem;
}

.ps-group:last-child {
    margin-bottom: 0;
}

.ps-group-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 2;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 0.15rem;
}

.ps-group-label i {
    color: var(--primary);
    font-size: 0.75rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.85;
}

html.dark .ps-group-label {
    background: var(--gray-800);
    color: var(--gray-400);
    border-color: rgba(255,255,255,0.04);
}

/* Options inside groups get a slight indent */
.ps-group .ps-option {
    padding: 0.55rem 0.75rem 0.55rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 6px;
    margin: 1px 0.25rem;
}

/* No results state */
.ps-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

.ps-no-results i {
    font-size: 1.2rem;
    opacity: 0.4;
}

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

/* Base Header — Compact & Elegant */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
  /* Support notched phones */
  padding-top: var(--safe-top);
  background: transparent;
}

/* Pseudo-element for blur to prevent CSS stacking context trap for fixed children */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
  transition: opacity 0.2s ease;
}

.brand-logo {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-logo.--dark,
html.dark .brand-logo.--light {
  display: none;
}

html.dark .brand-logo.--dark {
  display: block;
}

@media (max-width: 768px) {
  .brand-logo {
    height: 50px;
  }
}

/* ═══ Desktop Centered Navigation ═══ */
.desktop-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.desktop-nav-link {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
}

.desktop-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.desktop-nav-link:hover {
  color: var(--primary);
}

.desktop-nav-link:hover::after {
  width: 60%;
}

.nav-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gray-600);
  opacity: 0.4;
  flex-shrink: 0;
}

/* ═══ Right-Side Header Actions ═══ */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

/* Theme Toggle — Minimal Icon Button */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  flex-shrink: 0;
  border-radius: 50% !important;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box !important;
  aspect-ratio: 1/1 !important;
}

.theme-toggle-btn i {
  line-height: 1 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-btn:hover {
  background: var(--gray-200);
  color: var(--primary);
}

html.dark .theme-toggle-btn:hover {
  background: var(--gray-800);
}

/* User Profile Pill (when logged in) */
.user-nav-profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem 0.3rem 0.3rem;
  border-radius: var(--radius-pill);
  background: var(--gray-100);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-main);
}

.user-nav-profile:hover {
  background: var(--gray-200);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: var(--text-main);
}

html.dark .user-nav-profile {
  background: var(--gray-900);
  border-color: var(--gray-800);
}

html.dark .user-nav-profile:hover {
  background: var(--gray-800);
}

.user-nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.user-nav-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  text-transform: uppercase;
}

.user-nav-name {
  font-size: var(--text-sm);
  font-weight: 600;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Logout Button — Sleek Icon */
.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--gray-600);
  transition: var(--transition);
  font-size: 0.95rem;
}

.logout-btn:hover {
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger);
}

/* Notification Badge & Dropdown */
.notif-wrapper {
  position: relative;
  display: inline-block;
}

.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--light);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

html.dark .notif-badge {
  border-color: var(--bg-color);
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: -80px;
  width: 320px;
  background: var(--light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  animation: slideInDown 0.3s ease;
}

html.dark .notif-dropdown {
  background: var(--gray-900);
  border-color: var(--gray-800);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.notif-dropdown.show {
  display: flex;
}

.notif-dropdown-header {
  padding: var(--space-md);
  background: var(--gray-50);
  font-size: var(--text-sm);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gray-200);
}

html.dark .notif-dropdown-header {
  background: var(--gray-800);
  border-color: var(--gray-700);
}

.notif-dropdown-header button {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 11px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.notif-dropdown-header button:hover {
  background: rgba(15, 76, 129, 0.1);
}

.notif-items {
  max-height: 350px;
  overflow-y: auto;
}

.notif-item {
  padding: var(--space-md);
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
  display: flex;
  gap: var(--space-sm);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

html.dark .notif-item {
  border-color: var(--gray-800);
}

.notif-item:hover {
  background: var(--gray-50);
}

html.dark .notif-item:hover {
  background: var(--gray-800);
}

.notif-item.unread {
  background: rgba(15, 76, 129, 0.03);
}

html.dark .notif-item.unread {
  background: rgba(15, 76, 129, 0.1);
}

.notif-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  flex-shrink: 0;
}

.notif-item-content {
  flex: 1;
}

.notif-item-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.notif-item-msg {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.4;
}

.notif-item-time {
  font-size: 10px;
  color: var(--gray-400);
  margin-top: 4px;
}

.notif-empty {
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  color: var(--gray-500);
  font-size: var(--text-sm);
}

.notif-footer {
  padding: var(--space-sm);
  text-align: center;
  background: var(--gray-50);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  border-top: 1px solid var(--gray-200);
}

html.dark .notif-footer {
  background: var(--gray-800);
  border-color: var(--gray-700);
}

@media (max-width: 768px) {
  .notif-dropdown {
    position: fixed;
    top: 60px;
    left: 10px;
    right: 10px;
    width: auto;
  }
}


/* Header CTA Button (Acessar) — Compact */
.btn-sm-header {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
  border-radius: var(--radius-pill);
}

/* Mobile Menu Button — hidden on desktop */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  font-size: 1.2rem;
  border-radius: var(--radius-sm);
  -webkit-tap-highlight-color: transparent;
  z-index: 1001;
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  background: var(--gray-200);
}

/* ═══ Mobile Backdrop Overlay ═══ */
.nav-backdrop {
  visibility: hidden;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  transition: all 0.35s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.nav-backdrop.active {
  visibility: visible;
  opacity: 1;
}

/* ═══ Mobile Drawer ═══ */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 82%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background: var(--light);
  z-index: 10000;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(101%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-drawer.open {
  transform: translateX(0);
}

html.dark .mobile-drawer {
  background: var(--bg-color);
  border-left: 1px solid rgba(255,255,255,0.05);
  box-shadow: -10px 0 40px rgba(0,0,0,0.5);
}

.drawer-header {
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-200);
}

html.dark .drawer-header {
  border-color: rgba(255,255,255,0.05);
}

.drawer-brand {
    display: flex;
    align-items: center;
}

.drawer-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.drawer-logo.--dark,
html.dark .drawer-logo.--light {
  display: none;
}

html.dark .drawer-logo.--dark {
  display: block;
}
.drawer-close {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none;
  background: var(--gray-100);
  color: var(--text-muted);
  border-radius: 50% !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  flex-shrink: 0 !important;
  aspect-ratio: 1/1 !important;
  line-height: 0;
}

html.dark .drawer-close {
  background: var(--gray-200);
}

.drawer-close:hover {
  background: var(--gray-200);
  color: var(--danger);
}

.drawer-body {
  padding: 1rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

/* ═══ Drawer Links — Staggered Reveal ═══ */
.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-md);
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  /* Staggered animation */
  opacity: 0;
  transform: translateX(20px);
}

.drawer-link i {
  width: 20px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--primary);
  flex-shrink: 0;
}

.drawer-link:hover,
.drawer-link:active {
  background: var(--gray-100);
}

html.dark .drawer-link:hover,
html.dark .drawer-link:active {
  background: var(--gray-200);
}

.drawer-link--action {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.drawer-link--danger {
  color: var(--danger);
}

.drawer-link--danger i {
  color: var(--danger);
}

.drawer-separator {
  height: 1px;
  background: var(--gray-200);
  margin: 0.5rem 0;
}

html.dark .drawer-separator {
  background: var(--gray-800);
}

/* Drawer CTA */
.drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(15, 76, 129, 0.3);
  /* Staggered animation */
  opacity: 0;
  transform: translateX(20px);
}

.drawer-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 76, 129, 0.4);
  color: #fff;
}

/* Staggered animation keyframes */
@keyframes drawerSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-drawer.open .drawer-link,
.mobile-drawer.open .drawer-cta {
  animation: drawerSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.08s + var(--i) * 0.06s);
}

/* Main Content Padding (matches header) */
.site-main {
  min-height: calc(100vh - var(--header-height));
  padding-top: calc(var(--header-height) + var(--safe-top));
}

/* Section spacing */
.section-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
}

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

/* ================== 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);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* ================== FOOTER ================== */
.site-footer {
  background-color: var(--primary);
  color: #fff;
  padding: var(--space-3xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
  font-size: var(--text-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-col-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--light);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-nav {
  list-style: none;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.75rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  font-size: var(--text-sm);
  display: inline-block;
  padding: 0.15rem 0;
}

.footer-nav a:hover {
  color: var(--light);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.25rem 0;
}

.footer-contact-item i {
  font-size: 1.1rem;
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-xs);
  /* Safe area bottom for notched phones */
  padding-bottom: var(--safe-bottom);
}


/* ==================================================================================
   RESPONSIVE BREAKPOINTS — Mobile-First, Enterprise-Grade
   320px → 480px → 600px → 768px → 992px → 1200px → 1440px+
   ================================================================================== */

/* ─────── SMALL PHONES (up to 480px) ─────── */
@media (max-width: 480px) {
  :root {
    --header-height: 56px;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .glass-card {
    padding: var(--space-md);
    border-radius: var(--radius-sm);
  }

  .btn {
    padding: 0.65rem 1rem;
    font-size: var(--text-xs);
  }

  .site-logo {
    font-size: var(--text-sm);
  }

  .footer-grid {
    gap: var(--space-lg);
  }
}

/* ─────── TABLETS PORTRAIT & LARGE PHONES (up to 768px) ─────── */
@media (max-width: 768px) {

  /* Hide desktop nav, show mobile toggle */
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Hide desktop-only header actions on mobile */
  .header-actions .theme-toggle-btn,
  .header-actions .user-nav-profile,
  .header-actions .logout-btn,
  .header-actions .btn-sm-header {
    display: none;
  }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .footer-col-title {
    justify-content: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-contact-item {
    justify-content: center;
  }
}

/* ─────── TABLETS LANDSCAPE (up to 992px) ─────── */
@media (max-width: 992px) and (min-width: 769px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

/* ─────── LARGE DESKTOPS (1440px+) ─────── */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }

  .glass-card {
    padding: var(--space-xl);
  }
}

/* ─────── ULTRA-WIDE (1920px+) ─────── */
@media (min-width: 1920px) {
  .container {
    max-width: 1440px;
  }
}

/* ─────── Touch Device Optimizations ─────── */
@media (hover: none) and (pointer: coarse) {

  /* Remove hover effects on touch — they feel laggy */
  .glass-card:hover {
    transform: none;
    box-shadow: var(--glass-shadow);
  }

  .btn-primary:hover {
    transform: none;
  }

  .btn-secondary:hover {
    transform: none;
  }

  /* Bigger tap targets */
  .desktop-nav-link {
    padding: 0.5rem 0.25rem;
  }

  /* Better scroll behavior */
  .mobile-drawer {
    overscroll-behavior: contain;
  }
}

/* ─────── Reduced Motion Support ─────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─────── Landscape Phone Fix ─────── */
@media (max-height: 500px) and (orientation: landscape) {
  .site-main {
    padding-top: calc(var(--header-height) + var(--safe-top));
  }

  .mobile-drawer {
    padding-top: var(--space-sm);
  }
}

/* ─────── Print Styles ─────── */
@media print {

  .site-header,
  .site-footer,
  .mobile-menu-btn,
  .mobile-drawer,
  .theme-toggle-btn,
  .nav-backdrop {
    display: none !important;
  }

  .site-main {
    padding-top: 0;
  }

  body {
    background: white;
    color: black;
  }

  .glass-card {
    box-shadow: none;
    border: 1px solid #ddd;
    backdrop-filter: none;
  }
}

/* ─────── Floating Notification Bell ─────── */
.pf-floating-bell {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--pf-primary, #0f4c81); /* Solid, high contrast */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9998;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pf-floating-bell:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  color: white;
}

.pf-bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444; /* bright red */
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-block;
  min-width: 20px;
  height: 20px;
  line-height: 16px; /* Perfeito para centralizar em 20px de altura com 2px de borda */
  text-align: center;
  padding: 0 4px;
  border-radius: 10px;
  border: 2px solid white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  box-sizing: border-box;
}

html.dark .pf-bell-badge {
  border-color: #1e293b;
}

@keyframes ring {
  0% { transform: rotate(0); }
  10% { transform: rotate(20deg); }
  20% { transform: rotate(-20deg); }
  30% { transform: rotate(15deg); }
  40% { transform: rotate(-15deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(-10deg); }
  70% { transform: rotate(5deg); }
  80% { transform: rotate(-5deg); }
  90% { transform: rotate(2deg); }
  100% { transform: rotate(0); }
}

.ring-animation i {
  animation: ring 1s ease-in-out;
  transform-origin: top center;
}

/* ─────── Notification Modal (Enterprise Redesign) ─────── */
.notif-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notif-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.notif-modal-content {
  background: var(--card-bg, #ffffff);
  width: 100%;
  max-width: 440px;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  transform: scale(0.95) translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  overflow: hidden;
  margin: 16px;
}

.notif-modal-overlay.active .notif-modal-content {
  transform: scale(1) translateY(0);
}

html.dark .notif-modal-content {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7);
}

.notif-modal-header {
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

html.dark .notif-modal-header {
  border-bottom-color: rgba(255,255,255,0.05);
}

.notif-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.notif-modal-header h3 i {
    font-size: 1.1rem;
}

.notif-modal-close {
  background: var(--gray-100, #f3f4f6);
  border: none;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  aspect-ratio: 1/1 !important;
  box-sizing: border-box !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 0;
}

html.dark .notif-modal-close {
  background: rgba(255,255,255,0.05);
}

.notif-modal-close:hover {
  background: var(--gray-200, #e5e7eb);
  color: var(--text-color);
}
html.dark .notif-modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

.notif-modal-body {
  padding: 8px 16px;
  overflow-y: auto;
  flex: 1;
}

.notif-modal-body::-webkit-scrollbar { width: 6px; }
.notif-modal-body::-webkit-scrollbar-track { background: transparent; }
.notif-modal-body::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 10px; }
html.dark .notif-modal-body::-webkit-scrollbar-thumb { background: var(--gray-600); }

.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Redesigning Notif Item */
.notif-item {
  padding: 12px 14px;
  border-radius: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: background 0.2s ease;
  position: relative;
  margin-bottom: 4px;
}

.notif-item:last-child { margin-bottom: 0; }
.notif-item:hover { background: var(--light, #f8f9fa); }
html.dark .notif-item:hover { background: rgba(255,255,255,0.03); }

/* Premium Soft Icons */
.notif-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

/* Cores pastéis / soft para modernidade */
.notif-icon.whatsapp { background: rgba(37, 211, 102, 0.15); color: #16a34a; }
.notif-icon.favorito { background: rgba(239, 68, 68, 0.15); color: #dc2626; }
.notif-icon.avaliacao { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.notif-icon.medalha { background: rgba(234, 179, 8, 0.15); color: #b45309; }
.notif-icon.default { background: rgba(15, 76, 129, 0.15); color: var(--pf-primary); }

/* ═══════════════════════════════════════════════════
   🏅 SISTEMA DE MEDALHAS — Badges para Cards
   ═══════════════════════════════════════════════════ */

.medal-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 9px 3px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 100px;
  z-index: 6;
  overflow: hidden;
  animation: medalBadgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  line-height: 1;
  pointer-events: none;
  transform-origin: left center;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Shimmer sweep — same style as .new-badge */
.medal-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: medalBadgeShimmer 3s ease-in-out infinite;
}

.medal-badge i {
  font-size: 0.55rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

/* Pop-in */
@keyframes medalBadgePop {
  0% { opacity: 0; transform: scale(0.5) rotate(-5deg); }
  60% { transform: scale(1.08) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Shimmer sweep */
@keyframes medalBadgeShimmer {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

/* Bronze */
.medal-badge--bronze {
  background: linear-gradient(135deg, #b87333 0%, #cd7f32 50%, #a0522d 100%);
  box-shadow:
    0 2px 8px rgba(205, 127, 50, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

/* Prata */
.medal-badge--prata {
  background: linear-gradient(135deg, #9ca3af 0%, #b0bec5 50%, #78909c 100%);
  box-shadow:
    0 2px 8px rgba(148, 163, 184, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

/* Ouro */
.medal-badge--ouro {
  background: linear-gradient(135deg, #f59e0b 0%, #eab308 50%, #d97706 100%);
  box-shadow:
    0 2px 10px rgba(245, 158, 11, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

/* Dark mode */
html.dark .medal-badge--bronze {
  background: linear-gradient(135deg, #cd7f32 0%, #b87333 50%, #a0522d 100%);
  box-shadow: 0 2px 12px rgba(205, 127, 50, 0.4), 0 0 0 1px rgba(255,255,255,0.1) inset;
}
html.dark .medal-badge--prata {
  background: linear-gradient(135deg, #b0bec5 0%, #90a4ae 50%, #78909c 100%);
  box-shadow: 0 2px 12px rgba(176, 190, 197, 0.35), 0 0 0 1px rgba(255,255,255,0.1) inset;
}
html.dark .medal-badge--ouro {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  box-shadow: 0 2px 12px rgba(251, 191, 36, 0.4), 0 0 0 1px rgba(255,255,255,0.1) inset;
}

/* Mobile */
@media (max-width: 480px) {
  .medal-badge {
    padding: 3px 7px 2px;
    font-size: 0.55rem;
    gap: 3px;
  }
  .medal-badge i {
    font-size: 0.5rem;
  }
}

.notif-content {
  flex: 1;
  padding-top: 4px;
}

.notif-message {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 4px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.notif-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Lidas fade e bola sutil */
.notif-item.read {
  opacity: 0.6;
}
.notif-item:not(.read)::after {
  content: '';
  position: absolute;
  top: 18px;
  right: 14px;
  width: 8px;
  height: 8px;
  background: var(--pf-primary, #3b82f6);
  border-radius: 50%;
}

.notif-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}
.notif-empty i { font-size: 3rem; opacity: 0.2; margin-bottom: 16px; }

/* Remove btn floats inside on hover */
.notif-item .notif-delete-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 14px;
  background: var(--gray-200, #e5e7eb) !important;
  border: none !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding: 0 !important;
  aspect-ratio: 1/1 !important;
  box-sizing: border-box !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  line-height: 0;
}

html.dark .notif-item .notif-delete-btn { background: var(--gray-700); }
.notif-item:hover .notif-delete-btn { opacity: 1; }
.notif-item .notif-delete-btn:hover { background: #fee2e2; color: #dc2626; }

@media (max-width: 768px) {
  .notif-item .notif-delete-btn { opacity: 1; background: transparent; }
  .notif-item:not(.read)::after { right: 8px; top: 18px; } /* Ajuste pra bola de lido n dar colisão */
  .notif-modal-content {
      border-radius: 24px 24px 0 0;
      margin: 0;
      max-height: 90vh;
      transform: translateY(100%);
      width: 100%;
      height: auto;
      max-width: 100%;
      position: absolute;
      bottom: 0;
  }
  .notif-modal-overlay {
      align-items: flex-end; 
      padding: 0;
  }
  .notif-modal-overlay.active .notif-modal-content { transform: translateY(0); }
}

.notif-modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  background: transparent;
}
html.dark .notif-modal-footer { border-top-color: rgba(255,255,255,0.05); }

.notif-modal-footer .btn {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.notif-modal-footer .btn-outline {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}
.notif-modal-footer .btn-outline:hover { background: var(--gray-100, #f3f4f6); }
html.dark .notif-modal-footer .btn-outline:hover { background: rgba(255,255,255,0.05); }

.notif-modal-footer .btn-primary {
  background: var(--pf-primary, #0f4c81);
  color: white;
  border: none;
}
.notif-modal-footer .btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* Custom Action buttons inline fix */
.notif-modal-footer button {
  font-family: 'Inter', sans-serif;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   💰 MONETIZAÇÃO MODALS (GLASSMORPHISM)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.cl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.cl-modal-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="dark"] .cl-modal-card {
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Google Password Alert */
.google-password-alert {
    background: rgba(66, 133, 244, 0.08);
    border-left: 4px solid #4285f4;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.3s ease;
}

html.dark .google-password-alert {
    background: rgba(66, 133, 244, 0.15);
    border-left-color: #4285f4;
}

.google-password-alert i {
    color: #4285f4;
    font-size: 22px;
    margin-top: 2px;
}

.google-password-alert strong {
    color: var(--text-main);
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
    font-weight: 700;
}

.google-password-alert p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   ✨ NEW COMPANY BADGE — Premium Animated Badge
   ═══════════════════════════════════════════════════════════ */

.new-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 10px 3px; 
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    border-radius: 100px;
    z-index: 6;
    box-shadow: 
        0 2px 8px rgba(16, 185, 129, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    overflow: hidden;
    animation: newBadgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    line-height: 1;
    pointer-events: none;
    transform-origin: left center;
}

/* Shimmer effect */
.new-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%
    );
    animation: newBadgeShimmer 3s ease-in-out infinite;
}

.new-badge i {
    font-size: 0.6rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

/* Pop-in animation */
@keyframes newBadgePop {
    0% { opacity: 0; transform: scale(0.5) rotate(-5deg); }
    60% { transform: scale(1.08) rotate(1deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Shimmer sweep animation */
@keyframes newBadgeShimmer {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* Dark mode adjustments */
html.dark .new-badge {
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
    box-shadow: 
        0 2px 12px rgba(52, 211, 153, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* ── Detail/Profile page variant ── */
.new-badge--detail {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 5px 14px 4px;
    font-size: 0.72rem;
    animation-delay: 0.3s;
    margin: 0;
}

.cl-category-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Mobile responsive ── */
@media (max-width: 576px) {
    .new-badge {
        padding: 3px 9px;
        font-size: 0.6rem;
        gap: 3px;
    }

    .new-badge i {
        font-size: 0.5rem;
    }

    .new-badge--detail {
        top: 0.5rem;
        right: 1rem;
        padding: 4px 10px 3px;
        font-size: 0.65rem;
    }
}