    :root {
      --bg: #0a0a0f;
      --surface: #12121a;
      --surface2: #1a1a26;
      --surface3: #212132;
      --text: #e8e8ef;
      --text-muted: #8888a0;
      --accent: #a855f7;
      --accent2: #ec4899;
      --gradient: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
      --border: rgba(168, 85, 247, 0.2);
      --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
      --radius: 16px;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html {
      scroll-behavior: smooth;
      overflow-x: hidden;
      overscroll-behavior-x: none;
      -webkit-text-size-adjust: 100%;
      -ms-text-size-adjust: 100%;
    }
    body {
      font-family: 'Outfit', 'Noto Kufi Arabic', sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
      min-height: 100vh;
      width: 100%;
      max-width: 100vw;
      overflow-x: hidden;
      overscroll-behavior-x: none;
      position: relative;
    }
    body.rtl { direction: rtl; }
    body.rtl .lang-switch { flex-direction: row-reverse; }
    main {
      max-width: 100vw;
      overflow-x: clip;
    }
    .h-scroll-rail {
      overscroll-behavior-x: contain;
      max-width: 100%;
    }
    img {
      -webkit-user-drag: none;
    }
    body::before {
      content: '';
      position: fixed;
      inset: -30% 0 auto 0;
      height: 520px;
      background: radial-gradient(circle at 20% 40%, rgba(168, 85, 247, 0.2), transparent 55%),
                  radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.16), transparent 50%);
      pointer-events: none;
      z-index: -1;
      animation: ambientDrift 18s ease-in-out infinite alternate;
      transform: translate3d(var(--bg-shift-x, 0px), var(--bg-shift-y, 0px), 0);
    }
    body::after {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: -1;
      opacity: 0.34;
      background-image:
        radial-gradient(circle, rgba(168, 85, 247, 0.34) 1.35px, transparent 1.7px),
        radial-gradient(circle, rgba(236, 72, 153, 0.18) 1.2px, transparent 1.65px);
      background-size: 24px 24px, 24px 24px;
      background-position: 0 0, 12px 12px;
      animation: dottedDrift 26s linear infinite;
      mix-blend-mode: normal;
    }
    @keyframes ambientDrift {
      from { transform: translate3d(0, 0, 0) scale(1); }
      to { transform: translate3d(0, 16px, 0) scale(1.03); }
    }
    @keyframes dottedDrift {
      from { background-position: 0 0, 14px 14px; }
      to { background-position: 120px 64px, 134px 78px; }
    }
    .no-js .lang-content:not(.active) { display: none !important; }
    .lang-content { display: none !important; }
    .lang-content.active { display: block !important; }
    span.lang-content.active { display: inline !important; }
    .container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; overflow-x: clip; }
    section[id] { scroll-margin-top: 90px; }
    @media (max-width: 480px) {
      .container { padding: 0 1rem; }
      body { padding-bottom: env(safe-area-inset-bottom, 0); }
    }
    /* Header */
    header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      background: rgba(10, 10, 15, 0.85);
      -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      padding-top: env(safe-area-inset-top, 0);
    }
    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 72px;
      padding: 0 1.1rem;
      gap: 0.7rem;
      min-width: 0;
    }
    .header-main {
      display: flex;
      align-items: center;
      gap: 1.15rem;
      min-width: 0;
      flex: 1;
    }
    .top-nav {
      display: none;
      gap: 0.2rem;
      margin-inline-start: 0.6rem;
      align-items: center;
      justify-content: center;
      flex: 1;
      min-width: 0;
    }
    .top-nav a {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.88rem;
      font-weight: 500;
      padding: 0.32rem 0.52rem;
      border-radius: 8px;
      transition: all 0.2s ease;
      white-space: nowrap;
    }
    .top-nav a:hover {
      color: var(--text);
      background: var(--surface2);
    }
    .top-nav a.active {
      color: #fff;
      background: rgba(168, 85, 247, 0.16);
      border: 1px solid rgba(168, 85, 247, 0.35);
    }
    @media (min-width: 1024px) {
      .top-nav { display: flex; }
    }
    .logo-wrap {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      text-decoration: none;
      color: inherit;
      min-width: 0;
      flex-shrink: 1;
    }
    .logo-wrap img {
      height: 52px;
      width: auto;
      max-width: 104px;
      object-fit: contain;
      flex-shrink: 0;
    }
    .logo-text {
      font-weight: 700;
      font-size: 1.25rem;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    @media (max-width: 480px) {
      .header-inner { padding: 0 0.75rem; height: 56px; gap: 0.35rem; }
      .logo-wrap img { height: 48px; max-width: 110px; }
      .logo-text { font-size: 1rem; }
      .lang-btn { padding: 0.35rem 0.6rem; font-size: 0.85rem; }
    }
    @media (max-width: 600px) {
      .logo-text { display: none !important; }
      .lang-switch { gap: 0.32rem; }
      .lang-btn { display: none !important; }
      .lang-mobile-btns {
        display: flex !important;
        gap: 0;
      }
    }
    .lang-switch {
      display: flex;
      align-items: center;
      gap: 0.38rem;
      flex-shrink: 0;
    }
    .menu-btn {
      display: none;
      width: 36px;
      height: 36px;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: var(--surface2);
      color: var(--text);
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      cursor: pointer;
      line-height: 1;
    }
    .mobile-menu {
      display: none;
    }
    .lang-btn {
      background: var(--surface2);
      border: 1px solid var(--border);
      color: var(--text);
      padding: 0.38rem 0.74rem;
      border-radius: 8px;
      cursor: pointer;
      font-family: inherit;
      font-size: 0.84rem;
      transition: all 0.2s;
    }
    .lang-btn:hover { border-color: var(--accent); color: var(--accent); }
    .lang-btn.active { background: var(--gradient); color: #fff; border-color: transparent; -webkit-text-fill-color: #fff; }
    .lang-mobile-btns {
      display: none;
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid var(--border);
    }
    .lang-mob {
      background: var(--surface2);
      color: var(--text-muted);
      border: none;
      padding: 0.42rem 0.7rem;
      cursor: pointer;
      font-family: inherit;
      font-size: 0.85rem;
      font-weight: 600;
      line-height: 1;
      transition: all 0.2s;
    }
    .lang-mob.active {
      background: var(--gradient);
      color: #fff;
      -webkit-text-fill-color: #fff;
    }
    /* Hero */
    .hero {
      min-height: 80vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 3.9rem 1.5rem 2.2rem;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .hero::before {
      content: '';
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 120%;
      height: 80%;
      background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.12) 0%, transparent 60%);
      pointer-events: none;
    }
    .hero-content { position: relative; z-index: 1; }
    .hero-panel {
      margin: 0 auto;
      max-width: 860px;
      padding: clamp(0.3rem, 1.5vw, 0.7rem) 0;
    }
    @keyframes fmHeroIn {
      0% {
        opacity: 0;
        transform: translate3d(0, 18px, 0) scale(0.985);
        filter: blur(6px);
      }
      100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
      }
    }
    body.fm-ready .hero-panel .fm-item {
      opacity: 0;
      animation: fmHeroIn 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
    body.fm-ready .hero-panel .hero-avatar { animation-delay: 0.04s; }
    body.fm-ready .hero-panel .hero-brand { animation-delay: 0.12s; }
    body.fm-ready .hero-panel .hero-name { animation-delay: 0.2s; }
    body.fm-ready .hero-panel .hero-subline { animation-delay: 0.3s; }
    body.fm-ready .hero-panel .hero-cta { animation-delay: 0.4s; }
    body.fm-ready .hero-panel .hero-stats { animation-delay: 0.52s; }
    .hero-avatar {
      width: 188px;
      height: 188px;
      border-radius: 50%;
      object-fit: cover;
      border: 4px solid var(--border);
      box-shadow: var(--shadow);
      margin-bottom: 0.65rem;
    }
    .hero-avatar.hero-logo {
      object-fit: contain;
      background: transparent;
      border: none;
      box-shadow: none;
      border-radius: 0;
      padding: 0;
      animation: logoFloat 5.5s ease-in-out infinite;
    }
    @keyframes logoFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-11px); }
    }
    .hero h1 {
      font-size: clamp(1.75rem, 4vw, 2.5rem);
      font-weight: 700;
      margin-bottom: 0.5rem;
      letter-spacing: -0.02em;
    }
    .hero-brand {
      font-size: clamp(2rem, 5vw, 3rem);
      line-height: 1.1;
      margin-bottom: 0.28rem;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .hero-name {
      font-size: clamp(1.1rem, 2.5vw, 1.5rem);
      color: #fff;
      margin-bottom: 0.5rem;
      font-weight: 600;
    }
    .shimmer-lite {
      background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0.88) 30%,
        rgba(255, 255, 255, 1) 44%,
        rgba(255, 255, 255, 0.88) 58%
      );
      background-size: 220% 100%;
      background-position: 120% 0;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: shimmerLite 2.6s linear infinite;
      text-shadow: 0 0 22px rgba(168, 85, 247, 0.22);
    }
    @keyframes shimmerLite {
      to { background-position: -120% 0; }
    }
    .hero .tagline {
      font-size: 1.1rem;
      color: var(--text-muted);
      margin-bottom: 0.45rem;
    }
    .hero-focus { display: none; }
    .hero-pill {
      display: inline-flex;
      align-items: center;
      border: 1px solid var(--border);
      background: rgba(168, 85, 247, 0.1);
      color: var(--text);
      border-radius: 999px;
      padding: 0.3rem 0.75rem;
      font-size: 0.82rem;
      font-weight: 600;
    }
    .hero-subline {
      max-width: 560px;
      margin: 0 auto 0.82rem;
      color: var(--text-muted);
      font-size: 0.94rem;
    }
    .hero-stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.7rem;
      margin-top: 0.72rem;
    }
    .hero-stat {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 0.72rem 0.6rem;
    }
    .hero-stat strong {
      display: block;
      font-size: 1.05rem;
      color: #fff;
    }
    .hero-stat span {
      color: var(--text-muted);
      font-size: 0.8rem;
    }
    .hero-proof-mini {
      margin-top: 1rem;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.5rem;
    }
    .hero-proof-mini .proof-chip {
      border: 1px solid var(--border);
      background: var(--surface2);
      color: var(--text-muted);
      border-radius: 999px;
      padding: 0.28rem 0.75rem;
      font-size: 0.78rem;
      white-space: nowrap;
      text-decoration: none;
      transition: border-color 0.2s, color 0.2s;
    }
    .hero-proof-mini .proof-chip:hover {
      border-color: var(--accent);
      color: var(--text);
    }
    .proof-strip { display: none; }
    .proof-chip {
      border: 1px solid var(--border);
      background: var(--surface2);
      color: var(--text-muted);
      border-radius: 999px;
      padding: 0.24rem 0.7rem;
      font-size: 0.78rem;
      white-space: nowrap;
    }
    .hero-cta {
      display: flex;
      flex-wrap: wrap;
      gap: 0.72rem;
      justify-content: center;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.7rem 1.2rem;
      border-radius: 12px;
      font-family: inherit;
      font-size: 0.96rem;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.2s ease;
      border: 1px solid transparent;
      cursor: pointer;
      letter-spacing: 0.01em;
      touch-action: manipulation;
    }
    .btn:active {
      transform: translateY(0) scale(0.985);
    }
    .btn:focus-visible,
    .lang-btn:focus-visible,
    .top-nav a:focus-visible {
      outline: 2px solid var(--accent2);
      outline-offset: 2px;
    }
    .btn-primary {
      background: var(--gradient);
      color: #fff;
      box-shadow: 0 8px 24px rgba(168, 85, 247, 0.34);
      position: relative;
      overflow: hidden;
    }
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 30px rgba(168, 85, 247, 0.45);
    }
    .btn.reward-pop {
      animation: rewardPop 0.42s ease;
    }
    @keyframes rewardPop {
      0% { transform: scale(1); }
      35% { transform: scale(1.04); }
      100% { transform: scale(1); }
    }
    .btn-primary::after {
      content: '';
      position: absolute;
      inset: 0;
      transform: translateX(-110%);
      background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.18) 45%, transparent 100%);
      transition: transform 0.45s ease;
    }
    .btn-primary:hover::after {
      transform: translateX(110%);
    }
    .btn-outline {
      background: rgba(255, 255, 255, 0.02);
      color: var(--text);
      border-color: var(--border);
    }
    .btn-outline:hover {
      border-color: var(--accent);
      color: var(--accent);
      background: rgba(168, 85, 247, 0.08);
    }
    /* Sections */
    section {
      padding: 4rem 0;
      border-top: 1px solid var(--border);
    }
    main > section:nth-of-type(odd) {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0));
    }
    main > section:nth-of-type(even) {
      background: linear-gradient(180deg, rgba(168, 85, 247, 0.045), rgba(168, 85, 247, 0.012));
    }
    .section-title {
      font-size: clamp(1.5rem, 3vw, 2rem);
      font-weight: 700;
      margin-bottom: 1.4rem;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    /* About */
    .about-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2rem;
      align-items: start;
    }
    @media (min-width: 768px) {
      .about-grid { grid-template-columns: 280px 1fr; }
    }
    .about-photo {
      width: 100%;
      max-width: 280px;
      border-radius: 16px;
      border: 2px solid var(--border);
      box-shadow: var(--shadow);
    }
    .about-photo.about-logo {
      object-fit: contain;
      background: #000;
    }
    .why-panel {
      background: linear-gradient(165deg, rgba(168,85,247,0.05) 0%, rgba(20,20,35,0.6) 50%, rgba(236,72,153,0.03) 100%);
      border: 1px solid rgba(168,85,247,0.12);
      border-radius: 20px;
      padding: 2.5rem 2.2rem 2rem;
      margin-top: 1.2rem;
      position: relative;
      overflow: hidden;
    }
    .why-panel::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: var(--gradient);
      border-radius: 20px 20px 0 0;
    }
    .why-list {
      max-width: 680px;
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .why-item {
      display: flex;
      align-items: center;
      gap: 1.4rem;
      padding: 1.2rem 0;
      border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .why-item:last-child { border-bottom: none; }
    .why-num {
      font-size: 1.6rem;
      font-weight: 800;
      color: var(--accent);
      text-shadow: 0 0 18px rgba(168,85,247,0.5), 0 0 40px rgba(168,85,247,0.25);
      font-variant-numeric: tabular-nums;
      letter-spacing: -0.02em;
      line-height: 1;
      flex-shrink: 0;
      min-width: 2.2rem;
      text-align: center;
    }
    .why-item strong {
      color: #fff;
    }
    .why-item span.why-body {
      font-size: 0.95rem;
      color: var(--text-muted);
      line-height: 1.55;
    }
    .why-closer {
      margin-top: 1.6rem;
      padding: 1.1rem 1.4rem;
      background: linear-gradient(135deg, rgba(168,85,247,0.1), rgba(59,130,246,0.05));
      border-left: 3px solid var(--accent);
      border-radius: 0 12px 12px 0;
    }
    .why-closer p {
      font-size: 0.98rem;
      color: rgba(255,255,255,0.9);
      line-height: 1.5;
      margin: 0;
    }
    .about-text p {
      margin-bottom: 0.7rem;
      color: var(--text-muted);
      line-height: 1.55;
      padding-inline-start: 0.85rem;
      border-inline-start: 3px solid var(--accent);
    }
    .about-text p:last-child {
      border-image: var(--gradient) 1;
    }
    /* Services */
    .services-grid,
    .stack-grid,
    .projects-grid,
    .packages-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1rem;
    }
    .service-card,
    .stack-card,
    .project-card,
    .package-card {
      background: linear-gradient(170deg, rgba(20, 20, 30, 0.94), rgba(14, 14, 22, 0.9));
      border: 1px solid rgba(168, 85, 247, 0.24);
      border-radius: 14px;
      padding: 1.1rem;
      transition: all 0.2s ease;
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
      overflow: hidden;
    }
    .service-card {
      position: relative;
      --spot-x: 50%;
      --spot-y: 40%;
      --spot-opacity: 0;
    }
    .service-card::before {
      content: "";
      position: absolute;
      inset: -1px;
      border-radius: inherit;
      pointer-events: none;
      background:
        radial-gradient(
          220px circle at var(--spot-x) var(--spot-y),
          rgba(168, 85, 247, calc(var(--spot-opacity) * 0.30)),
          rgba(59, 130, 246, calc(var(--spot-opacity) * 0.12)) 42%,
          rgba(0, 0, 0, 0) 70%
        );
      opacity: 0.95;
      transition: opacity 0.2s ease;
    }
    .service-card:hover,
    .stack-card:hover,
    .project-card:hover,
    .package-card:hover {
      transform: translateY(-4px);
      border-color: rgba(236, 72, 153, 0.5);
      background: linear-gradient(170deg, rgba(24, 24, 36, 0.96), rgba(18, 18, 28, 0.93));
    }
    .service-card,
    .stack-card,
    .project-card,
    .package-card,
    .project-preview,
    .achievements-list li,
    .gallery-item,
    .certs-grid figure {
      will-change: transform, opacity;
    }
    .service-card:hover,
    .stack-card:hover,
    .project-card:hover,
    .package-card:hover,
    .project-preview:hover,
    .gallery-item:hover,
    .certs-grid figure:hover {
      box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
    }
    .reveal {
      opacity: 0;
      transform: translateY(18px) scale(0.99);
      filter: blur(4px);
      transition: opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1), transform 0.62s cubic-bezier(0.22, 1, 0.36, 1), filter 0.62s cubic-bezier(0.22, 1, 0.36, 1);
      transition-delay: var(--reveal-delay, 0ms);
    }
    .reveal.in-view {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
    }
    .service-card h3,
    .stack-card h3,
    .project-card h3,
    .package-card h3 {
      font-size: 1.02rem;
      margin-bottom: 0.5rem;
      color: #fff;
    }
    .service-card p,
    .stack-card p,
    .project-card p,
    .package-card p {
      color: var(--text-muted);
      font-size: 0.92rem;
    }
    @media (prefers-reduced-motion: reduce) {
      .shimmer-lite { animation: none; }
      .service-card::before { display: none; }
    }
    .package-card {
      position: relative;
      overflow: hidden;
    }
    .package-card.featured {
      border-color: rgba(236, 72, 153, 0.55);
      box-shadow: 0 12px 28px rgba(168, 85, 247, 0.18);
    }
    .package-card.featured::after {
      content: "Popular";
      position: absolute;
      top: 10px;
      right: 10px;
      font-size: 0.72rem;
      padding: 0.2rem 0.45rem;
      border-radius: 999px;
      background: var(--gradient);
      color: #fff;
      font-weight: 600;
    }
    span.package-price {
      margin-top: 0.7rem;
      display: block !important;
      font-size: 0.95rem;
      color: var(--text-muted);
      font-weight: 500;
    }
    .package-price strong {
      font-size: 1.35rem;
      font-weight: 800;
      color: #fff;
    }
    .package-note {
      margin-top: 0.65rem;
      color: var(--text-muted);
      font-size: 0.9rem;
      line-height: 1.45;
    }
    .package-fit {
      margin-top: 0.45rem;
      color: var(--text);
      font-size: 0.84rem;
      font-weight: 600;
      letter-spacing: 0.01em;
      opacity: 0.94;
    }
    .service-list {
      margin-top: 0.65rem;
      color: var(--text-muted);
      padding-inline-start: 1rem;
      font-size: 0.9rem;
    }
    .service-list li { margin-bottom: 0.3rem; }
    .package-actions {
      margin-top: 0.85rem;
      display: flex;
      gap: 0.65rem;
      flex-wrap: wrap;
    }
    .btn.btn-sm {
      font-size: 0.86rem;
      padding: 0.5rem 0.9rem;
      border-radius: 8px;
    }
    .section-intro {
      color: var(--text-muted);
      max-width: 680px;
      margin: -0.5rem 0 1rem;
      font-size: 0.92rem;
    }
    .text-expand-wrap {
      margin-top: 0.45rem;
    }
    .more-inline {
      display: none;
    }
    .text-expand-wrap.expanded .more-inline {
      display: inline;
    }
    .text-more-btn {
      margin-top: 0.5rem;
      border: 1px solid rgba(168, 85, 247, 0.35);
      background: rgba(255, 255, 255, 0.03);
      color: var(--text);
      border-radius: 999px;
      padding: 0.34rem 0.72rem;
      font-size: 0.78rem;
      cursor: pointer;
    }
    .mobile-more-wrap {
      display: flex;
      justify-content: center;
      margin: 0.4rem 0 1rem;
    }
    .mobile-more-btn {
      display: none;
      background: var(--surface2);
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 0.52rem 0.9rem;
      font-size: 0.84rem;
      cursor: pointer;
    }
    /* Certifications text list: collapse with a Show more button on all viewports */
    .achievements-list.cert-text li:nth-child(n+7) { display: none; }
    .achievements-list.cert-text.expanded li:nth-child(n+7) { display: flex; }
    .cert-text-more-wrap { display: flex; justify-content: center; margin: 0.4rem 0 0.5rem; }
    .cert-text-more-wrap .mobile-more-btn { display: inline-flex; align-items: center; justify-content: center; }
    .subsection-title {
      margin: 1.1rem 0 0.9rem;
      font-size: 1rem;
      color: var(--text);
      font-weight: 700;
    }
    .project-preview-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1rem;
    }
    .project-preview {
      background: linear-gradient(170deg, rgba(20,20,30,0.94), rgba(14,14,22,0.9));
      border: 1px solid rgba(168, 85, 247, 0.24);
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    }
    .project-preview img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      display: block;
      filter: saturate(0.9) contrast(1.04);
      transition: filter 0.22s ease;
    }
    .project-preview:hover img {
      filter: saturate(1) contrast(1.08);
    }
    .project-preview .preview-body {
      padding: 0.9rem;
    }
    .project-preview h3 {
      color: #fff;
      font-size: 0.98rem;
      margin-bottom: 0.35rem;
    }
    .project-preview p {
      color: var(--text-muted);
      font-size: 0.88rem;
    }
    /* Achievements */
    .achievements-list { list-style: none; }
    .achievements-list li {
      background: linear-gradient(170deg, rgba(20,20,30,0.95), rgba(14,14,22,0.91));
      border: 1px solid rgba(168, 85, 247, 0.22);
      border-radius: 14px;
      padding: 1.25rem 1.5rem;
      margin-bottom: 1rem;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
    }
    .achievements-list li:hover {
      border-color: rgba(236, 72, 153, 0.52);
      transform: translateY(-3px);
      box-shadow: 0 14px 30px rgba(124, 58, 237, 0.2);
      transition: all 0.2s ease;
    }
    .achievement-title { font-weight: 600; color: var(--text); }
    .achievement-meta { font-size: 0.9rem; color: var(--text-muted); }
    .badge {
      display: inline-block;
      padding: 0.28rem 0.72rem;
      border-radius: 999px;
      font-size: 0.77rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      border: 1px solid rgba(255, 255, 255, 0.14);
    }
    .badge-1st { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
    .badge-2nd { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
    .badge-3rd { background: linear-gradient(135deg, #b45309, #92400e); color: #fff; }
    .badge-5th { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; }
    .badge-cert { background: var(--gradient); color: #fff; }
    /* Gallery */
    .gallery {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.5rem;
    }
    .gallery-item {
      border-radius: var(--radius);
      overflow: hidden;
      position: relative;
      border: 1px solid rgba(168, 85, 247, 0.22);
      background: linear-gradient(180deg, rgba(20,20,30,0.94), rgba(14,14,22,0.9));
      transition: all 0.22s ease;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    }
    .gallery-item:hover {
      transform: translateY(-5px);
      border-color: rgba(236, 72, 153, 0.55);
      box-shadow: 0 16px 34px rgba(124, 58, 237, 0.24);
    }
    .gallery-item img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      display: block;
      border-bottom: 1px solid rgba(168, 85, 247, 0.24);
      filter: saturate(0.88) contrast(1.04);
      transition: filter 0.22s ease;
    }
    .gallery-item:hover img {
      filter: saturate(1) contrast(1.08);
    }
    .gallery-item figcaption {
      padding: 1rem;
      font-size: 0.9rem;
      color: var(--text-muted);
    }
    .gallery-item::before,
    .certs-grid figure::before,
    .project-preview::before {
      content: "BYTE FORGE";
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: clamp(1rem, 2.4vw, 1.45rem);
      font-weight: 800;
      letter-spacing: 0.22em;
      color: rgba(255, 255, 255, 0.2);
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 0 10px rgba(168, 85, 247, 0.28);
      transform: rotate(-18deg);
      mix-blend-mode: normal;
      opacity: 0.78;
      pointer-events: none;
      z-index: 2;
    }
    .gallery-item::after,
    .certs-grid figure::after,
    .project-preview::after {
      content: "BYTE FORGE";
      position: absolute;
      top: 10px;
      right: 10px;
      font-size: 0.64rem;
      letter-spacing: 0.08em;
      color: rgba(255, 255, 255, 0.3);
      background: rgba(0, 0, 0, 0.22);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 999px;
      padding: 0.12rem 0.42rem;
      pointer-events: none;
      z-index: 3;
    }
    /* Certifications */
    .certs-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 1.5rem;
    }
    .certs-grid figure {
      border-radius: var(--radius);
      overflow: hidden;
      position: relative;
      border: 1px solid rgba(168, 85, 247, 0.22);
      background: linear-gradient(180deg, rgba(20,20,30,0.94), rgba(14,14,22,0.9));
      margin: 0;
      transition: all 0.22s ease;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    }
    .certs-grid figure:hover {
      transform: translateY(-5px);
      border-color: rgba(236, 72, 153, 0.55);
      background: var(--surface2);
      box-shadow: 0 16px 34px rgba(124, 58, 237, 0.24);
    }
    .certs-grid figure img {
      width: 100%;
      height: 180px;
      object-fit: contain;
      background: #fff;
      display: block;
      border-bottom: 1px solid rgba(168, 85, 247, 0.24);
      padding: 0.3rem;
      filter: saturate(0.94) contrast(1.02);
      transition: filter 0.22s ease;
    }
    .certs-grid figure:hover img {
      filter: saturate(1.02) contrast(1.04);
    }
    .certs-grid figcaption {
      padding: 0.75rem 1rem;
      font-size: 0.85rem;
      color: var(--text-muted);
      word-wrap: break-word;
      overflow-wrap: break-word;
    }
    .cert-note {
      display: block;
      margin-top: 0.35rem;
      color: rgba(232, 232, 239, 0.82);
      font-size: 0.78rem;
      line-height: 1.45;
    }
    /* Contact */
    .contact-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      justify-content: center;
    }
    .contact-trust {
      margin-top: 0.55rem;
      font-size: 0.8rem;
      color: var(--text-muted);
      text-align: center;
    }
    .mini-testimonials {
      margin: 1rem 0 0.8rem;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.6rem;
    }
    .mini-testimonial {
      border: 1px solid var(--border);
      background: rgba(255, 255, 255, 0.02);
      border-radius: 10px;
      padding: 0.55rem 0.65rem;
      font-size: 0.8rem;
      color: var(--text-muted);
      line-height: 1.4;
    }
    .contact-panel {
      background: radial-gradient(circle at 0% 0%, rgba(168, 85, 247, 0.22), rgba(26, 26, 38, 0.96) 42%);
      border: 1px solid rgba(236, 72, 153, 0.22);
      border-radius: 20px;
      padding: clamp(1rem, 2.2vw, 1.45rem);
      text-align: center;
      box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
    }
    .contact-panel p {
      color: var(--text-muted);
      max-width: 760px;
      margin: 0 auto 0.9rem;
    }
    .contact-lead {
      font-size: 1.06rem;
      line-height: 1.5;
      color: #ececf5;
      margin-bottom: 0.35rem;
    }
    .contact-sub {
      font-size: 0.93rem;
      margin-bottom: 1rem !important;
    }
    .inquiry-form {
      margin: 0 auto 0.8rem;
      max-width: 820px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.8rem;
      text-align: start;
    }
    .form-milestones {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.5rem;
      margin: 0 auto 0.6rem;
      max-width: 680px;
    }
    .milestone-chip {
      border: 1px solid var(--border);
      background: rgba(255, 255, 255, 0.02);
      color: var(--text-muted);
      border-radius: 999px;
      padding: 0.28rem 0.5rem;
      font-size: 0.75rem;
      text-align: center;
      transition: all 0.2s ease;
    }
    .milestone-chip.done {
      border-color: rgba(134, 239, 172, 0.55);
      color: #d1fae5;
      background: rgba(16, 185, 129, 0.12);
    }
    .milestone-chip.active-step {
      border-color: rgba(236, 72, 153, 0.65);
      color: #fff;
      background: rgba(236, 72, 153, 0.16);
      transform: translateY(-1px);
    }
    .inquiry-field {
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }
    .inquiry-field.full {
      grid-column: 1 / -1;
    }
    .inquiry-field label {
      font-size: 0.84rem;
      color: var(--text-muted);
    }
    .inquiry-field input,
    .inquiry-field select,
    .inquiry-field textarea {
      width: 100%;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text);
      border-radius: 10px;
      padding: 0.62rem 0.72rem;
      font-family: inherit;
      font-size: 0.9rem;
    }
    .inquiry-field textarea {
      min-height: 80px;
      resize: vertical;
    }
    .inquiry-submit {
      grid-column: 1 / -1;
      justify-self: center;
      margin-top: 0.15rem;
    }
    .form-feedback {
      grid-column: 1 / -1;
      text-align: center;
      font-size: 0.88rem;
      color: var(--text-muted);
      min-height: 1.2rem;
      margin-top: 0.2rem;
    }
    .form-feedback.is-warn {
      color: #fbbf24;
    }
    .form-feedback.is-ok {
      color: #86efac;
    }
    .form-feedback.success-pulse {
      animation: successPulse 0.45s ease;
    }
    @keyframes successPulse {
      0% { transform: scale(1); opacity: 0.85; }
      40% { transform: scale(1.02); opacity: 1; }
      100% { transform: scale(1); opacity: 1; }
    }
    .mobile-sticky-cta {
      display: none;
    }
    footer {
      padding: 2rem 1.5rem;
      text-align: center;
      border-top: 1px solid var(--border);
      color: var(--text-muted);
      font-size: 0.9rem;
    }
    
    footer a { color: var(--accent); text-decoration: none; }
    footer a:hover { text-decoration: underline; }
    @media (max-width: 1024px) {
      .top-nav a {
        font-size: 0.8rem;
        padding: 0.28rem 0.4rem;
      }
    }
    @media (max-width: 1023px) {
      html { scroll-behavior: auto; }
      .header-inner {
        height: 58px;
        padding: 0 1rem;
      }
      header {
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
      }
      body::before {
        height: 360px;
      }
      section { padding: 3.2rem 0; }
      .hero {
        min-height: auto;
        padding: 4.1rem 1rem 1.8rem;
      }
      .hero-panel {
        padding: 0.5rem 0 0;
      }
      .hero-avatar {
        width: 136px;
        height: 136px;
        margin-bottom: 0.72rem;
      }
      .hero .tagline {
        font-size: 1rem;
        margin-bottom: 1rem;
      }
      .hero-subline {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
      }
      .btn {
        padding: 0.7rem 1.1rem;
      }
      .section-title {
        margin-bottom: 1.2rem;
      }
      .section-intro {
        margin: -0.4rem 0 1.1rem;
      }
      .about-grid { gap: 1.2rem; }
      .gallery { gap: 1rem; }
      .certs-grid { gap: 1rem; }
      .inquiry-form { grid-template-columns: 1fr; }
      .inquiry-field input,
      .inquiry-field select,
      .inquiry-field textarea {
        font-size: 16px;
      }
      .top-nav {
        display: none !important;
      }
      .menu-btn {
        display: inline-flex;
      }
      .mobile-menu {
        display: grid;
        position: fixed;
        top: calc(58px + env(safe-area-inset-top, 0));
        right: 0.85rem;
        left: 0.85rem;
        z-index: 130;
        background: rgba(10, 10, 15, 0.96);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 0.45rem;
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(0, -8px, 0) scale(0.985);
        transform-origin: top center;
        transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.24s;
      }
      body.rtl .mobile-menu {
        direction: rtl;
      }
      .mobile-menu.open {
        grid-template-columns: 1fr;
        gap: 0.3rem;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate3d(0, 0, 0) scale(1);
      }
      .mobile-menu a {
        text-decoration: none;
        color: var(--text);
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 9px;
        padding: 0.62rem 0.72rem;
        font-size: 0.9rem;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
      }
      .mobile-menu.open a { opacity: 1; transform: translateY(0); }
      .mobile-menu.open a:nth-child(1) { transition-delay: 0.04s; }
      .mobile-menu.open a:nth-child(2) { transition-delay: 0.08s; }
      .mobile-menu.open a:nth-child(3) { transition-delay: 0.12s; }
      .mobile-menu.open a:nth-child(4) { transition-delay: 0.16s; }
      .mobile-menu.open a:nth-child(5) { transition-delay: 0.2s; }
      .mobile-menu.open a:nth-child(6) { transition-delay: 0.24s; }
      .mobile-menu a.active {
        border-color: rgba(168, 85, 247, 0.55);
        background: rgba(168, 85, 247, 0.14);
      }
    }
    @media (max-width: 700px) {
      body::after {
        opacity: 0.3;
        animation-duration: 34s;
      }
      html {
        overflow-x: hidden !important;
        overscroll-behavior-x: none;
      }
      body {
        overflow-x: hidden !important;
        overscroll-behavior-x: none;
      }
      .why-panel { padding: 1.5rem 1.2rem 1.2rem; }
      .why-num { font-size: 1.3rem; min-width: 1.8rem; }
      .project-preview img,
      .gallery-item img,
      .certs-grid figure img,
      .about-photo,
      .hero-avatar {
        pointer-events: none;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
      }
      #contact .contact-panel {
        padding: 1rem 0.85rem;
        border-radius: 14px;
      }
      #contact .contact-lead {
        margin-bottom: 0.45rem !important;
        font-size: 0.9rem;
      }
      #contact .contact-sub {
        display: none !important;
      }
      #contact .form-milestones {
        margin-bottom: 0.55rem;
        gap: 0.4rem;
      }
      #contact .inquiry-form {
        margin-bottom: 0.75rem;
        gap: 0.6rem;
      }
      #contact .inquiry-field label {
        font-size: 0.8rem;
      }
      #contact .inquiry-field input,
      #contact .inquiry-field select,
      #contact .inquiry-field textarea {
        padding: 0.52rem 0.62rem;
        font-size: 0.86rem;
      }
      #contact .inquiry-field textarea {
        min-height: 78px;
      }
      #contact .inquiry-submit {
        margin-top: 0;
      }
      #contact .form-feedback {
        min-height: 0.8rem;
        font-size: 0.8rem;
        margin-top: 0.05rem;
      }
      #achievements .achievements-list li {
        padding: 0.95rem 1rem;
        margin-bottom: 0.72rem;
        gap: 0.7rem;
      }
      #achievements .achievement-title {
        font-size: 0.95rem;
      }
      #achievements .achievement-meta {
        font-size: 0.84rem;
      }
      .logo-text { display: none !important; }
      .section-title { text-align: start; }
      section { padding: 2.6rem 0; margin-top: 0.3rem; }
      .hero {
        padding: 3.15rem 0.85rem 0.6rem;
      }
      .hero-avatar {
        width: 130px;
        height: 130px;
        margin-bottom: 0.45rem;
      }
      .hero-brand {
        font-size: clamp(1.7rem, 8vw, 2.2rem);
        margin-bottom: 0.15rem;
      }
      .hero-name {
        font-size: 1.12rem;
        margin-bottom: 0.3rem;
      }
      .hero .tagline {
        font-size: 0.92rem;
        margin-bottom: 0.25rem;
      }
      .hero-subline {
        max-width: 420px;
        margin-bottom: 0.52rem;
        font-size: 0.84rem;
      }
      .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.45rem;
        margin-top: 0.5rem;
      }
      .hero-stat:nth-child(3) { grid-column: 1 / -1; }
      .hero-proof-mini {
        display: flex;
      }
      .hero-cta {
        gap: 0.6rem;
      }
      .hero-cta .btn {
        width: auto;
        min-width: 0;
        padding: 0.54rem 0.82rem;
        font-size: 0.82rem;
      }
      .hero-stat:nth-child(3) { display: none; }
      .contact-grid .btn,
      .package-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 42px;
      }
      .hero-cta .btn {
        min-height: 38px;
      }
      .package-actions { width: 100%; }
      #services .services-grid,
      #packages .packages-grid,
      #projects .project-preview-grid,
      #certifications .certs-grid,
      #gallery .gallery {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(82vw, 1fr);
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
        padding-bottom: 0.35rem;
        pointer-events: auto;
        padding-inline: 0.12rem;
      }
      body.rtl #services .services-grid,
      body.rtl #packages .packages-grid,
      body.rtl #projects .project-preview-grid,
      body.rtl #certifications .certs-grid,
      body.rtl #gallery .gallery {
        direction: ltr;
      }
      #services .service-card,
      #packages .package-card,
      #projects .project-preview,
      #certifications .certs-grid figure,
      #gallery .gallery-item {
        scroll-snap-align: start;
        pointer-events: auto;
        margin-block: 0.04rem;
      }
      #packages .package-note {
        display: none !important;
      }
      #packages .package-card {
        padding: 0.78rem;
      }
      #packages .package-card h3 {
        margin-bottom: 0.35rem;
        font-size: 0.98rem;
      }
      #packages .package-card p,
      #services .service-card p {
        margin-bottom: 0.24rem;
      }
      #packages .package-fit {
        font-size: 0.81rem;
      }
      #packages .package-price {
        margin-top: 0.5rem;
        font-size: 0.88rem;
      }
      #packages .package-price strong {
        font-size: 1.22rem;
      }
      #packages .package-actions {
        margin-top: 0.58rem;
      }
      #services .service-card {
        padding: 0.9rem;
      }
      #services .service-card::before {
        display: none;
      }
      .hero-stat {
        padding: 0.6rem 0.5rem;
      }
      .hero-stat strong {
        font-size: 0.98rem;
      }
      .hero-stat span {
        font-size: 0.75rem;
      }
      .gallery-item figcaption,
      .certs-grid figcaption {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      #achievements .achievements-list.top-wins li:nth-child(n+4),
      #certifications .certs-grid.compact figure:nth-child(n+7) {
        display: none;
      }
      #achievements .achievements-list.top-wins.expanded li,
      #certifications .certs-grid.compact.expanded figure {
        display: block;
      }
      .mobile-more-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }
      .form-milestones {
        grid-template-columns: 1fr;
      }
      
      .mini-testimonials {
        grid-template-columns: 1fr;
        margin-top: 0.75rem;
      }
      
      .mobile-sticky-cta {
        position: fixed;
        left: 0.8rem;
        right: 0.8rem;
        bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        z-index: 120;
        background: rgba(10, 10, 15, 0.92);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 0.55rem;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
        transition: transform 0.22s ease, opacity 0.22s ease;
      }
      .mobile-sticky-cta.is-hidden {
        transform: translateY(calc(100% + 18px));
        opacity: 0;
        pointer-events: none;
      }
      .mobile-sticky-cta a {
        text-decoration: none;
        text-align: center;
        border-radius: 8px;
        padding: 0.62rem 0.5rem;
        font-size: 0.84rem;
        font-weight: 600;
      }
      .mobile-sticky-cta .cta-wa {
        background: var(--gradient);
        color: #fff;
      }
      .mobile-sticky-cta .cta-packages {
        background: var(--surface2);
        border: 1px solid var(--border);
        color: var(--text);
      }
      body {
        padding-bottom: 5.1rem;
      }
    }
    @media (prefers-reduced-motion: reduce) {
      * { scroll-behavior: auto !important; transition: none !important; }
      body::before,
      body::after,
      .hero-avatar.hero-logo {
        animation: none !important;
      }
      body.fm-ready .hero-panel .fm-item {
        opacity: 1 !important;
        filter: none !important;
      }
      body::before {
        transform: none !important;
      }
      .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition-delay: 0ms !important;
      }
    }

    .card-link {
      display: inline-block;
      margin-top: 0.75rem;
      color: var(--accent);
      font-weight: 600;
      font-size: 0.9rem;
      text-decoration: none;
      transition: color 0.2s;
    }
    .card-link:hover { color: var(--accent2); }

    /* ===== Institute demo dashboard ===== */
    .demo-note {
      text-align: center;
      color: var(--text-muted);
      font-size: 0.9rem;
      margin: -0.5rem auto 1.4rem;
      max-width: 640px;
    }
    .demo-shell {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--surface);
      box-shadow: var(--shadow);
      max-width: 960px;
      margin: 0 auto;
    }
    .demo-bar {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.7rem 1rem;
      background: var(--surface2);
      border-bottom: 1px solid var(--border);
    }
    .demo-dot {
      width: 11px; height: 11px; border-radius: 50%;
      background: var(--surface3);
      flex: 0 0 auto;
    }
    .demo-url {
      margin-inline-start: 0.6rem;
      font-size: 0.8rem;
      color: var(--text-muted);
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 0.15rem 0.8rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .demo-badge {
      margin-inline-start: auto;
      font-size: 0.66rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      color: var(--accent2);
      border: 1px solid var(--accent2);
      border-radius: 999px;
      padding: 0.12rem 0.55rem;
      white-space: nowrap;
    }
    .demo-body { display: flex; min-height: 340px; }
    .demo-side {
      flex: 0 0 180px;
      background: var(--surface2);
      border-inline-end: 1px solid var(--border);
      padding: 0.7rem;
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
    }
    .demo-tab {
      text-align: start;
      background: transparent;
      border: none;
      color: var(--text-muted);
      font: inherit;
      font-size: 0.9rem;
      padding: 0.6rem 0.8rem;
      border-radius: 10px;
      cursor: pointer;
      transition: background 0.2s, color 0.2s;
    }
    .demo-tab:hover { color: var(--text); background: var(--surface3); }
    .demo-tab.active { color: #fff; background: var(--gradient); }
    .demo-main { flex: 1 1 auto; padding: 1.1rem; min-width: 0; }
    .demo-view { display: none; }
    .demo-view.active { display: block; }
    .demo-stats {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 0.7rem;
      margin-bottom: 1rem;
    }
    .demo-stat {
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 0.8rem;
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
    }
    .demo-stat strong { font-size: 1.3rem; color: var(--text); }
    .demo-stat span { font-size: 0.78rem; color: var(--text-muted); }
    .demo-stat.warn strong { color: #f0a83c; }
    .demo-card {
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1rem;
    }
    .demo-card h4 { font-size: 0.95rem; margin-bottom: 0.7rem; color: var(--text); }
    .demo-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
    .demo-list li {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.6rem;
      font-size: 0.85rem;
      color: var(--text);
      padding: 0.45rem 0.6rem;
      background: var(--bg);
      border-radius: 8px;
    }
    .demo-table-wrap { overflow-x: auto; }
    .demo-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
    .demo-table th, .demo-table td {
      text-align: start;
      padding: 0.6rem 0.7rem;
      border-bottom: 1px solid var(--border);
      white-space: nowrap;
    }
    .demo-table th { color: var(--text-muted); font-weight: 600; font-size: 0.78rem; }
    .demo-table td { color: var(--text); }
    .demo-pill {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 600;
      padding: 0.15rem 0.6rem;
      border-radius: 999px;
      white-space: nowrap;
    }
    .demo-pill.ok { color: #4ade80; background: rgba(74, 222, 128, 0.12); }
    .demo-pill.warn { color: #f0a83c; background: rgba(240, 168, 60, 0.12); }
    .demo-pill.danger { color: #f87171; background: rgba(248, 113, 113, 0.12); }
    .demo-pill.muted { color: var(--text-muted); background: var(--surface3); }
    .demo-bars { display: flex; flex-direction: column; gap: 0.7rem; }
    .demo-bar-row { display: flex; align-items: center; gap: 0.7rem; font-size: 0.8rem; color: var(--text-muted); }
    .demo-bar-row > span:first-child { flex: 0 0 34px; }
    .demo-bar-row > span:last-child { flex: 0 0 44px; text-align: end; color: var(--text); }
    .demo-bar-track { flex: 1 1 auto; height: 10px; background: var(--surface3); border-radius: 999px; overflow: hidden; }
    .demo-bar-fill { height: 100%; background: var(--gradient); border-radius: 999px; }
    @media (max-width: 720px) {
      .demo-body { flex-direction: column; }
      .demo-side {
        flex: 0 0 auto;
        flex-direction: row;
        overflow-x: auto;
        border-inline-end: none;
        border-bottom: 1px solid var(--border);
      }
      .demo-tab { white-space: nowrap; }
      .demo-stats { grid-template-columns: 1fr 1fr; }
    }
