/* ==========================================================================
   Kalapingka - Modern (Instagram-style) design system
   Loaded on top of Bootstrap. Restyles cards, buttons, forms, tables, nav
   without touching markup structure or JS behavior.
   ========================================================================== */

:root {
  --ig-bg: #fafafa;
  --ig-surface: #ffffff;
  --ig-border: #efefef;
  --ig-text: #262626;
  --ig-text-muted: #8e8e8e;
  --ig-radius: 16px;
  --ig-radius-sm: 10px;
  --ig-radius-pill: 999px;
  --ig-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
  --ig-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.08);
  --ig-gradient: linear-gradient(45deg, #0f766e 0%, #0d9488 35%, #14b8a6 70%, #2dd4bf 100%);
  --ig-accent: #0d9488;
  --ig-accent-2: #0f766e;
  --ig-success: #2ecc71;
  --ig-danger: #ed4956;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
  background-color: var(--ig-bg) !important;
  color: var(--ig-text);
}

/* While the window is actively being resized, elements shift under a
   stationary cursor and rapidly toggle :hover, re-triggering every
   transition below on every element that has one. Freeze them during
   the resize (see resize-stopper.js) so dragging the window edge stays
   smooth; they resume the instant resizing settles. */
body.resize-animation-stopper * {
  transition: none !important;
  animation: none !important;
}

/* ---- Cards ---- */
.card,
.candidate-card,
.container.card,
.container-fluid.card {
  border: 1px solid var(--ig-border) !important;
  border-radius: var(--ig-radius) !important;
  box-shadow: var(--ig-shadow) !important;
  background-color: var(--ig-surface) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover,
.candidate-card:hover {
  box-shadow: var(--ig-shadow-hover) !important;
}

/* ---- Buttons ---- */
.btn {
  border-radius: var(--ig-radius-pill) !important;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 8px 20px;
  border: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-success {
  background: var(--ig-gradient) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.28);
}

.btn-success:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.38);
}

.btn-primary {
  background: linear-gradient(45deg, #0e7490, #0891b2, #06b6d4) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-danger {
  background-color: var(--ig-danger) !important;
  color: #fff !important;
}

.btn-block {
  border-radius: var(--ig-radius-sm) !important;
}

/* ---- Forms ---- */
.form-control,
select.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea {
  border-radius: var(--ig-radius-sm) !important;
  border: 1.5px solid var(--ig-border) !important;
  padding: 10px 14px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: var(--ig-accent-2) !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14) !important;
}

label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ig-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.rate-hint {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--ig-text-muted);
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 4px;
}

/* ---- Tables (admin reports) ---- */
.table {
  border-collapse: separate;
  border-spacing: 0;
  background: var(--ig-surface);
  border-radius: var(--ig-radius-sm);
  overflow: hidden;
}

.table thead.thead-dark th {
  background: #1a1a1a !important;
  color: #fff;
  border: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table td,
.table th {
  border-color: var(--ig-border) !important;
  vertical-align: middle;
}

/* ---- Badges ---- */
.badge {
  border-radius: var(--ig-radius-pill) !important;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ---- Admin sidebar ---- */
.sidebar-menu {
  background: #ffffff !important;
  border-right: 1px solid var(--ig-border);
}

.custom-nav > li > a {
  border-radius: var(--ig-radius-pill) !important;
  margin: 4px 12px;
  transition: background 0.15s ease;
}

.custom-nav > li.active > a,
.custom-nav > li > a:hover {
  background: var(--ig-gradient) !important;
  color: #fff !important;
}

/* ---- Candidate voting grid ---- */
.ig-candidate-card {
  border-radius: 22px !important;
  overflow: hidden;
  background: var(--ig-surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ig-candidate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.tinder-photo {
  position: relative;
}

.tinder-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 55px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.ig-candidate-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
  display: block;
}

.tinder-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 48px 14px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0) 100%);
}

.ig-candidate-card .ig-card-body {
  padding: 14px 16px 16px;
}

.ig-card-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 2px;
  color: var(--ig-text);
}

.tinder-overlay .ig-card-name {
  color: #fff;
}

.ig-card-subtitle {
  color: var(--ig-text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.tinder-overlay .ig-card-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.ig-card-badge {
  display: inline-block;
  background: var(--ig-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--ig-radius-pill);
}

.pay-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.pay-toggle button {
  flex: 1;
  padding: 8px 4px;
  border-radius: var(--ig-radius-pill);
  border: 1.5px solid var(--ig-border);
  background: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ig-text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pay-toggle button.active {
  background: var(--ig-gradient);
  color: #fff;
  border-color: transparent;
}

.anonymous-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ig-text-muted);
}

.anonymous-toggle input[type="checkbox"] {
  width: auto;
}

.ig-gradient-ring {
  padding: 3px;
  border-radius: 50%;
  background: var(--ig-gradient);
  display: inline-block;
}

.ig-gradient-text {
  background: var(--ig-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* ---- Concert / event poster cards (shows list) ---- */
.concert-card {
  position: relative;
  display: block;
  border-radius: var(--ig-radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #2b2b2b, #111);
  box-shadow: var(--ig-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.concert-card:hover,
.concert-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--ig-shadow-hover);
}

.concert-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.45) saturate(0.55) contrast(1.08) brightness(0.92);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.concert-card:hover img {
  transform: scale(1.06);
  filter: sepia(0.25) saturate(0.7) contrast(1.08) brightness(0.95);
}

.concert-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.concert-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.88) 100%);
}

.concert-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--ig-gradient);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--ig-radius-pill);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.concert-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 20px;
  color: #fff;
}

.concert-title {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.concert-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ig-gradient);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: var(--ig-radius-pill);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
}

/* ---- Modal ---- */
.modal-content {
  border-radius: var(--ig-radius) !important;
  border: none !important;
}

/* ---- Popup images (admin thumbnails) ---- */
.img-fluid.popup {
  border-radius: var(--ig-radius-sm) !important;
  object-fit: cover;
}

/* ==========================================================================
   App shell (public-facing pages)
   Edge-to-edge on phones (native app feel), widens into a proper
   multi-column professional layout on tablet/desktop instead of staying
   pinned to a phone-width column.
   ========================================================================== */
.app-shell {
  width: 100%;
  min-height: 100vh;
  background: var(--ig-surface);
  position: relative;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

@media (min-width: 576px) {
  html {
    background: linear-gradient(180deg, #f0f0f2, #e4e4e7);
  }

  .app-shell {
    max-width: 720px;
    box-shadow: 0 0 0 1px var(--ig-border), 0 20px 60px rgba(0, 0, 0, 0.1);
  }
}

@media (min-width: 992px) {
  .app-shell {
    max-width: 1140px;
  }
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ig-surface);
  border-bottom: 1px solid var(--ig-border);
  padding: 14px 16px;
  font-weight: 700;
}

/* ---- App-style live search bar (vote page) ---- */
.app-search-bar {
  z-index: 15;
  background: var(--ig-surface);
  border-bottom: 1px solid var(--ig-border);
  padding: 10px 16px;
}

.app-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ig-bg);
  border-radius: var(--ig-radius-pill);
  padding: 10px 16px;
  max-width: 480px;
  margin: 0 auto;
}

.app-search-icon {
  color: var(--ig-text-muted);
  font-size: 0.9rem;
}

.app-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  color: var(--ig-text);
}

.app-search-input::placeholder {
  color: var(--ig-text-muted);
}

.app-search-clear {
  color: var(--ig-text-muted);
  cursor: pointer;
  font-size: 1rem;
}

.app-search-empty {
  text-align: center;
  color: var(--ig-text-muted);
  padding: 10px 0 0;
  margin: 0;
  font-size: 0.85rem;
}

.app-topbar.d-flex {
  text-align: left;
}

.app-menu-btn {
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ig-text);
  padding: 4px 8px;
}

.app-menu-btn:active {
  opacity: 0.6;
}

.offcanvas .offcanvas-body a {
  color: var(--ig-text);
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid var(--ig-border);
}

.offcanvas .offcanvas-body a i {
  color: var(--ig-accent);
  margin-right: 10px;
  width: 20px;
  display: inline-block;
  text-align: center;
}

.app-bottom-safe {
  padding-bottom: 24px;
  margin-top: auto;
}

/* ---- Admin sidebar -> bottom tab bar on phones ---- */
@media (max-width: 768px) {
  .sidebar-menu.sticky-sidebar-menu {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    width: 100% !important;
    height: auto !important;
    z-index: 1000;
    border-top: 1px solid var(--ig-border);
    border-right: none;
  }

  .sidebar-menu .logo {
    display: none;
  }

  .sidebar-menu-inner {
    width: 100%;
  }

  .custom-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin: 0;
    padding: 8px 0;
  }

  .custom-nav > li {
    flex: 1;
    text-align: center;
  }

  .custom-nav > li > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.65rem;
    margin: 0;
    padding: 4px;
    border-radius: var(--ig-radius-sm) !important;
  }

  .custom-nav > li > a i {
    font-size: 1.2rem;
    margin-bottom: 2px;
  }

  body {
    padding-bottom: 70px;
  }
}

/* ==========================================================================
   Admin dashboard - LinkedIn-style shell
   Scoped to .li-* classes so it only affects layouts/admin.blade.php and
   never bleeds into the public Instagram-style pages above.
   ========================================================================== */
:root {
  --li-blue: #0a66c2;
  --li-blue-dark: #004182;
  --li-bg: #f4f2ee;
  --li-surface: #ffffff;
  --li-border: #e0e0e0;
  --li-text: rgba(0, 0, 0, 0.9);
  --li-text-muted: rgba(0, 0, 0, 0.6);
  --li-radius: 8px;
  --li-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  --li-shadow-hover: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.12);
}

.li-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--li-bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--li-text);
}

/* ---- Top bar ---- */
.li-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--li-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.li-topbar-inner {
  max-width: 1128px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 0 16px;
}

.li-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  flex-shrink: 0;
}

.li-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.li-logo span {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--li-blue);
}

.li-nav {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.li-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 100%;
  padding: 0 18px;
  color: var(--li-text-muted) !important;
  text-decoration: none !important;
  font-size: 0.7rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

.li-nav li.active a,
.li-nav a:hover {
  color: var(--li-text) !important;
  border-bottom-color: var(--li-text);
}

.li-profile {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.li-profile-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--li-text-muted) !important;
  text-decoration: none !important;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.li-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.li-profile-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.li-dropdown-menu {
  right: 0;
  left: auto;
  border: none !important;
  border-radius: var(--li-radius) !important;
  box-shadow: var(--li-shadow-hover) !important;
  padding: 8px 0;
  min-width: 220px;
}

.li-dropdown-header {
  display: flex;
  flex-direction: column;
  padding: 8px 16px 12px;
}

.li-dropdown-header strong {
  color: var(--li-text);
  font-size: 0.95rem;
}

.li-dropdown-header span {
  color: var(--li-text-muted);
  font-size: 0.75rem;
}

.li-dropdown-divider {
  height: 1px;
  background: var(--li-border);
  margin: 4px 0;
}

.li-dropdown-menu li a {
  display: block;
  padding: 8px 16px;
  color: var(--li-text) !important;
  text-decoration: none !important;
}

.li-dropdown-menu li a:hover {
  background: var(--li-bg);
}

/* ---- Main content ---- */
.li-main {
  flex: 1;
  width: 100%;
  max-width: 1128px;
  margin: 20px auto;
  padding: 0 16px;
}

.li-main .card {
  border-radius: var(--li-radius) !important;
  border: none !important;
  box-shadow: var(--li-shadow) !important;
  background-color: var(--li-surface) !important;
}

.li-main .card:hover {
  box-shadow: var(--li-shadow-hover) !important;
}

.li-main .table {
  border-radius: var(--li-radius);
}

.li-main .btn-primary {
  background: var(--li-blue) !important;
  box-shadow: none !important;
}

.li-main .btn-primary:hover {
  background: var(--li-blue-dark) !important;
}

.li-main label {
  text-transform: none;
  letter-spacing: normal;
}

/* ---- Admin content pages: header, panels, toolbar, clean table ---- */
.li-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--li-text-muted) !important;
  text-decoration: none !important;
  margin-top: 20px;
}

.li-back-link:hover {
  color: var(--li-blue) !important;
}

.li-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 8px 0 20px;
}

.li-eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--li-text-muted);
}

.li-page-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--li-text);
}

.li-page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.li-panel {
  padding: 20px;
  margin-bottom: 20px;
}

.li-panel-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.li-toolbar-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--li-text-muted);
  margin: 0;
}

.li-select {
  border: 1px solid var(--li-border) !important;
  border-radius: var(--li-radius) !important;
  padding: 8px 12px !important;
  font-size: 0.88rem;
  color: var(--li-text);
  background: #fff;
  min-width: 220px;
}

.li-main .btn-outline-li {
  background: #fff !important;
  color: var(--li-blue) !important;
  border: 1px solid var(--li-blue) !important;
  box-shadow: none !important;
}

.li-main .btn-outline-li:hover {
  background: rgba(10, 102, 194, 0.08) !important;
}

.li-table thead th {
  background: #f4f6f8 !important;
  color: var(--li-text-muted) !important;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  border-bottom: 1px solid var(--li-border) !important;
  border-top: none !important;
  padding: 12px 16px !important;
  white-space: nowrap;
}

.li-table td {
  padding: 12px 16px !important;
  border-color: var(--li-border) !important;
  color: var(--li-text);
  font-size: 0.88rem;
  vertical-align: middle;
}

.li-table tbody tr:hover td {
  background: #f9fafb;
}

/* Compact variant for tables with many columns (e.g. Payouts) so they fit
   the panel width without horizontal scrolling. */
.li-table-compact thead th {
  padding: 8px 10px !important;
  font-size: 0.65rem;
  white-space: normal;
  line-height: 1.3;
}

.li-table-compact td {
  padding: 8px 10px !important;
  font-size: 0.82rem;
  white-space: nowrap;
}

.li-table .li-grand-total td,
.li-table .li-grand-total th {
  background: var(--li-blue) !important;
  color: #fff !important;
  font-weight: 700;
  border: none !important;
}

.li-table .li-grand-total.grey td,
.li-table .li-grand-total.grey th {
  background: #f4f6f8 !important;
  color: var(--li-text) !important;
}

.li-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--ig-radius-pill, 999px);
  font-size: 0.72rem;
  font-weight: 700;
}

.li-status-badge.active {
  background: rgba(10, 102, 194, 0.12);
  color: var(--li-blue);
}

.li-status-badge.closed {
  background: rgba(0, 0, 0, 0.06);
  color: var(--li-text-muted);
}

.li-status-badge.scheduled {
  background: rgba(225, 112, 26, 0.12);
  color: #e1701a;
}

.li-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.li-stat-card {
  background: var(--li-surface);
  border-radius: var(--li-radius);
  box-shadow: var(--li-shadow);
  padding: 18px 20px;
}

.li-stat-icon {
  color: var(--li-blue);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.li-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--li-text-muted);
  font-weight: 700;
  margin: 0 0 6px;
}

.li-stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--li-text);
  margin: 0;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.li-stat-value.li-stat-sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--li-text-muted);
}

.li-stat-card.highlight {
  background: var(--li-blue);
  box-shadow: none;
}

.li-stat-card.highlight .li-stat-icon,
.li-stat-card.highlight .li-stat-label,
.li-stat-card.highlight .li-stat-value {
  color: #fff;
}

.li-stat-card.highlight .li-stat-value.li-stat-sub {
  color: rgba(255, 255, 255, 0.75);
}

.li-stat-card.grey {
  background: #f4f6f8;
  box-shadow: none;
  border: 1px solid var(--li-border);
}

.li-show-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.li-show-card {
  background: var(--li-surface);
  border-radius: var(--li-radius);
  overflow: hidden;
  box-shadow: var(--li-shadow);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  text-decoration: none !important;
  color: inherit;
  display: block;
}

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

.li-show-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--li-bg);
}

.li-show-card-body {
  padding: 14px 16px;
}

.li-show-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.li-show-card-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--li-text);
}

.li-show-card-meta {
  font-size: 0.82rem;
  color: var(--li-text-muted);
}

/* ---- Auth pages (login, register, password reset) ---- */
.li-auth-shell {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.li-auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--li-surface);
  border-radius: var(--li-radius);
  box-shadow: var(--li-shadow-hover);
  padding: 40px 32px;
}

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

.li-auth-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--li-text-muted);
  margin: 14px 0 4px;
}

.li-auth-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--li-text);
  margin: 0;
}

.li-auth-field {
  margin-bottom: 18px;
}

.li-auth-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--li-text);
  margin-bottom: 6px;
}

.li-auth-field input.li-select {
  width: 100%;
}

.li-auth-field input.is-invalid {
  border-color: #dc3545 !important;
}

.li-auth-error {
  color: #dc3545;
  font-size: 0.78rem;
  margin: 6px 0 0;
}

.li-auth-submit {
  width: 100%;
  margin-top: 6px;
  padding: 10px !important;
  font-weight: 700 !important;
}

.li-auth-forgot {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--li-blue) !important;
  text-decoration: none !important;
}

.li-auth-forgot:hover {
  text-decoration: underline !important;
}

.li-link {
  color: var(--li-blue) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.li-link:hover {
  text-decoration: underline !important;
}

.li-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.li-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--li-text-muted) !important;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
  margin-right: 4px;
}

.li-icon-btn:hover {
  background: rgba(10, 102, 194, 0.1);
  color: var(--li-blue) !important;
}

.li-icon-btn.danger:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545 !important;
}

.li-icon-btn.warning:hover {
  background: rgba(225, 112, 26, 0.12);
  color: #e1701a !important;
}

button.li-icon-btn {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.95rem;
}

.li-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--li-text);
  margin: 0 0 4px;
}

.li-section-subtitle {
  font-size: 0.82rem;
  color: var(--li-text-muted);
  margin: 0 0 12px;
}

.li-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

.li-icon-btn.disabled {
  color: #ccc !important;
  cursor: not-allowed;
}

.li-icon-btn.disabled:hover {
  background: none;
}

.li-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.li-pagination-info {
  color: var(--li-text-muted);
  font-size: 0.85rem;
}

.li-pagination-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.li-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border-radius: var(--li-radius);
  color: var(--li-text-muted) !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 600;
}

.li-page-link:hover {
  background: rgba(10, 102, 194, 0.1);
  color: var(--li-blue) !important;
}

.li-page-link.active {
  background: var(--li-blue);
  color: #fff !important;
}

/* ---- Footer ---- */
.li-footer {
  text-align: center;
  background: var(--li-surface);
  border-top: 1px solid var(--li-border);
  padding: 14px 0;
  font-size: 0.8rem;
  color: var(--li-text-muted);
}

.li-footer a {
  color: var(--li-blue);
  text-decoration: none;
  font-weight: 600;
}

/* ---- Mobile: collapse to a bottom tab bar, LinkedIn-app style ---- */
@media (max-width: 768px) {
  .li-topbar-inner {
    height: 48px;
  }

  .li-logo span,
  .li-profile-name {
    display: none;
  }

  .li-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    height: 56px;
    background: var(--li-surface);
    border-top: 1px solid var(--li-border);
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.08);
    z-index: 100;
    justify-content: space-around;
  }

  .li-nav a {
    padding: 0 8px;
    font-size: 0.62rem;
  }

  .li-main {
    margin-bottom: 70px;
  }
}
