/* Legacy stylesheet entrypoint kept for backward compatibility.
   Primary screens now load CSS directly from index.html to avoid the @import waterfall. */

/* ═══════════════════════════════════════════════════
   SUBSCRIPTIONS SCREEN
   ═══════════════════════════════════════════════════ */

#screenSubscriptions.screen {
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  background: #f5f8fa;
}

/* ── Disclaimer banner ── */
.subDisclaimer {
  background: #fff8e1;
  border: 1px solid #f5a623;
  border-radius: 10px;
  color: #7a5900;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ── Plan grid ── */
.subGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

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

/* ── Plan card ── */
.subCard {
  background: #fff;
  border: 1.5px solid #dde7ec;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: box-shadow 0.18s, border-color 0.18s;
}

.subCard:hover {
  box-shadow: 0 4px 18px rgba(42, 122, 138, 0.10);
}

.subCardActive {
  border-color: #2a7a8a;
  box-shadow: 0 0 0 2px rgba(42, 122, 138, 0.15);
}

/* ── Active badge ── */
.subCardBadge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #2a7a8a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.02em;
}

/* ── Card content ── */
.subCardName {
  font-size: 16px;
  font-weight: 700;
  color: #1a2a33;
  line-height: 1.3;
  padding-right: 80px;
}

.subCardPrice {
  font-size: 22px;
  font-weight: 800;
  color: #2a7a8a;
  line-height: 1.2;
}

.subCardDesc {
  font-size: 13px;
  color: #5a7a88;
  line-height: 1.5;
}

.subCardFeatures {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.subCardFeatures li {
  font-size: 13px;
  color: #3d6370;
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}

.subCardFeatures li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2a7a8a;
  font-weight: 700;
  font-size: 12px;
}

/* ── Card actions ── */
.subCardActions {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Buttons ── */
.subCardBtn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  border: none;
  transition: background 0.18s, opacity 0.18s;
  text-decoration: none;
  font-family: inherit;
  line-height: 1;
}

.subCardBtnActivate {
  background: #2a7a8a;
  color: #fff;
}

.subCardBtnActivate:hover:not(:disabled) {
  background: #1d5f6e;
}

.subCardBtnActive {
  background: #e6f4f6;
  color: #2a7a8a;
  cursor: default;
}

.subCardBtnOwned {
  background: #e9f7ef;
  color: #27ae60;
  cursor: default;
}

.subCardBtnContact {
  background: #F5A623;
  color: #fff;
}

.subCardBtnContact:hover {
  background: #d4871a;
}

.subCardBtnActivate:disabled,
.subCardBtnActive:disabled,
.subCardBtnOwned:disabled {
  opacity: 0.65;
  cursor: default;
}

.subCardBtnCancel {
  background: none;
  border: none;
  color: #c0392b;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
  opacity: 0.75;
  transition: opacity 0.15s;
}

.subCardBtnCancel:hover:not(:disabled) {
  opacity: 1;
}

/* ── Loading / error / empty states ── */
.subLoading,
.subError,
.subEmpty {
  text-align: center;
  padding: 48px 20px;
  font-size: 15px;
  color: #5a7a88;
  line-height: 1.6;
}

.subError {
  color: #c0392b;
}

/* ── Dark theme ── */
[data-theme="dark"] #screenSubscriptions.screen {
  background: #0d1117;
}

[data-theme="dark"] .subDisclaimer {
  background: rgba(245, 166, 35, 0.12);
  border-color: rgba(245, 166, 35, 0.42);
  color: #ffd58a;
}

[data-theme="dark"] .subCard {
  background: #141c1e;
  border-color: rgba(190, 224, 229, 0.12);
}

[data-theme="dark"] .subCard:hover {
  border-color: rgba(78, 205, 196, 0.24);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
}

[data-theme="dark"] .subCardActive {
  border-color: rgba(78, 205, 196, 0.42);
  box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.12);
}

[data-theme="dark"] .subCardName {
  color: rgba(239, 246, 248, 0.94);
}

[data-theme="dark"] .subCardPrice {
  color: #66ddd4;
}

[data-theme="dark"] .subCardDesc,
[data-theme="dark"] .subCardFeatures li,
[data-theme="dark"] .subLoading,
[data-theme="dark"] .subEmpty {
  color: rgba(225, 235, 239, 0.62);
}

[data-theme="dark"] .subCardBtnActive {
  background: rgba(78, 205, 196, 0.12);
  color: #66ddd4;
}

[data-theme="dark"] .subCardBtnOwned {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
}

[data-theme="dark"] .subError {
  color: #f87171;
}

/* ═══════════════════════════════════════════════════
   WORK EXPERIENCE — LinkedIn-style section
   ═══════════════════════════════════════════════════ */

.profile-experience-section {
  margin-top: 24px;
}

.profile-experience-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #111;
}

.exp-block {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.exp-logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.exp-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #eee;
  object-fit: contain;
}

.exp-logo-initials {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(42, 122, 138, 0.12);
  color: #2a7a8a;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exp-content {
  flex: 1;
  min-width: 0;
}

.exp-position {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  line-height: 1.3;
}

.exp-meta {
  font-size: 13px;
  color: #444;
  margin-top: 2px;
}

.exp-dates {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

.exp-location {
  font-size: 13px;
  color: #666;
  margin-top: 1px;
}

.exp-desc {
  font-size: 14px;
  color: #333;
  margin-top: 8px;
  line-height: 1.5;
}

.exp-desc-toggle {
  font-size: 13px;
  color: #2a7a8a;
  cursor: pointer;
  margin-left: 2px;
  text-decoration: none;
}

.exp-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.exp-skill-chip {
  background: #f0f7f8;
  color: #2a7a8a;
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 12px;
}

.exp-company-header {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin-bottom: 12px;
}

.exp-group-items {
  border-left: 2px solid #e0e0e0;
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.exp-group-item .exp-position {
  font-size: 14px;
}

/* ── Dark theme ── */
[data-theme="dark"] .profile-experience-section h3 {
  color: rgba(239, 246, 248, 0.94);
}

[data-theme="dark"] .exp-position,
[data-theme="dark"] .exp-company-header {
  color: rgba(239, 246, 248, 0.94);
}

[data-theme="dark"] .exp-meta {
  color: rgba(225, 235, 239, 0.72);
}

[data-theme="dark"] .exp-dates,
[data-theme="dark"] .exp-location {
  color: rgba(225, 235, 239, 0.55);
}

[data-theme="dark"] .exp-desc {
  color: rgba(225, 235, 239, 0.80);
}

[data-theme="dark"] .exp-logo-initials {
  background: rgba(78, 205, 196, 0.14);
  color: #66ddd4;
}

[data-theme="dark"] .exp-logo img {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .exp-skill-chip {
  background: rgba(78, 205, 196, 0.10);
  color: #66ddd4;
}

[data-theme="dark"] .exp-group-items {
  border-left-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .exp-desc-toggle {
  color: #66ddd4;
}

/* Critical transition and auth fixes */
html,
body,
.stage {
  border: 0 !important;
  outline: 0 !important;
}

.screen:not(.active),
.screen[inert] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

.screen.active {
  display: flex !important;
  z-index: 1;
}

.loginPasswordError {
  color: #dc2626;
  font-size: 13px;
  margin-top: 6px;
  width: var(--inW);
  padding-left: 18px;
  line-height: 1.35;
}

.ldCounters.is-hidden {
  display: none;
}

.ldCounters.is-loading .ldCounterNum {
  display: inline-block;
  width: 72px;
  height: 36px;
  border-radius: 12px;
  color: transparent;
  background: linear-gradient(90deg, #edf2f4 0%, #dfe9ec 45%, #edf2f4 90%);
  background-size: 220% 100%;
  animation: lomoStatsSkeleton 1.1s ease-in-out infinite;
}

[data-theme="dark"] .ldCounters.is-loading .ldCounterNum {
  background: linear-gradient(90deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.14) 45%, rgba(255,255,255,.08) 90%);
  background-size: 220% 100%;
}

@keyframes lomoStatsSkeleton {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Candidate verification upload grid safety */
#screenMyEmployeeProfile .profileTabPane,
#screenMyEmployeeProfile .profileEditSection,
#screenMyEmployeeProfile .candidateVerifyGroup {
  min-width: 0;
  max-width: 100%;
}

#screenMyEmployeeProfile .candidateVerifyGrid {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

#screenMyEmployeeProfile .candidateVerifyGrid.compactGrid {
  grid-template-columns: minmax(min(260px, 100%), .8fr) minmax(min(320px, 100%), 1.2fr);
}

#screenMyEmployeeProfile .candidateVerifyGrid .miniCard {
  min-width: 0;
}

#screenMyEmployeeProfile .candidateVerifyGrid .dropZone {
  width: 100%;
  box-sizing: border-box;
}

#screenMyEmployeeProfile .candidateVerifyGrid .miniHint {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  #screenMyEmployeeProfile .candidateVerifyGrid.compactGrid {
    grid-template-columns: 1fr;
  }
}

/* Admin queue grouped by user */
.adminUserQueueCard {
  border: 1px solid rgba(38,110,120,.12);
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 14px 38px rgba(15,23,42,.06);
  margin-bottom: 14px;
  overflow: hidden;
}

.adminUserQueueHead {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  color: inherit;
  text-align: left;
}

.adminUserQueueHead:hover {
  background: rgba(38,110,120,.045);
}

.adminUserQueueInfo {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.adminUserQueueName {
  color: #111827;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.15;
}

.adminUserQueueMeta {
  color: #667085;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.adminUserQueueOpen {
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(38,112,122,.10);
  border: 1px solid rgba(38,112,122,.20);
  color: #155e68;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.adminUserQueueDocs {
  padding: 0 20px 18px 88px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.adminQueueDocReview {
  border: 1px solid rgba(38,110,120,.10);
  border-radius: 18px;
  background: rgba(235,248,250,.42);
  padding: 14px;
}

.adminQueueDocReviewTop {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.adminQueueDocReviewInfo {
  min-width: 0;
  flex: 1;
}

.adminQueueDocReviewTitle {
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

[data-theme="dark"] .adminUserQueueCard {
  background: rgba(18,31,34,.86);
  border-color: rgba(190,224,229,.12);
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}

[data-theme="dark"] .adminUserQueueHead:hover {
  background: rgba(78,205,196,.055);
}

[data-theme="dark"] .adminUserQueueName,
[data-theme="dark"] .adminQueueDocReviewTitle {
  color: rgba(239,246,248,.94);
}

[data-theme="dark"] .adminUserQueueMeta {
  color: rgba(225,235,239,.58);
}

[data-theme="dark"] .adminUserQueueOpen {
  background: rgba(78,205,196,.12);
  border-color: rgba(78,205,196,.18);
  color: #66ddd4;
}

[data-theme="dark"] .adminQueueDocReview {
  background: rgba(255,255,255,.04);
  border-color: rgba(190,224,229,.10);
}

@media (max-width: 720px) {
  .adminUserQueueHead {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .adminUserQueueDocs {
    padding: 0 14px 14px;
  }

  .adminQueueDocReviewTop,
  .adminQueueDocReview .adminActions {
    flex-direction: column;
    align-items: stretch;
  }

  .adminQueueDocReview .rejectInput {
    width: 100%;
  }
}
