/* ============================================================
   PRZEDSIĘBIORCZY KRĄG — Design System (v2 / landing-style)
   Mobile-first. Purple → Pink → Orange gradient.
   Spójne ze stylem przedsiebiorczykrag.pl (paleta, gradient, font Poppins).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ──
   Zachowane stare nazwy (--gold, --navy, --cream, --surface, --text-*)
   żeby inline-style w widokach dalej działały — ale wartości są nowe. */

:root {
  /* — Landing palette — */
  --accent-color:   #6146bf;     /* purple */
  --accent-2:       #e94f87;     /* pink */
  --accent-3:       #ff8a4c;     /* orange */
  --accent-deep:    #4a2f9e;
  --accent-light:   #8a5ed4;
  --accent-pale:    #f0ebff;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6146bf 0%, #8a5ed4 50%, #e94f87 100%);
  --gradient-soft:    linear-gradient(135deg, rgba(97,70,191,0.08), rgba(233,79,135,0.06));
  --gradient-dark:    linear-gradient(135deg, #1a1133 0%, #2a1f4d 50%, #3d2966 100%);

  /* Surfaces */
  --bg-main:    #ffffff;
  --bg-page:    #f4f2ee;   /* tło strony — neutralna jasna szarość (LinkedIn) */
  --bg-soft:    #f4f2fb;
  --surface:    #ffffff;
  --surface-alt:#f3f2ef;
  --white:      #ffffff;

  /* Text */
  --text-main:  #0f0a1f;
  --text-mid:   #5a5470;
  --text-soft:  #9a93b0;

  /* Borders */
  --border:     #ece8f5;
  --border-mid: #d8d0ea;

  /* Status */
  --success:    #2d7d6e;
  --success-bg: #e6f4f1;
  --error:      #c0392b;
  --error-bg:   #fdecea;
  --warning:    #c07c1a;
  --warning-bg: #fef3e0;
  --info:       #3d4fc0;
  --info-bg:    #eef2ff;

  /* Radii — bardziej "kanciaste", profesjonalne (LinkedIn) */
  --radius-sm:   6px;
  --radius:      8px;
  --radius-md:   8px;
  --radius-lg:   10px;
  --radius-pill: 999px;

  /* Shadows — subtelne, neutralne (mniej "glow") */
  --shadow-sm:   0 1px 2px rgba(15,10,31,0.06), 0 0 0 1px rgba(15,10,31,0.04);
  --shadow:      0 2px 10px rgba(15,10,31,0.10);
  --shadow-lg:   0 12px 36px rgba(15,10,31,0.16);
  --shadow-glow: 0 6px 20px rgba(97,70,191,0.28);

  /* Layout */
  --nav-h:        54px;
  --bottom-nav-h: 64px;
  --side-w:       240px;

  /* Typography */
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body:    'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --transition:   0.22s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-page);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── Top Navigation Bar (jasny, styl LinkedIn) ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15,10,31,0.04);
}

/* Zawartość headera wyśrodkowana w tym samym kontenerze co treść strony */
.topbar-inner {
  max-width: 1128px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition);
}
.topbar-brand:hover { opacity: 0.9; }

/* Logo — czysty obrazek bez tła i zaokrąglenia */
.topbar-logo {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.topbar-logo img { width: 100%; height: 100%; object-fit: contain; }

.topbar-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.02em;
  margin-right: auto;
  padding-left: 6px;
}

/* Prawa strona: avatar + wyloguj */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.topbar-profile {
  display: inline-flex;
  align-items: center;
  border-radius: 50%;
  transition: transform var(--transition);
}
.topbar-profile:hover { transform: translateY(-1px); }
.topbar-profile .nav-avatar {
  width: 32px; height: 32px;
  border: 1px solid var(--border-mid);
}
.topbar-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--text-soft);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.topbar-logout:hover { background: var(--bg-soft); color: var(--accent-color); }
.topbar-logout svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ── Lewy sidebar nawigacyjny (desktop) ── */
.side-nav {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  bottom: 0;
  width: var(--side-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 14px 12px;
  overflow-y: auto;
  z-index: 90;
  display: none; /* widoczny dopiero na desktopie */
}
.side-nav-inner { display: flex; flex-direction: column; gap: 1px; }
.side-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.side-link svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.side-link:hover { background: var(--bg-soft); color: var(--accent-color); }
.side-link.active {
  background: var(--accent-pale);
  color: var(--accent-deep);
  font-weight: 600;
}
.side-link.active svg { color: var(--accent-color); }
.side-divider { height: 1px; background: var(--border); margin: 10px 10px; }
.side-link-logout { color: var(--text-soft); margin-top: 2px; }
.side-link-logout:hover { color: var(--error); background: var(--error-bg); }

/* Desktop nav links inside topbar */
.topbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar-links .btn-link,
.topbar .btn-link {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color var(--transition), background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.topbar-links .btn-link:hover,
.topbar .btn-link:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}

.topbar-links .btn-link.active {
  color: #ffffff;
  background: rgba(255,255,255,0.15);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}

/* ── Nawigacja w pasku (ikona + label, styl LinkedIn na jasnym tle) ── */
.topbar-nav {
  display: flex;
  align-items: stretch;
  gap: 2px;
  margin-left: auto;
  height: 100%;
}
.nav-ico {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 60px;
  padding: 0;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  transition: color var(--transition);
}
.nav-ico svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.nav-ico:hover { color: var(--text-main); }
.nav-ico.active { color: var(--text-main); }
.nav-ico.active::after {
  content: "";
  position: absolute;
  bottom: 0; left: 8px; right: 8px;
  height: 2px;
  background: var(--accent-color);
  border-radius: 2px 2px 0 0;
}
.nav-ico-logout { color: var(--text-soft); }
.nav-ico-logout:hover { color: var(--error); }

/* "Więcej" dropdown w topbarze */
.nav-more { position: relative; cursor: pointer; }
.nav-more-panel {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 200px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px; display: none; z-index: 60;
}
.nav-more.open .nav-more-panel { display: block; }
.nav-more-panel a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text-main);
  font-size: 13px; font-weight: 500;
}
.nav-more-panel a:hover { background: var(--bg-soft); color: var(--accent-color); }
.nav-more-panel a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.nav-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-ico .nav-avatar { width: 24px; height: 24px; }

.topbar-sep { width: 1px; height: 28px; background: var(--border); margin: 0 6px; align-self: center; }

/* ── Dzwonek powiadomień ── */
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.notif-wrap { position: relative; }
.notif-bell {
  position: relative;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-mid); border-radius: 50%; margin: 0; padding: 0;
  transition: background var(--transition), color var(--transition);
}
.notif-bell:hover { background: var(--bg-soft); color: var(--accent-color); transform: none; box-shadow: none; }
.notif-bell svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notif-bell.has-unread { color: var(--accent-color); }
.notif-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--accent-2); color: #fff;
  border-radius: 999px; border: 2px solid #fff;
  font-size: 10px; font-weight: 700; line-height: 13px;
  display: flex; align-items: center; justify-content: center;
}
.notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 340px; max-width: calc(100vw - 24px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; display: none; z-index: 300;
}
.notif-panel.open { display: block; }
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 14px; color: var(--text-main);
}
.notif-head button {
  background: none; border: none; cursor: pointer; padding: 0; margin: 0;
  color: var(--accent-color); font-size: 12px; font-weight: 600; box-shadow: none;
}
.notif-head button:hover { text-decoration: underline; background: none; transform: none; box-shadow: none; }
.notif-list { max-height: 420px; overflow-y: auto; }
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--border);
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-soft); }
.notif-item.unread { background: var(--accent-pale); }
.notif-item.unread:hover { background: var(--accent-pale); }
.notif-av {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--gradient-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; overflow: hidden;
}
.notif-av img { width: 100%; height: 100%; object-fit: cover; }
.notif-txt { font-size: 13.5px; line-height: 1.45; color: var(--text-main); }
.notif-txt strong { font-weight: 600; }
.notif-time { display: block; font-size: 11.5px; color: var(--text-soft); margin-top: 2px; }
.notif-empty { padding: 28px 16px; text-align: center; color: var(--text-soft); font-size: 13px; }

/* Na węższych ekranach — same ikony, bez podpisów */
@media (min-width: 768px) and (max-width: 1100px) {
  .nav-ico span:not(.nav-avatar) { display: none; }
  .nav-ico { min-width: 46px; }
  .topbar-wordmark { display: none; }
}

/* Hamburger for mobile */
.topbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0;
  transition: background var(--transition);
}

.topbar-hamburger:hover { background: var(--bg-soft); }

.topbar-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-mid);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Bottom Navigation (Mobile) ── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0));
  background: rgba(15, 10, 31, 0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -8px 30px rgba(15,10,31,0.4);
}

.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: var(--bottom-nav-h);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: rgba(255,255,255,0.55);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 6px;
  border-radius: var(--radius);
  transition: color var(--transition), transform var(--transition);
  min-width: 48px;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav-item:hover { color: #ffffff; }

.bottom-nav-item.active {
  color: #ffffff;
}

.bottom-nav-item.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 0 14px rgba(233,79,135,0.6);
}

/* ── Mobile Drawer ── */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,10,31,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--gradient-dark);
  padding: 0;
  overflow-y: auto;
  box-shadow: -12px 0 50px rgba(0,0,0,0.5);
  animation: slideIn 0.25s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.mobile-drawer-header .brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-drawer-close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.mobile-drawer-close:hover { background: rgba(255,255,255,0.16); }

.mobile-drawer-nav {
  padding: 14px 12px;
}

.mobile-drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  text-decoration: none;
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.mobile-drawer-nav a svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

.mobile-drawer-nav a:hover,
.mobile-drawer-nav a.active {
  color: #ffffff;
  background: rgba(255,255,255,0.08);
  transform: translateX(2px);
}

.mobile-drawer-nav a.active {
  background: linear-gradient(90deg, rgba(97,70,191,0.35), rgba(233,79,135,0.18));
  box-shadow: inset 3px 0 0 var(--accent-2);
}

.mobile-drawer-nav .drawer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 10px 4px;
}

/* ── Layout Container ── */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 24px 16px 32px;
}

/* ── Page Header ── */
.page-header {
  margin-bottom: 20px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.page-header .subtitle {
  color: var(--text-soft);
  font-size: 14px;
  margin-top: 6px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 8px;
}

/* Akcent gradientowy na nagłówkach (opcjonalny) */
.h-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(97,70,191,0.18);
}

.card + .card,
.card ~ .card {
  margin-top: 14px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}

/* Cienki gradientowy pasek u góry karty */
.card-accent {
  position: relative;
  overflow: hidden;
  border-left: none;
}

.card-accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 0;
}

/* ── Stat Cards (dashboard) ── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.stat-card .stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-card .stat-sub {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 6px;
}

/* ── Welcome card ── */
.welcome-card {
  position: relative;
  overflow: hidden;
  background: var(--gradient-dark);
  border: none;
  color: #ffffff;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.welcome-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,79,135,0.30) 0%, rgba(233,79,135,0) 65%);
  pointer-events: none;
}

.welcome-card::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(97,70,191,0.35) 0%, rgba(97,70,191,0) 70%);
  pointer-events: none;
}

.welcome-card > * { position: relative; z-index: 1; }

.welcome-card h3 {
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.10em;
  margin-bottom: 4px;
}

.welcome-card .welcome-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: #ffffff;
  margin: 6px 0;
  letter-spacing: -0.01em;
}

.welcome-card .welcome-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.welcome-card .welcome-sub strong {
  color: #ffd5a8;
  font-weight: 600;
}

/* ── Forms ── */
label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 7px;
  margin-top: 16px;
}

label:first-child { margin-top: 0; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(97,70,191,0.12);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-soft);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236146bf' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* ── Buttons ── */
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition), border-color var(--transition), background-position 0.4s ease, color var(--transition);
  background: var(--gradient-primary);
  background-size: 200% 200%;
  background-position: 0% 0%;
  color: #ffffff;
  border: 1px solid transparent;   /* delikatny border, bez cieni */
  box-shadow: none;
  margin-top: 14px;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

button:hover,
.btn:hover {
  background-position: 100% 0;
  border-color: rgba(255,255,255,0.55);
  color: #ffffff;
  box-shadow: none;
}

button:active,
.btn:active {
  background-position: 100% 0;
  box-shadow: none;
}

button:disabled,
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--accent-color);
  border: 1px solid var(--border-mid);
  box-shadow: none;
  margin-top: 14px;
}

.btn-secondary:hover {
  background: var(--bg-soft);
  color: var(--accent-deep);
  border-color: var(--accent-color);
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--accent-color);
  border: 1px solid transparent;
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--accent-pale);
  color: var(--accent-deep);
  border-color: rgba(97,70,191,0.25);
  box-shadow: none;
}

.btn-danger {
  background: var(--surface);
  color: var(--error);
  border: 1px solid #f0c4bf;
  box-shadow: none;
}

.btn-danger:hover {
  background: var(--error-bg);
  color: var(--error);
  border-color: var(--error);
  box-shadow: none;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
  margin-top: 0;
  box-shadow: none;
}

.btn-full {
  width: 100%;
  margin-top: 20px;
  padding: 13px 24px;
  font-size: 15px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  margin-top: 0;
}

/* ── Alert / Notification ── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin: 14px 0;
  background: var(--error-bg);
  border: 1px solid #f5c6c1;
  color: var(--error);
}

.alert-success {
  background: var(--success-bg);
  border-color: #b5ddd8;
  color: var(--success);
}

.alert-warning {
  background: var(--warning-bg);
  border-color: #f4d89a;
  color: var(--warning);
}

.alert-info {
  background: var(--info-bg);
  border-color: #c3cffb;
  color: var(--info);
}

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -22px;
  padding: 0 22px;
}

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

thead th {
  text-align: left;
  padding: 11px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-soft);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

tbody tr:last-child { border-bottom: none; }

tbody tr:hover {
  background: var(--bg-soft);
}

tbody td {
  padding: 13px 12px;
  color: var(--text-main);
  vertical-align: middle;
}

/* ── Pills / Badges ── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--surface-alt);
  color: var(--text-mid);
  border: 1px solid var(--border);
}

.pill-gold,
.pill-accent {
  background: var(--accent-pale);
  color: var(--accent-deep);
  border-color: rgba(97,70,191,0.25);
}

.pill-gradient {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(97,70,191,0.25);
}

.pill-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: #b5ddd8;
}

.pill-danger {
  background: var(--error-bg);
  color: var(--error);
  border-color: #f5c6c1;
}

.pill-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: #f4d89a;
}

/* Kicker — mała etykieta gradientowa, jak na landingu */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 8px;
  background: var(--gradient-primary);
  border-radius: var(--radius-pill);
  color: #ffffff;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  box-shadow: 0 6px 18px rgba(97,70,191,0.30);
}

.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
}

/* ── Member / Company list items ── */
.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  margin: 0 -12px;
  border-radius: var(--radius);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition), transform var(--transition);
}

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

.list-item:hover {
  background: var(--bg-soft);
  transform: translateX(2px);
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(97,70,191,0.30);
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.list-item-body { flex: 1; min-width: 0; }

.list-item-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item-sub {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Meeting / event card variant ── */
.event-card {
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 3px;
  background: var(--gradient-primary);
  border-radius: 0 3px 3px 0;
}

.event-date {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 56px;
  background: var(--accent-pale);
  border: 1px solid rgba(97,70,191,0.22);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.event-date .day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--accent-deep);
  line-height: 1;
}

.event-date .mon {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-top: 2px;
}

/* ── Search bar ── */
.search-bar {
  position: relative;
}

.search-bar input {
  padding-left: 42px;
}

.search-bar::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236146bf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Login page special layout ── */
.login-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--gradient-dark);
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(97,70,191,0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(233,79,135,0.30) 0%, transparent 55%),
    linear-gradient(135deg, #0f0a1f 0%, #1a1133 50%, #2a1f4d 100%);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(97,70,191,0.18) 0%, rgba(97,70,191,0) 60%);
  pointer-events: none;
}

.login-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

.login-logo {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo .circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-glow);
  color: #ffffff;
}

.login-logo h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.login-logo p {
  font-size: 13px;
  color: var(--text-soft);
}

/* ── Grid helpers ── */
.grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.grid > * {
  flex: 1;
  min-width: 180px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ml-auto { margin-left: auto; }

/* ── Misc helpers ── */
.hint {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 8px;
}

.text-gold,
.text-accent { color: var(--accent-color); }
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-soft { color: var(--text-soft); }
.text-mid  { color: var(--text-mid); }

.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }

/* ── Wzmianki @osoba w treści ── */
.mention {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  background: var(--accent-pale);
  padding: 0 4px;
  border-radius: 4px;
}
.mention:hover { text-decoration: underline; }
.mention-all {
  background: var(--gradient-primary);
  color: #fff;
}
.mention-all:hover { text-decoration: none; }

/* ── Ikony SVG (pk_icon / pkIcon) ── */
.ico {
  width: 18px; height: 18px;
  display: inline-block;
  vertical-align: -0.18em;
  flex-shrink: 0;
  stroke: currentColor;
}
.ico-sm { width: 14px; height: 14px; vertical-align: -0.12em; }
.ico-lg { width: 28px; height: 28px; vertical-align: middle; }
/* W kontekstach flex (np. .btn) wyrównanie pionowe nie jest potrzebne */
.btn .ico, button .ico, .flex .ico, .flex-between .ico { vertical-align: middle; }

/* ── Spinner ── */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(97,70,191,0.20);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-soft);
}

.empty-state svg {
  width: 44px;
  height: 44px;
  opacity: 0.35;
  margin-bottom: 14px;
  color: var(--accent-color);
}

.empty-state p {
  font-size: 14px;
}

/* ── Section heading ── */
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.section-heading::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-primary);
}

.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
}

/* ── Responsive ── */

/* Bazowo: container wyśrodkowany (jak na LinkedIn) */
.container {
  max-width: 1128px;
  margin: 0 auto;
}

/* Mobile (<= 640px) */
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .login-box { padding: 30px 22px; }
  h1 { font-size: 22px; }
  h2 { font-size: 18px; }
  table { font-size: 13px; }
  thead th { padding: 9px 8px; }
  tbody td  { padding: 11px 8px; }
  .table-wrap { margin: 0 -18px; padding: 0 18px; }
}

/* Mobile/tablet (< 768px): nawigacja schowana → hamburger + bottom-nav */
@media (max-width: 767px) {
  .topbar-nav { display: none; }
  .topbar-hamburger { display: flex; }
  .bottom-nav { display: block; }
  .topbar-wordmark { display: none; }
  .container {
    padding-top: 18px;
    padding-bottom: calc(var(--bottom-nav-h) + 24px);
  }
}

/* Desktop/tablet (>= 768px): nawigacja w pasku, bez hamburgera/bottom-nav */
@media (min-width: 768px) {
  .topbar-hamburger { display: none !important; }
  .mobile-drawer    { display: none !important; }
  .bottom-nav       { display: none !important; }
  .container {
    padding-top: 24px;
    padding-bottom: 48px;
  }
}

/* ── Print ── */
@media print {
  .topbar, .bottom-nav, .mobile-drawer { display: none; }
  .container { max-width: 100%; padding: 0; }
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
  body { background: #ffffff; }
  .welcome-card,
  .welcome-card::before,
  .welcome-card::after { background: #ffffff !important; color: #000 !important; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
