/* assets/css/main.css */
/* ============================================================
   Image Link Preview — Main Stylesheet
   Modern, responsive, dark/light mode support
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Brand Colors */
  --ilp-primary:        #4f46e5;
  --ilp-primary-dark:   #3730a3;
  --ilp-primary-light:  #818cf8;
  --ilp-secondary:      #06b6d4;
  --ilp-success:        #10b981;
  --ilp-danger:         #ef4444;
  --ilp-warning:        #f59e0b;
  --ilp-info:           #3b82f6;

  /* Light theme */
  --bg-primary:         #ffffff;
  --bg-secondary:       #f8fafc;
  --bg-tertiary:        #f1f5f9;
  --bg-card:            #ffffff;
  --bg-nav:             #1e1b4b;
  --bg-sidebar:         #1e1b4b;

  --text-primary:       #0f172a;
  --text-secondary:     #475569;
  --text-muted:         #94a3b8;
  --text-inverse:       #ffffff;

  --border-color:       #e2e8f0;
  --border-light:       #f1f5f9;

  /* Shadows */
  --shadow-sm:          0 1px 2px rgba(0,0,0,.05);
  --shadow-md:          0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:          0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl:          0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --shadow-card:        0 2px 15px rgba(0,0,0,.08);

  /* Border radius */
  --radius-sm:          6px;
  --radius-md:          10px;
  --radius-lg:          16px;
  --radius-xl:          24px;
  --radius-full:        9999px;

  /* Transitions */
  --transition-fast:    150ms ease;
  --transition-base:    250ms ease;
  --transition-slow:    400ms ease;

  /* Spacing */
  --navbar-height:      64px;
  --sidebar-width:      260px;
}

/* ── Dark Mode ─────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg-primary:         #0f172a;
  --bg-secondary:       #1e293b;
  --bg-tertiary:        #334155;
  --bg-card:            #1e293b;
  --bg-nav:             #0f172a;
  --bg-sidebar:         #0f172a;

  --text-primary:       #f1f5f9;
  --text-secondary:     #94a3b8;
  --text-muted:         #64748b;

  --border-color:       #334155;
  --border-light:       #1e293b;

  --shadow-card:        0 2px 15px rgba(0,0,0,.3);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  transition: background-color var(--transition-base), color var(--transition-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

a {
  color: var(--ilp-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--ilp-primary-dark); }

p { color: var(--text-secondary); }

/* ── Navbar ────────────────────────────────────────────────── */
.ilp-navbar {
  position: sticky;
  top: 0;
  z-index: 1050;
  height: var(--navbar-height);
  background: var(--bg-nav);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-md);
}

.ilp-navbar .navbar-brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: .5rem;
  letter-spacing: -.5px;
}

.ilp-navbar .navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--ilp-primary-light), var(--ilp-secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ilp-navbar .nav-link {
  color: rgba(255,255,255,.75) !important;
  font-weight: 500;
  padding: .4rem .85rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.ilp-navbar .nav-link:hover,
.ilp-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.1);
}

/* ── Sidebar ────────────────────────────────────────────────── */
.ilp-sidebar {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--navbar-height));
  background: var(--bg-sidebar);
  border-right: 1px solid rgba(255,255,255,.06);
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform var(--transition-base);
  z-index: 900;
  padding: 1.25rem 0;
}

.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.3);
  padding: .75rem 1.25rem .3rem;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1.25rem;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.sidebar-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
  border-left-color: var(--ilp-primary-light);
}

.sidebar-nav-link.active {
  color: #fff;
  background: rgba(79, 70, 229, .25);
  border-left-color: var(--ilp-primary-light);
}

.sidebar-nav-link i {
  width: 18px;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── Main Content Area ─────────────────────────────────────── */
.ilp-main {
  margin-left: var(--sidebar-width);
  min-height: calc(100vh - var(--navbar-height));
  padding: 2rem;
  transition: margin-left var(--transition-base);
}

@media (max-width: 991.98px) {
  .ilp-sidebar {
    transform: translateX(-100%);
  }
  .ilp-sidebar.show {
    transform: translateX(0);
  }
  .ilp-main {
    margin-left: 0;
    padding: 1.25rem;
  }
}

/* ── Cards ─────────────────────────────────────────────────── */
.ilp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.ilp-card:hover {
  box-shadow: var(--shadow-lg);
}

.ilp-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
}

.ilp-card-header h5, .ilp-card-header h6 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.ilp-card-body {
  padding: 1.5rem;
}

/* ── Stat Cards ────────────────────────────────────────────── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
}

.stat-card.primary::before   { background: var(--ilp-primary); }
.stat-card.success::before   { background: var(--ilp-success); }
.stat-card.warning::before   { background: var(--ilp-warning); }
.stat-card.danger::before    { background: var(--ilp-danger); }
.stat-card.info::before      { background: var(--ilp-info); }
.stat-card.secondary::before { background: var(--ilp-secondary); }

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-icon.primary   { background: rgba(79,70,229,.12);  color: var(--ilp-primary); }
.stat-icon.success   { background: rgba(16,185,129,.12); color: var(--ilp-success); }
.stat-icon.warning   { background: rgba(245,158,11,.12); color: var(--ilp-warning); }
.stat-icon.danger    { background: rgba(239,68,68,.12);  color: var(--ilp-danger); }
.stat-icon.info      { background: rgba(59,130,246,.12); color: var(--ilp-info); }
.stat-icon.secondary { background: rgba(6,182,212,.12);  color: var(--ilp-secondary); }

.stat-content .stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
}

.stat-content .stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: .2rem;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-ilp {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-ilp-primary {
  background: linear-gradient(135deg, var(--ilp-primary), var(--ilp-primary-dark));
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(79,70,229,.3);
}

.btn-ilp-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79,70,229,.4);
}

.btn-ilp-secondary {
  background: var(--bg-tertiary);
  color: var(--text-secondary) !important;
  border-color: var(--border-color);
}

.btn-ilp-secondary:hover {
  background: var(--border-color);
  color: var(--text-primary) !important;
}

/* ── Form Elements ─────────────────────────────────────────── */
.ilp-form-group {
  margin-bottom: 1.25rem;
}

.ilp-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: .4rem;
}

.ilp-input,
.ilp-select,
.ilp-textarea {
  width: 100%;
  padding: .65rem 1rem;
  font-size: .9375rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  appearance: none;
}

.ilp-input:focus,
.ilp-select:focus,
.ilp-textarea:focus {
  border-color: var(--ilp-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}

.ilp-input::placeholder { color: var(--text-muted); }

.ilp-textarea {
  resize: vertical;
  min-height: 90px;
}

.ilp-input-group {
  position: relative;
}

.ilp-input-group .ilp-input {
  padding-right: 3rem;
}

.ilp-input-group .input-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* ── Drop Zone ─────────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  background: var(--bg-secondary);
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--ilp-primary);
  background: rgba(79,70,229,.04);
}

.drop-zone.drag-over {
  transform: scale(1.01);
}

.drop-zone.has-image {
  border-style: solid;
  border-color: var(--ilp-success);
  background: rgba(16,185,129,.04);
  padding: .5rem;
}

.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.drop-zone-icon {
  font-size: 3rem;
  color: var(--ilp-primary);
  margin-bottom: .75rem;
  transition: transform var(--transition-base);
}

.drop-zone:hover .drop-zone-icon,
.drop-zone.drag-over .drop-zone-icon {
  transform: scale(1.1) translateY(-4px);
}

.drop-zone-text {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.drop-zone-hint {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .25rem;
}

.drop-zone-preview {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 200px;
}

.drop-zone-preview img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.drop-zone-preview .remove-preview {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 28px;
  height: 28px;
  background: rgba(239,68,68,.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  z-index: 3;
}

/* ── Progress Bar ──────────────────────────────────────────── */
.ilp-progress {
  height: 6px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: .75rem 0;
}

.ilp-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--ilp-primary), var(--ilp-secondary));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  width: 0%;
}

/* ── Link Cards ────────────────────────────────────────────── */
.link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ilp-primary);
}

.link-card-image {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.link-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.link-card:hover .link-card-image img {
  transform: scale(1.05);
}

.link-card-status {
  position: absolute;
  top: .6rem;
  left: .6rem;
  padding: .2rem .6rem;
  border-radius: var(--radius-full);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.link-card-status.active {
  background: rgba(16,185,129,.9);
  color: #fff;
}

.link-card-status.inactive {
  background: rgba(239,68,68,.9);
  color: #fff;
}

.link-card-status.expired {
  background: rgba(245,158,11,.9);
  color: #fff;
}

.link-card-body {
  padding: 1rem;
}

.link-card-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-card-url {
  font-size: .78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: .75rem;
}

.link-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-muted);
  padding-top: .75rem;
  border-top: 1px solid var(--border-light);
}

.link-card-views {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-weight: 600;
  color: var(--ilp-primary);
}

.link-card-short {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: .75rem;
  background: rgba(79,70,229,.08);
  color: var(--ilp-primary);
  padding: .15rem .5rem;
  border-radius: var(--radius-sm);
}

.link-card-actions {
  display: flex;
  gap: .4rem;
  padding: .75rem 1rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

.link-card-actions .btn {
  flex: 1;
  font-size: .78rem;
  padding: .3rem .5rem;
}

/* ── Badges ────────────────────────────────────────────────── */
.badge-ilp {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .65rem;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.badge-active   { background: rgba(16,185,129,.12); color: var(--ilp-success); }
.badge-inactive { background: rgba(239,68,68,.12);  color: var(--ilp-danger); }
.badge-expired  { background: rgba(245,158,11,.12); color: var(--ilp-warning); }

/* ── Result Box (after link creation) ─────────────────────── */
.result-box {
  background: linear-gradient(135deg, rgba(79,70,229,.05), rgba(6,182,212,.05));
  border: 1.5px solid var(--ilp-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.result-url {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  margin-bottom: 1rem;
}

.result-url a {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ilp-primary);
  flex: 1;
  word-break: break-all;
}

.result-qr {
  text-align: center;
}

.result-qr img {
  border-radius: var(--radius-md);
  border: 4px solid var(--bg-card);
  box-shadow: var(--shadow-md);
}

/* ── Toast Notifications ───────────────────────────────────── */
.ilp-toast-container {
  position: fixed;
  top: calc(var(--navbar-height) + 1rem);
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  max-width: 380px;
}

.ilp-toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--ilp-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: .9rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  animation: slideInRight var(--transition-base) forwards;
}

.ilp-toast.success { border-left-color: var(--ilp-success); }
.ilp-toast.error   { border-left-color: var(--ilp-danger); }
.ilp-toast.warning { border-left-color: var(--ilp-warning); }
.ilp-toast.info    { border-left-color: var(--ilp-info); }

.ilp-toast-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: .05rem;
}

.ilp-toast.success .ilp-toast-icon { color: var(--ilp-success); }
.ilp-toast.error   .ilp-toast-icon { color: var(--ilp-danger); }
.ilp-toast.warning .ilp-toast-icon { color: var(--ilp-warning); }
.ilp-toast.info    .ilp-toast-icon { color: var(--ilp-info); }

.ilp-toast-body {
  flex: 1;
  font-size: .875rem;
  color: var(--text-primary);
}

.ilp-toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

@keyframes slideOutRight {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}

/* ── Go / Preview Page ─────────────────────────────────────── */
.preview-page {
  min-height: 100vh;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
}

.preview-hero {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.preview-hero img {
  width: 100%;
  aspect-ratio: 1200/630;
  object-fit: cover;
  display: block;
}

.preview-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.75));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.preview-hero-title {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  margin-bottom: .5rem;
}

.preview-hero-desc {
  font-size: .9rem;
  color: rgba(255,255,255,.85);
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

.preview-countdown {
  text-align: center;
  padding: 1.5rem;
}

.countdown-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--ilp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--ilp-primary);
  margin: 0 auto 1rem;
  animation: pulse 1s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79,70,229,.3); }
  50%       { box-shadow: 0 0 0 12px rgba(79,70,229,0); }
}

/* ── Auth Pages ────────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4f46e5 100%);
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.auth-card-header {
  background: linear-gradient(135deg, var(--ilp-primary), var(--ilp-primary-dark));
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}

.auth-logo {
  font-size: 2.5rem;
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  backdrop-filter: blur(10px);
}

.auth-card-header h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
}

.auth-card-header p {
  color: rgba(255,255,255,.7);
  font-size: .875rem;
  margin-top: .25rem;
}

.auth-card-body {
  padding: 2rem;
}

.auth-divider {
  text-align: center;
  margin: 1.25rem 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
}

.auth-divider span {
  position: relative;
  background: var(--bg-card);
  padding: 0 1rem;
  font-size: .8rem;
  color: var(--text-muted);
}

/* ── Home Landing ──────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4f46e5 100%);
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-full);
  padding: .35rem 1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ilp-primary);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: rgba(79,70,229,.1);
  color: var(--ilp-primary);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* ── Tables ────────────────────────────────────────────────── */
.ilp-table {
  width: 100%;
  border-collapse: collapse;
}

.ilp-table th {
  background: var(--bg-secondary);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--text-muted);
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.ilp-table td {
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  font-size: .875rem;
  color: var(--text-primary);
}

.ilp-table tr:hover td {
  background: var(--bg-secondary);
}

.ilp-table tr:last-child td {
  border-bottom: none;
}

/* ── Pagination ────────────────────────────────────────────── */
.ilp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: 1.5rem 0;
}

.ilp-pagination a,
.ilp-pagination span {
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 600;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.ilp-pagination a:hover {
  border-color: var(--ilp-primary);
  color: var(--ilp-primary);
  background: rgba(79,70,229,.06);
}

.ilp-pagination .active {
  background: var(--ilp-primary);
  border-color: var(--ilp-primary);
  color: #fff;
}

/* ── Utilities ─────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--ilp-primary), var(--ilp-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ilp-divider {
  height: 1px;
  background: var(--border-color);
  margin: 1.5rem 0;
}

.copy-btn {
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover { color: var(--ilp-success); }
.copy-btn.copied { color: var(--ilp-success); }

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 25%,
    var(--bg-tertiary) 50%,
    var(--bg-secondary) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Dark Mode Toggle ──────────────────────────────────────── */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1rem;
}

.theme-toggle:hover {
  background: rgba(255,255,255,.2);
}

/* ── Responsive Helpers ────────────────────────────────────── */
@media (max-width: 767.98px) {
  .hero-section { padding: 4rem 0 2.5rem; }
  .ilp-card-body { padding: 1.25rem; }
  .auth-card-body { padding: 1.5rem; }
  .stat-card { padding: 1.1rem; }
  .stat-icon { width: 44px; height: 44px; font-size: 1.2rem; }
  .stat-content .stat-value { font-size: 1.5rem; }
  .ilp-toast-container { left: 1rem; right: 1rem; max-width: none; }
}

@media (max-width: 575.98px) {
  .ilp-main { padding: 1rem; }
}

/* ── Scrollbar Styling ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Print Styles ──────────────────────────────────────────── */
@media print {
  .ilp-navbar, .ilp-sidebar, .ilp-toast-container { display: none !important; }
  .ilp-main { margin-left: 0 !important; }
}