/* ==========================================================================
   CV DOST — SLEEK DARK DESIGN SYSTEM (Gemini Sidebar + Widescreen Fit)
   Obsidian Canvas, Royal Blue Accent, Full-Bleed Video with Edge Cross-Fade
   ========================================================================== */

:root {
  --bg-canvas: #0D0F13;
  --bg-sidebar: #0D0F13;
  --bg-sidebar-hover: rgba(255, 255, 255, 0.08);
  --bg-sidebar-active: #282A2C;
  --bg-card-dark: #191C23;
  --border-subtle: #20242D;
  --border-hover: #2F3542;

  --text-white: #FFFFFF;
  --text-heading: #F3F4F6;
  --text-body: #C4C7C5;
  --text-muted: #8E918F;
  --text-dim: #64748B;

  --accent-blue: #1D64F2;
  --accent-blue-hover: #1554D1;
  --accent-blue-glow: rgba(29, 100, 242, 0.4);

  --accent-pink: #FB7185;
  --accent-pink-glow: rgba(251, 113, 133, 0.3);

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  background-color: var(--bg-canvas);
  color: var(--text-heading);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  /* Complete no-scroll layout */
}

/* ── Overall App Layout (Sidebar + Main Stage) ── */
.app-layout {
  display: flex;
  height: 100vh;
  max-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* ── 1. LEFT DARK SIDEBAR (Curved Right Edge Only) ── */
.dark-sidebar {
  width: 270px;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  background-color: var(--bg-sidebar);
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  padding: 14px 10px 10px 10px;
  flex-shrink: 0;
  z-index: 50;
  overflow-y: auto;
  scrollbar-width: none;
  transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-sidebar::-webkit-scrollbar {
  display: none;
}

/* Collapsed Sidebar */
.dark-sidebar.collapsed {
  margin-left: -270px;
}

/* Sidebar Brand Header (Gemini Style) */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 14px 8px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo-img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.4px;
}

.sidebar-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sidebar-icon-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-icon-action-btn:hover {
  background: var(--bg-sidebar-hover);
  color: var(--text-white);
}

.sidebar-icon-action-btn:active {
  transform: scale(0.92);
}

.sidebar-collapse-btn {
  background: #282A2E;
  border: none;
  color: var(--text-body);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.sidebar-collapse-btn:hover {
  background: #37393E;
  color: var(--text-white);
}

.sidebar-collapse-btn:active {
  transform: scale(0.92);
}

/* Sidebar Navigation Items (Full Pill Shape) */
.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  scrollbar-width: none;
  padding-bottom: 12px;
}

.sidebar-nav::-webkit-scrollbar {
  display: none;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border-radius: 9999px;
  /* Gemini pill */
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item:hover {
  color: var(--text-white);
  background-color: var(--bg-sidebar-hover);
}

/* Active Nav Item: Gemini Subtle Pill */
.nav-item.active {
  background-color: var(--bg-sidebar-active);
  color: var(--text-white);
  font-weight: 600;
}

.nav-icon {
  flex-shrink: 0;
  color: var(--text-body);
  opacity: 0.95;
}

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

/* Category Subheaders (e.g. Notebooks, Recent) */
.sidebar-category-header {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 14px 14px 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.2px;
}

.sidebar-category-action {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.sidebar-category-action:hover {
  color: var(--text-white);
}

/* Sub-items list (e.g. Saved Resumes & Sessions) */
.nav-sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text-body);
  transition: all 0.15s ease;
  gap: 10px;
}

.nav-sub-item:hover {
  color: var(--text-white);
  background-color: var(--bg-sidebar-hover);
}

.nav-sub-item.active-sub {
  background-color: var(--bg-sidebar-active);
  color: var(--text-white);
  font-weight: 600;
}

.sub-item-content {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  flex: 1;
}

.sub-item-lead-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.nav-sub-item:hover .sub-item-lead-icon,
.nav-sub-item.active-sub .sub-item-lead-icon {
  color: var(--text-white);
}

.sub-item-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.sub-item-pin {
  color: var(--text-muted);
  opacity: 0.8;
  flex-shrink: 0;
}

/* ── Bottom Account & Quota Container (Reference Match & Expanded Height) ── */
.sidebar-account-box {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

/* User Profile Row (Exact Gemini Reference) */
.sidebar-user-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 10px;
  text-decoration: none;
  background: transparent;
  transition: background 0.15s ease;
  cursor: pointer;
}

.sidebar-user-profile-row:hover,
.sidebar-user-profile-row.active {
  background: var(--bg-sidebar-hover);
}

.sidebar-user-profile-row.active {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user-profile-row.active .sidebar-settings-btn {
  color: #38bdf8;
}

.sidebar-user-meta-group {
  display: flex;
  align-items: center;
  gap: 11px;
  overflow: hidden;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #23314A 0%, #171E2D 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.sidebar-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-user-text-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 1px;
}

.sidebar-user-display-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.sidebar-user-plan-badge {
  font-size: 0.74rem;
  color: #8EA7C7;
  font-weight: 500;
  white-space: nowrap;
}

.sidebar-settings-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, transform 0.25s ease, background 0.15s ease;
}

.sidebar-settings-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
  transform: rotate(35deg);
}

.sidebar-settings-btn:active {
  transform: scale(0.92) rotate(35deg);
}

/* Quota Usage & Plan Details Box (Sleek Dark Theme) */
.sidebar-quota-card {
  background: #141720;
  background: linear-gradient(180deg, #171a24 0%, #10131b 100%);
  border: 1px solid #232838;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.sidebar-quota-card:hover {
  border-color: #333a4d;
  background: linear-gradient(180deg, #191c28 0%, #121520 100%);
}

.quota-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quota-plan-title {
  display: inline-block;
  font-size: 0.70rem;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}

.quota-plan-title::before {
  display: none;
}

.quota-compact-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quota-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  padding: 2px 0;
}

.stat-label {
  color: #94A3B8;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.stat-val {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 700;
  font-size: 0.73rem;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}

/* Sidebar Logout Button */
.sidebar-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  color: #94A3B8;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 4px;
}

.sidebar-logout-btn svg {
  color: #94A3B8;
  transition: transform 0.2s ease, color 0.2s ease;
}

.sidebar-logout-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #F87171;
}

.sidebar-logout-btn:hover svg {
  color: #F87171;
  transform: translateX(2px);
}

.sidebar-logout-btn:active {
  transform: scale(0.98);
}

/* ── 2. MAIN CONTENT STAGE (Full Bleed Canvas) ── */
.dark-main-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background-color: var(--bg-canvas);
  position: relative;
  overflow: hidden;
}

.dark-sidebar.collapsed~.dark-main-stage {
  margin-left: 0;
}

/* Top utility bar */
.top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 54px;
  flex-shrink: 0;
  z-index: 20;
  position: relative;
  background: #0D0F13;
  border-bottom: none;
}

.top-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Pill tab group matching builder theme */
.top-nav-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 3px;
}

.top-nav-tab {
  color: #8B949E;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  padding: 5px 16px;
  border-radius: 9999px;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.top-nav-tab:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.07);
}

.top-nav-tab.active {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-weight: 600;
}

.sidebar-expand-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 9999px;
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  user-select: none;
  transition: all 0.15s ease;
}

.sidebar-expand-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.dark-sidebar.collapsed~.dark-main-stage .sidebar-expand-btn {
  display: inline-flex;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-white);
  cursor: pointer;
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.top-icon-btn {
  display: none !important;
}

.top-user-pill {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

/* ── 3. HERO SPLIT CANVAS (Zero-Scroll 100vh Viewport Layout) ── */
.hero-split-canvas {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(460px, 520px) 1fr;
  align-items: stretch;
  height: calc(100vh - 54px);
  max-height: calc(100vh - 54px);
  padding: 0;
  margin: 0;
  max-width: none;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: grid-template-columns 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Left Column: Hero Copy & CTA */
.hero-copy-column {
  max-width: 540px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 36px 0 54px;
  z-index: 10;
  box-sizing: border-box;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 3.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text-white);
  letter-spacing: -1.2px;
  margin: 0 0 16px 0;
}

/* The "stylish" accented word exactly from reference */
.accent-stylish-wrap {
  display: inline-flex;
  align-items: baseline;
  color: var(--accent-pink);
  position: relative;
}

.accent-stylish-text {
  color: var(--accent-pink);
  font-style: italic;
  font-family: var(--font-display);
}

.typing-cursor-bar {
  display: inline-block;
  margin-left: 2px;
  color: var(--text-white);
  font-weight: 300;
  animation: blinkCursor 1s step-end infinite;
}

@keyframes blinkCursor {

  from,
  to {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-subtext {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-body);
  margin: 0 0 22px 0;
  max-width: 470px;
}

/* Glowing Blue Rounded Pill Button */
.hero-cta-group {
  margin-bottom: 18px;
}

.btn-create-resume-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-blue);
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 9999px;
  box-shadow: 0 6px 24px var(--accent-blue-glow);
  transition: all 0.2s ease;
}

.btn-create-resume-pill:hover {
  background-color: var(--accent-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(29, 100, 242, 0.55);
}

/* Secondary inline links matching reference */
.hero-inline-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.inline-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.inline-link:hover {
  color: var(--text-white);
  text-decoration: underline;
}

.link-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: var(--border-subtle);
}

/* ── 4. RIGHT SIDE: FULL SCREEN FIT VIDEO SHOWCASE WITH CROSS-FADE ── */
.hero-visual-column {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.video-showcase-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}

/* Ambient glow reflecting the UI blue & pink accents */
.video-ambient-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 50%, rgba(29, 100, 242, 0.25) 0%, rgba(251, 113, 133, 0.12) 50%, transparent 80%);
  filter: blur(60px);
  z-index: 1;
  pointer-events: none;
}

/* Video Container Fit to Full Screen */
.video-container-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: unset;
  border-radius: 0;
  overflow: hidden;
  z-index: 2;
  box-shadow: none;
  background-color: var(--bg-canvas);
  -webkit-mask-image: none;
  mask-image: none;
}

.dashboard-featured-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 0;
  background-color: var(--bg-canvas);
}

#interview-hero-video {
  object-position: right center;
}

/* Cross-fade gradient overlay masks specifically blending into the opposite side color */
.video-edge-fade-left {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(340px, 45%, 680px);
  height: 100%;
  background: linear-gradient(to right,
      var(--bg-canvas) 0%,
      rgba(13, 15, 19, 0.98) 28%,
      rgba(13, 15, 19, 0.82) 52%,
      rgba(13, 15, 19, 0.45) 75%,
      rgba(13, 15, 19, 0.15) 90%,
      transparent 100%);
  pointer-events: none;
  z-index: 5;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-edge-fade-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background: linear-gradient(to bottom, var(--bg-canvas) 0%, transparent 100%);
  pointer-events: none;
  z-index: 5;
}

.video-edge-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background: linear-gradient(to top, var(--bg-canvas) 0%, transparent 100%);
  pointer-events: none;
  z-index: 5;
}

.video-edge-fade-right {
  display: none;
}

/* ── 5. STUDENT CAREER PROFILE MODAL ── */
.profile-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.profile-modal-box {
  background-color: var(--bg-card-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  padding: 28px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
}

.profile-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title-group h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 6px 0;
}

.modal-title-group p {
  font-size: 0.82rem;
  color: var(--text-body);
  margin: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--text-white);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-body);
}

.form-field input,
.form-field select {
  background-color: #12141A;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.85rem;
  color: var(--text-white);
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(29, 100, 242, 0.2);
}

.modal-footer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.btn-save-modal {
  background-color: var(--accent-blue);
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-save-modal:hover {
  background-color: var(--accent-blue-hover);
}

.btn-modal-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.28);
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: auto;
}

.btn-modal-logout:hover {
  background-color: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #F87171;
}

.save-status-msg {
  font-size: 0.82rem;
  color: #10B981;
  font-weight: 600;
}

/* ── 6. RESPONSIVE BREAKPOINTS ── */
@media (max-width: 1080px) {

  html,
  body,
  .app-layout {
    overflow-y: auto;
    height: auto;
    max-height: none;
  }

  .hero-split-canvas {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    padding: 24px 0 0;
    gap: 32px;
  }

  .hero-copy-column {
    max-width: 100%;
    padding: 10px 20px;
  }

  .hero-visual-column {
    position: relative;
    width: 100%;
    height: 380px;
    min-height: 380px;
    margin: 0;
    padding: 0;
  }

  .hero-headline {
    font-size: 2.6rem;
  }

  .video-edge-fade-left {
    display: none;
  }

  .video-edge-fade-top {
    height: 60px;
    background: linear-gradient(to bottom, var(--bg-canvas) 0%, transparent 100%);
  }
}

@media (max-width: 768px) {
  .dark-main-stage {
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
    border: none;
  }

  .dark-sidebar {
    position: fixed;
    top: 0;
    left: -270px;
    height: 100vh;
    max-height: 100vh;
    margin: 0 !important;
    margin-left: 0 !important;
    border-radius: 0;
    border: none;
    z-index: 100;
  }

  .dark-sidebar.collapsed {
    margin-left: 0 !important;
  }

  .dark-sidebar.mobile-open {
    left: 0 !important;
    margin-left: 0 !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
  }

  .mobile-menu-btn {
    display: block;
  }

  .sidebar-expand-btn {
    display: none !important;
  }

  .top-nav-bar {
    padding: 14px 20px;
  }

  .hero-headline {
    font-size: 2.3rem;
  }
}

/* ── CV Dost Support & Help Modal Cards ── */
.support-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.support-channel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.support-channel-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.channel-icon-col {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.whatsapp-accent {
  background: rgba(34, 197, 94, 0.15);
  color: #22C55E;
}

.email-accent {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
}

.faq-accent {
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
}

.channel-info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.channel-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-white);
}

.channel-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Command / Search Overlay Modal ── */
.search-modal-box {
  background-color: #16181D;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.search-input-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.search-input-header input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-white);
  font-size: 1rem;
  font-family: var(--font-body);
}

.search-input-header input::placeholder {
  color: var(--text-dim);
}

.search-kbd-tag {
  font-size: 0.72rem;
  font-family: monospace;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  padding: 3px 6px;
  border-radius: 4px;
}

.search-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  background: transparent;
  transition: background 0.15s ease;
  cursor: pointer;
}

.search-result-item:hover,
.search-result-item.selected {
  background: rgba(255, 255, 255, 0.07);
}

.search-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-white);
}

.search-item-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.search-item-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: #93C5FD;
  background: rgba(59, 130, 246, 0.15);
  padding: 3px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-no-results {
  padding: 30px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ── 8. RESUME TEMPLATES GALLERY & PREVIEW MODAL ── */
.templates-modal-box {
  max-width: 1100px;
  width: 95vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
  overflow: hidden;
}

.templates-modal-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 22px;
  margin-top: 14px;
  min-height: 0;
  flex: 1;
}

.templates-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.template-card-choice {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.template-card-choice:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.template-card-choice.active {
  background: rgba(59, 130, 246, 0.08);
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6, 0 8px 20px rgba(59, 130, 246, 0.15);
}

.template-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.template-badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
}

.template-badge-pill.classic-pill {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}

.template-badge-pill.ivy-pill {
  background: rgba(44, 45, 146, 0.25);
  color: #a5b4fc;
  border: 1px solid rgba(165, 180, 252, 0.35);
}

.template-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0;
}

.template-card-desc {
  font-size: 0.8rem;
  color: var(--text-body);
  line-height: 1.35;
  margin: 0;
}

.template-card-bullets {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.template-card-bullets li::before {
  content: "✓ ";
  color: #10b981;
  font-weight: bold;
}

/* Preview Column */
.template-preview-column {
  display: flex;
  flex-direction: column;
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  min-height: 0;
}

.template-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-subtle);
}

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

.preview-bar-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-white);
}

.preview-bar-tag {
  font-size: 0.72rem;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.preview-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-preview-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-preview-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
}

.btn-preview-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-preview-primary {
  background: #2563eb;
  color: #ffffff;
}

.btn-preview-primary:hover {
  background: #1d4ed8;
}

.template-iframe-container {
  flex: 1;
  min-height: 480px;
  background: #e2e8f0;
  overflow: hidden;
  position: relative;
}

.template-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 860px) {
  .templates-modal-layout {
    grid-template-columns: 1fr;
  }

  .template-iframe-container {
    min-height: 380px;
  }
}

/* ==========================================================================
   CV DOST — TEMPLATE LIBRARY UI (Widescreen Side-Stage Matching Reference)
   ========================================================================== */

.dashboard-stage-view {
  flex: 1;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
}

#view-create-resume {
  background-color: var(--bg-canvas);
  position: relative;
  overflow: hidden;
}

.profile-stage-view {
  background-color: #0c0915;
  overflow: hidden;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Template Library Stage (Side Content Canvas - Dark Theme) */
.tpl-lib-stage {
  background-color: var(--bg-canvas);
  color: var(--text-heading);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #2F3542 #13161C;
}

.tpl-lib-stage::-webkit-scrollbar {
  width: 8px;
}

.tpl-lib-stage::-webkit-scrollbar-track {
  background: #13161C;
}

.tpl-lib-stage::-webkit-scrollbar-thumb {
  background: #2F3542;
  border-radius: 4px;
}

.tpl-lib-stage::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

.tpl-lib-inner-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 44px 80px 44px;
  width: 100%;
}

/* ── Top Header Row ── */
.tpl-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.tpl-header-brand-side {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tpl-sidebar-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tpl-sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.2);
}

.tpl-page-heading {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.4px;
  margin: 0;
  line-height: 1.2;
}

.tpl-badge-beta {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 8px;
  border-radius: 5px;
  line-height: 1;
}

.tpl-header-search-side {
  display: flex;
  align-items: center;
}

.tpl-search-input-box {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #14171F;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 14px;
  width: 270px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.tpl-search-input-box:focus-within {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: #191D26;
}

.tpl-search-svg-icon {
  color: #64748B;
  flex-shrink: 0;
}

.tpl-search-field {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-white);
  width: 100%;
}

.tpl-search-field::placeholder {
  color: #64748B;
}

.tpl-search-clear-btn {
  background: transparent;
  border: none;
  color: #64748B;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 2px;
  line-height: 1;
}

.tpl-search-clear-btn:hover {
  color: var(--text-white);
}

/* ── Vibrant Gradient Hero Banner ── */
.tpl-hero-banner-card {
  border-radius: 20px;
  margin-bottom: 14px;
  padding: 38px 46px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 195px;
  background: linear-gradient(130deg,
      #ec4899 0%,
      #8b5cf6 25%,
      #2563eb 50%,
      #0ea5e9 75%,
      #10b981 100%);
  background-size: 240% 240%;
  animation: tplBannerGradientMove 14s ease-in-out infinite alternate;
  box-shadow: 0 14px 40px -10px rgba(139, 92, 246, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Moving Aurora Color Orbs */
.tpl-hero-banner-card::before,
.tpl-hero-banner-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(50px);
  opacity: 0.8;
  mix-blend-mode: screen;
  z-index: 1;
}

.tpl-hero-banner-card::before {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.9) 0%, rgba(192, 38, 211, 0.6) 40%, transparent 70%);
  top: -80px;
  left: 20%;
  animation: tplOrbDrift1 12s ease-in-out infinite alternate;
}

.tpl-hero-banner-card::after {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.95) 0%, rgba(52, 211, 153, 0.65) 40%, transparent 70%);
  bottom: -90px;
  right: 15%;
  animation: tplOrbDrift2 10s ease-in-out infinite alternate;
}

@keyframes tplBannerGradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes tplOrbDrift1 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(60px, 30px) scale(1.15);
  }

  100% {
    transform: translate(-30px, 45px) scale(0.95);
  }
}

@keyframes tplOrbDrift2 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-50px, -35px) scale(1.2);
  }

  100% {
    transform: translate(35px, -20px) scale(0.9);
  }
}

.tpl-banner-text-column {
  max-width: 580px;
  position: relative;
  z-index: 2;
}

.tpl-banner-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.3px;
  margin: 0 0 10px 0;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.tpl-banner-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.55;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

/* 3D Overlapping Animated Card Preview in Banner */
.tpl-banner-graphic-column {
  position: relative;
  width: 250px;
  height: 135px;
  flex-shrink: 0;
  z-index: 2;
  perspective: 800px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tpl-banner-graphic-column:hover {
  transform: translateY(-4px) scale(1.03);
}

.tpl-mockup-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Back Sheet: Floating Document with Ear Fold */
.tpl-sheet-back {
  width: 120px;
  height: 105px;
  background: #FFFFFF;
  border-radius: 8px;
  position: absolute;
  right: 18px;
  top: 10px;
  transform: rotate(6deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
  animation: tplBackSheetFloat 5.5s ease-in-out infinite alternate;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tpl-banner-graphic-column:hover .tpl-sheet-back {
  transform: rotate(11deg) translateY(-10px) translateX(6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
}

@keyframes tplBackSheetFloat {
  0% {
    transform: rotate(6deg) translateY(0) translateX(0);
  }

  100% {
    transform: rotate(9deg) translateY(-8px) translateX(3px);
  }
}

.tpl-sheet-ear-fold {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 18px 18px 0;
  border-color: transparent #CBD5E1 transparent transparent;
  filter: drop-shadow(-1px 1px 1px rgba(0, 0, 0, 0.12));
}

.tpl-sheet-lines-preview {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 24px 14px 14px 14px;
}

.tpl-mock-line {
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  animation: tplLinePulse 3.5s ease-in-out infinite alternate;
}

.line-wide {
  width: 85%;
  animation-delay: 0s;
}

.line-med {
  width: 65%;
  animation-delay: 0.3s;
}

.line-short {
  width: 45%;
  animation-delay: 0.6s;
}

@keyframes tplLinePulse {
  0% {
    opacity: 0.65;
    background: #E2E8F0;
  }

  100% {
    opacity: 1;
    background: #CBD5E1;
  }
}

/* Front Window: Glass Card with Sheen & Table Grid */
.tpl-window-front {
  width: 175px;
  height: 115px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  position: absolute;
  left: 6px;
  bottom: 0px;
  box-shadow: 0 18px 36px -4px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  animation: tplFrontWindowFloat 4s ease-in-out infinite alternate;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tpl-banner-graphic-column:hover .tpl-window-front {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 44px -4px rgba(0, 0, 0, 0.38);
}

@keyframes tplFrontWindowFloat {
  0% {
    transform: translateY(0);
    box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.28);
  }

  100% {
    transform: translateY(-8px);
    box-shadow: 0 24px 42px -6px rgba(0, 0, 0, 0.36);
  }
}

/* Glass Sheen Sweep Effect Across the Front Card */
.tpl-window-front::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -120%;
  width: 160%;
  height: 220%;
  background: linear-gradient(115deg,
      transparent 0%,
      transparent 42%,
      rgba(255, 255, 255, 0.5) 50%,
      transparent 58%,
      transparent 100%);
  transform: rotate(20deg);
  pointer-events: none;
  animation: tplSheenSweep 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes tplSheenSweep {
  0% {
    transform: translateX(0) rotate(20deg);
  }

  35%,
  100% {
    transform: translateX(240%) rotate(20deg);
  }
}

.tpl-window-dot-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tpl-wdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: tplDotPulse 2.8s ease-in-out infinite alternate;
}

.wdot-blue {
  background-color: #3B82F6;
  animation-delay: 0s;
}

.wdot-purple {
  background-color: #8B5CF6;
  animation-delay: 0.35s;
}

.wdot-coral {
  background-color: #EF4444;
  animation-delay: 0.7s;
}

@keyframes tplDotPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.15);
    opacity: 1;
    filter: drop-shadow(0 0 3px currentColor);
  }
}

.tpl-window-grid-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.tpl-grid-tr {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.tpl-grid-td {
  height: 15px;
  background: #F1F5F9;
  border-radius: 3px;
  border: 1px solid #E2E8F0;
  transition: all 0.25s ease;
  animation: tplGridCellPulse 4s ease-in-out infinite alternate;
}

.tpl-grid-th .tpl-grid-td {
  background: #E2E8F0;
  height: 13px;
  animation-delay: 0.2s;
}

.tpl-grid-tr:nth-child(2) .tpl-grid-td:nth-child(1) {
  animation-delay: 0.1s;
}

.tpl-grid-tr:nth-child(2) .tpl-grid-td:nth-child(2) {
  animation-delay: 0.25s;
}

.tpl-grid-tr:nth-child(2) .tpl-grid-td:nth-child(3) {
  animation-delay: 0.4s;
}

.tpl-grid-tr:nth-child(2) .tpl-grid-td:nth-child(4) {
  animation-delay: 0.55s;
}

.tpl-grid-tr:nth-child(3) .tpl-grid-td:nth-child(1) {
  animation-delay: 0.3s;
}

.tpl-grid-tr:nth-child(3) .tpl-grid-td:nth-child(2) {
  animation-delay: 0.45s;
}

.tpl-grid-tr:nth-child(3) .tpl-grid-td:nth-child(3) {
  animation-delay: 0.6s;
}

.tpl-grid-tr:nth-child(3) .tpl-grid-td:nth-child(4) {
  animation-delay: 0.75s;
}

@keyframes tplGridCellPulse {
  0% {
    background-color: #F1F5F9;
  }

  50% {
    background-color: #E0E7FF;
    border-color: #C7D2FE;
  }

  100% {
    background-color: #F1F5F9;
  }
}

/* Reduced Motion Preference Accessibility */
@media (prefers-reduced-motion: reduce) {

  .tpl-hero-banner-card,
  .tpl-hero-banner-card::before,
  .tpl-hero-banner-card::after,
  .tpl-sheet-back,
  .tpl-window-front,
  .tpl-window-front::after,
  .tpl-wdot,
  .tpl-mock-line,
  .tpl-grid-td {
    animation: none !important;
  }
}

/* ── Information Notice Bar (Dark Theme) ── */
.tpl-info-notice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #14171F;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 18px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  gap: 16px;
}

.tpl-notice-left-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
}

.tpl-notice-icon-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  flex-shrink: 0;
}

.tpl-notice-msg {
  font-size: 0.85rem;
  color: var(--text-body);
}

.tpl-contact-pill-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-white);
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tpl-contact-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ── Category Filter Pills Row (Dark Theme) ── */
.tpl-category-pills-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tpl-cat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 18px;
  border-radius: 9999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.tpl-cat-pill:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.tpl-cat-pill.active {
  background: #282A2C;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text-white);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.tpl-cat-count {
  font-size: 0.76rem;
  color: #64748B;
  font-weight: 500;
}

.tpl-cat-pill.active .tpl-cat-count {
  color: #94A3B8;
}

/* ── Templates Cards Grid (3 Columns) ── */
.tpl-cards-container-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1200px) {
  .tpl-cards-container-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .tpl-banner-graphic-column {
    display: none;
  }

  .tpl-lib-inner-container {
    padding: 20px 20px 60px 20px;
  }

  .tpl-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .tpl-search-input-box {
    width: 100%;
  }

  .tpl-category-pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 20px;
    padding-bottom: 4px;
  }

  .tpl-category-pills-row::-webkit-scrollbar {
    display: none;
  }

  .tpl-cat-pill {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .tpl-info-notice-bar {
    padding: 10px 14px;
    gap: 12px;
    margin-bottom: 18px;
  }

  .tpl-notice-msg {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .tpl-contact-pill-btn {
    padding: 5px 12px;
    font-size: 0.76rem;
  }
}

/* ── Individual Template Card (Dark Theme) ── */
.tpl-single-card {
  background: #14171F;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background 0.2s ease;
}

.tpl-single-card:hover {
  transform: translateY(-4px);
  background: #171B26;
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 18px 36px -8px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(99, 102, 241, 0.2);
}

/* Background watermark layer of the template file */
.tpl-card-bg-preview {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
  opacity: 0.10;
  filter: blur(1.5px);
  pointer-events: none;
  z-index: 0;
  border-radius: 16px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tpl-single-card:hover .tpl-card-bg-preview {
  opacity: 0.18;
  transform: scale(1.03);
}

.tpl-card-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 23, 31, 0.55) 0%, rgba(20, 23, 31, 0.96) 100%);
  pointer-events: none;
  z-index: 1;
  border-radius: 16px;
}

/* Visual thumbnail window at the top of the card */
.tpl-card-preview-viewport {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 185px;
  border-radius: 10px;
  overflow: hidden;
  background: #0B0E17;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  margin-bottom: 14px;
}

.tpl-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tpl-single-card:hover .tpl-card-thumb-img,
.tpl-card-preview-viewport:hover .tpl-card-thumb-img {
  transform: scale(1.05);
}

.tpl-card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 23, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tpl-card-preview-viewport:hover .tpl-card-thumb-overlay,
.tpl-single-card:hover .tpl-card-thumb-overlay {
  opacity: 1;
}

.tpl-thumb-zoom-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #2563EB;
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
  transform: translateY(4px);
  transition: transform 0.2s ease;
}

.tpl-card-preview-viewport:hover .tpl-thumb-zoom-pill {
  transform: translateY(0);
}

.tpl-card-body-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Stylized Document Icon with Attached Bottom-Right Badge */
.tpl-card-icon-container {
  width: 44px;
  height: 48px;
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}

.tpl-doc-shape-svg {
  width: 36px;
  height: 42px;
  display: block;
}

.tpl-doc-sub-badge {
  position: absolute;
  bottom: 0px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border: 1.5px solid #14171F;
}

.tpl-single-card:hover .tpl-doc-sub-badge {
  border-color: #181C26;
}

.tpl-doc-sub-badge.badge-blue {
  background-color: #3B82F6;
}

.tpl-doc-sub-badge.badge-red {
  background-color: #EF4444;
}

.tpl-doc-sub-badge.badge-green {
  background-color: #10B981;
}

.tpl-doc-sub-badge.badge-purple {
  background-color: #8B5CF6;
}

/* Card Typography (Dark Theme) */
.tpl-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px 0;
}

.tpl-card-heading {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0;
  line-height: 1.35;
}

.tpl-card-ats-pill {
  font-size: 0.7rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.tpl-card-snippet {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 18px 0;
  min-height: 38px;
  flex: 1;
}

/* Card Footer with Hover Action Buttons */
.tpl-card-footer-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
  min-height: 28px;
}

.tpl-card-bullet-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #8E918F;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tpl-card-actions-group {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.18s ease;
  position: relative;
  z-index: 5;
}

.tpl-single-card:hover .tpl-card-actions-group {
  opacity: 1;
  transform: translateY(0);
}

.tpl-action-btn-sm {
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tpl-action-btn-sm.btn-preview {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tpl-action-btn-sm.btn-preview:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}

.tpl-action-btn-sm.btn-use {
  background: #1D64F2;
  color: #FFFFFF;
  border: 1px solid #1D64F2;
}

.tpl-action-btn-sm.btn-use:hover {
  background: #1554D1;
}

/* ── Empty State (Dark Theme) ── */
.tpl-search-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #14171F;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin-top: 20px;
}

.empty-state-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 14px 0 6px 0;
}

.empty-state-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 20px 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   ENLARGED PREVIEW MODAL & STUDIO CANVAS
   ══════════════════════════════════════════════════════════════════════════ */
.enlarged-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 7, 13, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInEnlarged 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInEnlarged {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.enlarged-modal-box {
  width: 95vw;
  max-width: 1280px;
  height: 94vh;
  background: #0E131F;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.enlarged-modal-bar {
  height: 64px;
  padding: 0 22px;
  background: #141A28;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.enlarged-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.enlarged-title-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.enlarged-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.enlarged-tag {
  font-size: 0.74rem;
  color: #94A3B8;
  white-space: nowrap;
}

.enlarged-switcher-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.enlarged-pill-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.enlarged-pill-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.enlarged-pill-btn.active {
  background: #3B82F6;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.enlarged-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Zoom controls */
.enlarged-zoom-controls {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 2px 6px;
  gap: 4px;
}

.zoom-btn {
  background: transparent;
  border: none;
  color: #CBD5E1;
  width: 26px;
  height: 26px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.zoom-level-text {
  font-size: 0.75rem;
  color: #CBD5E1;
  min-width: 42px;
  text-align: center;
  font-weight: 600;
}

.zoom-btn-reset {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.zoom-btn-reset:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.enlarged-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.enlarged-action-btn.btn-fullscreen {
  background: rgba(255, 255, 255, 0.06);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.enlarged-action-btn.btn-fullscreen:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.enlarged-action-btn.btn-use-primary {
  background: #3B82F6;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.enlarged-action-btn.btn-use-primary:hover {
  background: #2563EB;
  transform: translateY(-1px);
}

.enlarged-close-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.enlarged-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* Stage Viewport */
.enlarged-stage-viewport {
  flex: 1;
  min-height: 0;
  background: radial-gradient(circle at 50% 30%, #151B28 0%, #080A10 100%);
  overflow-y: auto;
  overflow-x: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 36px 20px 60px 20px;
}

.enlarged-sheet-container {
  width: 820px;
  min-height: 1140px;
  background: #FFFFFF;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
  transform-origin: top center;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.enlarged-sheet-container iframe {
  width: 100%;
  height: 1160px;
  border: none;
  display: block;
  background: #FFFFFF;
}

@media (max-width: 960px) {
  .enlarged-switcher-pills {
    display: none;
  }

  .enlarged-title-group {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .enlarged-modal-backdrop {
    padding: 0;
  }

  .enlarged-modal-box {
    width: 100vw;
    height: 100%;
    height: 100dvh;
    max-width: 100vw;
    border-radius: 0;
    border: none;
  }

  .enlarged-modal-bar {
    position: relative;
    height: auto;
    min-height: 52px;
    padding: 8px 12px 10px 12px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    background: #141A28;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .enlarged-bar-left {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 38px;
  }

  .enlarged-title-group {
    max-width: 100% !important;
    width: 100%;
    min-width: 0;
  }

  .enlarged-title {
    font-size: 0.95rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #FFFFFF;
  }

  .enlarged-tag {
    font-size: 0.70rem;
    color: #94A3B8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
    display: block;
  }

  .enlarged-bar-right {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .enlarged-close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #CBD5E1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    z-index: 10;
    transition: background 0.15s ease;
  }

  .enlarged-close-btn:hover,
  .enlarged-close-btn:active {
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
  }

  .enlarged-zoom-controls {
    padding: 2px 4px;
    gap: 2px;
    flex-shrink: 0;
  }

  .zoom-btn {
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
  }

  .zoom-level-text {
    font-size: 0.72rem;
    min-width: 34px;
  }

  .zoom-btn-reset {
    font-size: 0.68rem;
    padding: 2px 5px;
  }

  .enlarged-action-btn.btn-fullscreen {
    padding: 6px 9px;
    font-size: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .enlarged-action-btn.btn-fullscreen svg {
    width: 15px;
    height: 15px;
    margin: 0;
  }

  .enlarged-action-btn.btn-use-primary {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
  }

  .enlarged-stage-viewport {
    padding: 12px 6px 24px 6px;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── Propose Custom Template Modal Styles ── */
.propose-modal-box {
  max-width: 520px;
  width: 92%;
  background: var(--bg-card-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.propose-modal-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
}

.propose-highlight-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(29, 100, 242, 0.08);
  border: 1px solid rgba(29, 100, 242, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
}

.propose-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(29, 100, 242, 0.18);
  color: #60A5FA;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.propose-banner-text h4 {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
}

.propose-banner-text p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-body);
}

.propose-banner-text strong {
  color: #93C5FD;
}

.propose-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 16px;
}

.propose-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.83rem;
  color: var(--text-body);
  line-height: 1.4;
}

.propose-step-item strong {
  color: var(--text-white);
}

.propose-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.propose-email-copy-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.82rem;
}

.propose-email-label {
  color: var(--text-muted);
}

.propose-email-address {
  font-family: 'JetBrains Mono', monospace;
  color: #60A5FA;
  font-size: 0.82rem;
}

.propose-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-white);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.propose-copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.propose-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.propose-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.primary-gmail-btn {
  background: var(--accent-blue);
  color: #FFFFFF;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px var(--accent-blue-glow);
}

.primary-gmail-btn:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
}

.secondary-app-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-body);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.secondary-app-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
}