/* ============================================
   CV Builder Page Widgets
   Index-only strips, rating modal and floating actions
   ============================================ */

body.resmicv-theme {
  --builder-top-offset: 104px;
  --builder-bottom-offset: 0px;
}

#main-content {
  height: calc(100vh - var(--builder-top-offset) - var(--builder-bottom-offset));
}

/* ============================================
   LIVE CV SCORE NAVBAR
   ============================================ */
.cv-score-navbar {
  position: relative;
  z-index: 60;
  background: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
}

.cv-score-navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 24px;
  position: relative;
}

.cv-score-strip {
  width: 100%;
  min-height: 32px;
  display: grid;
  grid-template-columns: auto minmax(130px, 1fr) auto auto auto minmax(150px, 1.4fr) auto;
  gap: 9px;
  align-items: center;
  border: 0;
  border-radius: 7px;
  padding: 3px 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease;
}

.cv-score-strip:hover,
.cv-score-strip:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.cv-score-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-width: 116px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
}

.cv-score-stat {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #cbd5e1;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.cv-score-pill strong,
.cv-score-stat strong {
  color: #f8fafc;
  font-size: 0.78rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.cv-score-progress-wrap {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.24);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
}

.cv-score-progress {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #14b8a6, #2563eb);
  transition: width 0.35s ease;
}

.cv-score-tip {
  color: #94a3b8;
  font-size: 0.72rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cv-score-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #94a3b8;
  font-size: 0.72rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cv-score-navbar.details-open .cv-score-chevron {
  transform: rotate(180deg);
  color: #f8fafc;
}

.cv-score-navbar.score-good .cv-score-progress {
  background: linear-gradient(90deg, #14b8a6, #22c55e);
}

.cv-score-navbar.score-mid .cv-score-progress {
  background: linear-gradient(90deg, #f59e0b, #2563eb);
}

.cv-score-navbar.score-low .cv-score-progress {
  background: linear-gradient(90deg, #ef4444, #f59e0b);
}

.cv-score-details {
  position: absolute;
  top: calc(100% + 8px);
  left: 24px;
  right: 24px;
  z-index: 80;
  padding: 14px;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cv-score-details[hidden] {
  display: none;
}

.cv-score-details-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #0f172a;
}

.cv-score-details-head strong {
  font-size: 0.88rem;
  font-weight: 800;
}

.cv-score-details-head span:last-child {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 600;
  text-align: right;
}

.cv-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(190px, 0.9fr);
  gap: 14px;
}

.cv-analysis-label {
  margin-bottom: 7px;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cv-suggestion-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

.cv-suggestion-list li {
  position: relative;
  padding: 7px 9px 7px 28px;
  border-radius: 7px;
  background: #eef2f7;
  color: #334155;
  font-size: 0.78rem;
  line-height: 1.35;
}

.cv-suggestion-list li::before {
  content: "+";
  position: absolute;
  left: 9px;
  top: 7px;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-size: 0.65rem;
  font-weight: 800;
}

.cv-suggestion-list li.is-complete::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  background: rgba(20, 184, 166, 0.14);
  color: #0f766e;
}

.cv-ats-checks {
  display: grid;
  gap: 7px;
}

.cv-ats-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #eef2f7;
  color: #334155;
  font-size: 0.76rem;
  line-height: 1.25;
}

.cv-ats-check i {
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.cv-ats-check.is-ok i {
  color: #0f766e;
}

.cv-ats-check.is-warn i {
  color: #d97706;
}

/* ============================================
   BÜLTEN ANNOUNCEMENT STRIP
   ============================================ */
.bulten-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.bulten-strip:hover {
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);
}

/* Shimmer animation */
.bulten-strip-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.06) 40%,
      rgba(255, 255, 255, 0.12) 50%,
      rgba(255, 255, 255, 0.06) 60%,
      transparent 100%);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.bulten-strip-content {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
}

.bulten-strip-text {
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.bulten-strip-desc {
  color: #94a3b8;
  font-weight: 400;
}

.bulten-strip-arrow {
  color: #60a5fa;
  font-weight: 700;
  font-size: 0.85rem;
  transition: transform 0.25s ease;
  margin-left: 2px;
}

.bulten-strip:hover .bulten-strip-arrow {
  transform: translateX(4px);
  color: #93c5fd;
}

.bulten-strip:hover .bulten-strip-text {
  color: #fff;
}

/* Responsive: hide desc text on small screens */
@media (max-width: 480px) {
  .bulten-strip-desc {
    display: none;
  }
}

/* ============================================
   RATING SHOWCASE BAND
   ============================================ */
.rating-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease;
}

.rating-showcase:hover {
  background: #e2e8f0;
}

.rating-showcase:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: -2px;
}

.rating-showcase-shimmer {
  display: none;
}

.rating-showcase-content {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
}

.rating-showcase-stars {
  display: flex;
  gap: 1px;
  color: #f59e0b;
  font-size: 0.75rem;
}

.rating-showcase-score {
  color: #475569;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2px;
}

.rating-showcase-divider {
  color: #cbd5e1;
  font-size: 0.65rem;
}

.rating-showcase-count {
  color: var(--text-muted);
  font-weight: 500;
}

.rating-showcase-arrow {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  margin-left: 2px;
}

.rating-showcase:hover .rating-showcase-arrow {
  transform: translateX(3px);
  color: var(--text-muted);
}

/* ============================================
   REVIEWS MODAL
   ============================================ */
.reviews-modal {
  max-width: 500px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.reviews-list {
  overflow-y: auto;
  max-height: 55vh;
  padding-right: 4px;
}

.reviews-list::-webkit-scrollbar {
  width: 5px;
}

.reviews-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.reviews-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.reviews-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  font-size: 0.9rem;
}

.review-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.review-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.review-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.review-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-main);
}

.review-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.review-stars {
  display: flex;
  gap: 1px;
  color: #f59e0b;
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.review-stars .empty {
  color: #d1d5db;
}

.review-message {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
  word-break: break-word;
}

.reviews-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .rating-showcase-content {
    font-size: 0.72rem;
  }

  .rating-showcase-stars {
    font-size: 0.8rem;
  }

  .rating-showcase-score {
    font-size: 0.82rem;
  }

  .reviews-modal {
    max-height: 90vh;
  }

  .reviews-list {
    max-height: 65vh;
  }
}


/* ============================================
   FLOATING ACTION BUTTONS (FAB)
   ============================================ */
.fab-container {
  position: fixed;
  left: calc(var(--form-panel-width, 54.6554%) + 24px);
  right: 24px;
  bottom: 16px;
  width: min(620px, calc(100vw - var(--form-panel-width, 54.6554%) - 64px));
  display: flex;
  flex-direction: row;
  gap: 8px;
  z-index: 1040;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin-right: auto;
  margin-left: auto;
  padding: 8px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.fab-container::before {
  content: none;
}

.fab-container > .fab-danger {
  margin-right: auto;
}

.fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 13px;
  border-radius: 8px;
  box-shadow: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.62);
}

.fab:hover {
  transform: translateY(-1px);
}

.fab:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

.fab-icon {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.fab-text {
  line-height: 1;
}

.mobile-panel-switch {
  display: none;
}

/* Primary FAB (PDF İndir) */
.fab-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  border-color: rgba(99, 102, 241, 0.48);
  padding-inline: 16px;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.22);
}

.fab-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  border-color: rgba(79, 70, 229, 0.58);
  color: #fff;
  box-shadow: 0 12px 22px rgba(99, 102, 241, 0.3);
}

/* Danger FAB (Sıfırla) */
.fab-danger {
  color: #b91c1c;
  border-color: rgba(254, 202, 202, 0.72);
}

.fab-danger:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.share-action {
  position: relative;
  display: inline-flex;
}

.fab-share {
  color: #0f766e;
  border-color: rgba(153, 246, 228, 0.78);
  padding-right: 12px;
}

.fab-share:hover {
  background: #ecfdf5;
  border-color: #99f6e4;
  color: #0f5f59;
}

/* Scroll-to-top FAB */
.fab-scroll-top {
  color: #475569;
  border-color: rgba(203, 213, 225, 0.78);
}

.fab-scroll-top:hover {
  background: #f1f5f9;
  border-color: #dbe3ee;
  color: #1e293b;
}

.fab-share-duration {
  margin-left: 2px;
  padding-left: 8px;
  border-left: 1px solid rgba(15, 118, 110, 0.22);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
}

.fab-share-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -2px;
  font-size: 0.65rem;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.share-action.menu-open .fab-share-chevron {
  transform: rotate(180deg);
}

.share-duration-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 1054;
  min-width: 126px;
  padding: 6px;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.share-duration-menu[hidden] {
  display: none;
}

.share-duration-menu button {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: transparent;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.share-duration-menu button:hover,
.share-duration-menu button:focus-visible {
  background: #ecfdf5;
  color: #0f766e;
}

/* Loading state */
.fab.fab-loading {
  opacity: 0.8;
  pointer-events: none;
}

.cv-share-panel {
  position: fixed;
  right: 28px;
  bottom: 78px;
  width: min(420px, calc(100vw - 32px));
  z-index: 1052;
  padding: 14px;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cv-share-panel[hidden] {
  display: none;
}

.cv-share-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.cv-share-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cv-share-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 28px;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 800;
}

.cv-share-panel-title i {
  color: #0f766e;
}

.cv-share-input-row {
  display: flex;
  gap: 8px;
}

.cv-share-input-row input {
  min-width: 0;
  flex: 1;
  height: 38px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 0.8rem;
  padding: 0 10px;
}

.cv-share-input-row button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  background: #0f766e;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cv-share-input-row button:hover {
  background: #0f5f59;
  transform: translateY(-1px);
}

.cv-share-expiry {
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 7px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.cv-share-expiry:empty {
  display: none;
}

.cv-share-panel a {
  display: inline-flex;
  align-items: center;
  margin-top: 9px;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.cv-share-panel a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ============================================
   MOBILE BOTTOM NAVIGATION (≤991.98px)
   Complete rewrite — touch-first approach
   ============================================ */
@media (max-width: 991.98px) {
  body.resmicv-theme {
    --builder-top-offset: 108px;
    --builder-bottom-offset: 0px;
  }

  /* ── Container: frosted glass bottom bar ── */
  .fab-container {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    margin-right: 0;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
    justify-items: center;
    gap: 0;
    min-height: 72px;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 24px 24px 0 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
      0 -1px 0 0 rgba(226, 232, 240, 0.6),
      0 -8px 32px -4px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    z-index: 1050;
  }

  .fab-container::before {
    content: none;
  }

  /* ── Tab button reset (kill all desktop styles) ── */
  .fab,
  .fab.fab-danger,
  .fab.fab-share,
  .fab.fab-scroll-top,
  .fab.fab-primary {
    all: unset;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 3px;
    padding: 6px 4px 10px;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.18s ease, transform 0.15s ease;
  }
  
  /* ── Icon ── */
  .fab .fab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 1.18rem;
    line-height: 1;
    transition: color 0.18s ease, transform 0.18s ease;
  }

  /* ── Label ── */
  .fab .fab-text {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.18s ease;
  }

  /* ── Color tokens per variant (default / rest state) ── */
  .fab.fab-danger .fab-icon,
  .fab.fab-danger .fab-text    { color: #94a3b8; }

  .fab.fab-share .fab-icon,
  .fab.fab-share .fab-text     { color: #94a3b8; }

  .fab.fab-scroll-top .fab-icon,
  .fab.fab-scroll-top .fab-text { color: #94a3b8; }

  .fab.fab-primary .fab-icon,
  .fab.fab-primary .fab-text   { color: #2563eb; }

  /* ── Active (tap) feedback — works on all devices ── */
  .fab:active {
    transform: scale(0.90);
    transition-duration: 0.20s;
  
  }

  .fab.fab-danger:active,
  .fab.fab-danger.is-active,
  .fab.fab-danger.is-processing {
    background: transparent;
  }
  .fab.fab-danger:active .fab-icon,
  .fab.fab-danger:active .fab-text,
  .fab.fab-danger.is-active .fab-icon,
  .fab.fab-danger.is-active .fab-text,
  .fab.fab-danger.is-processing .fab-icon,
  .fab.fab-danger.is-processing .fab-text {
    color: #dc2626 !important;
  }

  .fab.fab-share:active,
  .fab.fab-share.is-active,
  .fab.fab-share.is-processing {
    background: transparent;
  }
  .fab.fab-share:active .fab-icon,
  .fab.fab-share:active .fab-text,
  .fab.fab-share.is-active .fab-icon,
  .fab.fab-share.is-active .fab-text,
  .fab.fab-share.is-processing .fab-icon,
  .fab.fab-share.is-processing .fab-text {
    color: #0f766e !important;
  }

  .fab.fab-scroll-top:active,
  .fab.fab-scroll-top.is-active,
  .fab.fab-scroll-top.is-processing {
    background: transparent;
  }
  .fab.fab-scroll-top:active .fab-icon,
  .fab.fab-scroll-top:active .fab-text,
  .fab.fab-scroll-top.is-active .fab-icon,
  .fab.fab-scroll-top.is-active .fab-text,
  .fab.fab-scroll-top.is-processing .fab-icon,
  .fab.fab-scroll-top.is-processing .fab-text {
    color: #334155 !important;
  }

  .fab.fab-primary:active,
  .fab.fab-primary.is-active,
  .fab.fab-primary.is-processing {
    background: transparent;
  }
  .fab.fab-primary:active .fab-icon,
  .fab.fab-primary:active .fab-text,
  .fab.fab-primary.is-active .fab-icon,
  .fab.fab-primary.is-active .fab-text,
  .fab.fab-primary.is-processing .fab-icon,
  .fab.fab-primary.is-processing .fab-text {
    color: #1d4ed8 !important;
  }

  .fab.fab-loading .fab-text {
    display: block;
  }

  /* ── Share action wrapper ── */
  .share-action {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
  }

  .share-action .fab.fab-share {
    flex: 1;
  }

  .fab-share-chevron {
    display: none;
  }

  .share-duration-menu {
    right: 50%;
    bottom: calc(100% + 14px);
    min-width: 120px;
    transform: translateX(50%);
    border-radius: 14px;
  }

  /* ── Center button (Önizle / Panel Switch) ── */
  .mobile-panel-switch {
    width: 62px;
    height: 62px;
    position: fixed;
    left: 50%;
    bottom: calc(42px + env(safe-area-inset-bottom));
    z-index: 1053;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    border: 5px solid rgba(255, 255, 255, 0.98);
    border-radius: 999px;
    background: linear-gradient(145deg, #1e40af 0%, #2563eb 50%, #14b8a6 100%);
    color: #fff;
    box-shadow:
      0 4px 16px rgba(37, 99, 235, 0.35),
      0 8px 32px rgba(37, 99, 235, 0.18);
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 0.22s ease,
      background 0.22s ease;
  }

  .mobile-panel-switch:hover,
  .mobile-panel-switch:focus-visible {
    transform: translateX(-50%) translateY(-3px);
    box-shadow:
      0 6px 24px rgba(37, 99, 235, 0.42),
      0 12px 40px rgba(37, 99, 235, 0.2);
    outline: none;
  }

  .mobile-panel-switch:active {
    transform: translateX(-50%) translateY(-1px) scale(0.95);
  }

  .mobile-panel-switch.is-previewing {
    background: linear-gradient(145deg, #0f766e 0%, #14b8a6 50%, #2563eb 100%);
  }

  .mobile-panel-switch-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
  }

  .mobile-panel-switch-label {
    max-width: 52px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ── Layout adjustments ── */
  #form-panel.form-panel-container {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom)) !important;
  }

  #preview-wrapper {
    padding-bottom: 7rem;
  }

  body.resmicv-theme .cookie-consent {
    left: 10px;
    right: 10px;
    bottom: calc(96px + env(safe-area-inset-bottom));
    z-index: 1052;
    border-radius: 18px;
    padding: 0.85rem;
  }

  .cv-score-navbar-inner {
    padding: 6px 16px;
  }

  .cv-score-strip {
    grid-template-columns: auto minmax(92px, 1fr) auto auto;
    gap: 7px;
  }

  .cv-score-stat-section,
  .cv-score-stat-ats,
  .cv-score-tip {
    display: none;
  }

  .cv-score-details {
    left: 12px;
    right: 12px;
  }

  .cv-score-details-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .cv-score-details-head span:last-child {
    text-align: left;
  }

  .cv-analysis-grid {
    grid-template-columns: 1fr;
  }

  .cv-share-panel {
    right: 12px;
    bottom: calc(96px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
  }
}

/* ── Hover effects: pointer devices ONLY (no touch) ── */
@media (max-width: 991.98px) and (hover: hover) and (pointer: fine) {
 .fab:hover
 {
transition-duration: 1.0s;
 }
 
  .fab.fab-danger:hover {
    background: transparent;

  }
  .fab.fab-danger:hover .fab-icon,
  .fab.fab-danger:hover .fab-text {
    color: #dc2626;
  }

  .fab.fab-share:hover {
    background: transparent;
  }
  .fab.fab-share:hover .fab-icon,
  .fab.fab-share:hover .fab-text {
    color: #0f766e;
  }

  .fab.fab-scroll-top:hover {
    background: transparent;
  }
  .fab.fab-scroll-top:hover .fab-icon,
  .fab.fab-scroll-top:hover .fab-text {
    color: #334155;
  }

  .fab.fab-primary:hover {
    background: transparent;
  }
  .fab.fab-primary:hover .fab-icon,
  .fab.fab-primary:hover .fab-text {
    color: #1d4ed8;
  }

  .fab:hover .fab-icon {
    transform: translateY(-1px);
  }

  .mobile-panel-switch:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow:
      0 6px 24px rgba(37, 99, 235, 0.42),
      0 12px 40px rgba(37, 99, 235, 0.2);
  }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
  .fab-container {
    border-radius: 20px 20px 0 0;
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
    min-height: 64px;
  }

  .fab,
  .fab.fab-danger,
  .fab.fab-share,
  .fab.fab-scroll-top,
  .fab.fab-primary {
    padding: 5px 2px 8px;
    gap: 2px;
  }

  .fab .fab-text {
    font-size: 0.58rem;
  }

  .fab .fab-icon {
    font-size: 1.05rem;
  }

  .mobile-panel-switch {
    width: 56px;
    height: 56px;
    bottom: calc(36px + env(safe-area-inset-bottom));
    border-width: 4px;
  }

  .mobile-panel-switch-icon {
    font-size: 1rem;
  }

  .mobile-panel-switch-label {
    max-width: 46px;
    font-size: 0.54rem;
  }

  body.resmicv-theme {
    --builder-top-offset: 108px;
    --builder-bottom-offset: 0px;
  }

  body.resmicv-theme .cookie-consent {
    left: 8px;
    right: 8px;
    bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .cv-score-strip {
    grid-template-columns: auto minmax(72px, 1fr) auto;
    gap: 5px;
  }

  .cv-score-strip .cv-score-stat {
    display: none;
  }

  .cv-score-pill {
    min-width: 102px;
  }

  .cv-score-pill,
  .cv-score-tip {
    font-size: 0.68rem;
  }

  .cv-score-pill strong,
  .cv-score-stat strong {
    font-size: 0.76rem;
  }

  .cv-share-input-row {
    flex-direction: column;
  }

  .cv-share-input-row button {
    justify-content: center;
  }
}

/* ============================================
   AI CV CTA STRIP (Index sayfası banner)
   ============================================ */
.aicv-cta-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #7c3aed 100%);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.aicv-cta-strip:hover {
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #8b5cf6 100%);
}

.aicv-cta-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

.aicv-cta-content {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
}

.aicv-cta-text {
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.aicv-cta-desc {
  color: #c4b5fd;
  font-weight: 400;
}

.aicv-cta-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  color: #e9d5ff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.aicv-cta-arrow {
  color: #c4b5fd;
  font-weight: 700;
  font-size: 0.85rem;
  transition: transform 0.25s ease;
  margin-left: 2px;
}

.aicv-cta-strip:hover .aicv-cta-arrow {
  transform: translateX(4px);
  color: #e9d5ff;
}

@media (max-width: 480px) {
  .aicv-cta-desc {
    display: none;
  }
}
