/* === Gate (site password page) === */
.gate-body {
  background: #f5f5f7;
  min-height: 100vh;
}
.gate-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}
.gate-card {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px 40px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.gate-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}
.gate-desc {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 28px;
}
.gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gate-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
.gate-input:focus {
  border-color: #2563eb;
}
.gate-error {
  font-size: 0.82rem;
  color: #dc2626;
  margin: -4px 0 0;
}
.gate-submit {
  padding: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.gate-submit:hover {
  background: #1d4ed8;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* === Nav === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.logo-position { color: #111; }
.logo-os { color: #2563eb; }
.logo-product { font-weight: 400; color: #111; }
.nav-links { display: flex; align-items: center; gap: 14px; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  transition: color 0.15s;
}
.nav-links a:hover { color: #111; }
.nav-cta {
  background: #111 !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: #333 !important; }

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-dropdown-toggle::after {
  content: '';
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.5;
  transition: transform 0.15s;
}
.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  padding: 6px 0;
  z-index: 300;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
  transition: background 0.12s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: #f3f4f6;
  color: #111;
}
.nav-dropdown-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 4px 0;
}
.nav-dropdown-all {
  color: #2563eb !important;
  font-weight: 600 !important;
}

/* Mobile hamburger for public nav */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #555;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger:hover { background: #f3f4f6; color: #111; }
.nav-hamburger:active { background: #e5e7eb; }

@media (max-width: 768px) {
  .nav:not(.dash-nav) .nav-hamburger {
    display: flex;
  }
  .nav:not(.dash-nav) > .nav-right,
  .nav:not(.dash-nav) > .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 12px;
    right: 12px;
    background: #fff;
    flex-direction: column;
    padding: 8px 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    z-index: 99;
    gap: 0;
    animation: mobileMenuIn 0.18s ease-out;
  }
  @keyframes mobileMenuIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .nav:not(.dash-nav) > .nav-right.mobile-open,
  .nav:not(.dash-nav) > .nav-links.mobile-open {
    display: flex;
  }
  .nav:not(.dash-nav) > .nav-right > *,
  .nav:not(.dash-nav) > .nav-links > * {
    padding: 14px 20px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #374151;
    transition: background 0.12s, color 0.12s;
    border-radius: 0;
  }
  .nav:not(.dash-nav) > .nav-right > *:first-child,
  .nav:not(.dash-nav) > .nav-links > *:first-child {
    border-radius: 12px 12px 0 0;
  }
  .nav:not(.dash-nav) > .nav-right > *:last-child,
  .nav:not(.dash-nav) > .nav-links > *:last-child {
    border-radius: 0 0 12px 12px;
  }
  .nav:not(.dash-nav) > .nav-right > *:hover,
  .nav:not(.dash-nav) > .nav-links > *:hover {
    background: #f9fafb;
    color: #111;
  }
  .nav:not(.dash-nav) .nav-dropdown-menu {
    display: none !important;
  }
  .nav:not(.dash-nav) .nav-dropdown-toggle::after {
    display: none;
  }
  .nav:not(.dash-nav) .nav-cta {
    margin: 6px 12px 8px;
    text-align: center;
    display: block;
    border-radius: 8px !important;
    padding: 12px 20px;
  }
}

.nav-user {
  font-size: 0.85rem;
  color: #888;
  font-weight: 500;
}

/* Nav bell */
.nav-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background 0.15s;
  color: #555;
}
.nav-bell:hover { background: #f3f4f6; color: #111; }
.nav-bell-dot {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Nav avatar */
.nav-profile-wrap { position: relative; }
.nav-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: box-shadow 0.15s;
}
.nav-avatar:hover { box-shadow: 0 0 0 2px #2563eb; }
.nav-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nav-avatar-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

/* Profile dropdown menu */
.nav-profile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  padding: 6px 0;
  z-index: 200;
}
.nav-profile-menu.open { display: block; }
.nav-profile-name {
  padding: 10px 16px 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #111;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 4px;
}
.nav-profile-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
  transition: background 0.12s;
}
.nav-profile-item:hover { background: #f3f4f6; }
.nav-profile-logout { color: #dc2626; }
.nav-profile-logout:hover { background: #fef2f2; }

/* === Hero === */
.hero-wrap {
  background: url('/static/hero-bg.png') center center / cover no-repeat;
  position: relative;
}
.hero-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.hero {
  text-align: center;
  padding: 100px 24px 72px;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero .subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.65;
  max-width: 780px;
  margin: 0 auto 36px;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}
.hero-btn-primary {
  background: #2563eb;
  color: #fff;
}
.hero-btn-primary:hover { background: #1d4ed8; }
.hero-btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.hero-btn-secondary:hover { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.6); }
.trust {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 28px;
  letter-spacing: 0.2px;
}

/* === Section commons === */
.section-block {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section-block h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.8px;
  text-align: center;
  margin-bottom: 12px;
}
.section-block .section-sub {
  text-align: center;
  font-size: 1.05rem;
  color: #666;
  margin-bottom: 48px;
}
.section-alt { background: #fafafa; }

/* === Steps (How it works) === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-card { padding: 8px; }
.step-num {
  font-size: 2rem;
  font-weight: 800;
  color: #ddd;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
}

/* === Problem cards === */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.problem-card {
  padding: 28px;
}
.problem-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #111;
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.problem-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}
.problem-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* === Feature cards === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 28px;
  transition: box-shadow 0.2s;
}
.feature-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.feature-icon {
  margin-bottom: 18px;
  line-height: 0;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
}
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.feature-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.tag-green { background: #ecfdf5; color: #065f46; }
.tag-blue { background: #eff6ff; color: #1e40af; }
.tag-amber { background: #fffbeb; color: #92400e; }
.tag-purple { background: #f5f3ff; color: #5b21b6; }
.tag-cyan { background: #ecfeff; color: #155e75; }

/* === FAQ === */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fff;
  transition: box-shadow 0.2s;
}
.faq-item[open] {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.faq-question {
  padding: 18px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: #999;
  transition: transform 0.2s;
}
.faq-item[open] .faq-question::after {
  content: '-';
}
.faq-answer {
  padding: 0 24px 18px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

/* === Blog cards === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 28px;
  transition: box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-color: #ddd;
}
.blog-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
  align-self: flex-start;
}
.blog-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
  flex: 1;
}
.blog-meta {
  font-size: 0.78rem;
  color: #aaa;
  margin-top: 16px;
}

/* === Blog article page === */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.blog-article-header {
  margin-bottom: 36px;
}
.blog-article-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.blog-article-meta {
  font-size: 0.85rem;
  color: #999;
}
.blog-article-hero {
  margin-bottom: 40px;
  border-radius: 14px;
  overflow: hidden;
  background: #f0f5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.blog-article-body {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #333;
}
.blog-article-body h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.5px;
  margin: 40px 0 16px;
}
.blog-article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin: 28px 0 10px;
}
.blog-article-body p {
  margin-bottom: 18px;
}
.blog-article-body ul,
.blog-article-body ol {
  margin: 0 0 18px 20px;
}
.blog-article-body li {
  margin-bottom: 8px;
}
.blog-article-body strong {
  color: #111;
}
.blog-tip-box {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #1e3a5f;
}
.blog-tip-box strong {
  color: #1e40af;
}
.blog-warn-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #78350f;
}
.blog-mistake-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
}
.blog-mistake-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #111;
  color: #fff;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.blog-mistake-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.blog-mistake-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}
.blog-mistake-fix {
  margin-top: 10px;
  padding: 10px 14px;
  background: #f0fdf4;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #166534;
}
.blog-cta-box {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 40px 32px;
  text-align: center;
  margin-top: 48px;
}
.blog-cta-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 8px;
}
.blog-cta-box p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 24px;
}
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #2563eb;
  margin-bottom: 24px;
}
.blog-back:hover { text-decoration: underline; }
.blog-inline-img {
  margin: 28px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  border: 1px solid #eee;
}

@media (max-width: 768px) {
  .blog-article-header h1 { font-size: 1.6rem; }
  .blog-article { padding: 32px 16px 60px; }
  .blog-article-hero { padding: 28px 16px; }
  .blog-inline-img { padding: 20px 12px; }
  .cross-duo,
  .cross-trio {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* === Cross-link (testvértermék) === */
.cross-section {
  padding: 40px 32px;
  background: #f5f5f7;
}
.cross-inner {
  max-width: 900px;
  margin: 0 auto;
}
.cross-duo,
.cross-trio {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.cross-card {
  padding: 28px 20px;
  border-radius: 14px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cross-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.cross-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.cross-card-cv .cross-card-badge {
  background: #dbeafe;
  color: #1e40af;
}
.cross-card-interview .cross-card-badge {
  background: #ffedd5;
  color: #9a3412;
}
.cross-card-test .cross-card-badge {
  background: #fee2e2;
  color: #991b1b;
}
.cross-card-coach .cross-card-badge {
  background: #d1fae5;
  color: #065f46;
}
.cross-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 8px;
}
.cross-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}
.cross-card-action {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563eb;
  margin-top: auto;
}
.cross-card-interview:hover .cross-card-action {
  color: #1d4ed8;
}
.cross-card-current {
  border-color: #2563eb;
  border-width: 2px;
  cursor: default;
}
.cross-card-current:hover {
  box-shadow: none;
  border-color: #2563eb;
}
.cross-card-current-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2563eb;
  margin-top: auto;
}
.cross-connector {
  display: none;
}

/* === CTA === */
.cta-block {
  text-align: center;
  padding: 80px 24px;
  background: #fafafa;
}
.cta-block h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}
.cta-block p {
  font-size: 1.05rem;
  color: #666;
  margin-bottom: 32px;
}
.cta-block .hero-buttons {
  justify-content: center;
}
.cta-block .hero-btn-secondary {
  background: #fff;
  color: #111;
  border: 1.5px solid #d1d5db;
}
.cta-block .hero-btn-secondary:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}
.cta-btn {
  display: inline-flex;
  padding: 14px 32px;
  background: #111;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.cta-btn:hover { background: #333; }

/* === Template picker (inside form) === */
.template-hint {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 14px;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.template-card {
  display: block;
  background: #fafafa;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  padding: 8px 8px 10px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  text-align: center;
}
.template-card:hover {
  border-color: #bbb;
  background: #f5f5f5;
}
.template-card.selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
}
.template-radio {
  display: none;
}
.template-preview {
  margin-bottom: 6px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}
.template-preview-img {
  display: block;
  width: 100%;
  height: auto;
}
.template-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}
.template-card.selected .template-name {
  color: #2563eb;
}

/* === Upload form (replaces hero for logged-in / direct use) === */
.form-section {
  max-width: 800px;
}
.form-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.form-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}
/* File picker (reuse uploads) */
.file-pick { margin-bottom: 8px; }
.file-pick-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 4px;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.9rem;
  transition: border-color 0.15s, background 0.15s;
}
.file-pick-option:hover { border-color: #2563eb; background: #f0f5ff; }
.file-pick-auto { cursor: default; background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.file-pick-auto:hover { border-color: #bbf7d0; background: #f0fdf4; }
.file-pick-option input[type="radio"],
.file-pick-option input[type="checkbox"] { accent-color: #2563eb; }
.file-pick-meta { color: #999; font-size: 0.78rem; margin-left: 4px; }
.file-pick-hint { font-size: 0.82rem; color: #999; margin-bottom: 6px; }

.form-group { margin-bottom: 18px; }
.form-group:last-child { margin-bottom: 0; }
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #374151;
}
label .optional {
  font-weight: 400;
  color: #aaa;
  font-size: 0.82rem;
  margin-left: 4px;
}
input[type="url"], input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #111;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  box-sizing: border-box;
}
input[type="url"]:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #111;
  background: #fff;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px dashed #d1d5db;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #666;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.15s;
}
input[type="file"]:hover { border-color: #2563eb; }

.submit-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #111;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 8px;
}
.submit-btn:hover { background: #333; }

.btn-credit-cost {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.hero-btn .btn-credit-cost {
  background: rgba(0,0,0,0.1);
  font-size: 0.78rem;
}

.cr-star {
  color: #f59e0b;
}

.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.dash-limit-info {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* === Results page === */
.results-wrap {
}
.results-top {
  margin-bottom: 28px;
}
.results-top h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.results-meta {
  font-size: 0.88rem;
  color: #888;
}
.results-wrap {
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #2563eb;
  margin-bottom: 24px;
}
.back-link:hover { text-decoration: underline; }

.result-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.cv-header {
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #eee;
}
.cv-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 6px;
}
.cv-contact { font-size: 0.88rem; color: #888; }
.cv-header-photo {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}
.cv-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eee;
  flex-shrink: 0;
}

.r-section { margin-bottom: 24px; }
.r-section:last-child { margin-bottom: 0; }
.r-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
}
.r-body { font-size: 0.93rem; line-height: 1.7; color: #444; }
.r-body ul { padding-left: 18px; margin: 6px 0; }
.r-body li { margin-bottom: 4px; }
.r-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  margin: 18px 0 2px;
}
.r-body h3:first-child { margin-top: 0; }
.date-loc { font-size: 0.82rem; color: #999; margin: 0 0 6px; }

.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.comp-item { font-size: 0.9rem; color: #444; padding: 5px 0; display: flex; align-items: center; gap: 8px; }
.comp-dot { width: 6px; height: 6px; border-radius: 50%; background: #2563eb; flex-shrink: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: #f4f4f5;
  color: #374151;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
}

.cl-text { font-size: 0.93rem; line-height: 1.8; color: #444; }

/* Downloads */
.dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: #111;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.15s;
}
.dl-btn:hover { background: #333; }
.dl-txt {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  color: #2563eb;
  font-weight: 500;
  padding: 8px;
}
.dl-txt:hover { text-decoration: underline; }

/* === Footer === */
.footer {
  background: #111;
  color: #888;
  padding: 48px 32px 32px;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-brand {
  max-width: 280px;
}
.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand-name .logo-position { color: #fff; }
.footer-brand-name .logo-os { color: #2563eb; }
.footer-brand-name .logo-product { font-weight: 400; color: #fff; }
.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #666;
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 8px;
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 900px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #555;
}
.footer-status { display: flex; align-items: center; gap: 6px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }

/* === Auth pages === */
.auth-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 64px - 80px);
  padding: 40px 24px;
  background: #fafafa;
}
.auth-container {
  width: 100%;
  max-width: 420px;
}
.auth-header {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.8px;
}
.auth-logo .logo-os { color: #2563eb; }
.auth-slogan {
  font-size: 0.95rem;
  color: #888;
  margin-top: 6px;
  letter-spacing: -0.2px;
}
.auth-card {
  width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.auth-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.auth-subtitle {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 24px;
}
.auth-card .form-group { margin-bottom: 16px; }
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"].pw-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #111;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-card input[type="email"]:focus,
.auth-card input[type="password"]:focus,
.auth-card input[type="text"].pw-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}
.pw-wrap {
  position: relative;
}
.pw-wrap input {
  padding-right: 44px;
}
.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #888;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
}
.pw-toggle:hover {
  color: #333;
}
.auth-card .submit-btn { margin-top: 8px; }
.auth-link {
  text-align: center;
  margin-top: 20px;
  font-size: 0.88rem;
  color: #888;
}
.auth-link a {
  color: #2563eb;
  font-weight: 600;
}
.auth-link a:hover { text-decoration: underline; }

/* Google OAuth */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: #aaa;
  font-size: 0.82rem;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}
.auth-divider span {
  padding: 0 12px;
}
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.google-btn:hover {
  background: #f5f5f5;
  border-color: #bbb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.auth-footer-note {
  text-align: center;
  font-size: 0.78rem;
  color: #aaa;
  margin-top: 16px;
  line-height: 1.5;
}

/* Password rules */
.pw-rules {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pw-rules li {
  font-size: 0.8rem;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.pw-rules .pw-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ddd;
  flex-shrink: 0;
  transition: background 0.15s;
}
.pw-rules li.pass { color: #16a34a; }
.pw-rules li.pass .pw-dot { background: #22c55e; }
.pw-rules li.fail { color: #ef4444; }
.pw-rules li.fail .pw-dot { background: #ef4444; }

/* === Loading overlay === */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.loading-card {
  text-align: center;
  max-width: 360px;
  padding: 48px 32px;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #eee;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}
.loading-sub {
  font-size: 0.88rem;
  color: #888;
  line-height: 1.5;
}
.loading-warn {
  font-size: 0.85rem;
  font-weight: 700;
  color: #dc2626;
  margin-top: 12px;
}

/* === Dashboard layout === */
.dash-body {
  background: #f5f5f7;
}
.dash-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}
.dash-layout {
  display: flex;
  padding-top: 64px;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background: #fff;
  border-right: 1px solid #eee;
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}
.sidebar-nav {
  flex: 1;
  padding: 16px 0;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #666;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.sidebar-item:hover { color: #111; background: #f9f9f9; }
.sidebar-item.active {
  color: #2563eb;
  background: #eff6ff;
  border-left-color: #2563eb;
  font-weight: 600;
}
.sidebar-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-icon svg {
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Per-icon accent colors */
.icon-uploads svg { stroke: #3b82f6; }
.icon-manual svg { stroke: #8b5cf6; }
.icon-suggestions svg { stroke: #f59e0b; }
.icon-generate svg { stroke: #10b981; }
.icon-applications svg { stroke: #6366f1; }
.icon-promo svg { stroke: #0ea5e9; }
.icon-photo svg { stroke: #ec4899; }
.icon-credits svg { stroke: #eab308; }
.icon-profile svg { stroke: #6b7280; }
/* Active state: slightly darker */
.sidebar-item.active .icon-uploads svg { stroke: #2563eb; }
.sidebar-item.active .icon-manual svg { stroke: #7c3aed; }
.sidebar-item.active .icon-suggestions svg { stroke: #d97706; }
.sidebar-item.active .icon-generate svg { stroke: #059669; }
.sidebar-item.active .icon-applications svg { stroke: #4f46e5; }
.sidebar-item.active .icon-promo svg { stroke: #0284c7; }
.sidebar-item.active .icon-photo svg { stroke: #db2777; }
.sidebar-item.active .icon-credits svg { stroke: #ca8a04; }
.sidebar-item.active .icon-profile svg { stroke: #4b5563; }
.sidebar-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 8px 20px;
}
.sidebar-badge-new {
  display: inline-block;
  padding: 1px 6px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background: #f59e0b;
  border-radius: 4px;
  line-height: 1.4;
  flex-shrink: 0;
}

/* Main content */
.dash-main {
  margin-left: 220px;
  flex: 1;
  padding: 32px 40px 60px;
  min-height: calc(100vh - 64px);
  overflow-x: hidden;
  min-width: 0;
}
.dash-header {
  margin-bottom: 32px;
}
.dash-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.dash-subtitle {
  font-size: 0.9rem;
  color: #888;
}

/* Content constraint */
.dash-content { max-width: 800px; margin: 0 auto; }

/* Empty state */
.dash-empty {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
}
.dash-empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.dash-empty-title { font-size: 1.1rem; font-weight: 700; color: #111; margin-bottom: 6px; }
.dash-empty-sub { font-size: 0.88rem; color: #888; }

/* Jelentkezések table */
.dash-table-wrap {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}
.dash-table {
  width: 100%;
  border-collapse: collapse;
}
.dash-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}
.dash-table td {
  padding: 14px 16px;
  font-size: 0.88rem;
  color: #444;
  border-bottom: 1px solid #f5f5f5;
}
.dash-table tr:last-child td { border-bottom: none; }
.td-title { font-weight: 600; color: #111; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-date { color: #888; font-size: 0.82rem; }
.td-downloads { display: flex; gap: 6px; flex-wrap: wrap; }
.dl-mini {
  display: inline-block;
  padding: 3px 8px;
  background: #f4f4f5;
  color: #374151;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.15s;
}
.dl-mini:hover { background: #e5e7eb; }
.lang-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
}
.dash-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563eb;
}
.dash-link:hover { text-decoration: underline; }

/* Jelentkezések kártyák */
.runs-wrap { }
.run-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.run-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.run-info { flex: 1; min-width: 0; }
.run-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.run-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.run-date { font-size: 0.82rem; color: #888; }
a.btn-job-url {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #2563eb !important;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
a.btn-job-url:hover { background: #dbeafe; border-color: #93c5fd; }
.run-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.run-card-bottom {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}

.td-actions { display: flex; gap: 6px; align-items: center; }
.btn-view {
  display: inline-block;
  padding: 6px 14px;
  background: #2563eb;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.btn-view:hover { background: #1d4ed8; }
.btn-delete {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #fca5a5;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-delete:hover { background: #fef2f2; border-color: #dc2626; }

/* Feltöltések grid */
/* Upload card grid */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 16px;
}
.upload-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  word-break: break-word;
}

/* Card header: icon + filename + meta */
.uc-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.uc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.uc-icon-photo {
  overflow: hidden;
  background: none;
}
.uc-icon-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.uc-header-info {
  flex: 1;
  min-width: 0;
}
.uc-filename {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uc-filemeta {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 2px;
}

/* Stat badges */
.uc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.uc-stat {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #374151;
  background: #f3f4f6;
  border-radius: 20px;
}

/* Summary text */
.uc-summary {
  font-size: 0.84rem;
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.uc-summary-pending {
  color: #9ca3af;
  font-style: italic;
}

/* Action buttons */
.uc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid #f3f4f6;
}
.uc-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  box-sizing: border-box;
}
.uc-btn:hover { background: #f9fafb; border-color: #d1d5db; }
.uc-delete-form { flex-shrink: 0; }
.uc-btn-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  color: #d1d5db;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  box-sizing: border-box;
}
.uc-btn-delete:hover { color: #ef4444; border-color: #fca5a5; background: #fef2f2; }

/* Upload forms (legacy, kept for compatibility) */
.upload-form-hint {
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 6px;
}

/* Profil */
.profil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.profil-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.profil-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}
.profil-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}
.profil-row:last-of-type { border-bottom: none; }
.profil-label { font-size: 0.88rem; color: #888; }
.profil-value { font-size: 0.88rem; font-weight: 600; color: #111; }
.profil-card input[type="password"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}
/* Danger zone */
.danger-zone {
  margin-top: 24px;
  border: 1px solid #fca5a5;
  border-radius: 12px;
  padding: 28px;
  background: #fff;
}
.danger-zone-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #dc2626;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}
.danger-zone-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 16px;
}
.danger-zone-expand summary {
  list-style: none;
}
.danger-zone-expand summary::-webkit-details-marker { display: none; }
.btn-danger-trigger {
  display: inline-block;
  padding: 8px 18px;
  background: #fff;
  color: #dc2626;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-danger-trigger:hover {
  background: #fef2f2;
  border-color: #dc2626;
}
.danger-zone-confirm {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #fee2e2;
}
.danger-zone-warn {
  font-size: 0.85rem;
  color: #991b1b;
  line-height: 1.6;
  margin-bottom: 16px;
  background: #fef2f2;
  padding: 12px 16px;
  border-radius: 8px;
}
.btn-danger-confirm {
  display: inline-block;
  padding: 10px 20px;
  background: #dc2626;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 8px;
}
.btn-danger-confirm:hover {
  background: #b91c1c;
}

.success-msg {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* === Manual profile blocks === */
.manual-block {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 12px;
  background: #fafafa;
}
.manual-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
}
.add-block-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  color: #2563eb;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.add-block-btn:hover {
  background: #eff6ff;
  border-color: #2563eb;
}
.remove-block-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #fff;
  color: #dc2626;
  font-size: 1.1rem;
  font-weight: 700;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1;
}
.remove-block-btn:hover {
  background: #fef2f2;
  border-color: #dc2626;
}
.manual-block select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #111;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.manual-block select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

/* === Promo page === */
.promo-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}
.promo-result {
  margin-top: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.promo-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}
.promo-result-text {
  padding: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #444;
  white-space: pre-wrap;
}
.promo-copy-btn {
  display: inline-block;
  padding: 5px 14px;
  background: #111;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.promo-copy-btn:hover { background: #333; }
.promo-suggestion-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 12px;
}
.promo-suggestion-card.top-match {
  border: 2px solid #2563eb;
  background: linear-gradient(135deg, #eff6ff 0%, #fff 60%);
  position: relative;
}
.promo-suggestion-card.top-match::before {
  content: "Legrelevánsabb";
  position: absolute;
  top: -10px;
  left: 16px;
  background: #2563eb;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  letter-spacing: 0.02em;
}
.promo-suggestion-card.top-match .promo-match {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
}
.promo-suggestion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.promo-suggestion-header strong {
  font-size: 0.95rem;
  color: #111;
}
.promo-match {
  display: inline-block;
  padding: 2px 10px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 20px;
}
.promo-suggestion-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}
.salary-info {
  margin-top: 12px;
  padding: 12px 14px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}
.salary-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}
.salary-label {
  font-size: 0.82rem;
  color: #555;
  font-weight: 500;
}
.salary-amount {
  font-size: 0.88rem;
  color: #111;
  font-weight: 600;
}
.salary-meta {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #e5e7eb;
  font-size: 0.72rem;
  color: #999;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .salary-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

/* === Salary source badges & multi-source layout === */
.salary-sources {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.salary-sources .salary-info {
  margin-top: 0;
  position: relative;
}
.salary-source-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.salary-source-badge.hays {
  background: #dbeafe;
  color: #1e40af;
}
.salary-source-badge.ksh {
  background: #f0fdf4;
  color: #166534;
}
.salary-hays {
  border-color: #bfdbfe;
}
.salary-ksh {
  border-color: #bbf7d0;
}

/* === Job search links on suggestion cards === */
.job-search-links {
  margin-top: 12px;
}
.job-search-toggle {
  background: none;
  border: 1px solid #2563eb;
  color: #2563eb;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
}
.job-search-toggle:hover { background: #eff6ff; }
.job-search-portals {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.job-search-links.open .job-search-portals { display: flex; }
.job-search-portals a {
  display: inline-block;
  padding: 5px 12px;
  background: #f3f4f6;
  border-radius: 20px;
  font-size: 0.78rem;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid #e5e7eb;
}
.job-search-portals a:hover { background: #eff6ff; border-color: #2563eb; }

/* === Jooble inline job results === */
.job-results {
  margin-top: 10px;
}
.job-results-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.job-result-item {
  display: block;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.job-result-item:hover {
  border-color: #2563eb;
  background: #f8faff;
}
.job-result-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2563eb;
  line-height: 1.3;
}
.job-result-meta {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 2px;
}
.job-result-salary {
  font-size: 0.78rem;
  color: #059669;
  margin-top: 2px;
  font-weight: 500;
}
.job-result-source {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  color: #6b7280;
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 8px;
  vertical-align: middle;
  margin-left: 4px;
}
.job-results-empty {
  font-size: 0.82rem;
  color: #6b7280;
  padding: 8px 0;
}

/* "Keresés más portálokon" collapsible section */
.job-search-more {
  display: block;
  margin-top: 10px;
}
.job-search-more-toggle {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.job-search-more-toggle:hover {
  color: #2563eb;
}
.job-search-more .job-search-portals {
  display: none;
  margin-top: 6px;
}
.job-search-more.open .job-search-portals {
  display: flex;
}

.promo-preview {
  margin-top: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.promo-preview-img {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  height: auto;
}
.promo-preview-actions {
  padding: 16px;
  border-top: 1px solid #e5e7eb;
}
.form-card select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #111;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-card select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

/* === No credits modal === */
.ncm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.ncm-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.ncm-icon {
  font-size: 2.5rem;
  color: #f59e0b;
  margin-bottom: 12px;
}
.ncm-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.ncm-text {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 24px;
}
.ncm-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ncm-btn-primary {
  display: block;
  padding: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  text-align: center;
}
.ncm-btn-primary:hover { background: #1d4ed8; }
.ncm-btn-secondary {
  display: block;
  padding: 10px;
  background: none;
  color: #888;
  font-size: 0.88rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s;
  font-family: inherit;
}
.ncm-btn-secondary:hover { color: #111; }

/* === Nav credits badge === */
.nav-credits {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 20px;
  transition: background 0.15s;
}
.nav-credits:hover { background: #dbeafe; }

/* === Credits page === */
.credit-balance-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  margin-bottom: 32px;
}
.credit-balance-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1e40af;
}
.credit-balance-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: #2563eb;
  line-height: 1;
}
.credit-balance-unit {
  font-size: 1rem;
  font-weight: 600;
  color: #1d4ed8;
  margin-bottom: 12px;
}
.credit-balance-info {
  font-size: 0.8rem;
  color: #1e40af;
  opacity: 0.7;
}

.credit-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.credit-package-card {
  position: relative;
  text-align: center;
  background: #fafafa;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 28px 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.credit-package-card:hover {
  border-color: #bbb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.credit-package-popular {
  border-color: #2563eb;
  background: #eff6ff;
}
.credit-package-popular:hover {
  border-color: #1d4ed8;
}
.credit-package-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.credit-package-credits {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.5px;
}
.credit-package-credits-label {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
}
.credit-package-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 16px;
}
.credit-package-card form {
  width: 100%;
  margin-top: auto;
}
.credit-buy-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: #111;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.credit-buy-btn:hover { background: #333; }

.credit-costs-table {
  width: 100%;
  border-collapse: collapse;
}
.credit-costs-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #eee;
}
.credit-costs-table td {
  padding: 10px 16px;
  font-size: 0.88rem;
  color: #444;
  border-bottom: 1px solid #f5f5f5;
}
.credit-costs-table tr:last-child td { border-bottom: none; }
.credit-costs-table td:last-child {
  font-weight: 600;
  color: #111;
  text-align: right;
}
.credit-costs-table th:last-child {
  text-align: right;
}

/* === ATS Check === */
.icon-ats svg { stroke: #059669; }

.ats-score-card {
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 16px;
}
.ats-score-num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
}
.ats-score-green { color: #059669; }
.ats-score-yellow { color: #d97706; }
.ats-score-red { color: #dc2626; }
.ats-score-label {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 500;
}

.ats-check-item {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 10px;
  align-items: flex-start;
}
.ats-check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.ats-check-body { flex: 1; min-width: 0; }
.ats-check-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; color: #1e293b; }
.ats-check-cat { font-weight: 400; font-size: 0.8rem; color: #94a3b8; margin-left: 6px; }
.ats-check-detail { font-size: 0.88rem; color: #475569; line-height: 1.5; }

.ats-status-pass {
  background: #ecfdf5;
}
.ats-status-pass .ats-check-icon {
  background: #059669;
  color: #fff;
}
.ats-status-pass .ats-check-title { color: #065f46; }

.ats-status-warn {
  background: #fffbeb;
}
.ats-status-warn .ats-check-icon {
  background: #d97706;
  color: #fff;
}
.ats-status-warn .ats-check-title { color: #92400e; }

.ats-status-fail {
  background: #fef2f2;
}
.ats-status-fail .ats-check-icon {
  background: #dc2626;
  color: #fff;
}
.ats-status-fail .ats-check-title { color: #991b1b; }

.ats-tips-list {
  margin: 0;
  padding-left: 20px;
  color: #334155;
  line-height: 1.7;
  font-size: 0.92rem;
}
.ats-tips-list li { margin-bottom: 6px; }

.ats-missing {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ats-missing-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #fecaca;
}

/* === Contextual blog tip card === */
.dash-blog-tip {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 32px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dash-blog-tip:hover {
  border-color: #93c5fd;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}
.dash-blog-tip-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-blog-tip-icon svg { stroke: #2563eb; }
.dash-blog-tip-body { flex: 1; min-width: 0; }
.dash-blog-tip-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #2563eb;
  margin-bottom: 4px;
}
.dash-blog-tip-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}
.dash-blog-tip-desc {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.5;
}
.dash-blog-tip-arrow {
  flex-shrink: 0;
  align-self: center;
  color: #93c5fd;
  transition: color 0.15s, transform 0.15s;
}
.dash-blog-tip:hover .dash-blog-tip-arrow {
  color: #2563eb;
  transform: translateX(2px);
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero { padding: 60px 20px 48px; }
  .problems-grid, .features-grid, .blog-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .nav { padding: 0 16px; }
  .nav-links { gap: 16px; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .dl-grid { grid-template-columns: 1fr; }
  .comp-grid { grid-template-columns: 1fr; }
  /* Template grid responsive */
  .template-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  /* Upload grid responsive */
  .upload-grid { grid-template-columns: 1fr; }
  .upload-card { padding: 14px; }
  .uc-actions { flex-wrap: wrap; }
  .uc-btn { font-size: 0.78rem; height: 36px; padding: 0 8px; }
  .uc-stats { flex-wrap: wrap; }
  .storage-bar-header { flex-wrap: wrap; gap: 8px; }
  .dropzone { padding: 24px 16px; }
  .dropzone-text { font-size: 0.85rem; }
  /* Run card responsive */
  .run-card-top { flex-wrap: wrap; }
  /* Dashboard responsive */
  .sidebar { width: 56px; }
  .sidebar-item { padding: 12px 0; justify-content: center; gap: 0; border-left: none; }
  .sidebar-label { display: none; }
  .sidebar-icon { width: 24px; height: 24px; }
  .sidebar-icon svg { width: 24px; height: 24px; }
  .dash-main { margin-left: 56px; padding: 20px 16px 40px; }
  .profil-grid { grid-template-columns: 1fr; }
  .dash-table-wrap { overflow-x: auto; }
  .credit-packages { grid-template-columns: 1fr; }
}

/* === Mobile (480px) === */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #374151;
  line-height: 1;
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 149;
}
.sidebar-backdrop.open { display: block; }

@media (max-width: 480px) {
  .cross-duo,
  .cross-trio {
    grid-template-columns: 1fr;
  }

  /* Hamburger button */
  .hamburger-btn { display: flex; align-items: center; }

  /* Sidebar: hidden by default, overlay when open */
  .sidebar {
    width: 220px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 150;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-item {
    padding: 10px 20px;
    justify-content: flex-start;
    gap: 10px;
    border-left: 3px solid transparent;
  }
  .sidebar-label { display: inline; }
  .sidebar-icon { width: 20px; height: 20px; }
  .sidebar-icon svg { width: 20px; height: 20px; }

  /* Main content: full width */
  .dash-main { margin-left: 0; padding: 16px 12px 40px; }
  .dash-layout { padding-top: 56px; }
  .sidebar { top: 56px; }

  /* Nav */
  .nav { height: 56px; padding: 0 12px; }
  .nav-links { gap: 8px; }
  .nav-logo { font-size: 1.05rem; }

  /* Dashboard header */
  .dash-header h1 { font-size: 1.3rem; }
  .dash-subtitle { font-size: 0.82rem; }
  .dash-header { margin-bottom: 20px; }

  /* Form card */
  .form-card { padding: 20px 16px; }

  /* Tracker: stack columns vertically on mobile */
  .tracker-board { flex-direction: column; }
  .tracker-column { min-width: 0; }

  /* Run card */
  .run-card-top { flex-direction: column; align-items: flex-start; }
  .run-actions { width: 100%; }

  /* Template grid */
  .template-grid { grid-template-columns: 1fr 1fr; }

  /* Credit packages */
  .credit-packages { grid-template-columns: 1fr; }

  /* Tracker responsive: 2 rows on tablet */
  .tracker-board { flex-wrap: wrap; }
  .tracker-column { flex: 1 1 calc(33% - 12px); min-width: 180px; }
}

/* === Job Tracker Kanban === */

/* Tracker page: keep 800px content width, board scrolls within it */

/* Import from past generations */
.tracker-import-list {
  max-height: 240px; overflow-y: auto;
  border: 1px solid #e2e8f0; border-radius: 8px;
}
.tracker-import-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.12s;
}
.tracker-import-item:last-child { border-bottom: none; }
.tracker-import-item:hover { background: #f8fafc; }
.tracker-import-item input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: #2563eb; flex-shrink: 0; cursor: pointer;
}
.tracker-import-info { flex: 1; min-width: 0; }
.tracker-import-title {
  display: block; font-size: 0.88rem; font-weight: 600; color: #0f172a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tracker-import-date { font-size: 0.75rem; color: #94a3b8; }
.tracker-import-btn { width: auto; padding: 10px 24px; }
.tracker-import-all-btn {
  background: none; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 10px 16px; font-size: 0.85rem; font-weight: 500; color: #64748b;
  cursor: pointer; transition: all 0.15s;
}
.tracker-import-all-btn:hover { background: #f1f5f9; color: #334155; }

.tracker-add-row {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end;
  max-width: 800px;
}
.tracker-add-row .form-input { flex: 1; min-width: 140px; }
.tracker-add-row .form-select { flex: 0 0 140px; }
.tracker-add-btn { flex: 0 0 auto; white-space: nowrap; padding: 10px 20px; }

.tracker-board {
  display: flex; gap: 12px; overflow-x: auto;
  margin-top: 16px; padding-bottom: 0;
  -ms-overflow-style: none; scrollbar-width: none;
}
.tracker-board::-webkit-scrollbar { display: none; }

/* Custom always-visible scrollbar track + thumb */
.tracker-scrollbar-track {
  height: 8px;
  background: #f1f5f9;
  border-radius: 8px;
  margin-top: 10px;
  position: relative;
  cursor: pointer;
}
.tracker-scrollbar-thumb {
  height: 100%;
  background: #cbd5e1;
  border-radius: 8px;
  position: absolute;
  top: 0;
  min-width: 40px;
  transition: background 0.15s;
  cursor: grab;
}
.tracker-scrollbar-thumb:hover,
.tracker-scrollbar-thumb.active {
  background: #94a3b8;
}

.tracker-column {
  flex: 0 0 240px;
  background: #f8fafc; border-radius: 12px; border: 1px solid #e2e8f0;
  display: flex; flex-direction: column;
}
.tracker-column-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; font-size: 0.82rem; font-weight: 600;
  border-bottom: 2px solid; border-radius: 12px 12px 0 0;
}
.tracker-col-saved { color: #64748b; border-color: #94a3b8; background: #f1f5f9; }
.tracker-col-applied { color: #2563eb; border-color: #3b82f6; background: #eff6ff; }
.tracker-col-interview { color: #d97706; border-color: #f59e0b; background: #fffbeb; }
.tracker-col-offer { color: #059669; border-color: #10b981; background: #ecfdf5; }
.tracker-col-rejected { color: #dc2626; border-color: #ef4444; background: #fef2f2; }
.tracker-column-count {
  background: rgba(0,0,0,0.08); border-radius: 10px; padding: 1px 8px;
  font-size: 0.75rem;
}
.tracker-column-body {
  flex: 1; padding: 8px; min-height: 60px;
  transition: background 0.15s;
}
.tracker-column-body.drag-over { background: #e0e7ff; border-radius: 0 0 12px 12px; }

.tracker-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 10px 12px; margin-bottom: 8px; cursor: grab;
  transition: box-shadow 0.15s, opacity 0.15s;
  position: relative;
}
.tracker-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.tracker-card.dragging { opacity: 0.4; }
.tracker-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 4px; }
.tracker-card-position { font-size: 0.88rem; color: #0f172a; line-height: 1.3; }
.tracker-card-company { font-size: 0.8rem; color: #64748b; margin-top: 2px; }
.tracker-card-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.tracker-card-url, .tracker-card-cv-link {
  font-size: 0.72rem; color: #2563eb; text-decoration: none;
  padding: 2px 8px; background: #eff6ff; border-radius: 4px;
  transition: background 0.12s;
}
.tracker-card-url:hover, .tracker-card-cv-link:hover { background: #dbeafe; }
.tracker-card-cv-link { color: #7c3aed; background: #f5f3ff; }
.tracker-card-cv-link:hover { background: #ede9fe; }
.tracker-card-notes-wrap { margin-top: 6px; }
.tracker-card-notes {
  width: 100%; border: 1px solid #e2e8f0; border-radius: 4px;
  padding: 4px 6px; font-size: 0.75rem; color: #334155;
  resize: vertical; min-height: 28px; max-height: 80px;
  font-family: inherit; background: #f8fafc;
}
.tracker-card-notes:focus { outline: none; border-color: #3b82f6; }
.tracker-card-date { font-size: 0.7rem; color: #94a3b8; margin-top: 4px; }
.tracker-card-menu-btn {
  background: none; border: none; cursor: pointer; padding: 2px;
  color: #94a3b8; border-radius: 4px; flex-shrink: 0;
}
.tracker-card-menu-btn:hover { color: #64748b; background: #f1f5f9; }
.tracker-card-menu {
  position: absolute; right: 8px; top: 32px; z-index: 10;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); overflow: hidden;
}
.tracker-card-menu button {
  display: block; width: 100%; text-align: left; padding: 8px 16px;
  border: none; background: none; font-size: 0.82rem; cursor: pointer; color: #dc2626;
}
.tracker-card-menu button:hover { background: #fef2f2; }

/* === LinkedIn Profile Analysis === */
.linkedin-steps {
  color: #334155; font-size: 0.92rem; line-height: 1.8;
  padding-left: 20px; margin: 0;
}
.linkedin-steps li { padding-left: 4px; }
.linkedin-steps strong { color: #0f172a; }

.linkedin-upload-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px dashed #cbd5e1; border-radius: 12px; padding: 40px 24px;
  cursor: pointer; transition: all 0.2s; text-align: center;
}
.linkedin-upload-zone:hover, .linkedin-upload-zone.drag-active {
  border-color: #3b82f6; background: #eff6ff;
}
.upload-zone-text { color: #334155; font-size: 0.95rem; margin: 12px 0 4px; }
.upload-zone-hint { color: #94a3b8; font-size: 0.82rem; margin: 0; }

.linkedin-selected-file {
  display: flex; align-items: center; gap: 8px;
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px;
  padding: 10px 14px; margin-top: 12px; font-size: 0.88rem; color: #1e40af;
}
.linkedin-remove-file {
  background: none; border: none; color: #dc2626; font-size: 1.2rem;
  cursor: pointer; margin-left: auto; padding: 0 4px;
}

/* LinkedIn analysis result cards */
.li-section-title { display: flex; align-items: center; gap: 8px; }
.li-current {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 10px 14px; margin: 8px 0; font-size: 0.88rem; color: #334155;
}
.li-suggestion {
  background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 8px;
  padding: 10px 14px; margin: 8px 0; font-size: 0.88rem; color: #065f46;
}
.li-suggestion-text { margin-top: 4px; line-height: 1.6; white-space: pre-wrap; }
.li-label { font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; display: block; margin-bottom: 4px; color: #64748b; }

.li-tips { margin: 8px 0 0; padding-left: 18px; }
.li-tips li { font-size: 0.86rem; color: #334155; line-height: 1.6; margin-bottom: 4px; }

.li-tag-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.li-tag {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 0.78rem; font-weight: 500;
}
.li-tag-current { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.li-tag-found { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.li-tag-missing { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }

.li-recs-list { display: flex; flex-direction: column; gap: 10px; }
.li-rec-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 14px 16px;
}
.li-rec-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 1px;
}
.li-rec-text {
  font-size: 0.9rem;
  color: #0f172a;
  line-height: 1.6;
  font-weight: 500;
}

.li-example-bullets { margin-top: 8px; }
.li-example-bullets ul { margin: 4px 0 0; padding-left: 18px; }
.li-example-bullets li { font-size: 0.86rem; color: #334155; line-height: 1.6; margin-bottom: 4px; font-style: italic; }

/* Sidebar cross-links */
.sidebar-crosslinks {
    padding: 16px 16px 20px;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
}

.sidebar-crosslinks-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #bbb;
    margin-bottom: 10px;
    padding-left: 4px;
}

.sidebar-crosslink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px;
    border-radius: 8px;
    transition: background 0.12s;
    text-decoration: none;
    margin-bottom: 2px;
}

.sidebar-crosslink:hover {
    background: #f5f5f7;
}

.sidebar-crosslink-logo {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

.cl-p { color: #111; }
.cl-os { font-weight: 800; }
.cl-blue { color: #2563eb; }
.cl-orange { color: #f97316; }
.cl-red { color: #ef4444; }

.sidebar-crosslink-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-crosslink-info strong {
    font-size: 0.78rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.sidebar-crosslink-info span {
    font-size: 0.68rem;
    color: #999;
    line-height: 1.2;
}

.cl-green { color: #10b981; }

/* Dashboard tiles */
.dashboard-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.dash-tile {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.dash-tile:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.dash-tile-primary {
    border-color: #2563eb;
    background: #eff6ff;
}

.dash-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-tile-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.dash-tile-body p {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 768px) {
    .dashboard-tiles {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Credits Page (unified style)
   ============================================ */
.credits-balance-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1.5px solid #93c5fd;
    border-radius: 14px;
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
}
.credits-balance-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1e40af;
    margin-bottom: 4px;
}
.credits-balance-num {
    font-size: 3.5rem;
    font-weight: 900;
    color: #2563eb;
    line-height: 1;
}
.credits-balance-unit {
    font-size: 1rem;
    font-weight: 600;
    color: #1d4ed8;
    margin-bottom: 12px;
}
.credits-balance-info {
    font-size: 0.8rem;
    color: #1e40af;
    opacity: 0.7;
}
.credits-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
}
.credits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.credit-pack {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.credit-pack:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.credit-pack-popular {
    border-color: #2563eb;
    border-width: 2px;
}
.credit-pack-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.credit-pack-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.credit-pack-credits {
    font-size: 2rem;
    font-weight: 900;
    color: #111;
    line-height: 1.2;
}
.credit-pack-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2563eb;
    margin: 8px 0 4px;
}
.credit-pack-per {
    font-size: 0.78rem;
    color: #999;
    margin-bottom: 16px;
}
.credit-pack-btn {
    display: inline-block;
    width: 100%;
    padding: 10px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.credit-pack-btn:hover { background: #333; }
.credit-pack-popular .credit-pack-btn { background: #2563eb; }
.credit-pack-popular .credit-pack-btn:hover { background: #1d4ed8; }

.credit-tx-list { display: flex; flex-direction: column; }
.credit-tx-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.credit-tx-item:last-child { border-bottom: none; }
.credit-tx-info { display: flex; flex-direction: column; }
.credit-tx-desc { font-size: 0.88rem; font-weight: 500; color: #111; }
.credit-tx-date { font-size: 0.75rem; color: #9ca3af; margin-top: 2px; }
.credit-tx-amount { font-size: 0.88rem; font-weight: 700; }
.credit-tx-plus { color: #16a34a; }
.credit-tx-minus { color: #6b7280; }

@media (max-width: 768px) {
    .credits-grid { grid-template-columns: 1fr; }
}
