/* Animated border trace for nav CTA */
    @property --border-angle {
      syntax: "<angle>";
      initial-value: 0deg;
      inherits: false;
    }

    @keyframes spin-border {
      to { --border-angle: 360deg; }
    }

    html, body {
      overflow-x: hidden;
    }

    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      background: #ffffff;
      color: #1f2937;
      line-height: 1.65;
    }

    .container {
      max-width: 1100px;
      margin: auto;
      padding: 40px 20px;
    }

    h1, h2, h3 {
      color: #111827;
      line-height: 1.3;
    }

    h1 {
      font-size: 2.6rem;
    }

    h2 {
      font-size: 2rem;
      margin-top: 70px;
    }

    p {
      font-size: 1.05rem;
      max-width: 900px;
    }

    /* =============================================
       Ultra Premium Hero Section
       ============================================= */
    .hero {
      position: relative;
      background: linear-gradient(160deg, #0f172a 0%, #1e293b 40%, #0f172a 100%);
      color: white;
      padding: 192px 48px 64px;
      text-align: center;
      overflow: hidden;
    }

    /* Radial blue glow — centered behind heading */
    .hero::before {
      content: '';
      position: absolute;
      top: 40%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 700px;
      height: 500px;
      background: radial-gradient(ellipse, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.06) 40%, transparent 70%);
      pointer-events: none;
    }

    /* Subtle grid texture overlay */
    .hero::after {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
      background-size: 48px 48px;
      pointer-events: none;
    }

    .hero-inner {
      position: relative;
      z-index: 1;
      max-width: 1280px;
      margin: 0 auto;
    }

    /* Small label pill */
    .hero-label {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: #60a5fa;
      background: rgba(59, 130, 246, 0.1);
      border: 1px solid rgba(59, 130, 246, 0.2);
      padding: 6px 20px;
      border-radius: 100px;
      margin-bottom: 28px;
    }

    .hero h1 {
      font-size: 3rem;
      font-weight: 800;
      line-height: 1.1;
      letter-spacing: -0.03em;
      color: #ffffff;
      margin: 0 0 8px 0;
    }

    .hero-title-accent {
      display: block;
      font-style: italic;
      font-weight: 700;
      color: #60a5fa;
    }

    .hero p {
      margin: 20px auto 0;
      font-size: 1.05rem;
      line-height: 1.7;
      color: rgba(148, 163, 184, 0.9);
      letter-spacing: 0.01em;
    }

    /* Gradient divider line below hero content */
    .hero-divider {
      width: 60px;
      height: 2px;
      margin: 32px auto 0;
      background: linear-gradient(90deg, transparent, #3b82f6, transparent);
      border-radius: 2px;
    }

    /* Mobile hero adjustments */
    @media (max-width: 768px) {
      .hero {
        padding: 148px 20px 44px;
      }
      .hero h1 {
        font-size: 2rem;
      }
      .hero p {
        font-size: 0.95rem;
      }
      .hero .cta-btn.primary {
        max-width: 100%;
        width: auto;
        padding: 16px 28px;
        box-sizing: border-box;
      }
      .hero .cta-group {
        padding: 0;
      }
    }

    /*.cta-btn {
      display: inline-block;
      margin-top: 25px;
      padding: 16px 34px;
      background: #22c55e;
      color: white;
      font-weight: bold;
      border-radius: 10px;
      text-decoration: none;
      font-size: 1.1rem;
    }

    .cta-btn:hover {
      background: #16a34a;
    }*/

    .features {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 25px;
      margin-top: 50px;
    }

    .feature-box {
      background: white;
      padding: 25px;
      border-radius: 14px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    }

    .video-section {
      margin-top: 70px;
      text-align: center;
    }

    .video-wrapper {
      position: relative;
      padding-bottom: 56.25%;
      height: 0;
      overflow: hidden;
      border-radius: 16px;
      box-shadow: 0 15px 40px rgba(0,0,0,0.12);
      margin-top: 25px;
    }

    .video-wrapper iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }

    .footer {
      background: #0f172a;
      color: #94a3b8;
      text-align: center;
      padding: 32px 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .footer p {
      max-width: none;
      margin: 0 auto;
      font-size: 0.88rem;
    }

    .footer a {
      color: #94a3b8;
      text-decoration: none;
      transition: color 0.25s ease;
    }

    .footer a:hover {
      color: #ffffff;
    }

    .footer-divider {
      color: rgba(148, 163, 184, 0.3);
    }
	
    /* =============================================
       Ultra Premium Light Glassmorphism Navigation
       ============================================= */

    header {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
      box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8),
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 12px 48px rgba(0, 0, 0, 0.04);
      width: 100%;
      position: fixed;
      top: 0;
      left: 0;
      z-index: 1000;
    }

    header::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg,
        transparent 0%,
        rgba(59, 130, 246, 0.4) 15%,
        rgba(37, 99, 235, 0.7) 50%,
        rgba(59, 130, 246, 0.4) 85%,
        transparent 100%
      );
    }

    header .container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: nowrap;
    }

    /* Logo */
    .nav-logo {
      font-size: 1.5rem;
      font-weight: 800;
      color: #0f172a;
      text-decoration: none;
      letter-spacing: -0.03em;
      transition: all 0.25s ease;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .nav-logo:hover {
      color: #2563eb;
    }

    /* Desktop Nav */
    header nav {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    header nav a {
      text-decoration: none;
      color: #475569;
      font-weight: 500;
      font-size: 1rem;
      letter-spacing: -0.01em;
      padding: 8px 16px;
      border-radius: 8px;
      transition: all 0.25s ease;
      position: relative;
      white-space: nowrap;
    }

    header nav a:hover {
      color: #1e293b;
      background: rgba(59, 130, 246, 0.08);
    }

    header nav a.active {
      color: #2563eb;
      background: rgba(59, 130, 246, 0.1);
      font-weight: 600;
    }

    header nav a.nav-cta {
      background:
        linear-gradient(135deg, #d4a843 0%, #f5d675 25%, #e8c252 50%, #d4a843 75%, #c49a3a 100%) padding-box,
        conic-gradient(from var(--border-angle), transparent 60%, #8b6914 78%, #a67c1a 88%, #8b6914 98%, transparent 100%) border-box;
      color: #1a1207;
      font-weight: 700;
      font-size: 0.88rem;
      padding: 8px 24px;
      border-radius: 8px;
      letter-spacing: 0.03em;
      border: 2px solid transparent;
      text-shadow: 0 1px 0 rgba(245, 214, 117, 0.4);
      transition: transform 0.25s ease, box-shadow 0.3s ease;
      display: flex;
      align-items: center;
      animation: spin-border 3s linear infinite;
    }

    header nav a.nav-cta:hover {
      color: #0f0d04;
      background:
        linear-gradient(135deg, #e8c252 0%, #fde68a 25%, #f5d675 50%, #e8c252 75%, #d4a843 100%) padding-box,
        conic-gradient(from var(--border-angle), transparent 60%, #8b6914 78%, #a67c1a 88%, #8b6914 98%, transparent 100%) border-box;
      transform: translateY(-1px);
      box-shadow: 0 4px 18px rgba(212, 168, 67, 0.35);
    }

    /* Hamburger Toggle */
    .nav-toggle {
      display: none;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 40px;
      height: 40px;
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 0;
      border-radius: 10px;
      transition: background 0.2s ease;
      flex-shrink: 0;
      z-index: 1001;
      position: relative;
    }

    .nav-toggle:hover {
      background: rgba(59, 130, 246, 0.08);
    }

    .nav-toggle span {
      display: block;
      width: 20px;
      height: 2px;
      background: #334155;
      border-radius: 2px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: absolute;
    }

    .nav-toggle span:nth-child(1) { transform: translateY(-6px); }
    .nav-toggle span:nth-child(2) { opacity: 1; }
    .nav-toggle span:nth-child(3) { transform: translateY(6px); }

    /* Hamburger → X morph */
    .nav-toggle.open span:nth-child(1) {
      transform: rotate(45deg);
    }
    .nav-toggle.open span:nth-child(2) {
      opacity: 0;
      transform: scaleX(0);
    }
    .nav-toggle.open span:nth-child(3) {
      transform: rotate(-45deg);
    }

    /* Mobile overlay backdrop */
    .nav-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.4);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      z-index: 998;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .nav-overlay.visible {
      opacity: 1;
    }

    /* Mobile Nav — responsive below */
    @media (max-width: 1024px) {
      .nav-toggle {
        display: flex;
      }

      .nav-overlay {
        display: block;
        pointer-events: none;
      }

      .nav-overlay.visible {
        pointer-events: auto;
      }

      header nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100dvh;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 24px 32px;
        gap: 2px;
        box-shadow:
          -8px 0 32px rgba(0, 0, 0, 0.1),
          -1px 0 0 rgba(255, 255, 255, 0.8);
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        /* Prevent fixed nav from affecting flex layout */
        flex: 0 0 0px;
        min-width: 0;
      }

      header nav.open {
        transform: translateX(0);
      }

      header nav a {
        font-size: 1rem;
        padding: 12px 16px;
        border-radius: 10px;
        color: #334155;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.2s ease, opacity 0.3s ease, transform 0.3s ease;
      }

      header nav.open a {
        opacity: 1;
        transform: translateX(0);
      }

      /* Staggered reveal */
      header nav.open a:nth-child(1) { transition-delay: 0.08s; }
      header nav.open a:nth-child(2) { transition-delay: 0.12s; }
      header nav.open a:nth-child(3) { transition-delay: 0.16s; }
      header nav.open a:nth-child(4) { transition-delay: 0.20s; }
      header nav.open a:nth-child(5) { transition-delay: 0.24s; }
      header nav.open a:nth-child(6) { transition-delay: 0.28s; }
      header nav.open a:nth-child(7) { transition-delay: 0.32s; }

      header nav a:hover {
        background: rgba(59, 130, 246, 0.08);
      }

      header nav a.active {
        background: rgba(59, 130, 246, 0.1);
      }

      /* Nav CTA button mobile */
      header nav a.nav-cta {
        background:
          linear-gradient(135deg, #d4a843 0%, #f5d675 25%, #e8c252 50%, #d4a843 75%, #c49a3a 100%) padding-box,
          conic-gradient(from var(--border-angle), transparent 60%, #8b6914 78%, #a67c1a 88%, #8b6914 98%, transparent 100%) border-box;
        color: #1a1207;
        font-weight: 700;
        text-align: center;
        margin-top: 10px;
        padding: 12px 14px;
        border-radius: 8px;
        border: 2px solid transparent;
        letter-spacing: 0.03em;
        text-shadow: 0 1px 0 rgba(245, 214, 117, 0.4);
        animation: spin-border 3s linear infinite;
      }

      header nav a.nav-cta:hover {
        background:
          linear-gradient(135deg, #e8c252 0%, #fde68a 25%, #f5d675 50%, #e8c252 75%, #d4a843 100%) padding-box,
          conic-gradient(from var(--border-angle), transparent 60%, #8b6914 78%, #a67c1a 88%, #8b6914 98%, transparent 100%) border-box;
      }

      /* Sign In button mobile */
      .btn-sign-in {
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
        align-self: stretch;
        text-align: center;
        padding: 12px 20px;
        border-radius: 10px;
        font-size: 1rem;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.2s ease, opacity 0.3s ease, transform 0.3s ease;
      }

      header nav.open .btn-sign-in {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0.32s;
      }

      .user-menu {
        margin-left: 0;
        margin-top: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 14px 12px 12px 16px;
        border-radius: 10px;
        align-self: stretch;
      }

      .user-menu span {
        font-size: 1rem;
        padding-right: 0;
        padding-bottom: 2px;
      }

      .user-menu button {
        font-size: 0.95rem;
        padding: 10px 16px;
        text-align: center;
        width: 100%;
        border-radius: 8px;
      }

      .user-menu .btn-dashboard {
        color: #60a5fa;
        background: rgba(96, 165, 250, 0.1);
      }

      .user-menu .btn-dashboard:hover {
        background: rgba(96, 165, 250, 0.18);
      }
    }
	
	
	.cta-group, .cta-group-bottom, .cta-group-bottom-home {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Primary button styling */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 420px;

  /*padding: 1rem 1.5rem;*/
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;

  border-radius: 10px;
  text-decoration: none;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover (desktop only) */
@media (hover: hover) {
  .cta-btn:hover {
    /*transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);*/
  }
}

/* Tablet & desktop layout */
@media (min-width: 640px) {
  .cta-group {
    flex-direction: row;
    justify-content: center;
  }
  
  .cta-group-bottom-home {
    flex-direction: row;
    justify-content: left;
  }

  /*.cta-btn {
    width: auto;
    min-width: 260px;
  }*/
  
  .cta-btn img {
  display: block;
  width: 100%;      /* fill parent */
  height: auto;
  }
}

/* Mobile layout */
@media (max-width: 639px) {

  .cta-group {
	align-items:center;
	flex-wrap: wrap;
  }
  
  .cta-group-bottom {
	align-items:center;
	flex-wrap: wrap;
  }
  
  .cta-group-bottom-home {
	  align-items:center;
  }
  
  .container-main {
	  padding: 40px 20px 0;
  }
  
  .cta-section {
	  margin-top:40px !important;
  }

}

/* ************************ Blog CSS ************************ */

    /*header {
      background: #ffffff;
      border-bottom: 1px solid #e5e7eb;
    }*/

    /* nav and nav a styles defined in header section above */

    .cta-btn {
      display: inline-block;
      /*padding: 10px 18px;*/
      /*background: #22c55e;*/
      color: white;
      font-weight: bold;
      border-radius: 10px;
      text-decoration: none;
      font-size: 1rem;
    }

    .cta-btn:hover {
      /*background: #16a34a;*/
    }

    .blog-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 32px;
      margin-top: 40px;
    }

    .blog-card {
      display: flex;
      flex-direction: column;
      background: #ffffff;
      padding: 0;
      border-radius: 16px;
      border: 1px solid rgba(0, 0, 0, 0.06);
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04),
                  0 4px 16px rgba(0, 0, 0, 0.04);
      transition: all 0.25s ease;
      text-decoration: none;
      color: inherit;
      overflow: hidden;
      position: relative;
    }

    .blog-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08),
                  0 16px 48px rgba(0, 0, 0, 0.08);
      border-color: rgba(59, 130, 246, 0.15);
    }

    .blog-card-accent {
      height: 4px;
      background: linear-gradient(90deg, #3b82f6, #60a5fa);
      border-radius: 0;
      transition: background 0.25s ease;
    }

    .blog-card:hover .blog-card-accent {
      background: linear-gradient(90deg, #2563eb, #3b82f6);
    }

    .blog-card-body {
      padding: 28px;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }

    .blog-card-category {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.72rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #3b82f6;
      margin-bottom: 14px;
    }

    .blog-card-category::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #3b82f6;
    }

    .blog-card h3 {
      margin: 0 0 12px 0;
      font-size: 1.15rem;
      font-weight: 700;
      color: #1e293b;
      line-height: 1.4;
      transition: color 0.25s ease;
    }

    .blog-card:hover h3 {
      color: #0f172a;
    }

    .blog-card p {
      font-size: 0.92rem;
      color: #64748b;
      line-height: 1.65;
      margin: 0;
      flex-grow: 1;
    }

    .blog-card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 20px;
      padding-top: 16px;
      border-top: 1px solid #f1f5f9;
    }

    .blog-card-read {
      font-weight: 600;
      font-size: 0.88rem;
      color: #0f172a;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: color 0.25s ease, gap 0.25s ease;
    }

    .blog-card:hover .blog-card-read {
      color: #3b82f6;
      gap: 12px;
    }

    .blog-card-arrow {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #f1f5f9;
      transition: all 0.25s ease;
      flex-shrink: 0;
    }

    .blog-card-arrow svg {
      width: 14px;
      height: 14px;
      color: #64748b;
      transition: color 0.25s ease, transform 0.25s ease;
    }

    .blog-card:hover .blog-card-arrow {
      background: #0f172a;
    }

    .blog-card:hover .blog-card-arrow svg {
      color: white;
      transform: translateX(2px);
    }

    .cta-section {
      background: linear-gradient(135deg, #2563eb, #1e3a8a);
      color: white;
      padding: 40px 20px;
      margin-top: 20px;
      text-align: center;
      /*border-radius: 16px;*/
    }
	
	.cta-section h2 {
		margin-top:0px;
	}

    .cta-section p {
      font-size: 1.15rem;
      margin: 20px auto;
    }

    /* Premium Blog CTA Section */
    .cta-section-blog {
      position: relative;
      background: linear-gradient(160deg, #0f172a 0%, #1e293b 40%, #0f172a 100%);
      color: white;
      text-align: center;
      padding: 72px 20px 64px;
      margin-top: 56px;
      overflow: hidden;
    }

    .cta-section-blog::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 120%;
      height: 120%;
      background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12) 0%, rgba(37, 99, 235, 0.04) 40%, transparent 70%);
      pointer-events: none;
    }

    .cta-section-blog::after {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
      background-size: 48px 48px;
      pointer-events: none;
    }

    .cta-section-blog .cta-inner {
      position: relative;
      z-index: 1;
      max-width: 900px;
      margin: 0 auto;
    }

    .cta-section-blog .cta-label {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: rgba(96, 165, 250, 0.95);
      border: 1px solid rgba(96, 165, 250, 0.25);
      background: rgba(96, 165, 250, 0.08);
      padding: 6px 20px;
      border-radius: 100px;
      margin-bottom: 28px;
    }

    .cta-section-blog h2 {
      color: #ffffff;
      font-size: 2.4rem;
      font-weight: 800;
      line-height: 1.15;
      letter-spacing: -0.03em;
      margin: 0 0 8px 0;
    }

    .cta-section-blog .cta-title-accent {
      display: block;
      font-style: italic;
      font-weight: 700;
      color: #60a5fa;
    }

    .cta-section-blog p {
      font-size: 1.05rem;
      line-height: 1.7;
      color: rgba(148, 163, 184, 0.9);
      letter-spacing: 0.01em;
      margin: 20px auto 0;
      max-width: 700px;
    }

    .cta-section-blog .cta-divider {
      width: 60px;
      height: 2px;
      margin: 32px auto;
      background: linear-gradient(90deg, transparent, #3b82f6, transparent);
      border-radius: 2px;
    }

    .cta-section-blog .cta-buttons {
      display: flex;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap;
    }

    .cta-section-blog .cta-button-primary {
      background: white;
      color: #1e293b;
      padding: 16px 36px;
      border-radius: 100px;
      text-decoration: none;
      font-weight: 700;
      font-size: 1.05rem;
      transition: transform 0.2s, box-shadow 0.2s;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
      min-width: 224px;
      text-align: center;
      box-sizing: border-box;
    }

    .cta-section-blog .cta-button-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    .cta-section-blog .cta-button-secondary {
      background: transparent;
      color: rgba(148, 163, 184, 0.95);
      padding: 16px 36px;
      border-radius: 100px;
      text-decoration: none;
      font-weight: 600;
      font-size: 1.05rem;
      border: 1px solid rgba(148, 163, 184, 0.3);
      transition: background 0.2s, border-color 0.2s, color 0.2s;
      min-width: 224px;
      text-align: center;
      box-sizing: border-box;
    }

    .cta-section-blog .cta-button-secondary:hover {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(148, 163, 184, 0.6);
      color: white;
    }

    @media (max-width: 768px) {
      .cta-section-blog h2 {
        font-size: 1.8rem;
      }

      .cta-section-blog .cta-buttons {
        flex-direction: column;
        align-items: center;
      }

      .cta-section-blog .cta-button-primary,
      .cta-section-blog .cta-button-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
      }
    }

    @media (max-width: 768px) {
      .container-main h1 {
        font-size: 1.8rem;
      }

      .container-main > p {
        font-size: 1rem;
      }

      .blog-card-body {
        padding: 24px;
      }
    }

    @media (max-width: 480px) {
      .container-main {
        padding: 32px 16px 0;
      }

      .container-main h1 {
        font-size: 1.5rem;
      }

      .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 32px;
      }

      .blog-card {
        border-radius: 12px;
      }

      .blog-card-body {
        padding: 22px;
      }

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

      .footer {
        padding: 28px 16px;
      }
    }

	.container-main {
		max-width: 1100px;
		margin: auto;
		padding: 40px 20px 0;
	}

		.container-blog-list {
		max-width: 1100px;
		margin: auto;
		padding: 0px 20px;
	}

    .blog-badge {
      display: inline-block;
      background: #0f172a;
      color: white;
      padding: 5px 14px;
      border-radius: 6px;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      margin-bottom: 16px;
    }

    .container-main h1 {
      font-size: 2.2rem;
      font-weight: 800;
      background: linear-gradient(135deg, #1e293b, #3b82f6);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 12px;
      line-height: 1.2;
    }

    .container-main h1::after {
      content: '';
      display: block;
      width: 48px;
      height: 3px;
      background: linear-gradient(90deg, #3b82f6, #1e293b);
      border-radius: 2px;
      margin-top: 16px;
    }

    .container-main > p {
      color: #64748b;
      font-size: 1.05rem;
      max-width: 640px;
      line-height: 1.7;
      margin-top: 16px;
    }

	/* New Editions 17012026 */

/* Platform colors */

/* Hover (desktop only) */
@media (hover: hover) {
  .cta-btn:hover {
    /*transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);*/
  }
}

/* Tablet & desktop layout */
@media (min-width: 640px) {
  .cta-group {
    flex-direction: row;
    justify-content: center;
  }
  
  .cta-group-bottom {
    flex-direction: row;
    justify-content: center;
  }

  /*.cta-btn {
    width: auto;
    min-width: 260px;
  }*/
  
}

/* Mobile layout */
@media (max-width: 639px) {

}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  font-size: 0.85rem;
  margin-bottom: 32px;
  padding-top: 0;
}

.breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb li {
  display: inline;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin: 0 10px;
  color: #cbd5e1;
}

.breadcrumb a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.breadcrumb a:hover {
  color: #1d4ed8;
}

.breadcrumb li[aria-current="page"] {
  color: #94a3b8;
}

/* Mobile breadcrumb adjustments */
@media (max-width: 639px) {
  .breadcrumb-nav {
    font-size: 0.8rem;
    margin-bottom: 24px;
  }

  .breadcrumb li:not(:last-child)::after {
    margin: 0 8px;
  }
}

/* Article Metadata (Publication Date) */
.article-header {
  margin-bottom: 30px;
}

.article-meta {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 10px 0 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.article-meta .separator {
  color: #d1d5db;
}

.article-meta time {
  font-style: italic;
}

.article-meta .author {
  font-weight: 500;
}

/* =============================================
   Premium Blog Article Header
   ============================================= */

.blog-article-header {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  background: #ffffff;
  padding: 44px 40px 36px;
  margin: 0 0 40px 0;
  border-radius: 14px;
  border-left: 4px solid #2563eb;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.06),
    0 6px 16px rgba(0, 0, 0, 0.04),
    0 12px 32px rgba(0, 0, 0, 0.03);
}

.blog-article-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, rgba(59, 130, 246, 0.3), transparent);
  border-radius: 2px;
}

.blog-article-header-inner {
  position: relative;
  z-index: 1;
}

.blog-article-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.06);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.blog-article-header h1 {
  color: #0f172a;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 20px 0;
}

.blog-article-intro {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #475569;
  margin: 0 0 24px 0;
  max-width: none;
}

.blog-article-meta {
  font-size: 0.85rem;
  color: #6b7280;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.blog-article-meta time {
  font-style: normal;
}

.blog-article-meta .separator {
  color: #d1d5db;
}

.blog-article-meta .author {
  font-weight: 500;
}

@media (max-width: 768px) {
  .blog-article-header {
    padding: 32px 20px 28px;
    margin: 0 0 30px 0;
    border-radius: 0;
    border-left: 3px solid #2563eb;
  }

  .blog-article-header::after {
    left: 20px;
    right: 20px;
  }

  .blog-article-header h1 {
    font-size: 1.75rem;
  }

  .blog-article-intro {
    font-size: 1rem;
  }
}

/* Blog Related Resources Section */
.blog-related-resources {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid #e5e7eb;
}

.blog-related-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0 0 20px 0;
}

.blog-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-related-pill {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 8px 18px;
  border-radius: 100px;
  text-decoration: none;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.blog-related-pill:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
  color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.blog-related-pill:active {
  transform: translateY(0);
  box-shadow: none;
}

@media (max-width: 768px) {
  .blog-related-resources {
    margin-top: 40px;
    padding-top: 30px;
  }
  .blog-related-pill {
    font-size: 0.88rem;
    padding: 7px 16px;
  }
}

@media (max-width: 480px) {
  .blog-related-resources {
    margin-top: 32px;
    padding-top: 24px;
  }
  .blog-related-links {
    gap: 8px;
  }
  .blog-related-pill {
    font-size: 0.85rem;
    padding: 7px 14px;
  }
}

/* =============================================
   Template Selection Styles
   ============================================= */

.template-section {
  display: none;
  animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: 20px;
}

.template-section.active {
  display: block;
}

.template-section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #1e293b, #3b82f6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  text-align: center;
}

.template-section .section-subtitle {
  color: #64748b;
  text-align: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.template-section .template-instruction {
  color: #475569;
  text-align: center;
  margin-bottom: 28px;
  font-size: 0.88rem;
  background: #f8fafc;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

/* Page Count Warning Banner */
.page-count-warning {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 25px;
  animation: slideIn 0.4s ease-out;
}

.page-count-warning .warning-icon {
  font-size: 1.5rem;
  color: #d97706;
  flex-shrink: 0;
}

.page-count-warning .warning-content {
  flex: 1;
}

.page-count-warning .warning-content strong {
  display: block;
  color: #92400e;
  font-size: 1rem;
  margin-bottom: 5px;
}

.page-count-warning .warning-content p {
  color: #a16207;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* Warning severity (amber - default for too long or missing sections) */
.page-count-warning.severity-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
}

.page-count-warning.severity-warning .warning-icon {
  color: #d97706;
}

.page-count-warning.severity-warning .warning-content strong {
  color: #92400e;
}

.page-count-warning.severity-warning .warning-content p {
  color: #a16207;
}

/* Info severity (blue/teal - for sparse content suggestion) */
.page-count-warning.severity-info {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-color: #0ea5e9;
}

.page-count-warning.severity-info .warning-icon {
  color: #0284c7;
}

.page-count-warning.severity-info .warning-content strong {
  color: #0c4a6e;
}

.page-count-warning.severity-info .warning-content p {
  color: #075985;
}

/* Condense CV Button */
.condense-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: auto;
}

.condense-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.condense-btn:active {
  transform: translateY(0);
}

.condense-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.template-card {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.template-card:hover {
  border-color: #3b82f6;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15);
}

.template-card.selected {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.template-card.selected::after {
  content: '\2713'; /* Unicode checkmark */
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  animation: checkAppear 0.3s ease;
}

@keyframes checkAppear {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.template-thumbnail {
  width: 100%;
  aspect-ratio: 210 / 297;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.template-thumbnail img,
.template-thumbnail iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.template-thumbnail-placeholder {
  color: #9ca3af;
  font-size: 0.9rem;
}

.template-name {
  font-weight: 600;
  color: #111827;
  font-size: 1rem;
  margin-bottom: 4px;
}

.template-description {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.4;
}

/* Premium Templates Section */
.premium-templates-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  margin-bottom: 8px;
}

.premium-templates-header h3 {
  font-size: 1.2rem;
  color: #374151;
  margin: 0;
}

.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.premium-badge.selected {
  background: linear-gradient(135deg, #10b981, #059669);
}

.premium-badge.unlocked {
  background: linear-gradient(135deg, #10b981, #059669);
}

.premium-subtitle {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.premium-grid {
  margin-top: 15px;
}

/* Premium template card styling */
.template-card.premium {
  position: relative;
  border-color: #e9d5ff;
}

.template-card.premium:hover {
  border-color: #8B5CF6;
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.2);
}

.template-card.premium.selected {
  border-color: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

.template-card.premium.selected::after {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

/* Premium badge - prominent by default */
.premium-crown {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  color: white;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.premium-placeholder {
  color: #8B5CF6 !important;
}

/* Hide ALL overlays from premium templates - they should look like standard templates */
.template-card.premium .premium-lock-overlay {
  display: none !important;
}

/* Make premium badge even more prominent when selected */
.template-card.premium.selected .premium-crown {
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.5);
  animation: pulse-premium 2s ease-in-out infinite;
}

@keyframes pulse-premium {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Add "Pro Plan" indicator after template name for selected premium */
.template-card.premium.locked.selected .template-name::after {
  content: ' • Pro Plan';
  color: #7C3AED;
  font-weight: 600;
  font-size: 0.85em;
}

/* Premium Modal */
.premium-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.premium-modal.active {
  display: flex;
}

.premium-modal-content {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04),
              0 4px 16px rgba(0, 0, 0, 0.06),
              0 24px 64px rgba(0, 0, 0, 0.08);
  animation: modalSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-height: 90vh;
  overflow-y: auto;
}

.premium-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 1.3rem;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  line-height: 1;
}

.premium-modal-close:hover {
  background: #e2e8f0;
  color: #475569;
}

.premium-modal-header {
  text-align: center;
  margin-bottom: 16px;
}

.premium-modal-icon {
  display: inline-block;
  background: #0f172a;
  color: white;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.premium-modal-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e293b, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.premium-modal-description {
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.premium-modal-beta-note {
  font-size: 1.05rem;
  font-weight: 600;
  color: #059669;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.premium-modal-templates {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.premium-modal-template {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: border-color 0.25s ease;
}

.premium-modal-template:hover {
  border-color: #cbd5e1;
}

.premium-template-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.premium-template-info {
  flex: 1;
}

.premium-template-info strong {
  display: block;
  color: #1e293b;
  font-size: 0.9rem;
  margin-bottom: 1px;
}

.premium-template-info span {
  color: #94a3b8;
  font-size: 0.8rem;
}

.premium-modal-pricing {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

.premium-price-tag {
  margin-bottom: 8px;
}

.premium-price {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

.premium-price-note {
  display: block;
  color: #64748b;
  font-size: 0.85rem;
  margin-top: 2px;
}

.premium-total {
  color: #475569;
  font-size: 0.9rem;
}

.premium-total span:first-child {
  font-weight: 600;
}

.premium-savings {
  display: inline;
  color: #16a34a;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 4px;
}

.premium-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-premium-upgrade {
  width: 100%;
  padding: 14px 24px;
  background: #0f172a;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.btn-premium-upgrade:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
}

.btn-premium-skip {
  width: 100%;
  padding: 12px 24px;
  background: transparent;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-premium-skip:hover {
  background: #f8fafc;
  color: #475569;
  border-color: #cbd5e1;
}

.btn-premium-annual {
  width: 100%;
  padding: 14px 24px;
  background: transparent;
  color: #0f172a;
  border: 2px solid #0f172a;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.btn-premium-annual:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}

.premium-annual-badge {
  display: inline-block;
  background: #059669;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.03em;
}

/* Mobile responsive for premium modal */
@media (max-width: 480px) {
  .premium-modal-content {
    padding: 24px 20px;
    border-radius: 14px;
  }

  .premium-modal-header h3 {
    font-size: 1.3rem;
  }

  .premium-price {
    font-size: 0.95rem;
  }

  .btn-premium-upgrade {
    padding: 14px 20px;
    font-size: 1rem;
  }

  .premium-template-icon {
    width: 36px;
    height: 36px;
  }
}

.template-preview-container {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
}

.template-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.template-preview-header h3 {
  font-size: 1.1rem;
  color: #374151;
  margin: 0;
}

.preview-frame-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #4a4a4a;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  gap: 20px;
  box-sizing: border-box;
}

.preview-frame-wrapper .preview-loading {
  color: #9ca3af;
  font-size: 1rem;
  padding: 40px;
}

.preview-frame-wrapper .preview-page {
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: calc(100% - 40px);
  width: auto;
  height: auto;
  flex-shrink: 0;
}

.preview-frame-wrapper .preview-page-number {
  color: #9ca3af;
  font-size: 0.85rem;
  margin-top: -10px;
  margin-bottom: 10px;
}

.template-ats-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #059669;
  background: #ecfdf5;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #a7f3d0;
  white-space: nowrap;
}

.template-ats-badge::before {
  content: '✓';
}

/* =============================================
   Two-Row Template Layout (Horizontal Strip + Preview)
   ============================================= */

.template-two-row-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Template Strip Container (Row 1) */
.template-strip-container {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
}

.template-strip-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 0 5px;
}

.strip-label-free {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.01em;
}

.strip-label-premium {
  font-size: 0.82rem;
  font-weight: 700;
  color: #7C3AED;
  display: flex;
  align-items: center;
  gap: 8px;
}

.premium-badge-small {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  color: white;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Horizontal Scrollable Template Strip */
.template-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 12px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
  /* Enable touch/swipe scrolling */
  touch-action: pan-x;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  /* Click-and-drag scrolling */
  cursor: grab;
  user-select: none;
}

.template-strip.active-drag {
  cursor: grab;
}

.template-strip.dragging {
  cursor: grabbing;
  scroll-behavior: auto; /* Disable smooth scroll during drag for immediate feedback */
}

/* Prevent text selection and card interaction during drag */
.template-strip.dragging .template-strip-card {
  pointer-events: none;
}

.template-strip::-webkit-scrollbar {
  height: 4px;
}

.template-strip::-webkit-scrollbar-track {
  background: transparent;
}

.template-strip::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 2px;
}

.template-strip::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

/* Individual Template Strip Card */
.template-strip-card {
  flex-shrink: 0;
  width: 150px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.template-strip-card:hover {
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
}

.template-strip-card.selected {
  border-color: #0f172a;
  box-shadow: 0 0 0 2px #0f172a;
}

.template-strip-card.selected::after {
  content: '\2713'; /* Unicode checkmark */
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: #0f172a;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.3);
}

/* Premium Strip Card */
.template-strip-card.premium {
  border-color: #e9d5ff;
}

.template-strip-card.premium:hover {
  border-color: #8B5CF6;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.12);
}

.template-strip-card.premium.selected {
  border-color: #7C3AED;
  box-shadow: 0 0 0 2px #7C3AED;
}

.template-strip-card.premium.selected::after {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

.strip-premium-badge {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  color: white;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

/* Strip Thumbnail */
.strip-thumbnail {
  width: 100%;
  aspect-ratio: 210 / 297;
  background: #f8fafc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  margin-bottom: 8px;
}

.strip-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.strip-thumbnail-placeholder {
  color: #9ca3af;
  font-size: 0.65rem;
  text-align: center;
}

.strip-thumbnail-placeholder.premium-placeholder {
  color: #a78bfa;
}

.strip-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Strip Divider */
.template-strip-divider {
  flex-shrink: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, #e2e8f0, transparent);
  margin: 0 6px;
  align-self: stretch;
}

/* Scroll Hint */
.template-strip-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  color: #94a3b8;
  font-size: 0.78rem;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  color: #64748b;
  transition: all 0.2s ease;
}

.scroll-arrow:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #1e293b;
}

.scroll-hint-text {
  color: #94a3b8;
  font-weight: 500;
}

/* Large Preview Area (Row 2) */
.template-large-preview {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
}

.large-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.preview-template-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.preview-template-info p {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
}

.large-preview-frame {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  min-height: 300px;
  max-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #f1f5f9;
}

.large-preview-frame img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.large-preview-frame .preview-loading {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Preview pagination for multi-page CVs */
.large-preview-frame .preview-page {
  max-width: 100%;
  margin-bottom: 20px;
}

.large-preview-frame .preview-page:last-child {
  margin-bottom: 0;
}

.template-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.btn-template-proceed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 44px;
  background: #0f172a;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.btn-template-proceed:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
}

.btn-template-proceed::after {
  content: '\2192'; /* Unicode right arrow */
  font-family: Arial, sans-serif;
}

/* Responsive template grid */
@media (max-width: 768px) {
  .template-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .template-card {
    padding: 12px;
  }

  .template-name {
    font-size: 0.9rem;
  }

  .template-description {
    font-size: 0.8rem;
  }

  .preview-frame-wrapper {
    height: 400px;
  }
}

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

  .preview-frame-wrapper {
    height: 350px;
  }

  .template-actions {
    flex-direction: column;
  }

  .btn-template-proceed {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================
   Two-Row Layout Responsive Styles
   ============================================= */

/* Tablet (768px and below) */
@media (max-width: 768px) {
  .template-strip-container {
    padding: 15px;
  }

  .template-strip-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .template-strip-card {
    width: 145px;
  }

  .strip-name {
    font-size: 0.75rem;
  }

  .large-preview-frame {
    max-height: 350px;
    padding: 12px;
  }

  .large-preview-header {
    flex-direction: column;
    gap: 10px;
  }

  .preview-template-info h3 {
    font-size: 1.1rem;
  }

  .scroll-hint-text {
    display: none;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .template-two-row-layout {
    gap: 15px;
  }

  .template-strip-container {
    padding: 12px;
    border-radius: 12px;
  }

  .template-strip {
    gap: 10px;
    padding: 8px 3px;
  }

  .template-strip-card {
    width: 120px;
    padding: 8px;
    border-radius: 10px;
  }

  .strip-thumbnail {
    border-radius: 4px;
  }

  .strip-name {
    font-size: 0.65rem;
  }

  .strip-premium-badge {
    font-size: 0.55rem;
    padding: 1px 6px;
  }

  .template-strip-card.selected::after {
    width: 18px;
    height: 18px;
    font-size: 9px;
    top: -6px;
    right: -6px;
  }

  .template-large-preview {
    padding: 15px;
    border-radius: 12px;
  }

  .large-preview-frame {
    max-height: 300px;
    padding: 10px;
    border-radius: 8px;
  }

  .preview-template-info h3 {
    font-size: 1rem;
  }

  .preview-template-info p {
    font-size: 0.85rem;
  }

  .template-strip-scroll-hint {
    margin-top: 8px;
  }

  .scroll-arrow {
    width: 24px;
    height: 24px;
    font-size: 1rem;
  }

  .template-actions {
    margin-top: 15px;
  }

  .btn-template-proceed {
    padding: 14px 30px;
    font-size: 1rem;
  }
}

/* Template Thumbnail Loading State */
.template-thumbnail-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: #6b7280;
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}

.template-thumbnail-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

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

/* Thumbnail iframe styling */
.template-thumbnail iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  background: white;
}

/* =============================================
   Authentication Styles
   ============================================= */

/* Sign In Button in Nav — Dark Compact (matches user-menu) */
.btn-sign-in {
  background: #0f172a;
  color: rgba(255,255,255,0.9);
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease;
  margin-left: 20px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: none;
}

.btn-sign-in:hover {
  background: #1e293b;
  transform: none;
  box-shadow: none;
}

/* User Menu — Dark Compact */
.user-menu {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 20px;
  background: #0f172a;
  border-radius: 10px;
  padding: 8px 8px 8px 18px;
  transition: background 0.25s ease;
}

.user-menu:hover {
  background: #1e293b;
}

.user-menu span {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  padding-right: 12px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.user-menu button {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  padding: 7px 14px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.user-menu button:hover {
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.15);
}

/* Dashboard Button — Subtle blue accent */
.user-menu .btn-dashboard {
  color: #60a5fa;
  background: transparent;
  text-transform: none;
  letter-spacing: -0.01em;
}

.user-menu .btn-dashboard:hover {
  color: #93bbfd;
  background: rgba(96, 165, 250, 0.1);
}

/* Auth Modal */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  overflow-y: auto;
  box-sizing: border-box;
}

.auth-modal-content {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  max-width: 420px;
  width: 100%;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04),
              0 4px 16px rgba(0, 0, 0, 0.06),
              0 24px 64px rgba(0, 0, 0, 0.08);
  animation: modalSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 1.3rem;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  line-height: 1;
}

.auth-modal-close:hover {
  background: #e2e8f0;
  color: #475569;
}

.auth-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f0f9ff;
  border: 2px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.auth-icon-circle svg {
  width: 24px;
  height: 24px;
  color: #3b82f6;
}

.auth-modal-content h2 {
  margin: 0 0 6px 0;
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e293b, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.auth-modal-content > p {
  margin: 0 0 28px 0;
  color: #64748b;
  font-size: 0.92rem;
  text-align: center;
}

/* Auth Form */
.auth-form-group {
  margin-bottom: 20px;
}

.auth-form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
}

.auth-form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
  color: #1e293b;
  background: #ffffff;
}

.auth-form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-form-group input::placeholder {
  color: #94a3b8;
}

.auth-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  border-left: 3px solid #dc2626;
}

.auth-btn-primary {
  width: 100%;
  padding: 14px;
  background: #0f172a;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.auth-btn-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
}

.auth-btn-primary:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-btn-link {
  background: none;
  border: none;
  color: #3b82f6;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 16px;
  display: block;
  width: 100%;
  text-align: center;
  transition: color 0.25s ease;
}

.auth-btn-link:hover {
  color: #1d4ed8;
  text-decoration: none;
}

.auth-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.85rem;
  color: #94a3b8;
  text-align: center;
}

.auth-note strong {
  color: #1e293b;
  font-weight: 600;
}

/* =============================================
   Primary CTA Button (AI CV Writer)
   ============================================= */

.cta-btn.primary {
  display: inline-block;
  background: #ffffff;
  color: #1d4ed8;
  width: 100%;
  max-width: 420px;
  padding: 16px 44px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.cta-btn.primary:active {
  transform: translateY(0px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

@media (max-width: 639px) {
  .cta-btn.primary {
    width: 100%;
    max-width: 300px;
    padding: 16px 28px;
    font-size: 1.05rem;
  }
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 30px 0 20px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.auth-divider span {
  padding: 0 15px;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
}

/* New User Info - Emphasized */
.auth-new-user-info {
  text-align: center;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.6;
  margin: 0;
  background: #f0f9ff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
}

.auth-new-user-info a {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background: #2563eb;
  color: white;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.auth-new-user-info a:hover {
  background: #1d4ed8;
  text-decoration: none;
}

/* Subscriber Dashboard */
/* =============================================
   Subscriber Dashboard — Design C
   ============================================= */
.subscriber-dashboard {
  margin-top: 30px;
  margin-bottom: 30px;
}

.dashboard-gradient-border {
  background: #0f172a;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.dashboard-title-group {}

.dashboard-welcome {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.dashboard-label {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.dashboard-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f1f5f9, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-plan-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.25);
  flex-shrink: 0;
}

.dashboard-plan-icon {
  font-size: 1rem;
}

.dashboard-plan-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 4px;
  margin-bottom: 28px;
}

.dashboard-metric {
  padding: 20px 16px;
  text-align: center;
}

.dashboard-metric-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 12px 0;
}

.dashboard-metric-num {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1;
}

.dashboard-metric-num.gradient-a {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-metric-num.gradient-b {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-metric-num.gradient-c {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-metric-sub {
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.dashboard-metric-detail {
  color: #64748b;
  font-size: 0.58rem;
}

.dashboard-gen-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.dashboard-gen-ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: conic-gradient(#8b5cf6 0deg, #3b82f6 360deg, rgba(255,255,255,0.05) 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-gen-ring-inner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
}

.dashboard-gen-info {
  flex: 1;
}

.dashboard-gen-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.dashboard-gen-sub {
  font-size: 0.75rem;
  color: #64748b;
}

.dashboard-gen-btn {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: #fff;
  transition: all 0.2s;
  white-space: nowrap;
}

.dashboard-gen-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

/* Mobile Responsive Auth */
@media (max-width: 1024px) {
  .btn-sign-in {
    padding: 12px 20px;
    font-size: 1rem;
    margin-left: 0;
    border-radius: 10px;
  }

  .user-menu {
    margin-left: 0;
    padding: 12px 10px 10px 14px;
    border-radius: 9px;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    align-self: stretch;
  }

  .user-menu span {
    font-size: 0.95rem;
    padding-right: 0;
    padding-bottom: 2px;
  }

  .user-menu button {
    font-size: 0.92rem;
    padding: 9px 14px;
    width: 100%;
    border-radius: 8px;
    text-align: center;
  }

  .user-menu .btn-dashboard {
    background: rgba(96, 165, 250, 0.1);
  }

  .user-menu .btn-dashboard:hover {
    background: rgba(96, 165, 250, 0.18);
  }

  .btn-sign-in {
    width: 100%;
    align-self: stretch;
    text-align: center;
  }

  .auth-modal-content {
    padding: 32px 24px;
    margin: 16px;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-metric-divider {
    display: none;
  }

  .dashboard-gen-section {
    flex-wrap: wrap;
  }

  .dashboard-gen-btn {
    width: 100%;
    text-align: center;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 12px;
  }

  .dashboard-gradient-border {
    padding: 24px 20px;
  }

  .dashboard-manage-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-upgrade-plan,
  .btn-cancel-sub {
    width: 100%;
    justify-content: center;
  }

  .dashboard-cancelled-banner {
    flex-wrap: wrap;
  }

  .btn-resubscribe {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 4px;
  }
}

/* Auth modal responsive - small screens */
@media (max-width: 480px) {
  .auth-modal-content {
    padding: 28px 20px;
  }

  .auth-icon-circle {
    width: 48px;
    height: 48px;
  }

  .auth-icon-circle svg {
    width: 20px;
    height: 20px;
  }

  .auth-modal-content h2 {
    font-size: 1.2rem;
  }
}

/* =============================================
   Manage Subscription Section (Dashboard)
   ============================================= */
.dashboard-manage-section {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 28px;
}

.dashboard-manage-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dashboard-manage-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-manage-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-upgrade-plan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.btn-upgrade-plan:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn-upgrade-plan svg {
  width: 16px;
  height: 16px;
}

.btn-upgrade-plan .upgrade-save {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 2px;
}

.btn-cancel-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.btn-cancel-sub:hover {
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
}

.btn-cancel-sub svg {
  width: 14px;
  height: 14px;
}

/* Cancelled state banner */
.dashboard-cancelled-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  margin-bottom: 20px;
}

.dashboard-cancelled-banner svg {
  width: 20px;
  height: 20px;
  color: #fbbf24;
  flex-shrink: 0;
}

.dashboard-cancelled-banner .cancelled-text {
  font-size: 0.85rem;
  color: #fbbf24;
  font-weight: 600;
}

.dashboard-cancelled-banner .cancelled-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 2px;
}

.btn-resubscribe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: #fff;
  transition: all 0.2s;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-resubscribe:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

/* Cancel Subscription Confirmation Modal */
.cancel-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cancel-modal-overlay.active {
  display: flex;
}

.cancel-modal {
  background: #ffffff;
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  padding: 36px 32px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cancel-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fef2f2;
  border: 2px solid #fecaca;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.cancel-modal-icon svg {
  width: 28px;
  height: 28px;
  color: #ef4444;
}

.cancel-modal h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.cancel-modal p {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 8px;
}

.cancel-modal .cancel-detail {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px 0 24px;
  font-size: 0.85rem;
  color: #0f172a;
  font-weight: 600;
}

.cancel-modal .cancel-detail span {
  color: #64748b;
  font-weight: 400;
}

.cancel-modal-btns {
  display: flex;
  gap: 10px;
}

.cancel-modal-btns button {
  flex: 1;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel-keep {
  background: #0f172a;
  color: #fff;
  border: none;
}

.btn-cancel-keep:hover {
  background: #1e293b;
}

.btn-cancel-confirm {
  background: #fff;
  color: #ef4444;
  border: 1px solid #fecaca;
}

.btn-cancel-confirm:hover {
  background: #fef2f2;
  border-color: #ef4444;
}

/* =============================================
   Notification Dialog (Success/Error)
   ============================================= */
.notification-dialog-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10001;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.notification-dialog-overlay.active {
  display: flex;
}

.notification-dialog {
  background: #1e293b;
  border-radius: 16px;
  padding: 32px 28px 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.notification-dialog-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.notification-dialog-icon.success {
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid rgba(16, 185, 129, 0.3);
}

.notification-dialog-icon.error {
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid rgba(239, 68, 68, 0.3);
}

.notification-dialog-icon svg {
  width: 28px;
  height: 28px;
}

.notification-dialog-icon.success svg {
  color: #10b981;
}

.notification-dialog-icon.error svg {
  color: #ef4444;
}

.notification-dialog h3 {
  color: #f1f5f9;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.notification-dialog p {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 20px;
}

.btn-notification-ok {
  display: inline-block;
  padding: 10px 36px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: #0f172a;
  color: #f1f5f9;
  transition: all 0.2s ease;
}

.btn-notification-ok:hover {
  background: #334155;
}

/* =============================================
   CV History Section (Subscriber Dashboard)
   ============================================= */
.cv-history-section {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cv-history-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.cv-history-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cv-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cv-history-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s;
}

.cv-history-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 92, 246, 0.2);
}

.cv-history-thumb {
  width: 64px;
  height: 85px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cv-history-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cv-history-template {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cv-history-pro-badge {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  letter-spacing: 0.5px;
}

.cv-history-date {
  font-size: 0.7rem;
  color: #4b5563;
}

.cv-history-download-btn {
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: transparent;
  color: #a78bfa;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cv-history-download-btn:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: #8b5cf6;
}

.cv-history-empty {
  color: #64748b;
  font-size: 0.9rem;
  text-align: center;
  padding: 20px 0;
  margin: 0;
}

/* =============================================
   Sign-In Toast Notification
   ============================================= */
/* =============================================
   Ultra Premium Sign-In Toast
   ============================================= */
.premium-toast {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 0 16px;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.premium-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.premium-toast-inner {
  max-width: 600px;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-left: 3px solid;
  border-image: linear-gradient(180deg, #3b82f6, #06b6d4) 1;
}



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

.premium-toast-title {
  color: #f1f5f9;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.premium-toast-email {
  color: #94a3b8;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.premium-toast-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.premium-toast-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 0 0 4px;
  line-height: 1;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.premium-toast-close:hover {
  color: #e2e8f0;
}

/* CV History responsive */
@media (max-width: 480px) {
  .cv-history-item {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .cv-history-thumb {
    width: 48px;
    height: 64px;
  }

  .cv-history-download-btn {
    width: 100%;
    text-align: center;
  }

  .premium-toast-inner {
    gap: 10px;
    padding: 14px 16px;
  }

  .premium-toast-badge {
    display: none;
  }
}

/* =============================================
   CSS Custom Properties
   ============================================= */
:root {
  --ease-entrance: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-rest: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.05);
}

/* =============================================
   Premium Hero Section (Blog + Shared)
   ============================================= */
.premium-hero {
  position: relative;
  background: #0f172a;
  padding: 192px 20px 64px;
  overflow: hidden;
  animation: heroFadeIn 0.8s var(--ease-entrance) forwards;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-gradient-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(59,130,246,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(96,165,250,0.1) 0%, transparent 50%),
              #0f172a;
  animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.1) translateY(-20px); }
}

.hero-grid-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(148,163,184,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
}

.hero-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.3), rgba(96,165,250,0.1));
  filter: blur(80px);
  opacity: 0.15;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbDrift 20s ease-in-out infinite;
}

@keyframes orbDrift {
  0%, 100% { transform: translate(-50%, -50%); }
  33% { transform: translate(-40%, -60%); }
  66% { transform: translate(-60%, -40%); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.premium-hero .hero-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #60a5fa;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  animation: labelBlurIn 0.6s var(--ease-entrance) 0.2s forwards;
  text-transform: none;
  letter-spacing: normal;
}

@keyframes labelBlurIn {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-headline {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin: 0 0 24px;
  text-shadow: 0 0 40px rgba(59,130,246,0.3);
  clip-path: inset(0 100% 0 0);
  animation: clipReveal 0.8s var(--ease-entrance) 0.4s forwards;
}

@keyframes clipReveal {
  to { clip-path: inset(0 0% 0 0); }
}

.hero-accent {
  display: block;
  color: #60a5fa;
  font-style: italic;
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(148,163,184,0.95);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s var(--ease-entrance) 0.7s forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 16px 40px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(59,130,246,0.4), 0 12px 36px rgba(59,130,246,0.2);
  opacity: 0;
  transform: scale(0.9);
  animation: scaleIn 0.5s var(--ease-bounce) 1s forwards;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-hover);
}

@keyframes scaleIn {
  to { opacity: 1; transform: scale(1); }
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 3s infinite;
}

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

.hero-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(59,130,246,0.5), 0 16px 48px rgba(59,130,246,0.3);
}

.premium-hero .hero-divider {
  width: 0;
  max-width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #60a5fa, transparent);
  margin: 60px auto 0;
  animation: lineExpand 0.8s var(--ease-entrance) 1.2s forwards;
}

@keyframes lineExpand {
  to { width: 100%; }
}

/* =============================================
   Premium CTA Section (Home + Blog Shared)
   ============================================= */
.cta-section-home {
  padding: 80px 20px;
  background: #0f172a;
  position: relative;
  overflow: hidden;
}

.cta-section-home::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12) 0%, rgba(37, 99, 235, 0.04) 40%, transparent 70%);
  pointer-events: none;
}

.cta-section-home::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.cta-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 40%, rgba(59,130,246,0.15) 0%, transparent 60%);
  animation: gradientShift 20s ease-in-out infinite;
}

.cta-grid-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(148,163,184,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
}

.cta-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.25), rgba(96,165,250,0.1));
  filter: blur(80px);
  opacity: 0.2;
  top: 30%;
  right: 10%;
  animation: orbDrift 20s ease-in-out infinite;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #60a5fa;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.cta-section-home h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin: 0 0 24px;
}

.cta-content .cta-accent {
  color: #60a5fa;
  font-style: italic;
}

.cta-section-home p {
  font-size: 1.1rem;
  color: rgba(148,163,184,0.95);
  line-height: 1.7;
  margin: 0 0 40px;
  max-width: none;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-primary {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 16px 40px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(59,130,246,0.4), 0 12px 36px rgba(59,130,246,0.2);
  transition: all 0.3s var(--ease-hover);
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 3s infinite;
}

.cta-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(59,130,246,0.5), 0 16px 48px rgba(59,130,246,0.3);
}

.cta-secondary {
  display: inline-block;
  background: transparent;
  color: rgba(148,163,184,0.9);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 16px 40px;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid rgba(148,163,184,0.3);
  transition: all 0.3s var(--ease-hover);
}

.cta-secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(148,163,184,0.5);
  color: white;
}

/* =============================================
   Blog Post Body Enhancements
   ============================================= */

/* Typography overrides for article content */
article h2 {
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #0f172a;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(59,130,246,0.15);
}

article h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1e293b;
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.15rem;
}

article p {
  line-height: 1.75;
  color: #374151;
  margin-bottom: 16px;
}

article li {
  line-height: 1.7;
  color: #374151;
  margin-bottom: 8px;
  padding-left: 4px;
}

article ul {
  list-style: none;
  padding-left: 0;
}

article ul li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #3b82f6;
  border-radius: 50%;
  margin-right: 12px;
  vertical-align: middle;
  margin-bottom: 2px;
}

/* Callout Boxes */
.soft-box {
  background: linear-gradient(135deg, rgba(59,130,246,0.06) 0%, rgba(59,130,246,0.03) 100%);
  border-left: 3px solid #3b82f6;
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 0.97rem;
  line-height: 1.7;
  color: #1e293b;
}

.soft-box strong {
  color: #1e40af;
  font-weight: 700;
}

.tip-box {
  background: linear-gradient(135deg, rgba(16,185,129,0.06) 0%, rgba(16,185,129,0.03) 100%);
  border-left: 3px solid #10b981;
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 0.97rem;
  line-height: 1.7;
  color: #1e293b;
}

.tip-box strong {
  color: #047857;
  font-weight: 700;
}

/* Table of Contents */
.blog-toc {
  background: #f8fafc;
  border: 1px solid rgba(59,130,246,0.12);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 0 0 36px 0;
}

.blog-toc-title {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 14px;
}

.blog-toc-list {
  list-style: none;
  counter-reset: toc-counter;
  padding: 0;
  margin: 0;
}

.blog-toc-list li {
  counter-increment: toc-counter;
  margin-bottom: 10px;
  padding-left: 0;
}

.blog-toc-list li::before {
  content: counter(toc-counter) ".";
  color: #3b82f6;
  font-weight: 700;
  margin-right: 10px;
  font-size: 0.92rem;
}

.blog-toc-list a {
  color: #334155;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.blog-toc-list a:hover {
  color: #3b82f6;
  padding-left: 4px;
}

/* Reading Time */
.reading-time {
  color: #3b82f6;
  font-weight: 600;
}

/* Blog Images */
.blog-hero-image,
.blog-article-image:first-of-type {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  margin: 0 0 32px 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  display: block;
}

.blog-section-image,
.blog-mid-image,
.blog-article-image {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  margin: 32px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: block;
}

/* Social Share */
.blog-share {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  margin: 32px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.blog-share-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.blog-share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  background: white;
  color: #475569;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  transition: all 0.2s var(--ease-hover);
}

.blog-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.blog-share-linkedin:hover {
  background: #0077b5;
  color: white;
  border-color: #0077b5;
}

.blog-share-x:hover {
  background: #0f172a;
  color: white;
  border-color: #0f172a;
}

.blog-share-copy:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

/* Scroll Entrance Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-entrance), transform 0.6s var(--ease-entrance);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="scale-up"] {
  opacity: 0;
  transform: scale(0.95);
}

[data-animate="scale-up"].visible {
  opacity: 1;
  transform: scale(1);
}

/* =============================================
   Premium Hero + CTA Responsive
   ============================================= */
@media (max-width: 768px) {
  .premium-hero {
    padding: 160px 20px 60px;
  }

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

  .blog-hero-image,
  .blog-article-image:first-of-type {
    max-height: 260px;
    border-radius: 8px;
    margin: 0 0 24px 0;
  }

  .blog-section-image,
  .blog-mid-image,
  .blog-article-image {
    max-height: 220px;
    border-radius: 8px;
    margin: 24px 0;
  }

  .blog-toc {
    padding: 20px 22px;
  }

  .blog-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  article h2 {
    font-size: 1.4rem;
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  .premium-hero {
    padding: 140px 16px 48px;
  }

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

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-primary,
  .cta-secondary {
    text-align: center;
  }

  .cta-section-home h2 {
    font-size: 1.8rem;
  }

  .blog-hero-image,
  .blog-article-image:first-of-type {
    max-height: 200px;
    border-radius: 6px;
  }

  .blog-section-image,
  .blog-mid-image,
  .blog-article-image {
    max-height: 180px;
    border-radius: 6px;
  }

  .blog-toc-list a {
    font-size: 0.88rem;
  }

  .blog-share-buttons {
    width: 100%;
  }

  .blog-share-btn {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.8rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }
}