/* ═══════════════════════════════════════════════════════════════════
   WALLIP — Design System v1.0
   Inspirado no Stripe — clean, premium, confiável.
   Fontes: Sora (display) + DM Sans (body)
═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ─── Custom Properties ─────────────────────────────────────────── */
:root {
  /* Cores primárias */
  --primary:        #0057FF;
  --primary-hover:  #0046CC;
  --primary-light:  #EBF2FF;
  --primary-glow:   rgba(0, 87, 255, .16);

  /* Superfícies */
  --bg:             #F4F7FB;
  --surface:        #FFFFFF;
  --border:         #E2E8F2;
  --border-light:   #EEF2F8;

  /* Sidebar */
  --sidebar-bg:          #111827;
  --sidebar-hover:       rgba(255,255,255,.06);
  --sidebar-active:      rgba(0,87,255,.2);
  --sidebar-text:        #8B97B5;
  --sidebar-active-text: #FFFFFF;
  --sidebar-width:       240px;
  --topbar-height:       60px;

  /* Tipografia */
  --font:         'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Sora', sans-serif;
  --text-primary:   #111827;
  --text-secondary: #6B7694;
  --text-muted:     #9BA5C4;

  /* Status */
  --green:  #10B981; --green-bg:  #ECFDF5; --green-text:  #065F46;
  --yellow: #F59E0B; --yellow-bg: #FFFBEB; --yellow-text: #92400E;
  --red:    #EF4444; --red-bg:    #FEF2F2; --red-text:    #991B1B;
  --blue:   #0057FF; --blue-bg:   #EBF2FF; --blue-text:   #1E40AF;
  --purple: #8B5CF6; --purple-bg: #F5F3FF; --purple-text: #5B21B6;
  --orange: #F97316; --orange-bg: #FFF7ED; --orange-text: #9A3412;

  /* Sombras */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 12px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.05);

  /* Raios */
  --r-xs: 4px;
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Transição padrão */
  --t: 150ms cubic-bezier(.4, 0, .2, 1);
}

/* ─── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }

/* ─── Layout Shell ──────────────────────────────────────────────── */
.wlp-layout { display: flex; min-height: 100vh; }

/* ─── Sidebar ───────────────────────────────────────────────────── */
.wlp-sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wlp-sidebar-logo {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  flex-shrink: 0;
}
.wlp-sidebar-logo-icon {
  width: 30px; height: 30px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wlp-sidebar-logo-text {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  color: #fff;
}

.wlp-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
}
.wlp-nav-section { margin-bottom: 2px; }
.wlp-nav-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.22);
  padding: 12px 10px 5px;
  display: block;
}
.wlp-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8.5px 10px;
  border-radius: 8px;
  color: var(--sidebar-text);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: background var(--t), color var(--t);
  text-decoration: none;
  position: relative;
  user-select: none;
  white-space: nowrap;
}
.wlp-nav-item:hover { background: var(--sidebar-hover); color: #C9D4EE; text-decoration: none; }
.wlp-nav-item.active { background: var(--sidebar-active); color: #fff; }
.wlp-nav-item.active svg { color: #60A5FA; }
.wlp-nav-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.wlp-nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  line-height: 1.5;
}
.wlp-plan-tag {
  margin-left: auto;
  font-size: 9.5px; font-weight: 700;
  background: var(--purple-bg);
  color: var(--purple);
  padding: 2px 6px;
  border-radius: 4px;
}

.wlp-sidebar-footer {
  padding: 10px 8px 14px;
  border-top: 1px solid rgba(255,255,255,.05);
  flex-shrink: 0;
}
.wlp-plan-banner {
  background: rgba(0,87,255,.15);
  border: 1px solid rgba(0,87,255,.25);
  border-radius: 10px;
  padding: 11px 12px;
  margin-bottom: 6px;
}
.wlp-plan-banner-name {
  font-size: 10px; font-weight: 700;
  color: #60A5FA;
  text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 3px;
}
.wlp-plan-banner-desc { font-size: 11px; color: rgba(255,255,255,.4); margin-bottom: 8px; }
.wlp-plan-upgrade {
  display: block;
  background: var(--primary);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 6px;
  font-size: 11.5px; font-weight: 600;
  text-decoration: none;
  transition: background var(--t);
}
.wlp-plan-upgrade:hover { background: var(--primary-hover); text-decoration: none; }
.wlp-user-row {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--t);
  text-decoration: none;
}
.wlp-user-row:hover { background: var(--sidebar-hover); }
.wlp-user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0057FF, #8B5CF6);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.wlp-user-name { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.85); }
.wlp-user-role { font-size: 11px; color: rgba(255,255,255,.3); }

/* ─── Main Content ──────────────────────────────────────────────── */
.wlp-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Topbar ────────────────────────────────────────────────────── */
.wlp-topbar {
  height: var(--topbar-height);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.wlp-topbar-title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}
.wlp-search-box {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  height: 34px;
  color: var(--text-muted);
  font-size: 12.5px;
  width: 210px;
  cursor: text;
  transition: border-color var(--t), width var(--t);
}
.wlp-search-box:hover { border-color: #c5cfdf; }
.wlp-search-box input {
  background: none; border: none; outline: none;
  font-family: var(--font); font-size: 12.5px; color: var(--text-primary); flex: 1;
}
.wlp-search-box input::placeholder { color: var(--text-muted); }
.wlp-topbar-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  background: transparent;
  border: 1.5px solid transparent;
  transition: all var(--t);
  position: relative;
}
.wlp-topbar-btn:hover { background: var(--bg); border-color: var(--border); color: var(--text-primary); }
.wlp-notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  border: 1.5px solid #fff;
}

/* Notification Dropdown */
.wlp-notif-dropdown {
  position: absolute; top: 44px; right: 0;
  width: 340px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  overflow: hidden;
}
.wlp-notif-dropdown-header {
  padding: 13px 16px 10px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.wlp-notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--t);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.wlp-notif-item:hover { background: var(--bg); }
.wlp-notif-item.unread { background: var(--blue-bg); }
.wlp-notif-item:last-child { border-bottom: none; }
.wlp-notif-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wlp-notif-title { font-size: 12.5px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.wlp-notif-body  { font-size: 11.5px; color: var(--text-secondary); line-height: 1.45; }
.wlp-notif-time  { font-size: 10.5px; color: var(--text-muted); margin-top: 3px; }

/* ─── Page content ──────────────────────────────────────────────── */
.wlp-page { padding: 26px 26px 40px; }
.wlp-page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 22px;
}
.wlp-page-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.wlp-page-sub { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }

/* ─── Cards ─────────────────────────────────────────────────────── */
.wlp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t);
}
.wlp-card:hover { box-shadow: var(--shadow-sm); }
.wlp-card-header {
  padding: 18px 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.wlp-card-title {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700; color: var(--text-primary);
}
.wlp-card-body { padding: 0 20px 20px; }

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 16px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 13px; font-weight: 600;
  border: none; cursor: pointer;
  transition: all var(--t);
  white-space: nowrap; text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 2px 6px rgba(0,87,255,.22);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,87,255,.3); color: #fff; }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: #fff; color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { background: var(--bg); border-color: #c5cfdf; color: var(--text-primary); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg); color: var(--text-primary); }
.btn-danger { background: var(--red-bg); color: var(--red); border: 1.5px solid #FECACA; }
.btn-danger:hover { background: #FEE2E2; }
.btn-sm  { height: 30px; padding: 0 12px; font-size: 12px; }
.btn-lg  { height: 44px; padding: 0 22px; font-size: 14px; }
.btn-icon { padding: 0 8px; }

/* ─── Form elements ─────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12.5px; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
  letter-spacing: .01em;
}
.form-label.required::after { content: ' *'; color: var(--red); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 0 12px;
  height: 40px;
  font-family: var(--font); font-size: 13.5px;
  color: var(--text-primary);
  background: #fff;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { height: auto; padding: 10px 12px; resize: vertical; }
.form-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7694' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 11.5px; color: var(--red); margin-top: 4px; }

/* ─── Badges ────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px; font-weight: 600;
  white-space: nowrap;
  line-height: 1.5;
}
.badge-green  { background: var(--green-bg);  color: var(--green-text); }
.badge-yellow { background: var(--yellow-bg); color: var(--yellow-text); }
.badge-red    { background: var(--red-bg);    color: var(--red-text); }
.badge-blue   { background: var(--blue-bg);   color: var(--blue-text); }
.badge-purple { background: var(--purple-bg); color: var(--purple-text); }
.badge-orange { background: var(--orange-bg); color: var(--orange-text); }
.badge-gray   { background: #F1F5F9; color: var(--text-secondary); }

/* ─── KPI Stats ─────────────────────────────────────────────────── */
.wlp-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.wlp-kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex; align-items: flex-start; gap: 14px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t), transform var(--t);
}
.wlp-kpi-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.wlp-kpi-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wlp-kpi-icon.blue   { background: var(--blue-bg);   color: var(--primary); }
.wlp-kpi-icon.green  { background: var(--green-bg);  color: var(--green); }
.wlp-kpi-icon.yellow { background: var(--yellow-bg); color: var(--yellow); }
.wlp-kpi-icon.red    { background: var(--red-bg);    color: var(--red); }
.wlp-kpi-icon.purple { background: var(--purple-bg); color: var(--purple); }
.wlp-kpi-label { font-size: 12px; font-weight: 500; color: var(--text-secondary); margin-bottom: 5px; }
.wlp-kpi-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1; margin-bottom: 5px; }
.wlp-kpi-delta { font-size: 11.5px; font-weight: 600; }
.wlp-kpi-delta.up   { color: var(--green); }
.wlp-kpi-delta.warn { color: var(--yellow); }
.wlp-kpi-delta.down { color: var(--red); }

/* ─── Tables ────────────────────────────────────────────────────── */
.wlp-table-wrap { overflow-x: auto; }
.wlp-table { width: 100%; border-collapse: collapse; }
.wlp-table th {
  text-align: left;
  font-size: 11px; font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: .06em;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: #FAFBFD;
  white-space: nowrap;
}
.wlp-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-primary);
  vertical-align: middle;
}
.wlp-table tr:last-child td { border-bottom: none; }
.wlp-table tbody tr { transition: background var(--t); }
.wlp-table tbody tr:hover td { background: #F8FAFD; }
.wlp-table .td-actions { display: flex; gap: 5px; justify-content: flex-end; }

/* ─── Feed ──────────────────────────────────────────────────────── */
.wlp-feed-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-light);
}
.wlp-feed-item:last-child { border-bottom: none; }
.wlp-feed-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.wlp-feed-dot.green  { background: var(--green-bg);  color: var(--green); }
.wlp-feed-dot.yellow { background: var(--yellow-bg); color: var(--yellow); }
.wlp-feed-dot.red    { background: var(--red-bg);    color: var(--red); }
.wlp-feed-dot.blue   { background: var(--blue-bg);   color: var(--primary); }
.wlp-feed-dot.purple { background: var(--purple-bg); color: var(--purple); }
.wlp-feed-dot.gray   { background: #F1F5F9; color: var(--text-muted); }
.wlp-feed-title { font-size: 12.5px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.wlp-feed-sub   { font-size: 11.5px; color: var(--text-secondary); }
.wlp-feed-time  { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ─── Brand Result Card (add brand search) ──────────────────────── */
.wlp-brand-result {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  transition: all var(--t);
  cursor: pointer;
}
.wlp-brand-result:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.wlp-brand-result-logo {
  width: 42px; height: 42px;
  background: var(--blue-bg);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; color: var(--primary);
  flex-shrink: 0;
  text-transform: uppercase;
}
.wlp-brand-result-name { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.wlp-brand-result-meta { font-size: 11.5px; color: var(--text-secondary); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.wlp-meta-sep { color: var(--border); }

/* ─── Search bar ────────────────────────────────────────────────── */
.wlp-search-bar {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0 16px;
  height: 52px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t), box-shadow var(--t);
}
.wlp-search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }
.wlp-search-bar input { flex: 1; border: none; outline: none; font-family: var(--font); font-size: 15px; color: var(--text-primary); background: transparent; }
.wlp-search-bar input::placeholder { color: var(--text-muted); }

/* ─── Tabs ──────────────────────────────────────────────────────── */
.wlp-tab-bar {
  display: flex; gap: 2px;
  background: var(--bg);
  border-radius: var(--r);
  padding: 3px;
}
.wlp-tab {
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: 12.5px; font-weight: 600;
  cursor: pointer; color: var(--text-secondary);
  transition: all var(--t);
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.wlp-tab.active { background: #fff; color: var(--text-primary); box-shadow: var(--shadow-xs); }
.wlp-tab:hover:not(.active) { color: var(--text-primary); text-decoration: none; }

/* ─── Filter chips ──────────────────────────────────────────────── */
.wlp-filter-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.wlp-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 12px; font-weight: 600;
  cursor: pointer; color: var(--text-secondary);
  transition: all var(--t);
  background: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.wlp-chip:hover, .wlp-chip.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  text-decoration: none;
}

/* ─── Toggle switch ─────────────────────────────────────────────── */
.wlp-toggle { position: relative; display: inline-block; width: 36px; height: 20px; }
.wlp-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.wlp-toggle-slider {
  position: absolute; inset: 0;
  background: #CBD5E1;
  border-radius: 10px;
  transition: background var(--t);
  cursor: pointer;
}
.wlp-toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform var(--t);
}
.wlp-toggle input:checked + .wlp-toggle-slider { background: var(--primary); }
.wlp-toggle input:checked + .wlp-toggle-slider::after { transform: translateX(16px); }

/* ─── Flash messages ────────────────────────────────────────────── */
.wlp-flash {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: 13px; font-weight: 500;
  margin-bottom: 18px;
  border-left: 4px solid;
}
.wlp-flash.success { background: var(--green-bg); color: var(--green-text); border-color: var(--green); }
.wlp-flash.error   { background: var(--red-bg);   color: var(--red-text);   border-color: var(--red); }
.wlp-flash.info    { background: var(--blue-bg);  color: var(--blue-text);  border-color: var(--primary); }
.wlp-flash.warning { background: var(--yellow-bg);color: var(--yellow-text);border-color: var(--yellow); }
.wlp-flash-close { margin-left: auto; cursor: pointer; opacity: .6; }
.wlp-flash-close:hover { opacity: 1; }

/* ─── Empty state ───────────────────────────────────────────────── */
.wlp-empty {
  text-align: center;
  padding: 56px 32px;
}
.wlp-empty-icon {
  width: 60px; height: 60px;
  background: var(--bg);
  border-radius: var(--r-xl);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  color: var(--text-muted);
  border: 1.5px dashed var(--border);
}
.wlp-empty-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.wlp-empty-sub { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; max-width: 320px; margin-left: auto; margin-right: auto; }

/* ─── Pagination ────────────────────────────────────────────────── */
.wlp-pagination { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 20px 0 6px; }
.wlp-page-link {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  background: #fff;
  text-decoration: none;
  transition: all var(--t);
}
.wlp-page-link:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.wlp-page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.wlp-page-ellipsis { width: 34px; text-align: center; color: var(--text-muted); }

/* ─── Modal ─────────────────────────────────────────────────────── */
.wlp-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(3px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
}
.wlp-modal {
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  margin: 16px;
}
.wlp-modal-header {
  padding: 20px 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.wlp-modal-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.wlp-modal-close { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); transition: all var(--t); }
.wlp-modal-close:hover { background: var(--bg); color: var(--text-primary); }
.wlp-modal-body  { padding: 0 22px 20px; }
.wlp-modal-footer { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ─── Auth layout ───────────────────────────────────────────────── */
.wlp-auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 460px;
}
.wlp-auth-left {
  background: linear-gradient(145deg, #0A1628, #0D2047 50%, #0A3580);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 60px;
  position: relative; overflow: hidden;
}
.wlp-auth-left::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0,87,255,.22) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 20%, rgba(139,92,246,.14) 0%, transparent 50%);
}
.wlp-auth-left-content { position: relative; z-index: 1; max-width: 440px; width: 100%; }
.wlp-auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 48px; }
.wlp-auth-brand-icon { width: 36px; height: 36px; background: var(--primary); border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.wlp-auth-brand-name { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: #fff; }
.wlp-auth-headline { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: #fff; line-height: 1.22; margin-bottom: 14px; }
.wlp-auth-headline span { color: #60A5FA; }
.wlp-auth-sub { font-size: 14.5px; color: rgba(255,255,255,.55); line-height: 1.65; margin-bottom: 36px; }
.wlp-auth-feature { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px; }
.wlp-auth-feature-icon { width: 34px; height: 34px; background: rgba(255,255,255,.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wlp-auth-feature-text strong { display: block; font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 1px; }
.wlp-auth-feature-text span { font-size: 12px; color: rgba(255,255,255,.45); }

.wlp-auth-right {
  background: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: 52px 44px;
}
.wlp-auth-form { max-width: 360px; margin: 0 auto; width: 100%; }
.wlp-auth-form-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 5px; }
.wlp-auth-form-sub { font-size: 13px; color: var(--text-secondary); margin-bottom: 28px; }
.wlp-auth-submit {
  width: 100%; height: 44px;
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--r);
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 2px 6px rgba(0,87,255,.25);
  letter-spacing: .01em;
  margin-top: 4px;
}
.wlp-auth-submit:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,87,255,.35); }
.wlp-auth-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--text-muted); font-size: 12px; }
.wlp-auth-divider::before, .wlp-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.wlp-auth-link { text-align: center; font-size: 13px; color: var(--text-secondary); margin-top: 22px; }
.wlp-forgot { font-size: 12px; color: var(--primary); font-weight: 600; }

/* ─── Pricing ───────────────────────────────────────────────────── */
.wlp-pricing-toggle { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 32px; }
.wlp-pricing-toggle span { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.wlp-pricing-toggle span.active { color: var(--text-primary); }
.wlp-save-pill { background: var(--green-bg); color: var(--green-text); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.wlp-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 880px; margin: 0 auto; }
.wlp-plan-card {
  background: #fff; border: 2px solid var(--border);
  border-radius: var(--r-xl); padding: 26px;
  position: relative; transition: all var(--t);
}
.wlp-plan-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.wlp-plan-card.popular { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-md); transform: scale(1.03); }
.wlp-plan-card.popular:hover { transform: scale(1.03) translateY(-4px); }
.wlp-popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 20px; letter-spacing: .04em; white-space: nowrap; }
.wlp-plan-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.wlp-plan-desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 18px; line-height: 1.5; }
.wlp-plan-price { margin-bottom: 22px; }
.wlp-price-value { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--text-primary); }
.wlp-price-period { font-size: 13px; color: var(--text-secondary); }
.wlp-plan-features { list-style: none; margin-bottom: 24px; display: flex; flex-direction: column; gap: 9px; }
.wlp-plan-feature { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.wlp-plan-feature .ok { color: var(--green); flex-shrink: 0; }
.wlp-plan-feature .no { color: var(--text-muted); flex-shrink: 0; }
.wlp-plan-btn { width: 100%; height: 42px; border-radius: var(--r); font-family: var(--font-display); font-size: 13px; font-weight: 600; cursor: pointer; transition: all var(--t); border: 2px solid var(--border); background: #fff; color: var(--text-primary); }
.wlp-plan-btn:hover { background: var(--bg); }
.wlp-plan-btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.wlp-plan-btn.primary:hover { background: var(--primary-hover); }
.wlp-plan-btn:disabled { opacity: .5; cursor: default; }

/* ─── Misc ──────────────────────────────────────────────────────── */
.wlp-divider { border: none; border-top: 1px solid var(--border); margin: 18px 0; }
.wlp-text-danger { color: var(--red); }
.wlp-text-success { color: var(--green); }
.wlp-text-muted { color: var(--text-muted); }
.wlp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wlp-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.wlp-grid-main { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.wlp-flex { display: flex; align-items: center; }
.wlp-flex-between { display: flex; align-items: center; justify-content: space-between; }
.wlp-gap-2 { gap: 8px; }
.wlp-gap-3 { gap: 12px; }
.wlp-mt-4 { margin-top: 16px; }
.wlp-mb-4 { margin-bottom: 16px; }
.wlp-hidden { display: none !important; }

/* Timeline */
.wlp-timeline { padding: 2px 0; }
.wlp-timeline-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-light); }
.wlp-timeline-item:last-child { border-bottom: none; }
.wlp-timeline-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.wlp-timeline-dot.green  { background: var(--green); }
.wlp-timeline-dot.yellow { background: var(--yellow); }
.wlp-timeline-dot.red    { background: var(--red); }
.wlp-timeline-dot.blue   { background: var(--primary); }
.wlp-timeline-dot.gray   { background: var(--text-muted); }

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1200px) { .wlp-kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .wlp-auth-layout { grid-template-columns: 1fr; }
  .wlp-auth-left { display: none; }
  .wlp-auth-right { padding: 40px 24px; }
  .wlp-grid-main { grid-template-columns: 1fr; }
  .wlp-grid-2, .wlp-grid-3 { grid-template-columns: 1fr; }
  .wlp-pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .wlp-sidebar { transform: translateX(-100%); transition: transform var(--t); }
  .wlp-sidebar.open { transform: none; }
  .wlp-main { margin-left: 0; }
  .wlp-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .wlp-page { padding: 16px; }
  .wlp-topbar { padding: 0 16px; }
}
