:root {
        --bg-main: linear-gradient(
          180deg,
          #04091f 0%,
          #060d2b 45%,
          #05091b 100%
        );
        --bg-glow-1: rgba(106, 88, 255, 0.28);
        --bg-glow-2: rgba(58, 145, 255, 0.18);
        --text-main: #e8edff;
        --text-soft: #98a7cf;
        --hero-title: #f2f6ff;
        --badge-bg: #251f54;
        --badge-border: #3d3488;
        --card-bg: #0d1536;
        --card-border: rgba(96, 122, 255, 0.35);
        --shadow: 0 16px 40px rgba(7, 13, 34, 0.45);
        --btn-grad: linear-gradient(135deg, #8f5fff 0%, #4789ff 100%);
        --btn-outline-border: #7f93d8;
        --btn-outline-bg: rgba(10, 18, 48, 0.5);
        --btn-outline-text: #f2f6ff;
        --preview-height: 500px;
        --toggle-track: #1f2b57;
        --toggle-knob: #f6f9ff;
        --feature-gap: 16px;
        --feature-visible: 4;
      }

      body[data-theme="light"] {
        --bg-main: linear-gradient(
          180deg,
          #f5f8ff 0%,
          #edf3ff 42%,
          #e8eefb 100%
        );
        --bg-glow-1: rgba(95, 107, 255, 0.24);
        --bg-glow-2: rgba(101, 176, 255, 0.2);
        --text-main: #1f2b4f;
        --text-soft: #637099;
        --hero-title: #14204a;
        --badge-bg: #e6edff;
        --badge-border: #bfd0ff;
        --card-bg: #ffffff;
        --card-border: #dae4ff;
        --shadow: 0 14px 32px rgba(21, 36, 80, 0.12);
        --btn-grad: linear-gradient(135deg, #8254ff 0%, #3f87ff 100%);
        --btn-outline-border: #9cb4ff;
        --btn-outline-bg: #ffffff;
        --btn-outline-text: #243461;
        --toggle-track: #d8e2ff;
        --toggle-knob: #ffffff;
      }

      * {
        box-sizing: border-box;
      }

      html,
      body {
        min-height: 100%;
      }

      body {
        margin: 0;
        font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        color: var(--text-main);
        background: var(--bg-main);
        position: relative;
        overflow-x: hidden;
      }

      body::before,
      body::after {
        content: "";
        position: fixed;
        pointer-events: none;
        z-index: -1;
        border-radius: 50%;
        filter: blur(2px);
      }

      body::before {
        width: 600px;
        height: 600px;
        top: -260px;
        left: -190px;
        background: radial-gradient(
          circle at center,
          var(--bg-glow-1) 0%,
          rgba(0, 0, 0, 0) 65%
        );
      }

      body::after {
        width: 540px;
        height: 540px;
        top: -180px;
        right: -200px;
        background: radial-gradient(
          circle at center,
          var(--bg-glow-2) 0%,
          rgba(0, 0, 0, 0) 67%
        );
      }

      .page {
        width: min(1380px, calc(100% - 36px));
        margin: 22px auto 60px;
      }

      .topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 18px;
      }

      .contact-strip {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
        flex: 1 1 auto;
        min-height: 38px;
      }

      .contact-pill {
        text-decoration: none;
        color: var(--text-main);
        border: 1px solid var(--card-border);
        background: rgba(12, 20, 52, 0.5);
        border-radius: 999px;
        padding: 8px 12px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        line-height: 1;
        font-weight: 500;
        transition:
          transform 0.2s ease,
          background-color 0.2s ease,
          border-color 0.2s ease;
        white-space: nowrap;
      }

      .contact-pill:hover {
        transform: translateY(-1px);
        border-color: rgba(133, 155, 255, 0.62);
        background: rgba(20, 31, 74, 0.7);
      }

      body[data-theme="light"] .contact-pill {
        background: rgba(255, 255, 255, 0.92);
      }

      .contact-ico {
        width: 22px;
        height: 22px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.02em;
        color: #eef2ff;
        background: linear-gradient(135deg, #8c61ff 0%, #4f96ff 100%);
        box-shadow: 0 5px 14px rgba(70, 123, 255, 0.35);
      }

      .topbar-controls {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-end;
      }

      .lang-switch {
        border: 1px solid var(--card-border);
        background: rgba(12, 20, 52, 0.5);
        border-radius: 999px;
        padding: 3px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        min-height: 38px;
      }

      body[data-theme="light"] .lang-switch {
        background: rgba(255, 255, 255, 0.9);
      }

      .lang-btn {
        border: 0;
        background: transparent;
        color: var(--text-soft);
        height: 30px;
        min-width: 86px;
        border-radius: 999px;
        padding: 0 12px;
        font-family: inherit;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.01em;
        cursor: pointer;
        transition:
          color 0.2s ease,
          background-color 0.25s ease,
          box-shadow 0.25s ease;
      }

      .lang-btn.active {
        color: #f6f9ff;
        background: var(--btn-grad);
        box-shadow: 0 8px 16px rgba(72, 116, 255, 0.3);
      }

      body[data-theme="light"] .lang-btn.active {
        color: #ffffff;
      }

      .theme-toggle {
        border: 1px solid var(--card-border);
        background: rgba(12, 20, 52, 0.5);
        color: var(--text-main);
        border-radius: 999px;
        height: 38px;
        padding: 4px 12px 4px 4px;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        transition:
          background-color 0.25s ease,
          border-color 0.25s ease;
      }

      body[data-theme="light"] .theme-toggle {
        background: rgba(255, 255, 255, 0.9);
      }

      .toggle-track {
        width: 48px;
        height: 28px;
        border-radius: 999px;
        background: var(--toggle-track);
        position: relative;
        border: 1px solid rgba(170, 188, 255, 0.38);
      }

      .toggle-knob {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--toggle-knob);
        position: absolute;
        top: 2px;
        left: 2px;
        box-shadow: 0 3px 8px rgba(18, 25, 47, 0.26);
        transition: transform 0.25s ease;
      }

      body[data-theme="light"] .toggle-knob {
        transform: translateX(20px);
      }

      .toggle-text {
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.01em;
        min-width: 62px;
        text-align: left;
      }

      .hero {
        text-align: center;
        max-width: 100%;
        margin: 10px auto 40px;
      }

      .hero-intro {
        max-width: 920px;
        margin: 0 auto;
      }

      .hero-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 2px;
        text-align: center;
        padding: 10px 18px;
        font-size: 19px;
        font-weight: 600;
        color: #d8deff;
        background: var(--badge-bg);
        border: 1px solid var(--badge-border);
        border-radius: 999px;
      }

      .bi-text {
        display: block;
      }

      .bi-text.bn {
        font-family:
          "Hind Siliguri", "Noto Sans Bengali", "Poppins", "Segoe UI",
          sans-serif;
        letter-spacing: 0;
      }

      .bi-text.en {
        opacity: 0.9;
      }

      body[data-lang="bn"] .bi-text.en {
        display: none;
      }

      body[data-lang="en"] .bi-text.bn {
        display: none;
      }

      body[data-theme="light"] .hero-badge {
        color: #284089;
      }

      .hero h1 {
        margin: 16px 0 14px;
        color: var(--hero-title);
        letter-spacing: -0.02em;
        line-height: 1.08;
        font-size: clamp(34px, 5.8vw, 60px);
        font-weight: 700;
      }

      .hero h1 .bi-text.en {
        margin-top: 6px;
        font-size: 0.72em;
        font-weight: 600;
        letter-spacing: -0.01em;
      }

      .hero-sub {
        margin: 0 auto;
        max-width: 740px;
        color: var(--text-soft);
        font-size: clamp(16px, 2vw, 28px);
        line-height: 1.5;
      }

      .hero-sub .bi-text.en {
        margin-top: 8px;
        font-size: 0.8em;
      }

      .hero-actions {
        margin-top: 28px;
        display: flex;
        gap: 14px;
        justify-content: center;
        flex-wrap: wrap;
      }

      .hero-btn {
        min-width: 190px;
        padding: 12px 22px;
        border-radius: 999px;
        text-decoration: none;
        font-weight: 600;
        font-size: 15px;
        transition:
          transform 0.2s ease,
          box-shadow 0.2s ease,
          background-color 0.2s ease;
      }

      .hero-btn .bi-text {
        display: inline;
      }

      .hero-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 22px rgba(26, 36, 74, 0.26);
      }

      .hero-btn.outline {
        border: 1px solid var(--btn-outline-border);
        color: var(--btn-outline-text);
        background: var(--btn-outline-bg);
      }

      .hero-btn.gradient {
        border: 1px solid transparent;
        color: #ffffff;
        background: var(--btn-grad);
        box-shadow: 0 10px 24px rgba(99, 96, 255, 0.35);
      }

      .feature-carousel {
        margin-top: 34px;
        overflow: hidden;
        width: 100%;
        border-radius: 20px;
        position: relative;
        padding-bottom: 4px;
      }

      .feature-track {
        display: flex;
        gap: var(--feature-gap);
        transition: transform 0.7s cubic-bezier(0.2, 0.75, 0.25, 1);
        will-change: transform;
      }

      .feature-card {
        background: var(--card-bg);
        border: 1px solid var(--card-border);
        border-radius: 18px;
        padding: 22px 20px;
        box-shadow: var(--shadow);
        text-align: center;
        min-height: 258px;
        flex: 0 0
          calc(
            (100% - (var(--feature-gap) * (var(--feature-visible) - 1))) /
              var(--feature-visible)
          );
        position: relative;
        overflow: hidden;
        background-image: linear-gradient(
          180deg,
          rgba(19, 32, 76, 0.78),
          rgba(10, 18, 48, 0.98)
        );
      }

      body[data-theme="light"] .feature-card {
        background-image: linear-gradient(180deg, #ffffff, #f8fbff);
      }

      .feature-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(
          90deg,
          rgba(103, 82, 255, 0),
          rgba(128, 98, 255, 0.95),
          rgba(70, 151, 255, 0)
        );
        opacity: 0.9;
      }

      .feature-card:hover {
        transform: translateY(-4px);
        border-color: rgba(123, 145, 255, 0.56);
      }

      body[data-theme="light"] .feature-card:hover {
        box-shadow: 0 16px 30px rgba(31, 55, 110, 0.16);
      }

      .feature-icon {
        width: 62px;
        height: 62px;
        margin: 2px auto 14px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(
          135deg,
          rgba(117, 84, 255, 0.22),
          rgba(74, 151, 255, 0.2)
        );
        border: 1px solid rgba(137, 119, 255, 0.36);
        box-shadow: inset 0 0 24px rgba(92, 102, 255, 0.24);
      }

      .feature-icon svg {
        width: 30px;
        height: 30px;
        stroke: #8472ff;
        stroke-width: 2.2;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      body[data-theme="light"] .feature-icon svg {
        stroke: #6450f0;
      }

      .feature-title {
        margin: 0;
        color: var(--hero-title);
        font-size: clamp(20px, 1.8vw, 30px);
        font-weight: 650;
        letter-spacing: -0.02em;
        line-height: 1.15;
      }

      .feature-title .bi-text.en {
        margin-top: 5px;
        font-size: 0.66em;
        font-weight: 600;
        letter-spacing: 0;
      }

      .feature-text {
        margin: 10px 0 0;
        color: var(--text-soft);
        line-height: 1.52;
        font-size: 15px;
        max-width: 290px;
        margin-left: auto;
        margin-right: auto;
      }

      .feature-text .bi-text.en {
        margin-top: 8px;
        font-size: 0.9em;
      }

      .template-discovery {
        text-align: center;
        margin: 56px auto 34px;
        max-width: 820px;
      }

      .template-discovery p {
        margin: 0 0 8px;
        color: #7ca2ff;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        font-size: 12px;
      }

      .template-discovery h2 {
        margin: 0;
        color: var(--hero-title);
        font-size: clamp(30px, 4vw, 50px);
        line-height: 1.12;
        letter-spacing: -0.02em;
      }

      .template-discovery .sub {
        margin-top: 10px;
        color: var(--text-soft);
        font-size: 18px;
      }

      .template-discovery h2 .bi-text.en,
      .template-discovery .sub .bi-text.en {
        margin-top: 6px;
        font-size: 0.72em;
        font-weight: 500;
        line-height: 1.35;
      }

      .template-search {
        margin-top: 18px;
        height: 52px;
        display: flex;
        align-items: center;
        gap: 10px;
        border-radius: 999px;
        padding: 0 18px;
        border: 1px solid var(--card-border);
        background: linear-gradient(
          180deg,
          rgba(12, 22, 57, 0.96),
          rgba(9, 18, 45, 0.96)
        );
        box-shadow: 0 10px 24px rgba(8, 15, 40, 0.33);
      }

      body[data-theme="light"] .template-search {
        background: #ffffff;
        box-shadow: 0 10px 20px rgba(26, 52, 110, 0.12);
      }

      .template-search span {
        color: #8eb2ff;
        font-size: 18px;
        line-height: 1;
      }

      .template-search input {
        border: 0;
        outline: 0;
        width: 100%;
        font-size: 17px;
        font-family: inherit;
        color: var(--text-main);
        background: transparent;
      }

      .template-search input::placeholder {
        color: var(--text-soft);
        opacity: 0.92;
      }

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

      .template-card {
        background: var(--card-bg);
        border-radius: 20px;
        box-shadow: var(--shadow);
        padding: 18px;
        text-align: center;
        border: 1px solid var(--card-border);
        height: 100%;
        display: flex;
        flex-direction: column;
        transition:
          transform 0.2s ease,
          box-shadow 0.2s ease;
      }

      .template-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 44px rgba(10, 18, 44, 0.45);
      }

      body[data-theme="light"] .template-card:hover {
        box-shadow: 0 14px 28px rgba(25, 38, 86, 0.2);
      }

      .template-image {
        border-radius: 14px;
        overflow: hidden;
        background: #0c1330;
        height: var(--preview-height);
        position: relative;
        border: 1px solid rgba(95, 115, 196, 0.3);
      }

      body[data-theme="light"] .template-image {
        background: #eef3ff;
        border-color: #d5e0ff;
      }

      .template-image img {
        width: 100%;
        height: auto;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        transform: translateY(0);
        transition: transform 5s ease;
        will-change: transform;
      }

      .template-image:hover img {
        transform: translateY(min(0px, calc(-100% + var(--preview-height))));
      }

      .template-content {
        padding-top: 14px;
        margin-top: auto;
      }

      .template-title {
        margin: 0;
        color: var(--hero-title);
        font-size: clamp(24px, 2.4vw, 36px);
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: -0.02em;
      }

      .template-pricing {
        margin-top: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
      }

      .price-badge {
        display: inline-flex;
        align-items: baseline;
        gap: 6px;
        padding: 6px 11px;
        border-radius: 999px;
        border: 1px solid rgba(133, 154, 255, 0.42);
        background: rgba(16, 28, 68, 0.72);
        color: #e6ecff;
        line-height: 1;
      }

      .price-badge .label {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        opacity: 0.85;
      }

      .price-badge strong {
        font-size: 15px;
        letter-spacing: -0.01em;
      }

      .price-badge.regular strong {
        text-decoration: line-through;
        color: #b7c6f5;
        font-weight: 600;
      }

      .price-badge.discount {
        border-color: rgba(112, 243, 193, 0.45);
        background: linear-gradient(
          135deg,
          rgba(31, 88, 66, 0.82),
          rgba(18, 56, 45, 0.92)
        );
        color: #dffcec;
      }

      .price-badge.discount strong {
        font-weight: 700;
      }

      .save-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 10px;
        border-radius: 999px;
        border: 1px solid rgba(255, 163, 118, 0.5);
        background: rgba(66, 39, 26, 0.8);
        color: #ffd9c3;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        line-height: 1;
      }

      body[data-theme="light"] .price-badge {
        background: #f4f7ff;
        border-color: #c7d5ff;
        color: #284089;
      }

      body[data-theme="light"] .price-badge.regular strong {
        color: #6a7fb5;
      }

      body[data-theme="light"] .price-badge.discount {
        border-color: #98dfc0;
        background: #eafff4;
        color: #1d5a40;
      }

      body[data-theme="light"] .save-badge {
        border-color: #ffc7a8;
        background: #fff2e8;
        color: #b14f1d;
      }

      .template-actions {
        margin-top: 14px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
      }

      .demo-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        border-radius: 11px;
        padding: 11px 10px;
        border: 1px solid transparent;
        transition:
          transform 0.2s ease,
          box-shadow 0.2s ease,
          background-color 0.2s ease,
          color 0.2s ease,
          border-color 0.2s ease;
      }

      .demo-btn:hover {
        transform: translateY(-2px);
      }

      .demo-btn.admin {
        background: var(--btn-grad);
        color: #ffffff;
        box-shadow: 0 8px 18px rgba(96, 108, 255, 0.32);
      }

      .demo-btn.front {
        background: var(--btn-outline-bg);
        border-color: var(--btn-outline-border);
        color: var(--btn-outline-text);
      }

      .demo-btn.front:hover {
        box-shadow: 0 9px 18px rgba(20, 28, 60, 0.25);
      }

      @media (max-width: 1200px) {
        :root {
          --preview-height: 440px;
          --feature-visible: 3;
        }
      }

      @media (max-width: 991px) {
        :root {
          --preview-height: 420px;
          --feature-visible: 2;
        }

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

        .template-discovery {
          margin-top: 58px;
        }
      }

      @media (max-width: 768px) {
        .page {
          width: min(1380px, calc(100% - 22px));
          margin-top: 14px;
        }

        .topbar {
          align-items: flex-start;
        }

        .topbar-controls {
          align-self: flex-end;
        }

        .contact-pill {
          font-size: 12px;
        }

        .hero {
          margin-top: 0;
        }

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

        .hero-actions {
          margin-top: 22px;
        }
      }

      @media (max-width: 640px) {
        :root {
          --preview-height: 390px;
          --feature-visible: 1;
        }

        .topbar {
          flex-direction: column;
          align-items: stretch;
          justify-content: flex-start;
        }

        .contact-strip {
          justify-content: center;
        }

        .topbar-controls {
          width: 100%;
          justify-content: center;
        }

        .template-grid,
        .template-actions {
          grid-template-columns: 1fr;
        }

        .template-discovery {
          margin-top: 48px;
        }

        .template-search input {
          font-size: 15px;
        }
      }
