/* ============================================================
   AssetaHub — Internal Pages Stylesheet
   Clean, institutional, professional design with Inter font
   ============================================================ */

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

:root {
  /* ── Landing (fondo oscuro) ── */
  --land-bg:          #0C1527;
  --land-bg-card:     #111E35;
  --land-bg-elevated: #162040;
  --land-border:      rgba(255,255,255,0.07);
  --land-border-gold: rgba(201,169,110,0.3);
  --land-text:        #F0EDE6;
  --land-muted:       rgba(240,237,230,0.45);
  --land-hint:        rgba(240,237,230,0.25);
  --land-gold:        #C9A96E;
  --land-gold-light:  #E8D9B8;
  --land-gold-bg:     rgba(201,169,110,0.12);

  /* ── App interior (fondo cálido claro) ── */
  --app-bg:           #F8F7F3;
  --app-surface:      #FFFFFF;
  --app-border:       #E8E4DA;
  --app-border-hover: #D4CEBB;
  --app-text:         #1B2B4B;
  --app-muted:        #6B6560;
  --app-hint:         #9E9990;
  --app-gold:         #C9A96E;
  --app-gold-bg:      #F5EFE0;
  --app-gold-dark:    #9B7A3E;
  --app-navy:         #1B2B4B;
  --app-navy-light:   #2D4578;

  /* ── Estados funcionales ── */
  --status-success:    #2E7D5E;
  --status-success-bg: #E8F5EF;
  --status-warning:    #96650A;
  --status-warning-bg: #FEF3DC;
  --status-info:       #0C447C;
  --status-info-bg:    #E6F1FB;
  --status-neutral-bg: #F2F0EB;
  --status-neutral:    #5C5850;

  /* ── Legacy aliases — mapean variables antiguas a la nueva paleta
        para que las vistas existentes adopten el rediseño sin cambios ── */
  --primary:       var(--app-navy);
  --primary-dark:  #0F1B33;
  --primary-light: var(--app-gold-bg);
  --bg:            var(--app-surface);
  --bg-alt:        var(--app-bg);
  --text:          var(--app-text);
  --text-muted:    var(--app-muted);
  --text-light:    var(--app-hint);
  --border:        var(--app-border);
  --border-light:  #F2EFE7;
  --danger:        #A32D2D;
  --danger-light:  #FCEBEB;
  --warning:       var(--status-warning);
  --warning-light: var(--status-warning-bg);
  --success:       var(--status-success);
  --success-light: var(--status-success-bg);
  --info:          var(--status-info);
  --info-light:    var(--status-info-bg);
  --radius:        10px;
  --radius-lg:     14px;
  --shadow-sm:     0 1px 2px rgba(27, 43, 75, 0.04);
  --shadow:        0 1px 3px rgba(27, 43, 75, 0.06), 0 1px 2px rgba(27, 43, 75, 0.04);
  --shadow-md:     0 4px 12px rgba(27, 43, 75, 0.08);
  --shadow-lg:     0 8px 24px rgba(27, 43, 75, 0.1);
  --transition:    0.2s ease;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg-alt);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-content {
  padding: 32px 24px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 140px);
  animation: fadeIn 0.4s ease both;
}

/* === NAVBAR — glassmorphism === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(238, 238, 238, 0.6);
  padding: 0 24px;
  transition: box-shadow var(--transition);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.5px;
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.3px;
}

/* Hamburger toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.navbar-toggle:hover {
  background: var(--bg-alt);
}

.navbar-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar-toggle.active .navbar-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.active .navbar-toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active .navbar-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav links */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.navbar-links a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.navbar-links a:hover {
  background: var(--bg-alt);
  color: var(--text);
  text-decoration: none;
}

.navbar-links a.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

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

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.user-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  gap: 8px;
  line-height: 1.4;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(29, 158, 117, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(29, 158, 117, 0.3);
  color: #ffffff;
}

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

.btn-outline:hover {
  background: var(--bg-alt);
  border-color: #ddd;
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
  background: #c82333;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
  color: #ffffff;
}

.btn-warning {
  background: var(--warning);
  color: #ffffff;
}

.btn-warning:hover {
  background: #e58e09;
  color: #ffffff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 8px;
}

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

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 12px;
}

.btn-full {
  width: 100%;
}

.btn-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.5;
}

.badge-vendor   { background: #dbeafe; color: #1e40af; }
.badge-investor { background: #e8f5f0; color: #166534; }
.badge-admin    { background: #fef3c7; color: #92400e; }

.badge-pending,
.badge-pending_review { background: var(--warning-light); color: #92400e; }

.badge-active,
.badge-published,
.badge-approved,
.badge-transmitted { background: var(--success-light); color: #166534; }

.badge-rejected,
.badge-withdrawn { background: var(--danger-light); color: #991b1b; }

.badge-suspended,
.badge-paused,
.badge-draft { background: #f3f4f6; color: #6b7280; }

.badge-accepted { background: #dbeafe; color: #1e40af; }
.badge-sold     { background: #e0e7ff; color: #3730a3; }

.badge-hotel       { background: #fef3c7; color: #92400e; }
.badge-office      { background: #dbeafe; color: #1e40af; }
.badge-logistics   { background: #e0e7ff; color: #3730a3; }
.badge-residential { background: #e8f5f0; color: #166534; }
.badge-land        { background: #fce7f3; color: #9d174d; }
.badge-mixed       { background: #f3f4f6; color: #374151; }

/* === CARDS === */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 15px;
  background: var(--bg);
}

.card-body {
  padding: 22px;
}

.card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Metric cards */
.metric-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}

.metric-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.metric-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -1px;
}

.metric-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* === ASSET CARDS === */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

.asset-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.asset-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  text-decoration: none;
  color: var(--text);
}

.asset-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  overflow: hidden;
}

.asset-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.asset-card:hover .asset-card-image img {
  transform: scale(1.04);
}

.asset-card-body {
  padding: 18px;
}

.asset-card-body h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.asset-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.asset-card-price {
  font-weight: 700;
  color: var(--text);
  font-size: 16px;
}

/* === GRIDS === */
.grid {
  display: grid;
  gap: 20px;
}

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

/* === TABLES === */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th {
  text-align: left;
  padding: 14px 18px;
  background: var(--bg-alt);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1;
}

.table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  transition: background var(--transition);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: var(--bg-alt);
}

/* === FORMS === */
.form {
  max-width: 100%;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Role selector */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.role-option input { display: none; }

.role-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.role-card:hover {
  border-color: #ccc;
  box-shadow: var(--shadow-sm);
}

.role-card strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.role-card small {
  color: var(--text-muted);
  font-size: 13px;
}

.role-option input:checked + .role-card {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.12);
}

.role-option-btn {
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  font: inherit;
  cursor: pointer;
}

.role-option-btn .role-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.12);
}

/* Checkboxes */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  accent-color: var(--primary);
}

input[type="file"] {
  padding: 8px;
}

/* === FILTER BAR === */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-bar .form-group {
  margin-bottom: 0;
  min-width: 150px;
}

.filter-bar .form-group label {
  font-size: 12px;
}

/* === SECTION HEADERS === */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.section-header h1,
.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}

/* === ALERTS === */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
  border: 1px solid;
  line-height: 1.5;
}

.alert-error {
  background: var(--danger-light);
  color: #991b1b;
  border-color: #fecaca;
}

.alert-success {
  background: var(--success-light);
  color: #166534;
  border-color: #bbf7d0;
}

.alert-info {
  background: var(--info-light);
  color: #1e40af;
  border-color: #bfdbfe;
}

.alert-warning {
  background: var(--warning-light);
  color: #92400e;
  border-color: #fde68a;
}

/* === AUTH PAGES === */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-alt);
}

.auth-container {
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding-top: 60px;
}

.auth-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow);
}

.auth-card-wide {
  max-width: 640px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo h1 {
  font-size: 24px;
  margin-top: 10px;
  font-weight: 700;
}

.auth-card h2 {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-card .text-muted {
  text-align: center;
  font-size: 14px;
  margin-bottom: 24px;
}

.auth-links {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.auth-links .divider {
  color: var(--text-light);
  margin: 0 8px;
}

/* === CAROUSEL === */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background var(--transition), box-shadow var(--transition);
}

.carousel-btn:hover {
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.carousel-btn-prev { left: 12px; }
.carousel-btn-next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.carousel-dot.active {
  background: #ffffff;
}

/* === NOTIFICATIONS === */
.notification-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  transition: background var(--transition);
}

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

.notification-message {
  font-size: 14px;
  line-height: 1.5;
}

.notification-time {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
}

.empty-state p {
  margin-bottom: 16px;
  font-size: 15px;
}

/* === USER DETAIL GRID === */
.user-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* === TEASER DOCUMENTS === */
.teaser-doc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background var(--transition), box-shadow var(--transition);
}

.teaser-doc:hover {
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
}

.teaser-doc-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.teaser-doc-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.teaser-doc-link:hover {
  color: var(--primary-dark);
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  background: var(--bg);
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

/* === SCROLL ANIMATIONS === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === UTILITIES === */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }

.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }

.flex           { display: flex; }
.flex-wrap      { flex-wrap: wrap; }
.items-center   { align-items: center; }
.justify-between { justify-content: space-between; }

/* === RESPONSIVE — 1024px === */
@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .user-detail-grid { grid-template-columns: 1fr; }
}

/* === RESPONSIVE — 768px === */
@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav */
  .navbar-toggle {
    display: flex;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 2px;
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-links a {
    padding: 10px 14px;
    border-radius: var(--radius);
    width: 100%;
  }

  .navbar-user {
    display: none;
  }

  .main-content {
    padding: 20px 16px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-direction: column;
  }

  .section-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .auth-card {
    padding: 24px;
  }

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

  .role-selector {
    grid-template-columns: 1fr;
  }

  .user-detail-grid {
    grid-template-columns: 1fr;
  }

  .carousel-slide img {
    height: 240px;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
  }
}

/* === Notifications: per-item delete button & meta === */
.notifications-bar-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.notification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.notification-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-icon-delete {
  background: transparent;
  border: none;
  color: inherit;
  opacity: 0.55;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  transition: opacity 0.15s, background 0.15s;
}
.btn-icon-delete:hover {
  opacity: 1;
  background: rgba(220, 53, 69, 0.12);
  color: var(--danger);
}
