* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #0a66c2;
  --blue-dark: #004182;
  --red: #d0342c;
  --bg: #f4f2ee;
  --card: #ffffff;
  --text: #1b1f23;
  --muted: #63676b;
  --border: #e8e6e1;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 31, 35, 0.04), 0 8px 24px rgba(23, 43, 77, 0.06);
  --shadow-hover: 0 2px 4px rgba(27, 31, 35, 0.06), 0 12px 32px rgba(23, 43, 77, 0.1);
}

body {
  font-family: -apple-system, "Segoe UI", system-ui, Roboto, sans-serif;
  background: linear-gradient(180deg, #eef1f6 0%, var(--bg) 240px);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.container {
  max-width: 1128px;
  margin: 0 auto;
  padding: 0 16px;
}

.topbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 8px rgba(23, 43, 77, 0.05);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.brand-logo {
  background: linear-gradient(135deg, #e04a3f, #b12318);
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  padding: 4px 12px;
  border-radius: 9px;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 10px rgba(208, 52, 44, 0.35);
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eef3f8;
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 8px 16px;
  flex: 1;
  max-width: 400px;
  min-width: 140px;
  transition: border-color 0.2s ease;
}

.search:hover {
  border-color: #d3e1f0;
}

.search input {
  border: none;
  background: transparent;
  font-size: 0.9rem;
  width: 100%;
  cursor: not-allowed;
}

.search input:focus {
  outline: none;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-item.active {
  color: var(--text);
}

.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 12px;
  right: 12px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--text);
}

.nav-item:hover {
  background: #f1f4f8;
  color: var(--text);
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.search .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.nav-item .icon {
  margin-bottom: 2px;
}

.nav-count {
  position: absolute;
  top: 0;
  right: 8px;
  background: #8a9096;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 10px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

.nav-count.red {
  background: var(--red);
}

.nav-item {
  cursor: pointer;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(340px, calc(100vw - 24px));
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 36px rgba(23, 43, 77, 0.16);
  text-align: left;
  cursor: default;
  z-index: 70;
  animation: fadein 0.2s ease;
}

.dropdown-head {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}

.dd-item {
  display: flex;
  gap: 11px;
  padding: 13px 16px;
  border-bottom: 1px solid #f0eeea;
  font-weight: 400;
}

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

.dd-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dd-body {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.45;
}

.dd-body strong {
  font-size: 0.85rem;
}

.dd-body p {
  margin: 3px 0;
}

.dd-seen {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: italic;
}

.dd-seen .icon {
  width: 14px;
  height: 14px;
  color: var(--blue);
}

.dd-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 6px;
  flex-shrink: 0;
}

.dd-time {
  color: var(--muted);
  font-size: 0.72rem;
}

.dd-more p {
  color: var(--blue);
  font-weight: 600;
  text-align: center;
  width: 100%;
}

.phase {
  display: none;
}

.phase.active {
  display: block;
  animation: fadein 0.35s ease;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.feed-layout {
  display: grid;
  grid-template-columns: 230px 1fr 300px;
  gap: 22px;
  margin-top: 24px;
  align-items: start;
}

.narrow {
  max-width: 720px;
  margin: 28px auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.profile-card {
  text-align: center;
  padding-top: 0;
  overflow: hidden;
}

.profile-banner {
  background: linear-gradient(120deg, #1e3a5f, #3d6db5 55%, #7fb2ef);
  height: 64px;
  margin: 0 -22px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e04a3f, #8e1a12);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -36px auto 10px;
  border: 3.5px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-card h3 {
  font-size: 1.05rem;
}

.profile-card hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

.profile-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 4px 0;
}

.profile-stat strong {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.mini-card {
  padding: 16px 18px;
}

.badge-list-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
  margin-bottom: 6px;
}

.badge-pill {
  display: inline-block;
  background: #f1e8fb;
  color: #6b3fa0;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  margin: 2px 3px 2px 0;
  cursor: help;
}

.badge-banner {
  background: linear-gradient(160deg, #f6effd, #ece0fa);
  border: 1px solid #dcc8f2;
  color: #4d2d78;
  font-size: 0.88rem;
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 14px;
  animation: popin 0.4s ease 1s both;
}

.feed-head {
  padding: 18px 22px;
}

.feed-head {
  padding-bottom: 0;
}

.feed-head h2 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.tabs {
  display: flex;
  gap: 4px;
  margin-top: 14px;
  border-top: 1px solid #f0eeea;
}

.tab {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  padding: 12px 18px;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--blue);
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2.5px;
  border-radius: 2px 2px 0 0;
  background: var(--blue);
}

.job-list {
  padding: 6px 0;
  overflow: hidden;
}

.job-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 22px;
  border-bottom: 1px solid #f0eeea;
  cursor: pointer;
  animation: fadein 0.4s ease both;
  transition: background 0.15s ease;
}

.job-row:last-child {
  border-bottom: none;
}

.job-row:hover {
  background: #f7f9fc;
}

.job-row:hover .job-title {
  text-decoration: underline;
}

.company-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 3px 8px rgba(23, 43, 77, 0.12);
}

.job-info {
  flex: 1;
  min-width: 0;
}

.job-title {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.job-company {
  font-size: 0.85rem;
  font-weight: 500;
}

.job-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.easy-apply {
  display: inline-block;
  color: var(--blue);
  background: #eaf2fb;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  margin-top: 5px;
}

.job-badge {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.post-card {
  padding: 18px 22px 10px;
}

.post-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.post-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.post-author strong {
  font-size: 0.92rem;
}

.post-follow {
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.post-author .small {
  line-height: 1.3;
}

.post-time {
  font-size: 0.73rem;
}

.post-text {
  font-size: 0.9rem;
  white-space: pre-line;
  margin: 12px 0 10px;
}

.post-stats {
  font-size: 0.78rem;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 1px solid #f0eeea;
}

.post-actions {
  display: flex;
  justify-content: space-around;
  padding: 4px 0;
}

.post-action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.post-action:hover {
  background: #f1f4f8;
  color: var(--text);
}

.post-action .icon {
  width: 17px;
  height: 17px;
}

.post-action.liked {
  color: var(--blue);
}

.ticker-title {
  font-size: 0.95rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(208, 52, 44, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(208, 52, 44, 0); }
}

.ticker {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 230px;
}

.ticker-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.8rem;
  padding: 10px 12px;
  background: #fbf8f7;
  border: 1px solid #f3e7e5;
  border-radius: 10px;
  animation: slidein 0.45s ease;
  line-height: 1.4;
}

.ticker-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ticker-item time {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  margin-top: 2px;
}

@keyframes slidein {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}

h1 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.02rem;
  margin: 18px 0 6px;
}

ul {
  padding-left: 22px;
}

li {
  margin: 5px 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.84rem;
}

.listing-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.listing-title-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.listing .company-logo {
  width: 60px;
  height: 60px;
  font-size: 1.2rem;
}

.company-name {
  font-size: 0.92rem;
  font-weight: 600;
}

.badge {
  background: #fdecea;
  color: var(--red);
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 24px;
  padding: 11px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 18px;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(180deg, #1273d4, var(--blue));
  color: #fff;
  box-shadow: 0 3px 10px rgba(10, 102, 194, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #0d66c0, var(--blue-dark));
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(10, 102, 194, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--blue);
  color: var(--blue);
}

.btn-outline:hover {
  background: #eaf2fb;
}

.btn:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
}

.fineprint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 12px;
}

form label {
  display: block;
  margin: 15px 0;
  font-weight: 600;
  font-size: 0.92rem;
}

input, textarea, select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 15px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-weight: 400;
  background: #fbfcfd;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3.5px rgba(10, 102, 194, 0.14);
}

.queue-card {
  text-align: center;
  padding: 44px 28px;
}

.queue-number {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  margin: 18px 0 4px;
  transition: color 0.3s ease;
}

.queue-number.queue-error {
  color: var(--red);
  animation: shake 0.4s ease;
}

.queue-status {
  min-height: 22px;
}

.queue-bar {
  height: 7px;
  background: #eceae5;
  border-radius: 4px;
  margin-top: 22px;
  overflow: hidden;
}

.queue-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1273d4, var(--blue));
  border-radius: 4px;
  transition: width 0.1s linear;
}

.interview-head {
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3d6db5, #1e3a5f);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(30, 58, 95, 0.3);
}

.chat-log {
  min-height: 280px;
  max-height: 440px;
  overflow-y: auto;
  padding: 18px 6px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  scrollbar-width: thin;
  scrollbar-color: #d5d3ce transparent;
}

.chat-log::-webkit-scrollbar {
  width: 6px;
}

.chat-log::-webkit-scrollbar-thumb {
  background: #d5d3ce;
  border-radius: 3px;
}

.msg {
  max-width: 80%;
  padding: 11px 15px;
  border-radius: 16px;
  white-space: pre-wrap;
  animation: popin 0.25s ease;
  box-shadow: 0 1px 3px rgba(27, 31, 35, 0.07);
}

@keyframes popin {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: none; }
}

.msg.hr {
  background: #f0f2f5;
  border-bottom-left-radius: 5px;
  align-self: flex-start;
}

.msg.user {
  background: linear-gradient(180deg, #1273d4, var(--blue));
  color: #fff;
  border-bottom-right-radius: 5px;
  align-self: flex-end;
}

.msg.typing {
  color: var(--muted);
  font-style: italic;
  box-shadow: none;
  background: transparent;
}

.dots i {
  animation: blink 1.2s infinite;
  font-style: normal;
}

.dots i:nth-child(2) {
  animation-delay: 0.2s;
}

.dots i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%, 60%, 100% { opacity: 0.2; }
  30% { opacity: 1; }
}

.chat-form {
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 15px;
}

.chat-form input {
  margin-top: 0;
  flex: 1;
  border-radius: 24px;
}

.chat-form .btn {
  margin-top: 0;
}

.rejection {
  position: relative;
  overflow: hidden;
}

.rejection.shake {
  animation: shake 0.5s ease 0.55s;
}

@keyframes shake {
  0%, 100% { transform: none; }
  20% { transform: translate(-6px, 2px) rotate(-0.5deg); }
  40% { transform: translate(5px, -2px) rotate(0.4deg); }
  60% { transform: translate(-4px, 1px); }
  80% { transform: translate(3px, -1px); }
}

.stamp {
  position: absolute;
  top: 28px;
  right: 26px;
  border: 4px double var(--red);
  color: var(--red);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 5px;
  padding: 5px 18px;
  border-radius: 8px;
  transform: rotate(12deg);
  opacity: 0.9;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.rejection.slam .stamp {
  animation: slam 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

@keyframes slam {
  0% { transform: rotate(40deg) scale(4); opacity: 0; }
  70% { transform: rotate(12deg) scale(0.92); opacity: 1; }
  100% { transform: rotate(12deg) scale(1); opacity: 0.9; }
}

.confetti {
  position: fixed;
  top: -40px;
  z-index: 100;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  pointer-events: none;
  animation: fall linear both;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0.7;
  }
}

.letter {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  white-space: pre-wrap;
  background: repeating-linear-gradient(#fdfcf9, #fdfcf9 30px, #faf7f0 30px, #faf7f0 31px);
  border: 1px solid #eae4d8;
  border-radius: 10px;
  padding: 26px 28px;
  margin-top: 18px;
  line-height: 1.8;
  box-shadow: inset 0 1px 4px rgba(120, 100, 60, 0.06);
}

.cert-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.premium-card {
  position: relative;
  border: 1px solid #e3cf8f;
  background: linear-gradient(160deg, #fffdf5, #fbf3dc);
}

.premium-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #d4af37, #a8842c);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 3px 9px;
  border-radius: 10px;
}

.premium-card h3 {
  font-size: 1rem;
  color: #7a5d15;
}

.premium-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 4px;
}

.premium-list li {
  font-size: 0.8rem;
  padding-left: 18px;
  position: relative;
  margin: 5px 0;
}

.premium-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d4af37;
}

.premium-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: #7a5d15;
  margin-top: 8px;
}

.btn-gold {
  background: linear-gradient(180deg, #e0bc4e, #c49a2e);
  color: #fff;
  box-shadow: 0 3px 10px rgba(196, 154, 46, 0.35);
  margin-top: 12px;
}

.btn-gold:hover {
  background: linear-gradient(180deg, #d4af37, #a8842c);
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px));
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(23, 43, 77, 0.18);
  padding: 16px 20px;
  z-index: 90;
  animation: cookiein 0.45s ease;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@keyframes cookiein {
  from { opacity: 0; transform: translateX(-50%) translateY(24px); }
  to { opacity: 1; transform: translateX(-50%); }
}

.cookie-banner.cookie-out {
  opacity: 0;
  transform: translateX(-50%) translateY(24px);
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-actions .btn {
  margin-top: 12px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 36px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .feed-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-left {
    display: none;
  }
  .sidebar-right {
    order: 2;
  }
  .search {
    display: none;
  }
  .nav-item {
    padding: 6px 9px;
  }
  .card {
    padding: 17px;
  }
}
