/* Main website stylesheet.
   All design, spacing, animation, popup, widget, footer, and responsive styles are kept here. */

/* Theme variables keep the whole website visually consistent. */
    :root {
      --navy: #0f344f;
      --navy-dark: #061827;
      --navy-soft: #173f5f;
      --orange: #d9821f;
      --orange-light: #f7a13d;
      --cream: #f6efe6;
      --paper: #fffaf3;
      --white: #ffffff;
      --dark: #102f46;
      --muted: #667085;
      --line: rgba(15, 52, 79, 0.14);
      --footer-line: rgba(255, 255, 255, 0.22);
      --shadow: 0 18px 45px rgba(15, 52, 79, 0.12);
      --radius-lg: 28px;
      --radius-md: 18px;
      --container: 1440px;
      --wide-container: 1500px;
    }

    /* Global reset removes browser default spacing and uses predictable sizing. */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      min-width: 320px;
      overflow-x: hidden;
      background: linear-gradient(135deg, #f6efe6, #fff8ef);
      color: var(--dark);
      font-family: Arial, sans-serif;
    }

    body.no-scroll {
      overflow: hidden;
    }

    img {
      display: block;
      max-width: 100%;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    button,
    input,
    select {
      font: inherit;
    }

    button {
      cursor: pointer;
    }

    section {
      padding: 36px 0;
      scroll-margin-top: 108px;
    }

    /* Shared page container used by header, content, and footer for equal width. */
    .container {
      width: min(94%, var(--container));
      margin: 0 auto;
    }

    /* Reusable button style for primary calls to action. */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      padding: 13px 22px;
      border: 0;
      border-radius: 14px;
      background: linear-gradient(135deg, var(--navy), var(--navy-dark));
      color: var(--white);
      font-weight: 700;
      line-height: 1.1;
      transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    }

    .btn:hover {
      transform: translateY(-2px);
      background: linear-gradient(135deg, var(--orange), #b96711);
      box-shadow: 0 12px 28px rgba(217, 130, 31, 0.35);
    }

    .light-btn {
      border: 1px solid rgba(255, 255, 255, 0.7);
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(8px);
    }

    .section-kicker {
      display: inline-block;
      margin-bottom: 8px;
      color: var(--orange);
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    .section-title {
      margin-bottom: 10px;
      color: var(--dark);
      font-size: clamp(30px, 4vw, 42px);
      line-height: 1.1;
    }

    .section-text {
      max-width: 650px;
      color: var(--muted);
      line-height: 1.7;
    }

    /* Fixed glass header with responsive navigation. */
    .header {
      position: fixed;
      inset: 0 0 auto;
      z-index: 1000;
      /* background: rgba(255, 250, 243, 0.9); */
      /* border-bottom: 1px solid var(--line); */
      backdrop-filter: blur(15px);
    }

    .navbar {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      height: 86px;
    }

    /* On large screens the header and footer use the same wide content line. */
    .header .container {
      width: min(96%, var(--wide-container));
      max-width: var(--wide-container);
    }

    .logo {
      display: flex;
      align-items: center;
      flex-shrink: 0;
      text-decoration: none;
    }

    .logo img {
      width: 176px;
      height: 76px;
      object-fit: contain;
      display: block;
    }

    .menu {
      display: flex;
      align-items: center;
      gap: 28px;
    }

    /* Menu links are kept simple so the header stays clean and fast. */
    .menu a,
    .menu-parent {
      color: var(--dark);
      font-weight: 1000;
      transition: color 0.2s ease;
    }

    .menu a:hover,
    .menu-parent:hover,
    .menu a.active,
    .menu-parent.active {
      color: var(--orange);
    }

    .menu a.active,
    .menu-parent.active {
      font-weight: 800;
    }

    /* The About menu opens on hover on desktop and remains part of the mobile menu. */
    .menu-item {
      position: relative;
    }

    .menu-parent {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border: 0;
      background: transparent;
    }

    .menu-parent::after {
      content: "";
      width: 7px;
      height: 7px;
      border-right: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      transform: rotate(45deg) translateY(-2px);
    }

    .dropdown-menu {
      position: absolute;
      top: calc(100% - 0px);
      left: 0;
      display: grid;
      gap: 6px;
      min-width: 255px;
      padding: 14px;
      border: 1px solid rgba(217, 130, 31, 0.24);
      border-radius: 18px;
      background:
        linear-gradient(145deg, rgba(21, 57, 82, 0.96), rgba(109, 70, 35, 0.94)),
        linear-gradient(135deg, var(--navy), var(--orange));
      box-shadow: 0 24px 65px rgba(15, 52, 79, 0.3);
      backdrop-filter: blur(16px);
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px);
      transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    }

    .dropdown-menu::before {
      content: "";
      position: absolute;
      top: -8px;
      left: 10%;
      width: 16px;
      height: 16px;
      background: #153952;
      border-left: 1px solid rgba(217, 130, 31, 0.24);
      border-top: 1px solid rgba(217, 130, 31, 0.24);
      transform: translateX(-50%) rotate(45deg);
    }

    .dropdown-menu::after {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      height: 4px;
      width: 95%;
      margin-left: 3%;
      border-radius: 18px 18px 0 0;
      background: linear-gradient(90deg, var(--orange), var(--orange-light), rgba(255, 255, 255, 0.22));
    }

    .dropdown-menu a {
      padding: 10px 12px;
      border-radius: 10px;
      white-space: nowrap;
      color: white;
      
    }

    .dropdown-menu a:hover {
      background: rgba(255, 250, 243, 0.13);
      color: #fff6e8;
      transform: translateX(3px);
    }
    .dropdown-menu a:hover::before {
      background: var(--white);
      box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
    }

    .menu-item:hover .dropdown-menu,
    .menu-item:focus-within .dropdown-menu {
      opacity: 1;
      visibility: visible;
      /* transform: translate(-50%, 0); */
      display: grid;
    }

    .menu-toggle {
      display: none;
      place-items: center;
      width: 46px;
      height: 46px;
      border: 0;
      border-radius: 12px;
      background: var(--navy);
      color: var(--white);
      font-size: 27px;
      line-height: 1;
    }

    .hero {
      position: relative;
      display: grid;
      place-items: center;
      min-height: 100vh;
      overflow: hidden;
      padding: 145px 0 88px;
      color: var(--white);
      text-align: center;
    }

    .hero-bg,
    .hero-overlay {
      position: absolute;
      inset: 0;
    }

    /* .hero-bg img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transform: scale(1.08);
      transition: opacity 1.1s ease, transform 1.4s ease;
    }

    .hero-bg img.active {
      opacity: 1;
      transform: scale(1);
    } */

    .hero-bg img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transform: translateX(100%);
      transition: transform 1.2s ease, opacity 1.2s ease;
    }

    .hero-bg img.active {
      opacity: 1;
      transform: translateX(0);
    }

    .hero-bg img.old {
      opacity: 0;
      transform: translateX(-100%);
    }

    .hero-overlay {
      z-index: 1;
      /* background:
        linear-gradient(135deg, rgba(8, 35, 56, 0.84), rgba(217, 130, 31, 0.24)),
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.52)); */
    }

    .hero-content {
      position: relative;
      z-index: 2;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 24px;
      padding: 10px 20px;
      border: 1px solid rgba(255, 255, 255, 0.52);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.16);
      font-weight: 700;
    }

    .hero h1 {
      max-width: 880px;
      margin: 0 auto;
      font-size: clamp(38px, 6vw, 72px);
      line-height: 1.04;
    }

    .hero p {
      max-width: 720px;
      margin: 26px auto 0;
      font-size: 16px;
      line-height: 1.75;
    }

    .hero-buttons {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 16px;
      margin-top: 30px;
    }

    .project-grid,
    .stats-box,
    .steps,
    .process-grid,
    .info-grid,
    .review-grid,
    .gallery-images {
      display: grid;
      gap: 20px;
    }

    .project-grid {
      grid-template-columns: repeat(4, 1fr);
    }

    .project-card {
      position: relative;
      min-height: 285px;
      overflow: hidden;
      border-radius: 24px;
      background: #dde2e6;
      box-shadow: var(--shadow);
      transition: transform 0.28s ease, outline-color 0.28s ease;
    }

    .project-card:hover,
    .project-card.active-card {
      transform: translateY(-8px);
    }

    .project-card.active-card {
      outline: 4px solid var(--orange);
    }

    .project-card img {
      width: 100%;
      height: 100%;
      min-height: inherit;
      object-fit: cover;
    }

    .project-info {
      position: absolute;
      right: 15px;
      bottom: 15px;
      left: 15px;
      padding: 16px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.92);
      color: var(--dark);
    }

    .project-info p {
      margin-top: 4px;
      color: var(--muted);
      font-size: 14px;
    }

    .project-gallery {
      display: none;
      margin-top: 30px;
      padding: 25px;
      border-radius: 30px;
      background: var(--white);
      box-shadow: var(--shadow);
      animation: galleryFade 0.45s ease;
    }

    .project-gallery.show {
      display: block;
    }

    .gallery-heading {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 14px;
    }

    .gallery-heading h2 {
      font-size: 28px;
    }

    .gallery-heading p {
      margin-top: 5px;
      color: var(--muted);
    }

    .gallery-close {
      display: grid;
      place-items: center;
      width: 40px;
      height: 40px;
      flex: 0 0 40px;
      border: 0;
      border-radius: 50%;
      background: var(--navy);
      color: var(--white);
      font-size: 24px;
    }

    .gallery-images {
      grid-template-columns: repeat(5, 1fr);
      gap: 15px;
    }

    .gallery-images img {
      width: 100%;
      height: 170px;
      border-radius: 18px;
      object-fit: cover;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
      cursor: pointer;
    }

    .gallery-images img:hover {
      transform: scale(1.04);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    }

    @keyframes galleryFade {
      from {
        opacity: 0;
        transform: translateY(24px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .stats-box {
      grid-template-columns: repeat(4, 1fr);
      padding: 25px;
      border-radius: 30px;
      background: var(--white);
      box-shadow: var(--shadow);
    }

    .stat,
    .step,
    .review-card {
      border-radius: 22px;
      background: linear-gradient(135deg, #fff8ef, #eef7ff);
    }

    .stat {
      padding: 25px 18px;
      text-align: center;
    }

    .stat h3 {
      color: var(--orange);
      font-size: 34px;
    }

    .stat p {
      margin-top: 8px;
      font-weight: 700;
    }

    .form-box {
      margin-top: 30px;
      padding: 35px;
      border-radius: 30px;
      background: var(--white);
      box-shadow: var(--shadow);
    }

    .steps {
      grid-template-columns: repeat(4, 1fr);
      margin-bottom: 24px;
    }

    .step {
      padding: 18px;
    }

    .step b {
      color: var(--orange);
    }

    .form-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }

    select {
      width: 100%;
      min-height: 54px;
      padding: 0 15px;
      border: 1px solid #d8dde3;
      border-radius: 14px;
      outline: 0;
      background: var(--white);
      color: var(--dark);
      font-size: 16px;
    }

    select:focus {
      border-color: var(--orange);
      box-shadow: 0 0 0 4px rgba(217, 130, 31, 0.12);
    }

    .full-btn {
      width: 100%;
      margin-top: 18px;
    }

    .process-grid {
      grid-template-columns: repeat(5, 1fr);
      margin-top: 22px;
    }

    .process-card {
      min-height: 180px;
      padding: 25px;
      border-radius: 24px;
      background: var(--white);
      box-shadow: var(--shadow);
      transition: transform 0.28s ease, color 0.28s ease, background 0.28s ease;
    }

    .process-card:hover {
      transform: translateY(-7px);
      background: linear-gradient(135deg, var(--navy), var(--navy-dark));
      color: var(--white);
    }

    .number {
      margin-bottom: 15px;
      color: var(--orange);
      font-size: 22px;
      font-weight: 900;
    }

    .process-card p,
    .info-card p,
    .review-card p {
      margin-top: 8px;
      line-height: 1.65;
    }

    .info-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 25px;
    }

    .info-card {
      padding: 35px;
      border-radius: 30px;
      background: var(--white);
      box-shadow: var(--shadow);
    }

    .info-card small {
      color: var(--orange);
      font-weight: 800;
    }

    .info-card h2 {
      margin: 14px 0 8px;
    }

    .link-btn {
      display: inline-flex;
      margin-top: 20px;
      color: var(--orange);
      font-weight: 800;
      cursor: pointer;
      border: none;
      background: transparent;
    }

    .reviews {
      display: none;
      margin-top: 25px;
      padding: 30px;
      border-radius: 30px;
      background: var(--white);
      box-shadow: var(--shadow);
    }

    .review-grid {
      grid-template-columns: repeat(3, 1fr);
      margin-top: 20px;
    }

    .review-card {
      padding: 25px;
    }

    .map-box {
      overflow: hidden;
      border-radius: 30px;
      background: var(--white);
      box-shadow: var(--shadow);
    }

    .map-content {
      display: grid;
      grid-template-columns: 1fr 1.5fr;
      gap: 25px;
      align-items: center;
      padding: 30px;
    }

    .map-text small {
      color: var(--orange);
      font-weight: 800;
    }

    .map-text h2 {
      margin: 10px 0;
      font-size: clamp(28px, 3vw, 36px);
    }

    .map-text p {
      color: var(--muted);
      line-height: 1.7;
    }

    .map-frame {
      width: 100%;
      height: 360px;
      border: 0;
      border-radius: 22px;
    }


    /* Lightweight brochure enquiry form used before the brochure download. */
    .brochure-popup-content {
      width: min(94vw, 620px);
      padding: 34px;
      text-align: left;
    }

    .brochure-popup-content h2 {
      margin: 0 0 8px;
      color: var(--navy, #0b2b40);
      font-size: 30px;
    }

    .brochure-popup-intro {
      margin: 0 0 22px;
      color: #64748b;
      line-height: 1.55;
    }

    .brochure-form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .brochure-form label {
      display: grid;
      gap: 7px;
      color: #0f2f45;
      font-size: 14px;
      font-weight: 700;
    }

    .brochure-form input {
      width: 100%;
      box-sizing: border-box;
      min-height: 46px;
      padding: 11px 13px;
      border: 1px solid #d7dee5;
      border-radius: 10px;
      background: #fff;
      color: #0f172a;
      font: inherit;
      outline: none;
    }

    .brochure-form input:focus {
      border-color: #d98a1f;
    }

    .brochure-form-full {
      grid-column: 1 / -1;
    }

    .brochure-form-status {
      min-height: 20px;
      margin: 12px 0 4px;
      color: #b42318;
      font-size: 13px;
    }

    .brochure-form .full-btn {
      width: 100%;
      margin-top: 4px;
    }

    @media (max-width: 640px) {
      .brochure-popup-content {
        padding: 28px 20px;
      }

      .brochure-popup-content h2 {
        font-size: 26px;
      }

      .brochure-form-grid {
        grid-template-columns: 1fr;
      }

      .brochure-form-full {
        grid-column: auto;
      }
    }

    /* Shared popup layer is used for welcome, thank-you, video, and image modals. */
    .popup {
      position: fixed;
      inset: 0;
      z-index: 2000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(0, 0, 0, 0.65);
    }

    .popup.is-open {
      display: flex;
    }

    .popup-content {
      position: relative;
      width: min(100%, 550px);
      padding: 35px;
      border-radius: 25px;
      background: var(--white);
      text-align: center;
    }

    .popup-close {
      position: absolute;
      top: 10px;
      right: 18px;
      border: 0;
      background: transparent;
      color: inherit;
      font-size: 30px;
      line-height: 1;
    }

    /* Welcome popup content shown once when the website loads. */
    .welcome-content {
      overflow-y: auto;
      width: min(94vw, 790px);
      max-height: calc(100vh - 34px);
      padding: 0;
      border: 1px solid rgba(247, 161, 61, 0.92);
      border-radius: 28px;
      background:
        radial-gradient(circle at 50% 46%, rgba(247, 161, 61, 0.13), transparent 34%),
        linear-gradient(180deg, #fffaf3 0%, #ffffff 58%, #fffaf3 100%);
      text-align: center;
      box-shadow: 0 34px 95px rgba(2, 11, 20, 0.38);
    }

    .welcome-content .popup-close {
      top: 18px;
      right: 22px;
      z-index: 8;
      color: rgba(255, 255, 255, 0.84);
      font-size: 36px;
      transition: color 0.25s ease, transform 0.25s ease;
    }

    .welcome-content .popup-close:hover {
      color: var(--orange-light);
      transform: rotate(90deg);
    }

    .welcome-hero {
      position: relative;
      overflow: hidden;
      padding: 28px 32px 54px;
      background:
        radial-gradient(circle at 50% 0%, rgba(247, 161, 61, 0.18), transparent 32%),
        linear-gradient(135deg, #061827, #0f344f 54%, #061827);
      color: var(--white);
    }

    .welcome-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.08), transparent 24%),
        radial-gradient(circle at 82% 16%, rgba(247, 161, 61, 0.12), transparent 28%);
      pointer-events: none;
    }

    .welcome-hero::after {
      content: "";
      position: absolute;
      right: -7%;
      bottom: -42px;
      left: -7%;
      height: 78px;
      border-top: 4px solid rgba(247, 161, 61, 0.88);
      border-radius: 0 0 50% 50%;
      background: #fffaf3;
      box-shadow: 0 -10px 25px rgba(247, 161, 61, 0.12);
    }

    .welcome-hero small {
      position: relative;
      z-index: 1;
      display: inline-block;
      margin-bottom: 12px;
      color: var(--orange-light);
      font-size: 14px;
      font-weight: 900;
      letter-spacing: 6px;
      text-transform: uppercase;
    }

    .welcome-hero h2 {
      position: relative;
      z-index: 1;
      margin-bottom: 12px;
      color: var(--white);
      font-size: clamp(34px, 4.4vw, 56px);
      line-height: 1;
      letter-spacing: 0.5px;
    }

    .welcome-hero h2 span {
      color: var(--orange-light);
    }

    .welcome-hero p {
      position: relative;
      z-index: 1;
      max-width: 560px;
      margin: 0 auto;
      color: rgba(255, 255, 255, 0.94);
      font-size: 16px;
      line-height: 1.6;
    }

    .welcome-body {
      position: relative;
      padding: 0 28px 24px;
      background: transparent;
    }

    .spin-game {
      position: relative;
      display: grid;
      place-items: center;
      margin-top: -30px;
    }

    .spin-wheel-wrap {
      position: relative;
      display: grid;
      place-items: center;
      width: min(64vw, 260px);
      height: min(64vw, 260px);
      margin-bottom: 20px;
      border-radius: 50%;
      background:
        radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 54%, rgba(255, 220, 140, 0.94) 55% 58%, #d9821f 59% 62%, transparent 63%),
        conic-gradient(from 0deg, rgba(247, 161, 61, 0.2), rgba(255, 255, 255, 0.08), rgba(247, 161, 61, 0.2));
      box-shadow:
        0 26px 62px rgba(15, 52, 79, 0.24),
        inset 0 0 0 8px rgba(255, 255, 255, 0.78);
    }

    .spin-wheel-wrap::before {
      content: "";
      position: absolute;
      inset: 18px;
      z-index: 3;
      border-radius: 50%;
      border: 2px solid rgba(255, 226, 161, 0.8);
      box-shadow:
        0 0 0 9px rgba(217, 130, 31, 0.18),
        inset 0 0 22px rgba(255, 255, 255, 0.16);
      pointer-events: none;
    }

    .spin-pointer {
      position: absolute;
      top: -5px;
      left: 50%;
      z-index: 6;
      width: 52px;
      height: 66px;
      background: linear-gradient(180deg, #ffe7ab, var(--orange-light) 52%, #c97012 100%);
      clip-path: polygon(50% 100%, 0 0, 100% 0);
      filter: drop-shadow(0 8px 12px rgba(15, 52, 79, 0.24));
      transform: translateX(-50%);
    }

    .spin-wheel {
      position: relative;
      width: 212px;
      height: 212px;
      border: 8px solid #fff8ef;
      border-radius: 50%;
      background:
        conic-gradient(from -18deg,
          #0f344f 0deg 36deg,
          #e38a16 36deg 72deg,
          #0f344f 72deg 108deg,
          #f7a13d 108deg 144deg,
          #0f344f 144deg 180deg,
          #e38a16 180deg 216deg,
          #0f344f 216deg 252deg,
          #f7a13d 252deg 288deg,
          #0f344f 288deg 324deg,
          #e38a16 324deg 360deg
        );
      box-shadow:
        inset 0 0 0 3px rgba(217, 130, 31, 0.72),
        inset 0 0 28px rgba(0, 0, 0, 0.18),
        0 16px 36px rgba(15, 52, 79, 0.2);
      transition: transform 5s cubic-bezier(0.08, 0.76, 0.12, 1);
      transform: rotate(0deg);
      will-change: transform;
    }

    .spin-wheel::before {
      content: "";
      position: absolute;
      inset: -15px;
      border-radius: 50%;
      border: 7px solid #f3c66b;
      box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.68),
        0 0 22px rgba(247, 161, 61, 0.46);
      pointer-events: none;
    }

    .spin-wheel::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      z-index: 4;
      width: 64px;
      height: 64px;
      border: 8px solid #fff8ef;
      border-radius: 50%;
      background:
        radial-gradient(circle at 35% 28%, #ffe7a9, #f3a02d 46%, #c97012 100%);
      box-shadow: 0 8px 18px rgba(15, 52, 79, 0.25);
      transform: translate(-50%, -50%);
    }

    .spin-label {
      position: absolute;
      top: 50%;
      left: 50%;
      z-index: 5;
      display: grid;
      place-items: center;
      width: 58px;
      height: 30px;
      margin: -15px 0 0 -29px;
      color: var(--white);
      font-size: 18px;
      font-weight: 900;
      line-height: 1;
      text-align: center;
      text-shadow: 0 2px 5px rgba(0, 0, 0, 0.32);
      pointer-events: none;
    }

    .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-70px) rotate(0deg); }
    .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-70px) rotate(-36deg); }
    .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-70px) rotate(-72deg); }
    .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-70px) rotate(-108deg); }
    .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-70px) rotate(-144deg); }
    .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-70px) rotate(-180deg); }
    .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-70px) rotate(-216deg); }
    .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-70px) rotate(-252deg); }
    .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-70px) rotate(-288deg); }
    .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-70px) rotate(-324deg); }

    .spin-result {
      max-width: 660px;
      margin: 0 auto 10px;
      color: var(--navy-dark);
      font-size: clamp(21px, 2.6vw, 30px);
      font-weight: 900;
      line-height: 1.24;
      letter-spacing: 1px;
    }

    .spin-result strong {
      color: var(--orange);
      font-size: 1.26em;
    }

    .spin-note {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      max-width: 500px;
      margin: 0 auto 16px;
      padding: 10px 16px;
      border: 1px solid rgba(217, 130, 31, 0.16);
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.8);
      color: #5f6b85;
      line-height: 1.55;
      box-shadow: 0 12px 30px rgba(15, 52, 79, 0.08);
    }

    .spin-note-icon {
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      flex: 0 0 42px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--navy), var(--navy-dark));
      color: var(--orange-light);
      font-size: 23px;
    }

    .welcome-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 14px;
    }

    .welcome-actions .btn {
      min-width: 190px;
      min-height: 48px;
      border-radius: 16px;
      font-size: 17px;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    .spin-before-btn {
      position: relative;
      overflow: hidden;
      background: linear-gradient(135deg, #061827, #0f344f);
      color: var(--white);
      box-shadow: 0 14px 28px rgba(15, 52, 79, 0.24);
    }

    .spin-before-btn::after {
      content: "›";
      margin-left: 14px;
      color: var(--orange-light);
      font-size: 32px;
      line-height: 0;
    }

    .spin-before-btn:disabled {
      opacity: 0.8;
      cursor: not-allowed;
    }

    .welcome-secondary {
      border: 1px solid rgba(217, 130, 31, 0.35);
      background: rgba(255, 255, 255, 0.82);
      color: var(--navy);
      box-shadow: none;
    }

    .welcome-secondary:hover {
      color: var(--white);
    }

    .spin-close-btn {
      display: none;
      min-width: 300px;
      background: linear-gradient(135deg, #061827, #0f344f);
    }

    .spin-close-btn::after {
      content: "×";
      margin-left: 16px;
      color: var(--orange-light);
      font-size: 28px;
      line-height: 0;
    }

    .welcome-content.spin-done .welcome-hero {
      padding: 30px 30px 56px;
    }

    .welcome-content.spin-done .welcome-hero::after {
      bottom: -44px;
    }

    .welcome-content.spin-done .welcome-hero small {
      margin-bottom: 8px;
      color: var(--orange-light);
    }

    .welcome-content.spin-done .welcome-hero h2 {
      font-size: clamp(46px, 7vw, 78px);
      letter-spacing: 1px;
    }

    .welcome-content.spin-done .welcome-hero p {
      text-transform: uppercase;
      letter-spacing: 2px;
      font-weight: 900;
    }

    .welcome-content.spin-done .spin-game {
      margin-top: -40px;
    }

    .welcome-content.spin-done .spin-wheel-wrap {
      width: min(60vw, 242px);
      height: min(60vw, 242px);
      margin-bottom: 16px;
    }

    .welcome-content.spin-done .spin-wheel {
      width: 198px;
      height: 198px;
    }

    .welcome-content.spin-done .spin-label {
      font-size: 18px;
    }

    .welcome-content.spin-done .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-64px) rotate(0deg); }
    .welcome-content.spin-done .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-64px) rotate(-36deg); }
    .welcome-content.spin-done .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-64px) rotate(-72deg); }
    .welcome-content.spin-done .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-64px) rotate(-108deg); }
    .welcome-content.spin-done .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-64px) rotate(-144deg); }
    .welcome-content.spin-done .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-64px) rotate(-180deg); }
    .welcome-content.spin-done .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-64px) rotate(-216deg); }
    .welcome-content.spin-done .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-64px) rotate(-252deg); }
    .welcome-content.spin-done .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-64px) rotate(-288deg); }
    .welcome-content.spin-done .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-64px) rotate(-324deg); }

    .welcome-content.spin-done .spin-result {
      max-width: 560px;
      margin-bottom: 14px;
      padding: 14px 18px;
      border: 1px solid rgba(217, 130, 31, 0.16);
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.86);
      color: #1f2933;
      font-size: 16px;
      font-weight: 700;
      letter-spacing: 0;
      box-shadow: 0 14px 32px rgba(15, 52, 79, 0.1);
    }

    .welcome-content.spin-done .spin-note {
      display: none;
    }

    .welcome-content.spin-done .spin-before-btn,
    .welcome-content.spin-done .welcome-secondary {
      display: none;
    }

    .welcome-content.spin-done .spin-close-btn {
      display: inline-flex;
    }

    @media (max-width: 640px) {
      .welcome-content {
        width: min(94vw, 520px);
        max-height: 94vh;
        overflow-y: auto;
      }

      .welcome-hero {
        padding: 28px 20px 58px;
      }

      .welcome-hero small {
        font-size: 11px;
        letter-spacing: 4px;
      }

      .welcome-hero h2 {
        font-size: 36px;
      }

      .welcome-hero p {
        font-size: 15px;
      }

      .welcome-body {
        padding: 0 18px 24px;
      }

      .spin-wheel-wrap {
        width: 260px;
        height: 260px;
      }

      .spin-wheel {
        width: 214px;
        height: 214px;
      }

      .spin-label {
        font-size: 17px;
      }

      .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-70px) rotate(0deg); }
      .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-70px) rotate(-36deg); }
      .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-70px) rotate(-72deg); }
      .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-70px) rotate(-108deg); }
      .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-70px) rotate(-144deg); }
      .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-70px) rotate(-180deg); }
      .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-70px) rotate(-216deg); }
      .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-70px) rotate(-252deg); }
      .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-70px) rotate(-288deg); }
      .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-70px) rotate(-324deg); }

      .welcome-actions .btn,
      .spin-close-btn {
        width: 100%;
        min-width: 0;
      }
    }

    .video-box {
      width: min(100%, 900px);
      aspect-ratio: 16 / 9;
    }

    .video-box iframe {
      width: 100%;
      height: calc(100% - 38px);
      border: 0;
      border-radius: 18px;
    }

    .image-popup-content {
      width: auto;
      max-width: 94vw;
      max-height: 92vh;
      padding: 0;
      background: transparent;
      box-shadow: none;
    }

    .image-popup-content img {
      width: auto;
      height: auto;
      max-width: 94vw;
      max-height: 92vh;
      border-radius: 18px;
      object-fit: contain;
    }

    .image-popup-content .popup-close {
      top: 12px;
      right: 12px;
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.65);
      color: var(--white);
    }

    .reveal {
      opacity: 1;
      transform: none;
      transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.show {
      opacity: 1;
      transform: translateY(0);
    }

    /* Footer uses the same container width as the fixed header for visual alignment. */
    .fm-footer {
      --footer-bg: url("../../images/footer-bg.webp");
      position: relative;
      isolation: isolate;
      overflow: hidden;
      margin-top: 36px;
      padding: 72px 0 46px;
      color: var(--white);
      background:
        linear-gradient(90deg, rgba(2, 11, 20, 0.95), rgba(4, 18, 31, 0.9) 45%, rgba(3, 13, 23, 0.96)),
        var(--footer-bg) center / cover no-repeat,
        var(--navy-dark);
    }

    .footer-shade {
      position: absolute;
      inset: 0;
      z-index: -1;
      background:
        radial-gradient(circle at 55% 25%, rgba(255, 255, 255, 0.06), transparent 34%),
        linear-gradient(180deg, rgba(8, 27, 43, 0.18), rgba(0, 0, 0, 0.44));
    }

    .footer-shade::before {
      content: "";
      position: absolute;
      left: -4%;
      bottom: -8%;
      width: 310px;
      height: 245px;
      opacity: 0.26;
      background-image:
        linear-gradient(30deg, transparent 31px, rgba(244, 123, 22, 0.55) 32px, transparent 33px),
        linear-gradient(150deg, transparent 31px, rgba(244, 123, 22, 0.55) 32px, transparent 33px),
        linear-gradient(90deg, transparent 31px, rgba(244, 123, 22, 0.3) 32px, transparent 33px);
      background-size: 80px 46px;
    }

    .footer-inner {
      display: grid;
      grid-template-columns: minmax(430px, 0.95fr) minmax(560px, 1.3fr) minmax(320px, 0.75fr);
      gap: clamp(34px, 3vw, 58px);
      width: min(96%, var(--wide-container));
      max-width: var(--wide-container);
      margin: 0 auto;
    }

    .brand-panel {
      padding-right: clamp(34px, 3vw, 58px);
      border-right: 1px solid var(--footer-line);
    }

    .brand-lockup {
      display: flex;
      align-items: center;
      gap: 22px;
    }

    /* Footer uses the real logo image so branding stays the same as the header. */
    .footer-logo-img {
      width: 112px;
      height: 112px;
      flex: 0 0 112px;
      object-fit: contain;
      background: var(--paper);
      border-radius: 50%;
      /* filter:
        drop-shadow(0 0 1px rgba(255, 255, 255, 0.9))
        drop-shadow(0 6px 16px rgba(255, 255, 255, 0.12)); */
    }

    .brand-lockup h2 {
      color: var(--white);
      font-size: clamp(34px, 2.4vw, 46px);
      line-height: 1;
      letter-spacing: 1px;
    }

    .brand-lockup p {
      margin-top: 10px;
      color: var(--orange);
      font-size: 14px;
    }

    .brand-copy {
      max-width: 430px;
      margin: 26px 0 30px;
      color: var(--white);
      font-size: 18px;
      line-height: 1.55;
    }

    .feature-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
      max-width: 520px;
    }

    .feature-item {
      color: var(--white);
      font-size: 15px;
      line-height: 1.2;
      text-align: center;
    }

    .feature-item svg {
      display: block;
      width: 44px;
      height: 44px;
      margin: 0 auto 8px;
      fill: none;
      stroke: var(--orange);
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .phone-card {
      position: relative;
      display: flex;
      align-items: center;
      gap: 22px;
      width: 100%;
      max-width: 392px;
      min-width: 0;
      margin-top: 34px;
      padding: 20px 26px;
      overflow: hidden;
      border-radius: 16px;
      background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08) 48%, rgba(255, 255, 255, 0.13)),
        linear-gradient(135deg, rgba(15, 52, 79, 0.72), rgba(6, 24, 39, 0.88));
      background-size: 100% 100%;
      color: var(--white);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 40px rgba(0, 0, 0, 0.18);
      backdrop-filter: blur(10px);
    }

    .phone-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 58%);
      pointer-events: none;
    }

    .phone-card > * {
      position: relative;
      z-index: 1;
    }

    .phone-card > span:last-child {
      min-width: 0;
    }

    .phone-icon {
      display: grid;
      place-items: center;
      width: 62px;
      height: 62px;
      flex: 0 0 62px;
      border: 3px solid var(--orange);
      border-radius: 12px;
    }

    .phone-icon svg {
      width: 34px;
      height: 34px;
      fill: none;
      stroke: var(--orange);
      stroke-width: 1.9;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .phone-card small,
    .phone-card em {
      display: block;
      color: var(--white);
      font-size: 16px;
      font-style: normal;
      white-space: nowrap;
    }

    .phone-card strong {
      display: block;
      margin: 2px 0;
      font-size: clamp(25px, 2.2vw, 30px);
      line-height: 1;
      letter-spacing: 2px;
      white-space: nowrap;
    }

    .footer-links {
      display: grid;
      grid-template-columns: minmax(150px, 0.9fr) minmax(210px, 1.15fr) minmax(150px, 0.9fr);
      gap: clamp(26px, 2.4vw, 42px);
      min-width: 0;
    }

    .link-col h3,
    .social-panel h3 {
      position: relative;
      margin-bottom: 42px;
      color: var(--white);
      font-size: 23px;
      line-height: 1.1;
    }

    .link-col h3::after,
    .social-panel h3::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -22px;
      width: 38px;
      height: 2px;
      background: var(--orange);
    }

    .link-col a {
      display: block;
      margin-bottom: 23px;
      color: var(--white);
      font-size: 17px;
      line-height: 1.1;
      transition: color 0.2s ease, transform 0.2s ease;
    }

    .link-col a::before {
      content: ">";
      margin-right: 12px;
      color: var(--orange);
      font-size: 14px;
      font-weight: 900;
    }

    .link-col a:hover {
      color: var(--orange-light);
      transform: translateX(2px);
    }

    .social-panel {
      display: grid;
      align-content: start;
      gap: 44px;
      min-width: 0;
    }

    .social-panel p {
      margin-bottom: 20px;
      color: var(--white);
      font-size: 15px;
      line-height: 1.55;
    }

    .social-links {
      display: flex;
      flex-wrap: wrap;
      gap: 18px;
      align-items: center;
    }

    .social-links a {
      display: grid;
      place-items: center;
      width: 46px;
      height: 46px;
      border: 2.5px solid var(--orange);
      border-radius: 50%;
      color: var(--orange);
      background: linear-gradient(135deg, var(--navy), var(--navy-dark));
      font-size: 23px;
      font-weight: 800;
      line-height: 1;
    }
    .social-links a svg {
        width: 20px;
        height: 20px;
        fill: #b96711;
        
        transition: 0.3s;
    }

    .newsletter form {
      display: flex;
      height: 54px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.7);
      border-radius: 5px;
    }

    .newsletter input {
      min-width: 0;
      flex: 1;
      border: 0;
      outline: 0;
      padding: 0 15px;
      background: rgba(2, 11, 20, 0.4);
      color: var(--white);
      font-size: 16px;
    }

    .newsletter input::placeholder {
      color: rgba(255, 255, 255, 0.78);
    }

    .newsletter button {
      display: grid;
      place-items: center;
      width: 58px;
      border: 0;
      background: linear-gradient(135deg, var(--orange-light), var(--orange));
      color: var(--white);
    }

    .newsletter button svg {
      width: 24px;
      height: 24px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .footer-rule {
      width: min(96%, var(--wide-container));
      max-width: var(--wide-container);
      height: 1px;
      margin: 54px auto 0;
      background: rgba(255, 255, 255, 0.18);
    }

    .footer-bottom {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 56px;
      width: min(96%, var(--wide-container));
      max-width: var(--wide-container);
      margin: 38px auto 0;
    }

    .bottom-tagline {
      display: flex;
      align-items: center;
      gap: 30px;
    }

    .tag-icon {
      display: grid;
      place-items: center;
      width: 72px;
      height: 72px;
      flex: 0 0 72px;
      border-radius: 8px;
      color: var(--white);
      /*background: linear-gradient(135deg, var(--orange-light), var(--orange));*/
    }

    .tag-icon svg {
      width: 42px;
      height: 42px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.9;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .bottom-tagline p {
      color: var(--white);
      font-size: clamp(20px, 1.6vw, 25px);
      line-height: 1.25;
    }

    .bottom-tagline span {
      color: var(--orange);
    }

    .copyright {
      padding-left: 72px;
      border-left: 1px solid var(--footer-line);
      color: var(--white);
      font-size: 16px;
      white-space: nowrap;
    }

    /* WhatsApp widget sends selected or typed messages directly to WhatsApp. */
    .whatsapp-widget {
      position: fixed;
      right: 22px;
      bottom: 22px;
      z-index: 1500;
      font-family: Arial, sans-serif;
    }

    .wa-panel {
      position: absolute;
      right: 0;
      bottom: 82px;
      width: min(340px, calc(100vw - 32px));
      overflow: hidden;
      border-radius: 22px;
      background: var(--white);
      box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
      opacity: 0;
      visibility: hidden;
      transform: translateY(12px);
      transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    .whatsapp-widget.open .wa-panel {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .wa-head {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px;
      background: linear-gradient(135deg, #0f8f52, #13b86a);
      color: var(--white);
    }

    .wa-avatar {
      display: grid;
      place-items: center;
      width: 44px;
      height: 44px;
      flex: 0 0 44px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.18);
      font-weight: 900;
    }

    .wa-head strong,
    .wa-head small {
      display: block;
    }

    .wa-head small {
      margin-top: 3px;
      opacity: 0.9;
    }

    .wa-close {
      margin-left: auto;
      width: 34px;
      height: 34px;
      border: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.18);
      color: var(--white);
      font-size: 22px;
      line-height: 1;
    }

    .wa-body {
      padding: 16px;
      background: #f4f7f5;
    }

    .wa-message {
      max-width: 88%;
      margin-bottom: 14px;
      padding: 12px 14px;
      border-radius: 15px 15px 15px 4px;
      background: var(--white);
      color: #1f2933;
      line-height: 1.45;
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    }

    .wa-quick {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 14px;
    }

    .wa-quick button {
      border: 1px solid rgba(19, 184, 106, 0.35);
      border-radius: 999px;
      padding: 8px 10px;
      background: var(--white);
      color: #0f8f52;
      font-size: 13px;
      font-weight: 700;
    }

    .wa-form {
      display: flex;
      gap: 8px;
    }

    .wa-form input {
      min-width: 0;
      flex: 1;
      height: 44px;
      border: 1px solid #d7e2dc;
      border-radius: 999px;
      outline: 0;
      padding: 0 14px;
    }

    .wa-form input:focus {
      border-color: #13b86a;
    }

    .wa-send,
    .wa-float {
      display: grid;
      place-items: center;
      border: 0;
      border-radius: 50%;
      background: linear-gradient(135deg, #13b86a, #0f8f52);
      color: var(--white);
      box-shadow: 0 12px 26px rgba(15, 143, 82, 0.35);
    }

    .wa-send {
      width: 44px;
      height: 44px;
      flex: 0 0 44px;
    }

    .wa-float {
      width: 64px;
      height: 64px;
      margin-left: auto;
    }

    .wa-float svg,
    .wa-send svg {
      width: 28px;
      height: 28px;
      fill: currentColor;
    }

    .wa-send svg {
      width: 22px;
      height: 22px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    /* AI helper widget gives instant on-page guidance without leaving the website. */
    .ai-chat-widget {
      position: fixed;
      right: 22px;
      bottom: 98px;
      z-index: 1500;
      font-family: Arial, sans-serif;
    }

    .ai-panel {
      position: absolute;
      right: 0;
      bottom: 76px;
      display: grid;
      grid-template-rows: auto 1fr auto;
      width: min(410px, calc(100vw - 32px));
      height: min(520px, calc(100vh - 128px));
      max-height: calc(100vh - 128px);
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.45);
      border-radius: 26px;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.96));
      box-shadow: 0 30px 80px rgba(2, 11, 20, 0.32);
      opacity: 0;
      visibility: hidden;
      transform: translateY(14px) scale(0.98);
      transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    .ai-chat-widget.open .ai-panel {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scale(1);
    }

    .ai-head {
      position: relative;
      display: flex;
      align-items: center;
      gap: 12px;
      overflow: hidden;
      padding: 18px;
      background:
        radial-gradient(circle at 18% 10%, rgba(247, 161, 61, 0.36), transparent 32%),
        linear-gradient(135deg, #061827, #0f344f 58%, #082033);
      color: var(--white);
    }

    .ai-head::after {
      content: "";
      position: absolute;
      right: -42px;
      top: -42px;
      width: 130px;
      height: 130px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.08);
    }

    .ai-avatar {
      position: relative;
      z-index: 1;
      display: grid;
      place-items: center;
      width: 50px;
      height: 50px;
      flex: 0 0 50px;
      border-radius: 50%;
      background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
        linear-gradient(135deg, var(--orange-light), var(--orange));
      color: var(--white);
      font-weight: 900;
      box-shadow: 0 12px 26px rgba(217, 130, 31, 0.28);
    }

    .ai-avatar::after {
      content: "";
      position: absolute;
      right: 2px;
      bottom: 3px;
      width: 11px;
      height: 11px;
      border: 2px solid var(--navy-dark);
      border-radius: 50%;
      background: #27d17f;
    }

    .ai-head strong,
    .ai-head small {
      position: relative;
      z-index: 1;
      display: block;
    }

    .ai-head strong {
      font-size: 17px;
    }

    .ai-head small {
      margin-top: 3px;
      color: rgba(255, 255, 255, 0.82);
      font-size: 12px;
      line-height: 1.35;
    }

    .ai-close {
      position: relative;
      z-index: 1;
      margin-left: auto;
      width: 34px;
      height: 34px;
      border: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.14);
      color: var(--white);
      font-size: 22px;
      line-height: 1;
    }

    .ai-messages {
      display: grid;
      align-content: start;
      gap: 12px;
      max-height: none;
      min-height: 0;
      overflow-y: auto;
      padding: 18px;
      background:
        radial-gradient(circle at 16px 16px, rgba(217, 130, 31, 0.08), transparent 24px),
        linear-gradient(180deg, #f4f7fb, #eef4f8);
      scrollbar-width: thin;
    }

    .ai-bubble {
      width: fit-content;
      max-width: 88%;
      padding: 12px 14px;
      border-radius: 17px;
      color: #1f2933;
      font-size: 14px;
      line-height: 1.5;
    }

    .ai-bubble.bot {
      border-bottom-left-radius: 4px;
      background: var(--white);
      box-shadow: 0 10px 24px rgba(15, 52, 79, 0.1);
    }

    .ai-bubble.user {
      justify-self: end;
      border-bottom-right-radius: 4px;
      background: linear-gradient(135deg, var(--navy), var(--navy-soft));
      color: var(--white);
      box-shadow: 0 10px 24px rgba(15, 52, 79, 0.16);
    }

    .ai-bubble.typing {
      display: inline-flex;
      gap: 5px;
      align-items: center;
      padding: 13px 15px;
    }

    .ai-bubble.typing span {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--orange);
      animation: aiTyping 0.9s infinite ease-in-out;
    }

    .ai-bubble.typing span:nth-child(2) {
      animation-delay: 0.15s;
    }

    .ai-bubble.typing span:nth-child(3) {
      animation-delay: 0.3s;
    }

    @keyframes aiTyping {
      0%, 80%, 100% {
        opacity: 0.35;
        transform: translateY(0);
      }
      40% {
        opacity: 1;
        transform: translateY(-3px);
      }
    }

    .ai-quick {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding: 0 18px 16px;
      background: #eef4f8;
      max-height: 96px;
      overflow-y: auto;
    }

    .ai-quick button {
      border: 1px solid rgba(15, 52, 79, 0.12);
      border-radius: 999px;
      padding: 8px 11px;
      background: var(--white);
      color: var(--navy);
      font-size: 13px;
      font-weight: 700;
      box-shadow: 0 8px 18px rgba(15, 52, 79, 0.07);
      transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    }

    .ai-quick button:hover {
      transform: translateY(-1px);
      border-color: rgba(217, 130, 31, 0.45);
      color: var(--orange);
    }

    .ai-quick button.is-selected {
      border-color: rgba(217, 130, 31, 0.7);
      background: linear-gradient(135deg, var(--orange-light), var(--orange));
      color: var(--white);
    }

    .ai-form {
      display: flex;
      gap: 8px;
      flex-shrink: 0;
      padding: 14px 16px 16px;
      border-top: 1px solid #e6edf3;
      background: var(--white);
    }

    .ai-form input {
      min-width: 0;
      flex: 1;
      height: 48px;
      border: 1px solid #d8dde3;
      border-radius: 999px;
      outline: 0;
      padding: 0 16px;
      background: #f8fafc;
      color: var(--dark);
    }

    .ai-form input:focus {
      border-color: var(--orange);
      box-shadow: 0 0 0 4px rgba(217, 130, 31, 0.12);
    }

    .ai-send,
    .ai-float {
      display: grid;
      place-items: center;
      border: 0;
      border-radius: 50%;
      background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.36), transparent 28%),
        linear-gradient(135deg, var(--orange-light), var(--orange) 50%, #b96711);
      color: var(--white);
      box-shadow: 0 12px 26px rgba(217, 130, 31, 0.35);
    }

    .ai-send {
      width: 48px;
      height: 48px;
      flex: 0 0 48px;
    }

    .ai-float {
      width: 64px;
      height: 64px;
      position: relative;
      overflow: visible;
    }

    .ai-float::before {
      content: "AI";
      position: absolute;
      top: -6px;
      right: -4px;
      min-width: 26px;
      height: 22px;
      display: grid;
      place-items: center;
      border: 2px solid var(--white);
      border-radius: 999px;
      background: var(--navy-dark);
      color: var(--white);
      font-size: 11px;
      font-weight: 900;
    }

    .ai-float::after {
      content: "";
      position: absolute;
      inset: -7px;
      border: 1px solid rgba(217, 130, 31, 0.4);
      border-radius: 50%;
      animation: aiPulse 1.8s infinite ease-out;
    }

    @keyframes aiPulse {
      from {
        opacity: 0.75;
        transform: scale(0.9);
      }
      to {
        opacity: 0;
        transform: scale(1.18);
      }
    }

    .ai-send svg,
    .ai-float svg {
      width: 28px;
      height: 28px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    /* Responsive rules keep cards, navigation, footer, and widgets usable on all screens. */
    @media (max-width: 1280px) {
      .footer-inner {
        grid-template-columns: minmax(390px, 0.95fr) minmax(0, 1.2fr);
        gap: 38px;
      }

      .footer-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .social-panel {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
      }
    }

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

      .brand-panel {
        padding-right: 0;
        border-right: 0;
      }

      .brand-copy {
        max-width: 680px;
      }

      .footer-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px;
      }

      .link-col a {
        overflow-wrap: anywhere;
      }
    }

    @media (max-width: 1050px) {
      .menu-toggle {
        display: grid;
        order: 3;
      }

      .navbar > .btn {
        order: 2;
        margin-left: auto;
        white-space: nowrap;
        max-width: 230px;
      }

      .menu {
        position: absolute;
        top: 86px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border-radius: 0 0 18px 18px;
        background: var(--white);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
      }

      .menu.active {
        display: flex;
      }

      .menu a {
        padding: 13px 10px;
        border-radius: 10px;
      }

      .menu-item {
        width: 100%;
      }

      .menu-parent {
        width: 100%;
        justify-content: space-between;
        padding: 13px 10px;
        border-radius: 10px;
      }

      .dropdown-menu {
        position: static;
        display: none;
        margin: 4px 0 6px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
      }
      
      .dropdown-menu::before {
      content: "";
      position: absolute;
      top: -8px;
      left: 5%;
      width: 16px;
      height: 16px;
      background: #153952;
      border-left: 1px solid rgba(217, 130, 31, 0.24);
      border-top: 1px solid rgba(217, 130, 31, 0.24);
      transform: translateX(-50%) rotate(45deg);
    }

      .menu-item:hover .dropdown-menu,
      .menu-item:focus-within .dropdown-menu {
        display: grid;
      }

      .menu a:hover {
        background: #fff3e3;
      }

      .project-grid,
      .stats-box,
      .steps,
      .review-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .process-grid {
        grid-template-columns: repeat(3, 1fr);
      }

      .gallery-images {
        grid-template-columns: repeat(3, 1fr);
      }

      .map-content,
      .info-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 900px) {
      section {
        padding: 30px 0;
      }

      .footer-inner,
      .social-panel,
      .footer-bottom {
        grid-template-columns: 1fr;
      }

      .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .brand-panel {
        padding-right: 0;
        border-right: 0;
      }

      .footer-bottom {
        gap: 26px;
      }

      .copyright {
        padding-left: 0;
        border-left: 0;
        white-space: normal;
      }
    }

    @media (max-width: 640px) {
      .container {
        width: min(92%, var(--container));
      }

      .navbar {
        height: 80px;
        gap: 10px;
      }

      .logo img {
        width: 158px;
        height: 58px;
      }

      .navbar > .btn {
        min-height: 42px;
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 12px;
        max-width: 170px;
      }

      .menu {
        top: 80px;
      }

      .menu-toggle {
        width: 46px;
        height: 46px;
      }

      .hero {
        min-height: 660px;
        padding: 120px 0 70px;
      }

      .badge {
        padding: 9px 14px;
        font-size: 13px;
      }

      .hero p {
        font-size: 16px;
      }

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

      .project-grid,
      .stats-box,
      .steps,
      .process-grid,
      .review-grid,
      .gallery-images,
      .form-grid {
        grid-template-columns: 1fr;
      }

      .project-card {
        min-height: 320px;
      }

      .gallery-heading {
        align-items: flex-start;
      }

      .gallery-images img {
        height: 230px;
      }

      .form-box,
      .info-card,
      .reviews,
      .map-content {
        padding: 24px;
      }

      .stats-box {
        padding: 18px;
      }

      .map-frame {
        height: 300px;
      }

      .fm-footer {
        padding: 50px 24px 34px;
      }

      .brand-lockup {
        align-items: flex-start;
      }

      .footer-logo-img {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
      }

      .brand-lockup h2 {
        font-size: 29px;
      }

      .feature-row {
        grid-template-columns: repeat(2, 1fr);
      }

      .phone-card,
      .bottom-tagline {
        align-items: flex-start;
      }

      .phone-card {
        padding: 18px;
      }

      .phone-card small,
      .phone-card em,
      .phone-card strong {
        white-space: normal;
      }

      .phone-card strong {
        font-size: 24px;
      }

      .bottom-tagline {
        gap: 18px;
      }

      .tag-icon {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
      }

      .whatsapp-widget {
        right: 16px;
        bottom: 16px;
      }

      .ai-chat-widget {
        right: 16px;
        bottom: 88px;
      }

      .ai-panel {
        bottom: 70px;
        height: min(500px, calc(100vh - 108px));
        max-height: calc(100vh - 108px);
      }

      .wa-float {
        width: 58px;
        height: 58px;
      }

      .ai-float {
        width: 58px;
        height: 58px;
      }

      .welcome-body,
      .welcome-hero {
        padding: 26px;
      }
    }

    @media (max-height: 720px) {
      .ai-panel {
        bottom: 68px;
        height: min(460px, calc(100vh - 92px));
        max-height: calc(100vh - 92px);
      }

      .ai-head {
        padding: 14px 16px;
      }

      .ai-avatar {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
      }

      .ai-messages {
        padding: 14px;
      }

      .ai-quick {
        padding: 0 14px 12px;
        max-height: 84px;
      }

      .ai-form {
        padding: 12px 14px 14px;
      }
    }

    @media (max-width: 410px) {
      .navbar > .btn {
        max-width: 132px;
        white-space: normal;
      }

      .brand-lockup {
        gap: 14px;
      }

      .phone-card {
        gap: 14px;
      }

      .phone-icon {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
      }

      .footer-links {
        grid-template-columns: 1fr;
      }

      .wa-panel,
      .ai-panel {
        width: calc(100vw - 28px);
      }
    }
  
    /* Spin popup responsive fix: keeps the popup inside screen without inner scrolling. */
    #welcomePopup {
      padding: 10px;
    }

    .welcome-content {
      overflow: hidden;
      width: min(94vw, 780px);
      max-height: min(96vh, 780px);
      display: flex;
      flex-direction: column;
    }

    .welcome-hero {
      flex: 0 0 auto;
    }

    .welcome-body {
      flex: 1 1 auto;
      min-height: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .spin-game {
      flex: 0 1 auto;
    }

    .welcome-actions {
      flex: 0 0 auto;
    }

    @media (max-width: 640px) {
      #welcomePopup {
        padding: 8px;
        align-items: center;
      }

      .welcome-content {
        width: min(94vw, 430px);
        max-height: 94vh;
        overflow: hidden;
        border-radius: 24px;
      }

      .welcome-content .popup-close {
        top: 12px;
        right: 16px;
        font-size: 34px;
      }

      .welcome-hero {
        padding: 24px 18px 24px;
      }

      .welcome-hero::after {
        display: none;
      }

      .welcome-hero small {
        margin-bottom: 8px;
        font-size: 10px;
        letter-spacing: 4px;
      }

      .welcome-hero h2 {
        margin-bottom: 10px;
        font-size: clamp(34px, 10vw, 44px);
        line-height: 0.98;
      }

      .welcome-hero p {
        max-width: 330px;
        font-size: 14px;
        line-height: 1.35;
      }

      .welcome-body {
        padding: 14px 14px 18px;
      }

      .spin-game {
        margin-top: 0;
      }

      .spin-wheel-wrap {
        width: min(62vw, 230px);
        height: min(62vw, 230px);
        margin-bottom: 12px;
      }

      .spin-wheel-wrap::before {
        inset: 16px;
      }

      .spin-pointer {
        top: -3px;
        width: 42px;
        height: 54px;
      }

      .spin-wheel {
        width: min(52vw, 186px);
        height: min(52vw, 186px);
        border-width: 7px;
      }

      .spin-wheel::before {
        inset: -13px;
        border-width: 6px;
      }

      .spin-wheel::after {
        width: 54px;
        height: 54px;
        border-width: 7px;
      }

      .spin-label {
        width: 48px;
        height: 24px;
        margin: -12px 0 0 -24px;
        font-size: 15px;
      }

      .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-60px) rotate(0deg); }
      .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-60px) rotate(-36deg); }
      .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-60px) rotate(-72deg); }
      .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-60px) rotate(-108deg); }
      .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-60px) rotate(-144deg); }
      .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-60px) rotate(-180deg); }
      .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-60px) rotate(-216deg); }
      .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-60px) rotate(-252deg); }
      .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-60px) rotate(-288deg); }
      .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-60px) rotate(-324deg); }

      .spin-result {
        max-width: 360px;
        margin-bottom: 10px;
        font-size: clamp(20px, 6vw, 26px);
        line-height: 1.15;
      }

      .spin-note {
        max-width: 360px;
        margin-bottom: 12px;
        padding: 9px 12px;
        border-radius: 16px;
        font-size: 13px;
        line-height: 1.35;
      }

      .spin-note-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 18px;
      }

      .welcome-actions {
        gap: 9px;
      }

      .welcome-actions .btn {
        width: auto;
        min-width: 132px;
        min-height: 44px;
        padding: 10px 16px;
        border-radius: 14px;
        font-size: 14px;
      }

      .spin-before-btn::after {
        margin-left: 8px;
        font-size: 26px;
      }

      .welcome-content.spin-done .welcome-hero {
        padding: 22px 18px 24px;
      }

      .welcome-content.spin-done .welcome-hero::after {
        display: none;
      }

      .welcome-content.spin-done .welcome-hero h2 {
        font-size: clamp(42px, 13vw, 58px);
      }

      .welcome-content.spin-done .welcome-hero p {
        font-size: 13px;
        line-height: 1.35;
      }

      .welcome-content.spin-done .spin-game {
        margin-top: 0;
      }

      .welcome-content.spin-done .spin-wheel-wrap {
        width: min(58vw, 210px);
        height: min(58vw, 210px);
        margin-bottom: 10px;
      }

      .welcome-content.spin-done .spin-wheel {
        width: min(49vw, 170px);
        height: min(49vw, 170px);
      }

      .welcome-content.spin-done .spin-label {
        width: 44px;
        height: 22px;
        margin: -11px 0 0 -22px;
        font-size: 14px;
      }

      .welcome-content.spin-done .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-54px) rotate(0deg); }
      .welcome-content.spin-done .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-54px) rotate(-36deg); }
      .welcome-content.spin-done .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-54px) rotate(-72deg); }
      .welcome-content.spin-done .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-54px) rotate(-108deg); }
      .welcome-content.spin-done .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-54px) rotate(-144deg); }
      .welcome-content.spin-done .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-54px) rotate(-180deg); }
      .welcome-content.spin-done .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-54px) rotate(-216deg); }
      .welcome-content.spin-done .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-54px) rotate(-252deg); }
      .welcome-content.spin-done .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-54px) rotate(-288deg); }
      .welcome-content.spin-done .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-54px) rotate(-324deg); }

      .welcome-content.spin-done .spin-result {
        max-width: 360px;
        margin-bottom: 12px;
        padding: 10px 12px;
        font-size: 13px;
        line-height: 1.35;
      }

      .welcome-content.spin-done .spin-close-btn {
        width: 100%;
        min-width: 0;
      }
    }

    @media (max-width: 390px), (max-height: 760px) {
      .welcome-content {
        max-height: 96vh;
      }

      .welcome-hero {
        padding-top: 18px;
        padding-bottom: 18px;
      }

      .welcome-hero small {
        margin-bottom: 6px;
        font-size: 9px;
        letter-spacing: 3px;
      }

      .welcome-hero h2 {
        margin-bottom: 8px;
        font-size: clamp(28px, 9vw, 38px);
      }

      .welcome-hero p {
        font-size: 12px;
        line-height: 1.3;
      }

      .welcome-body {
        padding: 10px 12px 14px;
      }

      .spin-wheel-wrap {
        width: min(54vw, 190px);
        height: min(54vw, 190px);
        margin-bottom: 9px;
      }

      .spin-wheel {
        width: min(46vw, 154px);
        height: min(46vw, 154px);
      }

      .spin-pointer {
        width: 34px;
        height: 44px;
      }

      .spin-wheel::after {
        width: 44px;
        height: 44px;
        border-width: 6px;
      }

      .spin-label {
        width: 38px;
        height: 20px;
        margin: -10px 0 0 -19px;
        font-size: 12px;
      }

      .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-49px) rotate(0deg); }
      .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-49px) rotate(-36deg); }
      .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-49px) rotate(-72deg); }
      .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-49px) rotate(-108deg); }
      .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-49px) rotate(-144deg); }
      .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-49px) rotate(-180deg); }
      .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-49px) rotate(-216deg); }
      .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-49px) rotate(-252deg); }
      .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-49px) rotate(-288deg); }
      .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-49px) rotate(-324deg); }

      .spin-result {
        margin-bottom: 8px;
        font-size: clamp(18px, 5.5vw, 22px);
      }

      .spin-note {
        margin-bottom: 9px;
        padding: 8px 10px;
        font-size: 12px;
      }

      .welcome-actions .btn {
        min-width: 118px;
        min-height: 40px;
        padding: 9px 12px;
        font-size: 12px;
      }

      .welcome-content.spin-done .welcome-hero {
        padding-top: 18px;
        padding-bottom: 18px;
      }

      .welcome-content.spin-done .welcome-hero h2 {
        font-size: clamp(34px, 11vw, 46px);
      }

      .welcome-content.spin-done .spin-wheel-wrap {
        width: min(50vw, 176px);
        height: min(50vw, 176px);
      }

      .welcome-content.spin-done .spin-wheel {
        width: min(42vw, 142px);
        height: min(42vw, 142px);
      }

      .welcome-content.spin-done .spin-label {
        width: 36px;
        height: 18px;
        margin: -9px 0 0 -18px;
        font-size: 11px;
      }

      .welcome-content.spin-done .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-45px) rotate(0deg); }
      .welcome-content.spin-done .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-45px) rotate(-36deg); }
      .welcome-content.spin-done .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-45px) rotate(-72deg); }
      .welcome-content.spin-done .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-45px) rotate(-108deg); }
      .welcome-content.spin-done .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-45px) rotate(-144deg); }
      .welcome-content.spin-done .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-45px) rotate(-180deg); }
      .welcome-content.spin-done .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-45px) rotate(-216deg); }
      .welcome-content.spin-done .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-45px) rotate(-252deg); }
      .welcome-content.spin-done .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-45px) rotate(-288deg); }
      .welcome-content.spin-done .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-45px) rotate(-324deg); }
    }

  
    /* Spin popup compact premium update: smaller popup width, bigger wheel, no inner scrolling. */
    #welcomePopup {
      padding: 10px;
    }

    .welcome-content {
      width: min(92vw, 620px);
      max-height: 94vh;
      overflow: hidden;
      border-radius: 30px;
      border: 1.5px solid rgba(247, 161, 61, 0.9);
      box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    }

    .welcome-hero {
      padding: 24px 28px 22px;
      background:
        radial-gradient(circle at 50% -10%, rgba(247, 161, 61, 0.28), transparent 34%),
        linear-gradient(135deg, #061827, #0f344f 56%, #071b2b);
      border-bottom: 4px solid rgba(247, 161, 61, 0.95);
    }

    .welcome-hero small {
      margin-bottom: 8px;
      color: var(--orange-light);
      font-size: 12px;
      letter-spacing: 6px;
    }

    .welcome-hero h2 {
      margin-bottom: 10px;
      font-size: clamp(38px, 6vw, 58px);
      line-height: 0.98;
    }

    .welcome-hero p {
      max-width: 470px;
      margin: 0 auto;
      font-size: 16px;
      line-height: 1.45;
    }

    .welcome-body {
      padding: 18px 24px 24px;
      background:
        radial-gradient(circle at 50% 18%, rgba(247, 161, 61, 0.12), transparent 28%),
        linear-gradient(180deg, #fffaf3, #ffffff 58%, #fff8ef);
    }

    .spin-wheel-wrap {
      width: min(48vw, 310px);
      height: min(48vw, 310px);
      margin-bottom: 14px;
      filter: drop-shadow(0 24px 34px rgba(6, 24, 39, 0.22));
    }

    .spin-wheel-wrap::before {
      inset: 19px;
      background:
        conic-gradient(from 0deg, rgba(247, 161, 61, 0.28), rgba(255, 255, 255, 0.12), rgba(217, 130, 31, 0.35), rgba(255, 255, 255, 0.14), rgba(247, 161, 61, 0.28));
      border: 9px solid rgba(247, 161, 61, 0.45);
      box-shadow:
        0 0 0 7px rgba(255, 255, 255, 0.88),
        inset 0 0 22px rgba(217, 130, 31, 0.22);
    }

    .spin-pointer {
      top: -2px;
      width: 58px;
      height: 70px;
      filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.24));
      background: linear-gradient(180deg, #ffe5a4, #f7a13d 48%, #d9821f);
    }

    .spin-wheel {
      width: min(39vw, 248px);
      height: min(39vw, 248px);
      border: 10px solid #fff7e8;
      box-shadow:
        0 0 0 9px rgba(217, 130, 31, 0.88),
        0 0 0 17px rgba(255, 229, 164, 0.58),
        inset 0 0 24px rgba(0, 0, 0, 0.16);
    }

    .spin-wheel::before {
      inset: -17px;
      border: 8px solid rgba(255, 229, 164, 0.95);
      box-shadow:
        inset 0 0 18px rgba(217, 130, 31, 0.38),
        0 0 18px rgba(247, 161, 61, 0.28);
    }

    .spin-wheel::after {
      width: 72px;
      height: 72px;
      border: 9px solid #fff7e8;
      background:
        radial-gradient(circle at 34% 28%, #fff2bd, transparent 26%),
        linear-gradient(135deg, #f7a13d, #d9821f);
      box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.24),
        inset 0 0 16px rgba(255, 255, 255, 0.32);
    }

    .spin-label {
      width: 58px;
      height: 28px;
      margin: -14px 0 0 -29px;
      font-size: 18px;
      text-shadow: 0 2px 5px rgba(0, 0, 0, 0.34);
    }

    .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-80px) rotate(0deg); }
    .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-80px) rotate(-36deg); }
    .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-80px) rotate(-72deg); }
    .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-80px) rotate(-108deg); }
    .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-80px) rotate(-144deg); }
    .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-80px) rotate(-180deg); }
    .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-80px) rotate(-216deg); }
    .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-80px) rotate(-252deg); }
    .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-80px) rotate(-288deg); }
    .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-80px) rotate(-324deg); }

    .spin-result {
      max-width: 520px;
      margin-bottom: 14px;
      color: #071b2b;
      font-size: clamp(26px, 4vw, 36px);
      letter-spacing: 2px;
      line-height: 1.14;
    }

    .spin-note {
      max-width: 430px;
      margin-bottom: 14px;
      padding: 11px 16px;
      border: 1px solid rgba(217, 130, 31, 0.16);
      background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 239, 0.94));
      box-shadow: 0 14px 35px rgba(6, 24, 39, 0.08);
      font-size: 14px;
    }

    .welcome-actions .btn {
      min-height: 46px;
      padding: 12px 26px;
      border-radius: 15px;
      font-size: 15px;
    }

    .welcome-content.spin-done .welcome-hero {
      padding: 24px 28px 20px;
    }

    .welcome-content.spin-done .welcome-hero h2 {
      font-size: clamp(46px, 7vw, 72px);
    }

    .welcome-content.spin-done .spin-wheel-wrap {
      width: min(43vw, 270px);
      height: min(43vw, 270px);
      margin-bottom: 12px;
    }

    .welcome-content.spin-done .spin-wheel {
      width: min(35vw, 220px);
      height: min(35vw, 220px);
    }

    .welcome-content.spin-done .spin-label {
      width: 54px;
      height: 26px;
      margin: -13px 0 0 -27px;
      font-size: 17px;
    }

    .welcome-content.spin-done .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-70px) rotate(0deg); }
    .welcome-content.spin-done .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-70px) rotate(-36deg); }
    .welcome-content.spin-done .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-70px) rotate(-72deg); }
    .welcome-content.spin-done .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-70px) rotate(-108deg); }
    .welcome-content.spin-done .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-70px) rotate(-144deg); }
    .welcome-content.spin-done .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-70px) rotate(-180deg); }
    .welcome-content.spin-done .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-70px) rotate(-216deg); }
    .welcome-content.spin-done .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-70px) rotate(-252deg); }
    .welcome-content.spin-done .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-70px) rotate(-288deg); }
    .welcome-content.spin-done .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-70px) rotate(-324deg); }

    @media (max-width: 640px) {
      .welcome-content {
        width: min(90vw, 400px);
        max-height: 94vh;
      }

      .welcome-hero {
        padding: 18px 16px 16px;
      }

      .welcome-hero small {
        margin-bottom: 6px;
        font-size: 9px;
        letter-spacing: 4px;
      }

      .welcome-hero h2 {
        margin-bottom: 8px;
        font-size: clamp(31px, 9vw, 41px);
      }

      .welcome-hero p {
        max-width: 300px;
        font-size: 12.5px;
        line-height: 1.32;
      }

      .welcome-body {
        padding: 12px 12px 15px;
      }

      .spin-wheel-wrap {
        width: min(68vw, 250px);
        height: min(68vw, 250px);
        margin-bottom: 10px;
      }

      .spin-wheel {
        width: min(56vw, 204px);
        height: min(56vw, 204px);
      }

      .spin-wheel::after {
        width: 58px;
        height: 58px;
      }

      .spin-pointer {
        width: 44px;
        height: 56px;
      }

      .spin-label {
        width: 46px;
        height: 22px;
        margin: -11px 0 0 -23px;
        font-size: 14px;
      }

      .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-66px) rotate(0deg); }
      .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-66px) rotate(-36deg); }
      .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-66px) rotate(-72deg); }
      .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-66px) rotate(-108deg); }
      .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-66px) rotate(-144deg); }
      .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-66px) rotate(-180deg); }
      .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-66px) rotate(-216deg); }
      .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-66px) rotate(-252deg); }
      .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-66px) rotate(-288deg); }
      .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-66px) rotate(-324deg); }

      .spin-result {
        max-width: 340px;
        margin-bottom: 9px;
        font-size: clamp(20px, 5.7vw, 26px);
        line-height: 1.15;
      }

      .spin-note {
        max-width: 340px;
        margin-bottom: 10px;
        padding: 8px 11px;
        font-size: 12px;
        line-height: 1.28;
      }

      .welcome-actions .btn {
        min-width: 124px;
        min-height: 40px;
        padding: 9px 14px;
        font-size: 12.5px;
      }

      .welcome-content.spin-done .welcome-hero {
        padding: 18px 16px 16px;
      }

      .welcome-content.spin-done .welcome-hero h2 {
        font-size: clamp(38px, 11vw, 50px);
      }

      .welcome-content.spin-done .spin-wheel-wrap {
        width: min(63vw, 230px);
        height: min(63vw, 230px);
      }

      .welcome-content.spin-done .spin-wheel {
        width: min(52vw, 190px);
        height: min(52vw, 190px);
      }

      .welcome-content.spin-done .spin-label {
        width: 43px;
        height: 21px;
        margin: -10.5px 0 0 -21.5px;
        font-size: 13px;
      }

      .welcome-content.spin-done .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-61px) rotate(0deg); }
      .welcome-content.spin-done .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-61px) rotate(-36deg); }
      .welcome-content.spin-done .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-61px) rotate(-72deg); }
      .welcome-content.spin-done .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-61px) rotate(-108deg); }
      .welcome-content.spin-done .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-61px) rotate(-144deg); }
      .welcome-content.spin-done .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-61px) rotate(-180deg); }
      .welcome-content.spin-done .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-61px) rotate(-216deg); }
      .welcome-content.spin-done .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-61px) rotate(-252deg); }
      .welcome-content.spin-done .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-61px) rotate(-288deg); }
      .welcome-content.spin-done .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-61px) rotate(-324deg); }
    }

    @media (max-width: 380px), (max-height: 720px) {
      .welcome-content {
        width: min(90vw, 360px);
        max-height: 95vh;
      }

      .welcome-hero {
        padding: 14px 14px 13px;
      }

      .welcome-hero h2 {
        font-size: clamp(28px, 8.8vw, 36px);
      }

      .welcome-hero p {
        font-size: 11.5px;
      }

      .welcome-body {
        padding: 9px 10px 12px;
      }

      .spin-wheel-wrap {
        width: min(61vw, 205px);
        height: min(61vw, 205px);
        margin-bottom: 8px;
      }

      .spin-wheel {
        width: min(50vw, 168px);
        height: min(50vw, 168px);
      }

      .spin-label {
        width: 38px;
        height: 18px;
        margin: -9px 0 0 -19px;
        font-size: 11.5px;
      }

      .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-54px) rotate(0deg); }
      .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-54px) rotate(-36deg); }
      .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-54px) rotate(-72deg); }
      .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-54px) rotate(-108deg); }
      .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-54px) rotate(-144deg); }
      .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-54px) rotate(-180deg); }
      .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-54px) rotate(-216deg); }
      .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-54px) rotate(-252deg); }
      .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-54px) rotate(-288deg); }
      .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-54px) rotate(-324deg); }

      .spin-result {
        font-size: clamp(18px, 5vw, 22px);
      }

      .spin-note {
        padding: 7px 9px;
        font-size: 11px;
      }

      .welcome-actions .btn {
        min-height: 38px;
      }
    }

  
    /* Final premium spin popup update: image reference style, no overlap, balanced arrow, bigger wheel, no popup scrolling. */
    #welcomePopup {
      padding: 10px;
      overflow: hidden;
    }

    #welcomePopup.is-open {
      align-items: center;
      justify-content: center;
    }

    .welcome-content {
      width: min(92vw, 680px);
      max-height: 94vh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      border: 1.5px solid rgba(247, 161, 61, 0.95);
      border-radius: 28px;
      background: #fffaf3;
      box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.48),
        inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    }

    .welcome-content .popup-close {
      top: 18px;
      right: 22px;
      z-index: 5;
      width: 44px;
      height: 44px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255, 255, 255, 0.22);
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.07);
      color: #ffffff;
      font-size: 34px;
      line-height: 1;
    }

    .welcome-hero {
      position: relative;
      flex: 0 0 auto;
      padding: 26px 42px 68px;
      overflow: hidden;
      text-align: center;
      background:
        radial-gradient(circle at 50% 4%, rgba(255, 255, 255, 0.11), transparent 34%),
        linear-gradient(135deg, #061827, #0f344f 56%, #061827);
      border-bottom: 0;
    }

    .welcome-hero::after {
      content: "";
      position: absolute;
      left: -6%;
      right: -6%;
      bottom: -42px;
      height: 88px;
      border-top: 4px solid rgba(247, 161, 61, 0.92);
      border-radius: 0 0 50% 50% / 0 0 100% 100%;
      background: #fffaf3;
    }

    .welcome-hero small {
      position: relative;
      z-index: 1;
      margin-bottom: 10px;
      color: #f7a13d;
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 7px;
    }

    .welcome-hero h2 {
      position: relative;
      z-index: 1;
      max-width: 560px;
      margin: 0 auto 14px;
      color: #ffffff;
      font-size: clamp(42px, 6vw, 64px);
      line-height: 0.98;
      letter-spacing: 0;
      text-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    }

    .welcome-hero h2 span {
      color: #f7a13d;
    }

    .welcome-hero p {
      position: relative;
      z-index: 1;
      max-width: 480px;
      margin: 0 auto;
      color: rgba(255, 255, 255, 0.94);
      font-size: 18px;
      line-height: 1.45;
    }

    .welcome-body {
      flex: 1 1 auto;
      min-height: 0;
      padding: 0 34px 28px;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      background:
        radial-gradient(circle at 50% 22%, rgba(247, 161, 61, 0.16), transparent 34%),
        linear-gradient(180deg, #fffaf3 0%, #ffffff 56%, #fff8ef 100%);
    }

    .spin-game {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-top: -48px;
      flex: 0 1 auto;
    }

    .spin-wheel-wrap {
      position: relative;
      width: min(55vw, 380px);
      height: min(55vw, 380px);
      margin: 0 auto 18px;
      display: grid;
      place-items: center;
      filter: drop-shadow(0 24px 36px rgba(6, 24, 39, 0.24));
    }

    .spin-wheel-wrap::before {
      content: "";
      position: absolute;
      inset: 21px;
      border-radius: 50%;
      background:
        repeating-conic-gradient(from 0deg, rgba(255, 236, 180, 0.8) 0deg 3deg, rgba(217, 130, 31, 0.98) 3deg 6deg);
      border: 8px solid rgba(255, 236, 180, 0.96);
      box-shadow:
        0 0 0 8px rgba(255, 255, 255, 0.9),
        inset 0 0 22px rgba(217, 130, 31, 0.35);
    }

    .spin-pointer {
      position: absolute;
      top: 16px;
      left: 50%;
      z-index: 4;
      width: 44px;
      height: 58px;
      transform: translateX(-50%);
      clip-path: polygon(50% 100%, 0 0, 100% 0);
      background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.75), transparent 24%),
        linear-gradient(180deg, #ffe7a5, #f7a13d 52%, #d9821f);
      filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.22));
    }

    .spin-wheel {
      position: relative;
      z-index: 2;
      width: min(45vw, 310px);
      height: min(45vw, 310px);
      border-radius: 50%;
      border: 9px solid #fff7e8;
      background:
        conic-gradient(
          from -18deg,
          #0f344f 0deg 36deg,
          #e18a17 36deg 72deg,
          #0f344f 72deg 108deg,
          #e18a17 108deg 144deg,
          #0f344f 144deg 180deg,
          #e18a17 180deg 216deg,
          #0f344f 216deg 252deg,
          #e18a17 252deg 288deg,
          #0f344f 288deg 324deg,
          #e18a17 324deg 360deg
        );
      transition: transform 5.2s cubic-bezier(0.12, 0.78, 0.18, 1);
      box-shadow:
        0 0 0 10px rgba(217, 130, 31, 0.92),
        0 0 0 20px rgba(255, 229, 164, 0.54),
        inset 0 0 28px rgba(0, 0, 0, 0.18);
    }

    .spin-wheel::before {
      content: "";
      position: absolute;
      inset: -18px;
      border-radius: 50%;
      border: 7px solid rgba(255, 234, 174, 0.96);
      box-shadow:
        inset 0 0 18px rgba(217, 130, 31, 0.42),
        0 0 18px rgba(247, 161, 61, 0.34);
      pointer-events: none;
    }

    .spin-wheel::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 50%;
      z-index: 3;
      width: 88px;
      height: 88px;
      border: 10px solid #fff7e8;
      border-radius: 50%;
      transform: translate(-50%, -50%);
      background:
        radial-gradient(circle at 35% 28%, #fff2bd, transparent 27%),
        linear-gradient(135deg, #f7a13d, #d9821f);
      box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.24),
        inset 0 0 17px rgba(255, 255, 255, 0.34);
    }

    .spin-label {
      position: absolute;
      left: 50%;
      top: 50%;
      z-index: 2;
      display: grid;
      place-items: center;
      width: 68px;
      height: 32px;
      margin: -16px 0 0 -34px;
      color: #ffffff;
      font-size: 22px;
      font-weight: 900;
      line-height: 1;
      text-shadow: 0 3px 7px rgba(0, 0, 0, 0.36);
      pointer-events: none;
    }

    .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-101px) rotate(0deg); }
    .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-101px) rotate(-36deg); }
    .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-101px) rotate(-72deg); }
    .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-101px) rotate(-108deg); }
    .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-101px) rotate(-144deg); }
    .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-101px) rotate(-180deg); }
    .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-101px) rotate(-216deg); }
    .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-101px) rotate(-252deg); }
    .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-101px) rotate(-288deg); }
    .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-101px) rotate(-324deg); }

    .spin-result {
      max-width: 560px;
      margin: 0 auto 14px;
      color: #071b2b;
      font-size: clamp(25px, 4vw, 34px);
      font-weight: 900;
      letter-spacing: 2px;
      line-height: 1.15;
      text-align: center;
    }

    .spin-note {
      display: flex;
      align-items: center;
      gap: 14px;
      width: min(100%, 430px);
      margin: 0 auto 17px;
      padding: 12px 18px;
      border: 1px solid rgba(217, 130, 31, 0.2);
      border-radius: 18px;
      background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 239, 0.95));
      color: #20384f;
      box-shadow: 0 14px 35px rgba(6, 24, 39, 0.08);
      font-size: 15px;
      line-height: 1.35;
      text-align: left;
    }

    .spin-note-icon {
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      flex: 0 0 42px;
      border-radius: 50%;
      background: linear-gradient(135deg, #061827, #0f344f);
      color: #f7a13d;
      font-size: 22px;
    }

    .welcome-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 14px;
      flex: 0 0 auto;
    }

    .welcome-actions .btn {
      min-width: 210px;
      min-height: 54px;
      padding: 13px 30px;
      border-radius: 17px;
      font-size: 17px;
      letter-spacing: 1.4px;
      text-transform: uppercase;
    }

    .spin-before-btn {
      background: linear-gradient(135deg, #061827, #0f344f);
      color: #ffffff;
      border: 1px solid rgba(247, 161, 61, 0.75);
      box-shadow: 0 15px 30px rgba(15, 52, 79, 0.25);
    }

    .spin-before-btn::after {
      content: "›";
      margin-left: 16px;
      color: #f7a13d;
      font-size: 36px;
      line-height: 0;
    }

    .welcome-secondary {
      border: 1px solid rgba(217, 130, 31, 0.72);
      background: rgba(255, 255, 255, 0.82);
      color: #061827;
      box-shadow: none;
    }

    .spin-close-btn {
      display: none;
      min-width: 300px;
      background: linear-gradient(135deg, #061827, #0f344f);
      color: #ffffff;
      border: 1px solid rgba(247, 161, 61, 0.75);
    }

    .welcome-content.spin-done .welcome-hero {
      padding: 28px 42px 58px;
    }

    .welcome-content.spin-done .welcome-hero h2 {
      font-size: clamp(48px, 7vw, 78px);
      color: #f7a13d;
    }

    .welcome-content.spin-done .welcome-hero h2 span {
      color: #f7a13d;
    }

    .welcome-content.spin-done .spin-game {
      margin-top: -44px;
    }

    .welcome-content.spin-done .spin-wheel-wrap {
      width: min(46vw, 320px);
      height: min(46vw, 320px);
      margin-bottom: 16px;
    }

    .welcome-content.spin-done .spin-wheel {
      width: min(38vw, 260px);
      height: min(38vw, 260px);
    }

    .welcome-content.spin-done .spin-label {
      width: 60px;
      height: 30px;
      margin: -15px 0 0 -30px;
      font-size: 19px;
    }

    .welcome-content.spin-done .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-84px) rotate(0deg); }
    .welcome-content.spin-done .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-84px) rotate(-36deg); }
    .welcome-content.spin-done .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-84px) rotate(-72deg); }
    .welcome-content.spin-done .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-84px) rotate(-108deg); }
    .welcome-content.spin-done .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-84px) rotate(-144deg); }
    .welcome-content.spin-done .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-84px) rotate(-180deg); }
    .welcome-content.spin-done .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-84px) rotate(-216deg); }
    .welcome-content.spin-done .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-84px) rotate(-252deg); }
    .welcome-content.spin-done .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-84px) rotate(-288deg); }
    .welcome-content.spin-done .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-84px) rotate(-324deg); }

    .welcome-content.spin-done .spin-result {
      width: min(100%, 500px);
      margin-bottom: 16px;
      padding: 13px 18px;
      border: 1px solid rgba(217, 130, 31, 0.2);
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.9);
      color: #20384f;
      font-size: 16px;
      font-weight: 700;
      letter-spacing: 0;
      line-height: 1.45;
      box-shadow: 0 14px 35px rgba(6, 24, 39, 0.08);
    }

    .welcome-content.spin-done .spin-note {
      display: none;
    }

    .welcome-content.spin-done .spin-before-btn,
    .welcome-content.spin-done .welcome-secondary {
      display: none;
    }

    .welcome-content.spin-done .spin-close-btn {
      display: inline-flex;
    }

    @media (max-width: 640px) {
      #welcomePopup {
        padding: 8px;
      }

      .welcome-content {
        width: min(94vw, 430px);
        max-height: 94vh;
        border-radius: 24px;
      }

      .welcome-content .popup-close {
        top: 12px;
        right: 14px;
        width: 38px;
        height: 38px;
        font-size: 31px;
      }

      .welcome-hero {
        padding: 20px 18px 55px;
      }

      .welcome-hero::after {
        bottom: -34px;
        height: 70px;
      }

      .welcome-hero small {
        margin-bottom: 7px;
        font-size: 9px;
        letter-spacing: 5px;
      }

      .welcome-hero h2 {
        max-width: 330px;
        margin-bottom: 10px;
        font-size: clamp(34px, 10vw, 44px);
        line-height: 0.95;
      }

      .welcome-hero p {
        max-width: 320px;
        font-size: 13px;
        line-height: 1.35;
      }

      .welcome-body {
        padding: 0 18px 18px;
      }

      .spin-game {
        margin-top: -36px;
      }

      .spin-wheel-wrap {
        width: min(72vw, 280px);
        height: min(72vw, 280px);
        margin-bottom: 12px;
      }

      .spin-wheel-wrap::before {
        inset: 18px;
        border-width: 7px;
      }

      .spin-pointer {
        top: 13px;
        width: 34px;
        height: 46px;
      }

      .spin-wheel {
        width: min(58vw, 226px);
        height: min(58vw, 226px);
        border-width: 7px;
      }

      .spin-wheel::before {
        inset: -13px;
        border-width: 6px;
      }

      .spin-wheel::after {
        width: 62px;
        height: 62px;
        border-width: 7px;
      }

      .spin-label {
        width: 46px;
        height: 22px;
        margin: -11px 0 0 -23px;
        font-size: 15px;
      }

      .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-73px) rotate(0deg); }
      .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-73px) rotate(-36deg); }
      .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-73px) rotate(-72deg); }
      .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-73px) rotate(-108deg); }
      .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-73px) rotate(-144deg); }
      .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-73px) rotate(-180deg); }
      .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-73px) rotate(-216deg); }
      .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-73px) rotate(-252deg); }
      .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-73px) rotate(-288deg); }
      .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-73px) rotate(-324deg); }

      .spin-result {
        max-width: 360px;
        margin-bottom: 10px;
        font-size: clamp(21px, 6.4vw, 28px);
        line-height: 1.12;
        letter-spacing: 1.6px;
      }

      .spin-note {
        width: min(100%, 360px);
        margin-bottom: 12px;
        padding: 9px 12px;
        gap: 10px;
        font-size: 12px;
        line-height: 1.3;
      }

      .spin-note-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 18px;
      }

      .welcome-actions {
        gap: 10px;
      }

      .welcome-actions .btn {
        min-width: 142px;
        min-height: 43px;
        padding: 9px 16px;
        border-radius: 14px;
        font-size: 13px;
      }

      .spin-before-btn {
        min-width: 210px;
      }

      .welcome-secondary {
        min-width: 210px;
      }

      .welcome-content.spin-done .welcome-hero {
        padding: 20px 18px 50px;
      }

      .welcome-content.spin-done .welcome-hero h2 {
        font-size: clamp(38px, 11vw, 52px);
      }

      .welcome-content.spin-done .spin-game {
        margin-top: -34px;
      }

      .welcome-content.spin-done .spin-wheel-wrap {
        width: min(66vw, 246px);
        height: min(66vw, 246px);
      }

      .welcome-content.spin-done .spin-wheel {
        width: min(55vw, 204px);
        height: min(55vw, 204px);
      }

      .welcome-content.spin-done .spin-label {
        width: 42px;
        height: 21px;
        margin: -10.5px 0 0 -21px;
        font-size: 13px;
      }

      .welcome-content.spin-done .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-66px) rotate(0deg); }
      .welcome-content.spin-done .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-66px) rotate(-36deg); }
      .welcome-content.spin-done .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-66px) rotate(-72deg); }
      .welcome-content.spin-done .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-66px) rotate(-108deg); }
      .welcome-content.spin-done .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-66px) rotate(-144deg); }
      .welcome-content.spin-done .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-66px) rotate(-180deg); }
      .welcome-content.spin-done .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-66px) rotate(-216deg); }
      .welcome-content.spin-done .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-66px) rotate(-252deg); }
      .welcome-content.spin-done .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-66px) rotate(-288deg); }
      .welcome-content.spin-done .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-66px) rotate(-324deg); }

      .welcome-content.spin-done .spin-result {
        max-width: 360px;
        margin-bottom: 12px;
        padding: 10px 12px;
        font-size: 12px;
      }

      .welcome-content.spin-done .spin-close-btn {
        min-width: 210px;
      }
    }

    @media (max-width: 380px), (max-height: 720px) {
      .welcome-content {
        width: min(94vw, 370px);
        max-height: 96vh;
      }

      .welcome-hero {
        padding: 15px 14px 47px;
      }

      .welcome-hero small {
        margin-bottom: 5px;
        font-size: 8px;
        letter-spacing: 4px;
      }

      .welcome-hero h2 {
        margin-bottom: 7px;
        font-size: clamp(29px, 9vw, 38px);
      }

      .welcome-hero p {
        max-width: 290px;
        font-size: 11.5px;
      }

      .welcome-body {
        padding: 0 12px 12px;
      }

      .spin-game {
        margin-top: -33px;
      }

      .spin-wheel-wrap {
        width: min(66vw, 220px);
        height: min(66vw, 220px);
        margin-bottom: 8px;
      }

      .spin-wheel {
        width: min(54vw, 178px);
        height: min(54vw, 178px);
      }

      .spin-pointer {
        top: 12px;
        width: 29px;
        height: 39px;
      }

      .spin-wheel::after {
        width: 50px;
        height: 50px;
        border-width: 6px;
      }

      .spin-label {
        width: 38px;
        height: 18px;
        margin: -9px 0 0 -19px;
        font-size: 11.5px;
      }

      .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-58px) rotate(0deg); }
      .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-58px) rotate(-36deg); }
      .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-58px) rotate(-72deg); }
      .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-58px) rotate(-108deg); }
      .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-58px) rotate(-144deg); }
      .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-58px) rotate(-180deg); }
      .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-58px) rotate(-216deg); }
      .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-58px) rotate(-252deg); }
      .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-58px) rotate(-288deg); }
      .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-58px) rotate(-324deg); }

      .spin-result {
        margin-bottom: 8px;
        font-size: clamp(17px, 5.2vw, 21px);
      }

      .spin-note {
        margin-bottom: 9px;
        padding: 7px 9px;
        font-size: 11px;
      }

      .welcome-actions .btn {
        min-width: 190px;
        min-height: 38px;
        padding: 8px 12px;
        font-size: 12px;
      }
    }

  
    /* Spin popup result visibility fix: keeps the wheel readable after spin is completed. */
    .spin-wheel {
      background:
        conic-gradient(
          from -18deg,
          #0f344f 0deg 36deg,
          #e18a17 36deg 72deg,
          #0f344f 72deg 108deg,
          #e18a17 108deg 144deg,
          #0f344f 144deg 180deg,
          #e18a17 180deg 216deg,
          #0f344f 216deg 252deg,
          #e18a17 252deg 288deg,
          #0f344f 288deg 324deg,
          #e18a17 324deg 360deg
        ) !important;
    }

    .spin-wheel .spin-label {
      color: #ffffff !important;
      opacity: 1 !important;
      visibility: visible !important;
      text-shadow: 0 3px 7px rgba(0, 0, 0, 0.5) !important;
    }

    .welcome-content.spin-done .spin-wheel {
      background:
        conic-gradient(
          from -18deg,
          #0f344f 0deg 36deg,
          #e18a17 36deg 72deg,
          #0f344f 72deg 108deg,
          #e18a17 108deg 144deg,
          #0f344f 144deg 180deg,
          #e18a17 180deg 216deg,
          #0f344f 216deg 252deg,
          #e18a17 252deg 288deg,
          #0f344f 288deg 324deg,
          #e18a17 324deg 360deg
        ) !important;
    }

    .welcome-content.spin-done .spin-wheel::before {
      background: transparent !important;
      opacity: 1 !important;
    }

    .welcome-content.spin-done .spin-wheel::after {
      background:
        radial-gradient(circle at 35% 28%, #fff2bd, transparent 27%),
        linear-gradient(135deg, #f7a13d, #d9821f) !important;
      opacity: 1 !important;
    }

    .welcome-content.spin-done .spin-label {
      color: #ffffff !important;
      opacity: 1 !important;
      visibility: visible !important;
      z-index: 4 !important;
    }

    .welcome-content.spin-done .spin-wheel-wrap::before {
      background:
        repeating-conic-gradient(from 0deg, rgba(255, 236, 180, 0.8) 0deg 3deg, rgba(217, 130, 31, 0.98) 3deg 6deg) !important;
    }

    .welcome-content.spin-done .welcome-body {
      padding-bottom: 18px;
    }

    .welcome-content.spin-done .spin-result {
      font-size: 15px;
      line-height: 1.45;
      color: #0f344f;
    }

    @media (max-width: 640px) {
      .welcome-content.spin-done .spin-wheel-wrap {
        width: min(66vw, 246px);
        height: min(66vw, 246px);
        margin-bottom: 12px;
      }

      .welcome-content.spin-done .spin-wheel {
        width: min(55vw, 204px);
        height: min(55vw, 204px);
      }

      .welcome-content.spin-done .spin-label {
        width: 42px;
        height: 21px;
        margin: -10.5px 0 0 -21px;
        font-size: 13px;
      }

      .welcome-content.spin-done .spin-result {
        font-size: 12.5px;
      }
    }

  
    /* Clean spin wheel final fix: removes unreadable stripe effect and keeps discount text clear. */
    .spin-wheel,
    .welcome-content.spin-done .spin-wheel {
      background:
        conic-gradient(
          from -18deg,
          #0f344f 0deg 36deg,
          #e18a17 36deg 72deg,
          #0f344f 72deg 108deg,
          #e18a17 108deg 144deg,
          #0f344f 144deg 180deg,
          #e18a17 180deg 216deg,
          #0f344f 216deg 252deg,
          #e18a17 252deg 288deg,
          #0f344f 288deg 324deg,
          #e18a17 324deg 360deg
        ) !important;
      overflow: visible !important;
    }

    .spin-wheel::before,
    .welcome-content.spin-done .spin-wheel::before {
      content: "" !important;
      position: absolute !important;
      inset: -14px !important;
      border-radius: 50% !important;
      border: 7px solid rgba(255, 234, 174, 0.96) !important;
      background: transparent !important;
      box-shadow:
        inset 0 0 18px rgba(217, 130, 31, 0.42),
        0 0 18px rgba(247, 161, 61, 0.34) !important;
      opacity: 1 !important;
      pointer-events: none !important;
      z-index: 1 !important;
    }

    .spin-wheel::after,
    .welcome-content.spin-done .spin-wheel::after {
      content: "" !important;
      position: absolute !important;
      left: 50% !important;
      top: 50% !important;
      z-index: 5 !important;
      width: 76px !important;
      height: 76px !important;
      border: 9px solid #fff7e8 !important;
      border-radius: 50% !important;
      transform: translate(-50%, -50%) !important;
      background:
        radial-gradient(circle at 35% 28%, #fff2bd, transparent 27%),
        linear-gradient(135deg, #f7a13d, #d9821f) !important;
      box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.24),
        inset 0 0 17px rgba(255, 255, 255, 0.34) !important;
      opacity: 1 !important;
      pointer-events: none !important;
    }

    .spin-label,
    .welcome-content.spin-done .spin-label {
      color: #ffffff !important;
      opacity: 1 !important;
      visibility: visible !important;
      z-index: 6 !important;
      text-shadow: 0 3px 8px rgba(0, 0, 0, 0.58) !important;
      background: transparent !important;
      filter: none !important;
    }

    .spin-wheel-wrap::before,
    .welcome-content.spin-done .spin-wheel-wrap::before {
      background:
        radial-gradient(circle, rgba(255, 229, 164, 0.38), rgba(217, 130, 31, 0.12) 55%, rgba(255, 255, 255, 0.05)) !important;
      border: 8px solid rgba(255, 236, 180, 0.95) !important;
      box-shadow:
        0 0 0 8px rgba(255, 255, 255, 0.9),
        inset 0 0 22px rgba(217, 130, 31, 0.35) !important;
    }

    .spin-pointer,
    .welcome-content.spin-done .spin-pointer {
      z-index: 8 !important;
      width: 34px !important;
      height: 46px !important;
      top: 15px !important;
    }

    .welcome-content.spin-done .spin-wheel-wrap {
      margin-bottom: 14px !important;
    }

    @media (max-width: 640px) {
      .spin-wheel::after,
      .welcome-content.spin-done .spin-wheel::after {
        width: 58px !important;
        height: 58px !important;
        border-width: 7px !important;
      }

      .spin-wheel::before,
      .welcome-content.spin-done .spin-wheel::before {
        inset: -11px !important;
        border-width: 6px !important;
      }

      .spin-pointer,
      .welcome-content.spin-done .spin-pointer {
        width: 28px !important;
        height: 38px !important;
        top: 13px !important;
      }
    }

  
    /* Final same-design spin popup update: balanced indicator, clean readable wheel, premium navy-gold look. */
    .welcome-content {
      width: min(92vw, 720px) !important;
      max-height: 94vh !important;
      overflow: hidden !important;
      border-radius: 30px !important;
      border: 2px solid rgba(247, 161, 61, 0.95) !important;
      background: #fffaf3 !important;
      box-shadow: 0 35px 95px rgba(0, 0, 0, 0.48) !important;
    }

    .welcome-content .popup-close {
      top: 22px !important;
      right: 24px !important;
      width: 54px !important;
      height: 54px !important;
      border-radius: 50% !important;
      border: 1px solid rgba(255, 255, 255, 0.28) !important;
      background: rgba(255, 255, 255, 0.1) !important;
      color: #ffffff !important;
      font-size: 42px !important;
    }

    .welcome-hero {
      padding: 30px 44px 78px !important;
      background:
        radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.12), transparent 34%),
        linear-gradient(135deg, #061827, #0f344f 58%, #061827) !important;
      border-bottom: 0 !important;
      text-align: center !important;
    }

    .welcome-hero::after {
      content: "" !important;
      position: absolute !important;
      left: -8% !important;
      right: -8% !important;
      bottom: -42px !important;
      height: 90px !important;
      border-top: 4px solid rgba(247, 161, 61, 0.95) !important;
      border-radius: 0 0 50% 50% / 0 0 100% 100% !important;
      background: #fffaf3 !important;
      display: block !important;
    }

    .welcome-hero small {
      color: #f7a13d !important;
      font-size: 14px !important;
      font-weight: 900 !important;
      letter-spacing: 8px !important;
      margin-bottom: 12px !important;
    }

    .welcome-hero h2 {
      max-width: 580px !important;
      margin: 0 auto 18px !important;
      color: #ffffff !important;
      font-size: clamp(48px, 7vw, 76px) !important;
      line-height: 0.95 !important;
      text-shadow: 0 8px 22px rgba(0, 0, 0, 0.24) !important;
    }

    .welcome-hero h2 span {
      color: #f7a13d !important;
    }

    .welcome-hero p {
      max-width: 520px !important;
      margin: 0 auto !important;
      color: rgba(255, 255, 255, 0.95) !important;
      font-size: 19px !important;
      line-height: 1.45 !important;
    }

    .welcome-body {
      padding: 0 38px 30px !important;
      background:
        radial-gradient(circle at 50% 22%, rgba(247, 161, 61, 0.14), transparent 34%),
        linear-gradient(180deg, #fffaf3 0%, #ffffff 58%, #fff8ef 100%) !important;
      overflow: hidden !important;
    }

    .spin-game {
      margin-top: -56px !important;
    }

    .spin-wheel-wrap {
      width: min(56vw, 395px) !important;
      height: min(56vw, 395px) !important;
      margin: 0 auto 18px !important;
      filter: drop-shadow(0 24px 36px rgba(6, 24, 39, 0.24)) !important;
    }

    .spin-wheel-wrap::before,
    .welcome-content.spin-done .spin-wheel-wrap::before {
      inset: 22px !important;
      border-radius: 50% !important;
      background:
        radial-gradient(circle, rgba(255, 229, 164, 0.42), rgba(217, 130, 31, 0.14) 56%, rgba(255, 255, 255, 0.06)) !important;
      border: 9px solid rgba(255, 236, 180, 0.95) !important;
      box-shadow:
        0 0 0 8px rgba(255, 255, 255, 0.9),
        inset 0 0 22px rgba(217, 130, 31, 0.35) !important;
    }

    .spin-pointer,
    .welcome-content.spin-done .spin-pointer {
      top: 22px !important;
      width: 40px !important;
      height: 52px !important;
      z-index: 8 !important;
      background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.75), transparent 24%),
        linear-gradient(180deg, #ffe7a5, #f7a13d 52%, #d9821f) !important;
      filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.22)) !important;
    }

    .spin-wheel,
    .welcome-content.spin-done .spin-wheel {
      width: min(46vw, 320px) !important;
      height: min(46vw, 320px) !important;
      border: 9px solid #fff7e8 !important;
      background:
        conic-gradient(
          from -18deg,
          #0f344f 0deg 36deg,
          #e18a17 36deg 72deg,
          #0f344f 72deg 108deg,
          #e18a17 108deg 144deg,
          #0f344f 144deg 180deg,
          #e18a17 180deg 216deg,
          #0f344f 216deg 252deg,
          #e18a17 252deg 288deg,
          #0f344f 288deg 324deg,
          #e18a17 324deg 360deg
        ) !important;
      box-shadow:
        0 0 0 10px rgba(217, 130, 31, 0.92),
        0 0 0 20px rgba(255, 229, 164, 0.54),
        inset 0 0 28px rgba(0, 0, 0, 0.18) !important;
      overflow: visible !important;
    }

    .spin-wheel::before,
    .welcome-content.spin-done .spin-wheel::before {
      inset: -14px !important;
      border: 7px solid rgba(255, 234, 174, 0.96) !important;
      background: transparent !important;
      z-index: 1 !important;
    }

    .spin-wheel::after,
    .welcome-content.spin-done .spin-wheel::after {
      width: 86px !important;
      height: 86px !important;
      border: 10px solid #fff7e8 !important;
      z-index: 5 !important;
      background:
        radial-gradient(circle at 35% 28%, #fff2bd, transparent 27%),
        linear-gradient(135deg, #f7a13d, #d9821f) !important;
    }

    .spin-label,
    .welcome-content.spin-done .spin-label {
      width: 68px !important;
      height: 32px !important;
      margin: -16px 0 0 -34px !important;
      color: #ffffff !important;
      font-size: 22px !important;
      font-weight: 900 !important;
      z-index: 6 !important;
      opacity: 1 !important;
      visibility: visible !important;
      text-shadow: 0 3px 8px rgba(0, 0, 0, 0.58) !important;
    }

    .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-104px) rotate(0deg) !important; }
    .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-104px) rotate(-36deg) !important; }
    .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-104px) rotate(-72deg) !important; }
    .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-104px) rotate(-108deg) !important; }
    .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-104px) rotate(-144deg) !important; }
    .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-104px) rotate(-180deg) !important; }
    .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-104px) rotate(-216deg) !important; }
    .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-104px) rotate(-252deg) !important; }
    .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-104px) rotate(-288deg) !important; }
    .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-104px) rotate(-324deg) !important; }

    .spin-result {
      max-width: 560px !important;
      margin: 0 auto 16px !important;
      color: #071b2b !important;
      font-size: clamp(26px, 4vw, 36px) !important;
      line-height: 1.15 !important;
    }

    .spin-note {
      width: min(100%, 430px) !important;
      margin: 0 auto 18px !important;
      padding: 13px 18px !important;
      border-radius: 18px !important;
      border: 1px solid rgba(217, 130, 31, 0.22) !important;
      background: rgba(255, 255, 255, 0.88) !important;
      box-shadow: 0 14px 35px rgba(6, 24, 39, 0.08) !important;
    }

    .welcome-actions .btn {
      min-width: 230px !important;
      min-height: 56px !important;
      border-radius: 18px !important;
    }

    .spin-before-btn {
      border: 1px solid rgba(247, 161, 61, 0.78) !important;
      background: linear-gradient(135deg, #061827, #0f344f) !important;
      color: #ffffff !important;
    }

    .welcome-secondary {
      border: 1px solid rgba(217, 130, 31, 0.78) !important;
      background: rgba(255, 255, 255, 0.82) !important;
      color: #061827 !important;
    }

    @media (max-width: 640px) {
      .welcome-content {
        width: min(94vw, 430px) !important;
        max-height: 94vh !important;
        border-radius: 24px !important;
      }

      .welcome-content .popup-close {
        top: 14px !important;
        right: 16px !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 31px !important;
      }

      .welcome-hero {
        padding: 20px 18px 58px !important;
      }

      .welcome-hero::after {
        bottom: -34px !important;
        height: 70px !important;
      }

      .welcome-hero small {
        margin-bottom: 7px !important;
        font-size: 9px !important;
        letter-spacing: 5px !important;
      }

      .welcome-hero h2 {
        max-width: 330px !important;
        margin-bottom: 10px !important;
        font-size: clamp(34px, 10vw, 44px) !important;
        line-height: 0.95 !important;
      }

      .welcome-hero p {
        max-width: 320px !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
      }

      .welcome-body {
        padding: 0 18px 18px !important;
      }

      .spin-game {
        margin-top: -38px !important;
      }

      .spin-wheel-wrap {
        width: min(72vw, 280px) !important;
        height: min(72vw, 280px) !important;
        margin-bottom: 12px !important;
      }

      .spin-wheel-wrap::before,
      .welcome-content.spin-done .spin-wheel-wrap::before {
        inset: 18px !important;
        border-width: 7px !important;
      }

      .spin-pointer,
      .welcome-content.spin-done .spin-pointer {
        top: 16px !important;
        width: 28px !important;
        height: 37px !important;
      }

      .spin-wheel,
      .welcome-content.spin-done .spin-wheel {
        width: min(58vw, 226px) !important;
        height: min(58vw, 226px) !important;
        border-width: 7px !important;
      }

      .spin-wheel::before,
      .welcome-content.spin-done .spin-wheel::before {
        inset: -11px !important;
        border-width: 6px !important;
      }

      .spin-wheel::after,
      .welcome-content.spin-done .spin-wheel::after {
        width: 60px !important;
        height: 60px !important;
        border-width: 7px !important;
      }

      .spin-label,
      .welcome-content.spin-done .spin-label {
        width: 46px !important;
        height: 22px !important;
        margin: -11px 0 0 -23px !important;
        font-size: 15px !important;
      }

      .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-73px) rotate(0deg) !important; }
      .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-73px) rotate(-36deg) !important; }
      .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-73px) rotate(-72deg) !important; }
      .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-73px) rotate(-108deg) !important; }
      .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-73px) rotate(-144deg) !important; }
      .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-73px) rotate(-180deg) !important; }
      .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-73px) rotate(-216deg) !important; }
      .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-73px) rotate(-252deg) !important; }
      .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-73px) rotate(-288deg) !important; }
      .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-73px) rotate(-324deg) !important; }

      .spin-result {
        max-width: 360px !important;
        margin-bottom: 10px !important;
        font-size: clamp(21px, 6.4vw, 28px) !important;
      }

      .spin-note {
        width: min(100%, 360px) !important;
        margin-bottom: 12px !important;
        padding: 9px 12px !important;
        font-size: 12px !important;
      }

      .welcome-actions .btn {
        min-width: 210px !important;
        min-height: 43px !important;
        padding: 9px 16px !important;
        font-size: 13px !important;
      }
    }

    @media (max-width: 380px), (max-height: 720px) {
      .welcome-hero {
        padding: 15px 14px 48px !important;
      }

      .welcome-hero h2 {
        font-size: clamp(29px, 9vw, 38px) !important;
      }

      .welcome-hero p {
        font-size: 11.5px !important;
      }

      .welcome-body {
        padding: 0 12px 12px !important;
      }

      .spin-game {
        margin-top: -32px !important;
      }

      .spin-wheel-wrap {
        width: min(66vw, 220px) !important;
        height: min(66vw, 220px) !important;
      }

      .spin-wheel {
        width: min(54vw, 178px) !important;
        height: min(54vw, 178px) !important;
      }

      .spin-pointer,
      .welcome-content.spin-done .spin-pointer {
        top: 13px !important;
        width: 24px !important;
        height: 32px !important;
      }

      .spin-wheel::after,
      .welcome-content.spin-done .spin-wheel::after {
        width: 50px !important;
        height: 50px !important;
        border-width: 6px !important;
      }

      .spin-label {
        width: 38px !important;
        height: 18px !important;
        margin: -9px 0 0 -19px !important;
        font-size: 11.5px !important;
      }

      .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-58px) rotate(0deg) !important; }
      .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-58px) rotate(-36deg) !important; }
      .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-58px) rotate(-72deg) !important; }
      .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-58px) rotate(-108deg) !important; }
      .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-58px) rotate(-144deg) !important; }
      .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-58px) rotate(-180deg) !important; }
      .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-58px) rotate(-216deg) !important; }
      .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-58px) rotate(-252deg) !important; }
      .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-58px) rotate(-288deg) !important; }
      .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-58px) rotate(-324deg) !important; }
    }

  
    /* Spin popup layout correction: compact premium modal, bigger centered wheel, no wide stretched layout. */
    .welcome-content {
      width: min(94vw, 560px) !important;
      max-height: 94vh !important;
      overflow: hidden !important;
      border-radius: 30px !important;
    }

    .welcome-content .popup-close {
      top: 18px !important;
      right: 18px !important;
      width: 46px !important;
      height: 46px !important;
      font-size: 36px !important;
    }

    .welcome-hero {
      padding: 24px 34px 72px !important;
    }

    .welcome-hero small {
      margin-bottom: 10px !important;
      font-size: 12px !important;
      letter-spacing: 7px !important;
    }

    .welcome-hero h2 {
      max-width: 440px !important;
      margin: 0 auto 14px !important;
      font-size: clamp(42px, 6vw, 56px) !important;
      line-height: 0.98 !important;
    }

    .welcome-hero p {
      max-width: 410px !important;
      font-size: 16px !important;
      line-height: 1.45 !important;
    }

    .welcome-body {
      padding: 0 28px 26px !important;
    }

    .spin-game {
      margin-top: -50px !important;
    }

    .spin-wheel-wrap {
      width: 330px !important;
      height: 330px !important;
      margin: 0 auto 16px !important;
    }

    .spin-wheel-wrap::before,
    .welcome-content.spin-done .spin-wheel-wrap::before {
      inset: 20px !important;
    }

    .spin-pointer,
    .welcome-content.spin-done .spin-pointer {
      top: 18px !important;
      width: 32px !important;
      height: 42px !important;
    }

    .spin-wheel,
    .welcome-content.spin-done .spin-wheel {
      width: 265px !important;
      height: 265px !important;
    }

    .spin-wheel::after,
    .welcome-content.spin-done .spin-wheel::after {
      width: 70px !important;
      height: 70px !important;
      border-width: 8px !important;
    }

    .spin-label,
    .welcome-content.spin-done .spin-label {
      width: 54px !important;
      height: 26px !important;
      margin: -13px 0 0 -27px !important;
      font-size: 17px !important;
    }

    .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-86px) rotate(0deg) !important; }
    .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-86px) rotate(-36deg) !important; }
    .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-86px) rotate(-72deg) !important; }
    .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-86px) rotate(-108deg) !important; }
    .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-86px) rotate(-144deg) !important; }
    .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-86px) rotate(-180deg) !important; }
    .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-86px) rotate(-216deg) !important; }
    .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-86px) rotate(-252deg) !important; }
    .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-86px) rotate(-288deg) !important; }
    .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-86px) rotate(-324deg) !important; }

    .spin-result {
      max-width: 430px !important;
      margin: 0 auto 14px !important;
      font-size: clamp(26px, 4vw, 34px) !important;
      line-height: 1.14 !important;
    }

    .spin-note {
      width: min(100%, 390px) !important;
      margin: 0 auto 16px !important;
      padding: 12px 16px !important;
    }

    .welcome-actions {
      gap: 14px !important;
    }

    .welcome-actions .btn {
      min-width: 185px !important;
      min-height: 52px !important;
      padding: 12px 22px !important;
      font-size: 15px !important;
    }

    .welcome-content.spin-done .welcome-hero {
      padding: 24px 34px 62px !important;
    }

    .welcome-content.spin-done .welcome-hero h2 {
      max-width: 440px !important;
      font-size: clamp(48px, 8vw, 70px) !important;
    }

    .welcome-content.spin-done .spin-game {
      margin-top: -45px !important;
    }

    .welcome-content.spin-done .spin-wheel-wrap {
      width: 300px !important;
      height: 300px !important;
    }

    .welcome-content.spin-done .spin-wheel {
      width: 245px !important;
      height: 245px !important;
    }

    .welcome-content.spin-done .spin-label {
      width: 50px !important;
      height: 24px !important;
      margin: -12px 0 0 -25px !important;
      font-size: 16px !important;
    }

    .welcome-content.spin-done .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-79px) rotate(0deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-79px) rotate(-36deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-79px) rotate(-72deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-79px) rotate(-108deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-79px) rotate(-144deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-79px) rotate(-180deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-79px) rotate(-216deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-79px) rotate(-252deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-79px) rotate(-288deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-79px) rotate(-324deg) !important; }

    @media (max-width: 640px) {
      .welcome-content {
        width: min(94vw, 420px) !important;
        max-height: 94vh !important;
      }

      .welcome-content .popup-close {
        top: 12px !important;
        right: 14px !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 31px !important;
      }

      .welcome-hero {
        padding: 18px 18px 54px !important;
      }

      .welcome-hero small {
        font-size: 9px !important;
        letter-spacing: 5px !important;
      }

      .welcome-hero h2 {
        max-width: 330px !important;
        font-size: clamp(33px, 10vw, 43px) !important;
      }

      .welcome-hero p {
        max-width: 310px !important;
        font-size: 12.5px !important;
      }

      .welcome-body {
        padding: 0 16px 16px !important;
      }

      .spin-game {
        margin-top: -35px !important;
      }

      .spin-wheel-wrap {
        width: 255px !important;
        height: 255px !important;
        margin-bottom: 10px !important;
      }

      .spin-pointer,
      .welcome-content.spin-done .spin-pointer {
        top: 15px !important;
        width: 25px !important;
        height: 34px !important;
      }

      .spin-wheel,
      .welcome-content.spin-done .spin-wheel {
        width: 205px !important;
        height: 205px !important;
      }

      .spin-wheel::after,
      .welcome-content.spin-done .spin-wheel::after {
        width: 56px !important;
        height: 56px !important;
        border-width: 7px !important;
      }

      .spin-label,
      .welcome-content.spin-done .spin-label {
        width: 42px !important;
        height: 20px !important;
        margin: -10px 0 0 -21px !important;
        font-size: 13px !important;
      }

      .spin-label:nth-child(1),
      .welcome-content.spin-done .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-66px) rotate(0deg) !important; }
      .spin-label:nth-child(2),
      .welcome-content.spin-done .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-66px) rotate(-36deg) !important; }
      .spin-label:nth-child(3),
      .welcome-content.spin-done .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-66px) rotate(-72deg) !important; }
      .spin-label:nth-child(4),
      .welcome-content.spin-done .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-66px) rotate(-108deg) !important; }
      .spin-label:nth-child(5),
      .welcome-content.spin-done .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-66px) rotate(-144deg) !important; }
      .spin-label:nth-child(6),
      .welcome-content.spin-done .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-66px) rotate(-180deg) !important; }
      .spin-label:nth-child(7),
      .welcome-content.spin-done .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-66px) rotate(-216deg) !important; }
      .spin-label:nth-child(8),
      .welcome-content.spin-done .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-66px) rotate(-252deg) !important; }
      .spin-label:nth-child(9),
      .welcome-content.spin-done .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-66px) rotate(-288deg) !important; }
      .spin-label:nth-child(10),
      .welcome-content.spin-done .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-66px) rotate(-324deg) !important; }

      .spin-result {
        max-width: 340px !important;
        font-size: clamp(21px, 6vw, 27px) !important;
        margin-bottom: 10px !important;
      }

      .spin-note {
        width: min(100%, 340px) !important;
        padding: 9px 12px !important;
        margin-bottom: 11px !important;
        font-size: 12px !important;
      }

      .welcome-actions .btn {
        min-width: 200px !important;
        min-height: 42px !important;
        font-size: 13px !important;
      }
    }

    @media (max-width: 380px), (max-height: 720px) {
      .welcome-hero {
        padding: 14px 14px 46px !important;
      }

      .welcome-hero h2 {
        font-size: clamp(29px, 9vw, 37px) !important;
      }

      .welcome-hero p {
        font-size: 11px !important;
      }

      .spin-wheel-wrap {
        width: 218px !important;
        height: 218px !important;
      }

      .spin-wheel,
      .welcome-content.spin-done .spin-wheel {
        width: 176px !important;
        height: 176px !important;
      }

      .spin-pointer,
      .welcome-content.spin-done .spin-pointer {
        top: 13px !important;
        width: 22px !important;
        height: 30px !important;
      }

      .spin-label,
      .welcome-content.spin-done .spin-label {
        width: 36px !important;
        height: 18px !important;
        margin: -9px 0 0 -18px !important;
        font-size: 11px !important;
      }

      .spin-label:nth-child(1),
      .welcome-content.spin-done .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-57px) rotate(0deg) !important; }
      .spin-label:nth-child(2),
      .welcome-content.spin-done .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-57px) rotate(-36deg) !important; }
      .spin-label:nth-child(3),
      .welcome-content.spin-done .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-57px) rotate(-72deg) !important; }
      .spin-label:nth-child(4),
      .welcome-content.spin-done .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-57px) rotate(-108deg) !important; }
      .spin-label:nth-child(5),
      .welcome-content.spin-done .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-57px) rotate(-144deg) !important; }
      .spin-label:nth-child(6),
      .welcome-content.spin-done .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-57px) rotate(-180deg) !important; }
      .spin-label:nth-child(7),
      .welcome-content.spin-done .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-57px) rotate(-216deg) !important; }
      .spin-label:nth-child(8),
      .welcome-content.spin-done .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-57px) rotate(-252deg) !important; }
      .spin-label:nth-child(9),
      .welcome-content.spin-done .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-57px) rotate(-288deg) !important; }
      .spin-label:nth-child(10),
      .welcome-content.spin-done .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-57px) rotate(-324deg) !important; }
    }

  
    /* Wheel cut fix: gives the wheel safe space below the header so it is not clipped. */
    .welcome-body {
      overflow: visible !important;
      padding-top: 42px !important;
    }

    .spin-game {
      margin-top: 0 !important;
    }

    .spin-wheel-wrap {
      margin-top: 0 !important;
      margin-bottom: 16px !important;
      overflow: visible !important;
    }

    .spin-wheel {
      overflow: visible !important;
    }

    .spin-pointer,
    .welcome-content.spin-done .spin-pointer {
      top: -10px !important;
    }

    .welcome-hero {
      padding-bottom: 42px !important;
    }

    .welcome-hero::after {
      bottom: -24px !important;
      height: 54px !important;
    }

    @media (max-width: 640px) {
      .welcome-body {
        padding-top: 34px !important;
      }

      .welcome-hero {
        padding-bottom: 38px !important;
      }

      .welcome-hero::after {
        bottom: -22px !important;
        height: 48px !important;
      }

      .spin-game {
        margin-top: 0 !important;
      }

      .spin-pointer,
      .welcome-content.spin-done .spin-pointer {
        top: -8px !important;
      }
    }

    @media (max-width: 380px), (max-height: 720px) {
      .welcome-body {
        padding-top: 28px !important;
      }

      .welcome-hero {
        padding-bottom: 34px !important;
      }

      .spin-pointer,
      .welcome-content.spin-done .spin-pointer {
        top: -7px !important;
      }
    }

  
    /* Perfect spin popup layout update: premium look, full wheel visible, buttons visible, no popup scrolling. */
    #welcomePopup {
      padding: 12px !important;
      overflow: hidden !important;
    }

    #welcomePopup.is-open {
      align-items: center !important;
      justify-content: center !important;
    }

    .welcome-content {
      width: min(92vw, 720px) !important;
      max-height: calc(100vh - 24px) !important;
      overflow: hidden !important;
      display: flex !important;
      flex-direction: column !important;
      border: 2px solid rgba(247, 161, 61, 0.95) !important;
      border-radius: 30px !important;
      background: #fffaf3 !important;
      box-shadow: 0 34px 95px rgba(0, 0, 0, 0.48) !important;
    }

    .welcome-content .popup-close {
      top: 20px !important;
      right: 22px !important;
      z-index: 20 !important;
      width: 52px !important;
      height: 52px !important;
      display: grid !important;
      place-items: center !important;
      border-radius: 50% !important;
      border: 1px solid rgba(255, 255, 255, 0.3) !important;
      background: rgba(255, 255, 255, 0.11) !important;
      color: #ffffff !important;
      font-size: 40px !important;
      line-height: 1 !important;
    }

    .welcome-hero {
      position: relative !important;
      flex: 0 0 auto !important;
      padding: 30px 72px 26px !important;
      overflow: hidden !important;
      text-align: center !important;
      background:
        radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.12), transparent 34%),
        linear-gradient(135deg, #061827, #0f344f 58%, #061827) !important;
      border-bottom: 4px solid rgba(247, 161, 61, 0.95) !important;
    }

    .welcome-hero::after {
      display: none !important;
    }

    .welcome-hero small {
      position: relative !important;
      z-index: 1 !important;
      display: block !important;
      margin: 0 0 12px !important;
      color: #f7a13d !important;
      font-size: 14px !important;
      font-weight: 900 !important;
      letter-spacing: 8px !important;
      line-height: 1.2 !important;
    }

    .welcome-hero h2 {
      position: relative !important;
      z-index: 1 !important;
      max-width: 580px !important;
      margin: 0 auto 14px !important;
      color: #ffffff !important;
      font-size: clamp(46px, 6vw, 70px) !important;
      line-height: 0.98 !important;
      letter-spacing: 0 !important;
      text-shadow: 0 8px 22px rgba(0, 0, 0, 0.24) !important;
    }

    .welcome-hero h2 span {
      color: #f7a13d !important;
    }

    .welcome-hero p {
      position: relative !important;
      z-index: 1 !important;
      max-width: 520px !important;
      margin: 0 auto !important;
      color: rgba(255, 255, 255, 0.95) !important;
      font-size: 18px !important;
      line-height: 1.45 !important;
    }

    .welcome-body {
      flex: 1 1 auto !important;
      min-height: 0 !important;
      overflow: hidden !important;
      display: flex !important;
      flex-direction: column !important;
      justify-content: flex-start !important;
      padding: 20px 48px 30px !important;
      background:
        radial-gradient(circle at 50% 22%, rgba(247, 161, 61, 0.12), transparent 34%),
        linear-gradient(180deg, #fffaf3 0%, #ffffff 58%, #fff8ef 100%) !important;
    }

    .spin-game {
      flex: 0 0 auto !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      margin-top: 0 !important;
    }

    .spin-wheel-wrap {
      position: relative !important;
      width: clamp(270px, 38vh, 390px) !important;
      height: clamp(270px, 38vh, 390px) !important;
      margin: 0 auto 18px !important;
      display: grid !important;
      place-items: center !important;
      overflow: visible !important;
      filter: drop-shadow(0 22px 34px rgba(6, 24, 39, 0.24)) !important;
    }

    .spin-wheel-wrap::before,
    .welcome-content.spin-done .spin-wheel-wrap::before {
      content: "" !important;
      position: absolute !important;
      inset: 22px !important;
      border-radius: 50% !important;
      background:
        radial-gradient(circle, rgba(255, 229, 164, 0.42), rgba(217, 130, 31, 0.14) 56%, rgba(255, 255, 255, 0.06)) !important;
      border: 9px solid rgba(255, 236, 180, 0.95) !important;
      box-shadow:
        0 0 0 8px rgba(255, 255, 255, 0.9),
        inset 0 0 22px rgba(217, 130, 31, 0.35) !important;
      opacity: 1 !important;
    }

    .spin-pointer,
    .welcome-content.spin-done .spin-pointer {
      position: absolute !important;
      top: 16px !important;
      left: 50% !important;
      z-index: 12 !important;
      width: 38px !important;
      height: 48px !important;
      transform: translateX(-50%) !important;
      clip-path: polygon(50% 100%, 0 0, 100% 0) !important;
      background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.75), transparent 24%),
        linear-gradient(180deg, #ffe7a5, #f7a13d 52%, #d9821f) !important;
      filter: drop-shadow(0 7px 9px rgba(0, 0, 0, 0.22)) !important;
    }

    .spin-wheel,
    .welcome-content.spin-done .spin-wheel {
      position: relative !important;
      z-index: 2 !important;
      width: clamp(220px, 30vh, 315px) !important;
      height: clamp(220px, 30vh, 315px) !important;
      border-radius: 50% !important;
      border: 9px solid #fff7e8 !important;
      background:
        conic-gradient(
          from -18deg,
          #0f344f 0deg 36deg,
          #e18a17 36deg 72deg,
          #0f344f 72deg 108deg,
          #e18a17 108deg 144deg,
          #0f344f 144deg 180deg,
          #e18a17 180deg 216deg,
          #0f344f 216deg 252deg,
          #e18a17 252deg 288deg,
          #0f344f 288deg 324deg,
          #e18a17 324deg 360deg
        ) !important;
      transition: transform 5.2s cubic-bezier(0.12, 0.78, 0.18, 1) !important;
      box-shadow:
        0 0 0 10px rgba(217, 130, 31, 0.92),
        0 0 0 19px rgba(255, 229, 164, 0.54),
        inset 0 0 28px rgba(0, 0, 0, 0.18) !important;
      overflow: visible !important;
    }

    .spin-wheel::before,
    .welcome-content.spin-done .spin-wheel::before {
      content: "" !important;
      position: absolute !important;
      inset: -14px !important;
      border-radius: 50% !important;
      border: 7px solid rgba(255, 234, 174, 0.96) !important;
      background: transparent !important;
      box-shadow:
        inset 0 0 18px rgba(217, 130, 31, 0.42),
        0 0 18px rgba(247, 161, 61, 0.34) !important;
      opacity: 1 !important;
      pointer-events: none !important;
      z-index: 1 !important;
    }

    .spin-wheel::after,
    .welcome-content.spin-done .spin-wheel::after {
      content: "" !important;
      position: absolute !important;
      left: 50% !important;
      top: 50% !important;
      z-index: 5 !important;
      width: clamp(64px, 8vh, 86px) !important;
      height: clamp(64px, 8vh, 86px) !important;
      border: 9px solid #fff7e8 !important;
      border-radius: 50% !important;
      transform: translate(-50%, -50%) !important;
      background:
        radial-gradient(circle at 35% 28%, #fff2bd, transparent 27%),
        linear-gradient(135deg, #f7a13d, #d9821f) !important;
      box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.24),
        inset 0 0 17px rgba(255, 255, 255, 0.34) !important;
      opacity: 1 !important;
      pointer-events: none !important;
    }

    .spin-label,
    .welcome-content.spin-done .spin-label {
      position: absolute !important;
      left: 50% !important;
      top: 50% !important;
      z-index: 6 !important;
      display: grid !important;
      place-items: center !important;
      width: 62px !important;
      height: 28px !important;
      margin: -14px 0 0 -31px !important;
      color: #ffffff !important;
      font-size: clamp(16px, 2vh, 22px) !important;
      font-weight: 900 !important;
      line-height: 1 !important;
      text-shadow: 0 3px 8px rgba(0, 0, 0, 0.58) !important;
      opacity: 1 !important;
      visibility: visible !important;
      pointer-events: none !important;
    }

    .spin-label:nth-child(1) { transform: rotate(0deg) translateY(clamp(-100px, -9.8vh, -72px)) rotate(0deg) !important; }
    .spin-label:nth-child(2) { transform: rotate(36deg) translateY(clamp(-100px, -9.8vh, -72px)) rotate(-36deg) !important; }
    .spin-label:nth-child(3) { transform: rotate(72deg) translateY(clamp(-100px, -9.8vh, -72px)) rotate(-72deg) !important; }
    .spin-label:nth-child(4) { transform: rotate(108deg) translateY(clamp(-100px, -9.8vh, -72px)) rotate(-108deg) !important; }
    .spin-label:nth-child(5) { transform: rotate(144deg) translateY(clamp(-100px, -9.8vh, -72px)) rotate(-144deg) !important; }
    .spin-label:nth-child(6) { transform: rotate(180deg) translateY(clamp(-100px, -9.8vh, -72px)) rotate(-180deg) !important; }
    .spin-label:nth-child(7) { transform: rotate(216deg) translateY(clamp(-100px, -9.8vh, -72px)) rotate(-216deg) !important; }
    .spin-label:nth-child(8) { transform: rotate(252deg) translateY(clamp(-100px, -9.8vh, -72px)) rotate(-252deg) !important; }
    .spin-label:nth-child(9) { transform: rotate(288deg) translateY(clamp(-100px, -9.8vh, -72px)) rotate(-288deg) !important; }
    .spin-label:nth-child(10) { transform: rotate(324deg) translateY(clamp(-100px, -9.8vh, -72px)) rotate(-324deg) !important; }

    .spin-result {
      max-width: 560px !important;
      margin: 0 auto 16px !important;
      color: #071b2b !important;
      font-size: clamp(28px, 4.8vh, 44px) !important;
      font-weight: 900 !important;
      letter-spacing: 2px !important;
      line-height: 1.14 !important;
      text-align: center !important;
    }

    .spin-note {
      display: flex !important;
      align-items: center !important;
      gap: 14px !important;
      width: min(100%, 520px) !important;
      margin: 0 auto 18px !important;
      padding: 13px 18px !important;
      border: 1px solid rgba(217, 130, 31, 0.22) !important;
      border-radius: 18px !important;
      background: rgba(255, 255, 255, 0.9) !important;
      color: #20384f !important;
      box-shadow: 0 14px 35px rgba(6, 24, 39, 0.08) !important;
      font-size: 15px !important;
      line-height: 1.35 !important;
      text-align: left !important;
    }

    .spin-note-icon {
      display: grid !important;
      place-items: center !important;
      width: 46px !important;
      height: 46px !important;
      flex: 0 0 46px !important;
      border-radius: 50% !important;
      background: linear-gradient(135deg, #061827, #0f344f) !important;
      color: #f7a13d !important;
      font-size: 24px !important;
    }

    .welcome-actions {
      display: flex !important;
      flex-wrap: nowrap !important;
      justify-content: center !important;
      gap: 28px !important;
      flex: 0 0 auto !important;
    }

    .welcome-actions .btn {
      min-width: 230px !important;
      min-height: 56px !important;
      padding: 12px 28px !important;
      border-radius: 18px !important;
      font-size: 17px !important;
      font-weight: 900 !important;
      letter-spacing: 1.5px !important;
      text-transform: uppercase !important;
    }

    .spin-before-btn {
      border: 1px solid rgba(247, 161, 61, 0.8) !important;
      background: linear-gradient(135deg, #061827, #0f344f) !important;
      color: #ffffff !important;
      box-shadow: 0 15px 30px rgba(15, 52, 79, 0.25) !important;
    }

    .spin-before-btn::after {
      content: "›" !important;
      margin-left: 16px !important;
      color: #f7a13d !important;
      font-size: 36px !important;
      line-height: 0 !important;
    }

    .welcome-secondary {
      border: 1px solid rgba(217, 130, 31, 0.8) !important;
      background: rgba(255, 255, 255, 0.84) !important;
      color: #061827 !important;
      box-shadow: none !important;
    }

    .welcome-content.spin-done .welcome-hero {
      padding: 26px 72px 24px !important;
    }

    .welcome-content.spin-done .welcome-hero h2 {
      font-size: clamp(54px, 8vh, 86px) !important;
      color: #f7a13d !important;
    }

    .welcome-content.spin-done .spin-wheel-wrap {
      width: clamp(240px, 32vh, 330px) !important;
      height: clamp(240px, 32vh, 330px) !important;
      margin-bottom: 16px !important;
    }

    .welcome-content.spin-done .spin-wheel {
      width: clamp(200px, 26vh, 270px) !important;
      height: clamp(200px, 26vh, 270px) !important;
    }

    .welcome-content.spin-done .spin-result {
      width: min(100%, 520px) !important;
      margin-bottom: 18px !important;
      padding: 13px 18px !important;
      border: 1px solid rgba(217, 130, 31, 0.22) !important;
      border-radius: 18px !important;
      background: rgba(255, 255, 255, 0.92) !important;
      color: #20384f !important;
      font-size: 16px !important;
      font-weight: 700 !important;
      letter-spacing: 0 !important;
      line-height: 1.45 !important;
      box-shadow: 0 14px 35px rgba(6, 24, 39, 0.08) !important;
    }

    .welcome-content.spin-done .spin-note {
      display: none !important;
    }

    .welcome-content.spin-done .spin-before-btn,
    .welcome-content.spin-done .welcome-secondary {
      display: none !important;
    }

    .welcome-content.spin-done .spin-close-btn {
      display: inline-flex !important;
      min-width: 280px !important;
      background: linear-gradient(135deg, #061827, #0f344f) !important;
      color: #ffffff !important;
      border: 1px solid rgba(247, 161, 61, 0.8) !important;
    }

    @media (max-height: 820px) {
      .welcome-hero {
        padding-top: 22px !important;
        padding-bottom: 20px !important;
      }

      .welcome-hero small {
        margin-bottom: 8px !important;
        font-size: 12px !important;
      }

      .welcome-hero h2 {
        margin-bottom: 10px !important;
        font-size: clamp(40px, 5.6vh, 58px) !important;
      }

      .welcome-hero p {
        font-size: 15px !important;
      }

      .welcome-body {
        padding-top: 16px !important;
        padding-bottom: 20px !important;
      }

      .spin-wheel-wrap {
        width: clamp(245px, 34vh, 320px) !important;
        height: clamp(245px, 34vh, 320px) !important;
        margin-bottom: 14px !important;
      }

      .spin-wheel {
        width: clamp(200px, 27vh, 255px) !important;
        height: clamp(200px, 27vh, 255px) !important;
      }

      .spin-result {
        margin-bottom: 12px !important;
        font-size: clamp(25px, 4.2vh, 34px) !important;
      }

      .spin-note {
        margin-bottom: 14px !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
      }

      .welcome-actions .btn {
        min-height: 50px !important;
      }
    }

    @media (max-width: 640px) {
      .welcome-content {
        width: min(94vw, 430px) !important;
        max-height: calc(100vh - 16px) !important;
        border-radius: 24px !important;
      }

      .welcome-content .popup-close {
        top: 12px !important;
        right: 14px !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 31px !important;
      }

      .welcome-hero {
        padding: 18px 54px 16px !important;
      }

      .welcome-hero small {
        margin-bottom: 7px !important;
        font-size: 9px !important;
        letter-spacing: 5px !important;
      }

      .welcome-hero h2 {
        max-width: 330px !important;
        margin-bottom: 8px !important;
        font-size: clamp(32px, 9vw, 42px) !important;
      }

      .welcome-hero p {
        max-width: 310px !important;
        font-size: 12.5px !important;
        line-height: 1.35 !important;
      }

      .welcome-body {
        padding: 14px 16px 16px !important;
      }

      .spin-wheel-wrap {
        width: clamp(225px, 34vh, 260px) !important;
        height: clamp(225px, 34vh, 260px) !important;
        margin-bottom: 10px !important;
      }

      .spin-wheel-wrap::before,
      .welcome-content.spin-done .spin-wheel-wrap::before {
        inset: 17px !important;
        border-width: 7px !important;
      }

      .spin-pointer,
      .welcome-content.spin-done .spin-pointer {
        top: 13px !important;
        width: 25px !important;
        height: 34px !important;
      }

      .spin-wheel,
      .welcome-content.spin-done .spin-wheel {
        width: clamp(180px, 27vh, 205px) !important;
        height: clamp(180px, 27vh, 205px) !important;
        border-width: 7px !important;
      }

      .spin-wheel::before,
      .welcome-content.spin-done .spin-wheel::before {
        inset: -11px !important;
        border-width: 6px !important;
      }

      .spin-wheel::after,
      .welcome-content.spin-done .spin-wheel::after {
        width: 56px !important;
        height: 56px !important;
        border-width: 7px !important;
      }

      .spin-label,
      .welcome-content.spin-done .spin-label {
        width: 42px !important;
        height: 20px !important;
        margin: -10px 0 0 -21px !important;
        font-size: 13px !important;
      }

      .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-66px) rotate(0deg) !important; }
      .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-66px) rotate(-36deg) !important; }
      .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-66px) rotate(-72deg) !important; }
      .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-66px) rotate(-108deg) !important; }
      .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-66px) rotate(-144deg) !important; }
      .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-66px) rotate(-180deg) !important; }
      .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-66px) rotate(-216deg) !important; }
      .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-66px) rotate(-252deg) !important; }
      .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-66px) rotate(-288deg) !important; }
      .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-66px) rotate(-324deg) !important; }

      .spin-result {
        max-width: 360px !important;
        margin-bottom: 10px !important;
        font-size: clamp(21px, 5.6vw, 27px) !important;
      }

      .spin-note {
        width: min(100%, 350px) !important;
        margin-bottom: 12px !important;
        padding: 9px 12px !important;
        gap: 10px !important;
        font-size: 12px !important;
      }

      .spin-note-icon {
        width: 34px !important;
        height: 34px !important;
        flex-basis: 34px !important;
        font-size: 18px !important;
      }

      .welcome-actions {
        flex-wrap: wrap !important;
        gap: 10px !important;
      }

      .welcome-actions .btn {
        min-width: 200px !important;
        min-height: 42px !important;
        padding: 9px 16px !important;
        font-size: 13px !important;
      }
    }

    @media (max-width: 380px), (max-height: 700px) {
      .welcome-hero {
        padding: 14px 48px 12px !important;
      }

      .welcome-hero small {
        margin-bottom: 5px !important;
        font-size: 8px !important;
      }

      .welcome-hero h2 {
        margin-bottom: 6px !important;
        font-size: clamp(28px, 8vw, 36px) !important;
      }

      .welcome-hero p {
        font-size: 11px !important;
      }

      .welcome-body {
        padding: 10px 12px 12px !important;
      }

      .spin-wheel-wrap {
        width: 210px !important;
        height: 210px !important;
        margin-bottom: 8px !important;
      }

      .spin-wheel,
      .welcome-content.spin-done .spin-wheel {
        width: 170px !important;
        height: 170px !important;
      }

      .spin-pointer,
      .welcome-content.spin-done .spin-pointer {
        top: 12px !important;
        width: 22px !important;
        height: 30px !important;
      }

      .spin-label,
      .welcome-content.spin-done .spin-label {
        width: 36px !important;
        height: 18px !important;
        margin: -9px 0 0 -18px !important;
        font-size: 11px !important;
      }

      .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-55px) rotate(0deg) !important; }
      .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-55px) rotate(-36deg) !important; }
      .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-55px) rotate(-72deg) !important; }
      .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-55px) rotate(-108deg) !important; }
      .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-55px) rotate(-144deg) !important; }
      .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-55px) rotate(-180deg) !important; }
      .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-55px) rotate(-216deg) !important; }
      .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-55px) rotate(-252deg) !important; }
      .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-55px) rotate(-288deg) !important; }
      .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-55px) rotate(-324deg) !important; }

      .spin-result {
        margin-bottom: 8px !important;
        font-size: clamp(18px, 5vw, 22px) !important;
      }

      .spin-note {
        margin-bottom: 9px !important;
        padding: 7px 9px !important;
        font-size: 11px !important;
      }

      .welcome-actions .btn {
        min-height: 38px !important;
      }
    }

  
    /* After spin fix: result screen par wheel readable rahega, text rotate/ulta nahi dikhega. */
    .welcome-content.spin-done .spin-wheel {
      /* transform: rotate(0deg) !important; */
      /* transition: none !important; */
    }

    .welcome-content.spin-done .spin-label:nth-child(1) { transform: rotate(0deg) translateY(clamp(-100px, -9.8vh, -72px)) rotate(0deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(2) { transform: rotate(36deg) translateY(clamp(-100px, -9.8vh, -72px)) rotate(-36deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(3) { transform: rotate(72deg) translateY(clamp(-100px, -9.8vh, -72px)) rotate(-72deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(4) { transform: rotate(108deg) translateY(clamp(-100px, -9.8vh, -72px)) rotate(-108deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(5) { transform: rotate(144deg) translateY(clamp(-100px, -9.8vh, -72px)) rotate(-144deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(6) { transform: rotate(180deg) translateY(clamp(-100px, -9.8vh, -72px)) rotate(-180deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(7) { transform: rotate(216deg) translateY(clamp(-100px, -9.8vh, -72px)) rotate(-216deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(8) { transform: rotate(252deg) translateY(clamp(-100px, -9.8vh, -72px)) rotate(-252deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(9) { transform: rotate(288deg) translateY(clamp(-100px, -9.8vh, -72px)) rotate(-288deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(10) { transform: rotate(324deg) translateY(clamp(-100px, -9.8vh, -72px)) rotate(-324deg) !important; }

    @media (max-width: 640px) {
      .welcome-content.spin-done .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-66px) rotate(0deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-66px) rotate(-36deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-66px) rotate(-72deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-66px) rotate(-108deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-66px) rotate(-144deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-66px) rotate(-180deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-66px) rotate(-216deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-66px) rotate(-252deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-66px) rotate(-288deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-66px) rotate(-324deg) !important; }
    }

    @media (max-width: 380px), (max-height: 700px) {
      .welcome-content.spin-done .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-55px) rotate(0deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-55px) rotate(-36deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-55px) rotate(-72deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-55px) rotate(-108deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-55px) rotate(-144deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-55px) rotate(-180deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-55px) rotate(-216deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-55px) rotate(-252deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-55px) rotate(-288deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-55px) rotate(-324deg) !important; }
    }

  
    /* Result screen final position fix: spin ke baad wheel header se touch/cut nahi hoga. */
    .welcome-content.spin-done .welcome-hero {
      padding-top: 22px !important;
      padding-bottom: 18px !important;
    }

    .welcome-content.spin-done .welcome-hero small {
      margin-bottom: 8px !important;
      font-size: 12px !important;
      letter-spacing: 7px !important;
    }

    .welcome-content.spin-done .welcome-hero h2 {
      margin-bottom: 10px !important;
      font-size: clamp(44px, 7vh, 68px) !important;
      line-height: 0.95 !important;
    }

    .welcome-content.spin-done .welcome-hero p {
      font-size: 15px !important;
      line-height: 1.35 !important;
    }

    .welcome-content.spin-done .welcome-body {
      padding-top: 38px !important;
      padding-bottom: 24px !important;
      justify-content: flex-start !important;
      overflow: hidden !important;
    }

    .welcome-content.spin-done .spin-game {
      margin-top: 0 !important;
    }

    .welcome-content.spin-done .spin-wheel-wrap {
      width: 270px !important;
      height: 270px !important;
      margin-top: 0 !important;
      margin-bottom: 18px !important;
      overflow: visible !important;
    }

    .welcome-content.spin-done .spin-wheel {
      width: 220px !important;
      height: 220px !important;
      /* transform: rotate(0deg) !important; */
      /* transition: none !important; */
      overflow: visible !important;
    }

    .welcome-content.spin-done .spin-pointer {
      top: -4px !important;
      width: 26px !important;
      height: 34px !important;
      z-index: 20 !important;
    }

    .welcome-content.spin-done .spin-wheel::after {
      width: 58px !important;
      height: 58px !important;
      border-width: 7px !important;
    }

    .welcome-content.spin-done .spin-label {
      width: 44px !important;
      height: 21px !important;
      margin: -10.5px 0 0 -22px !important;
      font-size: 13px !important;
      z-index: 10 !important;
    }

    .welcome-content.spin-done .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-70px) rotate(0deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-70px) rotate(-36deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-70px) rotate(-72deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-70px) rotate(-108deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-70px) rotate(-144deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-70px) rotate(-180deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-70px) rotate(-216deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-70px) rotate(-252deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-70px) rotate(-288deg) !important; }
    .welcome-content.spin-done .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-70px) rotate(-324deg) !important; }

    .welcome-content.spin-done .spin-result {
      width: min(100%, 520px) !important;
      margin-bottom: 18px !important;
      padding: 12px 18px !important;
      font-size: 15px !important;
      line-height: 1.45 !important;
    }

    .welcome-content.spin-done .spin-close-btn {
      min-width: 280px !important;
      min-height: 52px !important;
    }

    @media (max-width: 640px) {
      .welcome-content.spin-done .welcome-hero {
        padding-top: 16px !important;
        padding-bottom: 14px !important;
      }

      .welcome-content.spin-done .welcome-hero h2 {
        font-size: clamp(36px, 10vw, 48px) !important;
      }

      .welcome-content.spin-done .welcome-body {
        padding-top: 30px !important;
        padding-bottom: 16px !important;
      }

      .welcome-content.spin-done .spin-wheel-wrap {
        width: 230px !important;
        height: 230px !important;
        margin-bottom: 12px !important;
      }

      .welcome-content.spin-done .spin-wheel {
        width: 188px !important;
        height: 188px !important;
      }

      .welcome-content.spin-done .spin-pointer {
        top: -3px !important;
        width: 22px !important;
        height: 29px !important;
      }

      .welcome-content.spin-done .spin-label {
        width: 38px !important;
        height: 18px !important;
        margin: -9px 0 0 -19px !important;
        font-size: 11.5px !important;
      }

      .welcome-content.spin-done .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-60px) rotate(0deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-60px) rotate(-36deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-60px) rotate(-72deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-60px) rotate(-108deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-60px) rotate(-144deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-60px) rotate(-180deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-60px) rotate(-216deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-60px) rotate(-252deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-60px) rotate(-288deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-60px) rotate(-324deg) !important; }

      .welcome-content.spin-done .spin-result {
        max-width: 350px !important;
        margin-bottom: 12px !important;
        padding: 10px 12px !important;
        font-size: 12px !important;
      }

      .welcome-content.spin-done .spin-close-btn {
        min-width: 210px !important;
        min-height: 42px !important;
      }
    }

    @media (max-height: 720px) {
      .welcome-content.spin-done .welcome-hero {
        padding-top: 14px !important;
        padding-bottom: 12px !important;
      }

      .welcome-content.spin-done .welcome-hero h2 {
        font-size: clamp(34px, 8vh, 52px) !important;
      }

      .welcome-content.spin-done .welcome-body {
        padding-top: 24px !important;
        padding-bottom: 14px !important;
      }

      .welcome-content.spin-done .spin-wheel-wrap {
        width: 220px !important;
        height: 220px !important;
        margin-bottom: 10px !important;
      }

      .welcome-content.spin-done .spin-wheel {
        width: 180px !important;
        height: 180px !important;
      }

      .welcome-content.spin-done .spin-pointer {
        top: -2px !important;
        width: 21px !important;
        height: 28px !important;
      }

      .welcome-content.spin-done .spin-label {
        width: 36px !important;
        height: 18px !important;
        margin: -9px 0 0 -18px !important;
        font-size: 11px !important;
      }

      .welcome-content.spin-done .spin-label:nth-child(1) { transform: rotate(0deg) translateY(-58px) rotate(0deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(2) { transform: rotate(36deg) translateY(-58px) rotate(-36deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(3) { transform: rotate(72deg) translateY(-58px) rotate(-72deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(4) { transform: rotate(108deg) translateY(-58px) rotate(-108deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(5) { transform: rotate(144deg) translateY(-58px) rotate(-144deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(6) { transform: rotate(180deg) translateY(-58px) rotate(-180deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(7) { transform: rotate(216deg) translateY(-58px) rotate(-216deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(8) { transform: rotate(252deg) translateY(-58px) rotate(-252deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(9) { transform: rotate(288deg) translateY(-58px) rotate(-288deg) !important; }
      .welcome-content.spin-done .spin-label:nth-child(10) { transform: rotate(324deg) translateY(-58px) rotate(-324deg) !important; }
    }

  
    /* 3D project gallery uses Three.js and your own project images only. */
    .three-gallery-content {
      width: min(96vw, 1120px);
      height: min(90vh, 720px);
      padding: 0;
      overflow: hidden;
      border: 1px solid rgba(247, 161, 61, 0.75);
      border-radius: 28px;
      background:
        radial-gradient(circle at 20% 10%, rgba(247, 161, 61, 0.16), transparent 30%),
        linear-gradient(135deg, #061827, #0f344f 58%, #061827);
      color: var(--white);
      box-shadow: 0 35px 95px rgba(0, 0, 0, 0.45);
      text-align: left;
    }

    .three-gallery-head {
      position: relative;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 22px 26px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.16);
      background: rgba(6, 24, 39, 0.72);
      backdrop-filter: blur(10px);
    }

    .three-gallery-head small {
      display: block;
      margin-bottom: 6px;
      color: var(--orange-light);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 3px;
      text-transform: uppercase;
    }

    .three-gallery-head h2 {
      color: var(--white);
      font-size: clamp(26px, 3vw, 38px);
      line-height: 1.05;
    }

    .three-gallery-head p {
      margin-top: 8px;
      max-width: 660px;
      color: rgba(255, 255, 255, 0.78);
      line-height: 1.55;
    }

    .three-gallery-close {
      position: static;
      display: grid;
      place-items: center;
      width: 48px;
      height: 48px;
      flex: 0 0 48px;
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      color: var(--white);
      font-size: 34px;
      line-height: 1;
    }

    .three-gallery-stage {
      position: relative;
      height: calc(100% - 121px);
      min-height: 420px;
      overflow: hidden;
    }

    #threeGalleryCanvas {
      width: 100%;
      height: 100%;
      display: block;
      cursor: grab;
    }

    #threeGalleryCanvas:active {
      cursor: grabbing;
    }

    .three-gallery-controls {
      position: absolute;
      left: 50%;
      bottom: 18px;
      z-index: 3;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      transform: translateX(-50%);
      width: min(92%, 680px);
      pointer-events: none;
    }

    .three-gallery-controls button {
      pointer-events: auto;
      min-height: 42px;
      padding: 10px 15px;
      border: 1px solid rgba(247, 161, 61, 0.5);
      border-radius: 999px;
      background: rgba(6, 24, 39, 0.82);
      color: var(--white);
      font-weight: 800;
      backdrop-filter: blur(10px);
    }

    .three-gallery-controls button:hover {
      background: linear-gradient(135deg, var(--orange-light), var(--orange));
      color: var(--white);
    }

    .three-gallery-hint {
      position: absolute;
      top: 18px;
      right: 18px;
      z-index: 3;
      max-width: 280px;
      padding: 12px 14px;
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 16px;
      background: rgba(6, 24, 39, 0.72);
      color: rgba(255, 255, 255, 0.82);
      font-size: 13px;
      line-height: 1.45;
      backdrop-filter: blur(10px);
    }

    @media (max-width: 640px) {
      .three-gallery-content {
        width: 96vw;
        height: 88vh;
        border-radius: 22px;
      }

      .three-gallery-head {
        padding: 18px;
      }

      .three-gallery-head p {
        display: none;
      }

      .three-gallery-close {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
      }

      .three-gallery-stage {
        height: calc(100% - 92px);
        min-height: 360px;
      }

      .three-gallery-hint {
        left: 14px;
        right: 14px;
        top: 14px;
        max-width: none;
        font-size: 12px;
      }

      .three-gallery-controls {
        bottom: 12px;
      }

      .three-gallery-controls button {
        min-height: 38px;
        padding: 9px 12px;
        font-size: 12px;
      }
    }

    /* Project page: premium portfolio layout for project.php. */
    .project-page {
      background:
        linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(246, 239, 230, 0.94)),
        var(--paper);
    }

    .project-hero {
      position: relative;
      display: grid;
      min-height: 92vh;
      overflow: hidden;
      padding: 150px 0 70px;
      color: var(--white);
    }

    .project-hero-bg img {
      filter: saturate(1.04) contrast(1.02);
    }

    .project-hero-overlay {
      position: absolute;
      inset: 0;
      z-index: 1;
      background:
        linear-gradient(90deg, rgba(6, 24, 39, 0.94), rgba(6, 24, 39, 0.58) 48%, rgba(217, 130, 31, 0.18)),
        linear-gradient(180deg, rgba(6, 24, 39, 0.1), rgba(6, 24, 39, 0.76));
    }

    .project-hero-inner {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 360px;
      gap: 48px;
      align-items: end;
    }

    .project-hero-copy {
      max-width: 780px;
      min-width: 0;
    }

    .project-hero-copy .section-kicker {
      color: var(--orange-light);
    }

    .project-hero h1 {
      font-size: clamp(42px, 6.2vw, 84px);
      line-height: 0.98;
      letter-spacing: 0;
    }

    .project-hero p {
      max-width: 650px;
      margin-top: 24px;
      color: rgba(255, 255, 255, 0.86);
      font-size: 18px;
      line-height: 1.75;
    }

    .project-hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin-top: 32px;
    }

    .project-outline-btn {
      border: 1px solid rgba(255, 255, 255, 0.58);
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
    }

    .project-hero-panel {
      display: grid;
      gap: 14px;
      padding: 18px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 24px;
      background: rgba(255, 255, 255, 0.12);
      box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
      backdrop-filter: blur(16px);
    }

    .project-hero-panel div {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 18px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.12);
    }

    .project-hero-panel strong {
      color: var(--orange-light);
      font-size: 34px;
      line-height: 1;
    }

    .project-hero-panel span {
      max-width: 135px;
      color: rgba(255, 255, 255, 0.84);
      font-weight: 700;
      line-height: 1.35;
      text-align: right;
    }

    .project-intro-grid,
    .project-section-head {
      display: grid;
      grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
      gap: 34px;
      align-items: end;
    }

    .project-intro-grid p,
    .project-section-head p {
      color: var(--muted);
      font-size: 16px;
      line-height: 1.75;
    }

    .project-section-head {
      margin-bottom: 26px;
    }

    .project-section-head.compact {
      display: block;
    }

    .premium-project-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      grid-auto-rows: 290px;
      gap: 18px;
    }

    .premium-project-card {
      position: relative;
      overflow: hidden;
      border-radius: 22px;
      background: #d8dee3;
      box-shadow: 0 22px 58px rgba(15, 52, 79, 0.16);
    }

    .premium-project-card.large {
      grid-column: span 2;
      grid-row: span 2;
    }

    .premium-project-card.wide {
      grid-column: span 2;
    }

    .premium-project-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.45s ease;
    }

    .premium-project-card:hover img {
      transform: scale(1.06);
    }

    .premium-project-card::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 32%, rgba(6, 24, 39, 0.84));
    }

    .premium-project-content {
      position: absolute;
      right: 18px;
      bottom: 18px;
      left: 18px;
      z-index: 1;
      color: var(--white);
    }

    .premium-project-content span {
      display: inline-flex;
      margin-bottom: 9px;
      padding: 7px 11px;
      border-radius: 999px;
      background: rgba(247, 161, 61, 0.92);
      color: #fff;
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .premium-project-content h3 {
      max-width: 520px;
      font-size: clamp(22px, 2.4vw, 34px);
      line-height: 1.08;
    }

    .premium-project-content p {
      max-width: 500px;
      margin-top: 10px;
      color: rgba(255, 255, 255, 0.84);
      line-height: 1.6;
    }

    .category-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
      margin-top: 22px;
    }

    .category-row article {
      min-height: 245px;
      padding: 26px;
      border: 1px solid rgba(15, 52, 79, 0.12);
      border-radius: 22px;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 239, 0.92));
      box-shadow: var(--shadow);
      transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
    }

    .category-row article:hover {
      transform: translateY(-7px);
      background: linear-gradient(135deg, var(--navy), var(--navy-dark));
      color: var(--white);
    }

    .category-row span {
      display: inline-flex;
      margin-bottom: 32px;
      color: var(--orange);
      font-size: 24px;
      font-weight: 900;
    }

    .category-row h3 {
      font-size: 22px;
      line-height: 1.15;
    }

    .category-row p {
      margin-top: 12px;
      color: var(--muted);
      line-height: 1.65;
    }

    .category-row article:hover p {
      color: rgba(255, 255, 255, 0.78);
    }

    .process-suite {
      display: grid;
      grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
      gap: 28px;
      padding: 34px;
      border-radius: 30px;
      background:
        radial-gradient(circle at 10% 10%, rgba(247, 161, 61, 0.22), transparent 30%),
        linear-gradient(135deg, var(--navy-dark), var(--navy));
      color: var(--white);
      box-shadow: 0 28px 78px rgba(6, 24, 39, 0.26);
    }

    .process-suite-copy {
      align-self: center;
    }

    .process-suite-copy .section-kicker {
      color: var(--orange-light);
    }

    .process-suite-copy h2 {
      font-size: clamp(32px, 4vw, 52px);
      line-height: 1.05;
    }

    .process-suite-copy p {
      margin: 18px 0 24px;
      color: rgba(255, 255, 255, 0.78);
      line-height: 1.75;
    }

    .process-timeline {
      display: grid;
      gap: 14px;
    }

    .process-timeline article {
      display: grid;
      grid-template-columns: 72px minmax(0, 1fr);
      gap: 18px;
      align-items: center;
      padding: 20px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.09);
    }

    .process-timeline span {
      display: grid;
      place-items: center;
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: var(--orange);
      color: var(--white);
      font-weight: 900;
    }

    .process-timeline h3 {
      font-size: 21px;
    }

    .process-timeline p {
      margin-top: 6px;
      color: rgba(255, 255, 255, 0.76);
      line-height: 1.55;
    }

    .proof-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 0.8fr;
      gap: 24px;
      align-items: stretch;
    }

    .testimonial-panel,
    .client-strip {
      border-radius: 26px;
      box-shadow: var(--shadow);
    }

    .testimonial-panel {
      padding: 34px;
      background: var(--white);
    }

    .testimonial-panel h2 {
      max-width: 760px;
      font-size: clamp(30px, 4vw, 46px);
      line-height: 1.12;
    }

    .testimonial-panel p {
      max-width: 780px;
      margin: 18px 0;
      color: var(--muted);
      line-height: 1.8;
    }

    .testimonial-panel strong {
      color: var(--orange);
    }

    .client-strip {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      padding: 24px;
      background: linear-gradient(135deg, #fff8ef, #eef7ff);
    }

    .client-strip span {
      display: grid;
      place-items: center;
      min-height: 86px;
      padding: 14px;
      border: 1px solid rgba(15, 52, 79, 0.12);
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.72);
      color: var(--dark);
      font-weight: 900;
      text-align: center;
    }

    .project-form-box {
      border: 1px solid rgba(217, 130, 31, 0.18);
    }

    @media (max-width: 1050px) {
      .project-hero-inner,
      .project-intro-grid,
      .project-section-head,
      .process-suite,
      .proof-grid {
        grid-template-columns: 1fr;
      }

      .project-hero-panel {
        grid-template-columns: repeat(3, 1fr);
      }

      .project-hero-panel div {
        display: grid;
      }

      .project-hero-panel span {
        max-width: none;
        text-align: left;
      }

      .premium-project-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .category-row {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 700px) {
      .project-hero {
        min-height: auto;
        padding: 132px 0 54px;
      }

      .project-hero h1 {
        max-width: 100%;
        font-size: clamp(32px, 9vw, 38px);
        line-height: 1.05;
        word-break: normal;
        overflow-wrap: break-word;
      }

      .project-hero p {
        max-width: 330px;
        font-size: 16px;
      }

      .project-hero-copy {
        max-width: 330px;
      }

      .project-hero-panel,
      .premium-project-grid,
      .category-row,
      .client-strip {
        grid-template-columns: 1fr;
      }

      .project-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        max-width: 260px;
      }

      .project-hero-actions .btn {
        width: 100%;
      }

      .project-hero-panel {
        gap: 10px;
      }

      .premium-project-grid {
        grid-auto-rows: 300px;
      }

      .premium-project-card.large,
      .premium-project-card.wide {
        grid-column: span 1;
        grid-row: span 1;
      }

      .process-suite {
        padding: 24px;
        border-radius: 24px;
      }

      .process-timeline article {
        grid-template-columns: 1fr;
      }

      .testimonial-panel {
        padding: 25px;
      }
    }

    /* Furniture projects page refresh: editorial, manufacturing-led portfolio. */
    .furniture-project-page {
      background:
        linear-gradient(180deg, #fbf7f0 0%, #f5efe6 42%, #ffffff 100%);
    }

    .furniture-hero {
      position: relative;
      min-height: 94vh;
      overflow: hidden;
      padding: 150px 0 68px;
      background: #061827;
      color: var(--white);
    }

    .furniture-hero-media {
      position: absolute;
      inset: 0;
    }

    .furniture-hero-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: saturate(0.9) contrast(1.08);
    }

    .furniture-hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(6, 24, 39, 0.96), rgba(6, 24, 39, 0.68) 48%, rgba(6, 24, 39, 0.28)),
        linear-gradient(180deg, rgba(6, 24, 39, 0.1), rgba(6, 24, 39, 0.76));
    }

    .furniture-hero-grid {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
      gap: 46px;
      align-items: end;
      min-height: calc(94vh - 218px);
    }

    .furniture-hero-copy {
      max-width: 780px;
      min-width: 0;
    }

    .furniture-hero-copy .section-kicker,
    .furniture-hero-card > span,
    .material-copy .section-kicker {
      color: var(--orange-light);
    }

    .furniture-hero h1 {
      max-width: 900px;
      font-size: clamp(48px, 6.6vw, 86px);
      line-height: 0.98;
      letter-spacing: 0;
    }

    .furniture-hero p {
      max-width: 650px;
      margin-top: 24px;
      color: rgba(255, 255, 255, 0.84);
      font-size: 18px;
      line-height: 1.75;
    }

    .furniture-hero-card {
      min-width: 0;
      padding: 28px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.12);
      box-shadow: 0 32px 80px rgba(0, 0, 0, 0.32);
      backdrop-filter: blur(16px);
    }

    .furniture-hero-card > span {
      display: block;
      margin-bottom: 18px;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 2px;
      text-transform: uppercase;
    }

    .furniture-hero-card h2 {
      max-width: 100%;
      font-size: clamp(24px, 2.4vw, 34px);
      line-height: 1.12;
      overflow-wrap: break-word;
    }

    .hero-specs {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-top: 28px;
    }

    .hero-specs div {
      min-height: 118px;
      padding: 16px;
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.1);
    }

    .hero-specs strong {
      display: block;
      color: var(--orange-light);
      font-size: 32px;
      line-height: 1;
    }

    .hero-specs small {
      display: block;
      margin-top: 14px;
      color: rgba(255, 255, 255, 0.78);
      font-weight: 800;
      line-height: 1.35;
    }

    .furniture-intro-grid,
    .material-grid,
    .furniture-proof-grid {
      display: grid;
      grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
      gap: 36px;
      align-items: center;
    }

    .furniture-intro-grid p,
    .project-section-head p,
    .material-copy p,
    .proof-copy p {
      color: var(--muted);
      font-size: 16px;
      line-height: 1.78;
    }

    .furniture-case-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
      grid-auto-rows: minmax(290px, auto);
      gap: 18px;
    }

    .furniture-case {
      position: relative;
      overflow: hidden;
      min-height: 320px;
      border-radius: 8px;
      background: var(--white);
      box-shadow: 0 24px 70px rgba(15, 52, 79, 0.14);
    }

    .furniture-case.primary-case {
      grid-row: span 2;
      min-height: 650px;
    }

    .furniture-case img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.55s ease;
    }

    .furniture-case:hover img {
      transform: scale(1.05);
    }

    .furniture-case::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 20%, rgba(6, 24, 39, 0.86));
      pointer-events: none;
    }

    .furniture-case.dark-case {
      display: flex;
      align-items: flex-end;
      background:
        radial-gradient(circle at 88% 12%, rgba(247, 161, 61, 0.24), transparent 34%),
        linear-gradient(135deg, #061827, #0f344f);
    }

    .furniture-case.dark-case::after {
      display: none;
    }

    .case-content {
      position: absolute;
      right: 22px;
      bottom: 22px;
      left: 22px;
      z-index: 1;
      color: var(--white);
    }

    .dark-case .case-content {
      position: static;
      padding: 30px;
    }

    .case-content span {
      display: inline-flex;
      margin-bottom: 12px;
      color: var(--orange-light);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 1.6px;
      text-transform: uppercase;
    }

    .case-content h3 {
      max-width: 620px;
      font-size: clamp(26px, 3vw, 42px);
      line-height: 1.05;
    }

    .case-content p {
      max-width: 600px;
      margin-top: 12px;
      color: rgba(255, 255, 255, 0.82);
      line-height: 1.65;
    }

    .case-content ul {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 18px;
      list-style: none;
    }

    .case-content li {
      padding: 9px 12px;
      border: 1px solid rgba(255, 255, 255, 0.22);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.12);
      font-size: 13px;
      font-weight: 800;
    }

    .furniture-scope-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      margin-top: 24px;
    }

    .furniture-scope-grid article {
      min-height: 280px;
      padding: 28px;
      border: 1px solid rgba(15, 52, 79, 0.12);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.82);
      box-shadow: 0 18px 48px rgba(15, 52, 79, 0.1);
      transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
    }

    .furniture-scope-grid article:hover {
      transform: translateY(-7px);
      background: var(--navy-dark);
      color: var(--white);
    }

    .furniture-scope-grid span {
      display: block;
      margin-bottom: 52px;
      color: var(--orange);
      font-size: 28px;
      font-weight: 900;
    }

    .furniture-scope-grid h3 {
      font-size: 24px;
      line-height: 1.1;
    }

    .furniture-scope-grid p {
      margin-top: 12px;
      color: var(--muted);
      line-height: 1.65;
    }

    .furniture-scope-grid article:hover p {
      color: rgba(255, 255, 255, 0.78);
    }

    .material-story {
      padding: 62px 0;
      background: #fff;
    }

    .material-copy h2,
    .proof-copy h2 {
      font-size: clamp(32px, 4vw, 52px);
      line-height: 1.06;
    }

    .material-copy p,
    .proof-copy p {
      margin-top: 18px;
    }

    .material-board {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      padding: 20px;
      border: 1px solid rgba(15, 52, 79, 0.12);
      border-radius: 8px;
      background:
        linear-gradient(135deg, rgba(246, 239, 230, 0.9), rgba(238, 247, 255, 0.9));
    }

    .material-board span {
      display: grid;
      place-items: center;
      min-height: 92px;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.78);
      color: var(--dark);
      font-weight: 900;
      box-shadow: inset 0 0 0 1px rgba(15, 52, 79, 0.08);
    }

    .furniture-process-suite {
      border-radius: 8px;
    }

    .furniture-proof {
      padding: 62px 0;
    }

    .furniture-proof-grid {
      align-items: stretch;
      padding: 30px;
      border-radius: 8px;
      background: var(--white);
      box-shadow: var(--shadow);
    }

    .proof-list {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }

    .proof-list span {
      display: grid;
      align-items: end;
      min-height: 130px;
      padding: 18px;
      border-radius: 8px;
      background:
        linear-gradient(135deg, rgba(15, 52, 79, 0.94), rgba(6, 24, 39, 0.95));
      color: var(--white);
      font-weight: 900;
      line-height: 1.35;
    }

    @media (max-width: 1050px) {
      .furniture-hero-grid,
      .furniture-intro-grid,
      .material-grid,
      .furniture-proof-grid,
      .furniture-case-grid {
        grid-template-columns: 1fr;
      }

      .furniture-hero-grid {
        min-height: auto;
      }

      .furniture-scope-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .furniture-case.primary-case {
        min-height: 560px;
      }
    }

    @media (max-width: 700px) {
      .furniture-hero {
        min-height: auto;
        padding: 126px 0 46px;
      }

      .furniture-hero h1 {
        max-width: 340px;
        font-size: clamp(36px, 10vw, 44px);
        line-height: 1.04;
      }

      .furniture-hero p {
        max-width: 340px;
        font-size: 15px;
      }

      .furniture-hero-card {
        width: 100%;
        max-width: 340px;
        padding: 22px;
      }

      .furniture-hero-card h2 {
        font-size: 24px;
      }

      .hero-specs,
      .furniture-scope-grid,
      .material-board,
      .proof-list {
        grid-template-columns: 1fr;
      }

      .hero-specs div {
        min-height: auto;
      }

      .furniture-case,
      .furniture-case.primary-case {
        min-height: 420px;
      }

      .dark-case .case-content,
      .case-content {
        right: 18px;
        bottom: 18px;
        left: 18px;
      }

      .furniture-proof-grid {
        padding: 20px;
      }
    }

    /* FM furniture projects page: WoodenStreet-inspired flow with original layout and copy. */
    .fm-projects-page {
      background: #f7f0e8;
    }

    .fm-project-hero {
      position: relative;
      min-height: 88vh;
      overflow: hidden;
      padding: 150px 0 76px;
      color: var(--white);
      background: #061827;
    }

    .fm-project-hero-bg,
    .fm-project-hero-bg::after {
      position: absolute;
      inset: 0;
    }

    .fm-project-hero-bg img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: saturate(0.95) contrast(1.05);
    }

    .fm-project-hero-bg::after {
      content: "";
      background:
        linear-gradient(90deg, rgba(6, 24, 39, 0.95), rgba(6, 24, 39, 0.66) 54%, rgba(6, 24, 39, 0.26)),
        linear-gradient(180deg, rgba(6, 24, 39, 0.05), rgba(6, 24, 39, 0.76));
    }

    .fm-project-hero-inner {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 360px;
      gap: 44px;
      align-items: end;
      min-height: calc(88vh - 226px);
    }

    .fm-project-hero-copy {
      max-width: 840px;
      min-width: 0;
    }

    .fm-project-hero-copy .section-kicker {
      color: var(--orange-light);
    }

    .fm-project-hero h1 {
      font-size: clamp(44px, 6.4vw, 86px);
      line-height: 0.98;
      letter-spacing: 0;
    }

    .fm-project-hero p {
      max-width: 710px;
      margin-top: 24px;
      color: rgba(255, 255, 255, 0.84);
      font-size: 18px;
      line-height: 1.75;
    }

    .fm-hero-mini-panel {
      padding: 26px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.12);
      box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
      backdrop-filter: blur(16px);
    }

    .fm-hero-mini-panel span {
      display: block;
      margin-bottom: 18px;
      color: var(--orange-light);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 2px;
      text-transform: uppercase;
    }

    .fm-hero-mini-panel strong {
      display: block;
      color: var(--white);
      font-size: 30px;
      line-height: 1.12;
    }

    .fm-section-heading {
      max-width: 860px;
      margin-bottom: 28px;
    }

    .fm-section-heading.center {
      margin-right: auto;
      margin-left: auto;
      text-align: center;
    }

    .fm-section-heading p {
      margin-top: 8px;
      color: var(--muted);
      line-height: 1.7;
    }

    .fm-project-marquee-section {
      overflow: hidden;
      padding-bottom: 28px;
    }

    .fm-marquee-shell,
    .fm-review-marquee-shell {
      overflow: hidden;
      width: 100%;
    }

    .fm-project-marquee,
    .fm-review-marquee {
      display: flex;
      gap: 22px;
      width: max-content;
      will-change: transform;
    }

    .fm-project-marquee {
      animation: fmProjectMarquee 72s linear infinite;
    }

    .fm-review-marquee {
      animation: fmReviewMarquee 62s linear infinite;
    }

    .fm-marquee-shell:hover .fm-project-marquee,
    .fm-review-marquee-shell:hover .fm-review-marquee {
      animation-play-state: paused;
    }

    @keyframes fmProjectMarquee {
      from { transform: translateX(0); }
      to { transform: translateX(-50%); }
    }

    @keyframes fmReviewMarquee {
      from { transform: translateX(0); }
      to { transform: translateX(-50%); }
    }

    .fm-marquee-card {
      position: relative;
      flex: 0 0 330px;
      height: 330px;
      overflow: hidden;
      border-radius: 8px;
      background: #d8dee3;
      box-shadow: 0 22px 55px rgba(15, 52, 79, 0.16);
    }

    .fm-marquee-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.45s ease;
    }

    .fm-marquee-card:hover img {
      transform: scale(1.06);
    }

    .fm-marquee-card::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 28%, rgba(6, 24, 39, 0.9));
    }

    .fm-marquee-card div {
      position: absolute;
      right: 18px;
      bottom: 18px;
      left: 18px;
      z-index: 1;
      color: var(--white);
    }

    .fm-marquee-card small {
      color: var(--orange-light);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    .fm-marquee-card h3 {
      margin-top: 8px;
      font-size: 22px;
      line-height: 1.12;
    }

    .fm-marquee-card p {
      margin-top: 6px;
      color: rgba(255, 255, 255, 0.78);
      font-weight: 700;
    }

    .fm-marquee-card a {
      display: inline-flex;
      margin-top: 16px;
      padding: 10px 14px;
      border-radius: 8px;
      background: var(--white);
      color: var(--navy-dark);
      font-size: 13px;
      font-weight: 900;
    }

    .fm-location-projects {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
      margin-top: 38px;
    }

    .fm-location-card {
      overflow: hidden;
      border-radius: 8px;
      background: var(--white);
      box-shadow: 0 18px 44px rgba(15, 52, 79, 0.1);
    }

    .fm-location-card img {
      width: 100%;
      height: 190px;
      object-fit: cover;
    }

    .fm-location-card div {
      padding: 20px;
    }

    .fm-location-card small {
      color: var(--orange);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    .fm-location-card h3 {
      margin-top: 8px;
      color: var(--dark);
      font-size: 21px;
      line-height: 1.12;
    }

    .fm-location-card p {
      margin-top: 8px;
      color: var(--muted);
      line-height: 1.55;
    }

    .fm-location-card a {
      display: inline-flex;
      margin-top: 14px;
      color: var(--orange);
      font-weight: 900;
    }

    .fm-manufacturing-grid,
    .fm-space-grid {
      display: grid;
      gap: 18px;
    }

    .fm-manufacturing-grid {
      grid-template-columns: repeat(4, 1fr);
    }

    .fm-manufacturing-grid article {
      min-height: 265px;
      padding: 28px;
      border: 1px solid rgba(15, 52, 79, 0.12);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.86);
      box-shadow: 0 18px 50px rgba(15, 52, 79, 0.1);
      transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
    }

    .fm-manufacturing-grid article:hover {
      transform: translateY(-7px);
      background: var(--navy-dark);
      color: var(--white);
    }

    .fm-manufacturing-grid span {
      display: block;
      margin-bottom: 46px;
      color: var(--orange);
      font-size: 26px;
      font-weight: 900;
    }

    .fm-manufacturing-grid h3 {
      font-size: 23px;
      line-height: 1.12;
    }

    .fm-manufacturing-grid p {
      margin-top: 12px;
      color: var(--muted);
      line-height: 1.65;
    }

    .fm-manufacturing-grid article:hover p {
      color: rgba(255, 255, 255, 0.78);
    }

    .fm-custom-spaces {
      background: #fff;
    }

    .fm-space-grid {
      grid-template-columns: repeat(4, 1fr);
    }

    .fm-space-grid article {
      overflow: hidden;
      border-radius: 8px;
      background: #fffaf3;
      box-shadow: var(--shadow);
    }

    .fm-space-grid img {
      width: 100%;
      height: 245px;
      object-fit: cover;
    }

    .fm-space-grid div {
      padding: 22px;
    }

    .fm-space-grid h3 {
      font-size: 24px;
      line-height: 1.1;
    }

    .fm-space-grid p {
      margin-top: 10px;
      color: var(--muted);
      line-height: 1.65;
    }

    .fm-consultation {
      background: #f6efe6;
    }

    .fm-consultation-box {
      border-radius: 28px;
      background: var(--white);
    }

    .fm-review-section {
      overflow: hidden;
      background: #fff;
    }

    .fm-before-after {
      background: #fff;
    }

    .fm-before-after-grid {
      display: grid;
      grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
      gap: 34px;
      align-items: center;
    }

    .fm-before-after-copy p {
      margin: 12px 0 24px;
      color: var(--muted);
      line-height: 1.75;
    }

    .comparison-slider {
      --position: 50%;
      position: relative;
      min-height: 420px;
      overflow: hidden;
      border-radius: 8px;
      background: #d8dee3;
      box-shadow: 0 22px 60px rgba(15, 52, 79, 0.16);
      user-select: none;
    }

    .comparison-image {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .comparison-before-wrap {
      position: absolute;
      inset: 0;
      width: 100%;
      overflow: hidden;
      clip-path: inset(0 calc(100% - var(--position)) 0 0);
    }

    .comparison-before-wrap .comparison-image {
      width: 100%;
    }

    .comparison-handle {
      position: absolute;
      top: 0;
      bottom: 0;
      left: var(--position);
      z-index: 3;
      width: 4px;
      background: var(--white);
      transform: translateX(-50%);
      box-shadow: 0 0 0 999px rgba(6, 24, 39, 0.04);
    }

    .comparison-handle::after {
      content: "< >";
      position: absolute;
      top: 50%;
      left: 50%;
      display: grid;
      place-items: center;
      width: 58px;
      height: 58px;
      border-radius: 50%;
      background: var(--white);
      color: var(--navy-dark);
      font-size: 13px;
      font-weight: 900;
      transform: translate(-50%, -50%);
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    }

    .comparison-slider input {
      position: absolute;
      inset: 0;
      z-index: 4;
      width: 100%;
      height: 100%;
      opacity: 0;
      cursor: ew-resize;
    }

    .comparison-label {
      position: absolute;
      top: 16px;
      z-index: 5;
      padding: 8px 11px;
      border-radius: 999px;
      background: rgba(6, 24, 39, 0.78);
      color: var(--white);
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .before-label {
      left: 16px;
    }

    .after-label {
      right: 16px;
    }

    .before-after-hero {
      padding: 150px 0 60px;
      background:
        linear-gradient(135deg, rgba(6, 24, 39, 0.94), rgba(15, 52, 79, 0.88)),
        url("../../images/hero/hero_img_1.webp") center/cover;
      color: var(--white);
    }

    .before-after-hero .section-kicker {
      color: var(--orange-light);
    }

    .before-after-hero h1 {
      max-width: 860px;
      font-size: clamp(42px, 6vw, 76px);
      line-height: 1;
    }

    .before-after-hero p {
      max-width: 680px;
      margin-top: 22px;
      color: rgba(255, 255, 255, 0.82);
      font-size: 18px;
      line-height: 1.7;
    }

    .before-after-list {
      background: #f7f0e8;
    }

    .before-after-list-grid {
      display: grid;
      gap: 24px;
    }

    .before-after-card {
      display: grid;
      grid-template-columns: minmax(360px, 1.1fr) minmax(280px, 0.7fr);
      gap: 24px;
      align-items: center;
      padding: 24px;
      border-radius: 8px;
      background: var(--white);
      box-shadow: var(--shadow);
    }

    .before-after-card-copy small {
      color: var(--orange);
      font-weight: 900;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    .before-after-card-copy h2 {
      margin-top: 10px;
      color: var(--dark);
      font-size: clamp(28px, 3vw, 42px);
      line-height: 1.08;
    }

    .before-after-card-copy p {
      margin-top: 14px;
      color: var(--muted);
      line-height: 1.75;
    }

    .fm-review-card {
      flex: 0 0 410px;
      min-height: 250px;
      padding: 28px;
      border: 1px solid rgba(15, 52, 79, 0.12);
      border-radius: 8px;
      background: linear-gradient(135deg, #fff8ef, #eef7ff);
      box-shadow: 0 18px 48px rgba(15, 52, 79, 0.1);
    }

    .stars {
      color: var(--orange);
      font-size: 18px;
      letter-spacing: 2px;
    }

    .fm-review-card p {
      margin-top: 18px;
      color: var(--dark);
      line-height: 1.72;
    }

    .fm-review-card strong {
      display: block;
      margin-top: 22px;
      color: var(--navy-dark);
      font-size: 17px;
    }

    .fm-review-card span {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
    }

    @media (max-width: 1050px) {
      .fm-project-hero-inner,
      .fm-manufacturing-grid,
      .fm-space-grid,
      .fm-location-projects,
      .fm-before-after-grid,
      .before-after-card {
        grid-template-columns: repeat(2, 1fr);
      }

      .fm-project-hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
      }
    }

    @media (max-width: 700px) {
      .fm-project-hero {
        min-height: auto;
        padding: 126px 0 54px;
      }

      .fm-project-hero h1 {
        max-width: 345px;
        font-size: clamp(36px, 10vw, 44px);
        line-height: 1.04;
      }

      .fm-project-hero p {
        max-width: 345px;
        font-size: 15px;
      }

      .fm-hero-mini-panel {
        max-width: 345px;
      }

      .fm-hero-mini-panel strong {
        font-size: 24px;
      }

      .fm-manufacturing-grid,
      .fm-space-grid,
      .fm-location-projects,
      .fm-before-after-grid,
      .before-after-card {
        grid-template-columns: 1fr;
      }

      .fm-marquee-card {
        flex-basis: 270px;
        height: 315px;
      }

      .fm-review-card {
        flex-basis: 310px;
      }

      .comparison-slider {
        min-height: 300px;
      }
    }

    


/* Standalone 3D gallery page design. */
.three-page-main {
  background: linear-gradient(180deg, #fffaf3, #f6efe6 58%, #ffffff);
}

.three-page-hero {
  position: relative;
  overflow: hidden;
  padding: 145px 0 80px;
  background:
    radial-gradient(circle at 18% 20%, rgba(217, 130, 31, 0.20), transparent 28%),
    linear-gradient(135deg, #061827, #0f344f 58%, #061827);
  color: var(--white);
}

.three-page-hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: center;
}

.three-page-copy h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  color: var(--white);
  font-size: clamp(42px, 5vw, 82px);
  line-height: 0.98;
  letter-spacing: -2px;
}

.three-page-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.7;
}

.three-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.three-page-viewer {
  overflow: hidden;
  border: 1px solid rgba(247, 161, 61, 0.55);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}

.three-page-viewer-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.three-page-viewer-head small,
.three-page-viewer-head span {
  color: var(--orange-light);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.three-page-viewer-head strong {
  display: block;
  margin-top: 4px;
  color: var(--white);
  font-size: 20px;
}

.three-page-stage {
  position: relative;
  height: 560px;
  overflow: hidden;
}

#threePageCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

#threePageCanvas:active {
  cursor: grabbing;
}

.three-page-hint {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  max-width: 260px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(6, 24, 39, 0.72);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.three-page-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.three-page-controls button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(247, 161, 61, 0.5);
  border-radius: 999px;
  background: rgba(6, 24, 39, 0.80);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.three-page-controls button:hover {
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
}

.three-photo-section {
  padding: 90px 0;
}

.three-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.three-photo-card {
  overflow: hidden;
  border: 1px solid rgba(15, 52, 79, 0.10);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 22px 55px rgba(15, 52, 79, 0.10);
}

.three-photo-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.three-photo-card div {
  padding: 18px;
}

.three-photo-card small {
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.three-photo-card h3 {
  margin-top: 8px;
  color: var(--dark);
  font-size: 18px;
  line-height: 1.25;
}

@media (max-width: 980px) {
  .three-page-hero-grid {
    grid-template-columns: 1fr;
  }

  .three-page-stage {
    height: 480px;
  }

  .three-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .three-page-hero {
    padding: 125px 0 55px;
  }

  .three-page-copy h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .three-page-stage {
    height: 390px;
  }

  .three-page-viewer-head,
  .three-page-controls {
    padding: 14px;
  }

  .three-page-hint {
    left: 12px;
    right: 12px;
    max-width: none;
    font-size: 12px;
  }

  .three-photo-grid {
    grid-template-columns: 1fr;
  }
}

/* Product catalog and product details pages. */
.fm-products-page,
.fm-product-details-page {
  background: #f7f4ef;
  color: #0b2638;
}

.fm-products-hero {
  min-height: 390px;
  position: relative;
  overflow: hidden;
  margin-top: 94px;
  display: flex;
  align-items: flex-end;
}

.fm-products-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fm-products-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.58);
}

.fm-products-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 27, 43, .94), rgba(5, 27, 43, .62), rgba(5, 27, 43, .08));
  z-index: 1;
}

.fm-products-hero-inner {
  position: relative;
  z-index: 2;
  padding: 78px 0 54px;
}

.fm-products-hero-copy {
  max-width: 680px;
  color: #fff;
}

.fm-products-hero-copy h1 {
  font-size: clamp(38px, 5vw, 70px);
  line-height: .96;
  margin: 14px 0 18px;
  color: #fff;
}

.fm-products-hero-copy p {
  font-size: 18px;
  line-height: 1.65;
  max-width: 560px;
  color: rgba(255,255,255,.9);
}

.fm-product-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  max-width: 720px;
  border-top: 1px solid rgba(216, 132, 38, .75);
}

.fm-product-stats strong {
  padding: 16px 20px 0 0;
  border-right: 1px solid rgba(255,255,255,.25);
  font-size: 13px;
  color: rgba(255,255,255,.88);
}

.fm-product-stats span {
  display: block;
  color: #d88426;
  font-size: 31px;
  line-height: 1;
}

.fm-products-catalog {
  padding: 30px 0 0;
}

.fm-products-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  align-items: start;
}

.fm-filter-panel {
  position: sticky;
  top: 110px;
  background: #fff;
  border: 1px solid rgba(11, 38, 56, .12);
  border-radius: 3px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(11, 38, 56, .06);
}

.fm-filter-head,
.fm-filter-panel summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .08em;
  color: #0b2638;
  font-weight: 900;
  margin-bottom: 14px;
}

.fm-filter-clear {
  border: 0;
  background: transparent;
  color: #c76610;
  font-weight: 800;
  cursor: pointer;
}

.fm-filter-panel label {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #4a5964;
  font-size: 14px;
  margin: 13px 0;
}

.fm-filter-panel input[type="checkbox"] {
  accent-color: #c76610;
}

.fm-filter-panel details {
  border-top: 1px solid rgba(11, 38, 56, .1);
  padding-top: 18px;
  margin-top: 20px;
}

.fm-filter-panel summary {
  cursor: pointer;
  margin-bottom: 12px;
}

.fm-product-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.fm-product-search {
  min-height: 54px;
  background: #fff;
  border: 1px solid rgba(11, 38, 56, .12);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
}

.fm-product-search span {
  font-size: 28px;
  color: #0b2638;
}

.fm-product-search input,
.fm-product-toolbar select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  color: #0b2638;
}

.fm-product-toolbar label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0b2638;
  font-weight: 700;
  white-space: nowrap;
}

.fm-product-toolbar select {
  min-width: 190px;
  background: #fff;
  border: 1px solid rgba(11, 38, 56, .12);
  min-height: 54px;
  padding: 0 16px;
}

.fm-view-buttons {
  display: flex;
  gap: 8px;
}

.fm-view-buttons button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(11, 38, 56, .12);
  background: #fff;
  color: #0b2638;
  font-size: 20px;
}

.fm-view-buttons .active {
  color: #c76610;
  border-color: #c76610;
}

.fm-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.fm-product-card {
  background: #fff;
  border: 1px solid rgba(11, 38, 56, .12);
  box-shadow: 0 8px 24px rgba(11, 38, 56, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.fm-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(11, 38, 56, .12);
}

.fm-product-image {
  display: block;
  position: relative;
  aspect-ratio: 1.35 / 1;
  overflow: hidden;
  background: #e8e1d7;
}

.fm-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.fm-product-card:hover .fm-product-image img {
  transform: scale(1.06);
}

.fm-product-image span,
.fm-detail-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  background: #c76610;
  color: #fff;
  border-radius: 2px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.fm-product-info {
  padding: 16px;
}

.fm-product-info small,
.fm-detail-summary small {
  color: #c76610;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
}

.fm-product-info h2 {
  font-size: 19px;
  margin: 6px 0 7px;
  color: #0b2638;
}

.fm-product-info p {
  color: #53626f;
  line-height: 1.6;
  min-height: 48px;
  margin: 0 0 12px;
}

.fm-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 28px;
}

.fm-product-tags em {
  border: 1px solid rgba(11, 38, 56, .14);
  border-radius: 999px;
  padding: 5px 9px;
  color: #53626f;
  font-size: 11px;
  font-style: normal;
}

.fm-product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.detail-btn,
.quote-btn,
.detail-outline {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  border-radius: 2px;
  font-size: 13px;
}

.detail-btn,
.detail-outline {
  border: 1px solid rgba(11, 38, 56, .28);
  color: #0b2638;
  background: #fff;
}

.quote-btn {
  background: #c76610;
  color: #fff;
  border: 1px solid #c76610;
}

.fm-no-products {
  padding: 30px;
  background: #fff;
  border: 1px solid rgba(11, 38, 56, .12);
  text-align: center;
  font-weight: 800;
}

.fm-products-feature-strip {
  margin-top: 34px;
  background: #062237;
  color: #fff;
}

.fm-products-feature-strip .container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.fm-products-feature-strip div div,
.fm-products-feature-strip .container > div {
  padding: 24px 22px;
  border-right: 1px solid rgba(255,255,255,.22);
}

.fm-products-feature-strip b {
  display: block;
  color: #fff;
  margin-bottom: 4px;
}

.fm-products-feature-strip span {
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.5;
}

.fm-product-detail-wrap {
  padding: 135px 0 40px;
}

.fm-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #667684;
  margin-bottom: 24px;
  font-size: 14px;
}

.fm-breadcrumb a {
  color: #0b2638;
  text-decoration: none;
  font-weight: 700;
}

.fm-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  gap: 34px;
  align-items: start;
}

.fm-detail-gallery,
.fm-detail-summary,
.fm-detail-specs,
.fm-related-gallery {
  background: #fff;
  border: 1px solid rgba(11, 38, 56, .12);
  box-shadow: 0 10px 30px rgba(11, 38, 56, .06);
}

.fm-detail-main-image {
  aspect-ratio: 1.65 / 1;
  overflow: hidden;
  background: #e8e1d7;
}

.fm-detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fm-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 14px;
}

.fm-detail-thumbs button {
  border: 2px solid transparent;
  padding: 0;
  background: transparent;
  aspect-ratio: 1.2 / 1;
  overflow: hidden;
  cursor: pointer;
}

.fm-detail-thumbs button.active {
  border-color: #c76610;
}

.fm-detail-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fm-detail-summary {
  padding: 34px;
  position: sticky;
  top: 110px;
}

.fm-detail-summary h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  margin: 10px 0 18px;
  color: #0b2638;
}

.fm-detail-summary p {
  color: #53626f;
  line-height: 1.8;
}

.fm-detail-badge {
  position: static;
  display: inline-block;
  margin-bottom: 14px;
}

.fm-detail-ctas {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.fm-detail-ctas .btn,
.fm-detail-ctas .detail-outline {
  width: 100%;
}

.fm-detail-specs {
  margin-top: 28px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.fm-spec-list {
  display: grid;
  gap: 18px;
}

.fm-spec-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
}

.fm-spec-list span {
  color: #53626f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.fm-spec-list b {
  color: #0b2638;
}

.fm-why-card {
  border-left: 1px solid rgba(11, 38, 56, .12);
  padding-left: 30px;
}

.fm-why-card h2,
.fm-related-gallery h2 {
  color: #0b2638;
  margin-bottom: 16px;
}

.fm-why-card li {
  margin: 12px 0;
  color: #53626f;
}

.fm-related-gallery {
  margin-top: 28px;
  padding: 28px;
}

.fm-related-gallery > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.fm-related-gallery img {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
}

.detail-strip .container {
  grid-template-columns: repeat(4, 1fr);
}

.fm-detail-not-found {
  padding: 150px 0 80px;
}

@media (max-width: 1200px) {
  .fm-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .fm-products-layout,
  .fm-detail-grid,
  .fm-detail-specs {
    grid-template-columns: 1fr;
  }
  .fm-filter-panel,
  .fm-detail-summary {
    position: static;
  }
  .fm-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fm-products-feature-strip .container,
  .detail-strip .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .fm-products-hero {
    margin-top: 78px;
  }
  .fm-product-stats,
  .fm-product-toolbar,
  .fm-product-grid,
  .fm-related-gallery > div,
  .fm-detail-thumbs {
    grid-template-columns: 1fr;
  }
  .fm-product-stats strong {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.18);
  }
  .fm-product-toolbar label {
    display: block;
  }
  .fm-product-toolbar select {
    margin-top: 8px;
    width: 100%;
  }
  .fm-products-feature-strip .container,
  .detail-strip .container {
    grid-template-columns: 1fr;
  }
  .fm-spec-list div {
    grid-template-columns: 1fr;
  }
  .fm-why-card {
    border-left: 0;
    padding-left: 0;
  }
}

.fm-product-price {
  margin: 0 0 12px;
  color: #0b2638;
  font-size: 22px;
  font-weight: 900;
}

.fm-detail-price {
  margin: 0 0 18px;
  color: #c76610;
  font-size: 28px;
  font-weight: 900;
}

/* Polished product catalogue and detail pages based on latest mockup. */
.fm-products-page {
  background: #f7f9fc;
}

.fm-products-hero {
  min-height: 300px;
  margin-top: 94px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #061f34;
}

.fm-products-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 22, 38, .96), rgba(4, 22, 38, .76) 45%, rgba(4, 22, 38, .18));
}

.fm-products-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .8;
}

.fm-products-hero-inner {
  position: relative;
  z-index: 2;
}

.fm-products-hero-copy {
  max-width: 650px;
  border-left: 5px solid #f97316;
  padding-left: 26px;
}

.fm-products-hero-copy h1 {
  color: #fff;
  font-size: clamp(38px, 5vw, 66px);
  line-height: .98;
  margin: 10px 0 16px;
}

.fm-products-hero-copy p {
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  line-height: 1.7;
}

.fm-products-catalog {
  padding: 44px 0 0;
}

.fm-product-toolbar {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 28px;
}

.fm-product-search,
.fm-product-toolbar select,
.fm-filter-panel {
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.fm-filter-panel {
  border-radius: 0;
  border: 1px solid #e5e7eb;
}

.fm-product-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e4e8ef;
}

.fm-product-image span {
  border-radius: 0 0 10px 0;
  left: 0;
  top: 0;
  background: #ff7a1a;
  padding: 10px 16px;
}

.fm-product-info h2 {
  font-size: 20px;
}

.fm-product-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 2px 0 12px;
}

.fm-product-price strong {
  color: #f97316;
  font-size: 25px;
  font-weight: 900;
}

.fm-product-price del {
  color: #8b98a8;
  font-size: 15px;
  font-weight: 700;
}

.detail-btn,
.quote-btn {
  border-radius: 7px;
}

.quote-btn {
  background: #ff7a1a;
  border-color: #ff7a1a;
}

.fm-products-feature-strip {
  border-top: 1px solid rgba(15, 23, 42, .06);
  background: #fff;
  color: #071d32;
}

.fm-products-feature-strip b {
  color: #071d32;
}

.fm-products-feature-strip span {
  color: #64748b;
}

.fm-products-feature-strip .container > div {
  border-right: 1px solid #e5e7eb;
}

.fm-product-details-page {
  background: radial-gradient(circle at 30% 10%, rgba(255, 122, 26, .12), transparent 24%), linear-gradient(135deg, #071d32 0%, #061724 55%, #04111c 100%);
  color: #fff;
  min-height: 100vh;
}

.fm-product-detail-wrap {
  padding-top: 142px;
}

.fm-breadcrumb,
.fm-breadcrumb a {
  color: rgba(255, 255, 255, .72);
}

.fm-detail-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
}

.fm-detail-gallery,
.fm-detail-summary,
.fm-detail-specs,
.fm-related-gallery {
  background: rgba(9, 32, 52, .72);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .28);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  overflow: hidden;
}

.fm-detail-main-image {
  aspect-ratio: 1.55 / 1;
  border-radius: 0;
}

.fm-detail-thumbs {
  grid-template-columns: repeat(6, 1fr);
  background: rgba(3, 17, 28, .5);
}

.fm-detail-thumbs button {
  border-radius: 10px;
}

.fm-detail-thumbs button.active {
  border-color: #ff7a1a;
}

.fm-detail-summary {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 20px 0 0 8px;
}

.fm-detail-summary small {
  color: #ff7a1a;
}

.fm-detail-summary h1,
.fm-why-card h2,
.fm-related-gallery h2,
.fm-spec-list b {
  color: #fff;
}

.fm-detail-summary p,
.fm-why-card li,
.fm-spec-list span {
  color: rgba(255, 255, 255, .72);
}

.fm-detail-price {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}

.fm-detail-price strong {
  color: #ff7a1a;
  font-size: 38px;
  font-weight: 900;
}

.fm-detail-price del {
  color: rgba(255, 255, 255, .55);
  font-weight: 700;
  font-size: 18px;
}

.fm-detail-price em {
  font-style: normal;
  background: rgba(255, 122, 26, .14);
  color: #ff9a4d;
  border: 1px solid rgba(255, 122, 26, .4);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 900;
}

.fm-detail-ctas .btn {
  background: #ff7a1a;
  border-color: #ff7a1a;
  border-radius: 10px;
}

.fm-detail-ctas .detail-outline {
  background: transparent;
  border-color: rgba(255, 122, 26, .7);
  color: #ff9a4d;
  border-radius: 10px;
}

.fm-detail-specs {
  margin-top: 32px;
  background: rgba(8, 28, 46, .76);
}

.fm-spec-list div {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding-bottom: 14px;
}

.fm-why-card {
  border-left-color: rgba(255, 255, 255, .12);
}

.fm-related-gallery {
  background: rgba(8, 28, 46, .76);
}

.fm-related-gallery img {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
}

.detail-strip {
  background: rgba(4, 17, 28, .96);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.detail-strip b {
  color: #fff;
}

.detail-strip span {
  color: rgba(255, 255, 255, .66);
}

@media (max-width: 980px) {
  .fm-detail-summary {
    padding: 0;
  }
}

/* ===============================
   Premium Products Refresh
================================ */
.fm-products-page-premium,
.premium-detail-page {
  background:
    radial-gradient(circle at top left, rgba(11, 47, 86, 0.55), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 153, 51, 0.12), transparent 25%),
    linear-gradient(180deg, #03111f 0%, #04152a 34%, #061934 100%);
  color: #fff;
}

.fm-products-page-premium .container,
.premium-detail-page .container {
  width: min(100%, 1600px);
}

.fm-products-page-premium .premium-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.fm-products-page-premium .premium-hero .fm-products-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2,16,33,0.95) 0%, rgba(4,29,56,0.88) 38%, rgba(5,34,65,0.42) 70%, rgba(6,29,57,0.08) 100%);
}

.fm-products-page-premium .premium-hero .fm-products-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.86);
}

.fm-products-page-premium .fm-products-hero-inner.premium {
  position: relative;
  z-index: 2;
  padding: 40px 0 34px;
}

.fm-hero-breadcrumb,
.premium-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 15px;
  color: rgba(255,255,255,0.78);
}

.fm-hero-breadcrumb a,
.premium-breadcrumb a {
  color: rgba(255,255,255,0.86);
  text-decoration: none;
}

.fm-products-page-premium .premium-copy {
  max-width: 560px;
}

.fm-products-page-premium .premium-copy h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(38px, 4vw, 66px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.fm-products-page-premium .premium-copy p {
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 23px;
  line-height: 1.6;
}

.fm-products-page-premium .premium-catalog {
  padding: 0 0 36px;
}

.fm-products-page-premium .premium-toolbar {
  display: grid;
  grid-template-columns: 260px minmax(0,1fr) 290px 122px;
  gap: 18px;
  align-items: center;
  margin-top: -42px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255,163,67,0.35);
  background: rgba(5, 20, 40, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  position: relative;
  z-index: 5;
}

.fm-products-page-premium .toolbar-select select,
.fm-products-page-premium .premium-search input,
.fm-products-page-premium .premium-search button {
  height: 68px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(8, 27, 50, 0.95);
  color: #fff;
}

.fm-products-page-premium .toolbar-select select {
  width: 100%;
  padding: 0 22px;
  font-size: 18px;
  font-weight: 600;
  outline: 0;
}

.fm-products-page-premium .premium-search {
  display: grid;
  grid-template-columns: 1fr 68px;
  gap: 14px;
  align-items: center;
}

.fm-products-page-premium .premium-search input {
  width: 100%;
  padding: 0 24px;
  font-size: 18px;
  outline: 0;
}

.fm-products-page-premium .premium-search input::placeholder {
  color: rgba(255,255,255,0.54);
}

.fm-products-page-premium .premium-search button {
  width: 68px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

.fm-products-page-premium .premium-view-buttons {
  display: flex;
  gap: 14px;
}

.fm-products-page-premium .premium-view-buttons button {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255,163,67,0.28);
  background: rgba(8, 27, 50, 0.95);
  color: #ff9a2f;
  font-size: 22px;
}

.fm-products-page-premium .premium-view-buttons .active {
  background: #ff911f;
  color: #fff;
}

.fm-products-page-premium .premium-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.fm-products-page-premium .premium-card {
  background: rgba(255,255,255,0.96);
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid rgba(255,148,45,0.18);
  box-shadow: 0 18px 45px rgba(1,12,24,0.35);
}

.fm-products-page-premium .premium-image {
  position: relative;
  display: block;
  height: 270px;
  overflow: hidden;
}

.fm-products-page-premium .premium-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.fm-products-page-premium .premium-card:hover .premium-image img {
  transform: scale(1.04);
}

.fm-products-page-premium .fm-offer-ribbon {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff8c1a 0%, #ffb145 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  z-index: 2;
}

.fm-products-page-premium .fm-card-fav {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(4,19,37,0.55);
  color: #fff;
  font-size: 24px;
  z-index: 2;
}

.fm-products-page-premium .premium-info {
  padding: 18px 18px 20px;
  color: #1b2432;
}

.fm-products-page-premium .premium-info small {
  display: block;
  margin-bottom: 8px;
  color: #cb6d14;
  font-size: 14px;
  font-weight: 700;
}

.fm-products-page-premium .premium-info h2 {
  margin: 0 0 10px;
  color: #1b2432;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 800;
}

.fm-products-page-premium .premium-info p {
  margin: 0 0 10px;
  color: #535d6d;
  font-size: 15px;
  line-height: 1.58;
  min-height: 72px;
}

.fm-products-page-premium .premium-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 16px;
}

.fm-products-page-premium .premium-price strong {
  color: #ff8120;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.fm-products-page-premium .premium-price del {
  color: #8d8f97;
  font-size: 18px;
  font-weight: 700;
}

.fm-products-page-premium .premium-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fm-products-page-premium .premium-actions a,
.premium-detail-page .premium-ctas a {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}

.fm-products-page-premium .premium-actions .detail-btn {
  border: 1px solid #cfd5de;
  background: #fff;
  color: #1c2740;
}

.fm-products-page-premium .premium-actions .quote-btn,
.premium-detail-page .premium-ctas .btn {
  border: 1px solid transparent;
  background: linear-gradient(135deg, #ff932d 0%, #f07f18 100%);
  color: #fff;
}

.fm-products-page-premium .premium-actions .quote-btn:hover,
.premium-detail-page .premium-ctas .btn:hover {
  filter: brightness(1.06);
}

.fm-products-page-premium .premium-feature-strip {
  padding: 4px 0 46px;
}

.fm-products-page-premium .premium-feature-strip .container,
.premium-detail-page .fm-detail-micro-features {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  padding: 18px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(4, 19, 37, 0.75);
}

.fm-products-page-premium .premium-feature-strip b,
.premium-detail-page .fm-detail-micro-features b {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 17px;
}

.fm-products-page-premium .premium-feature-strip span,
.premium-detail-page .fm-detail-micro-features span {
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  line-height: 1.55;
}

.premium-detail-page .premium-detail-wrap {
  padding: 24px 0 52px;
}

.premium-detail-page .fm-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.premium-detail-page .fm-detail-top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.premium-detail-page .fm-back-link,
.premium-detail-page .fm-icon-btn {
  height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(5, 20, 40, 0.82);
  color: #fff;
}

.premium-detail-page .fm-icon-btn {
  width: 48px;
  padding: 0;
  font-size: 24px;
  cursor: pointer;
}

.premium-detail-page .fm-icon-btn.small {
  width: 56px;
}

.premium-detail-page .premium-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.9fr);
  gap: 30px;
  align-items: start;
}

.premium-detail-page .fm-detail-gallery-shell {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
}

.premium-detail-page .premium-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.premium-detail-page .premium-thumbs button,
.premium-detail-page .fm-thumb-more {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid transparent;
  background: rgba(255,255,255,0.06);
  padding: 0;
  color: #fff;
}

.premium-detail-page .premium-thumbs button.active {
  border-color: #ff982d;
}

.premium-detail-page .premium-thumbs img,
.premium-detail-page .fm-related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premium-detail-page .fm-thumb-more {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
  font-weight: 800;
  color: #fff;
}

.premium-detail-page .fm-thumb-more span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.74);
}

.premium-detail-page .premium-main-image {
  position: relative;
  min-height: 720px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

.premium-detail-page .premium-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premium-detail-page .fm-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: rgba(3,17,31,0.75);
  color: #ff9a2f;
  font-size: 34px;
  cursor: pointer;
}

.premium-detail-page .fm-gallery-nav.prev { left: 18px; }
.premium-detail-page .fm-gallery-nav.next { right: 18px; }

.premium-detail-page .fm-gallery-count {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(3,17,31,0.74);
  color: #fff;
  font-weight: 700;
}

.premium-detail-page .fm-detail-gallery-tools {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding: 14px 8px 0 120px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}

.premium-detail-page .premium-summary {
  padding: 12px 10px 0 0;
}

.premium-detail-page .fm-detail-badge.offer {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8d1b 0%, #ffb147 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.premium-detail-page .fm-detail-meta-line {
  margin: 16px 0 8px;
  color: rgba(255,255,255,0.78);
  font-size: 16px;
}

.premium-detail-page .fm-detail-meta-line b,
.premium-detail-page .fm-detail-meta-line span {
  color: #ff9d38;
}

.premium-detail-page .premium-summary h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(34px, 3.2vw, 62px);
  line-height: 1.08;
  font-weight: 800;
}

.premium-detail-page .premium-detail-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 18px;
}

.premium-detail-page .premium-detail-price strong {
  color: #ff9228;
  font-size: clamp(38px, 3vw, 56px);
  font-weight: 900;
}

.premium-detail-page .premium-detail-price del {
  color: rgba(255,255,255,0.5);
  font-size: 26px;
  font-weight: 700;
}

.premium-detail-page .premium-detail-price em {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  background: rgba(255,157,56,0.16);
  color: #ff9d38;
  font-style: normal;
  font-size: 18px;
  font-weight: 800;
}

.premium-detail-page .premium-summary p {
  margin: 0 0 24px;
  color: rgba(255,255,255,0.82);
  font-size: 18px;
  line-height: 1.78;
}

.premium-detail-page .fm-detail-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.premium-detail-page .fm-detail-spec-grid span {
  display: block;
  margin-bottom: 4px;
  color: #ff9d38;
  font-size: 15px;
  font-weight: 700;
}

.premium-detail-page .fm-detail-spec-grid b {
  color: rgba(255,255,255,0.88);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 600;
}

.premium-detail-page .premium-ctas {
  display: grid;
  grid-template-columns: 1.05fr 1fr 56px;
  gap: 14px;
  margin-top: 24px;
}

.premium-detail-page .premium-ctas .detail-outline {
  border: 1px solid rgba(255,163,67,0.55);
  background: transparent;
  color: #fff;
}

.premium-detail-page .fm-detail-micro-features {
  margin-top: 26px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premium-detail-page .premium-related-gallery {
  margin-top: 28px;
}

.premium-detail-page .fm-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.premium-detail-page .fm-related-head h2 {
  margin: 0;
  color: #fff;
  font-size: 32px;
}

.premium-detail-page .fm-related-head a {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}

.premium-detail-page .fm-related-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.premium-detail-page .fm-related-card {
  height: 186px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
}

@media (max-width: 1280px) {
  .fm-products-page-premium .premium-toolbar {
    grid-template-columns: 220px minmax(0,1fr) 240px 114px;
  }

  .premium-detail-page .premium-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .fm-products-page-premium .premium-toolbar {
    grid-template-columns: 1fr;
  }

  .fm-products-page-premium .premium-product-grid,
  .premium-detail-page .fm-related-grid,
  .fm-products-page-premium .premium-feature-strip .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-detail-page .fm-detail-gallery-shell {
    grid-template-columns: 1fr;
  }

  .premium-detail-page .premium-thumbs {
    flex-direction: row;
    overflow-x: auto;
  }

  .premium-detail-page .fm-detail-gallery-tools {
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .fm-products-page-premium .premium-copy p {
    font-size: 17px;
  }

  .fm-products-page-premium .premium-product-grid,
  .premium-detail-page .fm-related-grid,
  .fm-products-page-premium .premium-feature-strip .container,
  .premium-detail-page .fm-detail-micro-features,
  .premium-detail-page .fm-detail-spec-grid,
  .premium-detail-page .premium-ctas {
    grid-template-columns: 1fr;
  }

  .fm-products-page-premium .premium-image {
    height: 220px;
  }

  .premium-detail-page .premium-main-image {
    min-height: 420px;
  }

  .premium-detail-page .fm-detail-topbar,
  .premium-detail-page .fm-related-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Product details zoom popup and slider polish. */
.premium-detail-page .fm-main-zoom-trigger {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  display: block;
  background: transparent;
  cursor: zoom-in;
  position: relative;
}

.premium-detail-page .fm-main-zoom-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premium-detail-page .fm-main-zoom-trigger span {
  position: absolute;
  right: 22px;
  top: 22px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(3,17,31,0.82);
  color: #fff;
  font-size: 26px;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}

.fm-product-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.fm-product-zoom-modal.open {
  display: flex;
}

.fm-product-zoom-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1,9,18,.88);
  backdrop-filter: blur(8px);
}

.fm-product-zoom-box {
  width: min(1180px, 94vw);
  max-height: 90vh;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  overflow: hidden;
  background: #041322;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.fm-product-zoom-box img {
  width: 100%;
  max-height: 78vh;
  display: block;
  object-fit: contain;
  background: #07182a;
}

.fm-product-zoom-close,
.fm-product-zoom-nav {
  position: absolute;
  border: 0;
  cursor: pointer;
  background: rgba(3,17,31,.82);
  color: #fff;
  display: grid;
  place-items: center;
}

.fm-product-zoom-close {
  right: 18px;
  top: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 34px;
}

.fm-product-zoom-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 42px;
  color: #ff9a2f;
}

.fm-product-zoom-nav.left { left: 20px; }
.fm-product-zoom-nav.right { right: 20px; }

.fm-product-zoom-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 24px;
  color: #fff;
  background: linear-gradient(90deg, #041322, #071d33);
}

.fm-product-zoom-caption span {
  color: #ff9a2f;
  font-weight: 800;
}

/* Admin image preview polish. */
.upload-preview-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed #b7c7dc;
  border-radius: 14px;
  background: #fff;
}

.upload-preview-box strong {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
}

.upload-preview-box img {
  width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.gallery-preview-grid div {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  overflow: hidden;
}

.gallery-preview-grid img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.gallery-preview-grid span {
  display: block;
  margin-top: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  color: #64748b;
}

/* Extra premium polish for home/project image-heavy sections. */
.hero,
.fm-project-hero {
  background: linear-gradient(120deg, #021222, #082746);
}

.hero img,
.fm-project-hero-bg img,
.fm-marquee-card img,
.fm-location-card img,
.fm-manufacturing-grid article,
.custom-space-card img,
.gallery-card img,
.before-after-card img {
  filter: saturate(.95) contrast(1.04) brightness(.92);
}

.fm-marquee-card,
.fm-location-card,
.custom-space-card,
.gallery-card,
.before-after-card,
.fm-manufacturing-grid article {
  border: 1px solid rgba(199,102,16,.18) !important;
  box-shadow: 0 18px 45px rgba(4,19,37,.10) !important;
  border-radius: 18px !important;
  overflow: hidden;
}

.fm-marquee-card:hover,
.fm-location-card:hover,
.gallery-card:hover,
.before-after-card:hover {
  transform: translateY(-4px);
  transition: .25s ease;
}

@media(max-width:760px){
  .gallery-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-product-zoom-modal { padding: 14px; }
  .fm-product-zoom-nav { width: 46px; height: 46px; font-size: 34px; }
}

/* ==========================================================
   Product frontend v5 - premium catalog and detail pages
   Admin panel styles are intentionally not changed here.
========================================================== */
.fm-products-catalog-v5,
.fm-product-detail-v5 {
  background: #061728;
  color: #0d1b2a;
  min-height: 100vh;
}

.fm-products-catalog-v5 .container,
.fm-product-detail-v5 .container {
  width: min(100% - 44px, 1540px);
}

.fm-v5-hero {
  position: relative;
  min-height: 380px;
  margin-top: 0;
  overflow: hidden;
  background: #061728;
}

.fm-v5-hero-bg,
.fm-v5-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fm-v5-hero-bg img {
  object-fit: cover;
  filter: saturate(.9) brightness(.72);
}

.fm-v5-hero-bg:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,18,32,.96) 0%, rgba(5,18,32,.78) 38%, rgba(5,18,32,.22) 100%);
}

.fm-v5-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 380px;
  display: flex;
  align-items: center;
}

.fm-v5-hero-copy {
  width: min(620px, 100%);
  padding: 34px 0;
}

.fm-v5-hero-copy span {
  display: inline-block;
  color: #ff8b1a;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 800;
  margin-bottom: 14px;
}

.fm-v5-hero-copy h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  font-family: Georgia, 'Times New Roman', serif;
}

.fm-v5-hero-copy p {
  margin: 0 0 24px;
  color: rgba(255,255,255,.88);
  font-size: 18px;
  line-height: 1.7;
}

.fm-v5-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: min(620px, 100%);
  background: rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
}

.fm-v5-stats strong {
  padding: 16px 18px;
  border-right: 1px solid rgba(255,255,255,.13);
}

.fm-v5-stats strong:last-child { border-right: 0; }

.fm-v5-stats b {
  display: block;
  color: #ff971f;
  font-size: 26px;
  line-height: 1;
}

.fm-v5-stats small {
  display: block;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  margin-top: 5px;
}

.fm-v5-body {
  background: #f5f6f7;
  padding: 28px 0 0;
}

.fm-v5-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
}

.fm-v5-filter {
  background: #fff;
  border: 1px solid #e5e8ee;
  min-height: 660px;
  padding: 22px 18px;
  box-shadow: 0 10px 30px rgba(8, 22, 39, .06);
}

.fm-v5-filter-title,
.fm-v5-filter-block h3,
.fm-v5-filter summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #0a2035;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 13px;
}

.fm-v5-filter-title button {
  border: 0;
  background: transparent;
  color: #ff7b13;
  font-weight: 800;
  cursor: pointer;
}

.fm-v5-filter-block {
  padding: 18px 0 8px;
  border-bottom: 1px solid #e8edf3;
}

.fm-v5-filter label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 13px 0;
  color: #334155;
  font-size: 14px;
}

.fm-v5-filter input { accent-color: #d96b11; }
.fm-v5-filter details { padding: 18px 0; border-bottom: 1px solid #e8edf3; }
.fm-v5-filter details p { margin: 12px 0 0; color: #64748b; font-size: 14px; line-height: 1.6; }

.fm-v5-reset {
  width: 100%;
  margin-top: 18px;
  min-height: 48px;
  border: 0;
  border-radius: 4px;
  background: #061728;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.fm-v5-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 230px;
  gap: 18px;
  margin-bottom: 22px;
}

.fm-v5-search {
  height: 56px;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  background: #fff;
  border: 1px solid #dde3ea;
  box-shadow: 0 8px 22px rgba(8, 22, 39, .04);
}

.fm-v5-search span { text-align: center; font-size: 24px; color: #061728; }
.fm-v5-search input { width: 100%; height: 100%; border: 0; outline: 0; font-size: 15px; background: transparent; }

.fm-v5-view { display: flex; gap: 10px; }
.fm-v5-view button {
  width: 54px;
  height: 54px;
  border: 1px solid #dde3ea;
  background: #fff;
  color: #061728;
  font-size: 20px;
  cursor: pointer;
}
.fm-v5-view .active { color: #d96b11; }

.fm-v5-toolbar label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-weight: 800;
}
.fm-v5-toolbar select { height: 54px; border: 1px solid #dde3ea; background: #fff; padding: 0 16px; outline: 0; }

.fm-v5-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.fm-v5-card {
  background: #fff;
  border: 1px solid #e1e7ee;
  box-shadow: 0 10px 26px rgba(8, 22, 39, .07);
  transition: transform .25s ease, box-shadow .25s ease;
}
.fm-v5-card:hover { transform: translateY(-5px); box-shadow: 0 20px 46px rgba(8,22,39,.13); }

.fm-v5-card-img { position: relative; display: block; height: 178px; overflow: hidden; background: #d9d1c6; }
.fm-v5-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; filter: saturate(.92) contrast(1.03); }
.fm-v5-card:hover .fm-v5-card-img img { transform: scale(1.06); }
.fm-v5-card-img span {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #d96b11;
  color: #fff;
  min-height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fm-v5-card-body { padding: 15px; }
.fm-v5-card-body h2 { margin: 0 0 4px; color: #0c2035; font-size: 17px; line-height: 1.28; font-weight: 900; }
.fm-v5-card-body small { color: #667085; font-size: 13px; }
.fm-v5-card-body p { margin: 9px 0; min-height: 48px; color: #475569; font-size: 13.5px; line-height: 1.55; }
.fm-v5-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.fm-v5-price b { color: #e66e11; font-size: 20px; }
.fm-v5-price del { color: #8b95a1; font-size: 13px; font-weight: 700; }
.fm-v5-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fm-v5-actions a { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; text-decoration: none; font-weight: 900; font-size: 12px; }
.fm-v5-actions a:first-child { border: 1px solid #cfd6de; color: #0c2035; background: #fff; }
.fm-v5-actions a:last-child { border: 1px solid #d96b11; color: #fff; background: #d96b11; }

.fm-v5-feature-strip { background: #061728; color: #fff; padding: 0; }
.fm-v5-feature-strip .container { display: grid; grid-template-columns: repeat(6, 1fr); }
.fm-v5-feature-strip div div,
.fm-v5-feature-strip .container > div { padding: 22px 16px; border-right: 1px solid rgba(255,255,255,.15); }
.fm-v5-feature-strip b { display: block; color: #fff; font-size: 14px; margin-bottom: 4px; }
.fm-v5-feature-strip span { color: rgba(255,255,255,.74); font-size: 12px; line-height: 1.45; }

.fm-v5-crafted { background: #f7f7f7; padding: 20px 0 34px; }
.fm-v5-crafted .container { display: grid; grid-template-columns: 330px 1fr; gap: 26px; align-items: center; background: #fff; padding: 18px; border: 1px solid #e6e9ee; }
.fm-v5-crafted img { width: 100%; height: 155px; object-fit: cover; }
.fm-v5-crafted h2 { margin: 0 0 10px; color: #0c2035; font-family: Georgia, 'Times New Roman', serif; }
.fm-v5-crafted p { margin: 0 0 14px; color: #475569; line-height: 1.7; }
.fm-v5-crafted a { display: inline-flex; min-height: 42px; padding: 0 18px; align-items: center; background: #d96b11; color: #fff; text-decoration: none; font-weight: 900; border-radius: 4px; }

/* Product detail v5 */
.fm-product-detail-v5 { background: #061728; color: #fff; padding-bottom: 54px; }
.fm-v5-detail-wrap { padding: 28px 0 0; }
.fm-v5-detail-breadcrumb { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; color: rgba(255,255,255,.62); font-size: 14px; }
.fm-v5-detail-breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.fm-v5-detail-breadcrumb strong { color: #fff; }

.fm-v5-detail-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(390px, .78fr); gap: 32px; align-items: start; }
.fm-v5-detail-media { min-width: 0; }
.fm-v5-main-gallery { position: relative; }
.fm-v5-main-image { display: block; position: relative; width: 100%; height: 560px; overflow: hidden; border: 0; padding: 0; background: #0b2035; cursor: zoom-in; border-radius: 8px; }
.fm-v5-main-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.94) contrast(1.05); }
.fm-v5-main-image .zoom-icon { position: absolute; right: 18px; top: 18px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.68); color: #fff; font-size: 24px; }
.fm-v5-gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(6,23,40,.82); color: #ff901d; font-size: 30px; cursor: pointer; }
.fm-v5-gallery-arrow.left { left: 12px; }
.fm-v5-gallery-arrow.right { right: 12px; }
.fm-v5-thumb-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 14px; }
.fm-v5-thumb-row button { height: 76px; border-radius: 5px; overflow: hidden; border: 2px solid transparent; padding: 0; background: transparent; cursor: pointer; }
.fm-v5-thumb-row button.active { border-color: #ff8b1a; }
.fm-v5-thumb-row img { width: 100%; height: 100%; object-fit: cover; }

.fm-v5-detail-panel { background: #071d32; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 28px; box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.fm-v5-detail-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.fm-v5-detail-badges span { background: #d96b11; color: #fff; border-radius: 4px; padding: 7px 12px; text-transform: uppercase; font-size: 12px; font-weight: 900; }
.fm-v5-detail-panel h1 { margin: 0 0 12px; color: #fff; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(32px, 3vw, 48px); line-height: 1.12; }
.fm-v5-detail-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: rgba(255,255,255,.65); font-size: 14px; margin-bottom: 18px; }
.fm-v5-detail-meta b { color: #fff; }
.fm-v5-detail-meta i { color: rgba(255,255,255,.26); font-style: normal; }
.fm-v5-detail-panel p { margin: 0 0 22px; color: rgba(255,255,255,.78); line-height: 1.72; font-size: 15.5px; }
.fm-v5-detail-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.fm-v5-detail-price strong { color: #ff8b1a; font-size: 34px; }
.fm-v5-detail-price del { color: rgba(255,255,255,.45); font-size: 18px; font-weight: 800; }
.fm-v5-detail-price em { color: #ff8b1a; font-style: normal; font-weight: 900; }
.fm-v5-tax-note { display: block; color: rgba(255,255,255,.55); margin-bottom: 22px; }
.fm-v5-detail-ctas { display: grid; gap: 14px; margin-bottom: 24px; }
.fm-v5-detail-ctas a { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; text-decoration: none; font-weight: 900; }
.fm-v5-detail-ctas .request { background: #d96b11; color: #fff; }
.fm-v5-detail-ctas .quote { background: transparent; color: #fff; border: 1px solid #d96b11; }
.fm-v5-mini-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.fm-v5-mini-features div { text-align: center; }
.fm-v5-mini-features b { display: block; color: #fff; font-size: 12px; }
.fm-v5-mini-features span { color: rgba(255,255,255,.58); font-size: 11px; }

.fm-v5-detail-info-grid { display: grid; grid-template-columns: 1.2fr 1fr .72fr; gap: 20px; margin-top: 34px; }
.fm-v5-specs-card,
.fm-v5-why-card,
.fm-v5-service-card { background: #071d32; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 22px; }
.fm-v5-tabs { display: flex; gap: 18px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 16px; }
.fm-v5-tabs button { background: transparent; border: 0; color: rgba(255,255,255,.62); padding: 0 0 12px; cursor: pointer; font-weight: 800; }
.fm-v5-tabs .active { color: #ff8b1a; border-bottom: 2px solid #ff8b1a; }
.fm-v5-specs-card dl { margin: 0; }
.fm-v5-specs-card dl div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.fm-v5-specs-card dt { color: rgba(255,255,255,.58); }
.fm-v5-specs-card dd { margin: 0; color: #fff; font-weight: 700; }
.fm-v5-why-card h2 { margin: 0 0 14px; color: #fff; font-family: Georgia, 'Times New Roman', serif; }
.fm-v5-why-card ul { margin: 0; padding-left: 18px; color: rgba(255,255,255,.76); line-height: 1.9; }
.fm-v5-service-card { display: grid; gap: 20px; }
.fm-v5-service-card b { display: block; color: #fff; margin-bottom: 4px; }
.fm-v5-service-card span { color: rgba(255,255,255,.68); }

.fm-v5-related-products { margin-top: 34px; }
.fm-v5-related-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 16px; }
.fm-v5-related-head h2 { margin: 0; color: #fff; font-family: Georgia, 'Times New Roman', serif; }
.fm-v5-related-head a { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.16); min-height: 42px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 4px; }
.fm-v5-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fm-v5-related-grid a { display: block; text-decoration: none; color: #fff; background: #071d32; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; overflow: hidden; }
.fm-v5-related-grid img { width: 100%; height: 160px; object-fit: cover; display: block; }
.fm-v5-related-grid b { display: block; padding: 12px 14px 4px; color: #fff; }
.fm-v5-related-grid span { display: block; padding: 0 14px 14px; color: #ff8b1a; font-weight: 900; }

.fm-product-zoom-modal { position: fixed; inset: 0; z-index: 9999; display: none; }
.fm-product-zoom-modal.open { display: block; }
.fm-product-zoom-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.86); }
.fm-product-zoom-box { position: absolute; inset: 40px; display: grid; place-items: center; }
.fm-product-zoom-box img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.fm-product-zoom-close,
.fm-product-zoom-nav { position: absolute; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.fm-product-zoom-close { right: 0; top: 0; width: 48px; height: 48px; font-size: 32px; }
.fm-product-zoom-nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 42px; color: #ff8b1a; }
.fm-product-zoom-nav.left { left: 0; }
.fm-product-zoom-nav.right { right: 0; }
.fm-product-zoom-caption { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); color: #fff; background: rgba(6,23,40,.75); padding: 12px 18px; border-radius: 999px; display: flex; gap: 18px; align-items: center; }
.fm-product-zoom-caption span { color: #ff8b1a; }

@media (max-width: 1300px) {
  .fm-v5-grid { grid-template-columns: repeat(3, 1fr); }
  .fm-v5-detail-grid,
  .fm-v5-detail-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .fm-v5-layout { grid-template-columns: 1fr; }
  .fm-v5-filter { min-height: auto; }
  .fm-v5-grid { grid-template-columns: repeat(2, 1fr); }
  .fm-v5-feature-strip .container { grid-template-columns: repeat(2, 1fr); }
  .fm-v5-crafted .container { grid-template-columns: 1fr; }
  .fm-v5-toolbar { grid-template-columns: 1fr; }
  .fm-v5-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .fm-products-catalog-v5 .container,
  .fm-product-detail-v5 .container { width: min(100% - 24px, 1540px); }
  .fm-v5-stats { grid-template-columns: repeat(2, 1fr); }
  .fm-v5-grid,
  .fm-v5-related-grid,
  .fm-v5-mini-features,
  .fm-v5-thumb-row { grid-template-columns: 1fr; }
  .fm-v5-main-image { height: 380px; }
  .fm-v5-card-img { height: 220px; }
}

/* Functional fixes: product info tabs and catalog view switch. */
.fm-v5-tab-panel[hidden] {
  display: none !important;
}

.fm-v5-tab-panel.active {
  display: block;
}

.fm-v5-tabs button.active,
.fm-v5-tabs button:hover {
  color: #ff8b1a;
}

.fm-v5-grid.list-view {
  grid-template-columns: 1fr !important;
}

.fm-v5-grid.list-view .fm-v5-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: stretch;
}

.fm-v5-grid.list-view .fm-v5-card-img {
  height: 100%;
  min-height: 230px;
}

.fm-v5-grid.list-view .fm-v5-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 24px;
}

.fm-v5-grid.list-view .fm-v5-card-body p {
  min-height: auto;
  max-width: 760px;
}

.fm-v5-view button {
  cursor: pointer;
}

.fm-v5-view button.active {
  background: #ffffff;
  border-color: #ff8b1a;
  box-shadow: 0 10px 24px rgba(217, 107, 17, .16);
}

@media(max-width:760px) {
  .fm-v5-grid.list-view .fm-v5-card {
    grid-template-columns: 1fr;
  }
  .fm-v5-grid.list-view .fm-v5-card-img {
    height: 220px;
  }
}

/* List view card height and look-feel refinement */
.fm-v5-grid.list-view {
  gap: 14px;
}

.fm-v5-grid.list-view .fm-v5-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  min-height: 220px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(8, 22, 39, .08);
}

.fm-v5-grid.list-view .fm-v5-card:hover {
  transform: translateY(-3px);
}

.fm-v5-grid.list-view .fm-v5-card-img {
  height: 220px;
  min-height: 220px;
}

.fm-v5-grid.list-view .fm-v5-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px 26px;
}

.fm-v5-grid.list-view .fm-v5-card-body h2 {
  margin-bottom: 2px;
  font-size: 18px;
  line-height: 1.3;
}

.fm-v5-grid.list-view .fm-v5-card-body small {
  display: block;
  margin-bottom: 2px;
}

.fm-v5-grid.list-view .fm-v5-card-body p {
  min-height: auto;
  max-width: 720px;
  margin: 4px 0 6px;
  font-size: 14px;
  line-height: 1.55;
}

.fm-v5-grid.list-view .fm-v5-price {
  margin-bottom: 8px;
}

.fm-v5-grid.list-view .fm-v5-price b {
  font-size: 18px;
}

.fm-v5-grid.list-view .fm-v5-price del {
  font-size: 12px;
}

.fm-v5-grid.list-view .fm-v5-actions {
  max-width: 520px;
}

.fm-v5-grid.list-view .fm-v5-actions a {
  min-height: 46px;
  font-size: 13px;
}

@media(max-width: 900px) {
  .fm-v5-grid.list-view .fm-v5-card {
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 200px;
  }

  .fm-v5-grid.list-view .fm-v5-card-img {
    height: 200px;
    min-height: 200px;
  }
}

@media(max-width:760px) {
  .fm-v5-grid.list-view .fm-v5-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .fm-v5-grid.list-view .fm-v5-card-img {
    height: 220px;
  }

  .fm-v5-grid.list-view .fm-v5-card-body {
    padding: 16px;
  }

  .fm-v5-grid.list-view .fm-v5-actions {
    max-width: 100%;
  }
}

/* Same-to-same premium list view refinement */
.fm-v5-layout.list-mode {
  grid-template-columns: 1fr;
}

.fm-v5-layout.list-mode .fm-v5-filter {
  display: none;
}

.fm-v5-layout.list-mode .fm-v5-toolbar {
  grid-template-columns: minmax(0, 1fr) auto 230px;
}

.fm-v5-layout.list-mode .fm-v5-content {
  width: 100%;
}

.fm-v5-grid.list-view {
  grid-template-columns: 1fr !important;
  gap: 0;
  border: 1px solid #e7ebf0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.fm-v5-grid.list-view .fm-v5-card {
  display: grid;
  grid-template-columns: 180px 34px minmax(0, 1fr) 270px;
  align-items: center;
  gap: 18px;
  min-height: 136px;
  padding: 12px 18px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  background: #fff;
}

.fm-v5-grid.list-view .fm-v5-card:last-child {
  border-bottom: 0;
}

.fm-v5-grid.list-view .fm-v5-card:hover {
  transform: none;
  box-shadow: none;
  background: #fcfdff;
}

.fm-v5-grid.list-view .fm-v5-card-img {
  width: 180px;
  height: 102px;
  min-height: 102px;
  border-radius: 4px;
  overflow: hidden;
}

.fm-v5-grid.list-view .fm-v5-card-img span {
  top: 8px;
  left: 8px;
  min-height: 24px;
  padding: 0 8px;
  font-size: 10px;
  border-radius: 3px;
}

.fm-v5-grid.list-view .fm-v5-card::before {
  content: '♡';
  align-self: start;
  justify-self: center;
  color: #8b95a1;
  font-size: 16px;
  line-height: 1;
  margin-top: 8px;
}

.fm-v5-grid.list-view .fm-v5-card-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.fm-v5-grid.list-view .fm-v5-card-body h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}

.fm-v5-grid.list-view .fm-v5-card-body small {
  display: block;
  color: #7b8794;
  font-size: 12px;
  margin: 0;
}

.fm-v5-grid.list-view .fm-v5-card-body p {
  min-height: auto;
  margin: 3px 0 4px;
  max-width: 540px;
  color: #6b7785;
  font-size: 12px;
  line-height: 1.55;
}

.fm-v5-grid.list-view .fm-v5-price {
  margin: 0;
  gap: 10px;
}

.fm-v5-grid.list-view .fm-v5-price b {
  font-size: 17px;
  font-weight: 900;
}

.fm-v5-grid.list-view .fm-v5-price del {
  font-size: 11px;
}

.fm-v5-grid.list-view .fm-v5-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  max-width: none;
}

.fm-v5-grid.list-view .fm-v5-actions a {
  min-width: 110px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
}

.fm-v5-catalog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px 0;
}

.fm-v5-catalog-footer p {
  margin: 0;
  color: #6b7785;
  font-size: 12px;
}

.fm-v5-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fm-v5-pagination button {
  width: 28px;
  height: 28px;
  border: 1px solid #dde3ea;
  background: #fff;
  color: #5b6672;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.fm-v5-pagination button.active {
  background: #061728;
  border-color: #061728;
  color: #fff;
}

@media(max-width: 1200px) {
  .fm-v5-grid.list-view .fm-v5-card {
    grid-template-columns: 170px 24px minmax(0, 1fr) 240px;
    gap: 14px;
  }

  .fm-v5-grid.list-view .fm-v5-card-body p {
    max-width: 420px;
  }
}

@media(max-width: 900px) {
  .fm-v5-layout.list-mode .fm-v5-toolbar,
  .fm-v5-toolbar {
    grid-template-columns: 1fr;
  }

  .fm-v5-grid.list-view .fm-v5-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .fm-v5-grid.list-view .fm-v5-card::before {
    display: none;
  }

  .fm-v5-grid.list-view .fm-v5-card-img {
    width: 100%;
    height: 180px;
  }

  .fm-v5-grid.list-view .fm-v5-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .fm-v5-catalog-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Final fix: list view should keep sidebar and align products cleanly */
.fm-v5-layout.list-mode {
  grid-template-columns: 250px minmax(0, 1fr) !important;
  align-items: start !important;
}

.fm-v5-layout.list-mode .fm-v5-filter {
  display: block !important;
}

.fm-v5-layout.list-mode .fm-v5-content {
  min-width: 0 !important;
}

.fm-v5-grid.list-view {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  border: 1px solid #e7ebf0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  overflow: hidden !important;
}

.fm-v5-grid.list-view .fm-v5-card {
  display: grid !important;
  grid-template-columns: 230px minmax(0, 1fr) !important;
  gap: 22px !important;
  align-items: center !important;
  min-height: 156px !important;
  padding: 16px 20px !important;
  border: 0 !important;
  border-bottom: 1px solid #edf1f5 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  overflow: visible !important;
}

.fm-v5-grid.list-view .fm-v5-card:last-child {
  border-bottom: 0 !important;
}

.fm-v5-grid.list-view .fm-v5-card:hover {
  transform: none !important;
  box-shadow: none !important;
  background: #fcfdff !important;
}

.fm-v5-grid.list-view .fm-v5-card::before {
  display: none !important;
  content: none !important;
}

.fm-v5-grid.list-view .fm-v5-card-img {
  width: 230px !important;
  height: 124px !important;
  min-height: 124px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.fm-v5-grid.list-view .fm-v5-card-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.fm-v5-grid.list-view .fm-v5-card-img span {
  top: 10px !important;
  left: 10px !important;
  min-height: 26px !important;
  padding: 0 10px !important;
  font-size: 10px !important;
  border-radius: 4px !important;
}

.fm-v5-grid.list-view .fm-v5-card-body {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 270px !important;
  gap: 24px !important;
  align-items: center !important;
  padding: 0 !important;
  min-width: 0 !important;
}

.fm-v5-grid.list-view .fm-v5-card-body h2,
.fm-v5-grid.list-view .fm-v5-card-body small,
.fm-v5-grid.list-view .fm-v5-card-body p,
.fm-v5-grid.list-view .fm-v5-price {
  grid-column: 1 !important;
}

.fm-v5-grid.list-view .fm-v5-card-body h2 {
  margin: 0 0 4px !important;
  font-size: 19px !important;
  line-height: 1.28 !important;
  font-weight: 900 !important;
  color: #0c2035 !important;
}

.fm-v5-grid.list-view .fm-v5-card-body small {
  display: block !important;
  margin: 0 0 6px !important;
  color: #7b8794 !important;
  font-size: 13px !important;
}

.fm-v5-grid.list-view .fm-v5-card-body p {
  min-height: auto !important;
  max-width: 560px !important;
  margin: 0 0 8px !important;
  color: #5d6875 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.fm-v5-grid.list-view .fm-v5-price {
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
  margin: 0 !important;
}

.fm-v5-grid.list-view .fm-v5-price b {
  font-size: 18px !important;
  color: #e66e11 !important;
}

.fm-v5-grid.list-view .fm-v5-price del {
  font-size: 12px !important;
  color: #8b95a1 !important;
}

.fm-v5-grid.list-view .fm-v5-actions {
  grid-column: 2 !important;
  grid-row: 1 / span 4 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 14px !important;
  max-width: none !important;
  margin: 0 !important;
}

.fm-v5-grid.list-view .fm-v5-actions a {
  min-width: 120px !important;
  min-height: 40px !important;
  padding: 0 18px !important;
  border-radius: 5px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

@media(max-width: 1200px) {
  .fm-v5-grid.list-view .fm-v5-card {
    grid-template-columns: 200px minmax(0, 1fr) !important;
    gap: 18px !important;
  }
  .fm-v5-grid.list-view .fm-v5-card-img {
    width: 200px !important;
    height: 116px !important;
  }
  .fm-v5-grid.list-view .fm-v5-card-body {
    grid-template-columns: minmax(0, 1fr) 230px !important;
  }
  .fm-v5-grid.list-view .fm-v5-actions a {
    min-width: 100px !important;
  }
}

@media(max-width: 900px) {
  .fm-v5-layout.list-mode,
  .fm-v5-layout {
    grid-template-columns: 1fr !important;
  }
  .fm-v5-grid.list-view .fm-v5-card {
    grid-template-columns: 1fr !important;
  }
  .fm-v5-grid.list-view .fm-v5-card-img {
    width: 100% !important;
    height: 200px !important;
  }
  .fm-v5-grid.list-view .fm-v5-card-body {
    grid-column: 1 !important;
    grid-row: 2 !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .fm-v5-grid.list-view .fm-v5-actions {
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }
}


/* Final fix: keep sidebar visible and align list-view rows cleanly on the right */
.fm-v5-layout.list-mode {
  grid-template-columns: 250px minmax(0, 1fr) !important;
  align-items: start;
}

.fm-v5-layout.list-mode .fm-v5-filter {
  display: block !important;
}

.fm-v5-layout.list-mode .fm-v5-content {
  min-width: 0;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e7ebf0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card {
  position: relative;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 154px;
  padding: 18px 22px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  overflow: hidden;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card:last-child {
  border-bottom: 0;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card:hover {
  transform: none;
  box-shadow: none;
  background: #fcfdff;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card::before {
  content: '♡';
  position: absolute;
  top: 16px;
  left: 14px;
  color: #8b95a1;
  font-size: 16px;
  line-height: 1;
  z-index: 3;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-img {
  grid-column: 1;
  width: 240px;
  height: 118px;
  min-height: 118px;
  border-radius: 4px;
  overflow: hidden;
  margin-left: 24px;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-img span {
  top: 10px;
  left: 10px;
  min-height: 26px;
  padding: 0 10px;
  font-size: 10px;
  border-radius: 4px;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-body {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'title actions'
    'category actions'
    'desc actions'
    'price actions';
  column-gap: 24px;
  row-gap: 6px;
  align-items: center;
  padding: 0;
  min-width: 0;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-body h2 {
  grid-area: title;
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  color: #10243a;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-body small {
  grid-area: category;
  display: block;
  margin: 0;
  color: #7b8794;
  font-size: 13px;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-body p {
  grid-area: desc;
  margin: 0;
  min-height: auto;
  max-width: 620px;
  color: #6b7785;
  font-size: 13px;
  line-height: 1.6;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-price {
  grid-area: price;
  margin: 2px 0 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-price b {
  color: #e66e11;
  font-size: 18px;
  font-weight: 900;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-price del {
  color: #8b95a1;
  font-size: 12px;
  font-weight: 700;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  align-self: center;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-actions a {
  min-width: 124px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .fm-v5-layout.list-mode {
    grid-template-columns: 220px minmax(0, 1fr) !important;
  }

  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
  }

  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-img {
    width: 210px;
    height: 108px;
  }

  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-body p {
    max-width: 440px;
  }
}

@media (max-width: 900px) {
  .fm-v5-layout.list-mode {
    grid-template-columns: 1fr !important;
  }

  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card::before {
    left: auto;
    right: 14px;
  }

  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-img {
    width: 100%;
    height: 180px;
    margin-left: 0;
  }

  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-body {
    grid-template-columns: 1fr;
    grid-template-areas:
      'title'
      'category'
      'desc'
      'price'
      'actions';
    row-gap: 8px;
  }

  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Hard override: list-view image height must match the product row height */
.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card {
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
  min-height: 170px !important;
  padding: 0 !important;
  position: relative;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card::before {
  content: '♡';
  position: absolute;
  top: 16px;
  left: 12px;
  color: #8b95a1;
  font-size: 16px;
  line-height: 1;
  z-index: 2;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-img {
  flex: 0 0 260px !important;
  width: 260px !important;
  height: auto !important;
  min-height: 170px !important;
  align-self: stretch !important;
  margin: 0 0 0 24px !important;
  border-radius: 0 !important;
  overflow: hidden;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-img span {
  top: 12px !important;
  left: 12px !important;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-body {
  flex: 1 1 auto !important;
  min-width: 0;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    'title actions'
    'category actions'
    'desc actions'
    'price actions' !important;
  column-gap: 24px !important;
  row-gap: 8px !important;
  align-items: center !important;
  padding: 18px 22px !important;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-body h2 {
  grid-area: title;
  margin: 0 !important;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-body small {
  grid-area: category;
  margin: 0 !important;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-body p {
  grid-area: desc;
  margin: 0 !important;
  max-width: 620px !important;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-price {
  grid-area: price;
  margin: 0 !important;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-actions {
  grid-area: actions;
  align-self: center !important;
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-actions a {
  min-width: 124px !important;
  min-height: 42px !important;
}

@media (max-width: 900px) {
  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card {
    display: block !important;
    min-height: auto !important;
  }

  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-img {
    width: 100% !important;
    min-height: 200px !important;
    margin-left: 0 !important;
  }

  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-body {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      'title'
      'category'
      'desc'
      'price'
      'actions' !important;
  }
}

/* Final strict list-view row height: image height equals article row height */
.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card {
  height: 188px !important;
  min-height: 188px !important;
  max-height: 188px !important;
  overflow: hidden !important;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-img {
  height: 188px !important;
  min-height: 188px !important;
  max-height: 188px !important;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-img img {
  height: 188px !important;
  min-height: 188px !important;
  max-height: 188px !important;
  object-fit: cover !important;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-body {
  height: 188px !important;
  min-height: 188px !important;
  max-height: 188px !important;
  overflow: hidden !important;
}

.fm-wheel-discount-banner {
  margin-bottom: 14px;
  padding: 13px 16px;
  border: 1px solid rgba(217, 107, 17, .28);
  border-radius: 8px;
  background: #fff7ed;
  color: #9a4b09;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fm-wheel-discount-banner strong {
  color: #d96b11;
  font-size: 15px;
  font-weight: 900;
}

.fm-wheel-discount-banner span {
  color: #5f3b1b;
  font-size: 13px;
}

.fm-wheel-save {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(217, 107, 17, .12);
  color: #d96b11;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

@media(max-width: 900px) {
  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card,
  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-body {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
  }

  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-img,
  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-img img {
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
  }

  .fm-wheel-discount-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Final list-view + spin discount correction */
.fm-v5-card-img [data-card-discount-badge][hidden],
.fm-v5-detail-badges [data-detail-top-discount][hidden],
.fm-v5-detail-price [data-detail-offer][hidden] {
  display: none !important;
}

.fm-v5-card.has-wheel-discount .fm-v5-card-img [data-card-discount-badge] {
  display: inline-flex !important;
}

/* In list view the article height is fixed. The image fills the same height and crops nicely. */
.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card {
  height: 170px !important;
  min-height: 170px !important;
  max-height: 170px !important;
  display: grid !important;
  grid-template-columns: 285px minmax(0, 1fr) 290px !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-bottom: 1px solid #edf1f5 !important;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card::before {
  content: '♡';
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 4;
  color: #8b95a1;
  font-size: 15px;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-img {
  grid-column: 1 !important;
  width: 100% !important;
  height: 170px !important;
  min-height: 170px !important;
  max-height: 170px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  align-self: stretch !important;
  overflow: hidden !important;
  display: block !important;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-body {
  grid-column: 2 / 4 !important;
  height: 170px !important;
  min-height: 170px !important;
  max-height: 170px !important;
  padding: 22px 24px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 270px !important;
  grid-template-areas:
    'title actions'
    'category actions'
    'desc actions'
    'price actions' !important;
  align-items: center !important;
  column-gap: 26px !important;
  row-gap: 6px !important;
  overflow: hidden !important;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-body h2,
.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-body small,
.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-body p,
.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-price {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-body h2 {
  grid-area: title !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-body small {
  grid-area: category !important;
  font-size: 12px !important;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-body p {
  grid-area: desc !important;
  min-height: 0 !important;
  max-width: 650px !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-price {
  grid-area: price !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-actions {
  grid-area: actions !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 14px !important;
  align-self: center !important;
}

.fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-actions a {
  min-width: 124px !important;
  min-height: 42px !important;
}

@media(max-width: 900px) {
  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card {
    height: auto !important;
    max-height: none !important;
    grid-template-columns: 1fr !important;
  }

  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-img {
    height: 210px !important;
    max-height: 210px !important;
  }

  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-body {
    grid-column: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      'title'
      'category'
      'desc'
      'price'
      'actions' !important;
  }

  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-actions {
    justify-content: flex-start !important;
  }
}

/* Mobile polish for product listing and detail pages */
@media (max-width: 900px) {
  .fm-v5-layout,
  .fm-v5-layout.grid-mode,
  .fm-v5-layout.list-mode {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .fm-v5-filter {
    min-height: auto;
    padding: 16px;
    border-radius: 10px;
  }

  .fm-v5-toolbar {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .fm-v5-toolbar label {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .fm-v5-toolbar select,
  .fm-v5-search {
    width: 100%;
  }

  .fm-v5-view {
    justify-content: flex-start;
  }

  .fm-v5-grid,
  .fm-v5-grid.grid-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fm-v5-hero {
    min-height: auto;
  }

  .fm-v5-hero-inner {
    padding: 42px 0 34px;
  }

  .fm-v5-hero-copy h1 {
    font-size: 30px;
    line-height: 1.15;
  }

  .fm-v5-hero-copy p {
    font-size: 14px;
  }

  .fm-v5-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .fm-v5-body {
    padding-top: 18px;
  }

  .fm-v5-grid,
  .fm-v5-grid.grid-view {
    grid-template-columns: 1fr;
  }

  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card {
    display: block !important;
    min-height: auto !important;
  }

  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-img {
    width: 100% !important;
    height: 210px !important;
    min-height: 210px !important;
    margin: 0 !important;
  }

  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-card-body {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      'title'
      'category'
      'desc'
      'price'
      'actions' !important;
    padding: 16px !important;
  }

  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-actions,
  .fm-v5-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 10px !important;
  }

  .fm-v5-actions a,
  .fm-v5-layout.list-mode .fm-v5-grid.list-view .fm-v5-actions a {
    min-width: 0 !important;
    width: 100%;
  }

  .fm-v5-feature-strip .container {
    grid-template-columns: 1fr;
  }

  .fm-v5-crafted .container {
    grid-template-columns: 1fr;
  }

  .fm-v5-detail-grid,
  .fm-v5-detail-info-grid {
    grid-template-columns: 1fr;
  }

  .fm-v5-main-image {
    height: 320px;
  }

  .fm-v5-detail-panel {
    padding: 20px;
  }

  .fm-v5-detail-panel h1 {
    font-size: 28px;
  }

  .fm-v5-detail-price strong {
    font-size: 26px;
  }

  .fm-v5-mini-features,
  .fm-v5-related-grid,
  .fm-v5-thumb-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fm-product-zoom-box {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 32px);
  }
}

/* =========================================================
   Cross browser + mobile full screen product gallery fix
   This block keeps the gallery same on Chrome, Edge, Firefox,
   Safari, Opera and Brave. It also fixes the mobile popup view.
========================================================= */
html.fm-gallery-open,
body.fm-gallery-open {
  overflow: hidden !important;
  height: 100%;
  overscroll-behavior: none;
}

.fm-product-detail-v5 *,
.fm-product-detail-v5 *::before,
.fm-product-detail-v5 *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.fm-product-detail-v5 button,
.fm-product-detail-v5 input,
.fm-product-detail-v5 select,
.fm-product-detail-v5 textarea {
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.fm-product-detail-v5 img {
  display: block;
  max-width: 100%;
}

.fm-product-zoom-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: none;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  color: #fff;
  background: #020812;
}

.fm-product-zoom-modal.open {
  display: block !important;
}

.fm-product-zoom-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 10%, rgba(255,139,26,.08), transparent 34%),
    rgba(0,0,0,.94) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.fm-product-zoom-box {
  position: relative !important;
  inset: auto !important;
  z-index: 2;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: transparent;
  place-items: stretch !important;
}

.fm-product-zoom-topbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 4px;
}

.fm-product-zoom-topbar > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fm-product-zoom-topbar span {
  color: #ff8b1a;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .03em;
}

.fm-product-zoom-topbar strong {
  max-width: 72vw;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: clamp(16px, 2.4vw, 22px);
  color: #fff;
}

.fm-product-zoom-close {
  position: static !important;
  flex: 0 0 auto;
  width: 44px !important;
  height: 44px !important;
  border: 0 !important;
  border-radius: 50% !important;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  font-size: 32px !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.fm-product-zoom-close:hover,
.fm-product-zoom-close:focus-visible {
  background: rgba(255,139,26,.92) !important;
  transform: scale(1.04);
  outline: none;
}

.fm-product-zoom-stage {
  position: relative;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.08);
  touch-action: pan-y;
}

.fm-product-zoom-stage img,
.fm-product-zoom-box > img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .22s ease;
  transform-origin: center center;
}

.fm-product-zoom-stage img.is-zoomed {
  cursor: zoom-out;
}

.fm-product-zoom-nav {
  position: absolute !important;
  top: 50% !important;
  z-index: 5;
  transform: translateY(-50%) !important;
  width: 50px !important;
  height: 50px !important;
  border: 0 !important;
  border-radius: 50% !important;
  display: grid;
  place-items: center;
  background: rgba(4,14,26,.72) !important;
  color: #ff8b1a !important;
  font-size: 42px !important;
  line-height: 1 !important;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(0,0,0,.36);
  transition: background .2s ease, transform .2s ease;
}

.fm-product-zoom-nav:hover,
.fm-product-zoom-nav:focus-visible {
  background: rgba(255,139,26,.94) !important;
  color: #fff !important;
  outline: none;
}

.fm-product-zoom-nav.left { left: max(16px, env(safe-area-inset-left)) !important; }
.fm-product-zoom-nav.right { right: max(16px, env(safe-area-inset-right)) !important; }

.fm-product-zoom-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

.fm-product-zoom-actions button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.fm-product-zoom-actions button:hover,
.fm-product-zoom-actions button:focus-visible {
  background: #ff8b1a;
  border-color: #ff8b1a;
  color: #fff;
  outline: none;
}

.fm-product-zoom-thumbs {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 6px 2px 2px;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #ff8b1a rgba(255,255,255,.08);
  -webkit-overflow-scrolling: touch;
}

.fm-product-zoom-thumbs::-webkit-scrollbar {
  height: 6px;
}

.fm-product-zoom-thumbs::-webkit-scrollbar-thumb {
  background: #ff8b1a;
  border-radius: 999px;
}

.fm-product-zoom-thumbs button {
  flex: 0 0 76px;
  width: 76px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  cursor: pointer;
  opacity: .72;
}

.fm-product-zoom-thumbs button.active,
.fm-product-zoom-thumbs button:hover,
.fm-product-zoom-thumbs button:focus-visible {
  border-color: #ff8b1a;
  opacity: 1;
  outline: none;
}

.fm-product-zoom-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fm-product-zoom-caption {
  display: none !important;
}

/* Product detail page responsive fixes */
.fm-v5-thumb-row {
  overflow-x: auto;
  grid-template-columns: none !important;
  display: flex !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.fm-v5-thumb-row button {
  flex: 0 0 96px;
}

@media (max-width: 1024px) {
  .fm-v5-detail-grid,
  .fm-v5-detail-info-grid {
    grid-template-columns: 1fr !important;
  }
  .fm-v5-detail-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .fm-product-detail-v5 .container {
    width: 100% !important;
    padding-left: 14px;
    padding-right: 14px;
  }

  .fm-v5-detail-wrap {
    padding-top: 16px;
  }

  .fm-v5-detail-breadcrumb {
    font-size: 12px;
    gap: 7px;
    margin-bottom: 14px;
  }

  .fm-v5-detail-grid {
    gap: 18px;
  }

  .fm-v5-main-image {
    height: 58vh !important;
    min-height: 360px;
    border-radius: 14px;
  }

  .fm-v5-main-image img {
    object-fit: contain !important;
    background: #061728;
  }

  .fm-v5-gallery-arrow {
    width: 42px;
    height: 42px;
    font-size: 32px;
  }

  .fm-v5-thumb-row {
    gap: 9px;
    padding-bottom: 4px;
  }

  .fm-v5-thumb-row button {
    flex-basis: 76px;
    height: 62px !important;
    border-radius: 9px;
  }

  .fm-v5-detail-panel {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .fm-v5-detail-panel h1 {
    font-size: 28px;
  }

  .fm-v5-detail-price strong {
    font-size: 28px;
  }

  .fm-v5-mini-features {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .fm-v5-tabs {
    overflow-x: auto;
    gap: 14px;
    white-space: nowrap;
  }

  .fm-v5-specs-card dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .fm-v5-related-grid {
    grid-template-columns: 1fr !important;
  }

  .fm-product-zoom-box {
    gap: 8px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .fm-product-zoom-topbar {
    min-height: 46px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .fm-product-zoom-topbar strong {
    max-width: 68vw;
    font-size: 16px;
  }

  .fm-product-zoom-stage {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    background: #020812;
  }

  .fm-product-zoom-nav {
    width: 42px !important;
    height: 42px !important;
    font-size: 34px !important;
    background: rgba(4,14,26,.54) !important;
  }

  .fm-product-zoom-nav.left { left: 8px !important; }
  .fm-product-zoom-nav.right { right: 8px !important; }

  .fm-product-zoom-actions {
    gap: 18px;
  }

  .fm-product-zoom-actions button {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .fm-product-zoom-thumbs {
    width: 100%;
    gap: 7px;
  }

  .fm-product-zoom-thumbs button {
    flex-basis: 58px;
    width: 58px;
    height: 46px;
    border-radius: 8px;
  }
}

@media (max-width: 390px) {
  .fm-v5-main-image {
    min-height: 320px;
  }
  .fm-product-zoom-topbar strong {
    max-width: 62vw;
  }
  .fm-product-zoom-actions {
    gap: 12px;
  }
}

@supports not (height: 100dvh) {
  .fm-product-zoom-modal,
  .fm-product-zoom-box {
    height: 100vh;
  }
}

/* Final responsive + AI chat polish added for v13. */
.ai-bubble {
  white-space: pre-line;
  word-break: break-word;
}

.ai-chat-widget:not(.open) .ai-panel {
  pointer-events: none;
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  img,
  video,
  iframe {
    max-width: 100%;
    height: auto;
  }

  .ai-chat-widget {
    right: 12px;
    bottom: 84px;
    left: auto;
  }

  .ai-panel {
    right: 0;
    bottom: 68px;
    width: calc(100vw - 24px);
    height: min(540px, calc(100dvh - 104px));
    max-height: calc(100dvh - 104px);
    border-radius: 22px;
  }

  .ai-head {
    padding: 14px 16px;
  }

  .ai-head strong {
    font-size: 16px;
  }

  .ai-head small {
    font-size: 11px;
  }

  .ai-avatar {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .ai-messages {
    padding: 14px;
    gap: 10px;
  }

  .ai-bubble {
    max-width: 92%;
    font-size: 13px;
    line-height: 1.55;
  }

  .ai-form {
    padding: 12px 14px 14px;
  }

  .ai-form input {
    min-width: 0;
  }
}

@media (max-width: 380px), (max-height: 690px) {
  .ai-chat-widget {
    bottom: 78px;
  }

  .ai-panel {
    bottom: 62px;
    height: min(500px, calc(100dvh - 84px));
    max-height: calc(100dvh - 84px);
  }

  .ai-head {
    padding: 12px 14px;
  }

  .ai-avatar {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .ai-messages {
    padding: 12px;
  }

  .ai-quick {
    padding: 0 12px 10px;
  }
}

/* Premium nine-step process page: one complete process row per step. */
.fm-process-premium {
  padding-top: 86px;
  background: #fbfaf7;
  color: #102f46;
}

.fm-process-premium .fm-process-hero {
  min-height: 390px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.fm-process-premium .fm-process-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fm-process-premium .fm-process-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,22,34,.90), rgba(5,22,34,.55), rgba(5,22,34,.34));
}

.fm-process-premium .fm-process-hero-inner {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 78px 0;
}

.fm-process-premium .fm-process-hero h1 {
  max-width: 850px;
  margin: 14px 0 18px;
  color: #fff;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -.025em;
}

.fm-process-premium .fm-process-hero p {
  max-width: 760px;
  margin: 0;
  color: #f7f9fa;
  font-size: 17px;
  line-height: 1.75;
}

.fm-process-premium .fm-process-steps-section {
  padding: 72px 0 84px;
  background: #fff;
}

.fm-process-premium .fm-process-heading {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.fm-process-premium .fm-process-heading h2 {
  margin: 10px 0;
  color: #102f46;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
}

.fm-process-premium .fm-process-heading > p {
  max-width: 760px;
  margin: 0 auto;
  color: #63717c;
  line-height: 1.75;
  font-size: 15px;
}

.fm-process-premium .fm-process-rule {
  display: block;
  width: 38px;
  height: 3px;
  margin: 14px auto 20px;
  background: #f4b51b;
}

.fm-process-premium .fm-process-vertical-list {
  width: min(100%, 1060px);
  margin: 48px auto 0;
  display: grid;
  gap: 18px;
}

.fm-process-premium .fm-process-row {
  position: relative;
  display: grid;
  grid-template-columns: 43% 72px 1fr;
  align-items: center;
  min-height: 178px;
  padding: 14px 18px 14px 14px;
  border: 1px solid #e8e0d4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16,47,70,.055);
}

.fm-process-premium .fm-process-row.reverse {
  grid-template-columns: 43% 72px 1fr;
}

.fm-process-premium .fm-process-row-image {
  height: 150px;
  overflow: hidden;
  border-radius: 12px;
  background: #e9e2d8;
}

.fm-process-premium .fm-process-row-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fm-process-premium .fm-process-row-number {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #e8d6b2;
  border-radius: 50%;
  background: #fff;
  color: #c58b14;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 0 0 8px #fff;
}

.fm-process-premium .fm-process-row-content {
  padding: 14px 26px 14px 12px;
}

.fm-process-premium .fm-process-row-content > span:first-child {
  display: block;
  margin-bottom: 6px;
  color: #b77b0d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.fm-process-premium .fm-process-row-content h3 {
  margin: 0;
  color: #102f46;
  font-size: 25px;
  line-height: 1.2;
}

.fm-process-premium .fm-process-row-content .fm-process-card-line {
  display: block;
  width: 32px;
  height: 2px;
  margin: 11px 0 13px;
  background: #f4b51b;
}

.fm-process-premium .fm-process-row-content p {
  max-width: 620px;
  margin: 0;
  color: #5e6d79;
  font-size: 14px;
  line-height: 1.75;
}

.fm-process-premium .fm-process-why {
  padding: 78px 0;
  background: #f5f0e7;
}

.fm-process-premium .fm-process-why-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 58px;
  align-items: center;
}

.fm-process-premium .fm-process-why-copy h2 {
  margin: 10px 0;
  color: #102f46;
  font-size: clamp(31px, 3.6vw, 45px);
  line-height: 1.12;
}

.fm-process-premium .fm-process-why-copy > p {
  max-width: 470px;
  color: #5f6e79;
  font-size: 14px;
  line-height: 1.8;
}

.fm-process-premium .fm-process-benefits {
  display: grid;
  gap: 13px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.fm-process-premium .fm-process-benefits li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #233f53;
  font-size: 13px;
  font-weight: 700;
}

.fm-process-premium .fm-process-benefits li span {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4b51b;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.fm-process-premium .fm-process-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.fm-process-premium .fm-process-gallery figure {
  height: 300px;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
}

.fm-process-premium .fm-process-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.fm-process-premium .fm-process-stats {
  padding: 30px 0;
  background: #0d3049;
  color: #fff;
}

.fm-process-premium .fm-process-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.fm-process-premium .fm-process-stat {
  min-height: 76px;
  padding: 8px 22px;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  border-right: 1px solid rgba(255,255,255,.2);
}

.fm-process-premium .fm-process-stat:last-child { border-right: 0; }
.fm-process-premium .fm-process-stat-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #f4b51b;
  border-radius: 50%;
  color: #f4b51b;
  font-size: 15px;
}
.fm-process-premium .fm-process-stat strong { color: #fff; font-size: 27px; line-height: 1; }
.fm-process-premium .fm-process-stat small { color: #e6edf2; font-size: 11px; }

@media (max-width: 900px) {
  .fm-process-premium .fm-process-row,
  .fm-process-premium .fm-process-row.reverse {
    grid-template-columns: 40% 62px 1fr;
  }
  .fm-process-premium .fm-process-row-content h3 { font-size: 22px; }
  .fm-process-premium .fm-process-why-grid { grid-template-columns: 1fr; gap: 38px; }
  .fm-process-premium .fm-process-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .fm-process-premium .fm-process-stat:nth-child(3) { border-right: 0; }
}

@media (max-width: 680px) {
  .fm-process-premium { padding-top: 80px; }
  .fm-process-premium .fm-process-hero { min-height: 430px; }
  .fm-process-premium .fm-process-hero-inner { padding: 60px 0; }
  .fm-process-premium .fm-process-hero h1 { font-size: 40px; }
  .fm-process-premium .fm-process-steps-section { padding: 58px 0 68px; }
  .fm-process-premium .fm-process-vertical-list { gap: 14px; margin-top: 40px; }
  .fm-process-premium .fm-process-row,
  .fm-process-premium .fm-process-row.reverse {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px;
  }
  .fm-process-premium .fm-process-row-image { height: 205px; }
  .fm-process-premium .fm-process-row-number {
    width: 54px;
    height: 54px;
    margin: -27px 0 0 18px;
    box-shadow: 0 0 0 6px #fff;
  }
  .fm-process-premium .fm-process-row-content { padding: 18px 8px 12px; }
  .fm-process-premium .fm-process-row-content h3 { font-size: 23px; }
  .fm-process-premium .fm-process-gallery { grid-template-columns: 1fr; }
  .fm-process-premium .fm-process-gallery figure { height: 260px; }
  .fm-process-premium .fm-process-stats-grid { grid-template-columns: 1fr 1fr; }
  .fm-process-premium .fm-process-stat { border-right: 1px solid rgba(255,255,255,.2) !important; }
  .fm-process-premium .fm-process-stat:nth-child(2n) { border-right: 0 !important; }
  .fm-process-premium .fm-process-stat strong { font-size: 22px; }
  .fm-process-premium .fm-process-stat { padding: 8px 12px; }
}


/* FM Systems CMS public page support */
.fm-cms-page,.fm-blog-page{background:#fbfaf7;color:#102f46}.fm-cms-hero,.fm-blog-hero{position:relative;min-height:430px;display:flex;align-items:center;overflow:hidden}.fm-cms-hero>img,.fm-blog-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.fm-cms-hero-overlay,.fm-blog-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,31,48,.84),rgba(8,31,48,.30))}.fm-cms-hero-content,.fm-blog-hero-content{position:relative;z-index:1;width:min(1180px,calc(100% - 40px));margin:auto;color:#fff;padding:80px 0}.fm-cms-hero-content span,.fm-blog-hero-content .section-kicker{color:#f4b51b;letter-spacing:.15em;font-weight:800;text-transform:uppercase}.fm-cms-hero-content h1,.fm-blog-hero-content h1{font-size:clamp(40px,5vw,68px);line-height:1.06;max-width:900px;margin:12px 0 18px;color:#fff}.fm-cms-hero-content p,.fm-blog-hero-content p{max-width:760px;font-size:18px;line-height:1.75;margin:0;color:#f7fafc}.fm-cms-section{padding:80px 0}.fm-cms-soft{background:#f4f0e8}.fm-cms-two-col,.fm-cms-feature-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:55px;align-items:center}.fm-cms-accent-card{background:#0d3049;color:#fff;border-radius:18px;padding:40px;box-shadow:0 18px 45px rgba(13,48,73,.12)}.fm-cms-accent-card strong{font-size:26px;color:#f4b51b}.fm-cms-accent-card p{line-height:1.8;margin:10px 0 0}.fm-cms-card-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:38px}.fm-cms-card{background:#fff;border:1px solid #e5dfd4;border-radius:16px;overflow:hidden;box-shadow:0 10px 28px rgba(16,47,70,.06)}.fm-cms-card img{width:100%;height:190px;object-fit:cover}.fm-cms-card>div{padding:23px}.fm-cms-card span{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#b77b0d;font-weight:800}.fm-cms-card h3{margin:8px 0;font-size:20px}.fm-cms-card p{color:#596979;line-height:1.7;margin:0}.fm-cms-card.compact{padding:25px}.fm-cms-card.compact>div{padding:0}.fm-cms-principles{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:35px}.fm-cms-principles>div{padding:27px;border-top:3px solid #f4b51b;background:#fff;border-radius:12px}.fm-cms-principles b{font-size:20px}.fm-cms-principles p{color:#596979;line-height:1.7}.fm-cms-feature-grid>div:first-child{display:grid;gap:14px}.fm-cms-feature-grid img{width:100%;max-height:430px;object-fit:cover;border-radius:16px}.fm-cms-closing{text-align:center;max-width:850px}.fm-blog-intro{padding:70px 0 28px}.fm-blog-intro-inner{display:grid;grid-template-columns:1.1fr .9fr;gap:60px;align-items:end}.fm-blog-intro-inner>p{margin:0;color:#596979;line-height:1.8;font-size:17px}.fm-blog-categories{display:flex;gap:10px;flex-wrap:wrap;margin-top:30px}.fm-blog-category{border:1px solid #ddd7cc;border-radius:999px;padding:9px 15px;background:#fff;color:#405365;font-size:13px;font-weight:800}.fm-blog-category.active{background:#0d3049;border-color:#0d3049;color:#fff}.fm-blog-featured{padding:28px 0 70px}.fm-blog-feature-card{display:grid;grid-template-columns:1.15fr .85fr;background:#fff;border:1px solid #e5dfd4;border-radius:20px;overflow:hidden;box-shadow:0 18px 45px rgba(16,47,70,.08)}.fm-blog-feature-image{min-height:390px;background:#e8e1d6}.fm-blog-feature-image img{width:100%;height:100%;object-fit:cover}.fm-blog-feature-copy{padding:50px;display:flex;flex-direction:column;justify-content:center}.fm-blog-feature-copy h2{font-size:clamp(30px,3.2vw,48px);line-height:1.12;margin:14px 0;color:#102f46}.fm-blog-feature-copy p,.fm-blog-card-body p{color:#596979;line-height:1.75}.fm-blog-read{display:inline-flex;gap:9px;width:max-content;color:#0d3049;text-decoration:none;font-weight:900;border-bottom:2px solid #f4b51b;padding-bottom:5px}.fm-blog-library{padding:20px 0 90px;background:#f4f0e8}.fm-blog-library-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:30px}.fm-blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.fm-blog-card{background:#fff;border:1px solid #e3ddd2;border-radius:16px;overflow:hidden;box-shadow:0 10px 28px rgba(16,47,70,.06)}.fm-blog-card-image{height:215px}.fm-blog-card-image img{width:100%;height:100%;object-fit:cover}.fm-blog-card-body{padding:24px}.fm-blog-card-body h3{font-size:21px;line-height:1.3;margin:9px 0}.fm-blog-detail{background:#fbfaf7;padding:70px 0 90px}.fm-blog-article{max-width:930px}.fm-blog-back{color:#0d3049;font-weight:900;text-decoration:none}.fm-blog-article-head{padding:45px 0 20px}.fm-blog-article-head h1{font-size:clamp(40px,5vw,68px);line-height:1.06;margin:14px 0}.fm-blog-excerpt{font-size:19px;color:#596979;line-height:1.8}.fm-blog-detail-image{display:block;width:100%;height:500px;object-fit:cover;border-radius:20px;margin:25px 0 45px}.fm-blog-content{font-size:18px;line-height:1.95;color:#334b5d;max-width:820px;margin:auto}.fm-blog-empty{max-width:800px;margin:auto;text-align:center;padding:90px 20px}.fm-blog-empty p{color:#596979;line-height:1.8}
@media(max-width:900px){.fm-cms-card-grid{grid-template-columns:repeat(2,1fr)}.fm-cms-two-col,.fm-cms-feature-grid,.fm-blog-intro-inner,.fm-blog-feature-card{grid-template-columns:1fr}.fm-cms-principles,.fm-blog-grid{grid-template-columns:1fr 1fr}.fm-blog-feature-image{min-height:300px}}
@media(max-width:600px){.fm-cms-hero,.fm-blog-hero{min-height:420px}.fm-cms-hero-content,.fm-blog-hero-content{padding:55px 0}.fm-cms-section{padding:60px 0}.fm-cms-card-grid,.fm-cms-principles,.fm-blog-grid{grid-template-columns:1fr}.fm-blog-intro{padding:55px 0 20px}.fm-blog-featured{padding:20px 0 55px}.fm-blog-feature-copy{padding:30px 24px}.fm-blog-library{padding:15px 0 65px}.fm-blog-detail{padding:55px 0 70px}.fm-blog-detail-image{height:300px}}

/* About page - project-style layout */
.fm-about-page{background:#fbfaf7;color:#102f46}
.fm-about-hero{position:relative;min-height:300px;display:flex;align-items:center;overflow:hidden}
.fm-about-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.fm-about-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,25,40,.72),rgba(7,25,40,.32))}
.fm-about-hero-content{position:relative;z-index:1;text-align:center;color:#fff;padding:72px 20px}
.fm-about-hero-content h1{font-size:clamp(38px,5vw,56px);line-height:1.1;margin:0 0 10px;color:#fff}
.fm-about-breadcrumb{display:flex;justify-content:center;align-items:center;gap:9px;font-size:13px;font-weight:700}.fm-about-breadcrumb a{color:#fff;text-decoration:none}.fm-about-breadcrumb span{color:rgba(255,255,255,.8)}
.fm-about-section{padding:76px 0}
.fm-about-intro{background:#fff}
.fm-about-intro-grid{display:grid;grid-template-columns:1fr .92fr;gap:58px;align-items:center}
.fm-about-copy{max-width:560px}.fm-about-kicker{display:block;color:#c8880b;font-size:11px;letter-spacing:.13em;text-transform:uppercase;font-weight:900;margin-bottom:12px}.fm-about-copy h2,.fm-about-philosophy-copy h2{font-size:clamp(28px,3vw,40px);line-height:1.18;margin:0;color:#102f46}.fm-about-rule{display:block;width:36px;height:2px;background:#f4b51b;margin:17px 0 20px}.fm-about-copy p,.fm-about-philosophy-copy>p{font-size:14px;line-height:1.85;color:#4e6272;margin:0 0 15px}
.fm-about-image-wrap{height:390px;border-radius:4px;overflow:hidden}.fm-about-image-wrap img,.fm-about-philosophy-image img{width:100%;height:100%;object-fit:cover;display:block}
.fm-about-services{background:#f6f1e8;padding:28px 0}.fm-about-service-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:0}.fm-about-service{padding:24px 14px;text-align:center;border-right:1px solid #e4dccf}.fm-about-service:last-child{border-right:0}.fm-about-service-icon{width:52px;height:52px;margin:0 auto 12px;border:1px solid #c5ccd0;border-radius:10px;display:grid;place-items:center;color:#102f46;position:relative}.fm-about-service-icon:before{content:"";position:absolute;inset:7px;border:1px solid #c5ccd0;border-radius:7px}.fm-about-service-icon span{position:relative;font-size:12px;font-weight:900;color:#c8880b}.fm-about-service h3{font-size:13px;line-height:1.25;margin:0 0 7px;color:#102f46}.fm-about-service p{font-size:11px;line-height:1.45;color:#596979;margin:0}
.fm-about-philosophy{background:#fff}.fm-about-philosophy-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:58px;align-items:center}.fm-about-philosophy-image{height:360px;border-radius:4px;overflow:hidden}.fm-about-philosophy-copy{max-width:620px}.fm-about-principles{display:grid;gap:13px;margin-top:22px}.fm-about-principle{display:flex;gap:13px;align-items:flex-start}.fm-about-principle>span{width:28px;height:28px;flex:0 0 28px;border-radius:50%;display:grid;place-items:center;background:#102f46;color:#f4b51b;font-size:10px;font-weight:900}.fm-about-principle strong{font-size:14px;color:#102f46}.fm-about-principle p{margin:4px 0 0;color:#596979;font-size:12px;line-height:1.55}
@media(max-width:1000px){.fm-about-service-grid{grid-template-columns:repeat(3,1fr)}.fm-about-service:nth-child(3){border-right:0}.fm-about-intro-grid,.fm-about-philosophy-grid{grid-template-columns:1fr 1fr;gap:35px}}
@media(max-width:700px){.fm-about-hero{min-height:260px}.fm-about-hero-content{padding:58px 20px}.fm-about-section{padding:58px 0}.fm-about-intro-grid,.fm-about-philosophy-grid{grid-template-columns:1fr}.fm-about-image-wrap,.fm-about-philosophy-image{height:300px}.fm-about-service-grid{grid-template-columns:repeat(2,1fr)}.fm-about-service:nth-child(3){border-right:1px solid #e4dccf}.fm-about-service:nth-child(even){border-right:0}}


/* =========================================================
   About / Factory / Blog page routing presentation
   Scoped to the three company-content pages only.
   ========================================================= */
.fm-company-page,
.fm-blog-page { padding-top: 86px; }

.fm-company-hero,
.fm-blog-hero { position: relative; min-height: 430px; overflow: hidden; display: flex; align-items: center; }
.fm-company-hero > img,
.fm-blog-hero > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.fm-company-hero-overlay,
.fm-blog-hero-overlay { position:absolute; inset:0; background:linear-gradient(90deg,rgba(7,27,43,.88),rgba(7,27,43,.45),rgba(7,27,43,.28)); }
.fm-company-hero-content,
.fm-blog-hero-content { position:relative; z-index:1; color:#fff; padding-top:55px; padding-bottom:55px; }
.fm-company-hero-content > span,
.fm-blog-hero-content > span { display:block; color:#f2a515; font-weight:800; letter-spacing:2px; text-transform:uppercase; margin-bottom:12px; }
.fm-company-hero-content h1,
.fm-blog-hero-content h1 { max-width:780px; color:#fff; font-size:clamp(40px,5vw,68px); line-height:1.05; margin:0 0 18px; }
.fm-company-hero-content p,
.fm-blog-hero-content p { max-width:700px; color:rgba(255,255,255,.88); font-size:18px; line-height:1.7; margin:0; }

.fm-company-intro-grid,
.fm-company-closing-grid { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.fm-company-image { overflow:hidden; border-radius:18px; }
.fm-company-image img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; }
.fm-company-heading { text-align:center; max-width:760px; margin:0 auto 40px; }
.fm-factory-cards { background:#f7f1e8; }
.fm-factory-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.fm-factory-card { background:#fff; border:1px solid rgba(15,52,79,.08); border-radius:18px; overflow:hidden; box-shadow:0 12px 32px rgba(15,52,79,.07); }
.fm-factory-card-image img { width:100%; aspect-ratio:16/10; object-fit:cover; display:block; }
.fm-factory-card-body { padding:24px; }
.fm-factory-card-body > span { color:#d9821f; font-weight:800; letter-spacing:1px; }
.fm-factory-card-body h3 { margin:8px 0 10px; color:#0f344f; }
.fm-factory-card-body p { margin:0; color:#64748b; line-height:1.7; }
.fm-company-closing { background:#fffaf3; }
.fm-company-closing-grid .btn { margin-top:22px; }

.fm-blog-heading { text-align:center; max-width:850px; margin:0 auto; }
.fm-blog-heading-left { text-align:left; margin:0 0 28px; }
.fm-blog-featured { padding-bottom:80px; }
.fm-blog-featured-card { display:grid; grid-template-columns:1.15fr .85fr; background:#f7f1e8; border-radius:22px; overflow:hidden; }
.fm-blog-featured-image img { width:100%; height:100%; min-height:420px; object-fit:cover; display:block; }
.fm-blog-featured-copy { padding:52px; align-self:center; }
.fm-blog-category { display:inline-block; color:#d9821f; font-size:12px; font-weight:800; letter-spacing:1.5px; text-transform:uppercase; margin-bottom:12px; }
.fm-blog-featured-copy h2 { color:#0f344f; font-size:clamp(30px,4vw,46px); line-height:1.1; margin:0 0 18px; }
.fm-blog-featured-copy p { color:#64748b; line-height:1.8; margin:0; }
.fm-blog-featured-copy .btn { margin-top:24px; }
.fm-blog-latest { background:#fff; }
.fm-blog-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.fm-blog-card { border:1px solid rgba(15,52,79,.09); border-radius:18px; overflow:hidden; background:#fff; box-shadow:0 10px 28px rgba(15,52,79,.06); transition:transform .2s ease,box-shadow .2s ease; }
.fm-blog-card:hover { transform:translateY(-4px); box-shadow:0 18px 38px rgba(15,52,79,.11); }
.fm-blog-card-image img { width:100%; aspect-ratio:16/10; object-fit:cover; display:block; }
.fm-blog-card-body { padding:22px; }
.fm-blog-meta { display:flex; justify-content:space-between; gap:12px; color:#8a94a2; font-size:12px; margin-bottom:12px; }
.fm-blog-meta span { color:#d9821f; font-weight:800; text-transform:uppercase; letter-spacing:1px; }
.fm-blog-card h3 { color:#0f344f; margin:0 0 10px; font-size:22px; line-height:1.25; }
.fm-blog-card p { color:#64748b; line-height:1.65; margin:0 0 18px; }
.fm-blog-card a { color:#0f344f; font-weight:800; }
.fm-empty-state { text-align:center; padding:80px 0; }

@media (max-width: 900px) {
  .fm-company-intro-grid,
  .fm-company-closing-grid,
  .fm-blog-featured-card { grid-template-columns:1fr; }
  .fm-factory-grid,
  .fm-blog-grid { grid-template-columns:repeat(2,1fr); }
  .fm-blog-featured-copy { padding:32px; }
}
@media (max-width: 640px) {
  .fm-company-page,
  .fm-blog-page { padding-top:78px; }
  .fm-company-hero,
  .fm-blog-hero { min-height:360px; }
  .fm-factory-grid,
  .fm-blog-grid { grid-template-columns:1fr; }
  .fm-company-hero-content h1,
  .fm-blog-hero-content h1 { font-size:40px; }
}

/* Factory page rebuilt from the supplied factory-page HTML reference. */
.fm-factory-page { background:#fbeee0; color:#1b2a3d; padding-top:86px; }
/* Keep Factory aligned with the same wide content line used by the rest of the website. */
.fm-factory-page .container { width:min(96%, var(--wide-container)); max-width:var(--wide-container); }
.fm-factory-hero { position:relative; width:100%; max-width:none; min-height:560px; margin:0; overflow:hidden; border-radius:0; display:flex; align-items:center; }
.fm-factory-hero > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.fm-factory-hero-overlay { position:absolute; inset:0; background:linear-gradient(115deg,rgba(11,27,43,.94) 30%,rgba(11,27,43,.55) 100%); }
.fm-factory-hero-inner { position:relative; z-index:1; padding:76px 60px 70px; color:#fff; }
.fm-factory-pill { display:inline-block; padding:8px 18px; border:1px solid rgba(255,255,255,.2); border-radius:999px; background:rgba(255,255,255,.1); color:#fff; font-size:13px; font-weight:600; margin-bottom:20px; }
.fm-factory-hero h1 { max-width:720px; margin:0 0 18px; color:#fff; font-size:clamp(38px,5vw,58px); line-height:1.08; font-weight:800; }
.fm-factory-hero p { max-width:650px; margin:0 0 28px; color:#cfdae4; font-size:16px; line-height:1.75; }
.fm-factory-hero-actions { display:flex; gap:14px; flex-wrap:wrap; }
.fm-factory-btn { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:12px 24px; border-radius:999px; font-weight:700; font-size:14px; transition:transform .15s ease,opacity .15s ease; }
.fm-factory-btn:hover { transform:translateY(-1px); opacity:.94; }
.fm-factory-btn-orange { background:#e08d2c; color:#0b1b2b; }
.fm-factory-btn-light { border:1.5px solid rgba(255,255,255,.5); color:#fff; }
.fm-factory-stats { position:relative; z-index:3; display:grid; grid-template-columns:repeat(4,1fr); background:#fff; border-radius:24px; overflow:hidden; box-shadow:0 8px 28px rgba(11,27,43,.08); margin-top:-40px; }
.fm-factory-stat { text-align:center; padding:30px 20px; border-right:1px solid #e7d9c4; }
.fm-factory-stat:last-child { border-right:0; }
.fm-factory-stat .num { color:#b96f1c; font-size:28px; font-weight:800; line-height:1.15; }
.fm-factory-stat .lbl { margin-top:5px; color:#5a6b7d; font-size:13px; }
.fm-factory-section { padding:76px 0; }
.fm-factory-section-tight { padding-top:0; }
.fm-factory-section-head { max-width:720px; margin-bottom:38px; }
.fm-factory-section-head .eyebrow, .fm-factory-feature .eyebrow, .fm-factory-quality .eyebrow { display:inline-block; margin-bottom:10px; color:#b96f1c; font-size:12px; font-weight:800; letter-spacing:1.5px; }
.fm-factory-section-head h2, .fm-factory-feature h2, .fm-factory-quality h2 { margin:0; color:#0b1b2b; font-size:clamp(28px,3.2vw,38px); line-height:1.15; font-weight:700; }
.fm-factory-section-head p, .fm-factory-feature p, .fm-factory-quality p { margin:12px 0 0; color:#5a6b7d; font-size:15px; line-height:1.75; }
.fm-factory-gallery { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.fm-factory-photo { position:relative; min-height:220px; overflow:hidden; border-radius:14px; background:#f7e7d3; border:1px solid #e7d9c4; }
.fm-factory-photo img { width:100%; height:220px; object-fit:cover; }
.fm-factory-photo span { position:absolute; left:12px; right:12px; bottom:12px; padding:9px 11px; border-radius:9px; background:rgba(11,27,43,.82); color:#fff; font-size:12px; font-weight:600; }
.fm-factory-process-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.fm-factory-process-card { min-height:220px; padding:24px 20px; background:#fff; border:1px solid #e7d9c4; border-radius:14px; }
.fm-factory-process-card .step-no { margin-bottom:18px; color:#e08d2c; font-size:21px; font-weight:800; }
.fm-factory-process-card h3 { margin:0 0 9px; color:#0b1b2b; font-size:17px; }
.fm-factory-process-card p { margin:0; color:#5a6b7d; font-size:13.5px; line-height:1.7; }
.fm-factory-capability-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.fm-factory-capability { overflow:hidden; background:#fff; border:1px solid #e7d9c4; border-radius:14px; }
.fm-factory-capability img { width:100%; height:190px; object-fit:cover; }
.fm-factory-capability > div { padding:20px; }
.fm-factory-capability h3 { margin:0 0 7px; color:#0b1b2b; font-size:17px; }
.fm-factory-capability p { margin:0; color:#5a6b7d; font-size:13.5px; line-height:1.7; }
.fm-factory-two-col { display:grid; grid-template-columns:1fr 1fr; gap:26px; align-items:stretch; }
.fm-factory-feature { padding:34px; background:#fff; border:1px solid #e7d9c4; border-radius:20px; }
.fm-factory-link { display:inline-block; margin-top:22px; color:#b96f1c; font-weight:700; font-size:14px; }
.fm-factory-feature-image { overflow:hidden; min-height:280px; border-radius:20px; background:#f7e7d3; }
.fm-factory-feature-image img { width:100%; height:100%; min-height:280px; object-fit:cover; }
.fm-factory-quality { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; padding:50px; border-radius:28px; background:#0b1b2b; }
.fm-factory-quality h2 { color:#fff; }
.fm-factory-quality p { color:#c6d3e0; }
.fm-factory-quality .eyebrow { color:#f5b45c; }
.fm-factory-quality ul { display:flex; flex-direction:column; gap:12px; margin:20px 0 0; padding:0; list-style:none; }
.fm-factory-quality li { display:flex; gap:10px; align-items:center; color:#dce6ef; font-size:14px; }
.fm-factory-quality li span { display:grid; place-items:center; width:20px; height:20px; flex:0 0 20px; border-radius:50%; background:#e08d2c; color:#0b1b2b; font-size:11px; font-weight:800; }
.fm-factory-quality-image { overflow:hidden; min-height:260px; border-radius:18px; background:#12283d; }
.fm-factory-quality-image img { width:100%; height:100%; min-height:260px; object-fit:cover; }
.fm-factory-consult-card { padding:36px; background:#fff; border:1px solid #e7d9c4; border-radius:24px; }
.fm-factory-visit-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:24px; }
.fm-factory-visit-steps > div { padding:13px 14px; border-radius:10px; background:#f7e7d3; }
.fm-factory-visit-steps b { display:block; color:#b96f1c; font-size:12px; }
.fm-factory-visit-steps span { display:block; margin-top:2px; color:#1b2a3d; font-size:13px; font-weight:600; }
.fm-factory-form { display:grid; gap:14px; }
.fm-factory-form > div { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.fm-factory-form input, .fm-factory-form select { width:100%; min-height:48px; padding:13px 16px; border:1px solid #e7d9c4; border-radius:10px; outline:none; background:#fbeee0; color:#1b2a3d; font:inherit; }
.fm-factory-form button { min-height:50px; border:0; border-radius:12px; background:#0b1b2b; color:#fff; font-size:14.5px; font-weight:700; cursor:pointer; }
.fm-factory-form button:disabled { opacity:.6; cursor:not-allowed; }
@media (max-width:900px) {
  .fm-factory-page .container { width:min(94%, var(--container)); }
  .fm-factory-hero-inner { padding:55px 28px; }
  .fm-factory-stats, .fm-factory-gallery, .fm-factory-process-grid, .fm-factory-capability-grid, .fm-factory-visit-steps { grid-template-columns:repeat(2,1fr); }
  .fm-factory-two-col, .fm-factory-quality { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  .fm-factory-page .container { width:min(92%, var(--container)); }
  .fm-factory-page { padding-top:78px; }
  .fm-factory-hero { min-height:520px; border-radius:0 0 20px 20px; }
  .fm-factory-hero h1 { font-size:38px; }
  .fm-factory-stats, .fm-factory-gallery, .fm-factory-process-grid, .fm-factory-capability-grid, .fm-factory-visit-steps, .fm-factory-form > div { grid-template-columns:1fr; }
  .fm-factory-stat { border-right:0; border-bottom:1px solid #e7d9c4; }
  .fm-factory-stat:last-child { border-bottom:0; }
  .fm-factory-quality, .fm-factory-consult-card, .fm-factory-feature { padding:26px; }
}

/* ===== Premium About page ===== */
.about-premium{background:#fffaf3;color:#102f46}
.about-premium .container{width:min(94%,var(--container));margin:0 auto}
.about-hero{position:relative;min-height:330px;display:flex;align-items:center;overflow:hidden;color:#fff;margin-top:86px}
.about-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.about-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,20,32,.94),rgba(3,20,32,.55) 48%,rgba(3,20,32,.35))}
.about-hero-content{position:relative;z-index:2;padding:64px 0}
.about-kicker,.about-section-kicker{display:inline-block;color:#d9821f;font-size:13px;font-weight:800;letter-spacing:1.4px}
.about-hero h1{margin:10px 0 12px;font-size:clamp(42px,5vw,64px);line-height:1.02;color:#fff}
.about-breadcrumb{display:flex;align-items:center;gap:12px;font-size:14px;color:rgba(255,255,255,.9)}
.about-breadcrumb a:hover{color:#f7a13d}
.about-who{padding:78px 0 45px;background:#fffaf3}
.about-who-grid{display:grid;grid-template-columns:1fr 1.08fr;gap:60px;align-items:center}
.about-copy h2,.about-section-heading h2{margin:10px 0 14px;color:#102f46;font-size:clamp(30px,3.5vw,46px);line-height:1.12}
.about-copy p{max-width:650px;margin:0 0 15px;color:#556779;line-height:1.75;font-size:16px}
.about-rule{display:block;width:36px;height:3px;margin:12px 0 22px;background:#e29a22}
.about-feature-image{height:410px;border-radius:22px;overflow:hidden;box-shadow:0 20px 50px rgba(15,52,79,.13)}
.about-feature-image img{width:100%;height:100%;object-fit:cover}
.about-stats-section{padding:38px 0 72px;background:#fffaf3}
.about-section-heading.centered{text-align:center}
.about-section-heading.centered .about-section-kicker{margin-bottom:4px}
.about-section-heading.centered h2{margin-top:7px}
.about-stats{display:grid;grid-template-columns:repeat(4,1fr);margin-top:28px;padding:0;border-radius:20px;background:#f7f0e8;border:1px solid rgba(15,52,79,.07);overflow:hidden}
.about-stat{padding:28px 20px;text-align:center;border-right:1px solid rgba(15,52,79,.13)}
.about-stat:last-child{border-right:0}
.about-stat strong{display:block;color:#102f46;font-size:clamp(32px,4vw,44px);line-height:1}
.about-stat span{display:block;margin-top:9px;color:#596a7a;font-size:14px;font-weight:700}
.about-team{padding:78px 0;background:#fff}
.about-team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:32px}
.about-team-card{overflow:hidden;border:1px solid rgba(15,52,79,.13);border-radius:14px;background:#fff;box-shadow:0 10px 30px rgba(15,52,79,.07)}
.about-team-photo{height:245px;background:#eee5dc;overflow:hidden}
.about-team-photo img{width:100%;height:100%;object-fit:cover}
.about-team-placeholder{display:grid;place-items:center;width:100%;height:100%;font-size:54px;font-weight:800;color:#0f344f}
.about-team-info{padding:15px 14px 17px;text-align:center}
.about-team-info h3{font-size:17px;color:#102f46}
.about-team-info>span{display:block;margin-top:5px;color:#d9821f;font-size:13px;font-weight:700}
.about-team-info>p{margin-top:6px;color:#273d50;font-size:12px;font-weight:700}
.about-team-info small{display:block;margin-top:8px;color:#667085;line-height:1.5;font-size:12px}
.about-benefits{padding:72px 0;background:#f7f0e8}
.about-benefit-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:0;margin-top:34px}
.about-benefit{padding:8px 20px 15px;text-align:center;border-right:1px solid rgba(15,52,79,.12)}
.about-benefit:last-child{border-right:0}
.about-benefit-icon{display:grid;place-items:center;width:46px;height:46px;margin:0 auto 13px;border:1px solid #e29a22;border-radius:50%;color:#d9821f;font-size:18px;font-weight:800}
.about-benefit h3{font-size:14px;line-height:1.3;color:#102f46}
.about-benefit p{margin-top:9px;color:#667085;font-size:12px;line-height:1.55}
.about-cta{position:relative;margin:58px auto 0;width:min(92%,1400px);overflow:hidden;border-radius:16px;background:#061827 url('') center/cover no-repeat;color:#fff}
.about-cta::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,24,39,.98),rgba(4,24,39,.82)),var(--about-cta-bg) center/cover no-repeat}
.about-cta-inner{position:relative;z-index:1;display:grid;grid-template-columns:1.15fr 1fr;gap:45px;align-items:center;padding:42px 40px}
.about-cta-copy h2{margin:7px 0 10px;color:#fff;font-size:clamp(30px,3.5vw,43px)}
.about-cta-copy p{max-width:560px;margin-bottom:22px;color:rgba(255,255,255,.76);line-height:1.65}
.about-cta .btn{background:#d9821f;color:#fff}
.about-contact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.about-contact-grid>div{min-height:94px;padding:17px;border-left:1px solid rgba(255,255,255,.2)}
.about-contact-grid strong{display:block;color:#f7a13d;font-size:13px;margin-bottom:8px}
.about-contact-grid span{display:block;color:#fff;font-size:13px;line-height:1.55}
@media(max-width:1100px){
 .about-team-grid{grid-template-columns:repeat(3,1fr)}
 .about-benefit-grid{grid-template-columns:repeat(3,1fr);row-gap:28px}
 .about-benefit:nth-child(3){border-right:0}
}
@media(max-width:800px){
 .about-hero{min-height:290px}
 .about-who-grid{grid-template-columns:1fr;gap:30px}
 .about-feature-image{height:330px}
 .about-stats{grid-template-columns:repeat(2,1fr)}
 .about-stat:nth-child(2){border-right:0}
 .about-stat:nth-child(-n+2){border-bottom:1px solid rgba(15,52,79,.13)}
 .about-team-grid{grid-template-columns:repeat(2,1fr)}
 .about-benefit-grid{grid-template-columns:repeat(2,1fr)}
 .about-benefit:nth-child(2n){border-right:0}
 .about-cta-inner{grid-template-columns:1fr;padding:34px 24px}
 .about-contact-grid{grid-template-columns:1fr}
 .about-contact-grid>div{border-left:0;border-top:1px solid rgba(255,255,255,.2)}
}
@media(max-width:520px){
 .about-team-grid,.about-benefit-grid{grid-template-columns:1fr}
 .about-benefit{border-right:0;border-bottom:1px solid rgba(15,52,79,.12);padding:18px 10px}
 .about-benefit:last-child{border-bottom:0}
 .about-stats{grid-template-columns:1fr}
 .about-stat{border-right:0!important;border-bottom:1px solid rgba(15,52,79,.13)}
 .about-stat:last-child{border-bottom:0}
 .about-feature-image{height:260px}
 .about-cta{width:94%}
}

/* Footer sizing/layout refinement: compact desktop footer and three-column mobile links. */
.fm-footer {
  padding: 46px 0 28px;
}

.footer-logo-img {
  width: 82px;
  height: 82px;
  flex-basis: 82px;
}

.brand-lockup {
  gap: 16px;
}

.brand-lockup h2 {
  font-size: clamp(24px, 2vw, 32px);
}

.brand-lockup p {
  margin-top: 7px;
  font-size: 11px;
}

.brand-copy {
  max-width: 390px;
  margin: 18px 0 20px;
  font-size: 14px;
  line-height: 1.5;
}

.feature-row {
  gap: 14px;
}

.feature-item {
  font-size: 12px;
  line-height: 1.2;
}

.phone-card {
  gap: 12px;
  padding: 14px;
}

.phone-icon {
  width: 50px;
  height: 50px;
  flex-basis: 50px;
}

.phone-card strong {
  font-size: clamp(21px, 1.8vw, 26px);
  letter-spacing: 1px;
}

.footer-links {
  gap: 28px;
}

.link-col h3,
.social-panel h3 {
  margin-bottom: 28px;
  font-size: 18px;
}

.link-col h3::after,
.social-panel h3::after {
  bottom: -13px;
  width: 30px;
}

.link-col a {
  margin-bottom: 13px;
  font-size: 13px;
}

.link-col a::before {
  margin-right: 8px;
  font-size: 11px;
}

.social-panel {
  gap: 28px;
}

.social-panel p {
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .fm-footer {
    padding: 38px 20px 28px;
  }

  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .link-col h3 {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .link-col a {
    margin-bottom: 11px;
    font-size: 11px;
    line-height: 1.25;
  }

  .link-col a::before {
    margin-right: 5px;
    font-size: 9px;
  }

  .footer-links .link-col {
    min-width: 0;
  }
}


/* About Mission & Vision CMS/public content */
.about-mission-vision{padding:36px 0 20px;background:#fffaf3}
.about-mission-vision-card{width:100%;max-width:none;margin:0 auto;padding:34px 38px;color:#556779;line-height:1.75;overflow-wrap:anywhere}
.about-mission-vision-card h1,.about-mission-vision-card h2,.about-mission-vision-card h3,.about-mission-vision-card h4,.about-mission-vision-card h5,.about-mission-vision-card h6{margin:0 0 12px;color:#102f46;line-height:1.2}
.about-mission-vision-card p,.about-mission-vision-card div{margin:0 0 12px}
.about-mission-vision-card p:last-child,.about-mission-vision-card div:last-child{margin-bottom:0}
.about-mission-vision-card strong,.about-mission-vision-card b{color:#102f46}
.about-mission-vision-card ul,.about-mission-vision-card ol{padding-left:22px;margin:0 0 12px}
.about-rich-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:10px;border:1px solid #d8dee5;border-bottom:0;border-radius:10px 10px 0 0;background:#f7f9fb}
.about-rich-btn,.about-rich-select{min-height:34px;padding:6px 10px;border:1px solid #ccd5de;border-radius:6px;background:#fff;color:#102f46;font:inherit;font-size:13px;cursor:pointer}
.about-rich-btn:hover,.about-rich-select:hover{border-color:#d9821f}
.about-rich-color{display:flex;align-items:center;gap:6px;min-height:34px;padding:4px 8px;border:1px solid #ccd5de;border-radius:6px;background:#fff;color:#102f46;font-size:13px}
.about-rich-color input{width:30px;height:25px;padding:0;border:0;background:transparent;cursor:pointer}
.about-rich-editor{min-height:300px;padding:18px;border:1px solid #d8dee5;border-radius:0 0 10px 10px;background:#fff;color:#102f46;line-height:1.65;outline:none;white-space:normal;overflow-wrap:anywhere}
.about-rich-editor:focus{border-color:#8aa0b2;box-shadow:0 0 0 2px rgba(15,52,79,.08)}
.about-rich-editor:empty:before{content:attr(data-placeholder);color:#98a2b3}
.about-rich-editor h1,.about-rich-editor h2,.about-rich-editor h3,.about-rich-editor h4,.about-rich-editor h5,.about-rich-editor h6{margin:0 0 12px;line-height:1.2}
.about-rich-editor p{margin:0 0 12px}
.about-rich-hidden{display:none!important}
@media(max-width:700px){.about-mission-vision{padding:24px 0 12px}.about-mission-vision-card{padding:24px 20px}.about-rich-toolbar{gap:5px}.about-rich-editor{min-height:260px;padding:14px}}

/* Process step rich content: keep CMS heading hierarchy visible without changing the existing layout. */
.fm-process-premium .fm-process-card-content h2,
.fm-process-premium .fm-process-card-content h3,
.fm-process-premium .fm-process-card-content h4{margin:8px 0 5px;line-height:1.25;color:#0d3150}
.fm-process-premium .fm-process-card-content h3{font-size:18px}
.fm-process-premium .fm-process-card-content h4{font-size:14px}
.fm-process-premium .fm-process-card-content p{margin:6px 0}
.fm-process-premium .fm-process-card-content p:first-child{margin-top:0}
