/* Block 1 */
:root {
      --arushan-logo-glyph: url("/img/logo-glyph.webp");
      --bg: #080b14;
      --side: #0c101b;
      --surface: #111625;
      --raised: #181e31;
      --text: #f7f8fc;
      --muted: #98a2b8;
      --line: rgba(255, 255, 255, 0.11);
      --v: #8b5cf6;
      --p: #f472b6;
      --c: #22d3ee;
      --green: #65dba8;
      --red: #f87171;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      font:
        15px/1.5 Inter,
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
    }

    button,
    input,
    textarea,
    select {
      font: inherit;
    }

    button {
      cursor: pointer;
    }

    .hidden {
      display: none !important;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      cursor: pointer;
      user-select: none;
      color: #09090b;
      line-height: 1;
    }

    .logo {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background-color: transparent;
      background-image: var(--arushan-logo-glyph);
      background-size: 80% 80%;
      background-position: center center;
      background-repeat: no-repeat;
      border: 1px solid rgba(0, 0, 0, 0.08);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 1.5px rgba(0, 0, 0, 0.02);
      display: inline-block;
      flex: none;
      color: transparent;
      overflow: hidden;
      text-indent: -9999px;
      box-sizing: border-box;
    }

    .btn {
      min-height: 44px;
      border: 1px solid var(--line);
      border-radius: 11px;
      padding: 0 16px;
      color: var(--text);
      background: var(--surface);
      font-weight: 750;
    }

    .btn.primary {
      border: 0;
      background: linear-gradient(110deg, var(--v), var(--p));
      box-shadow: 0 12px 30px rgba(139, 92, 246, 0.22);
    }

    .btn.danger {
      color: #fecaca;
    }

    .btnlink {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
    }

    .supportbox {
      margin-top: 18px;
      padding: 14px 16px;
      border: 1px solid rgba(34, 211, 238, 0.24);
      background: rgba(34, 211, 238, 0.055);
      border-radius: 13px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }

    .supportbox span {
      color: var(--muted);
      font-size: 13px;
    }

    .supportbox .btn {
      white-space: nowrap;
    }

    .telegram-side {
      margin-top: 12px !important;
      border-color: rgba(34, 211, 238, 0.2) !important;
      color: #a5f3fc !important;
    }

    .input {
      margin: 12px 0;
    }

    .input label {
      display: block;
      color: var(--muted);
      font-size: 11px;
      margin-bottom: 6px;
    }

    .input input,
    .input textarea {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #090d17;
      color: var(--text);
      padding: 0 12px;
      outline: 0;
    }

    .input input {
      height: 46px;
    }

    .input textarea {
      min-height: 76px;
      padding: 11px 12px;
      resize: vertical;
    }

    .input input:focus {
      border-color: var(--v);
      box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.13);
    }

    .lang {
      display: flex;
      background: var(--surface);
      border: 1px solid var(--line);
      padding: 3px;
      border-radius: 10px;
    }

    .lang button {
      border: 0;
      background: transparent;
      color: var(--muted);
      border-radius: 7px;
      padding: 6px 8px;
      font-size: 11px;
      font-weight: 800;
    }

    .lang button.active {
      background: var(--raised);
      color: var(--text);
    }

    .notice {
      padding: 12px 14px;
      border: 1px solid rgba(248, 113, 113, 0.3);
      background: rgba(248, 113, 113, 0.08);
      color: #fecaca;
      border-radius: 11px;
      margin: 14px 0;
    }

    .success {
      border-color: rgba(101, 219, 168, 0.3);
      background: rgba(101, 219, 168, 0.08);
      color: #b7f7d7;
    }

    .landing {
      min-height: 100vh;
      background:
        radial-gradient(circle at 15% 5%,
          rgba(139, 92, 246, 0.17),
          transparent 35%),
        radial-gradient(circle at 90% 70%,
          rgba(34, 211, 238, 0.12),
          transparent 40%);
    }

    .nav {
      height: 74px;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
    }

    .navin {
      width: min(1120px, calc(100% - 40px));
      margin: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .navact {
      display: flex;
      gap: 9px;
      align-items: center;
    }

    .hero {
      width: min(1120px, calc(100% - 40px));
      margin: auto;
      min-height: calc(100vh - 74px);
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      align-items: center;
      gap: 60px;
      padding: 60px 0;
    }

    .badge {
      display: inline-flex;
      gap: 8px;
      align-items: center;
      color: #b7f7d7;
      border: 1px solid rgba(101, 219, 168, 0.25);
      background: rgba(101, 219, 168, 0.06);
      padding: 7px 10px;
      border-radius: 99px;
      font-size: 12px;
      font-weight: 750;
    }

    .badge:before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--green);
    }

    h1 {
      font-size: clamp(48px, 6vw, 78px);
      line-height: 0.98;
      letter-spacing: -4px;
      margin: 22px 0;
    }

    .grad {
      background: linear-gradient(90deg, #c4b5fd, var(--p), #67e8f9);
      background-clip: text;
      color: transparent;
    }

    .lead {
      color: var(--muted);
      font-size: 19px;
      max-width: 610px;
    }

    .heroact {
      display: flex;
      gap: 10px;
      margin-top: 28px;
    }

    .proof {
      margin-top: 24px;
      color: var(--muted);
      font-size: 13px;
    }

    .proof span {
      margin-right: 18px;
    }

    .proof span:before {
      content: "✓";
      color: var(--green);
      margin-right: 6px;
    }

    .demo {
      display: flex;
      justify-content: center;
    }

    .phone {
      width: 310px;
      height: 620px;
      border-radius: 44px;
      background: #03050a;
      border: 1px solid rgba(255, 255, 255, 0.2);
      padding: 11px;
      box-shadow: 0 35px 90px rgba(0, 0, 0, 0.5);
    }

    .screen {
      height: 100%;
      border-radius: 34px;
      background:
        radial-gradient(circle at 20% 0,
          rgba(244, 114, 182, 0.42),
          transparent 35%),
        radial-gradient(circle at 100% 25%,
          rgba(34, 211, 238, 0.23),
          transparent 38%),
        #0d1020;
      padding: 70px 20px;
      text-align: center;
    }

    .screen .logo {
      margin: auto;
      width: 66px;
      height: 66px;
      border-radius: 20px;
      font-size: 26px;
    }

    .screen h2 {
      font-size: 24px;
      margin: 18px 0 4px;
    }

    .screen p {
      color: #bdc2d1;
      font-size: 13px;
    }

    .fake {
      margin-top: 25px;
      padding: 15px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.09);
      border: 1px solid rgba(255, 255, 255, 0.14);
      text-align: left;
      font-weight: 750;
    }

    .fake small {
      display: block;
      color: #b2b7c6;
    }

    .modalbg {
      position: fixed;
      inset: 0;
      background: rgba(2, 4, 9, 0.78);
      backdrop-filter: blur(12px);
      display: none;
      place-items: center;
      z-index: 50;
      padding: 18px;
    }

    .modalbg.open {
      display: grid;
    }

    .modal {
      width: min(430px, 100%);
      background: var(--surface);
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 20px;
      padding: 25px;
    }

    .modal h2 {
      margin: 0 0 5px;
      font-size: 27px;
    }

    .modal>p {
      color: var(--muted);
      margin: 0 0 18px;
    }

    .modal .btn {
      width: 100%;
      margin-top: 8px;
    }

    .switchauth {
      text-align: center;
      color: var(--muted);
      font-size: 13px;
      margin-top: 15px;
    }

    .switchauth button {
      border: 0;
      background: none;
      color: #c4b5fd;
    }

    .app {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 235px 1fr;
    }

    .side {
      position: fixed;
      inset: 0 auto 0 0;
      width: 235px;
      background: var(--side);
      border-right: 1px solid var(--line);
      padding: 18px 13px;
      display: flex;
      flex-direction: column;
    }

    .side-overlay {
      display: none;
    }

    .side-close-btn {
      display: none;
    }

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

    .side .brand {
      padding: 0 7px 20px;
    }

    .snav {
      display: grid;
      gap: 4px;
      margin-top: 15px;
    }

    .snav button {
      height: 43px;
      border: 1px solid transparent;
      border-radius: 10px;
      background: transparent;
      color: var(--muted);
      text-align: left;
      padding: 0 12px;
    }

    .snav button.active {
      background: rgba(139, 92, 246, 0.14);
      border-color: rgba(139, 92, 246, 0.22);
      color: #ddd4ff;
    }

    .sideuser {
      margin-top: auto;
      border-top: 1px solid var(--line);
      padding: 14px 8px;
      color: var(--muted);
      overflow: hidden;
    }

    .sideuser b {
      color: var(--text);
      display: block;
    }

    .main {
      grid-column: 2;
      padding: 28px 34px;
    }

    .top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 18px;
    }

    .top h2 {
      font-size: 30px;
      letter-spacing: -1px;
      margin: 0;
    }

    .top p {
      color: var(--muted);
      margin: 3px 0;
    }

    .topact {
      display: flex;
      gap: 10px;
      align-items: center;
      padding-top: 10px;
    }

    .cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-top: 24px;
    }

    .stat {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 18px;
    }

    .stat small {
      color: var(--muted);
    }

    .stat strong {
      display: block;
      font-size: 27px;
      margin-top: 4px;
    }

    .table {
      margin-top: 18px;
      border: 1px solid var(--line);
      border-radius: 16px;
      overflow: hidden;
      background: var(--surface);
    }

    .thead,
    .row {
      display: grid;
      grid-template-columns: 1.5fr 1.3fr 0.7fr 0.7fr 0.7fr auto;
      gap: 12px;
      align-items: center;
      padding: 13px 16px;
    }

    .thead {
      color: var(--muted);
      font-size: 11px;
      border-bottom: 1px solid var(--line);
    }

    .row {
      border-bottom: 1px solid var(--line);
    }

    .row:last-child {
      border-bottom: 0;
    }

    .slug {
      color: #c4b5fd;
    }

    .status {
      color: #b7f7d7;
      font-size: 12px;
    }

    .rowact {
      display: flex;
      gap: 6px;
    }

    .iconbtn {
      width: 36px;
      height: 36px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: var(--raised);
      color: var(--text);
    }

    .empty {
      padding: 70px 20px;
      text-align: center;
      color: var(--muted);
    }

    .empty b {
      display: block;
      color: var(--text);
      font-size: 21px;
      margin-bottom: 6px;
    }

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

    .check {
      display: flex;
      gap: 9px;
      align-items: center;
      color: var(--muted);
      margin: 12px 0;
    }

    .check input {
      width: 18px;
      height: 18px;
    }

    .editorbg {
      position: fixed;
      inset: 0;
      background: rgba(2, 4, 9, 0.78);
      display: none;
      place-items: center;
      z-index: 40;
      padding: 18px;
    }

    .editorbg.open {
      display: grid;
    }

    .editor {
      width: min(1040px, 100%);
      max-height: 94vh;
      overflow: auto;
      background: var(--surface);
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 20px;
      padding: 24px;
    }

    .editorhead {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .editorhead h3 {
      font-size: 23px;
      margin: 0;
    }

    .editortabs {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 4px;
      padding: 4px;
      background: #0a0e18;
      border: 1px solid var(--line);
      border-radius: 12px;
      margin: 18px 0;
    }

    .editortabs button {
      height: 40px;
      border: 0;
      border-radius: 8px;
      background: transparent;
      color: var(--muted);
    }

    .editortabs button.active {
      background: var(--raised);
      color: var(--text);
    }

    .editorgrid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 330px;
      gap: 20px;
    }

    .pane {
      min-width: 0;
    }

    .pane.hidden {
      display: none;
    }

    .sectionbox {
      border: 1px solid var(--line);
      background: #0c101b;
      border-radius: 14px;
      padding: 16px;
      margin-bottom: 12px;
    }

    .sectionbox h4 {
      margin: 0 0 12px;
      font-size: 12px;
      letter-spacing: 0.8px;
      color: #c9d0df;
    }

    .sectionbox select {
      width: 100%;
      height: 46px;
      background: #090d17;
      color: var(--text);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 0 11px;
    }

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

    .themeopt {
      height: 62px;
      border: 1px solid var(--line);
      border-radius: 11px;
      background: var(--raised);
      color: var(--text);
      text-align: left;
      padding: 10px;
    }

    .themeopt.active {
      border-color: var(--v);
      box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
    }

    .themeopt i {
      display: inline-block;
      width: 18px;
      height: 18px;
      border-radius: 6px;
      margin-right: 8px;
      vertical-align: middle;
      background: linear-gradient(135deg, var(--v), var(--p), var(--c));
    }

    .themeopt[data-theme="dark"] i {
      background: #05070d;
    }

    .themeopt[data-theme="light"] i {
      background: #f7f8fc;
    }

    .themeopt[data-theme="blue"] i {
      background: linear-gradient(135deg, #1d4ed8, #22d3ee);
    }

    .epreview {
      border: 1px solid var(--line);
      border-radius: 18px;
      background: #080b14;
      padding: 13px;
      position: sticky;
      top: 0;
    }

    .epreview>small {
      display: block;
      color: var(--muted);
      margin-bottom: 10px;
    }

    .mini-phone {
      height: 520px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 30px;
      background: #03050a;
      padding: 8px;
    }

    .mini-screen {
      height: 100%;
      border-radius: 23px;
      background:
        radial-gradient(circle at 20% 0,
          rgba(244, 114, 182, 0.42),
          transparent 38%),
        #0d1020;
      text-align: center;
      padding: 28px 15px;
      overflow: hidden;
    }

    .mini-cover {
      height: 110px;
      border: 1px dashed rgba(255, 255, 255, 0.22);
      border-radius: 14px;
      background-size: cover;
      background-position: center;
    }

    .mini-avatar {
      width: 70px;
      height: 70px;
      border-radius: 20px;
      margin: -34px auto 10px;
      background: linear-gradient(135deg, var(--v), var(--p), var(--c));
      background-size: cover;
      background-position: center;
      border: 3px solid #15182a;
      display: grid;
      place-items: center;
      font-weight: 800;
      font-size: 20px;
    }

    .mini-screen h3 {
      margin: 6px 0 4px;
      font-size: 20px;
    }

    .mini-screen p {
      margin: 0 0 17px;
      color: #c2c7d4;
      font-size: 12px;
    }

    .mini-cta {
      padding: 13px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.14);
      font-weight: 750;
    }

    .uploadbox {
      min-height: 78px;
      border: 1px dashed rgba(139, 92, 246, 0.5);
      border-radius: 12px;
      background: rgba(139, 92, 246, 0.06);
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 12px;
      color: #d9d3ff;
      font-weight: 750;
      cursor: pointer;
    }

    .uploadbox:hover {
      background: rgba(139, 92, 246, 0.11);
    }

    .uploadbox input {
      display: none;
    }

    .uploadstate {
      display: block;
      margin-top: 6px;
      color: var(--muted);
      font-size: 11px;
    }

    .extrahead {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .extrahead h4 {
      margin: 0;
    }

    .extralist {
      display: grid;
      gap: 9px;
      margin-top: 12px;
    }

    .extrarow {
      display: grid;
      grid-template-columns: 1fr 1.35fr 36px;
      gap: 8px;
      align-items: center;
    }

    .extrarow input {
      height: 42px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: #090d17;
      color: var(--text);
      padding: 0 10px;
      min-width: 0;
    }

    .mini-extra {
      display: grid;
      gap: 8px;
      margin-top: 9px;
    }

    .mini-link {
      padding: 11px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: rgba(255, 255, 255, 0.07);
      font-weight: 700;
    }

    .buttonshape-pill {
      border-radius: 999px !important;
    }

    .buttonshape-rounded {
      border-radius: 12px !important;
    }

    .buttonshape-square {
      border-radius: 3px !important;
    }

    .themeopt[data-theme="sunset"] i {
      background: linear-gradient(135deg, #f97316, #ec4899);
    }

    .themeopt[data-theme="forest"] i {
      background: linear-gradient(135deg, #14532d, #34d399);
    }

    .themeopt[data-theme="mono"] i {
      background: linear-gradient(135deg, #111827, #9ca3af);
    }

    .themeopt[data-theme="candy"] i {
      background: linear-gradient(135deg, #f0abfc, #67e8f9);
    }

    .editorfoot {
      display: flex;
      justify-content: flex-end;
      gap: 9px;
      margin-top: 20px;
    }

    .activation {
      min-height: 100svh;
      background:
        radial-gradient(circle at 18% 0,
          rgba(139, 92, 246, 0.2),
          transparent 38%),
        radial-gradient(circle at 90% 80%,
          rgba(34, 211, 238, 0.1),
          transparent 38%),
        var(--bg);
      padding: 24px;
    }

    .activation-nav {
      width: min(980px, 100%);
      margin: 0 auto 34px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .activation-card {
      width: min(610px, 100%);
      margin: 0 auto;
      background: var(--surface);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 24px;
      padding: 30px;
      box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
    }

    .activation-icon {
      width: 60px;
      height: 60px;
      border-radius: 18px;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, #229ed9, #67e8f9);
      font-size: 26px;
      box-shadow: 0 14px 35px rgba(34, 158, 217, 0.22);
    }

    .activation-card h1 {
      font-size: 34px;
      line-height: 1.08;
      letter-spacing: -1.4px;
      margin: 20px 0 10px;
    }

    .activation-card>p {
      color: var(--muted);
      font-size: 16px;
    }

    .activation-condition {
      margin: 20px 0;
      padding: 15px 16px;
      border: 1px solid rgba(34, 211, 238, 0.25);
      background: rgba(34, 211, 238, 0.07);
      border-radius: 14px;
      color: #cffafe;
    }

    .activation-steps {
      display: grid;
      gap: 10px;
      margin: 20px 0;
    }

    .activation-step {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 12px;
      background: #0b0f1a;
      border: 1px solid var(--line);
      border-radius: 12px;
    }

    .activation-step i {
      width: 26px;
      height: 26px;
      flex: 0 0 26px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: rgba(139, 92, 246, 0.18);
      color: #ddd4ff;
      font-style: normal;
      font-weight: 800;
      font-size: 12px;
    }

    .activation-actions {
      display: grid;
      gap: 9px;
    }

    .activation-actions .btn {
      width: 100%;
    }

    .activation-note {
      text-align: center;
      color: var(--muted);
      font-size: 12px;
      margin-top: 15px;
    }

    .activation-user {
      color: var(--muted);
      font-size: 13px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    @media (max-width: 600px) {
      .activation {
        padding: 16px;
      }

      .activation-nav {
        margin-bottom: 20px;
        align-items: flex-start;
        flex-direction: column;
      }

      .activation-nav>div:last-child {
        width: 100%;
        justify-content: space-between;
      }

      .activation-user {
        max-width: 155px;
      }

      .activation-card {
        padding: 22px 18px;
        border-radius: 20px;
      }

      .activation-card h1 {
        font-size: 29px;
      }

      .activation-nav .brand {
        font-size: 19px;
      }
    }

    .redirect {
      min-height: 100svh;
      min-height: 100dvh;
      width: 100%;
      box-sizing: border-box;
      background:
        radial-gradient(circle at 20% 0,
          rgba(139, 92, 246, 0.2),
          transparent 40%),
        var(--bg);
      background-size: cover !important;
      background-position: center center !important;
      background-repeat: no-repeat !important;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      padding: 40px 16px 44px;
      overflow-y: auto;
    }

    .redirectcard {
      width: min(440px, 100%);
      max-width: 440px;
      background: transparent !important;
      border: none !important;
      border-radius: 0 !important;
      box-shadow: none !important;
      padding: 0 !important;
      margin: 0 auto !important;
      text-align: center;
      display: flex !important;
      flex-direction: column !important;
      box-sizing: border-box;
    }

    .redirectcard.redirect-status-card {
      background: var(--surface) !important;
      border: 1px solid var(--line) !important;
      border-radius: 22px !important;
      padding: 26px !important;
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45) !important;
      margin: auto !important;
    }

    .redirectcard .logo {
      margin: 0 auto 10px;
    }

    .redirectcard h1 {
      font-size: 28px;
      letter-spacing: -0.5px;
      line-height: 1.15;
      margin: 12px 0 6px !important;
      font-weight: 800;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    }

    .redirectcard p {
      color: var(--muted);
      margin: 0 0 16px !important;
      text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    }

    .redirectcard .btn {
      width: 100%;
      margin-top: 10px !important;
      box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    }

    .small {
      font-size: 12px;
      color: var(--muted);
    }

    .menu {
      display: none;
    }

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

      .epreview {
        position: relative;
      }

      .mini-phone {
        max-width: 320px;
        margin: auto;
      }

      .hero {
        grid-template-columns: 1fr;
        text-align: center;
      }

      .lead {
        margin: auto;
      }

      .heroact,
      .proof {
        justify-content: center;
      }

      .demo {
        display: none;
      }

      .app {
        grid-template-columns: 1fr;
      }

      .side-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 89;
      }

      .side-overlay.open {
        opacity: 1;
        pointer-events: auto;
      }

      .side {
        transform: translateX(-100%);
        z-index: 90;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        width: 275px;
        max-width: 82vw;
        box-shadow: 14px 0 35px rgba(23, 25, 28, 0.2) !important;
        padding-top: max(18px, env(safe-area-inset-top));
        padding-bottom: max(18px, env(safe-area-inset-bottom));
      }

      .side.open {
        transform: translateX(0);
      }

      .side-header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 4px 16px;
      }

      .side-header-row .brand {
        padding: 0 !important;
        margin: 0 !important;
      }

      .side-close-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: #f4f4f5;
        border: 1px solid #d5d1c8;
        color: #171717;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.15s ease;
        touch-action: manipulation;
      }

      .side-close-btn:hover {
        background: #e5e2d8;
      }

      .side-close-btn:active {
        transform: scale(0.95);
      }

      .main {
        grid-column: 1;
        padding: 20px;
      }

      .menu {
        display: inline-block;
      }

      .cards {
        grid-template-columns: 1fr 1fr;
      }

      .thead {
        display: none;
      }

      .row {
        grid-template-columns: 1fr auto;
      }

      .row>div:nth-child(n + 3):nth-child(-n + 5) {
        display: none;
      }

      .rowact {
        grid-column: 2;
        grid-row: 1/3;
      }

      .formgrid {
        grid-template-columns: 1fr;
      }
    }

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

      .extrarow input:nth-child(2) {
        grid-column: 1/3;
      }

      .editorbg {
        padding: 0;
      }

      .editor {
        max-height: 100vh;
        min-height: 100vh;
        border-radius: 0;
        padding: 14px;
      }

      .editortabs {
        position: sticky;
        top: -14px;
        z-index: 3;
      }

      .themes {
        grid-template-columns: 1fr 1fr;
      }

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

      .supportbox .btn {
        width: 100%;
      }

      .navin,
      .hero {
        width: calc(100% - 28px);
      }

      .navact .btn:not(.primary) {
        display: none;
      }

      .hero {
        padding: 40px 0;
        min-height: auto;
      }

      .hero h1 {
        font-size: 48px;
        letter-spacing: -2.7px;
      }

      .lead {
        font-size: 16px;
      }

      .heroact {
        flex-direction: column;
      }

      .proof {
        display: grid;
        gap: 6px;
        text-align: left;
      }

      .main {
        padding: 16px;
      }

      .top {
        align-items: center;
      }

      .top h2 {
        font-size: 25px;
      }

      .topact .lang {
        display: none;
      }

      .cards {
        grid-template-columns: 1fr;
      }

      .stat:nth-child(3) {
        display: none;
      }

      .table {
        margin-top: 12px;
      }

      .editor {
        padding: 19px;
      }

      .modal {
        padding: 21px;
      }
    }

    /* Editorial Utility production landing */
    .brand {
      display: inline-flex !important;
      align-items: center !important;
      gap: 10px !important;
      text-decoration: none !important;
      cursor: pointer !important;
      user-select: none !important;
      color: #09090b !important;
      line-height: 1 !important;
    }

    .brand:focus-visible {
      outline: 2px solid #8b5cf6;
      outline-offset: 3px;
      border-radius: 8px;
    }

    .logo {
      width: 36px !important;
      height: 36px !important;
      border-radius: 10px !important;
      background-color: transparent !important;
      background-image: var(--arushan-logo-glyph) !important;
      background-size: 80% 80% !important;
      background-position: center center !important;
      background-repeat: no-repeat !important;
      border: 1px solid rgba(0, 0, 0, 0.08) !important;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 1.5px rgba(0, 0, 0, 0.02) !important;
      color: transparent !important;
      overflow: hidden !important;
      text-indent: -9999px !important;
      display: inline-block !important;
      flex: none !important;
      box-sizing: border-box !important;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .brand:hover .logo {
      transform: translateY(-0.5px);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    }

    .brand-name {
      font-family: inherit !important;
      font-size: 21px !important;
      font-weight: 800 !important;
      color: #09090b !important;
      letter-spacing: -0.035em !important;
      display: inline-flex !important;
      align-items: baseline !important;
      line-height: 1 !important;
    }

    .brand-dot-bio {
      font-size: 21px !important;
      font-weight: 500 !important;
      color: #8c8c91 !important;
      letter-spacing: -0.015em !important;
    }

    @media (max-width: 768px) {
      .landing .nav {
        height: 60px !important;
        padding: 0 16px !important;
        display: flex !important;
        align-items: center !important;
      }

      .landing .navin {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
      }

      .brand {
        gap: 8px !important;
        flex-shrink: 0 !important;
      }

      .logo {
        width: 32px !important;
        height: 32px !important;
        border-radius: 9px !important;
        background-size: 80% 80% !important;
      }

      .brand-name,
      .brand-dot-bio {
        font-size: 18.5px !important;
      }

      .landing .navact {
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
      }
    }

    .landing {
      background: #f5f5f5 !important;
      color: #171717 !important;
    }

    .landing .nav {
      height: 72px;
      border-color: #d4d4d4;
      background: rgba(243, 240, 232, 0.94);
      position: sticky;
      top: 0;
      z-index: 10;
    }

    .landing .navin {
      width: min(1240px, calc(100% - 48px));
    }

    .landing .brand {
      color: #171717;
    }

    .landing .lang {
      background: #fff;
      border-color: #d4d4d4;
    }

    .landing .lang button {
      color: #6f716f;
    }

    .landing .lang button.active {
      background: #171717;
      color: #fff;
    }

    .landing .btn {
      border-radius: 8px;
    }

    .landing .btn.primary {
      background: #6847ee;
      color: #fff;
      box-shadow: none;
    }

    .landing .hero {
      width: min(1260px, calc(100% - 48px));
      grid-template-columns: 1.18fr 0.82fr;
      gap: 48px;
      padding: 28px 0 54px;
      min-height: auto;
    }

    .landing .badge {
      color: #6847ee;
      border: 0;
      background: transparent;
      padding: 0;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      font-size: 12px;
      font-weight: 700;
      margin-bottom: 4px;
      display: inline-block;
    }

    .landing .badge:before {
      display: none;
    }

    .landing h1 {
      font-size: clamp(38px, 4.2vw, 56px);
      line-height: 1.22;
      color: #171717;
      letter-spacing: -0.04em;
      margin: 18px 0 28px;
      text-wrap: balance;
      overflow: visible;
    }

    .hero-line1,
    .hero-line2 {
      display: inline-block;
      overflow: visible;
    }

    .landing .grad {
      background: none;
      color: #171717;
    }

    .landing .lead {
      color: #54565a;
      font-size: 18px;
      line-height: 1.55;
      max-width: 610px;
      text-wrap: pretty;
      margin: 0 0 26px;
    }

    .landing .proof {
      color: #696b6f;
      border-color: #d4d4d4;
    }

    .landing .proof span {
      border-color: #d4d4d4;
    }

    .landing .supportbox {
      border: 1px solid #d4d4d4;
      background: #f9f7f1;
      color: #171717;
      border-radius: 7px;
    }

    .landing .supportbox span {
      color: #666862;
    }

    .route-demo {
      display: flex;
      justify-content: center;
      align-items: center;
      background-image:
        linear-gradient(#d6d2c8 1px, transparent 1px),
        linear-gradient(90deg, #d6d2c8 1px, transparent 1px);
      background-size: 42px 42px;
      padding: 38px 24px;
      min-height: 550px;
    }

    /* --- ARUSHAN GPT-5.6 V2 PRESENTATION DESIGN SYSTEM --- */
    .accent-text {
      color: #171717;
    }

    .hero-actions {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
      margin-bottom: 22px;
    }

    .cta-btn {
      padding: 16px 28px !important;
      font-size: 16px !important;
      font-weight: 700 !important;
      background: #6847ee !important;
      color: #fff !important;
      border-radius: 8px !important;
      border: 1px solid #171717 !important;
      box-shadow: 4px 4px 0 #171717 !important;
      cursor: pointer !important;
      transition: transform 0.12s ease, box-shadow 0.12s ease !important;
    }

    .cta-btn:hover {
      transform: translate(-1px, -1px);
      box-shadow: 5px 5px 0 #171717 !important;
    }

    .cta-btn:active {
      transform: translate(2px, 2px);
      box-shadow: 2px 2px 0 #171717 !important;
    }

    .sec-login-btn {
      padding: 14px 22px !important;
      font-size: 15px !important;
      font-weight: 600 !important;
      background: #fff !important;
      color: #171717 !important;
      border: 1px solid #171717 !important;
      border-radius: 8px !important;
      box-shadow: 3px 3px 0 #171717 !important;
      cursor: pointer !important;
      transition: all 0.12s ease !important;
    }

    .sec-login-btn:hover {
      background: #f7f5ee !important;
    }

    .security-card {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 8px 14px;
      background: #f8f6f0;
      border: 1px solid #d4d4d4;
      border-radius: 6px;
      font-size: 12px;
      color: #55575c;
      max-width: 100%;
      box-sizing: border-box;
    }

    .sec-dot-pulse {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #2a9e6e;
      box-shadow: 0 0 0 3px rgba(42, 158, 110, 0.16);
      flex-shrink: 0;
    }

    .route-row-active {
      background: rgba(104, 71, 238, 0.04);
    }

    .route-live {
      animation: pulseLive 2s infinite ease-in-out;
    }

    @keyframes pulseLive {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: 0.75;
      }
    }

    .landing-section {
      width: min(1240px, calc(100% - 48px));
      margin: 0 auto 72px;
      padding: 48px 0;
      border-top: 1px solid #d6d2c8;
    }

    .section-head {
      text-align: left;
      margin-bottom: 36px;
      max-width: 820px;
    }

    .sec-badge-tag {
      display: inline-block;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: #6847ee;
      margin-bottom: 12px;
    }

    .section-head h2 {
      font-size: clamp(28px, 3.8vw, 44px);
      line-height: 1.15;
      letter-spacing: -0.04em;
      color: #171717;
      margin: 0 0 12px;
    }

    .sec-sub {
      font-size: 16px;
      line-height: 1.5;
      color: #54565a;
      margin: 0;
    }

    .three-col-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }

    .four-col-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
    }

    .spec-card {
      background: #fafafa;
      border: 1px solid #171717;
      box-shadow: 4px 4px 0 #171717;
      padding: 24px;
      border-radius: 4px;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .spec-card:hover {
      transform: translate(-1px, -1px);
      box-shadow: 6px 6px 0 #171717;
    }

    .spec-card-num {
      font-family: monospace, monospace;
      font-size: 12px;
      font-weight: 700;
      color: #d9383a;
      margin-bottom: 14px;
      letter-spacing: 0.05em;
    }

    .spec-card-num.accent {
      color: #6847ee;
    }

    .spec-card h4 {
      font-size: 18px;
      font-weight: 700;
      margin: 0 0 8px;
      color: #171717;
      letter-spacing: -0.02em;
    }

    .spec-card p {
      font-size: 14px;
      line-height: 1.5;
      color: #54565a;
      margin: 0;
    }

    .comparison-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
    }

    .comp-col {
      border: 1px solid #171717;
      padding: 28px;
      background: #fafafa;
      box-shadow: 4px 4px 0 #171717;
    }

    .comp-col.without {
      border-left: 5px solid #d9383a;
    }

    .comp-col.with {
      border-left: 5px solid #6847ee;
      background: #ffffff;
    }

    .comp-badge {
      display: inline-block;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.12em;
      padding: 3px 8px;
      border-radius: 3px;
      margin-bottom: 12px;
    }

    .comp-badge.bad {
      background: rgba(217, 56, 58, 0.1);
      color: #d9383a;
    }

    .comp-badge.good {
      background: rgba(104, 71, 238, 0.1);
      color: #6847ee;
    }

    .comp-col-head h3 {
      font-size: 22px;
      margin: 0 0 6px;
      letter-spacing: -0.03em;
      color: #171717;
    }

    .comp-col-head p {
      font-size: 14px;
      color: #54565a;
      margin: 0 0 20px;
    }

    .comp-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .comp-list li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 14px;
      line-height: 1.45;
      color: #171717;
    }

    .comp-icon {
      font-weight: 800;
      font-size: 13px;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-top: 1px;
    }

    .comp-icon.bad {
      background: #fee2e2;
      color: #b91c1c;
    }

    .comp-icon.good {
      background: #ede9fe;
      color: #6847ee;
    }

    .step-num {
      font-family: monospace, monospace;
      font-size: 24px;
      font-weight: 800;
      color: #6847ee;
      margin-bottom: 12px;
    }

    .use-icon-pill {
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 12px;
      color: #171717;
    }

    .footer-cta {
      margin-bottom: 96px;
    }

    .footer-cta-box {
      background: #fafafa;
      border: 1px solid #171717;
      box-shadow: 6px 6px 0 #171717;
      padding: 48px 32px;
      text-align: center;
      max-width: 860px;
      margin: 0 auto;
    }

    .footer-cta-box h2 {
      font-size: clamp(26px, 3.5vw, 38px);
      margin: 0 0 10px;
      letter-spacing: -0.03em;
      color: #171717;
    }

    .footer-cta-box p {
      font-size: 16px;
      color: #54565a;
      margin: 0 0 24px;
    }

    /* Mobile Responsive */
    @media (max-width: 980px) {
      .landing .hero {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 32px 0;
      }

      .three-col-grid {
        grid-template-columns: 1fr;
        gap: 16px;
      }

      .four-col-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
      }

      .comparison-grid {
        grid-template-columns: 1fr;
        gap: 18px;
      }
    }

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

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

      .hero-actions .btn {
        width: 100%;
        text-align: center;
      }
    }

    .route-card {
      width: 100%;
      max-width: 560px;
      background: #fafafa;
      border: 1px solid #171717;
      box-shadow: 9px 9px 0 #171717;
      padding: 25px 28px 18px;
    }

    .route-head {
      display: flex;
      justify-content: space-between;
      border-bottom: 1px solid #171717;
      padding-bottom: 20px;
    }

    .route-head h3 {
      font-size: 25px;
      margin: 5px 0 0;
      letter-spacing: -0.04em;
    }

    .route-eyebrow {
      color: #6847ee;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      font-size: 11px;
      font-weight: 850;
    }

    .route-live {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.08em;
    }

    .route-live:before {
      content: "";
      display: inline-block;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #2a9e6e;
      box-shadow: 0 0 0 5px rgba(42, 158, 110, 0.12);
      margin-right: 8px;
    }

    .route-row {
      display: grid;
      grid-template-columns: 36px 64px minmax(0, 1fr);
      align-items: center;
      gap: 18px;
      padding: 18px 0;
      min-height: 96px;
      border-bottom: 1px solid #d8d6d0;
    }

    .route-n {
      font-size: 11px;
      color: #66645f;
    }

    .route-row b {
      font-size: 17px;
    }

    .route-row small {
      display: block;
      color: #74726d;
      font-size: 13px;
      margin-top: 4px;
    }

    .route-icon {
      width: 62px;
      height: 62px;
      border: 1px solid #dedcd6;
      border-radius: 15px;
      background-color: #fff;
      box-shadow: 0 3px 12px rgba(24, 25, 28, 0.07);
    }

    .route-ig {
      background: #fff url("/img/route-ig.webp") center/54px no-repeat;
    }

    .route-ar {
      background: #fff url("/img/route-ar.webp") center/56px no-repeat;
    }

    .route-br {
      background: #fff url("/img/route-br.webp") center/58px no-repeat;
    }

    .route-arrow {
      height: 26px;
      line-height: 26px;
      margin: -13px 0;
      position: relative;
      z-index: 2;
      padding-left: 69%;
      font-size: 25px;
      color: #6847ee;
    }

    .route-foot {
      display: flex;
      justify-content: space-between;
      color: #6e706d;
      font-size: 11px;
      margin-top: 15px;
    }

    /* --- LIVE ROUTE PRESENTATION ANIMATION LAYER --- */
    /* LIVE ROUTE — presentation-only CSS animation layer. */
    .route-card {
      position: relative;
      overflow: hidden;
      isolation: isolate;
      --route-cycle: 7s;
      --route-signal-x: calc(100% - 18px);
      --route-y-instagram: 165px;
      --route-y-arushan: 270px;
      --route-y-browser: 376px;
    }

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

    .route-card .route-row-active {
      background: transparent;
    }

    .route-step {
      position: relative;
      box-shadow: none !important;
    }

    .route-copy {
      position: relative;
      min-width: 0;
    }

    .route-signal {
      position: absolute;
      z-index: 5;
      top: 0;
      left: var(--route-signal-x);
      width: 7px;
      height: 7px;
      border: 1px solid rgba(255, 255, 255, 0.9);
      border-radius: 50%;
      background: #6847ee;
      box-shadow:
        0 0 0 4px rgba(104, 71, 238, 0.1),
        0 3px 9px rgba(104, 71, 238, 0.25);
      opacity: 0;
      pointer-events: none;
      transform: translate3d(-50%, var(--route-y-instagram), 0) scale(0.8);
      animation: routeSignal var(--route-cycle) linear infinite;
      will-change: transform, opacity;
    }

    .route-signal::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: 100%;
      width: 2px;
      height: 20px;
      transform: translateX(-50%);
      background: linear-gradient(to top,
          rgba(104, 71, 238, 0.28),
          rgba(104, 71, 238, 0));
    }

    .route-step-instagram {
      animation: routeStageInstagram var(--route-cycle) ease-in-out infinite;
    }

    .route-step-arushan {
      animation: routeStageArushan var(--route-cycle) ease-in-out infinite;
    }

    .route-step-browser {
      animation: routeStageBrowser var(--route-cycle) ease-in-out infinite;
    }

    .route-step-instagram .route-icon {
      animation: routeIconInstagram var(--route-cycle) ease-in-out infinite;
    }

    .route-step-arushan .route-icon {
      animation: routeIconArushan var(--route-cycle) ease-in-out infinite;
    }

    .route-step-browser .route-icon {
      animation: routeIconBrowser var(--route-cycle) ease-in-out infinite;
    }

    .route-step-instagram b {
      animation: routeTitleInstagram var(--route-cycle) ease-in-out infinite;
    }

    .route-step-arushan b {
      animation: routeTitleArushan var(--route-cycle) ease-in-out infinite;
    }

    .route-step-browser b {
      animation: routeTitleBrowser var(--route-cycle) ease-in-out infinite;
    }

    .route-step .route-n {
      position: relative;
    }

    .route-step .route-n::after {
      content: "✓";
      position: absolute;
      top: 15px;
      left: 0;
      color: #6847ee;
      font-size: 10px;
      font-weight: 900;
      line-height: 1;
      opacity: 0;
      transform: scale(0.7);
    }

    .route-step-instagram .route-n::after {
      animation: routeCheckInstagram var(--route-cycle) ease-in-out infinite;
    }

    .route-step-arushan .route-n::after {
      animation: routeCheckArushan var(--route-cycle) ease-in-out infinite;
    }

    .route-step-browser .route-n::after {
      animation: routeCheckBrowser var(--route-cycle) ease-in-out infinite;
    }

    .route-status {
      position: absolute;
      z-index: 2;
      top: 28px;
      left: 0;
      width: max-content;
      max-width: 100%;
      padding: 2px 6px;
      border: 1px solid rgba(104, 71, 238, 0.22);
      border-radius: 4px;
      background: rgba(251, 251, 250, 0.97);
      box-shadow: 0 1px 2px rgba(23, 25, 28, 0.04);
      color: #5a3ed6;
      font-size: 9px;
      font-weight: 850;
      line-height: 1.25;
      letter-spacing: 0.08em;
      white-space: nowrap;
      opacity: 0;
      transform: translateY(3px);
      pointer-events: none;
    }

    .route-status-check {
      color: #238a5f;
    }

    .route-status-processing {
      animation: routeStatusProcessing var(--route-cycle) ease-in-out infinite;
    }

    .route-status-device {
      animation: routeStatusDevice var(--route-cycle) ease-in-out infinite;
    }

    .route-status-browser {
      animation: routeStatusBrowser var(--route-cycle) ease-in-out infinite;
    }

    .route-step-arushan small {
      animation: routeDescArushan var(--route-cycle) ease-in-out infinite;
    }

    .route-step-browser small {
      animation: routeDescBrowser var(--route-cycle) ease-in-out infinite;
    }

    .route-arrow-one {
      animation: routeArrowOne var(--route-cycle) ease-in-out infinite;
    }

    .route-arrow-two {
      animation: routeArrowTwo var(--route-cycle) ease-in-out infinite;
    }

    @keyframes routeSignal {

      0%,
      13% {
        opacity: 0;
        transform: translate3d(-50%, var(--route-y-instagram), 0) scale(0.8);
      }

      15% {
        opacity: 1;
        transform: translate3d(-50%, var(--route-y-instagram), 0) scale(1);
      }

      28.5% {
        opacity: 1;
        transform: translate3d(-50%, var(--route-y-arushan), 0) scale(1);
      }

      31%,
      49% {
        opacity: 1;
        transform: translate3d(-50%, var(--route-y-arushan), 0) scale(0.92);
      }

      50% {
        opacity: 1;
        transform: translate3d(-50%, var(--route-y-arushan), 0) scale(1);
      }

      68.5%,
      83% {
        opacity: 1;
        transform: translate3d(-50%, var(--route-y-browser), 0) scale(1);
      }

      88% {
        opacity: 0;
        transform: translate3d(-50%, var(--route-y-browser), 0) scale(0.8);
      }

      89%,
      100% {
        opacity: 0;
        transform: translate3d(-50%, var(--route-y-instagram), 0) scale(0.8);
      }
    }

    @keyframes routeStageInstagram {

      0%,
      13%,
      35%,
      100% {
        background-color: transparent;
        box-shadow: inset 3px 0 rgba(104, 71, 238, 0);
      }

      16%,
      28% {
        background-color: rgba(104, 71, 238, 0.055);
        box-shadow: inset 3px 0 rgba(104, 71, 238, 0.58);
      }

      32% {
        background-color: rgba(104, 71, 238, 0.025);
        box-shadow: inset 3px 0 rgba(104, 71, 238, 0.24);
      }
    }

    @keyframes routeStageArushan {

      0%,
      27%,
      58%,
      100% {
        background-color: transparent;
        box-shadow: inset 3px 0 rgba(104, 71, 238, 0);
      }

      30%,
      50% {
        background-color: rgba(104, 71, 238, 0.065);
        box-shadow: inset 3px 0 rgba(104, 71, 238, 0.64);
      }

      55% {
        background-color: rgba(104, 71, 238, 0.028);
        box-shadow: inset 3px 0 rgba(104, 71, 238, 0.24);
      }
    }

    @keyframes routeStageBrowser {

      0%,
      67%,
      91%,
      100% {
        background-color: transparent;
        box-shadow: inset 3px 0 rgba(104, 71, 238, 0);
      }

      70%,
      83% {
        background-color: rgba(104, 71, 238, 0.055);
        box-shadow: inset 3px 0 rgba(104, 71, 238, 0.58);
      }

      88% {
        background-color: rgba(104, 71, 238, 0.025);
        box-shadow: inset 3px 0 rgba(104, 71, 238, 0.22);
      }
    }

    @keyframes routeIconInstagram {

      0%,
      13%,
      35%,
      100% {
        transform: scale(1);
        box-shadow: 0 3px 12px rgba(24, 25, 28, 0.07);
      }

      17%,
      28% {
        transform: scale(1.025);
        box-shadow:
          0 3px 12px rgba(24, 25, 28, 0.07),
          0 0 0 3px rgba(104, 71, 238, 0.12);
      }
    }

    @keyframes routeIconArushan {

      0%,
      27%,
      58%,
      100% {
        transform: scale(1);
        box-shadow: 0 3px 12px rgba(24, 25, 28, 0.07);
      }

      31%,
      50% {
        transform: scale(1.025);
        box-shadow:
          0 3px 12px rgba(24, 25, 28, 0.07),
          0 0 0 3px rgba(104, 71, 238, 0.13);
      }
    }

    @keyframes routeIconBrowser {

      0%,
      67%,
      91%,
      100% {
        transform: scale(1);
        box-shadow: 0 3px 12px rgba(24, 25, 28, 0.07);
      }

      71%,
      83% {
        transform: scale(1.025);
        box-shadow:
          0 3px 12px rgba(24, 25, 28, 0.07),
          0 0 0 3px rgba(104, 71, 238, 0.12);
      }
    }

    @keyframes routeTitleInstagram {

      0%,
      13%,
      35%,
      100% {
        color: #171717;
      }

      17%,
      29% {
        color: #4f32c7;
      }
    }

    @keyframes routeTitleArushan {

      0%,
      27%,
      58%,
      100% {
        color: #171717;
      }

      31%,
      51% {
        color: #4f32c7;
      }
    }

    @keyframes routeTitleBrowser {

      0%,
      67%,
      91%,
      100% {
        color: #171717;
      }

      71%,
      84% {
        color: #4f32c7;
      }
    }

    @keyframes routeCheckInstagram {

      0%,
      27%,
      36%,
      100% {
        opacity: 0;
        transform: scale(0.7);
      }

      30%,
      33% {
        opacity: 1;
        transform: scale(1);
      }
    }

    @keyframes routeCheckArushan {

      0%,
      49%,
      60%,
      100% {
        opacity: 0;
        transform: scale(0.7);
      }

      52%,
      57% {
        opacity: 1;
        transform: scale(1);
      }
    }

    @keyframes routeCheckBrowser {

      0%,
      81%,
      93%,
      100% {
        opacity: 0;
        transform: scale(0.7);
      }

      84%,
      90% {
        opacity: 1;
        transform: scale(1);
      }
    }

    @keyframes routeStatusProcessing {

      0%,
      27%,
      42%,
      100% {
        opacity: 0;
        transform: translateY(3px);
      }

      30%,
      39% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes routeStatusDevice {

      0%,
      38%,
      59%,
      100% {
        opacity: 0;
        transform: translateY(3px);
      }

      42%,
      55% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes routeStatusBrowser {

      0%,
      67%,
      92%,
      100% {
        opacity: 0;
        transform: translateY(3px);
      }

      71%,
      88% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes routeDescArushan {

      0%,
      26%,
      60%,
      100% {
        opacity: 1;
      }

      30%,
      56% {
        opacity: 0;
      }
    }

    @keyframes routeDescBrowser {

      0%,
      66%,
      93%,
      100% {
        opacity: 1;
      }

      70%,
      89% {
        opacity: 0;
      }
    }

    @keyframes routeArrowOne {

      0%,
      13%,
      35%,
      100% {
        opacity: 0.38;
        transform: translateY(-1px);
      }

      18%,
      31% {
        opacity: 1;
        transform: translateY(2px);
      }
    }

    @keyframes routeArrowTwo {

      0%,
      48%,
      76%,
      100% {
        opacity: 0.38;
        transform: translateY(-1px);
      }

      53%,
      70% {
        opacity: 1;
        transform: translateY(2px);
      }
    }

    @media (max-width: 600px) {
      .route-card {
        --route-signal-x: calc(100% - 12px);
        --route-y-instagram: 149px;
        --route-y-arushan: 249px;
        --route-y-browser: 348px;
      }

      .route-status {
        top: 25px;
        font-size: 8px;
        letter-spacing: 0.055em;
      }
    }

    @media (prefers-reduced-motion: reduce) {

      .route-live,
      .route-signal,
      .route-step,
      .route-step .route-icon,
      .route-step b,
      .route-step .route-n::after,
      .route-step small,
      .route-status,
      .route-arrow {
        animation: none !important;
      }

      .route-signal,
      .route-status,
      .route-step .route-n::after {
        display: none !important;
      }

      .route-card .route-row-active {
        background: rgba(104, 71, 238, 0.04);
      }
    }

    @media (max-width: 900px) {
      .landing .hero {
        grid-template-columns: 1fr;
        padding: 40px 0;
      }

      .route-demo {
        min-height: 520px;
      }
    }

    @media (max-width: 600px) {
      .landing .nav {
        height: 56px;
        padding: 0 16px;
        display: flex;
        align-items: center;
      }

      .landing .navin {
        width: 100%;
        max-width: 100%;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
      }

      .landing .navact {
        flex-wrap: nowrap;
        justify-content: flex-end;
        align-items: center;
      }

      .landing .navact>.btn {
        width: 100%;
      }

      .landing .hero {
        width: min(100% - 24px, 1240px);
        padding: 34px 0;
        gap: 30px;
      }

      .landing h1 {
        font-size: clamp(24px, 6.5vw, 32px);
        line-height: 1.22;
        letter-spacing: -0.035em;
        text-align: center;
        margin: 16px auto 22px;
        max-width: 100%;
        text-wrap: balance;
        overflow: visible;
      }

      .hero-line1,
      .hero-line2 {
        display: inline;
      }

      .landing .lead {
        font-size: 15px;
        line-height: 1.5;
        text-align: center;
        max-width: 100%;
        margin: 0 auto 20px;
        text-wrap: pretty;
        padding: 0 4px;
      }

      .hero-actions {
        width: 100%;
        justify-content: center;
      }

      .hero-actions .btn {
        width: 100%;
        justify-content: center;
      }

      .security-card {
        width: 100%;
        justify-content: center;
        text-align: center;
      }

      .landing .proof {
        display: grid;
        grid-template-columns: 1fr;
      }

      .landing .supportbox {
        align-items: flex-start;
        flex-direction: column;
      }

      .route-demo {
        padding: 22px 12px;
        min-height: 0;
      }

      .route-card {
        padding: 20px 16px 15px;
      }

      .route-head h3 {
        font-size: 20px;
      }

      .route-live {
        display: none;
      }

      .route-row {
        grid-template-columns: 25px 54px 1fr;
        gap: 11px;
        min-height: 84px;
      }

      .route-icon {
        width: 52px;
        height: 52px;
        border-radius: 13px;
      }

      .route-ig {
        background-size: 45px;
      }

      .route-ar {
        background-size: 47px;
      }

      .route-br {
        background-size: 49px;
      }

      .route-row b {
        font-size: 15px;
      }

      .route-row small {
        font-size: 12px;
      }

      .route-foot span:last-child {
        display: none;
      }
    }

    /* Editorial Utility — unified authenticated application */
    .app {
      background: #f5f5f5 !important;
      color: #171717 !important;
    }

    .side {
      background: #171717 !important;
      color: #f8f7f2 !important;
      border-color: #34363a !important;
      padding: 24px 16px !important;
    }

    .side .brand {
      padding: 0 8px 24px;
    }

    .snav {
      gap: 5px !important;
    }

    .snav button {
      border-radius: 7px !important;
      color: #aeb0b2 !important;
      background: transparent !important;
      border: 1px solid transparent !important;
      text-align: left !important;
    }

    .snav button:hover {
      color: #fff !important;
      border-color: #44464a !important;
    }

    .snav button.active {
      background: #2a2c30 !important;
      color: #fff !important;
      border-color: #3b3d42 !important;
    }

    .telegram-side {
      background: transparent !important;
      color: #78d8ff !important;
      border: 1px solid #245268 !important;
      border-radius: 7px !important;
    }

    .sideuser {
      border-color: #34363a !important;
    }

    .sideuser span {
      color: #aeb0b2 !important;
    }

    .main {
      background: #f5f5f5 !important;
      color: #171717 !important;
      padding: 28px 34px 54px !important;
    }

    .top {
      border-color: #d2cec4 !important;
      min-height: auto !important;
      align-items: center !important;
      margin-bottom: 24px !important;
    }

    .topact {
      align-items: center;
    }

    .top h2 {
      font-size: 30px !important;
      letter-spacing: -0.045em !important;
    }

    .top p {
      color: #686a6d !important;
    }

    .top .lang {
      background: #fff !important;
      border-color: #d2cec4 !important;
    }

    .top .lang button {
      color: #686a6d !important;
    }

    .top .lang button.active {
      background: #171717 !important;
      color: #fff !important;
    }

    .top .btn.primary,
    .empty .btn.primary {
      background: #6847ee !important;
      color: #fff !important;
      box-shadow: none !important;
      border: 0 !important;
      border-radius: 7px !important;
    }

    .cards {
      gap: 12px !important;
    }

    .stat {
      background: #fafafa !important;
      color: #171717 !important;
      border: 1px solid #d4d4d4 !important;
      border-radius: 8px !important;
      box-shadow: none !important;
    }

    .stat small,
    .small {
      color: #737570 !important;
    }

    .stat strong {
      font-family: Georgia, serif !important;
      font-weight: 500 !important;
    }

    .table {
      background: #fafafa !important;
      color: #171717 !important;
      border: 1px solid #d4d4d4 !important;
      border-radius: 8px !important;
      box-shadow: none !important;
    }

    .thead,
    .row {
      display: grid !important;
      grid-template-columns: minmax(180px, 2.2fr) minmax(130px, 1.5fr) 100px 100px 130px 165px !important;
      gap: 16px !important;
      align-items: center !important;
      padding: 14px 20px !important;
      border-color: #d8d5cd !important;
    }

    .thead span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-weight: 600;
      font-size: 12px;
    }

    .row>div {
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Column 3: Views / Открытия -> perfectly centered directly under header */
    .thead> :nth-child(3),
    .row> :nth-child(3) {
      text-align: center !important;
      justify-content: center !important;
      display: flex !important;
      align-items: center !important;
      font-variant-numeric: tabular-nums !important;
    }

    /* Column 4: Attempts / Выходы -> perfectly centered directly under header */
    .thead> :nth-child(4),
    .row> :nth-child(4) {
      text-align: center !important;
      justify-content: center !important;
      display: flex !important;
      align-items: center !important;
      font-variant-numeric: tabular-nums !important;
    }

    /* Column 5: Status / Статус -> left-aligned flex */
    .thead> :nth-child(5),
    .row> :nth-child(5) {
      text-align: left !important;
      display: flex !important;
      align-items: center !important;
      justify-content: flex-start !important;
    }

    .row>.rowact {
      overflow: visible !important;
    }

    .rowact {
      display: flex !important;
      gap: 6px !important;
      justify-content: flex-end !important;
      align-items: center !important;
      width: 165px !important;
      overflow: visible !important;
    }

    .rowact .iconbtn {
      width: 36px !important;
      height: 36px !important;
      padding: 0 !important;
      border-radius: 9px !important;
      border: 1px solid #d4d0c7 !important;
      background: #ffffff !important;
      color: #374151 !important;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      cursor: pointer !important;
      box-sizing: border-box !important;
      transform: none !important;
      transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease !important;
    }

    .rowact .iconbtn:hover {
      background: #f7f6f2 !important;
      border-color: #0f172a !important;
      color: #0f172a !important;
      transform: none !important;
    }

    .rowact .iconbtn:active {
      transform: scale(0.95) !important;
      background: #eceae3 !important;
    }

    .rowact .iconbtn-link:hover {
      background: #f5f3ff !important;
      border-color: #6847ee !important;
      color: #5131cc !important;
      transform: none !important;
    }

    .rowact .iconbtn-edit:hover {
      background: #f8fafc !important;
      border-color: #334155 !important;
      color: #0f172a !important;
      transform: none !important;
    }

    .rowact .iconbtn-clone:hover {
      background: #f0fdf4 !important;
      border-color: #16a34a !important;
      color: #15803d !important;
      transform: none !important;
    }

    .rowact .iconbtn-del:hover {
      background: #fef2f2 !important;
      border-color: #dc2626 !important;
      color: #b91c1c !important;
      transform: none !important;
    }

    .rowact .iconbtn.copied {
      background: #f0fdf4 !important;
      border-color: #16a34a !important;
      color: #16a34a !important;
      transform: none !important;
    }

    /* Clean unified footer layout for editorModal */
    #editorModal .editorfoot {
      height: 68px !important;
      margin: 0 !important;
      padding: 0 24px !important;
      border-top: 1px solid #e7e5eb !important;
      background: #ffffff !important;
      display: flex !important;
      align-items: center !important;
      justify-content: flex-end !important;
      gap: 12px !important;
      box-sizing: border-box !important;
    }

    #editorModal .editorfoot .builder-save-note {
      margin-right: auto !important;
      color: #71717a !important;
      font-size: 12px !important;
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
    }

    #editorModal .editorfoot .btn {
      height: 42px !important;
      min-height: 42px !important;
      padding: 0 20px !important;
      border-radius: 10px !important;
      font-size: 13.5px !important;
      font-weight: 600 !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      cursor: pointer !important;
      box-sizing: border-box !important;
      margin: 0 !important;
      line-height: 1 !important;
      white-space: nowrap !important;
      transition: all 0.15s ease !important;
    }

    #editorModal .editorfoot #duplicateEditorBtn {
      background: #ffffff !important;
      color: #18181b !important;
      border: 1px solid #d4d0c7 !important;
    }

    #editorModal .editorfoot #duplicateEditorBtn:hover {
      background: #f0fdf4 !important;
      border-color: #16a34a !important;
      color: #15803d !important;
    }

    #editorModal .editorfoot #cancelEditor {
      background: #ffffff !important;
      color: #52525b !important;
      border: 1px solid #d4d0c7 !important;
    }

    #editorModal .editorfoot #cancelEditor:hover {
      background: #f4f4f5 !important;
      color: #18181b !important;
      border-color: #a1a1aa !important;
    }

    #editorModal .editorfoot #saveLinkBtn {
      background: #18181b !important;
      color: #ffffff !important;
      border: 1px solid #18181b !important;
    }

    #editorModal .editorfoot #saveLinkBtn:hover {
      background: #5b3ce0 !important;
      border-color: #5b3ce0 !important;
    }

    .slug {
      display: inline-flex !important;
      align-items: center !important;
      width: fit-content !important;
      max-width: 100% !important;
      padding: 4px 10px !important;
      border-radius: 6px !important;
      font-family: monospace, monospace !important;
      font-size: 13px !important;
      font-weight: 600 !important;
      background: #ece8ff !important;
      color: #5131cc !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
    }

    .thead {
      color: #6c6e69 !important;
      background: #f4f4f5 !important;
    }

    .slug {
      background: #ece8ff !important;
      color: #5131cc !important;
    }

    .status {
      color: #19805b !important;
    }

    .iconbtn {
      background: #fff !important;
      color: #171717 !important;
      border-color: #d4d4d4 !important;
    }

    .empty {
      color: #666862 !important;
    }

    .empty b {
      color: #171717 !important;
    }

    .dash-kicker {
      display: none !important;
    }

    .analytics-list {
      margin-top: 18px;
      border-top: 1px solid #d4d4d4;
    }

    .analytics-row {
      display: grid;
      grid-template-columns: 1.5fr 0.7fr 0.7fr 0.7fr;
      gap: 15px;
      padding: 16px 18px;
      border-bottom: 1px solid #d8d5cd;
      align-items: center;
    }

    .analytics-row.head {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: #6c6e69;
      background: #f4f4f5;
    }

    .analytics-row:last-child {
      border-bottom: 0;
    }

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

    .settings-card {
      background: #fafafa;
      border: 1px solid #d4d4d4;
      border-radius: 8px;
      padding: 22px;
    }

    .settings-card.wide {
      grid-column: 1/-1;
    }

    .settings-card h3 {
      margin: 0 0 7px;
      font-size: 19px;
    }

    .settings-card p {
      margin: 0 0 16px;
      color: #686a6d;
    }

    .settings-card .lang {
      width: max-content;
      background: #fff;
      border-color: #d4d4d4;
    }

    .settings-card .lang button {
      color: #686a6d;
    }

    .settings-card .lang button.active {
      background: #171717;
      color: #fff;
    }

    .settings-meta {
      display: grid;
      gap: 9px;
      margin-top: 12px;
    }

    .settings-meta div {
      display: flex;
      justify-content: space-between;
      border-top: 1px solid #d8d5cd;
      padding-top: 9px;
    }

    .settings-meta span {
      color: #737570;
    }

    .settings-card .btn {
      background: #fff;
      color: #171717;
      border-color: #171717;
      border-radius: 7px;
    }

    .settings-card .btn.primary {
      background: #6847ee;
      color: #fff;
      border: 0;
    }

    /* Personal Telegram Bot Card */
    .bot-card-wrapper {
      margin-top: 6px;
    }

    .bot-header-flex {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 12px;
    }

    .bot-header-flex h3 {
      margin: 0 0 6px 0 !important;
      font-size: 20px !important;
      font-weight: 800 !important;
      color: #171717 !important;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .bot-status-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 750;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .bot-status-pill.disconnected {
      background: #f0edf4;
      color: #68646e;
      border: 1px solid #dcd8e2;
    }

    .bot-status-pill.connected {
      background: #e8f8f0;
      color: #16854b;
      border: 1px solid #bce6d0;
    }

    .bot-status-pill.connected:before {
      content: "";
      display: inline-block;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #22c55e;
      box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
    }

    .bot-steps-box {
      background: #ffffff;
      border: 1px solid #e2ded4;
      border-radius: 10px;
      padding: 14px 16px;
      margin-bottom: 16px;
    }

    .bot-steps-box b {
      display: block;
      font-size: 13px;
      color: #2b2832;
      margin-bottom: 8px;
    }

    .bot-steps-list {
      margin: 0;
      padding-left: 18px;
      font-size: 12.5px;
      color: #55505c;
      line-height: 1.6;
    }

    .bot-steps-list a {
      color: #6847ee;
      font-weight: 700;
      text-decoration: none;
    }

    .bot-steps-list a:hover {
      text-decoration: underline;
    }

    .bot-steps-list code {
      background: #f2f0f8;
      color: #5536cf;
      padding: 2px 6px;
      border-radius: 4px;
      font-family: monospace;
      font-size: 11.5px;
    }

    .bot-input-group {
      display: flex;
      gap: 10px;
      align-items: stretch;
    }

    .bot-input-group input {
      flex: 1;
      background: #ffffff;
      border: 1px solid #d4d4d4;
      border-radius: 8px;
      padding: 0 14px;
      font-size: 13.5px;
      color: #171717;
      outline: none;
      transition: border-color 0.15s;
    }

    .bot-input-group input:focus {
      border-color: #6847ee;
      box-shadow: 0 0 0 3px rgba(104, 71, 238, 0.12);
    }

    .bot-input-group .btn {
      white-space: nowrap;
      padding: 0 20px;
      height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .bot-connected-panel {
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      gap: 16px;
      background: #ffffff;
      border: 1px solid #ded9cd;
      border-radius: 12px;
      padding: 18px;
      margin-top: 10px;
    }

    .bot-profile-box {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .bot-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: linear-gradient(135deg, #8b5cf6, #3b82f6);
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      flex-shrink: 0;
    }

    .bot-details b {
      display: block;
      font-size: 15px;
      color: #171717;
    }

    .bot-details span {
      display: block;
      font-size: 13px;
      color: #6847ee;
      font-weight: 600;
      margin-top: 2px;
    }

    .bot-toggles {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding-left: 16px;
      border-left: 1px solid #f0f0f0;
    }

    .bot-toggle-row {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 12.5px;
      color: #3b3744;
      cursor: pointer;
    }

    .bot-toggle-row input[type="checkbox"] {
      width: 16px;
      height: 16px;
      accent-color: #6847ee;
      cursor: pointer;
    }

    .bot-commands-row {
      grid-column: 1 / -1;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
      padding-top: 14px;
      border-top: 1px solid #f0edf4;
      font-size: 12px;
      color: #68646e;
    }

    .bot-command-badge {
      background: #f5f3ff;
      border: 1px solid #ddd6fe;
      color: #5b21b6;
      padding: 3px 8px;
      border-radius: 6px;
      font-family: monospace;
      font-weight: 700;
    }

    .bot-disconnect-btn {
      background: transparent !important;
      color: #b91c1c !important;
      border: 1px solid #fca5a5 !important;
      padding: 0 14px !important;
      height: 36px !important;
      font-size: 12px !important;
      border-radius: 7px !important;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .bot-disconnect-btn:hover {
      background: #fef2f2 !important;
      border-color: #ef4444 !important;
    }

    @media (max-width: 768px) {
      .bot-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }

      .bot-header-flex h3 {
        font-size: 18px !important;
      }

      .bot-connected-panel {
        grid-template-columns: 1fr;
      }

      .bot-toggles {
        padding-left: 0;
        border-left: none;
        padding-top: 14px;
        border-top: 1px solid #f0f0f0;
      }

      .bot-input-group {
        flex-direction: column;
      }

      .bot-input-group .btn {
        width: 100%;
      }
    }

    /* =========================================================
         Strict Enterprise Admin Dashboard Styles
         ========================================================= */
    .admin-view-root {
      font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: optimizeLegibility;
      color: #0f172a;
    }

    .admin-mono {
      font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
      font-feature-settings: "tnum" 1, "cv02" 1;
      letter-spacing: -0.2px;
    }

    .admin-top-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      padding-bottom: 16px;
      margin-bottom: 20px;
      border-bottom: 1px solid #e2e8f0;
    }

    .admin-title-wrap {
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-width: 280px;
    }

    .admin-title-row {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .admin-title-row h2 {
      margin: 0;
      font-size: 22px;
      font-weight: 700;
      color: #0f172a;
      letter-spacing: -0.3px;
    }

    .admin-badge-owner {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #f1f5f9;
      color: #334155;
      border: 1px solid #cbd5e1;
      padding: 3px 8px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.3px;
      text-transform: uppercase;
    }

    .admin-badge-owner .owner-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #10b981;
    }

    .admin-subtitle {
      margin: 0;
      color: #64748b;
      font-size: 13px;
      line-height: 1.4;
    }

    .admin-header-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    .admin-data-mode-toggle {
      display: inline-flex;
      background: #e2e8f0;
      border-radius: 6px;
      padding: 2px;
      border: 1px solid #cbd5e1;
    }

    .admin-mode-pill {
      border: none;
      background: transparent;
      padding: 5px 12px;
      border-radius: 4px;
      font-size: 12px;
      font-weight: 600;
      color: #475569;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.12s ease;
    }

    .admin-mode-pill.active {
      background: #ffffff;
      color: #0f172a;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    }

    .admin-mode-pill .mode-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #10b981;
    }

    .admin-mode-pill:not(.active) .mode-dot {
      background: #94a3b8;
    }

    .admin-btn-secondary {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      height: 34px;
      padding: 0 12px;
      border: 1px solid #cbd5e1;
      border-radius: 6px;
      background: #ffffff;
      color: #334155;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .admin-btn-secondary:hover {
      background: #f8fafc;
      border-color: #94a3b8;
      color: #0f172a;
    }

    .admin-btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      height: 34px;
      padding: 0 14px;
      border: 1px solid #1e293b;
      border-radius: 6px;
      background: #0f172a;
      color: #ffffff;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .admin-btn-primary:hover {
      background: #1e293b;
    }

    .admin-btn-danger {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      height: 34px;
      padding: 0 12px;
      border: 1px solid #fecaca;
      border-radius: 6px;
      background: #ffffff;
      color: #dc2626;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .admin-btn-danger:hover {
      background: #fef2f2;
      border-color: #f87171;
    }

    /* KPI Cards */
    .admin-kpis-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      margin-bottom: 20px;
    }

    .admin-kpi-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 6px;
      padding: 14px 16px;
      display: flex;
      flex-direction: column;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    }

    .admin-kpi-card .kpi-label {
      font-size: 11px;
      font-weight: 600;
      color: #64748b;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .admin-kpi-card .kpi-tag {
      font-size: 10.5px;
      font-weight: 500;
      color: #94a3b8;
      text-transform: none;
      letter-spacing: 0;
    }

    .admin-kpi-card .kpi-val {
      font-size: 24px;
      font-weight: 700;
      color: #0f172a;
      line-height: 1.15;
      margin-bottom: 6px;
      font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
      font-variant-numeric: tabular-nums;
      letter-spacing: -0.5px;
    }

    .admin-kpi-card .kpi-sub {
      font-size: 11.5px;
      color: #64748b;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .admin-kpi-card .kpi-sub.success {
      color: #15803d;
      font-weight: 600;
    }

    /* Banner */
    .admin-banner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 14px;
      border-radius: 6px;
      font-size: 12.5px;
      margin-bottom: 18px;
    }

    .admin-banner-real {
      background: #f0fdf4;
      border: 1px solid #bbf7d0;
      color: #166534;
    }

    .admin-banner-sync {
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      color: #1e40af;
    }

    .admin-banner-warning {
      background: #fffbeb;
      border: 1px solid #fde68a;
      color: #92400e;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    .spin {
      animation: spin 0.9s linear infinite;
      display: inline-block;
      vertical-align: middle;
    }

    .admin-banner-demo {
      background: #fefce8;
      border: 1px solid #fef08a;
      color: #854d0e;
    }

    .admin-banner-content {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .admin-live-pulse {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #16a34a;
      box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
    }

    .admin-demo-tag {
      background: #ca8a04;
      color: #ffffff;
      font-size: 10px;
      font-weight: 700;
      padding: 2px 6px;
      border-radius: 4px;
      letter-spacing: 0.4px;
    }

    /* Tab Navigation */
    .admin-tabs-nav {
      display: flex;
      gap: 0;
      border-bottom: 1px solid #e2e8f0;
      margin-bottom: 16px;
      padding-bottom: 0;
    }

    .admin-tab-btn {
      background: transparent;
      border: none;
      border-bottom: 2px solid transparent;
      font-size: 13px;
      font-weight: 600;
      color: #64748b;
      padding: 10px 16px;
      cursor: pointer;
      transition: all 0.12s ease;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border-radius: 0;
    }

    .admin-tab-btn:hover {
      color: #0f172a;
    }

    .admin-tab-btn.active {
      background: transparent !important;
      color: #0f172a !important;
      border-bottom-color: #0f172a !important;
    }

    .admin-tab-count {
      background: #f1f5f9;
      color: #475569;
      font-size: 11px;
      font-weight: 600;
      padding: 1px 6px;
      border-radius: 10px;
    }

    .admin-tab-btn.active .admin-tab-count {
      background: #e2e8f0;
      color: #0f172a;
    }

    /* Table Styles */
    .admin-table-toolbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
      flex-wrap: wrap;
    }

    .admin-search-box {
      position: relative;
      flex: 1;
      min-width: 260px;
      max-width: 440px;
    }

    .admin-search-box svg {
      position: absolute;
      left: 11px;
      top: 50%;
      transform: translateY(-50%);
      color: #94a3b8;
      pointer-events: none;
    }

    .admin-search-input {
      width: 100%;
      height: 36px;
      background: #ffffff;
      border: 1px solid #cbd5e1;
      border-radius: 6px;
      padding: 0 12px 0 34px;
      font-size: 12.5px;
      color: #0f172a;
      outline: none;
      transition: border-color 0.15s, box-shadow 0.15s;
      box-sizing: border-box;
    }

    .admin-search-input:focus {
      border-color: #0f172a;
      box-shadow: 0 0 0 1px #0f172a;
    }

    .admin-counter-pill {
      font-size: 12px;
      color: #64748b;
      font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
    }

    .admin-table-wrap {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 6px;
      overflow-x: auto;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    }

    .admin-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 12.5px;
      line-height: 1.4;
      min-width: 780px;
    }

    .admin-table th {
      background: #f8fafc;
      text-align: left;
      padding: 10px 14px;
      font-size: 11px;
      font-weight: 600;
      color: #475569;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      border-bottom: 1px solid #e2e8f0;
      white-space: nowrap;
    }

    .admin-table th.num,
    .admin-table td.num {
      text-align: right;
    }

    .admin-table td {
      padding: 10px 14px;
      border-bottom: 1px solid #f1f5f9;
      vertical-align: middle;
      color: #1e293b;
    }

    .admin-table tr:last-child td {
      border-bottom: none;
    }

    .admin-table tr:hover td {
      background: #f8fafc;
    }

    /* User Cell */
    .admin-user-cell {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .admin-avatar-box {
      width: 32px;
      height: 32px;
      border-radius: 6px;
      background: #f1f5f9;
      color: #334155;
      border: 1px solid #e2e8f0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 12px;
      flex-shrink: 0;
    }

    .admin-user-meta {
      display: flex;
      flex-direction: column;
      line-height: 1.25;
    }

    .admin-user-name {
      font-weight: 600;
      color: #0f172a;
      font-size: 13px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .admin-owner-tag {
      font-size: 10px;
      font-weight: 700;
      background: #0f172a;
      color: #ffffff;
      padding: 1px 5px;
      border-radius: 3px;
      letter-spacing: 0.2px;
    }

    .admin-user-handle {
      color: #64748b;
      font-size: 11.5px;
      text-decoration: none;
      margin-top: 1px;
    }

    .admin-user-handle:hover {
      color: #2563eb;
      text-decoration: underline;
    }

    /* Links Column */
    .admin-link-badge {
      font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
      background: #f1f5f9;
      color: #334155;
      border: 1px solid #e2e8f0;
      padding: 2px 6px;
      border-radius: 4px;
      font-size: 11px;
      text-decoration: none;
      display: inline-block;
      margin-right: 4px;
      margin-bottom: 2px;
    }

    .admin-link-badge:hover {
      background: #e2e8f0;
      color: #0f172a;
    }

    /* Status Badge */
    .admin-tag {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 6px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 600;
      white-space: nowrap;
    }

    .admin-tag-active {
      background: #f0fdf4;
      color: #166534;
      border: 1px solid #bbf7d0;
    }

    .admin-tag-neutral {
      background: #f8fafc;
      color: #64748b;
      border: 1px solid #e2e8f0;
    }

    /* Action button in table */
    .admin-btn-action {
      border: 1px solid #cbd5e1;
      background: #ffffff;
      color: #334155;
      padding: 4px 9px;
      border-radius: 5px;
      font-size: 11.5px;
      font-weight: 500;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      cursor: pointer;
      transition: all 0.1s ease;
    }

    .admin-btn-action:hover {
      background: #f8fafc;
      border-color: #94a3b8;
      color: #0f172a;
    }

    /* Live Stream List */
    .admin-stream-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .admin-stream-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 6px;
      padding: 10px 14px;
      font-size: 12.5px;
    }

    .admin-stream-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .admin-stream-badge {
      font-size: 10.5px;
      font-weight: 700;
      padding: 2px 6px;
      border-radius: 4px;
      letter-spacing: 0.3px;
      text-transform: uppercase;
      font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
    }

    .admin-stream-badge.signup {
      background: #e0e7ff;
      color: #4338ca;
    }

    .admin-stream-badge.link {
      background: #fef3c7;
      color: #b45309;
    }

    .admin-stream-badge.click {
      background: #dcfce7;
      color: #15803d;
    }

    .admin-stream-time {
      font-size: 11.5px;
      color: #64748b;
      font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
      white-space: nowrap;
    }

    /* Pin Modal */
    .admin-pin-modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.65);
      backdrop-filter: blur(4px);
      z-index: 99999;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .admin-pin-modal-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 24px;
      width: 100%;
      max-width: 380px;
      box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
      text-align: center;
    }

    .admin-pin-input {
      width: 100%;
      height: 44px;
      text-align: center;
      letter-spacing: 8px;
      font-size: 22px;
      font-weight: 700;
      border: 1px solid #cbd5e1;
      border-radius: 6px;
      margin-bottom: 14px;
      outline: none;
      font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
      transition: border-color 0.15s, box-shadow 0.15s;
      box-sizing: border-box;
    }

    .admin-pin-input:focus {
      border-color: #0f172a;
      box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
    }

    .admin-action-btns-row {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    @media (max-width: 900px) {
      .admin-kpis-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .admin-top-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
      }

      .admin-title-wrap {
        min-width: 0;
        width: 100%;
      }

      .admin-title-row {
        align-items: center;
      }

      .admin-header-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
      }

      .admin-data-mode-toggle {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        background: #e2e8f0;
        border-radius: 8px;
        padding: 3px;
        border: 1px solid #cbd5e1;
      }

      .admin-data-mode-toggle .admin-mode-pill {
        flex: 1;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 600;
        border-radius: 6px;
        text-align: center;
      }

      .admin-action-btns-row {
        display: flex;
        gap: 8px;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }

      .admin-action-btns-row::-webkit-scrollbar {
        display: none;
      }

      .admin-action-btns-row .admin-btn-secondary,
      .admin-action-btns-row .admin-btn-danger {
        flex: 1;
        min-width: 0;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12.5px;
        border-radius: 8px;
        padding: 0 8px;
        box-sizing: border-box;
        white-space: nowrap;
      }

      .admin-action-btns-row #refreshAdminDataBtn {
        flex: 1.2;
      }

      .admin-tabs-nav {
        display: flex;
        gap: 6px;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 16px;
        padding-bottom: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }

      .admin-tabs-nav::-webkit-scrollbar {
        display: none;
      }

      .admin-tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 10px 14px;
      }

      .admin-table-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
      }

      .admin-search-box {
        min-width: 0;
        max-width: 100%;
        width: 100%;
      }
    }

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

    .editorbg {
      background: rgba(23, 25, 28, 0.58) !important;
    }

    .editor {
      background: #f5f5f5 !important;
      color: #171717 !important;
      border: 1px solid #171717 !important;
      box-shadow: 12px 12px 0 #171717 !important;
    }

    .editorhead,
    .editorfoot,
    .editortabs {
      border-color: #d4d4d4 !important;
      background: #f5f5f5 !important;
    }

    .editortabs button {
      color: #70726e !important;
    }

    .editortabs button.active {
      color: #171717 !important;
      border-color: #6847ee !important;
    }

    .sectionbox,
    .epreview {
      background: #fafafa !important;
      border-color: #d4d4d4 !important;
      color: #171717 !important;
    }

    .sectionbox h4,
    .epreview>small {
      color: #6847ee !important;
    }

    .editor .input label {
      color: #656762 !important;
    }

    .editor .input input,
    .editor .input textarea,
    .editor select {
      background: #fff !important;
      color: #171717 !important;
      border-color: #bdb9af !important;
    }

    .editor .btn {
      background: #fff !important;
      color: #171717 !important;
      border-color: #171717 !important;
    }

    .editor .btn.primary {
      background: #6847ee !important;
      color: #fff !important;
      border: 0 !important;
    }

    .mini-phone {
      background: #171717 !important;
    }

    .mini-screen {
      background: #f5f5f5 !important;
      color: #171717 !important;
    }

    .uploadbox {
      background: #fff !important;
      color: #171717 !important;
      border-color: #bdb9af !important;
    }

    .activation {
      background: #f5f5f5 !important;
      color: #171717 !important;
    }

    .activation-nav {
      background: #f5f5f5 !important;
      border-color: #d4d4d4 !important;
    }

    .activation-card {
      background: #fafafa !important;
      border: 1px solid #171717 !important;
      border-radius: 8px !important;
      box-shadow: 10px 10px 0 #171717 !important;
    }

    .activation-card h1 {
      color: #171717 !important;
    }

    .activation-card>p,
    .activation-note {
      color: #686a6d !important;
    }

    .activation-step,
    .activation-condition {
      background: #f4f4f5 !important;
      color: #171717 !important;
      border-color: #d4d4d4 !important;
    }

    @media (max-width: 900px) {
      .main {
        padding: 20px 20px 42px !important;
      }

      .settings-grid {
        grid-template-columns: 1fr;
      }

      .settings-card.wide {
        grid-column: auto;
      }

      .analytics-row {
        grid-template-columns: 1.3fr 0.6fr 0.6fr 0.6fr;
      }
    }

    @media (max-width: 600px) {
      .main {
        padding: 16px 12px 32px !important;
      }

      .top {
        min-height: 132px !important;
      }

      .top h2 {
        font-size: 26px !important;
      }

      .cards {
        grid-template-columns: 1fr !important;
      }

      .analytics-row {
        grid-template-columns: 1fr 1fr;
      }

      .analytics-row.head {
        display: none;
      }

      .analytics-row span:nth-child(n + 2) {
        text-align: right;
      }

      .settings-card {
        padding: 17px;
      }

      .editor {
        box-shadow: none !important;
        border: 0 !important;
      }

      .activation-card {
        box-shadow: 6px 6px 0 #171717 !important;
      }
    }

    /* Editor usability pass — clear tabs, themes, color and uploads */
    .editor .editortabs {
      background: #fafafa !important;
      border: 1px solid #d4d4d4 !important;
      padding: 5px !important;
      gap: 6px !important;
      border-radius: 10px !important;
    }

    .editor .editortabs button {
      color: #686a6d !important;
      background: transparent !important;
      font-weight: 750 !important;
      border: 1px solid transparent !important;
      cursor: pointer !important;
    }

    .editor .editortabs button:hover {
      background: #ece9e1 !important;
      color: #171717 !important;
    }

    .editor .editortabs button.active {
      background: #6847ee !important;
      color: #fff !important;
      border-color: #6847ee !important;
      box-shadow: 0 3px 10px rgba(104, 71, 238, 0.25) !important;
    }

    .editor .themes {
      gap: 10px !important;
    }

    .editor .themeopt {
      position: relative;
      height: 72px !important;
      background: #fff !important;
      color: #171717 !important;
      border: 1px solid #d4d4d4 !important;
      border-radius: 9px !important;
      padding: 12px 42px 12px 12px !important;
      font-size: 15px !important;
      font-weight: 750 !important;
      cursor: pointer !important;
      transition: 0.16s ease !important;
    }

    .editor .themeopt:hover {
      border-color: #6847ee !important;
      transform: translateY(-1px) !important;
      box-shadow: 0 5px 14px rgba(23, 25, 28, 0.08) !important;
    }

    .editor .themeopt.active {
      border: 2px solid #6847ee !important;
      background: #f2efff !important;
      box-shadow: 0 0 0 3px rgba(104, 71, 238, 0.12) !important;
    }

    .editor .themeopt::after {
      content: "✓";
      position: absolute;
      right: 12px;
      top: 50%;
      width: 24px;
      height: 24px;
      margin-top: -12px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: #6847ee;
      color: #fff;
      opacity: 0;
      transform: scale(0.7);
      transition: 0.16s ease;
    }

    .editor .themeopt.active::after {
      opacity: 1;
      transform: scale(1);
    }

    .editor .themeopt i {
      width: 34px !important;
      height: 34px !important;
      border-radius: 8px !important;
      border: 1px solid rgba(23, 25, 28, 0.12) !important;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22) !important;
    }

    .editor .themeopt[data-theme="aurora"] i {
      background: linear-gradient(135deg,
          #8b5cf6,
          #f472b6,
          #22d3ee) !important;
    }

    .editor .themeopt[data-theme="dark"] i {
      background: linear-gradient(135deg, #0b1020, #2b3145) !important;
    }

    .editor .themeopt[data-theme="light"] i {
      background: linear-gradient(135deg, #fff, #e5e7eb) !important;
    }

    .editor .themeopt[data-theme="blue"] i {
      background: linear-gradient(135deg, #1d4ed8, #22d3ee) !important;
    }

    .editor .themeopt[data-theme="sunset"] i {
      background: linear-gradient(135deg, #fb923c, #ec4899) !important;
    }

    .editor .themeopt[data-theme="forest"] i {
      background: linear-gradient(135deg, #14532d, #34d399) !important;
    }

    .editor .themeopt[data-theme="mono"] i {
      background: linear-gradient(135deg, #111827, #9ca3af) !important;
    }

    .editor .themeopt[data-theme="candy"] i {
      background: linear-gradient(135deg, #f0abfc, #7dd3fc) !important;
    }

    .theme-status {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 12px;
      padding: 12px 14px;
      border: 1px solid #d4d4d4;
      border-radius: 8px;
      background: #f4f4f5;
      color: #686a6d;
    }

    .theme-status strong {
      color: #6847ee;
      font-size: 15px;
    }

    .color-control {
      display: grid;
      grid-template-columns: 64px 1fr auto;
      align-items: center;
      gap: 14px;
      border: 1px solid #d4d4d4;
      background: #fff;
      border-radius: 10px;
      padding: 12px;
    }

    .color-control input[type="color"] {
      appearance: none;
      -webkit-appearance: none;
      width: 58px !important;
      height: 52px !important;
      border: 1px solid #a9a59c !important;
      border-radius: 9px !important;
      padding: 4px !important;
      background: #fff !important;
      cursor: pointer;
    }

    .color-control input[type="color"]::-webkit-color-swatch-wrapper {
      padding: 0;
    }

    .color-control input[type="color"]::-webkit-color-swatch {
      border: 0;
      border-radius: 5px;
    }

    .color-copy {
      display: grid;
      gap: 3px;
    }

    .color-copy b {
      font-size: 14px;
    }

    .color-copy small {
      color: #737570;
      font-size: 12px;
    }

    .color-value {
      font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 13px;
      font-weight: 800;
      color: #5131cc;
      background: #ece8ff;
      border-radius: 7px;
      padding: 8px 10px;
    }

    .editor .uploadbox {
      min-height: 116px !important;
      background: #fff !important;
      color: #171717 !important;
      border: 1px dashed #a9a59c !important;
      border-radius: 10px !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      text-align: center !important;
      padding: 18px !important;
      font-size: 15px !important;
      line-height: 1.35 !important;
      font-weight: 800 !important;
      gap: 6px !important;
    }

    .editor .uploadbox:hover {
      border-color: #6847ee !important;
      background: #f7f5ff !important;
    }

    .upload-main {
      display: block;
      text-align: center;
    }

    .upload-hint {
      display: block;
      color: #737570;
      font-size: 12px;
      font-weight: 500;
      text-align: center;
    }

    .editor .uploadstate {
      text-align: center !important;
      margin-top: 8px !important;
      font-size: 11px !important;
      color: #737570 !important;
    }

    @media (max-width: 600px) {
      .editor .themeopt {
        height: 66px !important;
        padding-right: 36px !important;
      }

      .editor .themeopt i {
        width: 28px !important;
        height: 28px !important;
      }

      .color-control {
        grid-template-columns: 58px 1fr;
      }

      .color-value {
        grid-column: 1/-1;
        text-align: center;
      }

      .editor .uploadbox {
        min-height: 104px !important;
      }
    }

    /* Light Editorial sidebar — unified with the application */
    .app .side {
      background: #fafafa !important;
      color: #171717 !important;
      border-right: 1px solid #d4d4d4 !important;
      box-shadow: none !important;
    }

    .app .side .brand {
      color: #171717 !important;
    }

    .app .side .brand .logo {
      box-shadow: 0 0 0 1px rgba(23, 25, 28, 0.12) !important;
    }

    .app .snav button {
      background: transparent !important;
      color: #565852 !important;
      border: 1px solid transparent !important;
      font-weight: 700 !important;
      display: flex !important;
      align-items: center !important;
      gap: 10px !important;
      text-align: left !important;
      padding: 0 14px !important;
    }

    .app .snav button:hover {
      background: #f4f4f5 !important;
      color: #171717 !important;
      border-color: #d5d1c8 !important;
    }

    .app .snav button.active {
      background: #ffffff !important;
      color: #0f172a !important;
      border-color: #cbd5e1 !important;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), inset 3px 0 0 #0f172a !important;
      font-weight: 700 !important;
    }

    .app .telegram-side {
      background: #eaf8fb !important;
      color: #075d73 !important;
      border: 1px solid #9bcbd7 !important;
      font-weight: 800 !important;
      display: flex !important;
      align-items: center !important;
      gap: 10px !important;
      padding: 0 14px !important;
      text-decoration: none !important;
    }

    .app .telegram-side:hover {
      background: #dff3f8 !important;
      color: #064d60 !important;
      border-color: #6fb4c4 !important;
    }

    .app .snav-icon {
      flex-shrink: 0;
      display: inline-block;
      vertical-align: middle;
      stroke: currentColor;
      transition: transform 0.15s ease;
    }

    .app .snav button:hover .snav-icon,
    .app .telegram-side:hover .snav-icon {
      transform: scale(1.08);
    }

    .app .sideuser {
      border-top: 1px solid #d4d4d4 !important;
      color: #171717 !important;
    }

    .app .sideuser b {
      color: #171717 !important;
    }

    .app .sideuser span {
      color: #6d6f69 !important;
    }

    .app .sideuser .danger {
      background: #fff !important;
      color: #a72c25 !important;
      border: 1px solid #d8bbb7 !important;
      font-weight: 800 !important;
    }

    .app .sideuser .danger:hover {
      background: #fff0ee !important;
      border-color: #c78f88 !important;
    }

    @media (max-width: 900px) {
      .app .side {
        box-shadow: 14px 0 35px rgba(23, 25, 28, 0.16) !important;
      }
    }

    /* Text color controls and working layout previews */
    .text-color-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-bottom: 14px;
    }

    .text-color-grid .color-control {
      grid-template-columns: 56px 1fr auto;
      padding: 10px;
    }

    .text-color-grid input[type="color"] {
      width: 50px !important;
      height: 46px !important;
    }

    .text-color-grid .color-copy b {
      font-size: 13px;
    }

    .text-color-grid .color-copy small {
      font-size: 11px;
    }

    .layout-note {
      margin: 7px 0 0;
      color: #737570;
      font-size: 12px;
    }

    .mini-screen.layout-classic {
      text-align: center !important;
    }

    .mini-screen.layout-minimal {
      text-align: left !important;
      padding: 38px 22px !important;
    }

    .mini-screen.layout-minimal .mini-cover {
      display: none !important;
    }

    .mini-screen.layout-minimal .mini-avatar {
      width: 54px !important;
      height: 54px !important;
      border-radius: 16px !important;
      margin: 0 0 18px !important;
    }

    .mini-screen.layout-minimal h3 {
      font-size: 18px !important;
      margin-top: 0 !important;
    }

    .mini-screen.layout-minimal .mini-cta {
      text-align: center !important;
      margin-top: 24px !important;
    }

    .mini-screen.layout-bold {
      text-align: center !important;
      padding: 20px 15px !important;
    }

    .mini-screen.layout-bold .mini-cover {
      height: 150px !important;
    }

    .mini-screen.layout-bold .mini-avatar {
      width: 84px !important;
      height: 84px !important;
      border-radius: 24px !important;
      margin-top: -42px !important;
    }

    .mini-screen.layout-bold h3 {
      font-size: 30px !important;
      line-height: 1.05 !important;
      margin-top: 12px !important;
    }

    .mini-screen.layout-bold p {
      font-size: 14px !important;
    }

    .mini-screen.layout-bold .mini-cta {
      font-size: 16px !important;
      padding: 16px !important;
    }

    .redirectcard.layout-minimal {
      text-align: left !important;
      max-width: 520px !important;
    }

    .redirectcard.layout-minimal>img,
    .redirectcard.layout-minimal>.logo {
      margin-left: 0 !important;
    }

    .redirectcard.layout-minimal .btn {
      width: 100% !important;
    }

    .redirectcard.layout-bold {
      max-width: 540px !important;
    }

    .redirectcard.layout-bold h1 {
      font-size: 42px !important;
      line-height: 1.05 !important;
    }

    .redirectcard.layout-bold>p {
      font-size: 16px !important;
    }

    .redirectcard.layout-bold .btn {
      padding: 17px !important;
      font-size: 16px !important;
    }

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

      .text-color-grid .color-control {
        grid-template-columns: 52px 1fr auto;
      }

      .redirectcard.layout-bold h1 {
        font-size: 34px !important;
      }
    }

    /* Public mobile card and configurable extra buttons */
    .editor .extrarow input {
      background: #fff !important;
      color: #171717 !important;
      border: 1px solid #bdb9af !important;
      box-shadow: none !important;
    }

    .editor .extrarow input::placeholder {
      color: #8a8c86 !important;
    }

    .editor .extrarow input:focus {
      border-color: #6847ee !important;
      outline: 3px solid rgba(104, 71, 238, 0.12) !important;
    }

    .extra-color-control {
      margin-top: 12px;
    }

    .extra-color-control .color-control {
      grid-template-columns: 58px 1fr auto;
    }

    .mini-link {
      color: #171717;
      transition: 0.15s ease;
    }

    @media (max-width: 600px) {
      .redirect {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-height: 100svh !important;
        min-height: 100dvh !important;
        height: auto !important;
        padding: 28px 18px 36px !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
      }

      .redirectcard {
        width: 100% !important;
        max-width: 440px !important;
        min-height: auto !important;
        margin: 0 auto !important;
        border-radius: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
      }

      .redirectcard>div:first-child[style*="height:130px"] {
        height: 132px !important;
        flex: none !important;
      }

      .redirectcard .btn {
        flex: none !important;
      }

      .redirectcard .small:last-child {
        margin-top: 20px !important;
      }

      .extra-color-control .color-control {
        grid-template-columns: 52px 1fr;
      }

      .extra-color-control .color-value {
        grid-column: 1/-1;
        text-align: center;
      }
    }

    /* Public card hierarchy: content near media, brand at footer */
    /* Online live radar pulse animation */
    @keyframes onlinePulse {
      0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.75);
        transform: scale(0.95);
      }

      70% {
        box-shadow: 0 0 0 5.5px rgba(34, 197, 94, 0);
        transform: scale(1.08);
      }

      100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
        transform: scale(0.95);
      }
    }

    /* Instagram smart transfer bar */
    .ig-transfer-banner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin: 0 auto 16px;
      width: 100%;
      box-sizing: border-box;
      padding: 8px 12px;
      background: rgba(255, 255, 255, 0.09);
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 12px;
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      text-align: left;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    }

    .ig-transfer-info {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .ig-transfer-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 26px;
      height: 26px;
      border-radius: 7px;
      background: rgba(255, 255, 255, 0.14);
      color: #fff;
      font-size: 13px;
      font-weight: 700;
      flex-shrink: 0;
    }

    .ig-transfer-text {
      display: flex;
      flex-direction: column;
      min-width: 0;
    }

    .ig-transfer-text span {
      font-size: 11.5px;
      font-weight: 600;
      color: #fff;
      line-height: 1.25;
    }

    .ig-transfer-text small {
      font-size: 10px;
      color: rgba(255, 255, 255, 0.7);
      line-height: 1.2;
    }

    .ig-transfer-btn {
      padding: 5px 12px;
      border-radius: 8px;
      background: #fff;
      color: #0d1020;
      font-size: 11.5px;
      font-weight: 700;
      border: none;
      cursor: pointer;
      white-space: nowrap;
      flex-shrink: 0;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
      transition: transform 0.15s ease, opacity 0.15s ease;
    }

    .ig-transfer-btn:active {
      transform: scale(0.95);
    }

    /* Public card hierarchy: brand footer with pulsing online dot */
    .redirectcard .brand-footer {
      width: max-content !important;
      max-width: 100% !important;
      margin: 22px auto 0 !important;
      align-self: center !important;
      justify-content: center !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 6px !important;
      padding: 4px 12px !important;
      border-radius: 999px !important;
      font-size: 11px !important;
      font-weight: 600 !important;
      letter-spacing: 0.3px !important;
      backdrop-filter: blur(12px) !important;
      -webkit-backdrop-filter: blur(12px) !important;
      background: rgba(0, 0, 0, 0.45) !important;
      border: 1px solid rgba(255, 255, 255, 0.12) !important;
      color: rgba(255, 255, 255, 0.85) !important;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
    }

    .redirectcard .brand-footer:before {
      content: "" !important;
      display: inline-block !important;
      width: 6.5px !important;
      height: 6.5px !important;
      border-radius: 50% !important;
      background: #22c55e !important;
      box-shadow: 0 0 8px #22c55e !important;
      animation: onlinePulse 1.8s infinite ease-in-out !important;
      flex-shrink: 0 !important;
    }

    .redirectcard .route-note {
      margin: 16px 0 0 !important;
      font-size: 12.5px !important;
      color: rgba(255, 255, 255, 0.75) !important;
      text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
    }

    @media (max-width: 600px) {
      .redirectcard>img {
        margin: 0 auto 10px !important;
        flex: none !important;
      }

      .redirectcard>.logo {
        margin: 0 auto 10px !important;
        flex: none !important;
      }

      .redirectcard h1 {
        margin: 12px 0 6px !important;
      }

      .redirectcard h1+p {
        margin: 0 0 12px !important;
      }

      .redirectcard .btn {
        margin-top: 10px !important;
      }

      .redirectcard .route-note {
        margin: 16px 0 0 !important;
      }

      .redirectcard .brand-footer {
        margin: 18px auto 0 !important;
        width: max-content !important;
        min-width: 0 !important;
        align-self: center !important;
        padding: 4px 12px !important;
        font-size: 11px !important;
      }
    }

    /* =========================================================
         BUTTON ANIMATIONS (PULSE, GLOW, BOUNCE, SHAKE, WOBBLE, POP)
         ========================================================= */
    @keyframes btnPulse {

      0%,
      100% {
        transform: scale(1);
      }

      50% {
        transform: scale(1.035);
      }
    }

    @keyframes btnGlow {

      0%,
      100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
      }

      50% {
        box-shadow: 0 0 16px rgba(139, 92, 246, 0.75), 0 0 30px rgba(139, 92, 246, 0.45);
      }
    }

    @keyframes btnBounce {

      0%,
      20%,
      50%,
      80%,
      100% {
        transform: translateY(0);
      }

      40% {
        transform: translateY(-7px);
      }

      60% {
        transform: translateY(-3px);
      }
    }

    @keyframes btnShake {

      0%,
      100% {
        transform: translateX(0);
      }

      20%,
      60% {
        transform: translateX(-3.5px) rotate(-0.8deg);
      }

      40%,
      80% {
        transform: translateX(3.5px) rotate(0.8deg);
      }
    }

    @keyframes btnWobble {

      0%,
      100% {
        transform: rotate(0deg);
      }

      25% {
        transform: rotate(-1.8deg) scale(1.015);
      }

      75% {
        transform: rotate(1.8deg) scale(1.015);
      }
    }

    @keyframes btnPop {

      0%,
      100% {
        transform: scale(1);
      }

      50% {
        transform: scale(0.96);
      }
    }

    .anim-pulse,
    .btn.anim-pulse,
    .mini-cta.anim-pulse,
    .mini-link.anim-pulse {
      animation: btnPulse 2s infinite ease-in-out !important;
    }

    .anim-glow,
    .btn.anim-glow,
    .mini-cta.anim-glow,
    .mini-link.anim-glow {
      animation: btnGlow 2.2s infinite ease-in-out !important;
    }

    .anim-bounce,
    .btn.anim-bounce,
    .mini-cta.anim-bounce,
    .mini-link.anim-bounce {
      animation: btnBounce 2.4s infinite ease !important;
    }

    .anim-shake,
    .btn.anim-shake,
    .mini-cta.anim-shake,
    .mini-link.anim-shake {
      animation: btnShake 3s infinite ease-in-out !important;
    }

    .anim-wobble,
    .btn.anim-wobble,
    .mini-cta.anim-wobble,
    .mini-link.anim-wobble {
      animation: btnWobble 2.5s infinite ease-in-out !important;
    }

    .anim-pop,
    .btn.anim-pop,
    .mini-cta.anim-pop,
    .mini-link.anim-pop {
      animation: btnPop 1.8s infinite ease-in-out !important;
    }

    .extrarow {
      display: flex !important;
      gap: 8px !important;
      align-items: center !important;
      margin-bottom: 10px !important;
      flex-wrap: wrap !important;
    }

    .extrarow [data-extra-text] {
      flex: 1 1 130px !important;
    }

    .extrarow [data-extra-url] {
      flex: 2 1 170px !important;
    }

    .extrarow .extra-anim-select {
      flex: 1 1 130px !important;
      height: 38px !important;
      padding: 0 8px !important;
      border: 1px solid #e5e5e5 !important;
      border-radius: 8px !important;
      background: #fff !important;
      font-size: 12px !important;
      font-weight: 600 !important;
      color: #171717 !important;
      cursor: pointer !important;
    }


    /* ARUSHAN.BIO AUTH MODAL - SIGNATURE DESIGN */
    #authModal.modalbg {
      position: fixed !important;
      inset: 0 !important;
      background: rgba(15, 23, 42, 0.55) !important;
      backdrop-filter: blur(8px) !important;
      -webkit-backdrop-filter: blur(8px) !important;
      display: none;
      place-items: center !important;
      z-index: 99999 !important;
      padding: 18px !important;
    }

    #authModal.modalbg.open {
      display: grid !important;
    }

    #authModal .modal {
      width: min(420px, 100%) !important;
      background: #ffffff !important;
      color: #0f172a !important;
      border: 1.5px solid #0f172a !important;
      box-shadow: 6px 6px 0 #0f172a !important;
      border-radius: 16px !important;
      padding: 32px 28px !important;
      font-family: inherit !important;
      box-sizing: border-box !important;
      animation: authModalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    @keyframes authModalPop {
      from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
      }

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

    #authModal h2 {
      margin: 0 0 6px !important;
      font-size: 25px !important;
      font-weight: 800 !important;
      color: #0f172a !important;
      letter-spacing: -0.03em !important;
    }

    #authModal>p,
    #authModal form>p {
      color: #64748b !important;
      margin: 0 0 20px !important;
      font-size: 14px !important;
      line-height: 1.5 !important;
    }

    #authModal .input {
      margin-bottom: 16px !important;
    }

    #authModal .input label {
      display: block !important;
      font-size: 11px !important;
      font-weight: 750 !important;
      color: #475569 !important;
      letter-spacing: 0.05em !important;
      text-transform: uppercase !important;
      margin-bottom: 6px !important;
    }

    #authModal .input input {
      width: 100% !important;
      height: 46px !important;
      background: #f8fafc !important;
      color: #0f172a !important;
      border: 1.5px solid #cbd5e1 !important;
      border-radius: 9px !important;
      padding: 0 14px !important;
      font-size: 15px !important;
      box-sizing: border-box !important;
      outline: none !important;
      transition: all 0.15s ease !important;
    }

    #authModal .input input:focus {
      background: #ffffff !important;
      border-color: #6847ee !important;
      box-shadow: 0 0 0 3px rgba(104, 71, 238, 0.18) !important;
    }

    #authModal #authSubmit {
      width: 100% !important;
      height: 48px !important;
      background: #6847ee !important;
      color: #ffffff !important;
      border: 1.5px solid #0f172a !important;
      box-shadow: 3px 3px 0 #0f172a !important;
      border-radius: 9px !important;
      font-size: 15px !important;
      font-weight: 750 !important;
      cursor: pointer !important;
      margin-top: 8px !important;
      transition: all 0.12s ease !important;
    }

    #authModal #authSubmit:hover {
      background: #5b3ce0 !important;
      transform: translate(-1px, -1px) !important;
      box-shadow: 4px 4px 0 #0f172a !important;
    }

    #authModal #authSubmit:active {
      transform: translate(1px, 1px) !important;
      box-shadow: 1px 1px 0 #0f172a !important;
    }

    #authModal #closeAuth {
      width: 100% !important;
      height: 40px !important;
      background: #f8fafc !important;
      color: #64748b !important;
      border: 1px solid #e2e8f0 !important;
      border-radius: 9px !important;
      font-size: 13.5px !important;
      font-weight: 600 !important;
      cursor: pointer !important;
      margin-top: 10px !important;
      transition: all 0.12s ease !important;
    }

    #authModal #closeAuth:hover {
      background: #f1f5f9 !important;
      color: #0f172a !important;
    }

    #authModal .switchauth {
      text-align: center !important;
      color: #64748b !important;
      font-size: 13.5px !important;
      margin-top: 16px !important;
    }

    #authModal .switchauth button {
      border: 0 !important;
      background: none !important;
      color: #6847ee !important;
      font-weight: 750 !important;
      font-size: 13.5px !important;
      cursor: pointer !important;
      text-decoration: underline !important;
      margin-left: 5px !important;
    }


    /* BALANCED HERO BUTTON PAIR (ENLARGED + MOBILE-OPTIMIZED) */
    .hero-actions {
      display: flex !important;
      align-items: center !important;
      gap: 16px !important;
      flex-wrap: wrap !important;
      margin-bottom: 26px !important;
    }

    .cta-btn {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 17px 34px !important;
      font-size: 16.5px !important;
      font-weight: 750 !important;
      letter-spacing: -0.01em !important;
      line-height: 1.2 !important;
      min-height: 54px !important;
      background: #6847ee !important;
      color: #ffffff !important;
      border: 1.5px solid #0f172a !important;
      box-shadow: 4px 4px 0 #0f172a !important;
      border-radius: 12px !important;
      cursor: pointer !important;
      white-space: nowrap !important;
      box-sizing: border-box !important;
      transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease !important;
    }

    .cta-btn:hover {
      background: #5b3ce0 !important;
      transform: translate(-2px, -2px) !important;
      box-shadow: 6px 6px 0 #0f172a !important;
    }

    .cta-btn:active {
      transform: translate(2px, 2px) !important;
      box-shadow: 2px 2px 0 #0f172a !important;
    }

    .sec-login-btn {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 17px 34px !important;
      font-size: 16.5px !important;
      font-weight: 750 !important;
      letter-spacing: -0.01em !important;
      line-height: 1.2 !important;
      min-height: 54px !important;
      background: #ffffff !important;
      color: #0f172a !important;
      border: 1.5px solid #0f172a !important;
      box-shadow: 4px 4px 0 #0f172a !important;
      border-radius: 12px !important;
      cursor: pointer !important;
      white-space: nowrap !important;
      box-sizing: border-box !important;
      transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease !important;
    }

    .sec-login-btn:hover {
      background: #f7f5ee !important;
      transform: translate(-2px, -2px) !important;
      box-shadow: 6px 6px 0 #0f172a !important;
    }

    .sec-login-btn:active {
      transform: translate(2px, 2px) !important;
      box-shadow: 2px 2px 0 #0f172a !important;
    }

    /* MOBILE SCREEN ADAPTATION (< 640px) */
    @media (max-width: 640px) {
      .hero-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        width: 100% !important;
        margin-bottom: 22px !important;
      }

      .cta-btn,
      .sec-login-btn {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 16px 20px !important;
        font-size: 16px !important;
        min-height: 52px !important;
        border-radius: 12px !important;
        box-shadow: 3px 3px 0 #0f172a !important;
        text-align: center !important;
        box-sizing: border-box !important;
        white-space: normal !important;
      }

      .cta-btn:hover,
      .sec-login-btn:hover {
        transform: none !important;
      }

      .cta-btn:active,
      .sec-login-btn:active {
        transform: translate(1px, 1px) !important;
        box-shadow: 2px 2px 0 #0f172a !important;
      }
    }

/* Block 2 (arushan-builder-stage1) */
:root {
      --builder-accent: #6d4aff;
      --builder-accent-soft: #f0ecff;
      --builder-ink: #1d1c22;
      --builder-muted: #77747f;
      --builder-line: #e7e5eb;
      --builder-canvas: #fafafa;
      --builder-panel: #fff
    }

    #editorModal.editorbg {
      padding: 18px !important;
      background: rgba(25, 24, 30, .56) !important;
      backdrop-filter: blur(14px);
      z-index: 1000
    }

    #editorModal .editor {
      width: min(1500px, calc(100vw - 36px)) !important;
      height: min(940px, calc(100dvh - 36px)) !important;
      max-width: none !important;
      max-height: none !important;
      padding: 0 !important;
      border: 1px solid rgba(255, 255, 255, .72) !important;
      border-radius: 18px !important;
      background: var(--builder-panel) !important;
      box-shadow: 0 28px 80px rgba(22, 18, 35, .28) !important;
      overflow: hidden !important;
      display: grid !important;
      grid-template-rows: 64px auto minmax(0, 1fr) 68px;
      color: var(--builder-ink) !important
    }

    #editorModal .editorhead {
      height: 64px !important;
      padding: 0 20px !important;
      border-bottom: 1px solid var(--builder-line) !important;
      background: rgba(255, 255, 255, .96) !important;
      display: flex !important;
      align-items: center !important;
      gap: 14px !important
    }

    #editorModal .builder-head-logo {
      width: 32px !important;
      height: 32px !important;
      border-radius: 9px !important;
      flex: none !important;
      box-shadow: 0 1px 3px rgba(0, 0, 0, .05), 0 1px 1px rgba(0, 0, 0, .02) !important;
      background-size: 80% 80% !important;
      background-color: transparent !important
    }

    #editorModal .editorhead h3 {
      font-size: 15px !important;
      letter-spacing: -.01em !important;
      margin: 0 !important;
      flex: 1;
      color: var(--builder-ink) !important
    }

    #editorModal .editorhead h3:after {
      content: " • Visual builder";
      font-weight: 500;
      color: #737373
    }

    #editorModal .iconbtn {
      transition: background .18s ease, transform .18s ease, border-color .18s ease !important
    }

    #editorModal .iconbtn:hover {
      background: #f2f0f5 !important;
      transform: translateY(-1px)
    }

    #editorModal #editNotice:empty {
      display: none !important
    }

    #editorModal #editNotice:not(:empty) {
      padding: 10px 18px 0;
      background: #fff
    }

    #editorModal .builder-shell {
      min-height: 0;
      display: grid;
      grid-template-columns: 260px minmax(420px, 1fr) 390px;
      background: var(--builder-canvas)
    }

    #editorModal .builder-outline,
    #editorModal .builder-inspector {
      min-width: 0;
      min-height: 0;
      background: #fff
    }

    #editorModal .builder-outline {
      border-right: 1px solid var(--builder-line);
      display: flex;
      flex-direction: column;
      overflow: hidden
    }

    #editorModal .builder-inspector {
      border-left: 1px solid var(--builder-line);
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-width: thin
    }

    #editorModal .builder-stage {
      min-width: 0;
      min-height: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: auto;
      padding: 20px;
      background: radial-gradient(circle at 50% 18%, #fff 0, #f8f7fa 34%, #eeeef2 100%)
    }

    .builder-panel-head {
      height: 58px;
      padding: 0 16px;
      border-bottom: 1px solid var(--builder-line);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px
    }

    .builder-panel-head strong {
      font-size: 13px;
      letter-spacing: .01em;
      color: var(--builder-ink)
    }

    .builder-status {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 700;
      color: #2f7b51;
      background: #edf8f2;
      padding: 5px 8px;
      border-radius: 999px
    }

    .builder-status:before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #42a36e;
      box-shadow: 0 0 0 3px rgba(66, 163, 110, .12)
    }

    .builder-tree {
      padding: 14px 12px;
      overflow-y: auto;
      flex: 1
    }

    .builder-group-label {
      padding: 10px 10px 7px;
      color: #96929d;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .09em;
      text-transform: uppercase
    }

    .builder-node {
      width: 100%;
      min-height: 44px;
      border: 1px solid transparent;
      background: transparent;
      border-radius: 10px;
      padding: 8px 10px;
      display: flex;
      align-items: center;
      gap: 10px;
      color: #403d46;
      text-align: left;
      font-size: 13px;
      font-weight: 650;
      cursor: pointer;
      transition: .18s ease
    }

    .builder-node:hover {
      background: #f7f6f9;
      border-color: #efedf2;
      transform: translateX(2px)
    }

    .builder-node.active {
      background: var(--builder-accent-soft);
      border-color: #ddd4ff;
      color: #4c2fc4
    }

    .builder-node .node-icon {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      background: #f1eff4;
      display: grid;
      place-items: center;
      font-size: 14px;
      flex: none
    }

    .builder-node.active .node-icon {
      background: #fff;
      box-shadow: 0 1px 3px rgba(65, 40, 150, .12)
    }

    .builder-node .node-copy {
      min-width: 0;
      flex: 1
    }

    .builder-node .node-copy b {
      display: block;
      font-size: 12px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis
    }

    .builder-node .node-copy small {
      display: block;
      margin-top: 2px;
      color: #9995a0;
      font-size: 10px;
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis
    }

    .builder-node .drag {
      color: #aaa6b0;
      font-size: 15px;
      letter-spacing: -2px;
      cursor: grab
    }

    .builder-add {
      margin: 10px 12px 14px;
      min-height: 44px;
      border: 1px dashed #cfcad8;
      border-radius: 10px;
      background: #fbfaff;
      color: #5b3bd0;
      font-weight: 750;
      cursor: pointer;
      transition: .18s ease
    }

    .builder-add:hover {
      border-color: #8c73e7;
      background: #f4f0ff;
      transform: translateY(-1px)
    }

    .builder-inspector-head {
      position: sticky;
      top: 0;
      z-index: 5;
      background: rgba(255, 255, 255, .96);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--builder-line)
    }

    .builder-inspector-title {
      padding: 14px 18px 4px
    }

    .builder-inspector-title span {
      display: block;
      color: #96929d;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .09em;
      text-transform: uppercase
    }

    .builder-inspector-title strong {
      display: block;
      margin-top: 4px;
      font-size: 16px;
      letter-spacing: -.02em
    }

    #editorModal .builder-inspector .editortabs {
      position: static !important;
      margin: 8px 12px 12px !important;
      padding: 4px !important;
      border: 0 !important;
      border-radius: 10px !important;
      background: #f1f0f3 !important;
      display: grid !important;
      grid-template-columns: repeat(3, 1fr) !important;
      gap: 3px !important;
      width: auto !important
    }

    #editorModal .builder-inspector .editortabs button {
      min-height: 34px !important;
      padding: 0 8px !important;
      border: 0 !important;
      border-radius: 7px !important;
      background: transparent !important;
      color: #77737e !important;
      font-size: 11px !important;
      font-weight: 750 !important
    }

    #editorModal .builder-inspector .editortabs button.active {
      background: #fff !important;
      color: #4e31c5 !important;
      box-shadow: 0 1px 3px rgba(30, 24, 45, .12) !important
    }

    #editorModal .builder-inspector .pane {
      padding: 16px !important
    }

    #editorModal .builder-inspector .sectionbox {
      margin: 0 0 14px !important;
      padding: 16px !important;
      border: 1px solid var(--builder-line) !important;
      border-radius: 12px !important;
      background: #fff !important;
      box-shadow: 0 1px 2px rgba(25, 20, 35, .025) !important
    }

    #editorModal .builder-inspector .sectionbox h4 {
      font-size: 11px !important;
      letter-spacing: .06em !important;
      color: #68646e !important;
      margin: 0 0 14px !important
    }

    #editorModal .builder-inspector .formgrid,
    #editorModal .builder-inspector .text-color-grid {
      grid-template-columns: 1fr !important;
      gap: 0 !important
    }

    #editorModal .builder-inspector .input {
      margin-bottom: 13px !important
    }

    #editorModal .builder-inspector .input:last-child {
      margin-bottom: 0 !important
    }

    #editorModal .builder-inspector .input label {
      font-size: 10px !important;
      color: #8a8690 !important;
      letter-spacing: .055em !important;
      margin-bottom: 6px !important
    }

    #editorModal .builder-inspector input:not([type=file]):not([type=color]),
    #editorModal .builder-inspector textarea,
    #editorModal .builder-inspector select {
      min-height: 42px !important;
      border: 1px solid #dfdce4 !important;
      border-radius: 9px !important;
      background: #fbfbfc !important;
      color: #28252d !important;
      padding: 9px 11px !important;
      font-size: 13px !important;
      box-shadow: none !important;
      transition: .18s ease !important
    }

    #editorModal .builder-inspector textarea {
      min-height: 82px !important;
      resize: vertical
    }

    #editorModal .builder-inspector input:focus,
    #editorModal .builder-inspector textarea:focus,
    #editorModal .builder-inspector select:focus {
      border-color: #8f78ea !important;
      background: #fff !important;
      box-shadow: 0 0 0 3px rgba(109, 74, 255, .1) !important;
      outline: none !important
    }

    #editorModal .builder-inspector .uploadbox {
      min-height: 82px !important;
      border-radius: 10px !important
    }

    #editorModal .builder-inspector .themes {
      grid-template-columns: repeat(4, 1fr) !important;
      gap: 8px !important
    }

    #editorModal .builder-inspector .themeopt {
      min-height: 74px !important;
      padding: 7px !important;
      border-radius: 10px !important;
      font-size: 10px !important
    }

    #editorModal .builder-inspector .themeopt i {
      height: 38px !important;
      border-radius: 7px !important
    }

    #editorModal .builder-inspector .color-control {
      padding: 9px !important;
      border-radius: 10px !important;
      gap: 9px !important
    }

    .builder-inspector .color-copy small {
      display: none !important
    }

    .builder-inspector .color-value {
      font-size: 10px !important
    }

    #editorModal .builder-inspector .extrarow {
      position: relative;
      grid-template-columns: 1fr 34px !important;
      gap: 7px !important;
      padding: 10px !important;
      border: 1px solid var(--builder-line) !important;
      border-radius: 10px !important;
      background: #faf9fb !important
    }

    #editorModal .builder-inspector .extrarow input[data-extra-url] {
      grid-column: 1/-1
    }

    .builder-reorder {
      display: flex;
      gap: 4px;
      position: absolute;
      right: 46px;
      top: 12px
    }

    .builder-reorder button {
      width: 24px;
      height: 24px;
      border: 1px solid #dfdce4;
      background: #fff;
      border-radius: 7px;
      color: #706b78;
      cursor: pointer
    }

    .builder-reorder button:disabled {
      opacity: .35
    }

    #editorModal .epreview {
      display: block !important;
      width: auto !important;
      position: relative !important;
      top: auto !important;
      padding: 0 !important;
      background: transparent !important;
      border: 0 !important;
      text-align: center !important
    }

    #editorModal .epreview>small {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 7px !important;
      margin: 0 0 14px !important;
      color: #706c76 !important;
      font-size: 10px !important;
      letter-spacing: .09em !important;
      font-weight: 800 !important
    }

    #editorModal .epreview>small:before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #46a171
    }

    #editorModal .mini-phone {
      width: 326px !important;
      height: 610px !important;
      border: 8px solid #1a191e !important;
      border-radius: 42px !important;
      padding: 0 !important;
      background: #1a191e !important;
      box-shadow: 0 24px 60px rgba(33, 29, 44, .2), 0 2px 0 rgba(255, 255, 255, .28) inset !important;
      overflow: hidden !important;
      position: relative !important
    }

    #editorModal .mini-phone:before {
      content: "";
      position: absolute;
      z-index: 4;
      top: 7px;
      left: 50%;
      transform: translateX(-50%);
      width: 74px;
      height: 20px;
      border-radius: 0 0 13px 13px;
      background: #1a191e
    }

    #editorModal .mini-screen {
      height: 100% !important;
      min-height: 0 !important;
      border-radius: 33px !important;
      overflow-y: auto !important;
      scrollbar-width: none;
      padding-bottom: 24px !important
    }

    #editorModal .mini-screen::-webkit-scrollbar {
      display: none
    }

    #editorModal .mini-cover,
    #editorModal .mini-avatar,
    #editorModal #previewName,
    #editorModal #previewBio,
    #editorModal .mini-cta,
    #editorModal .mini-link {
      cursor: pointer;
      transition: transform .18s ease, outline-color .18s ease, box-shadow .18s ease !important;
      outline: 2px solid transparent;
      outline-offset: 3px
    }

    #editorModal .mini-cover:hover,
    #editorModal .mini-avatar:hover,
    #editorModal #previewName:hover,
    #editorModal #previewBio:hover,
    #editorModal .mini-cta:hover,
    #editorModal .mini-link:hover {
      outline-color: rgba(255, 255, 255, .72);
      transform: translateY(-1px)
    }

    #editorModal [data-builder-selected="true"] {
      outline-color: #9d8aff !important;
      box-shadow: 0 0 0 5px rgba(109, 74, 255, .22) !important
    }

    #editorModal .editorfoot {
      height: 68px !important;
      margin: 0 !important;
      padding: 0 20px !important;
      border-top: 1px solid var(--builder-line) !important;
      background: #fff !important;
      display: flex !important;
      align-items: center !important;
      justify-content: flex-end !important;
      gap: 10px !important
    }

    .builder-save-note {
      margin-right: auto;
      color: #8c8893;
      font-size: 11px;
      display: flex;
      align-items: center;
      gap: 7px
    }

    .builder-save-note:before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #46a171
    }

    #editorModal .editorfoot .btn {
      min-height: 40px !important;
      border-radius: 9px !important;
      padding: 0 16px !important;
      font-size: 12px !important
    }

    .editorfoot .btn.primary {
      background: #17161a !important;
      color: #fff !important;
      box-shadow: none !important
    }

    .editorfoot .btn.primary:hover {
      background: #5c3dde !important;
      transform: translateY(-1px)
    }

    @media(max-width:1180px) {
      #editorModal .builder-shell {
        grid-template-columns: 220px minmax(380px, 1fr) 350px
      }

      #editorModal .builder-stage {
        padding: 24px
      }

      #editorModal .mini-phone {
        width: 292px !important;
        height: 584px !important
      }
    }

    @media(max-width:900px) {
      #editorModal.editorbg {
        padding: 0 !important
      }

      #editorModal .editor {
        width: 100vw !important;
        height: 100dvh !important;
        border-radius: 0 !important;
        grid-template-rows: 58px auto minmax(0, 1fr) 62px
      }

      #editorModal .editorhead {
        height: 58px !important
      }

      #editorModal .builder-shell {
        grid-template-columns: 82px minmax(310px, 1fr) 340px;
        overflow-x: auto
      }

      #editorModal .builder-outline {
        min-width: 82px
      }

      .builder-panel-head {
        padding: 0 8px;
        justify-content: center
      }

      .builder-panel-head strong,
      .builder-status {
        display: none
      }

      .builder-tree {
        padding: 10px 7px
      }

      .builder-group-label {
        font-size: 0;
        height: 7px;
        padding: 0
      }

      .builder-node {
        justify-content: center;
        padding: 7px
      }

      .builder-node .node-copy,
      .builder-node .drag {
        display: none
      }

      .builder-add {
        font-size: 0;
        margin: 8px
      }

      .builder-add:before {
        content: "+";
        font-size: 20px
      }

      #editorModal .builder-stage {
        padding: 18px
      }

      #editorModal .mini-phone {
        width: 286px !important;
        height: 572px !important
      }

      .builder-save-note {
        display: none
      }
    }

    @media(prefers-reduced-motion:reduce) {
      #editorModal * {
        scroll-behavior: auto !important;
        transition: none !important
      }
    }

/* Block 3 (arushan-contextual-stage2) */
#editorModal .ctx-hidden {
      display: none !important
    }

    #editorModal .builder-inspector[data-context]:not([data-context="design"]) .editortabs {
      display: none !important
    }

    #editorModal .builder-inspector[data-context="design"] .builder-inspector-title {
      padding-bottom: 4px
    }

    #editorModal .context-meta {
      display: flex !important;
      flex-direction: column !important;
      gap: 10px !important;
      padding: 12px 0 2px !important;
      margin: 10px 0 0 !important;
      border-top: 1px solid #f0f0f0 !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    #editorModal .context-chips {
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
      flex-wrap: wrap !important;
      width: 100% !important;
    }

    #editorModal .context-chip {
      display: inline-flex !important;
      align-items: center !important;
      gap: 6px !important;
      height: 26px !important;
      min-height: 26px !important;
      padding: 0 10px !important;
      border: 1px solid #e2dfe6 !important;
      border-radius: 7px !important;
      background: #faf9fb !important;
      color: #635f6a !important;
      font-size: 11px !important;
      font-weight: 600 !important;
      line-height: 1 !important;
      white-space: nowrap !important;
      flex-shrink: 0 !important;
      box-sizing: border-box !important;
    }

    #editorModal .context-chip.live:before {
      content: "" !important;
      display: inline-block !important;
      width: 6px !important;
      height: 6px !important;
      border-radius: 50% !important;
      background: #22c55e !important;
      box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2) !important;
      flex-shrink: 0 !important;
    }

    #editorModal .context-actions:empty {
      display: none !important;
    }

    #editorModal .context-actions {
      display: grid !important;
      grid-template-columns: 1fr 1fr 1fr !important;
      gap: 8px !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    #editorModal .context-action {
      all: unset !important;
      height: 30px !important;
      min-height: 30px !important;
      padding: 0 6px !important;
      margin: 0 !important;
      border: 1px solid #dedbe3 !important;
      border-radius: 8px !important;
      background: #ffffff !important;
      color: #55505c !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 5px !important;
      font-size: 11.5px !important;
      font-weight: 600 !important;
      line-height: 1 !important;
      cursor: pointer !important;
      transition: all 0.15s ease !important;
      box-sizing: border-box !important;
      white-space: nowrap !important;
      text-align: center !important;
    }

    #editorModal .context-action:hover:not(:disabled) {
      border-color: #8b5cf6 !important;
      background: #f5f3ff !important;
      color: #6d28d9 !important;
      transform: translateY(-1px) !important;
    }

    #editorModal .context-action.danger {
      color: #c94f45 !important;
    }

    #editorModal .context-action.danger:hover:not(:disabled) {
      border-color: #fca5a5 !important;
      background: #fef2f2 !important;
      color: #dc2626 !important;
    }

    #editorModal .context-action:disabled {
      opacity: 0.3 !important;
      cursor: not-allowed !important;
      pointer-events: none !important;
      background: #f8f7fa !important;
      border-color: #e6e3eb !important;
      color: #a39ea8 !important;
    }

    #editorModal .context-empty {
      margin: 16px;
      padding: 24px;
      border: 1px dashed #d8d4df;
      border-radius: 12px;
      text-align: center;
      color: #85818b;
      font-size: 12px;
      background: #fbfafd
    }

    #editorModal .context-empty b {
      display: block;
      color: #39363e;
      font-size: 14px;
      margin-bottom: 5px
    }

    #editorModal .builder-inspector[data-context^="extra-"] #pane-content .sectionbox:nth-of-type(3)>h4,
    #editorModal .builder-inspector[data-context^="extra-"] #pane-content .sectionbox:nth-of-type(3)>.small,
    #editorModal .builder-inspector[data-context^="extra-"] #pane-content .sectionbox:nth-of-type(3)>.extrahead {
      display: none !important
    }

    #editorModal .builder-inspector[data-context^="extra-"] #extraButtonsList {
      display: block !important
    }

    #editorModal .builder-inspector[data-context^="extra-"] .extrarow {
      display: none !important
    }

    #editorModal .builder-inspector[data-context^="extra-"] .extrarow.ctx-active {
      display: block !important
    }

    #editorModal .context-section-label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 0 0 12px;
      color: #68646e;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .06em;
      text-transform: uppercase
    }

    #editorModal .context-section-label small {
      font-size: 9px;
      color: #9a96a0;
      letter-spacing: .02em;
      text-transform: none;
      font-weight: 600
    }

    #editorModal .sectionbox:before,
    #editorModal .builder-inspector[data-context] .sectionbox:before {
      display: none !important;
      content: none !important;
    }

    #editorModal .field-focus-flash {
      animation: fieldFocusFlash .52s ease
    }

    @keyframes fieldFocusFlash {
      0% {
        box-shadow: 0 0 0 0 rgba(109, 74, 255, .24)
      }

      55% {
        box-shadow: 0 0 0 5px rgba(109, 74, 255, .1)
      }

      100% {
        box-shadow: 0 0 0 0 rgba(109, 74, 255, 0)
      }
    }

    #editorModal .preview-context-tag {
      position: absolute;
      z-index: 8;
      pointer-events: none;
      transform: translate(-50%, -100%);
      padding: 5px 7px;
      border-radius: 7px;
      background: #17161a;
      color: #fff;
      font-size: 9px;
      font-weight: 750;
      box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
      opacity: 0;
      transition: opacity .14s ease
    }

    #editorModal .builder-stage.has-hover-tag .preview-context-tag {
      opacity: 1
    }

    @media(max-width:900px) {
      #editorModal .context-meta {
        padding: 8px 12px 10px
      }

      .context-chip:nth-child(2) {
        display: none !important
      }
    }

    @media(prefers-reduced-motion:reduce) {
      #editorModal .field-focus-flash {
        animation: none !important
      }
    }

/* Block 4 (arushan-contextual-link-layout-fix) */
#editorModal .builder-inspector[data-context^="extra-"] #extraButtonsList .extrarow.ctx-active {
      display: flex !important;
      flex-direction: column !important;
      align-items: stretch !important;
      gap: 0 !important;
    }

    #editorModal .builder-inspector[data-context^="extra-"] #extraButtonsList .extrarow.ctx-active .iconbtn,
    #editorModal .builder-inspector[data-context^="extra-"] #extraButtonsList .extrarow.ctx-active .builder-reorder {
      display: none !important;
    }

    #editorModal .builder-inspector[data-context^="extra-"] #extraButtonsList .extrarow.ctx-active > .ctx-field-label {
      width: 100% !important;
      margin: 0 0 7px !important;
    }

    #editorModal .builder-inspector[data-context^="extra-"] #extraButtonsList .extrarow.ctx-active > input {
      width: 100% !important;
      margin: 0 0 14px !important;
    }

    /* Per-Button Country Smart Routing (GEO) */
    .aru-button-geo-section {
      margin-top: 10px !important;
      padding: 13px 14px !important;
      background: #fbf9ff !important;
      border: 1.5px solid #e5dff7 !important;
      border-radius: 14px !important;
      box-sizing: border-box !important;
      width: 100% !important;
      text-align: left !important;
    }

    .aru-geo-header {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 8px !important;
      margin-bottom: 11px !important;
      flex-wrap: wrap !important;
    }

    .aru-geo-header-title {
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
    }

    .aru-geo-icon {
      font-size: 19px !important;
      line-height: 1 !important;
      flex: 0 0 auto !important;
    }

    .aru-geo-heading {
      font-size: 13px !important;
      font-weight: 750 !important;
      color: #1a162b !important;
      line-height: 1.25 !important;
    }

    .aru-geo-subheading {
      font-size: 11px !important;
      color: #7d778d !important;
      line-height: 1.3 !important;
      margin-top: 2px !important;
    }

    .aru-geo-badge {
      font-size: 10.5px !important;
      font-weight: 700 !important;
      color: #6847ee !important;
      background: #ede8ff !important;
      padding: 3px 8px !important;
      border-radius: 20px !important;
      white-space: nowrap !important;
    }

    .aru-geo-badge.active {
      background: #6847ee !important;
      color: #ffffff !important;
    }

    /* Fallback / Default Row */
    .aru-geo-default-row {
      background: #ffffff !important;
      border: 1.5px dashed #dcd4fa !important;
      border-radius: 10px !important;
      padding: 9px 12px !important;
      margin-bottom: 12px !important;
    }

    .aru-geo-default-tag {
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
      font-size: 12px !important;
      color: #231c38 !important;
      margin-bottom: 4px !important;
    }

    .aru-geo-flag {
      font-size: 14px !important;
      line-height: 1 !important;
    }

    .aru-geo-hint {
      font-size: 11px !important;
      color: #737373 !important;
      font-weight: normal !important;
    }

    .aru-geo-default-dest {
      display: flex !important;
      flex-direction: column !important;
      gap: 3px !important;
    }

    .aru-geo-dest-label {
      font-size: 10.5px !important;
      color: #635d73 !important;
    }

    .aru-geo-dest-val {
      font-family: monospace, monospace !important;
      font-size: 11.5px !important;
      color: #5b3bd9 !important;
      word-break: break-all !important;
      background: #f7f5fd !important;
      padding: 4px 7px !important;
      border-radius: 6px !important;
      display: inline-block !important;
    }

    /* Rules Cards */
    .aru-geo-rules-container {
      display: flex !important;
      flex-direction: column !important;
      gap: 8px !important;
      margin-bottom: 12px !important;
    }

    .aru-geo-rule-card {
      background: #ffffff !important;
      border: 1.5px solid #dcd4fa !important;
      border-radius: 10px !important;
      padding: 10px 12px !important;
      box-shadow: 0 2px 6px rgba(104, 71, 238, 0.05) !important;
      box-sizing: border-box !important;
      width: 100% !important;
    }

    .aru-geo-rule-head {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 8px !important;
      margin-bottom: 8px !important;
    }

    .aru-geo-country-pill {
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
      font-size: 12.5px !important;
      color: #171717 !important;
    }

    .aru-geo-rule-remove {
      background: transparent !important;
      border: 1px solid #f3d4d0 !important;
      color: #c93b2b !important;
      border-radius: 6px !important;
      font-size: 11px !important;
      font-weight: 600 !important;
      padding: 3px 8px !important;
      cursor: pointer !important;
      transition: all 0.15s ease !important;
    }

    .aru-geo-rule-remove:hover {
      background: #fff0ee !important;
      border-color: #c93b2b !important;
    }

    .aru-geo-input-wrap {
      display: flex !important;
      flex-direction: column !important;
      gap: 4px !important;
      width: 100% !important;
    }

    .aru-geo-input-label {
      font-size: 11px !important;
      color: #635e72 !important;
      margin: 0 !important;
    }

    .aru-geo-url-input {
      width: 100% !important;
      height: 38px !important;
      padding: 0 10px !important;
      font-size: 12.5px !important;
      border: 1.5px solid #d4cbf2 !important;
      border-radius: 8px !important;
      background: #ffffff !important;
      color: #171717 !important;
      box-sizing: border-box !important;
      margin: 0 !important;
    }

    .aru-geo-url-input:focus {
      border-color: #6847ee !important;
      outline: none !important;
      box-shadow: 0 0 0 3px rgba(104, 71, 238, 0.15) !important;
    }

    /* Quick Pills Bar */
    .aru-geo-quick-title {
      font-size: 11.5px !important;
      font-weight: 650 !important;
      color: #38314e !important;
      margin-bottom: 6px !important;
    }

    .aru-geo-quick-pills {
      display: flex !important;
      flex-wrap: wrap !important;
      gap: 6px !important;
      margin-bottom: 8px !important;
    }

    .aru-geo-pill-btn {
      background: #ffffff !important;
      border: 1.5px solid #dcd4fa !important;
      border-radius: 8px !important;
      padding: 5px 9px !important;
      font-size: 11.5px !important;
      font-weight: 650 !important;
      color: #4b34b3 !important;
      cursor: pointer !important;
      transition: all 0.15s ease !important;
      white-space: nowrap !important;
    }

    .aru-geo-pill-btn:hover {
      border-color: #6847ee !important;
      background: #ede8ff !important;
      transform: translateY(-1px) !important;
    }

    /* Country Dropdown */
    .aru-geo-dropdown {
      width: 100% !important;
      height: 38px !important;
      padding: 0 10px !important;
      font-size: 12px !important;
      border: 1.5px solid #dcd4fa !important;
      border-radius: 8px !important;
      background: #ffffff !important;
      color: #171717 !important;
      cursor: pointer !important;
      box-sizing: border-box !important;
    }

/* Block 5 (arushan-design-stage3) */
#editorModal .design-studio {
      display: none;
      padding: 0 16px 28px;
      overflow: visible
    }

    #editorModal .design-studio.open {
      display: block
    }

    #editorModal .design-category-nav {
      position: sticky;
      top: 0;
      z-index: 6;
      display: flex;
      gap: 5px;
      padding: 12px 0;
      background: linear-gradient(#fff 82%, rgba(255, 255, 255, 0));
      overflow-x: auto;
      scrollbar-width: none
    }

    #editorModal .design-category-nav::-webkit-scrollbar {
      display: none
    }

    #editorModal .design-cat {
      flex: 0 0 auto;
      min-height: 34px;
      padding: 0 11px;
      border: 1px solid #e3e0e8;
      border-radius: 9px;
      background: #fff;
      color: #77727f;
      font-size: 10px;
      font-weight: 750;
      cursor: pointer;
      transition: .16s ease
    }

    #editorModal .design-cat:hover {
      border-color: #bcb2df;
      color: #5639c8;
      background: #faf8ff
    }

    #editorModal .design-cat.active {
      border-color: #6d4aff;
      background: #6d4aff;
      color: #fff;
      box-shadow: 0 5px 14px rgba(109, 74, 255, .2)
    }

    #editorModal .design-panel {
      display: none;
      animation: designPanelIn .2s ease
    }

    #editorModal .design-panel.active {
      display: block
    }

    @keyframes designPanelIn {
      from {
        opacity: 0;
        transform: translateY(4px)
      }

      to {
        opacity: 1;
        transform: none
      }
    }

    #editorModal .design-intro {
      margin: 6px 2px 16px
    }

    #editorModal .design-intro h3 {
      margin: 0 0 5px;
      font-size: 17px;
      letter-spacing: -.02em
    }

    #editorModal .design-intro p {
      margin: 0;
      color: #88838e;
      font-size: 11px;
      line-height: 1.45
    }

    #editorModal .design-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 9px
    }

    #editorModal .preset-card,
    #editorModal .theme-card,
    #editorModal .layout-card {
      position: relative;
      min-width: 0;
      border: 1px solid #e4e1e9;
      border-radius: 12px;
      background: #fff;
      text-align: left;
      cursor: pointer;
      overflow: hidden;
      transition: .18s ease
    }

    #editorModal .preset-card:hover,
    #editorModal .theme-card:hover,
    #editorModal .layout-card:hover {
      border-color: #a99be0;
      transform: translateY(-2px);
      box-shadow: 0 8px 22px rgba(38, 31, 57, .08)
    }

    #editorModal .preset-card.active,
    #editorModal .theme-card.active,
    #editorModal .layout-card.active {
      border-color: #6d4aff;
      box-shadow: 0 0 0 2px rgba(109, 74, 255, .1)
    }

    #editorModal .preset-visual {
      height: 95px;
      padding: 12px;
      background: var(--preset-bg);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px
    }

    #editorModal .preset-avatar {
      width: 22px;
      height: 22px;
      border-radius: 8px;
      background: var(--preset-accent);
      box-shadow: 0 2px 7px rgba(0, 0, 0, .14)
    }

    #editorModal .preset-line {
      width: 45%;
      height: 4px;
      border-radius: 3px;
      background: var(--preset-text);
      opacity: .9
    }

    #editorModal .preset-line.short {
      width: 30%;
      opacity: .45
    }

    #editorModal .preset-button {
      width: 75%;
      height: 14px;
      border-radius: var(--preset-radius);
      background: var(--preset-accent);
      margin-top: 2px
    }

    #editorModal .preset-copy {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      padding: 10px 11px
    }

    #editorModal .preset-copy b {
      font-size: 11px
    }

    .preset-copy small {
      font-size: 9px;
      color: #99949f
    }

    #editorModal .selected-tick {
      display: none;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: #6d4aff;
      color: #fff;
      place-items: center;
      font-size: 10px
    }

    #editorModal .active .selected-tick {
      display: grid
    }

    #editorModal .theme-card {
      padding: 8px
    }

    #editorModal .theme-swatch {
      height: 74px;
      border-radius: 8px;
      background: var(--theme-bg);
      position: relative;
      overflow: hidden
    }

    #editorModal .theme-swatch:before {
      content: "";
      position: absolute;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      top: 12px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--theme-accent);
      box-shadow: 0 0 28px var(--theme-accent)
    }

    #editorModal .theme-swatch:after {
      content: "";
      position: absolute;
      left: 16%;
      right: 16%;
      height: 12px;
      bottom: 11px;
      border-radius: 6px;
      background: var(--theme-button)
    }

    #editorModal .theme-name {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 9px 3px 2px;
      font-size: 11px;
      font-weight: 750
    }

    #editorModal .studio-card {
      border: 1px solid #e4e1e9;
      border-radius: 12px;
      background: #fff;
      padding: 14px;
      margin-bottom: 10px
    }

    #editorModal .studio-card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px
    }

    #editorModal .studio-card-head b {
      font-size: 11px
    }

    .studio-card-head small {
      font-size: 9px;
      color: #9b96a1
    }

    #editorModal .studio-color {
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 10px;
      border: 1px solid #e3e0e7;
      border-radius: 10px;
      background: #fbfafc;
      margin-top: 8px
    }

    #editorModal .studio-color input {
      width: 42px;
      height: 42px;
      border: 0;
      padding: 0;
      background: none;
      cursor: pointer
    }

    #editorModal .studio-color b {
      display: block;
      font-size: 11px
    }

    .studio-color small {
      display: block;
      margin-top: 3px;
      color: #96919b;
      font-size: 9px
    }

    #editorModal .studio-hex {
      padding: 5px 7px;
      border-radius: 6px;
      background: #eee9ff;
      color: #5f43d1;
      font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace
    }

    #editorModal .shape-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 7px
    }

    #editorModal .shape-card {
      padding: 10px 6px 8px;
      border: 1px solid #e2dfe6;
      border-radius: 10px;
      background: #fff;
      text-align: center;
      color: #77727d;
      font-size: 9px;
      font-weight: 700;
      cursor: pointer
    }

    #editorModal .shape-card i {
      display: block;
      width: 100%;
      height: 27px;
      margin-bottom: 7px;
      background: #6d4aff;
      border: 1px solid rgba(0, 0, 0, .06)
    }

    #editorModal .shape-card[data-value="rounded"] i {
      border-radius: 8px
    }

    .shape-card[data-value="pill"] i {
      border-radius: 20px
    }

    .shape-card[data-value="square"] i {
      border-radius: 2px
    }

    #editorModal .shape-card.active {
      border-color: #6d4aff;
      background: #faf8ff;
      color: #5638c9;
      box-shadow: 0 0 0 2px rgba(109, 74, 255, .08)
    }

    #editorModal .layout-card {
      padding: 10px
    }

    #editorModal .layout-visual {
      height: 90px;
      border-radius: 8px;
      background: #111323;
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding: 12px;
      color: #fff
    }

    #editorModal .layout-visual i {
      display: block;
      background: #fff;
      opacity: .9;
      height: 5px;
      border-radius: 4px
    }

    #editorModal .layout-visual i:first-child {
      width: 28%;
      height: 22px;
      border-radius: 7px;
      background: linear-gradient(135deg, #b45cff, #3bd6ef)
    }

    #editorModal .layout-visual i:nth-child(2) {
      width: 56%
    }

    .layout-visual i:nth-child(3) {
      width: 72%;
      opacity: .45
    }

    .layout-visual i:last-child {
      width: 100%;
      height: 15px;
      margin-top: 3px;
      background: #6d4aff
    }

    #editorModal .layout-card[data-value="minimal"] .layout-visual {
      align-items: flex-start
    }

    .layout-card[data-value="classic"] .layout-visual {
      align-items: center
    }

    .layout-card[data-value="bold"] .layout-visual i:nth-child(2) {
      height: 10px;
      width: 80%
    }

    #editorModal .layout-copy {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 9px;
      font-size: 10px;
      font-weight: 750
    }

    #editorModal .studio-link {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      min-height: 48px;
      padding: 0 12px;
      border: 1px solid #e3e0e7;
      border-radius: 10px;
      background: #fff;
      text-align: left;
      cursor: pointer;
      margin-top: 8px;
      transition: .16s ease
    }

    #editorModal .studio-link:hover {
      border-color: #a99be0;
      background: #faf8ff;
      transform: translateX(2px)
    }

    #editorModal .studio-link span {
      display: flex;
      align-items: center;
      gap: 10px
    }

    .studio-link i {
      width: 26px;
      height: 26px;
      border-radius: 8px;
      background: #f0edf5;
      display: grid;
      place-items: center;
      font-style: normal
    }

    .studio-link b {
      font-size: 11px
    }

    .studio-link small {
      display: block;
      color: #98939d;
      font-size: 9px;
      margin-top: 2px
    }

    #editorModal .advanced-summary {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 7px;
      margin-bottom: 10px
    }

    #editorModal .summary-cell {
      padding: 10px;
      border-radius: 9px;
      background: #f7f5f9;
      border: 1px solid #ebe8ee
    }

    .summary-cell small {
      display: block;
      color: #9a95a0;
      font-size: 8px;
      text-transform: uppercase;
      letter-spacing: .06em
    }

    .summary-cell b {
      display: block;
      margin-top: 4px;
      font-size: 10px
    }

    #editorModal .studio-reset {
      width: 100%;
      min-height: 39px;
      border: 1px solid #ded9e5;
      border-radius: 9px;
      background: #fff;
      font-size: 10px;
      font-weight: 750;
      cursor: pointer
    }

    .studio-reset:hover {
      border-color: #9987d8;
      color: #5a3ed0;
      background: #faf8ff
    }

    #editorModal .design-toast {
      position: fixed;
      right: 34px;
      bottom: 90px;
      z-index: 9999;
      padding: 9px 12px;
      border-radius: 9px;
      background: #19181c;
      color: #fff;
      font-size: 10px;
      font-weight: 700;
      box-shadow: 0 8px 26px rgba(0, 0, 0, .2);
      opacity: 0;
      transform: translateY(7px);
      pointer-events: none;
      transition: .2s ease
    }

    .design-toast.show {
      opacity: 1;
      transform: none
    }

    @media(max-width:1100px) {
      #editorModal .design-grid {
        grid-template-columns: 1fr
      }

      #editorModal .preset-visual {
        height: 82px
      }
    }

    @media(prefers-reduced-motion:reduce) {
      #editorModal .design-panel {
        animation: none
      }

      .design-toast {
        transition: none !important
      }
    }

/* Block 6 (arushan-design-stage3-polish) */
#editorModal .builder-inspector[data-context="design"] .editortabs {
      display: none !important
    }

    #editorModal .design-category-nav {
      display: grid !important;
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      overflow: visible !important
    }

    #editorModal .design-cat {
      width: 100%;
      padding: 0 6px !important
    }

    #editorModal .preset-copy>span:first-child {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0
    }

    #editorModal .preset-copy>span:first-child small {
      display: block
    }

    #editorModal .active .selected-tick {
      display: none
    }

    #editorModal .preset-card.active .selected-tick,
    #editorModal .theme-card.active .selected-tick,
    #editorModal .layout-card.active .selected-tick {
      display: grid
    }

/* Block 7 (arushan-realistic-phone-stage4) */
#editorModal .builder-stage {
      flex-direction: column !important;
      gap: 10px !important;
      overflow: hidden !important;
      padding: 14px 20px !important
    }

    #editorModal .epreview>small {
      display: none !important
    }

    #editorModal .device-preview-toolbar {
      width: min(100%, 520px);
      height: 38px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 0 10px;
      border: 1px solid rgba(218, 215, 224, .92);
      border-radius: 11px;
      background: rgba(255, 255, 255, .78);
      backdrop-filter: blur(12px);
      box-shadow: 0 5px 18px rgba(36, 31, 48, .045);
      flex: none
    }

    #editorModal .device-label {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #706c76;
      font-size: 10px;
      font-weight: 750;
      letter-spacing: .035em
    }

    #editorModal .device-label:before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #46a171;
      box-shadow: 0 0 0 4px rgba(70, 161, 113, .1)
    }

    #editorModal .device-label small {
      color: #aaa5af;
      font-size: 9px;
      font-weight: 600
    }

    #editorModal .preview-tools {
      display: flex;
      align-items: center;
      gap: 4px
    }

    #editorModal .preview-tool {
      height: 27px;
      min-width: 31px;
      padding: 0 8px;
      border: 1px solid transparent;
      border-radius: 7px;
      background: transparent;
      color: #7b7681;
      font-size: 9px;
      font-weight: 750;
      cursor: pointer;
      transition: .16s ease
    }

    #editorModal .preview-tool:hover {
      background: #f2eff8;
      color: #5234c7
    }

    #editorModal .preview-tool.active {
      border-color: #d9d2f0;
      background: #fff;
      color: #593bd0;
      box-shadow: 0 1px 4px rgba(41, 31, 73, .1)
    }

    #editorModal .preview-tool.icon {
      font-size: 13px;
      padding: 0;
      min-width: 28px
    }

    #editorModal .phone-scale-shell {
      display: flex;
      align-items: flex-start;
      justify-content: center;
      min-width: 310px;
      min-height: 0;
      transition: .2s ease
    }

    #editorModal .epreview {
      transform-origin: top center !important;
      transition: transform .22s cubic-bezier(.2, .75, .25, 1), width .22s ease, height .22s ease !important
    }

    #editorModal .mini-phone {
      box-sizing: border-box !important;
      width: 286px !important;
      height: 620px !important;
      padding: 7px !important;
      border: 0 !important;
      border-radius: 42px !important;
      background: linear-gradient(145deg, #2b2d31 0%, #111215 46%, #27282c 100%) !important;
      box-shadow: 0 28px 62px rgba(24, 22, 30, .25), 0 7px 18px rgba(24, 22, 30, .14), inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(255, 255, 255, .08) !important;
      overflow: visible !important;
      position: relative !important;
      isolation: isolate
    }

    #editorModal .mini-phone:before {
      content: "" !important;
      position: absolute !important;
      z-index: 10 !important;
      top: 10px !important;
      left: 50% !important;
      transform: translateX(-50%) !important;
      width: 38px !important;
      height: 4px !important;
      border-radius: 999px !important;
      background: #050506 !important;
      box-shadow: 0 1px 0 rgba(255, 255, 255, .08) !important
    }

    #editorModal .mini-phone:after {
      content: "";
      position: absolute;
      z-index: -1;
      right: -3px;
      top: 112px;
      width: 3px;
      height: 54px;
      border-radius: 0 3px 3px 0;
      background: linear-gradient(#3a3b40, #18191c);
      box-shadow: 0 45px 0 #202126
    }

    #editorModal .mini-screen {
      box-sizing: border-box !important;
      width: 100% !important;
      height: 100% !important;
      min-height: 0 !important;
      border-radius: 35px !important;
      overflow-x: hidden !important;
      overflow-y: auto !important;
      overscroll-behavior: contain;
      scroll-behavior: smooth;
      scrollbar-width: thin !important;
      scrollbar-color: rgba(255, 255, 255, .62) transparent !important;
      padding-bottom: 24px !important;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05) !important
    }

    #editorModal .mini-screen::-webkit-scrollbar {
      display: block !important;
      width: 4px !important
    }

    #editorModal .mini-screen::-webkit-scrollbar-track {
      background: transparent !important;
      margin: 34px 0 26px !important
    }

    #editorModal .mini-screen::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, .62) !important;
      border-radius: 999px !important
    }

    #editorModal .phone-home-indicator {
      position: absolute;
      z-index: 12;
      left: 50%;
      bottom: 11px;
      transform: translateX(-50%);
      width: 82px;
      height: 4px;
      border-radius: 999px;
      background: rgba(255, 255, 255, .78);
      pointer-events: none;
      mix-blend-mode: difference;
      opacity: .78
    }

    #editorModal .phone-dimension {
      position: absolute;
      left: 50%;
      bottom: -23px;
      transform: translateX(-50%);
      color: #aaa5af;
      font: 650 8px ui-monospace, SFMono-Regular, Menlo, monospace;
      white-space: nowrap;
      letter-spacing: .04em
    }

    #editorModal .builder-stage[data-preview-zoom="75"] .epreview {
      transform: scale(.75) !important;
      margin-bottom: -155px
    }

    #editorModal .builder-stage[data-preview-zoom="75"] .phone-scale-shell {
      min-width: 230px
    }

    #editorModal .builder-stage[data-preview-zoom="fit"] .epreview {
      transform: scale(var(--phone-fit-scale, .92)) !important;
      margin-bottom: calc(-620px * (1 - var(--phone-fit-scale, .92)))
    }

    #editorModal .preview-scroll-flash .mini-screen::-webkit-scrollbar-thumb {
      background: #fff !important
    }

    @media(max-width:1180px) {
      #editorModal .mini-phone {
        width: 272px !important;
        height: 589px !important
      }

      #editorModal .phone-dimension {
        bottom: -21px
      }

      #editorModal .device-preview-toolbar {
        width: min(100%, 430px)
      }
    }

    @media(max-width:900px) {
      #editorModal .builder-stage {
        padding: 12px !important
      }

      #editorModal .device-preview-toolbar {
        width: 292px
      }

      .device-label small {
        display: none
      }

      #editorModal .mini-phone {
        width: 264px !important;
        height: 572px !important
      }

      .phone-scale-shell {
        min-width: 280px !important
      }
    }

    @media(prefers-reduced-motion:reduce) {

      #editorModal .epreview,
      #editorModal .phone-scale-shell {
        transition: none !important
      }
    }

/* Block 8 (arushan-design-workspace-stage5) */
#editorModal .builder-shell {
      transition: grid-template-columns .24s cubic-bezier(.2, .75, .25, 1)
    }

    #editorModal .builder-shell.design-workspace {
      grid-template-columns: 190px minmax(620px, 1fr) minmax(390px, 450px) !important;
      background: #f7f7f9
    }

    #editorModal .builder-shell.design-workspace .builder-outline {
      grid-column: 1;
      grid-row: 1;
      background: #fbfbfc;
      border-right: 1px solid #e7e5ea
    }

    #editorModal .builder-shell.design-workspace .builder-inspector {
      grid-column: 2;
      grid-row: 1;
      border-left: 0 !important;
      border-right: 1px solid #e3e1e6;
      background: #fff;
      overflow-y: auto;
      min-width: 0
    }

    #editorModal .builder-shell.design-workspace .builder-stage {
      grid-column: 3;
      grid-row: 1;
      position: relative;
      min-width: 0;
      background: radial-gradient(circle at 50% 16%, #fff 0, #f5f4f7 38%, #e9e8ed 100%) !important;
      border-left: 0
    }

    #editorModal .builder-shell.design-workspace .builder-inspector-head {
      position: sticky;
      top: 0;
      z-index: 12;
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 72px;
      padding: 0 22px;
      border-bottom: 1px solid #e7e5ea;
      background: rgba(255, 255, 255, .92);
      backdrop-filter: blur(18px)
    }

    #editorModal .builder-shell.design-workspace .builder-inspector-title {
      padding: 0 !important
    }

    #editorModal .builder-shell.design-workspace .builder-inspector-title span {
      font-size: 9px;
      letter-spacing: .1em
    }

    #editorModal .builder-shell.design-workspace .builder-inspector-title strong {
      font-size: 20px;
      margin-top: 5px;
      letter-spacing: -.035em
    }

    #editorModal .builder-shell.design-workspace .context-meta {
      margin: 0;
      padding: 0;
      border: 0;
      flex: none
    }

    #editorModal .builder-shell.design-workspace .context-chip:nth-child(2) {
      display: none
    }

    #editorModal .builder-shell.design-workspace .design-studio.open {
      display: grid !important;
      grid-template-columns: 148px minmax(0, 1fr);
      align-items: start;
      gap: 24px;
      padding: 22px 24px 40px !important;
      overflow: visible
    }

    #editorModal .builder-shell.design-workspace .design-category-nav {
      grid-column: 1;
      position: sticky !important;
      top: 92px !important;
      z-index: 5;
      display: flex !important;
      flex-direction: column;
      gap: 5px !important;
      padding: 8px !important;
      border: 1px solid #e5e2e9;
      border-radius: 14px;
      background: #faf9fb !important;
      box-shadow: 0 7px 22px rgba(35, 29, 48, .05)
    }

    #editorModal .builder-shell.design-workspace .design-cat {
      width: 100%;
      height: 39px;
      padding: 0 11px !important;
      border: 1px solid transparent !important;
      border-radius: 9px !important;
      background: transparent;
      text-align: left;
      font-size: 11px !important;
      color: #74707a;
      box-shadow: none !important
    }

    #editorModal .builder-shell.design-workspace .design-cat:before {
      display: inline-grid;
      width: 21px;
      margin-right: 7px;
      color: #9b96a1;
      text-align: center;
      font-size: 12px
    }

    #editorModal .builder-shell.design-workspace .design-cat[data-design-cat="presets"]:before {
      content: "✦"
    }

    #editorModal .builder-shell.design-workspace .design-cat[data-design-cat="background"]:before {
      content: "◐"
    }

    #editorModal .builder-shell.design-workspace .design-cat[data-design-cat="buttons"]:before {
      content: "▭"
    }

    #editorModal .builder-shell.design-workspace .design-cat[data-design-cat="typography"]:before {
      content: "Aa";
      font-size: 9px;
      font-weight: 800
    }

    #editorModal .builder-shell.design-workspace .design-cat[data-design-cat="profile"]:before {
      content: "◉"
    }

    #editorModal .builder-shell.design-workspace .design-cat[data-design-cat="advanced"]:before {
      content: "⋯"
    }

    #editorModal .builder-shell.design-workspace .design-cat:hover {
      background: #f1eef8 !important;
      border-color: #ebe6fb !important;
      color: #5134c4
    }

    #editorModal .builder-shell.design-workspace .design-cat.active {
      background: #fff !important;
      border-color: #ddd6f6 !important;
      color: #5435ca !important;
      box-shadow: 0 3px 10px rgba(63, 43, 122, .09) !important
    }

    #editorModal .builder-shell.design-workspace .design-cat.active:before {
      color: #6848db
    }

    #editorModal .builder-shell.design-workspace .design-panel {
      grid-column: 2;
      min-width: 0
    }

    #editorModal .builder-shell.design-workspace .design-intro {
      margin: 2px 0 18px
    }

    #editorModal .builder-shell.design-workspace .design-intro h3 {
      font-size: 22px;
      margin-bottom: 6px;
      letter-spacing: -.035em
    }

    #editorModal .builder-shell.design-workspace .design-intro p {
      font-size: 12px;
      max-width: 570px
    }

    #editorModal .builder-shell.design-workspace .design-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      gap: 12px !important
    }

    #editorModal .builder-shell.design-workspace [data-design-panel="background"] .design-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr)) !important
    }

    #editorModal .builder-shell.design-workspace .preset-card,
    #editorModal .builder-shell.design-workspace .theme-card,
    #editorModal .builder-shell.design-workspace .layout-card {
      border-radius: 14px
    }

    #editorModal .builder-shell.design-workspace .preset-visual {
      height: 126px;
      padding: 16px
    }

    #editorModal .builder-shell.design-workspace .theme-swatch {
      height: 104px
    }

    #editorModal .builder-shell.design-workspace .layout-visual {
      height: 122px
    }

    #editorModal .builder-shell.design-workspace .preset-copy {
      padding: 11px 12px
    }

    #editorModal .builder-shell.design-workspace .preset-copy b,
    #editorModal .builder-shell.design-workspace .theme-name {
      font-size: 12px
    }

    #editorModal .builder-shell.design-workspace .studio-card {
      padding: 17px;
      border-radius: 14px;
      margin-bottom: 14px
    }

    #editorModal .builder-shell.design-workspace .shape-grid {
      grid-template-columns: repeat(3, minmax(120px, 1fr));
      gap: 10px
    }

    #editorModal .builder-shell.design-workspace .shape-card {
      padding: 12px 8px 10px
    }

    #editorModal .builder-shell.design-workspace .shape-card i {
      height: 38px
    }

    #editorModal .builder-shell.design-workspace .studio-color {
      min-height: 68px;
      padding: 12px
    }

    #editorModal .builder-shell.design-workspace .device-preview-toolbar {
      width: 100%;
      max-width: 390px;
      background: rgba(255, 255, 255, .86)
    }

    #editorModal .builder-shell.design-workspace .phone-scale-shell {
      width: 100%;
      min-width: 0
    }

    #editorModal .builder-shell.design-workspace .mini-phone {
      width: 272px !important;
      height: 589px !important
    }

    #editorModal .builder-shell.design-workspace .builder-node {
      min-height: 42px;
      padding: 7px 9px
    }

    #editorModal .builder-shell.design-workspace .builder-node .node-copy b {
      font-size: 11px
    }

    #editorModal .builder-shell.design-workspace .builder-node .node-copy small {
      font-size: 9px
    }

    #editorModal .builder-shell.design-workspace .builder-group-label {
      padding: 10px 10px 5px;
      font-size: 9px
    }

    #editorModal .builder-shell.design-workspace .builder-add {
      min-height: 40px;
      font-size: 11px
    }

    #editorModal .design-workspace-badge {
      display: none
    }

    #editorModal .builder-shell.design-workspace .design-workspace-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-left: 10px;
      padding: 5px 8px;
      border: 1px solid #e1dcf2;
      border-radius: 7px;
      background: #faf8ff;
      color: #6043d0;
      font-size: 9px;
      font-weight: 750;
      vertical-align: middle
    }

    #editorModal .builder-shell.design-workspace .design-workspace-badge:before {
      content: "";
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: #6d4aff
    }

    @media(max-width:1260px) {
      #editorModal .builder-shell.design-workspace {
        grid-template-columns: 86px minmax(510px, 1fr) minmax(340px, 390px) !important
      }

      #editorModal .builder-shell.design-workspace .builder-panel-head strong,
      #editorModal .builder-shell.design-workspace .builder-status,
      #editorModal .builder-shell.design-workspace .builder-node .node-copy,
      #editorModal .builder-shell.design-workspace .builder-node .drag,
      #editorModal .builder-shell.design-workspace .builder-group-label {
        display: none
      }

      #editorModal .builder-shell.design-workspace .builder-node {
        justify-content: center;
        padding: 7px
      }

      #editorModal .builder-shell.design-workspace .builder-add {
        font-size: 0
      }

      .builder-shell.design-workspace .builder-add:before {
        content: "+";
        font-size: 19px
      }

      #editorModal .builder-shell.design-workspace .design-studio.open {
        grid-template-columns: 128px minmax(0, 1fr);
        gap: 16px;
        padding: 18px !important
      }

      #editorModal .builder-shell.design-workspace .design-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important
      }

      #editorModal .builder-shell.design-workspace [data-design-panel="background"] .design-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important
      }
    }

    @media(max-width:900px) {
      #editorModal .builder-shell.design-workspace {
        grid-template-columns: 82px minmax(520px, 1fr) 340px !important;
        overflow-x: auto
      }

      #editorModal .builder-shell.design-workspace .design-studio.open {
        grid-template-columns: 1fr !important;
        padding: 14px !important
      }

      #editorModal .builder-shell.design-workspace .design-category-nav {
        grid-column: 1;
        position: sticky !important;
        top: 70px !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        flex-direction: initial !important
      }

      #editorModal .builder-shell.design-workspace .design-panel {
        grid-column: 1
      }

      #editorModal .builder-shell.design-workspace .design-cat {
        text-align: center !important;
        padding: 0 4px !important
      }

      #editorModal .builder-shell.design-workspace .design-cat:before {
        display: none !important
      }
    }

    @media(prefers-reduced-motion:reduce) {
      #editorModal .builder-shell {
        transition: none !important
      }
    }

/* Block 9 (arushan-design-workspace-stage5-fixes) */
#editorModal #editNotice:empty {
      display: block !important;
      height: 0 !important;
      min-height: 0 !important;
      margin: 0 !important;
      padding: 0 !important;
      border: 0 !important;
      overflow: hidden !important
    }

    #editorModal .builder-shell.design-workspace .builder-status {
      display: none !important
    }

    #editorModal .builder-shell.design-workspace .builder-outline {
      min-width: 0 !important;
      overflow-x: hidden !important
    }

    #editorModal .builder-shell.design-workspace .builder-node .node-copy {
      min-width: 0 !important
    }

    #editorModal .builder-shell.design-workspace .builder-node .node-copy small {
      display: none !important
    }

    #editorModal .builder-shell.design-workspace .builder-node .node-copy b {
      white-space: normal !important;
      overflow: visible !important;
      text-overflow: clip !important;
      line-height: 1.18
    }

/* Block 10 (arushan-real-theme-thumbnails-stage6) */
#editorModal .builder-shell.design-workspace [data-design-panel="presets"] .design-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      align-items: start
    }

    #editorModal .builder-shell.design-workspace .preset-card {
      background: #fff
    }

    #editorModal .builder-shell.design-workspace .preset-visual {
      display: block !important;
      height: auto !important;
      aspect-ratio: 9/14.6 !important;
      padding: 0 !important;
      overflow: hidden;
      border-bottom: 1px solid rgba(0, 0, 0, .06)
    }

    #editorModal .real-theme-thumb {
      position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      overflow: hidden;
      background: var(--thumb-bg);
      color: var(--thumb-name);
      text-align: center;
      font-family: Inter, ui-sans-serif, system-ui, sans-serif
    }

    #editorModal .real-theme-thumb .thumb-cover {
      width: 100%;
      height: 31%;
      flex: none;
      background: var(--thumb-cover), var(--thumb-bg);
      background-size: cover;
      background-position: center;
      position: relative
    }

    #editorModal .real-theme-thumb .thumb-cover:after {
      content: "";
      position: absolute;
      inset: auto 0 0;
      height: 38%;
      background: linear-gradient(transparent, rgba(0, 0, 0, .14))
    }

    #editorModal .real-theme-thumb .thumb-avatar {
      width: 38px;
      height: 38px;
      flex: none;
      margin-top: -18px;
      border: 2px solid rgba(255, 255, 255, .86);
      border-radius: 12px;
      background: var(--thumb-avatar), linear-gradient(135deg, #e65db7, #35d7eb);
      background-size: cover;
      background-position: center;
      box-shadow: 0 4px 11px rgba(0, 0, 0, .18);
      position: relative;
      z-index: 2
    }

    #editorModal .real-theme-thumb .thumb-name {
      max-width: 88%;
      margin-top: 7px;
      font-size: 9px;
      font-weight: 800;
      line-height: 1.1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis
    }

    #editorModal .real-theme-thumb .thumb-bio {
      width: 82%;
      height: 18px;
      margin: 4px 0 7px;
      color: var(--thumb-bio);
      font-size: 5.5px;
      line-height: 1.35;
      overflow: hidden;
      opacity: .88
    }

    #editorModal .real-theme-thumb .thumb-links {
      width: 82%;
      display: flex;
      flex-direction: column;
      gap: 5px
    }

    #editorModal .real-theme-thumb .thumb-link {
      min-height: 22px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 3px 6px;
      border-radius: var(--thumb-radius);
      background: var(--thumb-primary);
      color: var(--thumb-primary-text);
      font-size: 6px;
      font-weight: 800;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      box-shadow: 0 2px 5px rgba(0, 0, 0, .09)
    }

    #editorModal .real-theme-thumb .thumb-link.secondary {
      background: var(--thumb-secondary);
      color: var(--thumb-secondary-text)
    }

    #editorModal .real-theme-thumb .thumb-footer {
      position: absolute;
      left: 9%;
      right: 9%;
      bottom: 7px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 3px;
      color: var(--thumb-bio);
      font-size: 4.5px;
      opacity: .65
    }

    #editorModal .real-theme-thumb .thumb-footer:before {
      content: "A";
      width: 10px;
      height: 10px;
      border-radius: 3px;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, #e65db7, #35d7eb);
      color: #111;
      font-size: 6px;
      font-weight: 900
    }

    #editorModal .real-theme-thumb.layout-minimal {
      align-items: flex-start;
      text-align: left;
      padding: 13px;
      box-sizing: border-box
    }

    #editorModal .real-theme-thumb.layout-minimal .thumb-cover {
      display: none
    }

    #editorModal .real-theme-thumb.layout-minimal .thumb-avatar {
      width: 34px;
      height: 34px;
      margin: 0;
      border-radius: 50%
    }

    #editorModal .real-theme-thumb.layout-minimal .thumb-name {
      margin-top: 9px;
      font-size: 10px
    }

    #editorModal .real-theme-thumb.layout-minimal .thumb-bio {
      width: 94%;
      margin-bottom: 10px
    }

    #editorModal .real-theme-thumb.layout-minimal .thumb-links {
      width: 100%
    }

    #editorModal .real-theme-thumb.layout-bold .thumb-cover {
      height: 35%
    }

    #editorModal .real-theme-thumb.layout-bold .thumb-avatar {
      width: 43px;
      height: 43px;
      margin-top: -21px;
      border-radius: 13px
    }

    #editorModal .real-theme-thumb.layout-bold .thumb-name {
      font-size: 11px;
      letter-spacing: -.02em
    }

    #editorModal .real-theme-thumb.layout-bold .thumb-link {
      min-height: 24px
    }

    #editorModal .theme-swatch {
      padding: 0 !important;
      overflow: hidden
    }

    #editorModal .theme-swatch:before,
    #editorModal .theme-swatch:after {
      display: none !important
    }

    #editorModal .theme-swatch .real-theme-thumb .thumb-cover {
      height: 28%
    }

    #editorModal .theme-swatch .real-theme-thumb .thumb-avatar {
      width: 25px;
      height: 25px;
      margin-top: -12px;
      border-radius: 8px
    }

    #editorModal .theme-swatch .real-theme-thumb .thumb-name {
      font-size: 6px;
      margin-top: 4px
    }

    #editorModal .theme-swatch .real-theme-thumb .thumb-bio {
      height: 7px;
      margin: 2px 0 4px;
      font-size: 3.5px
    }

    #editorModal .theme-swatch .real-theme-thumb .thumb-links {
      gap: 3px
    }

    #editorModal .theme-swatch .real-theme-thumb .thumb-link {
      min-height: 10px;
      font-size: 3.7px;
      border-radius: 3px
    }

    #editorModal .theme-swatch .real-theme-thumb .thumb-footer {
      display: none
    }

    #editorModal .thumb-live-badge {
      position: absolute;
      top: 8px;
      right: 8px;
      z-index: 4;
      padding: 3px 5px;
      border-radius: 5px;
      background: rgba(17, 17, 20, .62);
      backdrop-filter: blur(5px);
      color: #fff;
      font-size: 4.5px;
      font-weight: 800;
      letter-spacing: .06em;
      text-transform: uppercase
    }

    #editorModal .preset-card:hover .real-theme-thumb {
      transform: scale(1.018)
    }

    #editorModal .real-theme-thumb {
      transition: transform .22s ease
    }

    @media(max-width:1260px) {
      #editorModal .builder-shell.design-workspace [data-design-panel="presets"] .design-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important
      }
    }

    @media(prefers-reduced-motion:reduce) {
      #editorModal .real-theme-thumb {
        transition: none !important
      }
    }

/* Block 11 (arushan-header-gallery-stage7) */
#editorModal .builder-shell.design-workspace [data-design-panel="profile"] .design-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      gap: 12px !important
    }

    #editorModal [data-design-panel="profile"] .layout-card {
      padding: 0 !important;
      overflow: hidden;
      background: #fff
    }

    #editorModal [data-design-panel="profile"] .layout-visual {
      display: block !important;
      height: auto !important;
      aspect-ratio: 4/5.05 !important;
      padding: 0 !important;
      border-radius: 0 !important;
      overflow: hidden;
      background: transparent !important
    }

    #editorModal [data-design-panel="profile"] .layout-copy {
      min-height: 43px;
      margin: 0 !important;
      padding: 0 11px;
      border-top: 1px solid #ebe8ee;
      background: #fff;
      font-size: 11px !important
    }

    #editorModal .header-layout-live {
      position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
      overflow: hidden;
      background: var(--header-bg);
      color: var(--header-name);
      font-family: Inter, ui-sans-serif, system-ui, sans-serif
    }

    #editorModal .header-layout-live .hl-cover {
      position: relative;
      width: 100%;
      height: 40%;
      flex: none;
      background: var(--header-cover), var(--header-bg);
      background-size: cover;
      background-position: center;
      overflow: hidden
    }

    #editorModal .header-layout-live .hl-cover:after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(transparent 52%, rgba(0, 0, 0, .28))
    }

    #editorModal .header-layout-live .hl-avatar {
      position: relative;
      z-index: 2;
      width: 54px;
      height: 54px;
      flex: none;
      margin: -27px auto 0;
      border: 3px solid rgba(255, 255, 255, .9);
      border-radius: 17px;
      background: var(--header-avatar), linear-gradient(135deg, #e65db7, #35d7eb);
      background-size: cover;
      background-position: center;
      box-shadow: 0 5px 14px rgba(0, 0, 0, .2)
    }

    #editorModal .header-layout-live .hl-name {
      max-width: 88%;
      margin: 9px auto 0;
      font-size: 12px;
      line-height: 1.1;
      font-weight: 850;
      letter-spacing: -.025em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis
    }

    #editorModal .header-layout-live .hl-bio {
      width: 82%;
      height: 24px;
      margin: 5px auto 0;
      color: var(--header-bio);
      font-size: 6px;
      line-height: 1.4;
      text-align: center;
      overflow: hidden
    }

    #editorModal .header-layout-live .hl-rule {
      width: 68%;
      height: 18px;
      margin: 12px auto 0;
      border-radius: var(--header-radius);
      background: var(--header-accent);
      box-shadow: 0 3px 8px rgba(0, 0, 0, .1)
    }

    #editorModal .header-layout-live .hl-rule:after {
      content: "↗  Open link";
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--header-button-text);
      font-size: 5px;
      font-weight: 800
    }

    #editorModal .header-layout-live .hl-note {
      position: absolute;
      left: 8px;
      top: 8px;
      z-index: 3;
      padding: 4px 6px;
      border-radius: 5px;
      background: rgba(17, 17, 20, .62);
      backdrop-filter: blur(5px);
      color: #fff;
      font-size: 5px;
      font-weight: 800;
      letter-spacing: .06em;
      text-transform: uppercase
    }

    #editorModal .header-layout-live.layout-minimal {
      align-items: flex-start;
      padding: 18px;
      text-align: left
    }

    #editorModal .header-layout-live.layout-minimal .hl-cover {
      display: none
    }

    #editorModal .header-layout-live.layout-minimal .hl-avatar {
      width: 50px;
      height: 50px;
      margin: 0;
      border-radius: 50%
    }

    #editorModal .header-layout-live.layout-minimal .hl-name {
      max-width: 100%;
      margin: 12px 0 0;
      font-size: 14px
    }

    #editorModal .header-layout-live.layout-minimal .hl-bio {
      width: 96%;
      height: 31px;
      margin: 6px 0 0;
      text-align: left;
      font-size: 6.5px
    }

    #editorModal .header-layout-live.layout-minimal .hl-rule {
      width: 100%;
      height: 21px;
      margin: 15px 0 0
    }

    #editorModal .header-layout-live.layout-minimal .hl-note {
      left: auto;
      right: 8px
    }

    #editorModal .header-layout-live.layout-bold .hl-cover {
      height: 52%
    }

    #editorModal .header-layout-live.layout-bold .hl-cover:after {
      background: linear-gradient(transparent 20%, rgba(0, 0, 0, .48))
    }

    #editorModal .header-layout-live.layout-bold .hl-avatar {
      width: 62px;
      height: 62px;
      margin-top: -31px;
      border-radius: 19px
    }

    #editorModal .header-layout-live.layout-bold .hl-name {
      font-size: 17px;
      margin-top: 9px
    }

    #editorModal .header-layout-live.layout-bold .hl-bio {
      font-size: 6.5px;
      height: 20px
    }

    #editorModal .header-layout-live.layout-bold .hl-rule {
      margin-top: 9px;
      height: 20px;
      width: 78%
    }

    #editorModal .header-gallery-caption {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin: 0 0 12px;
      padding: 10px 12px;
      border: 1px solid #e7e3ec;
      border-radius: 10px;
      background: #faf9fb;
      color: #78737e;
      font-size: 10px
    }

    #editorModal .header-gallery-caption b {
      color: #343139;
      font-size: 10px
    }

    #editorModal .header-gallery-caption span {
      display: flex;
      align-items: center;
      gap: 6px
    }

    #editorModal .header-gallery-caption span:before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #46a171
    }

    #editorModal [data-design-panel="profile"] .studio-card {
      margin-top: 14px !important
    }

    #editorModal [data-design-panel="profile"] .layout-card:hover .header-layout-live {
      transform: scale(1.018)
    }

    #editorModal .header-layout-live {
      transition: transform .2s ease
    }

    @media(max-width:1260px) {
      #editorModal .builder-shell.design-workspace [data-design-panel="profile"] .design-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important
      }
    }

    @media(prefers-reduced-motion:reduce) {
      #editorModal .header-layout-live {
        transition: none !important
      }
    }

/* Block 12 (arushan-header-gallery-stage7-text-fix) */
#editorModal .header-layout-live .hl-name {
      line-height: 1.3 !important;
      min-height: 16px
    }

    #editorModal .header-layout-live.layout-minimal .hl-name {
      min-height: 19px
    }

    #editorModal .header-layout-live.layout-bold .hl-name {
      min-height: 23px
    }

/* Block 13 (arushan-background-colors-stage8) */
#editorModal .builder-shell.design-workspace .design-cat[data-design-cat="colors"]:before {
      content: "●";
      font-size: 10px
    }

    #editorModal [data-design-panel="background"] .design-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 12px !important
    }

    #editorModal [data-design-panel="background"] .theme-card {
      display: grid;
      grid-template-columns: 132px minmax(0, 1fr);
      align-items: stretch;
      min-height: 128px;
      padding: 0 !important;
      overflow: hidden;
      border-radius: 14px !important
    }

    #editorModal [data-design-panel="background"] .theme-swatch {
      height: 100% !important;
      min-height: 128px;
      border-radius: 0 !important
    }

    #editorModal [data-design-panel="background"] .theme-name {
      align-content: center;
      display: grid !important;
      grid-template-columns: 1fr auto;
      grid-template-rows: auto auto auto;
      gap: 5px;
      padding: 15px !important;
      text-transform: none
    }

    #editorModal [data-design-panel="background"] .theme-name .selected-tick {
      grid-column: 2;
      grid-row: 1/3;
      align-self: center
    }

    #editorModal .background-kind {
      grid-column: 1;
      display: block;
      color: #97929c;
      font-size: 9px;
      font-weight: 600
    }

    #editorModal .background-palette {
      grid-column: 1;
      display: flex;
      gap: 4px;
      margin-top: 3px
    }

    #editorModal .background-palette i {
      width: 15px;
      height: 15px;
      border: 1px solid rgba(0, 0, 0, .08);
      border-radius: 50%;
      background: var(--dot)
    }

    #editorModal .background-info {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin: 0 0 14px;
      padding: 12px 14px;
      border: 1px solid #e5e2e9;
      border-radius: 12px;
      background: #faf9fb
    }

    #editorModal .background-info b {
      display: block;
      font-size: 11px
    }

    .background-info small {
      display: block;
      margin-top: 3px;
      color: #96919b;
      font-size: 9px
    }

    #editorModal .background-info-icon {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      flex: none;
      border: 1px solid #e0dbea;
      border-radius: 10px;
      background: #fff;
      color: #6042cf;
      font-size: 15px
    }

    #editorModal .semantic-colors {
      grid-column: 2;
      min-width: 0
    }

    #editorModal .semantic-color-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px
    }

    #editorModal .color-role-card {
      position: relative;
      min-width: 0;
      padding: 15px;
      border: 1px solid #e4e1e8;
      border-radius: 14px;
      background: #fff;
      transition: .18s ease
    }

    #editorModal .color-role-card:hover {
      border-color: #b7a9e7;
      box-shadow: 0 8px 22px rgba(42, 34, 61, .065);
      transform: translateY(-1px)
    }

    #editorModal .color-role-head {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 13px
    }

    #editorModal .color-role-icon {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      flex: none;
      border-radius: 10px;
      background: #f2eff8;
      color: #6041d0;
      font-size: 12px;
      font-weight: 850
    }

    #editorModal .color-role-copy {
      min-width: 0;
      flex: 1
    }

    .color-role-copy b {
      display: block;
      font-size: 11px
    }

    .color-role-copy small {
      display: block;
      margin-top: 3px;
      color: #97929d;
      font-size: 9px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis
    }

    #editorModal .semantic-swatch {
      position: relative;
      width: 39px;
      height: 39px;
      flex: none;
      border: 1px solid #d8d4dc;
      border-radius: 11px;
      background: var(--swatch);
      box-shadow: inset 0 0 0 3px #fff, 0 2px 5px rgba(0, 0, 0, .08);
      overflow: hidden;
      cursor: pointer
    }

    #editorModal .semantic-swatch input {
      position: absolute;
      inset: -8px;
      width: 56px;
      height: 56px;
      opacity: 0;
      cursor: pointer
    }

    #editorModal .color-role-preview {
      min-height: 72px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 12px;
      border: 1px solid #e9e6ec;
      border-radius: 11px;
      background: var(--preview-bg);
      overflow: hidden
    }

    #editorModal .role-primary-sample,
    #editorModal .role-secondary-sample {
      width: 88%;
      min-height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      background: var(--role-color);
      color: var(--role-contrast);
      font-size: 8px;
      font-weight: 800;
      box-shadow: 0 3px 7px rgba(0, 0, 0, .1)
    }

    #editorModal .role-name-sample {
      max-width: 96%;
      color: var(--role-color);
      font-size: 17px;
      font-weight: 850;
      letter-spacing: -.035em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis
    }

    #editorModal .role-bio-sample {
      max-width: 94%;
      color: var(--role-color);
      font-size: 9px;
      line-height: 1.4;
      text-align: center
    }

    #editorModal .color-role-foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 10px
    }

    #editorModal .semantic-hex {
      padding: 5px 7px;
      border-radius: 7px;
      background: #f0ecff;
      color: #5f42d0;
      font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace
    }

    #editorModal .semantic-status {
      display: flex;
      align-items: center;
      gap: 5px;
      color: #8c8791;
      font-size: 8px
    }

    .semantic-status:before {
      content: "";
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: #48a474
    }

    #editorModal .quick-palettes {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 9px;
      margin: 0 0 16px
    }

    #editorModal .quick-palette {
      min-width: 0;
      padding: 10px;
      border: 1px solid #e3e0e7;
      border-radius: 11px;
      background: #fff;
      text-align: left;
      cursor: pointer;
      transition: .16s ease
    }

    #editorModal .quick-palette:hover {
      border-color: #a998e1;
      transform: translateY(-1px)
    }

    #editorModal .quick-palette.active {
      border-color: #6d4aff;
      box-shadow: 0 0 0 2px rgba(109, 74, 255, .1)
    }

    #editorModal .palette-dots {
      display: flex;
      gap: 4px;
      margin-bottom: 8px
    }

    .palette-dots i {
      width: 21px;
      height: 21px;
      border: 1px solid rgba(0, 0, 0, .09);
      border-radius: 7px;
      background: var(--dot)
    }

    #editorModal .quick-palette b {
      display: block;
      font-size: 9px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis
    }

    #editorModal .colors-note {
      display: flex;
      gap: 9px;
      margin-top: 14px;
      padding: 11px 12px;
      border: 1px solid #e5e1ec;
      border-radius: 11px;
      background: #faf9fc;
      color: #817c87;
      font-size: 9px;
      line-height: 1.45
    }

    .colors-note:before {
      content: "i";
      width: 18px;
      height: 18px;
      display: grid;
      place-items: center;
      flex: none;
      border-radius: 50%;
      background: #ede8ff;
      color: #6042d0;
      font-weight: 850
    }

    @media(max-width:1260px) {
      #editorModal [data-design-panel="background"] .design-grid {
        grid-template-columns: 1fr !important
      }

      #editorModal .semantic-color-grid {
        grid-template-columns: 1fr
      }

      .quick-palettes {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important
      }
    }

    @media(prefers-reduced-motion:reduce) {

      #editorModal .color-role-card,
      #editorModal .quick-palette {
        transition: none !important
      }
    }

/* Block 14 (arushan-background-colors-stage8-fixes) */
#editorModal .builder-shell.design-workspace [data-design-panel="background"] .design-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important
    }

    #editorModal .semantic-swatch input {
      inset: 0 !important;
      width: 100% !important;
      height: 100% !important
    }

    #editorModal .color-role-copy small {
      white-space: normal !important;
      overflow: visible !important;
      text-overflow: clip !important;
      line-height: 1.25;
      min-height: 22px
    }

    @media(max-width:1260px) {
      #editorModal .builder-shell.design-workspace [data-design-panel="background"] .design-grid {
        grid-template-columns: 1fr !important
      }
    }

/* Block 15 (arushan-editor-polish-stage9) */
/* Visual Buttons */
    #editorModal .builder-shell.design-workspace [data-design-panel="buttons"] .shape-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      gap: 12px !important
    }

    #editorModal [data-design-panel="buttons"] .shape-card {
      min-height: 184px !important;
      padding: 13px !important;
      border-radius: 16px !important;
      background: #fff !important;
      border: 1.5px solid #e6e3eb !important;
      box-shadow: 0 2px 10px rgba(28, 22, 45, .04) !important;
      text-align: left !important;
      cursor: pointer !important;
      overflow: hidden !important;
      transition: all .2s cubic-bezier(.16, 1, .3, 1) !important
    }

    #editorModal [data-design-panel="buttons"] .shape-card:hover {
      border-color: #8c72f8 !important;
      transform: translateY(-2px) !important;
      box-shadow: 0 8px 24px rgba(109, 74, 255, .12) !important
    }

    #editorModal [data-design-panel="buttons"] .shape-card.active {
      border-color: #6d4aff !important;
      box-shadow: 0 0 0 2px rgba(109, 74, 255, .22), 0 8px 24px rgba(109, 74, 255, .14) !important
    }

    #editorModal [data-design-panel="buttons"] .shape-demo {
      height: 124px !important;
      min-height: 124px !important;
      display: flex !important;
      flex-direction: column !important;
      justify-content: center !important;
      gap: 11px !important;
      margin: 0 0 13px !important;
      padding: 16px 18px !important;
      border: 1px solid rgba(255, 255, 255, .08) !important;
      border-radius: 13px !important;
      background: linear-gradient(180deg, #181524 0%, #0d0b16 100%) !important;
      box-shadow: inset 0 1px 1px rgba(255, 255, 255, .06), 0 4px 16px rgba(0, 0, 0, .22) !important;
      box-sizing: border-box !important
    }

    #editorModal .button-demo-primary,
    #editorModal .button-demo-secondary {
      width: 100% !important;
      height: 40px !important;
      min-height: 40px !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 7px !important;
      border-radius: var(--button-radius) !important;
      font-family: inherit !important;
      font-style: normal !important;
      font-size: 13.5px !important;
      font-weight: 650 !important;
      letter-spacing: -.01em !important;
      line-height: 1.2 !important;
      padding: 0 16px !important;
      box-sizing: border-box !important;
      transition: transform .18s ease, box-shadow .18s ease !important
    }

    #editorModal .button-demo-primary {
      background: var(--button-primary) !important;
      color: var(--button-primary-text) !important;
      box-shadow: 0 4px 14px rgba(109, 74, 255, .35) !important;
      border: none !important
    }

    #editorModal .button-demo-secondary {
      background: var(--button-secondary) !important;
      color: var(--button-secondary-text) !important;
      box-shadow: 0 2px 8px rgba(0, 0, 0, .12) !important;
      border: 1px solid rgba(255, 255, 255, .14) !important;
      opacity: .92 !important
    }

    #editorModal .button-demo-text {
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      max-width: 90% !important;
      font-style: normal !important
    }

    #editorModal .shape-card:hover .button-demo-primary {
      transform: translateY(-1px) !important;
      box-shadow: 0 6px 18px rgba(109, 74, 255, .45) !important
    }

    #editorModal .shape-card .shape-copy {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 10px !important;
      padding: 0 4px !important
    }

    #editorModal .shape-card .shape-copy span {
      min-width: 0
    }

    #editorModal .shape-card .shape-copy b {
      display: block !important;
      font-size: 14px !important;
      font-weight: 700 !important;
      color: #171717 !important;
      line-height: 1.25 !important
    }

    #editorModal .shape-card .shape-copy small {
      display: block !important;
      margin-top: 3px !important;
      color: #797388 !important;
      font-size: 11.5px !important;
      font-weight: 500 !important;
      line-height: 1.25 !important
    }

    #editorModal [data-design-panel="buttons"] .shape-card .shape-check {
      width: 22px !important;
      min-width: 22px !important;
      max-width: 22px !important;
      height: 22px !important;
      min-height: 22px !important;
      max-height: 22px !important;
      display: grid !important;
      place-items: center !important;
      flex: none !important;
      border-radius: 50% !important;
      background: #ede9f4 !important;
      color: transparent !important;
      font-size: 12px !important;
      font-weight: 700 !important;
      font-style: normal !important;
      transition: all .18s ease !important
    }

    #editorModal [data-design-panel="buttons"] .shape-card.active .shape-check {
      background: #6d4aff !important;
      color: #fff !important;
      box-shadow: 0 2px 8px rgba(109, 74, 255, .38) !important
    }

    #editorModal .buttons-hierarchy {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 12px !important;
      margin-top: 16px !important
    }

    #editorModal .button-role-preview {
      padding: 14px !important;
      border: 1px solid #e5e2eb !important;
      border-radius: 14px !important;
      background: #fff !important
    }

    #editorModal .button-role-head {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 10px !important;
      margin-bottom: 12px !important
    }

    #editorModal .button-role-head b {
      font-size: 13px !important;
      font-weight: 700 !important;
      color: #171717 !important
    }

    #editorModal .button-role-head small {
      color: #837d8f !important;
      font-size: 11px !important;
      font-weight: 600 !important
    }

    #editorModal .button-stage {
      height: 84px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 14px !important;
      border-radius: 12px !important;
      background: linear-gradient(180deg, #181524 0%, #0d0b16 100%) !important;
      box-shadow: inset 0 1px 1px rgba(255, 255, 255, .06), 0 4px 16px rgba(0, 0, 0, .2) !important;
      box-sizing: border-box !important
    }

    #editorModal .button-stage span {
      width: 100% !important;
      height: 40px !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 7px !important;
      border-radius: var(--current-radius) !important;
      background: var(--role-bg) !important;
      color: var(--role-text) !important;
      font-size: 13.5px !important;
      font-weight: 650 !important;
      font-style: normal !important;
      letter-spacing: -.01em !important;
      box-shadow: 0 4px 14px rgba(0, 0, 0, .2) !important;
      padding: 0 16px !important;
      box-sizing: border-box !important
    }

    #editorModal .button-colors-link {
      width: 100% !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      margin-top: 14px !important;
      padding: 13px 16px !important;
      border: 1.5px solid #e3dff0 !important;
      border-radius: 12px !important;
      background: #faf8ff !important;
      color: #5e42cf !important;
      font-size: 13px !important;
      font-weight: 700 !important;
      cursor: pointer !important;
      transition: all .18s ease !important
    }

    #editorModal .button-colors-link:hover {
      border-color: #9e8bdd !important;
      background: #f5f1ff !important
    }

    @media (min-width: 1261px) {
      #editorModal [data-design-panel="buttons"] .shape-card {
        min-height: 156px !important;
        padding: 10px !important
      }

      #editorModal [data-design-panel="buttons"] .shape-demo {
        height: 106px !important;
        min-height: 106px !important;
        padding: 12px 10px !important;
        gap: 8px !important
      }

      #editorModal .button-demo-primary,
      #editorModal .button-demo-secondary {
        height: 34px !important;
        min-height: 34px !important;
        font-size: 11px !important;
        gap: 5px !important;
        padding: 0 8px !important
      }

      #editorModal .shape-card .shape-copy b {
        font-size: 12px !important
      }

      #editorModal .shape-card .shape-copy small {
        font-size: 10px !important
      }
    }

    /* Compact profile editor */
    #editorModal .stage9-profile-card {
      margin-bottom: 14px;
      border: 1px solid #e3dfe8;
      border-radius: 14px;
      background: #fff;
      overflow: hidden;
      box-shadow: 0 8px 24px rgba(35, 29, 48, .055)
    }

    #editorModal .stage9-profile-visual {
      position: relative;
      height: 140px;
      background: linear-gradient(135deg, #2a1740, #101321);
      background-size: cover;
      background-position: center
    }

    #editorModal .stage9-profile-visual:after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(transparent 35%, rgba(10, 10, 18, .78))
    }

    #editorModal .stage9-profile-avatar {
      position: absolute;
      left: 18px;
      bottom: 15px;
      z-index: 2;
      width: 64px;
      height: 64px;
      border: 3px solid rgba(255, 255, 255, .92);
      border-radius: 19px;
      background: linear-gradient(135deg, #e65db7, #35d7eb);
      background-size: cover;
      background-position: center;
      box-shadow: 0 6px 18px rgba(0, 0, 0, .23)
    }

    #editorModal .stage9-profile-summary {
      position: absolute;
      left: 96px;
      right: 15px;
      bottom: 19px;
      z-index: 2;
      color: #fff
    }

    .stage9-profile-summary b {
      display: block;
      font-size: 13px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis
    }

    .stage9-profile-summary small {
      display: block;
      margin-top: 4px;
      color: rgba(255, 255, 255, .72);
      font-size: 8px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis
    }

    #editorModal .stage9-profile-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      padding: 11px
    }

    #editorModal .stage9-profile-actions button {
      min-height: 37px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      border: 1px solid #ded9e4;
      border-radius: 9px;
      background: #fff;
      color: #3c3841;
      font-size: 9px;
      font-weight: 800;
      cursor: pointer
    }

    .stage9-profile-actions button:hover {
      border-color: #9e8bdd;
      background: #faf8ff;
      color: #5e42cf
    }

    #editorModal .stage9-field-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: -5px 0 9px;
      color: #a09ba5;
      font-size: 8px
    }

    .stage9-field-meta b {
      color: #77717d;
      font-weight: 700
    }

    /* Preview selection halo */
    #editorModal #editorScreen {
      position: relative !important
    }

    #editorModal .preview-selection-toolbar {
      display: none !important
    }

    #editorModal .preview-selection-box {
      position: absolute;
      z-index: 40;
      pointer-events: none;
      border: 2px solid #9d86ff;
      border-radius: 12px;
      box-shadow: 0 0 0 4px rgba(109, 74, 255, .17), 0 8px 22px rgba(40, 24, 94, .2);
      transition: top .18s ease, left .18s ease, width .18s ease, height .18s ease
    }

    #editorModal .preview-selection-toolbar {
      position: absolute;
      left: 0;
      top: -31px;
      min-width: max-content;
      height: 25px;
      display: flex;
      align-items: center;
      gap: 3px;
      padding: 3px 4px 3px 8px;
      border-radius: 8px;
      background: #17151d;
      color: #fff;
      box-shadow: 0 5px 14px rgba(0, 0, 0, .24);
      pointer-events: auto
    }

    #editorModal .preview-selection-toolbar.is-below {
      top: auto;
      bottom: -31px
    }

    #editorModal .preview-selection-label {
      margin-right: 4px;
      font-size: 8px;
      font-weight: 800;
      letter-spacing: .01em
    }

    #editorModal .preview-selection-toolbar button {
      width: 19px;
      height: 19px;
      display: grid;
      place-items: center;
      border: 0;
      border-radius: 5px;
      background: #2b2833;
      color: #fff;
      font-size: 9px;
      cursor: pointer
    }

    .preview-selection-toolbar button:hover {
      background: #6d4aff
    }

    .preview-selection-toolbar button:disabled {
      opacity: .35;
      cursor: default
    }

    #editorModal [data-builder-selected="true"] {
      outline-color: transparent !important;
      box-shadow: none !important
    }

    #editorModal .mini-cover:hover,
    #editorModal .mini-avatar:hover,
    #editorModal #previewName:hover,
    #editorModal #previewBio:hover,
    #editorModal .mini-cta:hover,
    #editorModal .mini-link:hover {
      outline-color: rgba(157, 134, 255, .72) !important
    }

    @media(max-width:1260px) {
      #editorModal .builder-shell.design-workspace [data-design-panel="buttons"] .shape-grid {
        grid-template-columns: 1fr !important
      }

      #editorModal .buttons-hierarchy {
        grid-template-columns: 1fr
      }
    }

    @media(prefers-reduced-motion:reduce) {

      #editorModal .preview-selection-box,
      #editorModal .button-demo-primary {
        transition: none !important
      }
    }

/* Block 16 (arushan-editor-polish-stage9-fixes) */
#editorModal [data-design-panel="buttons"]>.studio-card+.studio-card {
      display: none !important
    }

    #editorModal [data-design-panel="buttons"] .shape-card>.selected-tick {
      display: none !important
    }

    #editorModal .preview-selection-toolbar.is-inline {
      left: auto;
      right: 4px;
      top: 50%;
      bottom: auto;
      transform: translateY(-50%);
      padding-left: 4px
    }

    #editorModal .preview-selection-toolbar.is-inline .preview-selection-label {
      display: none
    }

/* Block 17 (arushan-editor-polish-stage9-check-fix) */
#editorModal [data-design-panel="buttons"] .shape-card .shape-check {
      width: 22px !important;
      min-width: 22px !important;
      max-width: 22px !important;
      height: 22px !important;
      min-height: 22px !important;
      max-height: 22px !important;
      padding: 0 !important;
      border-radius: 50% !important;
      align-self: center !important
    }

/* Block 18 (arushan-stage9-media-selection-fix) */
#editorModal #editorScreen:has(.preview-selection-box) .mini-cover:hover,
    #editorModal #editorScreen:has(.preview-selection-box) .mini-avatar:hover,
    #editorModal #editorScreen:has(.preview-selection-box) #previewName:hover,
    #editorModal #editorScreen:has(.preview-selection-box) #previewBio:hover,
    #editorModal #editorScreen:has(.preview-selection-box) .mini-cta:hover,
    #editorModal #editorScreen:has(.preview-selection-box) .mini-link:hover {
      outline-color: transparent !important;
      transform: none !important;
      box-shadow: none !important
    }

    #editorModal .preview-context-tag {
      display: none !important
    }

    #editorModal .builder-node {
      padding: 10px 12px !important;
      border-radius: 12px !important;
      gap: 12px !important;
      transition: background .15s ease, box-shadow .15s ease !important
    }

    #editorModal .builder-node .drag {
      width: 16px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      color: #94a3b8 !important
    }

    #editorModal .builder-node .drag svg {
      opacity: .45;
      transition: opacity .15s ease
    }

    #editorModal .builder-node:hover .drag svg {
      opacity: 1;
      color: #6366f1
    }

    #editorModal .node-icon {
      width: 34px !important;
      height: 34px !important;
      border-radius: 10px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      flex: none !important;
      box-shadow: 0 1px 3px rgba(0, 0, 0, .04), inset 0 0 0 1px rgba(0, 0, 0, .04) !important;
      transition: transform .18s ease, box-shadow .18s ease !important
    }

    #editorModal .node-icon svg {
      width: 18px !important;
      height: 18px !important;
      display: block !important
    }

    #editorModal .builder-node:hover .node-icon {
      transform: scale(1.06);
      box-shadow: 0 3px 8px rgba(0, 0, 0, .08), inset 0 0 0 1px rgba(0, 0, 0, .06) !important
    }

    /* Thematic colors for each specific function */
    #editorModal .node-icon.icon-profile {
      background: #f3f0ff !important;
      color: #7c3aed !important
    }

    #editorModal .node-icon.icon-media {
      background: #eff6ff !important;
      color: #2563eb !important
    }

    #editorModal .node-icon.icon-settings {
      background: #f1f5f9 !important;
      color: #475569 !important
    }

    #editorModal .node-icon.icon-primary {
      background: #faf5ff !important;
      color: #9333ea !important
    }

    #editorModal .node-icon.icon-portfolio {
      background: #f0fdf4 !important;
      color: #16a34a !important
    }

    #editorModal .node-icon.icon-project {
      background: #fff7ed !important;
      color: #ea580c !important
    }

    #editorModal .node-icon.icon-link {
      background: #eef2ff !important;
      color: #4f46e5 !important
    }

    #editorModal .node-icon.icon-design {
      background: #fdf4ff !important;
      color: #c026d3 !important
    }

    #editorModal .node-icon.icon-publish {
      background: #ecfdf5 !important;
      color: #059669 !important
    }

    /* Enhanced active state */
    #editorModal .builder-node.active {
      background: #f5f3ff !important;
      box-shadow: 0 2px 8px rgba(109, 74, 255, .12) !important
    }

    #editorModal .builder-node.active .node-copy b {
      color: #4325a8 !important
    }

    #editorModal .builder-node.active .node-icon.icon-profile {
      box-shadow: 0 2px 8px rgba(124, 58, 237, .3), inset 0 0 0 1px rgba(124, 58, 237, .25) !important
    }

    #editorModal .builder-node.active .node-icon.icon-media {
      box-shadow: 0 2px 8px rgba(37, 99, 235, .3), inset 0 0 0 1px rgba(37, 99, 235, .25) !important
    }

    #editorModal .builder-node.active .node-icon.icon-settings {
      box-shadow: 0 2px 8px rgba(71, 85, 105, .3), inset 0 0 0 1px rgba(71, 85, 105, .25) !important
    }

    #editorModal .builder-node.active .node-icon.icon-primary {
      box-shadow: 0 2px 8px rgba(147, 51, 234, .3), inset 0 0 0 1px rgba(147, 51, 234, .25) !important
    }

    #editorModal .builder-node.active .node-icon.icon-portfolio {
      box-shadow: 0 2px 8px rgba(22, 163, 74, .3), inset 0 0 0 1px rgba(22, 163, 74, .25) !important
    }

    #editorModal .builder-node.active .node-icon.icon-project {
      box-shadow: 0 2px 8px rgba(234, 88, 12, .3), inset 0 0 0 1px rgba(234, 88, 12, .25) !important
    }

    #editorModal .builder-node.active .node-icon.icon-link {
      box-shadow: 0 2px 8px rgba(79, 70, 229, .3), inset 0 0 0 1px rgba(79, 70, 229, .25) !important
    }

    #editorModal .builder-node.active .node-icon.icon-design {
      box-shadow: 0 2px 8px rgba(192, 38, 211, .3), inset 0 0 0 1px rgba(192, 38, 211, .25) !important
    }

    #editorModal .builder-node.active .node-icon.icon-publish {
      box-shadow: 0 2px 8px rgba(5, 150, 105, .3), inset 0 0 0 1px rgba(5, 150, 105, .25) !important
    }

    #editorModal .builder-node .node-icon.icon-split {
      background: linear-gradient(135deg, #6847ee, #8b5cf6) !important;
      color: #fff !important
    }

    #editorModal .builder-node.active .node-icon.icon-split {
      box-shadow: 0 2px 8px rgba(104, 71, 238, .4), inset 0 0 0 1px rgba(104, 71, 238, .3) !important
    }

    #editorModal .builder-add {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      border: 1.5px dashed #cbd5e1 !important;
      background: #fafafa !important;
      color: #475569 !important;
      font-weight: 700 !important;
      padding: 11px 16px !important;
      border-radius: 12px !important;
      transition: all .18s ease !important
    }

    #editorModal .builder-add:hover {
      border-color: #6d4aff !important;
      color: #6d4aff !important;
      background: #f5f3ff !important;
      transform: translateY(-1px);
      box-shadow: 0 3px 8px rgba(109, 74, 255, .12) !important
    }

    #editorModal .builder-add svg {
      transition: transform .18s ease
    }

    #editorModal .builder-add:hover svg {
      transform: rotate(90deg)
    }

    #editorModal .editorhead .editor-lang-switch {
      display: flex !important;
      background: #f0f0f0;
      border: 1px solid #d5d1c8;
      padding: 2px;
      border-radius: 8px;
      margin-left: auto
    }

    #editorModal .editorhead .editor-lang-switch button {
      border: 0;
      background: transparent;
      color: #6f6974;
      border-radius: 6px;
      padding: 3px 8px;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer
    }

    #editorModal .editorhead .editor-lang-switch button.active {
      background: #fff;
      color: #17131b;
      box-shadow: 0 1px 3px rgba(0, 0, 0, .1)
    }

    #editorModal #previewName,
    #editorModal #previewBio {
      display: inline-block !important;
      max-width: 92% !important
    }

    /* --- ARUSHAN MODERN VISUAL BUILDER REFINEMENTS --- */
    #editorModal.editorbg {
      background: rgba(18, 16, 26, 0.65) !important;
      backdrop-filter: blur(16px) !important;
    }

    #editorModal .editor {
      border-radius: 20px !important;
      border: 1px solid rgba(255, 255, 255, 0.75) !important;
      box-shadow: 0 32px 90px rgba(10, 8, 24, 0.32), 0 4px 16px rgba(0, 0, 0, 0.08) !important;
      overflow: hidden !important;
    }

    #editorModal .builder-shell {
      grid-template-columns: 275px minmax(420px, 1fr) 390px !important;
    }

    #editorModal .builder-outline {
      border-right: 1px solid #e8e5df !important;
      background: #fafafa !important;
      padding-right: 2px !important;
    }

    #editorModal .builder-section-title {
      font-size: 11px !important;
      font-weight: 800 !important;
      letter-spacing: 0.08em !important;
      text-transform: uppercase !important;
      color: #737373 !important;
      padding: 14px 16px 6px !important;
    }

    #editorModal .builder-node {
      padding: 10px 14px !important;
      border-radius: 10px !important;
      margin: 2px 10px !important;
    }

    #editorModal .node-copy b {
      font-size: 13px !important;
      font-weight: 700 !important;
      color: #171717 !important;
      white-space: nowrap !important;
    }

    #editorModal .node-copy small {
      font-size: 11px !important;
      color: #716e7a !important;
    }

    #editorModal .design-category-nav {
      display: flex !important;
      flex-wrap: wrap !important;
      gap: 6px !important;
      padding: 12px 0 16px !important;
      border-bottom: 1px solid #eae7e0 !important;
      margin-bottom: 16px !important;
      background: transparent !important;
    }

    #editorModal .design-cat {
      flex: 1 1 calc(33.333% - 6px) !important;
      min-height: 36px !important;
      padding: 8px 10px !important;
      border-radius: 8px !important;
      border: 1px solid #e5e5e5 !important;
      background: #fff !important;
      color: #585561 !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      text-align: center !important;
      cursor: pointer !important;
      transition: all 0.14s ease !important;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    }

    #editorModal .design-cat:hover {
      background: #f6f3ff !important;
      border-color: #c4b5fd !important;
      color: #6847ee !important;
    }

    #editorModal .design-cat.active {
      background: #6847ee !important;
      border-color: #6847ee !important;
      color: #fff !important;
      box-shadow: 0 3px 10px rgba(104, 71, 238, 0.28) !important;
    }

    #editorModal .preset-card {
      border-radius: 12px !important;
      border: 1.5px solid #e2ded5 !important;
      transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
    }

    #editorModal .preset-card:hover {
      transform: translateY(-2px) !important;
      border-color: #6847ee !important;
      box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08) !important;
    }

    #editorModal .preset-card.active,
    #editorModal .preset-card[aria-selected="true"] {
      border-color: #6847ee !important;
      box-shadow: 0 0 0 2px #6847ee, 0 6px 18px rgba(104, 71, 238, 0.2) !important;
    }

    #editorModal .builder-foot {
      height: 68px !important;
      padding: 0 24px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      background: #fafafa !important;
      border-top: 1px solid #e8e5df !important;
    }

    #editorModal .builder-foot button,
    #editorModal .editorfoot button {
      border-radius: 8px !important;
      font-size: 14px !important;
      font-weight: 700 !important;
      cursor: pointer !important;
      transition: all 0.15s ease !important;
    }

    #editorModal #closeEditorModalBtn,
    #editorModal button[type="button"]:not(.primary):not(.design-cat):not(.iconbtn):not(.btn) {
      padding: 10px 20px !important;
      background: #fff !important;
      border: 1px solid #d8d5cd !important;
      color: #171717 !important;
    }

    #editorModal #closeEditorModalBtn:hover {
      background: #f5f3ef !important;
    }

    #editorModal button[type="submit"],
    #editorModal button.primary:not(#newLink):not(#emptyNew) {
      padding: 11px 24px !important;
      background: #171717 !important;
      border: 1px solid #171717 !important;
      color: #fff !important;
      box-shadow: 3px 3px 0 #171717 !important;
    }

    #editorModal button[type="submit"]:hover,
    #editorModal button.primary:not(#newLink):not(#emptyNew):hover {
      background: #6847ee !important;
      border-color: #171717 !important;
      box-shadow: 4px 4px 0 #171717 !important;
      transform: translate(-1px, -1px) !important;
    }


    /* ==========================================================================
   ARUSHAN BULLETPROOF VISUAL BUILDER FIXES (USER AUDIT 2026)
   ========================================================================== */

    /* --- POINT 1: REMOVE REDUNDANT LANG SWITCH IN MODAL --- */
    #editorModal .editorhead .editor-lang-switch {
      display: none !important;
    }

    /* --- POINT 2: PREVIEW NAME & BIO VERTICALLY STACKED --- */
    #editorModal #previewName {
      display: block !important;
      width: 100% !important;
      max-width: 100% !important;
      text-align: center !important;
      margin: 12px auto 4px !important;
      font-size: 18px !important;
      font-weight: 800 !important;
      line-height: 1.25 !important;
      letter-spacing: -0.02em !important;
      clear: both !important;
    }

    #editorModal #previewBio {
      display: block !important;
      width: 100% !important;
      max-width: 90% !important;
      text-align: center !important;
      margin: 0 auto 16px !important;
      font-size: 13px !important;
      line-height: 1.45 !important;
      opacity: 0.85 !important;
      clear: both !important;
    }

    /* --- POINT 3: LEFT SIDEBAR OUTLINE & NO HORIZONTAL SCROLLBAR --- */
    #editorModal .builder-outline {
      width: 280px !important;
      min-width: 280px !important;
      max-width: 280px !important;
      overflow-x: hidden !important;
      overflow-y: hidden !important;
      display: flex !important;
      flex-direction: column !important;
      border-right: 1px solid #e8e5df !important;
      background: #fafafa !important;
    }

    #editorModal .builder-panel-head {
      height: 52px !important;
      padding: 0 16px !important;
      border-bottom: 1px solid #e8e5df !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      flex-shrink: 0 !important;
    }

    #editorModal .builder-panel-head strong {
      font-size: 13px !important;
      font-weight: 800 !important;
      color: #171717 !important;
    }

    #editorModal .builder-tree {
      overflow-x: hidden !important;
      overflow-y: auto !important;
      padding: 10px 12px !important;
      box-sizing: border-box !important;
      width: 100% !important;
      flex: 1 !important;
      scrollbar-width: thin !important;
    }

    #editorModal .builder-group-label {
      padding: 12px 6px 6px !important;
      color: #737373 !important;
      font-size: 10px !important;
      font-weight: 800 !important;
      letter-spacing: 0.08em !important;
      text-transform: uppercase !important;
    }

    #editorModal .builder-node {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      margin: 4px 0 !important;
      padding: 9px 12px !important;
      border: 1px solid #f0f0f0 !important;
      border-radius: 10px !important;
      background: #ffffff !important;
      display: flex !important;
      align-items: center !important;
      gap: 10px !important;
      cursor: pointer !important;
      transition: all 0.15s ease !important;
      outline: none !important;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    }

    #editorModal .builder-node:focus,
    #editorModal .builder-node:focus-visible {
      outline: none !important;
      border-color: #6847ee !important;
    }

    #editorModal .builder-node:hover {
      background: #f5f3ef !important;
      border-color: #e5e5e5 !important;
      transform: translateX(1px) !important;
    }

    #editorModal .builder-node.active {
      background: #f5f3ff !important;
      border-color: #6847ee !important;
      box-shadow: 0 2px 8px rgba(104, 71, 238, 0.12) !important;
    }

    #editorModal .builder-node .node-icon {
      width: 32px !important;
      height: 32px !important;
      border-radius: 8px !important;
      flex: none !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }

    #editorModal .builder-node .node-copy {
      min-width: 0 !important;
      flex: 1 !important;
      overflow: hidden !important;
    }

    #editorModal .builder-node .node-copy b {
      display: block !important;
      font-size: 13px !important;
      font-weight: 700 !important;
      color: #171717 !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      line-height: 1.25 !important;
    }

    #editorModal .builder-node .node-copy small {
      display: block !important;
      font-size: 11px !important;
      font-weight: 500 !important;
      color: #716e7a !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      margin-top: 2px !important;
    }

    #editorModal .builder-add {
      width: calc(100% - 24px) !important;
      margin: 10px 12px 14px !important;
      min-height: 42px !important;
      box-sizing: border-box !important;
      border: 1.5px dashed #cbd5e1 !important;
      border-radius: 10px !important;
      background: #ffffff !important;
      color: #475569 !important;
      font-weight: 700 !important;
      font-size: 13px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      cursor: pointer !important;
      transition: all 0.15s ease !important;
    }

    #editorModal .builder-add:hover {
      border-color: #6847ee !important;
      color: #6847ee !important;
      background: #f8f6ff !important;
      transform: translateY(-1px) !important;
    }

    /* --- POINT 4: LIVE PREVIEW TOOLBAR (SINGLE CLEAN LINE) --- */
    #editorModal .device-preview-toolbar {
      width: min(100%, 560px) !important;
      min-height: 44px !important;
      height: 44px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 12px !important;
      padding: 0 14px !important;
      white-space: nowrap !important;
      border-radius: 12px !important;
      border: 1px solid #e5e5e5 !important;
      background: #ffffff !important;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
      margin: 0 auto 16px !important;
      flex: none !important;
      box-sizing: border-box !important;
    }

    #editorModal .device-label {
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
      white-space: nowrap !important;
      flex-shrink: 0 !important;
      font-size: 12px !important;
      font-weight: 700 !important;
      color: #171717 !important;
    }

    #editorModal .device-label:before {
      content: "" !important;
      width: 8px !important;
      height: 8px !important;
      border-radius: 50% !important;
      background: #2a9e6e !important;
      box-shadow: 0 0 0 3px rgba(42, 158, 110, 0.16) !important;
      flex-shrink: 0 !important;
    }

    #editorModal .device-label>span {
      white-space: nowrap !important;
      display: inline-block !important;
    }

    #editorModal .device-label small {
      color: #737373 !important;
      font-size: 11px !important;
      font-weight: 500 !important;
      margin-left: 6px !important;
      white-space: nowrap !important;
      display: inline-block !important;
    }

    #editorModal .preview-tools {
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
      flex-shrink: 0 !important;
      white-space: nowrap !important;
    }

    #editorModal .preview-tool {
      height: 28px !important;
      min-width: 36px !important;
      padding: 0 10px !important;
      border: 1px solid #e2ded5 !important;
      border-radius: 6px !important;
      background: #f5f3ef !important;
      color: #55525d !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      cursor: pointer !important;
      transition: all 0.15s ease !important;
      white-space: nowrap !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
    }

    #editorModal .preview-tool:hover {
      background: #f0f0f0 !important;
      color: #171717 !important;
      border-color: #d0cbc0 !important;
    }

    #editorModal .preview-tool.active {
      background: #6847ee !important;
      color: #ffffff !important;
      border-color: #6847ee !important;
      box-shadow: 0 2px 8px rgba(104, 71, 238, 0.25) !important;
    }

    /* --- POINT 5: AVATAR & COVER REPLACEMENT BUTTONS --- */
    #editorModal .stage9-profile-card {
      border: 1px solid #e5e5e5 !important;
      border-radius: 14px !important;
      overflow: hidden !important;
      margin-bottom: 20px !important;
      background: #ffffff !important;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    }

    #editorModal .stage9-profile-visual {
      min-height: 105px !important;
      padding: 14px !important;
      display: flex !important;
      align-items: flex-end !important;
      gap: 12px !important;
      position: relative !important;
      background-size: cover !important;
      background-position: center !important;
    }

    #editorModal .stage9-profile-avatar {
      width: 52px !important;
      height: 52px !important;
      border-radius: 12px !important;
      border: 2px solid #ffffff !important;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
      flex-shrink: 0 !important;
      background-size: cover !important;
      background-position: center !important;
    }

    #editorModal .stage9-profile-summary b {
      font-size: 14px !important;
      font-weight: 800 !important;
      color: #ffffff !important;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
      display: block !important;
    }

    #editorModal .stage9-profile-summary small {
      font-size: 12px !important;
      color: rgba(255, 255, 255, 0.9) !important;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
      display: block !important;
    }

    #editorModal .stage9-profile-actions {
      display: grid !important;
      grid-template-columns: 1fr 1fr !important;
      gap: 10px !important;
      padding: 12px 14px !important;
      background: #ffffff !important;
      border-top: 1px solid #f0f0f0 !important;
    }

    #editorModal .stage9-profile-actions button {
      min-height: 44px !important;
      height: 44px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      border: 1px solid #e5e5e5 !important;
      border-radius: 9px !important;
      background: #ffffff !important;
      color: #171717 !important;
      font-size: 13px !important;
      font-weight: 600 !important;
      letter-spacing: -0.01em !important;
      font-family: inherit !important;
      cursor: pointer !important;
      transition: all 0.15s ease !important;
      padding: 0 12px !important;
      white-space: nowrap !important;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    }

    #editorModal .stage9-profile-actions button svg {
      color: #6847ee !important;
      flex-shrink: 0 !important;
    }

    #editorModal .stage9-profile-actions button:hover {
      border-color: #6847ee !important;
      background: #f8f6ff !important;
      color: #6847ee !important;
      box-shadow: 0 3px 10px rgba(104, 71, 238, 0.14) !important;
      transform: translateY(-1px) !important;
    }

    /* --- OVERALL POLISH FOR RIGHT INSPECTOR --- */
    #editorModal .builder-inspector {
      padding: 16px 20px !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
      scrollbar-width: thin !important;
    }

    #editorModal .builder-inspector-head {
      padding-bottom: 12px !important;
      margin-bottom: 16px !important;
      border-bottom: 1px solid #f0f0f0 !important;
    }

    #editorModal .builder-inspector-head .builder-inspector-title span {
      font-size: 10px !important;
      font-weight: 800 !important;
      letter-spacing: 0.08em !important;
      text-transform: uppercase !important;
      color: #737373 !important;
      display: block !important;
    }

    #editorModal .builder-inspector-head .builder-inspector-title strong {
      font-size: 18px !important;
      font-weight: 800 !important;
      color: #171717 !important;
      margin-top: 4px !important;
      display: block !important;
    }

    #editorModal .field input,
    #editorModal .field textarea,
    #editorModal .field select,
    #editorModal input[type="text"],
    #editorModal input[type="url"],
    #editorModal textarea {
      width: 100% !important;
      box-sizing: border-box !important;
      border: 1px solid #e5e5e5 !important;
      border-radius: 8px !important;
      padding: 10px 12px !important;
      font-size: 13px !important;
      font-family: inherit !important;
      color: #171717 !important;
      background: #ffffff !important;
      transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    }

    #editorModal .field input:focus,
    #editorModal .field textarea:focus,
    #editorModal input[type="text"]:focus,
    #editorModal textarea:focus {
      outline: none !important;
      border-color: #6847ee !important;
      box-shadow: 0 0 0 3px rgba(104, 71, 238, 0.12) !important;
    }

    #editorModal .field label {
      font-size: 11px !important;
      font-weight: 800 !important;
      letter-spacing: 0.06em !important;
      text-transform: uppercase !important;
      color: #716e7a !important;
      margin-bottom: 6px !important;
      display: block !important;
    }

    /* --- MODAL FOOTER & ACTION BUTTONS --- */
    #editorModal .builder-foot,
    #editorModal .editorfoot {
      height: 64px !important;
      padding: 0 24px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      background: #ffffff !important;
      border-top: 1px solid #e8e5df !important;
      flex-shrink: 0 !important;
    }

    #editorModal .builder-save-note {
      font-size: 12px !important;
      color: #716e7a !important;
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
    }

    #editorModal .builder-save-note:before {
      content: "" !important;
      width: 7px !important;
      height: 7px !important;
      border-radius: 50% !important;
      background: #2a9e6e !important;
      display: inline-block !important;
    }

/* Block 19 (arushan-editor-turn10-polish) */
/* 1. Prevent sticky nav bleed-through / text overlap */
    #editorModal .design-category-nav,
    #editorModal .builder-shell.design-workspace .design-category-nav {
      position: static !important;
      top: auto !important;
      background: transparent !important;
      border-bottom: 1px solid #eae7e0 !important;
      padding: 8px 0 14px !important;
      margin-bottom: 14px !important;
      z-index: 1 !important;
      display: flex !important;
      flex-wrap: wrap !important;
      gap: 6px !important;
      overflow: visible !important;
    }

    #editorModal .design-cat {
      flex: 1 1 calc(33.333% - 6px) !important;
      min-height: 36px !important;
      border-radius: 9px !important;
      font-size: 11px !important;
      font-weight: 600 !important;
      border: 1px solid #e3e0e8 !important;
      background: #ffffff !important;
      color: #4b4754 !important;
      transition: all 0.15s ease !important;
    }

    #editorModal .design-cat.active {
      background: #6847ee !important;
      color: #ffffff !important;
      border-color: #6847ee !important;
      box-shadow: 0 2px 8px rgba(104, 71, 238, 0.25) !important;
    }

    /* 2. Absolute circular checkmark badge for all selection cards */
    #editorModal .layout-card,
    #editorModal .preset-card,
    #editorModal .theme-card,
    #editorModal .shape-card {
      position: relative !important;
      border-radius: 14px !important;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
      border: 1.5px solid #e4e1e9 !important;
      background: #ffffff !important;
      text-align: center !important;
      overflow: hidden !important;
    }

    #editorModal .layout-card:hover,
    #editorModal .preset-card:hover,
    #editorModal .theme-card:hover,
    #editorModal .shape-card:hover {
      border-color: #a79af0 !important;
      transform: translateY(-2px) !important;
      box-shadow: 0 6px 18px rgba(38, 31, 57, 0.08) !important;
    }

    #editorModal .layout-card.active,
    #editorModal .preset-card.active,
    #editorModal .theme-card.active,
    #editorModal .shape-card.active {
      border-color: #6847ee !important;
      box-shadow: 0 0 0 2px rgba(104, 71, 238, 0.2), 0 8px 22px rgba(104, 71, 238, 0.12) !important;
    }

    #editorModal .selected-tick {
      position: absolute !important;
      top: 8px !important;
      right: 8px !important;
      width: 22px !important;
      height: 22px !important;
      min-width: 22px !important;
      min-height: 22px !important;
      max-width: 22px !important;
      max-height: 22px !important;
      border-radius: 50% !important;
      background: #6847ee !important;
      color: #ffffff !important;
      display: none !important;
      align-items: center !important;
      justify-content: center !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      font-style: normal !important;
      line-height: 1 !important;
      box-shadow: 0 2px 8px rgba(104, 71, 238, 0.4), 0 0 0 2px #ffffff !important;
      z-index: 12 !important;
      flex-shrink: 0 !important;
      box-sizing: border-box !important;
    }

    #editorModal .layout-card.active .selected-tick,
    #editorModal .preset-card.active .selected-tick,
    #editorModal .theme-card.active .selected-tick,
    #editorModal .shape-card.active .selected-tick {
      display: flex !important;
    }

    #editorModal .layout-copy {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      text-align: center !important;
      width: 100% !important;
      min-height: 38px !important;
      padding: 8px 6px !important;
      font-size: 12px !important;
      font-weight: 600 !important;
      color: #1e1b2e !important;
      box-sizing: border-box !important;
      margin: 0 !important;
      border-top: 1px solid #f0eef3 !important;
      background: #ffffff !important;
    }

    /* 3. Refined miniature cards under Profile / Header Layout */
    #editorModal [data-design-panel="profile"] .design-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 12px !important;
    }

    #editorModal [data-design-panel="profile"] .layout-card {
      padding: 0 !important;
      overflow: hidden !important;
    }

    #editorModal [data-design-panel="profile"] .layout-visual {
      display: block !important;
      height: 140px !important;
      aspect-ratio: auto !important;
      padding: 0 !important;
      border-radius: 0 !important;
      overflow: hidden !important;
      background: transparent !important;
    }

    #editorModal .header-layout-live {
      position: relative !important;
      width: 100% !important;
      height: 100% !important;
      display: flex !important;
      flex-direction: column !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
      background: var(--header-bg) !important;
      color: var(--header-name) !important;
      font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
    }

    #editorModal .header-layout-live .hl-note {
      display: none !important;
    }

    #editorModal .header-layout-live .hl-cover {
      position: relative !important;
      width: 100% !important;
      height: 46px !important;
      flex: none !important;
      background: var(--header-cover), var(--header-bg) !important;
      background-size: cover !important;
      background-position: center !important;
      overflow: hidden !important;
      border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    #editorModal .header-layout-live .hl-cover:after {
      content: "" !important;
      position: absolute !important;
      inset: 0 !important;
      background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.35)) !important;
    }

    #editorModal .header-layout-live .hl-avatar {
      position: relative !important;
      z-index: 3 !important;
      width: 34px !important;
      height: 34px !important;
      flex: none !important;
      margin: -17px auto 0 !important;
      border: 2.5px solid #ffffff !important;
      border-radius: 50% !important;
      background: var(--header-avatar), linear-gradient(135deg, #e65db7, #35d7eb) !important;
      background-size: cover !important;
      background-position: center !important;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25) !important;
    }

    #editorModal .header-layout-live .hl-name {
      max-width: 86% !important;
      margin: 6px auto 0 !important;
      font-size: 11px !important;
      line-height: 1.2 !important;
      font-weight: 700 !important;
      letter-spacing: -0.01em !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      text-align: center !important;
    }

    #editorModal .header-layout-live .hl-bio {
      width: 80% !important;
      height: 14px !important;
      margin: 3px auto 0 !important;
      color: var(--header-bio) !important;
      font-size: 7.5px !important;
      line-height: 1.3 !important;
      text-align: center !important;
      overflow: hidden !important;
      opacity: 0.8 !important;
      white-space: nowrap !important;
      text-overflow: ellipsis !important;
    }

    #editorModal .header-layout-live .hl-rule {
      width: 72% !important;
      height: 16px !important;
      margin: 6px auto 0 !important;
      border-radius: var(--header-radius) !important;
      background: var(--header-accent) !important;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }

    #editorModal .header-layout-live .hl-rule:after {
      content: "↗ Link" !important;
      color: var(--header-button-text) !important;
      font-size: 7px !important;
      font-weight: 700 !important;
      letter-spacing: 0.02em !important;
    }

    /* Minimalist layout - centered, without cover, clean spacing */
    #editorModal .header-layout-live.layout-minimal {
      align-items: center !important;
      padding: 10px 8px !important;
      text-align: center !important;
    }

    #editorModal .header-layout-live.layout-minimal .hl-cover {
      display: none !important;
    }

    #editorModal .header-layout-live.layout-minimal .hl-avatar {
      width: 36px !important;
      height: 36px !important;
      margin: 8px auto 0 !important;
      border-radius: 50% !important;
      border: 2px solid rgba(255, 255, 255, 0.5) !important;
    }

    #editorModal .header-layout-live.layout-minimal .hl-name {
      max-width: 90% !important;
      margin: 6px auto 0 !important;
      font-size: 11.5px !important;
      text-align: center !important;
    }

    #editorModal .header-layout-live.layout-minimal .hl-bio {
      width: 86% !important;
      height: 14px !important;
      margin: 3px auto 0 !important;
      text-align: center !important;
      font-size: 7.5px !important;
    }

    #editorModal .header-layout-live.layout-minimal .hl-rule {
      width: 85% !important;
      height: 16px !important;
      margin: 8px auto 0 !important;
    }

    /* Bold layout */
    #editorModal .header-layout-live.layout-bold .hl-cover {
      height: 56px !important;
    }

    #editorModal .header-layout-live.layout-bold .hl-avatar {
      width: 36px !important;
      height: 36px !important;
      margin-top: -18px !important;
      border-radius: 12px !important;
    }

    #editorModal .header-layout-live.layout-bold .hl-name {
      font-size: 12px !important;
      margin-top: 6px !important;
    }

    #editorModal .header-layout-live.layout-bold .hl-bio {
      height: 14px !important;
    }

    #editorModal .header-layout-live.layout-bold .hl-rule {
      margin-top: 6px !important;
      width: 75% !important;
    }

/* Block 20 (arushan-editor-turn11-polish) */
/* 1. Profile card actions: Avatar & Cover with Delete buttons */
    #editorModal .stage9-profile-actions {
      display: flex !important;
      flex-wrap: wrap !important;
      gap: 8px !important;
      padding: 10px !important;
      background: #ffffff !important;
      border-top: 1px solid #f0f0f0 !important;
      box-sizing: border-box !important;
      width: 100% !important;
    }

    #editorModal .stage9-action-col {
      flex: 1 1 calc(50% - 6px) !important;
      min-width: 130px !important;
      display: flex !important;
      align-items: stretch !important;
      gap: 6px !important;
    }

    #editorModal .stage9-btn {
      font-family: inherit !important;
      border-radius: 9px !important;
      min-height: 40px !important;
      height: 40px !important;
      box-sizing: border-box !important;
      cursor: pointer !important;
      transition: all 0.15s ease !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 6px !important;
      font-size: 12px !important;
      font-weight: 600 !important;
      line-height: 1 !important;
      white-space: nowrap !important;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    }

    #editorModal .stage9-btn-upload {
      flex: 1 1 auto !important;
      min-width: 0 !important;
      border: 1px solid #e5e5e5 !important;
      background: #ffffff !important;
      color: #171717 !important;
      padding: 0 10px !important;
    }

    #editorModal .stage9-btn-upload svg {
      color: #6847ee !important;
      flex-shrink: 0 !important;
      width: 15px !important;
      height: 15px !important;
    }

    #editorModal .stage9-btn-upload:hover {
      border-color: #6847ee !important;
      background: #f8f6ff !important;
      color: #6847ee !important;
    }

    #editorModal .stage9-btn-del {
      flex: 0 0 auto !important;
      border: 1px solid #fecaca !important;
      background: #fff5f5 !important;
      color: #dc2626 !important;
      padding: 0 10px !important;
    }

    #editorModal .stage9-btn-del svg {
      color: #dc2626 !important;
      flex-shrink: 0 !important;
      width: 14px !important;
      height: 14px !important;
    }

    #editorModal .stage9-btn-del:hover {
      border-color: #ef4444 !important;
      background: #fee2e2 !important;
      color: #b91c1c !important;
    }

    .btn-clear-media {
      background: transparent !important;
      border: 0 !important;
      color: #dc2626 !important;
      font-size: 11.5px !important;
      font-weight: 600 !important;
      font-family: inherit !important;
      cursor: pointer !important;
      padding: 2px 6px !important;
      border-radius: 6px !important;
      transition: all 0.15s ease !important;
    }

    .btn-clear-media:hover {
      background: #fee2e2 !important;
      color: #b91c1c !important;
    }

    @media (max-width: 440px) {
      #editorModal .stage9-action-col {
        flex: 1 1 100% !important;
      }
    }

    /* 2. Fix preview toolbar: fit all buttons without right cut-off */
    #editorModal .device-preview-toolbar {
      width: 100% !important;
      max-width: 450px !important;
      height: 38px !important;
      padding: 0 8px !important;
      gap: 6px !important;
      box-sizing: border-box !important;
      overflow: visible !important;
    }

    #editorModal .device-label {
      gap: 6px !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      white-space: nowrap !important;
    }

    #editorModal .device-label small {
      display: none !important;
      /* Hide redundant resolution text so buttons never get cut off */
    }

    #editorModal .preview-tools {
      display: flex !important;
      align-items: center !important;
      gap: 4px !important;
      flex-shrink: 0 !important;
    }

    #editorModal .preview-tool {
      padding: 4px 7px !important;
      font-size: 11px !important;
      height: 26px !important;
      min-width: 32px !important;
      line-height: 1 !important;
      border-radius: 7px !important;
      box-sizing: border-box !important;
    }

    #editorModal .preview-tool[data-scroll-top] {
      padding: 4px 6px !important;
    }

    /* 3. Remove oval icon from background card */
    #editorModal .background-info-icon {
      display: none !important;
    }

    #editorModal .background-info {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      padding: 12px 14px !important;
      border-radius: 12px !important;
      background: #faf9fc !important;
      border: 1px solid #ebe8f0 !important;
    }

    /* 4. Rich photo presets styling */
    #editorModal .preset-card {
      border-radius: 12px !important;
      overflow: hidden !important;
      border: 1.5px solid #e4e1e9 !important;
      background: #ffffff !important;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    #editorModal .preset-visual {
      height: 98px !important;
      background: var(--preset-bg) !important;
      background-size: cover !important;
      background-position: center !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 5px !important;
      position: relative !important;
    }

    #editorModal .preset-copy {
      padding: 8px 10px !important;
      min-height: 42px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      background: #ffffff !important;
      border-top: 1px solid #f0edf4 !important;
      box-sizing: border-box !important;
    }

    #editorModal .preset-copy>span:first-child b {
      font-size: 12px !important;
      font-weight: 700 !important;
      color: #171717 !important;
      display: block !important;
    }

    #editorModal .preset-copy>span:first-child small {
      font-size: 10px !important;
      color: #797483 !important;
      display: block !important;
      margin-top: 1px !important;
    }

/* Block 21 (arushan-editor-turn12-polish) */
/* 1. Preview toolbar: centered and clean without weird icons */
    #editorModal .device-preview-toolbar {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 12px !important;
      margin: 0 auto 12px auto !important;
      width: fit-content !important;
      min-width: 320px !important;
      max-width: 480px !important;
      padding: 0 14px !important;
      align-self: center !important;
    }

    #editorModal .device-preview-toolbar [data-scroll-top] {
      display: none !important;
    }

    #editorModal .device-label {
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
      font-size: 11.5px !important;
      font-weight: 700 !important;
      color: #272430 !important;
      white-space: nowrap !important;
    }

    /* 2. Prevent inspector header text overlap when scrolling down */
    #editorModal .builder-inspector-head,
    #editorModal .builder-shell.design-workspace .builder-inspector-head {
      position: static !important;
      top: auto !important;
      background: #ffffff !important;
      backdrop-filter: none !important;
      border-bottom: 1px solid #eae7e0 !important;
      margin-bottom: 12px !important;
      padding: 14px 18px 10px !important;
      min-height: auto !important;
      z-index: 1 !important;
    }

    /* 3. Custom Background Card in Presets Panel - Vertical, spacious layout */
    #editorModal .custom-bg-card {
      display: flex !important;
      flex-direction: column !important;
      align-items: stretch !important;
      gap: 12px !important;
      padding: 14px 16px !important;
      margin-bottom: 16px !important;
      background: #fbfafc !important;
      border: 1.5px dashed #cfc8dc !important;
      border-radius: 14px !important;
      box-sizing: border-box !important;
      width: 100% !important;
      transition: all 0.2s ease !important;
    }

    #editorModal .custom-bg-card:hover {
      border-color: #6847ee !important;
      background: #f8f6ff !important;
    }

    #editorModal .custom-bg-card-content {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      gap: 12px !important;
      width: 100% !important;
      min-width: 0 !important;
    }

    #editorModal .custom-bg-icon {
      width: 34px !important;
      height: 34px !important;
      border-radius: 9px !important;
      background: #ede9fe !important;
      color: #6847ee !important;
      display: grid !important;
      place-items: center !important;
      flex-shrink: 0 !important;
    }

    #editorModal .custom-bg-info {
      display: flex !important;
      flex-direction: column !important;
      min-width: 0 !important;
    }

    #editorModal .custom-bg-info b {
      font-size: 12px !important;
      font-weight: 700 !important;
      color: #1c1926 !important;
      display: block !important;
    }

    #editorModal .custom-bg-info small {
      font-size: 10px !important;
      color: #797483 !important;
      display: block !important;
      margin-top: 1px !important;
    }

    #editorModal .custom-bg-actions {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      gap: 8px !important;
      width: 100% !important;
    }

    #editorModal .custom-bg-btn {
      flex: 1 1 auto !important;
      height: 36px !important;
      padding: 0 14px !important;
      border-radius: 9px !important;
      background: #6847ee !important;
      color: #ffffff !important;
      font-size: 12px !important;
      font-weight: 600 !important;
      border: none !important;
      cursor: pointer !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 6px !important;
      transition: all 0.15s ease !important;
      box-shadow: 0 2px 6px rgba(104, 71, 238, 0.25) !important;
    }

    #editorModal .custom-bg-btn:hover {
      background: #5837de !important;
      transform: translateY(-1px) !important;
    }

    #editorModal .custom-bg-clear-btn {
      height: 32px !important;
      padding: 0 10px !important;
      border-radius: 8px !important;
      background: #f3f0f7 !important;
      color: #6d6777 !important;
      font-size: 11px !important;
      font-weight: 600 !important;
      border: 1px solid #ded9e5 !important;
      cursor: pointer !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      transition: all 0.15s ease !important;
    }

    #editorModal .custom-bg-clear-btn:hover {
      background: #fee2e2 !important;
      color: #dc2626 !important;
      border-color: #fca5a5 !important;
    }

    /* 4. Fix color-role-card (Colors panel): beautiful layout without text overlap! */
    #editorModal .semantic-color-grid {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 12px !important;
    }

    #editorModal .color-role-card {
      padding: 12px 10px !important;
      border-radius: 14px !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 8px !important;
      box-sizing: border-box !important;
      min-width: 0 !important;
    }

    #editorModal .color-role-head {
      display: flex !important;
      align-items: flex-start !important;
      justify-content: space-between !important;
      gap: 8px !important;
      margin-bottom: 4px !important;
    }

    #editorModal .color-role-icon {
      display: none !important;
      /* Hide redundant icon so title has plenty of room */
    }

    #editorModal .color-role-copy {
      flex: 1 1 auto !important;
      min-width: 0 !important;
    }

    #editorModal .color-role-copy b {
      font-size: 11.5px !important;
      font-weight: 700 !important;
      color: #171717 !important;
      line-height: 1.25 !important;
      display: block !important;
      word-break: break-word !important;
      white-space: normal !important;
    }

    #editorModal .color-role-copy small {
      font-size: 9.5px !important;
      color: #797483 !important;
      line-height: 1.25 !important;
      margin-top: 3px !important;
      display: block !important;
      word-break: break-word !important;
      white-space: normal !important;
    }

    #editorModal .semantic-swatch {
      width: 28px !important;
      height: 28px !important;
      min-width: 28px !important;
      min-height: 28px !important;
      flex: 0 0 28px !important;
      border-radius: 8px !important;
      border: 1.5px solid #d8d4dc !important;
      box-shadow: inset 0 0 0 2px #fff, 0 2px 5px rgba(0, 0, 0, 0.12) !important;
      cursor: pointer !important;
      position: relative !important;
      overflow: hidden !important;
    }

    #editorModal .semantic-swatch input {
      position: absolute !important;
      inset: 0 !important;
      width: 100% !important;
      height: 100% !important;
      opacity: 0 !important;
      cursor: pointer !important;
    }

    #editorModal .color-role-preview {
      min-height: 58px !important;
      padding: 8px !important;
      border-radius: 10px !important;
      margin: 4px 0 !important;
    }

    #editorModal .color-role-foot {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      margin-top: 2px !important;
      gap: 4px !important;
    }

    #editorModal .semantic-hex {
      padding: 3px 6px !important;
      border-radius: 6px !important;
      font-size: 9.5px !important;
      font-weight: 700 !important;
    }

    #editorModal .semantic-status {
      font-size: 9px !important;
      color: #837f8c !important;
    }

    /* 5. Edge-to-edge background fit */
    #editorModal #editorScreen,
    #editorModal .mini-screen {
      background-size: cover !important;
      background-position: center center !important;
      background-repeat: no-repeat !important;
    }

/* Block 22 (arushan-analytics-pro-stage13) */
/* --- ANALYTICS ENHANCED STYLES --- */
    .analytics-filter-bar {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 12px !important;
      margin-top: 18px !important;
      flex-wrap: wrap !important;
    }

    .analytics-period-selector {
      display: inline-flex !important;
      align-items: center !important;
      gap: 6px !important;
      background: #f1efe9 !important;
      padding: 4px !important;
      border-radius: 10px !important;
    }

    .period-pill {
      border: none !important;
      background: transparent !important;
      color: #635f6d !important;
      font-size: 11.5px !important;
      font-weight: 600 !important;
      padding: 6px 12px !important;
      border-radius: 7px !important;
      cursor: pointer !important;
      transition: all 0.15s ease !important;
    }

    .period-pill:hover {
      color: #171717 !important;
    }

    .period-pill.active {
      background: #ffffff !important;
      color: #171717 !important;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    }

    .analytics-sync-badge {
      font-size: 11px !important;
      font-weight: 700 !important;
      color: #15803d !important;
      background: #dcfce7 !important;
      padding: 4px 10px !important;
      border-radius: 20px !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 4px !important;
    }

    /* KPI Cards */
    .analytics-kpi-cards {
      display: grid !important;
      grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
      gap: 12px !important;
      margin-top: 16px !important;
    }

    @media (max-width: 1100px) {
      .analytics-kpi-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      }
    }

    @media (max-width: 680px) {
      .analytics-kpi-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      }
    }

    .stat-head {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
    }

    .stat-sub {
      display: block !important;
      margin-top: 4px !important;
      font-size: 11px !important;
      color: #837f8e !important;
    }

    .trend {
      font-size: 10px !important;
      font-weight: 700 !important;
      padding: 2px 6px !important;
      border-radius: 5px !important;
    }

    .trend.up {
      background: #dcfce7 !important;
      color: #15803d !important;
    }

    .trend.success {
      background: #f3e8ff !important;
      color: #7e22ce !important;
    }

    .trend.info {
      background: #e0f2fe !important;
      color: #0369a1 !important;
    }

    .trend.neutral {
      background: #f1efe9 !important;
      color: #635f6d !important;
    }

    /* Activity Chart */
    .activity-chart-card {
      margin-top: 18px !important;
      background: #ffffff !important;
      border: 1px solid #e7e4dc !important;
      border-radius: 14px !important;
      padding: 20px !important;
      box-shadow: 0 4px 14px rgba(30, 25, 45, 0.03) !important;
    }

    .analytics-card-head {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      padding-bottom: 14px !important;
      border-bottom: 1px solid #f0ede6 !important;
    }

    .analytics-card-title {
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
      font-size: 14px !important;
      font-weight: 750 !important;
      color: #171717 !important;
    }

    .chart-legend {
      display: flex !important;
      align-items: center !important;
      gap: 14px !important;
      font-size: 11.5px !important;
      color: #635f6d !important;
    }

    .leg-item {
      display: inline-flex !important;
      align-items: center !important;
      gap: 5px !important;
    }

    .leg-dot {
      width: 9px !important;
      height: 9px !important;
      border-radius: 3px !important;
      display: inline-block !important;
    }

    .views-dot {
      background: #c4b5fd !important;
    }

    .clicks-dot {
      background: #6847ee !important;
    }

    .chart-bars-wrap {
      display: flex !important;
      align-items: flex-end !important;
      justify-content: space-between !important;
      gap: 12px !important;
      height: 160px !important;
      padding-top: 24px !important;
    }

    .chart-col {
      flex: 1 !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      height: 100% !important;
      justify-content: flex-end !important;
      gap: 8px !important;
    }

    .chart-bars-track {
      width: 100% !important;
      max-width: 48px !important;
      height: 120px !important;
      display: flex !important;
      align-items: flex-end !important;
      justify-content: center !important;
      gap: 5px !important;
      position: relative !important;
    }

    .chart-bar {
      flex: 1 !important;
      border-radius: 6px 6px 2px 2px !important;
      min-height: 8px !important;
      position: relative !important;
      transition: all 0.2s ease !important;
      display: flex !important;
      justify-content: center !important;
    }

    .chart-bar:hover {
      filter: brightness(1.1) !important;
      transform: scaleY(1.04) !important;
    }

    .view-bar {
      background: #c4b5fd !important;
    }

    .click-bar {
      background: #6847ee !important;
    }

    .chart-val {
      position: absolute !important;
      top: -16px !important;
      font-size: 9.5px !important;
      font-weight: 700 !important;
      color: #635f6d !important;
    }

    .chart-day {
      font-size: 11px !important;
      font-weight: 600 !important;
      color: #837f8e !important;
    }

    /* 2-Column Grid */
    .analytics-grid {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 16px !important;
      margin-top: 18px !important;
    }

    @media (max-width: 860px) {
      .analytics-grid {
        grid-template-columns: 1fr !important;
      }
    }

    .analytics-card {
      background: #ffffff !important;
      border: 1px solid #e7e4dc !important;
      border-radius: 14px !important;
      padding: 18px 20px !important;
      box-shadow: 0 4px 14px rgba(30, 25, 45, 0.03) !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 14px !important;
    }

    .analytics-card-badge {
      font-size: 11px !important;
      font-weight: 600 !important;
      padding: 3px 8px !important;
      border-radius: 6px !important;
      background: #f1ecfe !important;
      color: #6847ee !important;
    }

    /* Source & Country List */
    .analytics-source-list {
      display: flex !important;
      flex-direction: column !important;
      gap: 12px !important;
    }

    .analytics-source-item {
      display: grid !important;
      grid-template-columns: 1fr auto !important;
      row-gap: 6px !important;
      align-items: center !important;
    }

    .source-info {
      display: flex !important;
      align-items: center !important;
      gap: 10px !important;
    }

    .source-icon {
      width: 32px !important;
      height: 32px !important;
      border-radius: 8px !important;
      display: grid !important;
      place-items: center !important;
      font-size: 15px !important;
      background: #f4f0fb !important;
    }

    .country-flag {
      font-size: 20px !important;
      line-height: 1 !important;
    }

    .source-info b {
      display: block !important;
      font-size: 12.5px !important;
      font-weight: 700 !important;
      color: #171717 !important;
    }

    .source-info small {
      display: block !important;
      font-size: 10.5px !important;
      color: #837f8e !important;
    }

    .source-stats {
      text-align: right !important;
    }

    .source-stats b {
      display: block !important;
      font-size: 12.5px !important;
      font-weight: 700 !important;
      color: #171717 !important;
    }

    .source-stats small {
      display: block !important;
      font-size: 10.5px !important;
      color: #837f8e !important;
    }

    .source-bar-wrap {
      grid-column: 1 / -1 !important;
      height: 6px !important;
      background: #f1efe9 !important;
      border-radius: 4px !important;
      overflow: hidden !important;
    }

    .source-bar {
      height: 100% !important;
      border-radius: 4px !important;
      transition: width 0.3s ease !important;
    }

    .ig-bar {
      background: linear-gradient(90deg, #f58529, #dd2a7b, #8134af) !important;
    }

    .tg-bar {
      background: #229ed9 !important;
    }

    .tt-bar {
      background: #000000 !important;
    }

    .dir-bar {
      background: #10b981 !important;
    }

    .country-bar {
      background: #6847ee !important;
    }

    /* Devices Meter */
    .device-meter-wrap {
      display: flex !important;
      flex-direction: column !important;
      gap: 14px !important;
      padding-top: 6px !important;
    }

    .device-meter-bar {
      height: 14px !important;
      border-radius: 7px !important;
      background: #f1efe9 !important;
      display: flex !important;
      overflow: hidden !important;
      gap: 2px !important;
    }

    .meter-fill.ios {
      background: #6847ee !important;
    }

    .meter-fill.android {
      background: #a855f7 !important;
    }

    .meter-fill.desktop {
      background: #94a3b8 !important;
    }

    .device-legend {
      display: flex !important;
      flex-direction: column !important;
      gap: 8px !important;
      font-size: 12px !important;
      color: #4b4654 !important;
    }

    .dev-leg-item {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
    }

    .dev-dot {
      width: 10px !important;
      height: 10px !important;
      border-radius: 3px !important;
      display: inline-block !important;
      margin-right: 6px !important;
    }

    .ios-dot {
      background: #6847ee !important;
    }

    .android-dot {
      background: #a855f7 !important;
    }

    .desktop-dot {
      background: #94a3b8 !important;
    }

    /* Click Ranking */
    .button-clicks-list {
      display: flex !important;
      flex-direction: column !important;
      gap: 10px !important;
    }

    .click-rank-item {
      display: flex !important;
      align-items: center !important;
      gap: 12px !important;
      padding: 10px 12px !important;
      background: #faf8f5 !important;
      border: 1px solid #ede9e1 !important;
      border-radius: 10px !important;
    }

    .click-medal {
      font-size: 20px !important;
      flex: none !important;
    }

    .click-info {
      flex: 1 1 auto !important;
      min-width: 0 !important;
    }

    .click-info b {
      font-size: 12.5px !important;
      font-weight: 700 !important;
      color: #171717 !important;
      display: block !important;
    }

    .click-info small {
      font-size: 10.5px !important;
      color: #837f8e !important;
      display: block !important;
      margin-top: 1px !important;
    }

    .click-stat {
      text-align: right !important;
      flex: none !important;
    }

    .click-stat b {
      font-size: 12px !important;
      font-weight: 700 !important;
      color: #6847ee !important;
      display: block !important;
    }

    .click-stat small {
      font-size: 10px !important;
      color: #837f8e !important;
      display: block !important;
    }

    /* Smart Insights Card */
    .smart-insights-card {
      margin-top: 18px !important;
      background: linear-gradient(135deg, #fcfaff 0%, #f7f3ff 100%) !important;
      border: 1px solid #dcd4fa !important;
    }

    .smart-insights-head {
      display: flex !important;
      align-items: center !important;
      gap: 12px !important;
      padding-bottom: 12px !important;
      border-bottom: 1px solid #e9e2fb !important;
    }

    .insight-icon {
      width: 36px !important;
      height: 36px !important;
      border-radius: 10px !important;
      background: #ede6fd !important;
      display: grid !important;
      place-items: center !important;
      font-size: 18px !important;
      flex: none !important;
    }

    .smart-insights-head b {
      font-size: 13.5px !important;
      font-weight: 750 !important;
      color: #171717 !important;
      display: block !important;
    }

    .smart-insights-head p {
      font-size: 11px !important;
      color: #776e8d !important;
      margin-top: 2px !important;
    }

    .insight-body {
      display: flex !important;
      flex-direction: column !important;
      gap: 10px !important;
      font-size: 12px !important;
      line-height: 1.45 !important;
      color: #3b3548 !important;
    }

    .insight-point {
      display: flex !important;
      align-items: flex-start !important;
      gap: 8px !important;
    }

    .insight-point .bullet {
      font-size: 14px !important;
      flex: none !important;
    }

    /* Table head bar */
    .table-head-bar {
      padding: 14px 18px !important;
      background: #faf8f5 !important;
      border-bottom: 1px solid #ede9e1 !important;
      display: flex !important;
      align-items: baseline !important;
      gap: 10px !important;
    }

    .table-head-bar b {
      font-size: 13px !important;
      font-weight: 750 !important;
      color: #171717 !important;
    }

    .table-head-bar small {
      font-size: 11px !important;
      color: #837f8e !important;
    }

/* Block 23 (arushan-smart-mobile-redesign) */
/* 1. Global seamless light background eliminating dark bottom bar */
    html,
    body {
      background-color: #fbfaf6 !important;
    }

    .design-toast {
      display: none !important;
    }

    /* Bulletproof logo & route-icon rendering for Safari & mobile */
    .route-icon {
      width: 62px !important;
      height: 62px !important;
      border: 1px solid #dedcd6 !important;
      border-radius: 15px !important;
      background-color: #ffffff !important;
      box-shadow: 0 3px 12px rgba(24, 25, 28, 0.07) !important;
      display: inline-block !important;
      flex: none !important;
    }

    .route-ig {
      background-size: 46px 46px !important;
      background-position: center center !important;
      background-repeat: no-repeat !important;
    }

    .route-ar {
      background-size: 48px 48px !important;
      background-position: center center !important;
      background-repeat: no-repeat !important;
    }

    .route-br {
      background-size: 48px 48px !important;
      background-position: center center !important;
      background-repeat: no-repeat !important;
    }

    @media (max-width: 768px) {

      html,
      body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        background-color: #fbfaf6 !important;
        -webkit-text-size-adjust: 100% !important;
      }

      .landing .nav {
        height: 58px !important;
        padding: 0 16px !important;
        display: flex !important;
        align-items: center !important;
      }

      .landing .navin {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
      }

      .brand {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8.5px !important;
        flex-shrink: 0 !important;
      }

      .logo {
        width: 32px !important;
        height: 32px !important;
        border-radius: 9px !important;
        background-size: 80% 80% !important;
      }

      .brand-name,
      .brand-dot-bio {
        font-size: 18.5px !important;
      }

      .landing .navact {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
      }

      .app {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        min-height: 100vh !important;
        background-color: #fbfaf6 !important;
      }

      .main {
        grid-column: 1 !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 14px 14px 44px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        background-color: #fbfaf6 !important;
      }

      /* Route card icons on mobile */
      .route-icon {
        width: 52px !important;
        height: 52px !important;
        border-radius: 13px !important;
      }

      .route-ig {
        background-size: 40px 40px !important;
      }

      .route-ar {
        background-size: 42px 42px !important;
      }

      .route-br {
        background-size: 42px 42px !important;
      }

      /* --- Cabinet Top --- */
      .dash-kicker {
        font-size: 10.5px !important;
        letter-spacing: 0.12em !important;
        margin-bottom: 4px !important;
      }

      .top {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        min-height: auto !important;
        padding: 8px 0 14px !important;
        border-bottom: 1px solid #d2cec4 !important;
      }

      .top>div:first-child {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
      }

      .top h2 {
        font-size: 24px !important;
        line-height: 1.2 !important;
        margin: 2px 0 !important;
        color: #171717 !important;
      }

      .top p {
        font-size: 13px !important;
        line-height: 1.35 !important;
        color: #635f6d !important;
      }

      .topact {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        margin-top: 2px !important;
      }

      /* Language Switcher in mobile cabinet */
      .topact .lang {
        display: inline-flex !important;
        height: 42px !important;
        border-radius: 9px !important;
        border: 1px solid #d2cec4 !important;
        background: #ffffff !important;
        padding: 3px !important;
        box-sizing: border-box !important;
        align-items: stretch !important;
        flex: 0 0 auto !important;
      }

      .topact .lang button {
        height: 100% !important;
        padding: 0 9px !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        border-radius: 7px !important;
        border: 0 !important;
        background: transparent !important;
        color: #686a6d !important;
        cursor: pointer !important;
        transition: all 0.15s ease !important;
      }

      .topact .lang button.active {
        background: #171717 !important;
        color: #ffffff !important;
      }

      .topact #newLink {
        flex: 1 1 auto !important;
        height: 42px !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 9px !important;
        white-space: nowrap !important;
      }

      /* --- Cabinet Stats --- */
      .cards {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin: 14px 0 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
      }

      .stat {
        padding: 14px 12px !important;
        border-radius: 10px !important;
        text-align: center !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        width: 100% !important;
      }

      .stat:nth-child(3) {
        display: none !important;
      }

      .stat small {
        font-size: 10.5px !important;
        display: block !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        color: #797583 !important;
      }

      .stat strong {
        font-size: 20px !important;
        margin-top: 4px !important;
        display: block !important;
        line-height: 1.2 !important;
        color: #171717 !important;
      }

      /* --- Cabinet Table Cards --- */
      .table {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
      }

      .thead {
        display: none !important;
      }

      .row {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px 8px !important;
        background: #fafafa !important;
        border: 1px solid #d4d4d4 !important;
        border-radius: 12px !important;
        padding: 14px 14px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
      }

      .row> :nth-child(1) {
        grid-column: 1 / -1 !important;
        min-width: 0 !important;
      }

      .row> :nth-child(1) b {
        font-size: 15px !important;
        color: #171717 !important;
        line-height: 1.3 !important;
        display: block !important;
        word-break: break-word !important;
      }

      .row> :nth-child(1) .small {
        font-size: 11.5px !important;
        color: #706c7a !important;
        word-break: break-all !important;
        display: block !important;
        margin-top: 3px !important;
        line-height: 1.35 !important;
      }

      .row> :nth-child(2) {
        grid-column: 1 / 3 !important;
        align-self: center !important;
        justify-self: start !important;
        max-width: 100% !important;
      }

      .row .slug {
        font-size: 12px !important;
        padding: 4px 8px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
      }

      .rowact {
        grid-column: 3 !important;
        grid-row: 2 !important;
        align-self: center !important;
        justify-self: end !important;
        width: auto !important;
        gap: 5px !important;
      }

      .rowact .iconbtn {
        width: 34px !important;
        height: 34px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        padding: 0 !important;
      }

      .rowact .iconbtn svg {
        width: 14px !important;
        height: 14px !important;
      }

      .row> :nth-child(3),
      .row> :nth-child(4),
      .row> :nth-child(5) {
        grid-row: 3 !important;
        border-top: 1px solid #e7e3db !important;
        padding-top: 8px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #433f4d !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
      }

      .row> :nth-child(3):before {
        content: "👁 ";
        font-size: 11px !important;
        margin-right: 4px !important;
        opacity: 0.75 !important;
      }

      .row> :nth-child(4):before {
        content: "↗ ";
        font-size: 11px !important;
        margin-right: 4px !important;
        opacity: 0.75 !important;
      }

      .row> :nth-child(5) {
        justify-self: end !important;
        font-size: 11.5px !important;
      }

      /* ==========================================================
     VISUAL BUILDER MODAL ON MOBILE (#editorModal)
     ========================================================== */
      #editorModal.editorbg {
        padding: 0 !important;
        background: #17161b !important;
      }

      #editorModal .editor {
        width: 100vw !important;
        height: 100dvh !important;
        max-width: 100vw !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        border: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        box-shadow: none !important;
        position: relative !important;
        touch-action: pan-y !important;
      }

      /* Modal Header */
      #editorModal .editorhead {
        height: 52px !important;
        min-height: 52px !important;
        padding: 0 14px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        border-bottom: 1px solid #ebe8f0 !important;
        background: #ffffff !important;
        gap: 8px !important;
      }

      #editorModal .editorhead h3 {
        font-size: 14px !important;
        font-weight: 750 !important;
        color: #17161c !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        flex: 1 1 auto !important;
      }

      /* Prominent Save Button in Mobile Header */
      #editorModal .btn-save-mobile {
        height: 34px !important;
        padding: 0 13px !important;
        border-radius: 8px !important;
        background: #6847ee !important;
        color: #ffffff !important;
        font-size: 12.5px !important;
        font-weight: 750 !important;
        border: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        box-shadow: 0 2px 8px rgba(104, 71, 238, 0.35) !important;
        transition: all 0.15s ease !important;
        white-space: nowrap !important;
        flex: none !important;
      }

      #editorModal .btn-save-mobile:active {
        transform: scale(0.96) !important;
        background: #5533db !important;
      }

      #editorModal .editorhead .iconbtn#closeEditor {
        width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 !important;
        display: grid !important;
        place-items: center !important;
        border-radius: 8px !important;
        font-size: 18px !important;
        color: #635f6e !important;
        flex: none !important;
      }

      /* The Builder Shell - single smooth scroll container */
      #editorModal .builder-shell,
      #editorModal .builder-shell.design-workspace {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100vw !important;
        flex: 1 1 auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: auto !important;
        touch-action: pan-y !important;
        overscroll-behavior-y: contain !important;
        grid-template-columns: 1fr !important;
        background: #ffffff !important;
        min-height: 0 !important;
        height: 0 !important;
      }

      /* HIDE DESKTOP CLUTTER ON MOBILE */
      #editorModal .builder-outline {
        display: none !important;
      }

      #editorModal .context-meta {
        display: none !important;
      }

      #editorModal .builder-inspector-head {
        display: none !important;
      }

      #editorModal .mobile-builder-toggle {
        display: none !important;
      }

      /* Disable all pseudo-element kickers that inject English labels */
      #editorModal .sectionbox:before,
      #editorModal .builder-inspector[data-context] .sectionbox:before {
        display: none !important;
        content: none !important;
      }

      /* --- LIVE PREVIEW STAGE (Compact Card at Top of Mobile Editor) --- */
      #editorModal .builder-stage,
      #editorModal .builder-shell .builder-stage,
      #editorModal .builder-shell.design-workspace .builder-stage {
        order: 1 !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 12px 14px 4px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        background: transparent !important;
        border: 0 !important;
        flex: none !important;
        touch-action: pan-y !important;
      }

      #editorModal .device-preview-toolbar {
        display: none !important;
      }

      #editorModal .phone-scale-shell {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        touch-action: pan-y !important;
      }

      #editorModal .epreview {
        width: 100% !important;
        max-width: 362px !important;
        height: 185px !important;
        overflow: hidden !important;
        border-radius: 20px !important;
        border: 2px solid #1c1a22 !important;
        box-shadow: 0 8px 24px rgba(26, 20, 45, 0.12) !important;
        position: relative !important;
        background: #090b14 !important;
        margin: 0 auto !important;
        transform: none !important;
        touch-action: pan-y !important;
      }

      #editorModal .mini-phone,
      #editorModal .builder-shell.design-workspace .mini-phone {
        width: 100% !important;
        height: 580px !important;
        border: 0 !important;
        border-radius: 0 !important;
        padding: 0 !important;
        transform: scale(0.92) !important;
        transform-origin: top center !important;
        margin-top: -6px !important;
        box-shadow: none !important;
        touch-action: pan-y !important;
      }

      /* Full-Screen Preview Button on the Compact Card */
      .mobile-preview-badge {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        z-index: 40 !important;
        background: rgba(22, 20, 28, 0.82) !important;
        backdrop-filter: blur(10px) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        border-radius: 16px !important;
        padding: 4px 10px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        cursor: pointer !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        transition: all 0.15s ease !important;
      }

      .mobile-preview-badge:active {
        transform: scale(0.95) !important;
        background: #5c3bdf !important;
      }

      /* --- 4-TAB SEGMENTED BAR (Native Mobile UX: Профиль, Кнопки, Дизайн, Ссылка) --- */
      .mobile-segment-tabs {
        order: 2 !important;
        display: flex !important;
        width: calc(100% - 28px) !important;
        margin: 8px 14px 10px !important;
        background: #f1ecf8 !important;
        border-radius: 12px !important;
        padding: 3px !important;
        gap: 3px !important;
        box-sizing: border-box !important;
        flex: none !important;
        touch-action: manipulation !important;
      }

      .mobile-segment-tab {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        height: 38px !important;
        border: 0 !important;
        background: transparent !important;
        border-radius: 9px !important;
        font-size: 11.5px !important;
        font-weight: 750 !important;
        color: #645d73 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        cursor: pointer !important;
        transition: all 0.15s ease !important;
        white-space: nowrap !important;
        padding: 0 4px !important;
      }

      .mobile-segment-tab.active {
        background: #ffffff !important;
        color: #5533db !important;
        box-shadow: 0 2px 6px rgba(85, 51, 219, 0.14) !important;
      }

      /* --- INSPECTOR & FORM CONTROLS: Natural Height, No Nested Scroll Trap --- */
      #editorModal .builder-inspector,
      #editorModal .builder-shell .builder-inspector,
      #editorModal .builder-shell.design-workspace .builder-inspector {
        order: 3 !important;
        width: 100% !important;
        max-width: 100vw !important;
        border: 0 !important;
        padding: 4px 14px 90px !important;
        box-sizing: border-box !important;
        flex: none !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-y: visible !important;
        overflow-x: visible !important;
        touch-action: pan-y !important;
      }

      #editorModal .builder-inspector .pane {
        padding: 0 !important;
        overflow: visible !important;
        touch-action: pan-y !important;
      }

      #editorModal .builder-inspector .sectionbox {
        margin: 0 0 14px !important;
        padding: 14px !important;
        border-radius: 12px !important;
        background: #faf9fc !important;
        border: 1px solid #e7e3ee !important;
        overflow: visible !important;
        touch-action: pan-y !important;
      }

      #editorModal .builder-inspector .sectionbox h4 {
        font-size: 12px !important;
        margin-bottom: 10px !important;
        color: #171717 !important;
      }

      #editorModal .builder-inspector .formgrid,
      #editorModal .builder-inspector .text-color-grid {
        grid-template-columns: 1fr !important;
      }

      #editorModal .builder-inspector .themes {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
      }

      /* ELIMINATE duplicate avatar/cover upload card on mobile (Requested in Screen 5) */
      #editorModal .stage9-profile-card {
        display: none !important;
      }

      /* --- PURE TAB ISOLATION ON MOBILE (4 TABS) --- */

      /* TAB 1: PROFILE (Name, Bio, Images once) */
      #editorModal[data-mobile-tab="profile"] #pane-design,
      #editorModal[data-mobile-tab="profile"] #pane-publish,
      #editorModal[data-mobile-tab="profile"] #designStudio,
      #editorModal[data-mobile-tab="profile"] .design-studio {
        display: none !important;
      }

      #editorModal[data-mobile-tab="profile"] #pane-content {
        display: block !important;
      }

      #editorModal[data-mobile-tab="profile"] #pane-content .sectionbox:nth-of-type(1) {
        display: block !important;
      }

      #editorModal[data-mobile-tab="profile"] #pane-content .sectionbox:nth-of-type(1) .input:has(#linkTitle),
      #editorModal[data-mobile-tab="profile"] #pane-content .sectionbox:nth-of-type(1) .input:has(#linkDestination) {
        display: none !important;
      }

      #editorModal[data-mobile-tab="profile"] #pane-content .sectionbox:nth-of-type(1) .input:has(#linkDisplayName),
      #editorModal[data-mobile-tab="profile"] #pane-content .sectionbox:nth-of-type(1) .input:has(#linkBio) {
        display: block !important;
      }

      #editorModal[data-mobile-tab="profile"] #pane-content .sectionbox:nth-of-type(2) {
        display: block !important;
      }

      #editorModal[data-mobile-tab="profile"] #pane-content .sectionbox:nth-of-type(3) {
        display: none !important;
      }

      /* TAB 2: BUTTONS (Main Button + Extra Buttons) */
      #editorModal[data-mobile-tab="buttons"] #pane-publish,
      #editorModal[data-mobile-tab="buttons"] #designStudio,
      #editorModal[data-mobile-tab="buttons"] .design-studio {
        display: none !important;
      }

      #editorModal[data-mobile-tab="buttons"] .builder-inspector,
      #editorModal[data-mobile-tab="buttons"] .builder-inspector>div {
        display: flex !important;
        flex-direction: column !important;
      }

      #editorModal[data-mobile-tab="buttons"] #pane-design {
        display: flex !important;
        flex-direction: column !important;
        order: 1 !important;
      }

      #editorModal[data-mobile-tab="buttons"] #pane-design .sectionbox:nth-of-type(1) {
        display: none !important;
      }

      #editorModal[data-mobile-tab="buttons"] #pane-design .sectionbox:nth-of-type(2) {
        display: block !important;
        order: 1 !important;
        margin-bottom: 12px !important;
      }

      #editorModal[data-mobile-tab="buttons"] #pane-design .sectionbox:nth-of-type(2)>h4 {
        display: none !important;
      }

      #editorModal[data-mobile-tab="buttons"] #pane-design .sectionbox:nth-of-type(2) .input:has(#linkAccent) {
        display: block !important;
      }

      #editorModal[data-mobile-tab="buttons"] #pane-design .sectionbox:nth-of-type(2) .input:not(:has(#linkAccent)) {
        display: none !important;
      }

      #editorModal[data-mobile-tab="buttons"] #pane-design .sectionbox:nth-of-type(3) {
        display: block !important;
        order: 2 !important;
        margin-bottom: 12px !important;
      }

      #editorModal[data-mobile-tab="buttons"] #pane-design .sectionbox:nth-of-type(3)>h4 {
        display: none !important;
      }

      #editorModal[data-mobile-tab="buttons"] #pane-content {
        display: flex !important;
        flex-direction: column !important;
        order: 2 !important;
      }

      #editorModal[data-mobile-tab="buttons"] #pane-content .sectionbox:nth-of-type(1) {
        display: block !important;
        order: 1 !important;
        margin-bottom: 14px !important;
        padding: 14px !important;
        background: #faf9fc !important;
        border: 1px solid #e7e3ee !important;
        border-radius: 12px !important;
      }

      #editorModal[data-mobile-tab="buttons"] #pane-content .sectionbox:nth-of-type(1) h4,
      #editorModal[data-mobile-tab="buttons"] #pane-content .sectionbox:nth-of-type(1) .formgrid,
      #editorModal[data-mobile-tab="buttons"] #pane-content .sectionbox:nth-of-type(1) .input:has(#linkBio),
      #editorModal[data-mobile-tab="buttons"] #pane-content .sectionbox:nth-of-type(1) .input:has(#linkDisplayName),
      #editorModal[data-mobile-tab="buttons"] #pane-content .sectionbox:nth-of-type(1) .input:has(#linkTitle) {
        display: none !important;
      }

      #editorModal[data-mobile-tab="buttons"] #pane-content .sectionbox:nth-of-type(1) .input:has(#linkDestination) {
        display: block !important;
      }

      #editorModal[data-mobile-tab="buttons"] #pane-content .sectionbox:nth-of-type(2) {
        display: none !important;
      }

      #editorModal[data-mobile-tab="buttons"] #pane-content .sectionbox:nth-of-type(3) {
        display: flex !important;
        flex-direction: column !important;
        order: 2 !important;
        margin-top: 0 !important;
        margin-bottom: 14px !important;
        background: #faf9fc !important;
        border: 1px solid #e7e3ee !important;
        border-radius: 12px !important;
        padding: 14px !important;
      }

      #editorModal[data-mobile-tab="buttons"] #pane-content .sectionbox:nth-of-type(3) .extrahead {
        display: block !important;
        margin-bottom: 4px !important;
      }

      #editorModal[data-mobile-tab="buttons"] #pane-content .sectionbox:nth-of-type(3) h4 {
        font-size: 12.5px !important;
        font-weight: 750 !important;
        color: #171717 !important;
        margin: 0 !important;
        letter-spacing: 0.05em !important;
        white-space: nowrap !important;
      }

      #editorModal[data-mobile-tab="buttons"] #pane-content .sectionbox:nth-of-type(3) .small {
        margin: 4px 0 10px !important;
        font-size: 12px !important;
        color: #726e7c !important;
        line-height: 1.4 !important;
      }

      #editorModal[data-mobile-tab="buttons"] #extraButtonsList {
        display: block !important;
        margin-top: 4px !important;
        margin-bottom: 6px !important;
      }

      #editorModal[data-mobile-tab="buttons"] #extraButtonsList .extrarow {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 12px 38px 12px 12px !important;
        background: #ffffff !important;
        border: 1px solid #e2deea !important;
        border-radius: 10px !important;
        margin-bottom: 10px !important;
        position: relative !important;
      }

      #editorModal[data-mobile-tab="buttons"] #extraButtonsList .extrarow .builder-reorder {
        display: none !important;
      }

      #editorModal[data-mobile-tab="buttons"] #extraButtonsList .extrarow .iconbtn.danger {
        position: absolute !important;
        top: 10px !important;
        right: 8px !important;
        width: 28px !important;
        height: 28px !important;
        border-radius: 6px !important;
        font-size: 16px !important;
        display: grid !important;
        place-items: center !important;
      }

      #editorModal[data-mobile-tab="buttons"] #extraButtonsList .extrarow input {
        width: 100% !important;
        box-sizing: border-box !important;
        height: 40px !important;
        font-size: 13.5px !important;
        border: 1px solid #dcd7e7 !important;
        border-radius: 8px !important;
        padding: 0 10px !important;
        background: #faf9fd !important;
      }

      /* Sleek, neat Add Button placed below extra buttons list */
      #editorModal #addExtraButton {
        width: 100% !important;
        height: 40px !important;
        border-radius: 10px !important;
        background: #f7f5fd !important;
        border: 1px dashed #d1c8f3 !important;
        color: #5c3bdf !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        cursor: pointer !important;
        box-shadow: none !important;
        transition: all 0.15s ease !important;
        margin-top: 4px !important;
      }

      #editorModal #addExtraButton:hover,
      #editorModal #addExtraButton:active {
        background: #eee8fc !important;
        border-color: #6847ee !important;
        color: #4b2ac9 !important;
        transform: scale(0.99) !important;
      }

      /* TAB 3: DESIGN */
      #editorModal[data-mobile-tab="design"] #pane-content,
      #editorModal[data-mobile-tab="design"] #pane-publish {
        display: none !important;
      }

      #editorModal[data-mobile-tab="design"] #pane-design {
        display: block !important;
      }

      #editorModal[data-mobile-tab="design"] #pane-design .sectionbox:nth-of-type(1) {
        display: block !important;
      }

      #editorModal[data-mobile-tab="design"] #pane-design .sectionbox:nth-of-type(2),
      #editorModal[data-mobile-tab="design"] #pane-design .sectionbox:nth-of-type(3) {
        display: block !important;
      }

      #editorModal[data-mobile-tab="design"] #designStudio,
      #editorModal[data-mobile-tab="design"] .design-studio {
        display: grid !important;
      }

      /* TAB 4: LINK / PUBLICATION */
      #editorModal[data-mobile-tab="link"] #pane-design,
      #editorModal[data-mobile-tab="link"] #designStudio,
      #editorModal[data-mobile-tab="link"] .design-studio {
        display: none !important;
      }

      #editorModal[data-mobile-tab="link"] .builder-inspector,
      #editorModal[data-mobile-tab="link"] .builder-inspector>div {
        display: flex !important;
        flex-direction: column !important;
      }

      #editorModal[data-mobile-tab="link"] #pane-content {
        display: block !important;
        order: 1 !important;
      }

      #editorModal[data-mobile-tab="link"] #pane-content .sectionbox:nth-of-type(1) {
        display: block !important;
        margin-bottom: 14px !important;
      }

      #editorModal[data-mobile-tab="link"] #pane-content .sectionbox:nth-of-type(1) .input:has(#linkTitle) {
        display: block !important;
      }

      #editorModal[data-mobile-tab="link"] #pane-content .sectionbox:nth-of-type(1) .input:not(:has(#linkTitle)) {
        display: none !important;
      }

      #editorModal[data-mobile-tab="link"] #pane-content .sectionbox:nth-of-type(2),
      #editorModal[data-mobile-tab="link"] #pane-content .sectionbox:nth-of-type(3) {
        display: none !important;
      }

      #editorModal[data-mobile-tab="link"] #pane-publish {
        display: block !important;
        order: 2 !important;
      }

      #editorModal[data-mobile-tab="link"] #pane-publish .sectionbox {
        display: block !important;
        margin-bottom: 14px !important;
        padding: 14px !important;
        background: #faf9fc !important;
        border: 1px solid #e7e3ee !important;
        border-radius: 12px !important;
      }

      #editorModal[data-mobile-tab="link"] #pane-publish .sectionbox h4 {
        display: block !important;
        font-size: 12px !important;
        color: #171717 !important;
        margin-bottom: 10px !important;
      }

      #editorModal[data-mobile-tab="link"] #pane-publish input[type="text"] {
        width: 100% !important;
        box-sizing: border-box !important;
        height: 42px !important;
        font-size: 14px !important;
        border: 1px solid #dcd7e7 !important;
        border-radius: 9px !important;
        padding: 0 12px !important;
        background: #ffffff !important;
      }

      /* Big Action Button in Link Tab */
      .mobile-publish-action {
        width: 100% !important;
        height: 46px !important;
        border-radius: 12px !important;
        background: #5c3bdf !important;
        color: #ffffff !important;
        border: 0 !important;
        font-size: 14px !important;
        font-weight: 750 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 14px !important;
        box-shadow: 0 4px 14px rgba(92, 59, 223, 0.35) !important;
        cursor: pointer !important;
      }

      .mobile-publish-action:active {
        transform: scale(0.98) !important;
        background: #4b2ac9 !important;
      }

      /* Design Workspace Panels on Mobile */
      #editorModal .builder-shell.design-workspace .design-studio.open {
        grid-template-columns: 1fr !important;
        padding: 0 !important;
        gap: 12px !important;
      }

      #editorModal .builder-shell.design-workspace .design-category-nav {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x pan-y !important;
        gap: 6px !important;
        padding: 4px 0 10px !important;
        width: 100% !important;
        border-bottom: 1px solid #ebe8f0 !important;
        position: static !important;
        white-space: nowrap !important;
      }

      #editorModal .builder-shell.design-workspace .design-cat {
        width: auto !important;
        white-space: nowrap !important;
        padding: 6px 14px !important;
        height: 32px !important;
        border-radius: 16px !important;
        font-size: 11.5px !important;
        font-weight: 600 !important;
      }

      #editorModal .builder-shell.design-workspace .design-panel {
        grid-column: 1 !important;
        width: 100% !important;
      }

      #editorModal .builder-shell.design-workspace .design-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
      }

      #editorModal .builder-shell.design-workspace [data-design-panel="background"] .design-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      }

      #editorModal .builder-shell.design-workspace .shape-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      }

      #editorModal .semantic-color-grid {
        grid-template-columns: 1fr !important;
      }

      /* ==========================================================
     FULLSCREEN PREVIEW OVERLAY ON MOBILE (Screen 4 Fix)
     ========================================================== */
      #editorModal.mobile-fullscreen-preview .editorhead {
        display: none !important;
      }

      #editorModal.mobile-fullscreen-preview .mobile-segment-tabs {
        display: none !important;
      }

      #editorModal.mobile-fullscreen-preview .builder-inspector {
        display: none !important;
      }

      #editorModal.mobile-fullscreen-preview .editorfoot {
        display: none !important;
      }

      #editorModal.mobile-fullscreen-preview .builder-stage,
      #editorModal.mobile-fullscreen-preview .builder-shell.design-workspace .builder-stage {
        position: fixed !important;
        inset: 0 !important;
        z-index: 100000 !important;
        width: 100vw !important;
        height: 100dvh !important;
        background: rgba(11, 9, 18, 0.96) !important;
        backdrop-filter: blur(20px) !important;
        padding: max(16px, env(safe-area-inset-top, 16px)) 16px max(20px, env(safe-area-inset-bottom, 20px)) !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        overflow-y: auto !important;
      }

      #editorModal.mobile-fullscreen-preview .epreview {
        width: 100% !important;
        max-width: 320px !important;
        height: 610px !important;
        max-height: calc(100dvh - 100px) !important;
        margin: 4px auto 0 !important;
        border-radius: 36px !important;
        border: 6px solid #23212b !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
        position: relative !important;
      }

      #editorModal.mobile-fullscreen-preview .mini-phone {
        height: 100% !important;
        transform: none !important;
        margin-top: 0 !important;
      }

      #editorModal.mobile-fullscreen-preview .mobile-preview-badge {
        display: none !important;
      }

      /* Dedicated Floating Header for Fullscreen Preview */
      .mobile-return-bar {
        display: none !important;
      }

      #editorModal.mobile-fullscreen-preview .mobile-return-bar {
        display: flex !important;
        width: 100% !important;
        max-width: min(340px, calc(100vw - 32px)) !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
        margin: 0 auto 12px !important;
        padding: 0 !important;
        z-index: 100002 !important;
        flex: none !important;
        box-sizing: border-box !important;
      }

      #editorModal.mobile-fullscreen-preview .btn-return-edit,
      #editorModal .mobile-return-bar .btn-return-edit,
      .btn-return-edit {
        flex: 1 1 auto !important;
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        color: #121018 !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 0 16px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        transition: transform 0.12s ease, background 0.12s ease !important;
      }

      #editorModal.mobile-fullscreen-preview .btn-return-edit svg,
      #editorModal .mobile-return-bar .btn-return-edit svg {
        display: block !important;
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        min-height: 16px !important;
        flex-shrink: 0 !important;
        color: #121018 !important;
        stroke: #121018 !important;
      }

      #editorModal.mobile-fullscreen-preview .btn-return-edit:active,
      #editorModal .mobile-return-bar .btn-return-edit:active,
      .btn-return-edit:active {
        transform: scale(0.97) !important;
        background: #f0edf8 !important;
      }

      #editorModal.mobile-fullscreen-preview .btn-close-fullscreen,
      #editorModal .mobile-return-bar .btn-close-fullscreen,
      .btn-close-fullscreen {
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        flex: 0 0 42px !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        color: #121018 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
        transition: transform 0.12s ease, background 0.12s ease !important;
      }

      #editorModal.mobile-fullscreen-preview .btn-close-fullscreen svg,
      #editorModal .mobile-return-bar .btn-close-fullscreen svg {
        display: block !important;
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
        flex-shrink: 0 !important;
        margin: auto !important;
        color: #121018 !important;
        stroke: #121018 !important;
      }

      #editorModal.mobile-fullscreen-preview .btn-close-fullscreen:active,
      #editorModal .mobile-return-bar .btn-close-fullscreen:active,
      .btn-close-fullscreen:active {
        transform: scale(0.94) !important;
        background: #f0edf8 !important;
      }

      /* Safe Area Aware Bottom Footer */
      #editorModal .editorfoot {
        height: auto !important;
        min-height: 56px !important;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 16px)) !important;
        position: sticky !important;
        bottom: 0 !important;
        background: #ffffff !important;
        border-top: 1px solid #e7e4ec !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        z-index: 100 !important;
        box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.06) !important;
        box-sizing: border-box !important;
      }

      #editorModal .editorfoot .btn {
        height: 40px !important;
        padding: 0 16px !important;
        font-size: 13px !important;
        border-radius: 9px !important;
      }

      #editorModal .builder-save-note {
        display: none !important;
      }
    }

    /* Hide mobile-only elements on desktop (> 768px) */
    @media (min-width: 769px) {

      .mobile-segment-tabs,
      .mobile-preview-badge,
      .mobile-return-bar,
      .btn-save-mobile,
      .mobile-publish-action {
        display: none !important;
      }
    }

    .field-attention {
      outline: 2px solid #ef4444 !important;
      border-color: #ef4444 !important;
      box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25) !important;
      animation: pulse-attention 0.35s ease 2 !important;
    }

    @keyframes pulse-attention {

      0%,
      100% {
        transform: scale(1);
      }

      50% {
        transform: scale(1.02);
      }
    }

    /* --- Dedicated "Наш Telegram-канал" Button & Soft Pulse Animation --- */
    @keyframes softTgPulse {

      0%,
      100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(104, 71, 238, 0.28), 0 0 0 0 rgba(104, 71, 238, 0.35);
      }

      50% {
        transform: scale(1.022);
        box-shadow: 0 3px 12px rgba(104, 71, 238, 0.38), 0 0 0 4px rgba(104, 71, 238, 0.12);
      }
    }

    .btn-tg-channel {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 7px !important;
      height: 38px !important;
      padding: 0 15px !important;
      border-radius: 8px !important;
      background: #6847ee !important;
      color: #ffffff !important;
      font-family: inherit !important;
      font-size: 13px !important;
      font-weight: 650 !important;
      line-height: 1 !important;
      text-decoration: none !important;
      white-space: nowrap !important;
      border: 1px solid rgba(255, 255, 255, 0.15) !important;
      cursor: pointer !important;
      user-select: none !important;
      box-sizing: border-box !important;
      flex-shrink: 0 !important;
      animation: softTgPulse 2.8s ease-in-out infinite !important;
      transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
    }

    .btn-tg-channel .tg-plane-icon {
      width: 15px !important;
      height: 15px !important;
      flex-shrink: 0 !important;
      fill: #ffffff !important;
      display: inline-block !important;
      vertical-align: middle !important;
      transition: transform 0.18s ease !important;
    }

    .btn-tg-channel .btn-tg-channel-text {
      display: inline-flex !important;
      align-items: center !important;
    }

    .btn-tg-channel-short {
      display: none !important;
    }

    .btn-tg-channel-full {
      display: inline !important;
    }

    .btn-tg-channel:hover {
      animation-play-state: paused !important;
      background: #5835e5 !important;
      color: #ffffff !important;
      transform: translateY(-1px) scale(1.015) !important;
      box-shadow: 0 4px 14px rgba(104, 71, 238, 0.45) !important;
    }

    .btn-tg-channel:hover .tg-plane-icon {
      transform: translate(1px, -1px);
    }

    .btn-tg-channel:active {
      transform: translateY(0) scale(0.985) !important;
    }

    /* In header navigation */
    .navact .btn-tg-channel {
      height: 38px !important;
    }

    /* In dashboard top bar */
    .topact .btn-tg-channel {
      height: 40px !important;
    }

    /* In admin header actions */
    .admin-action-btns-row .btn-tg-channel {
      height: 32px !important;
      padding: 0 11px !important;
      font-size: 12px !important;
      border-radius: 6px !important;
    }

    /* Responsive adjustments for mobile devices */
    @media (max-width: 640px) {
      .btn-tg-channel {
        height: 36px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
        gap: 5px !important;
        border-radius: 7px !important;
      }

      .btn-tg-channel .tg-plane-icon {
        width: 13.5px !important;
        height: 13.5px !important;
      }

      .topact .btn-tg-channel {
        height: 42px !important;
        border-radius: 9px !important;
        padding: 0 12px !important;
      }
    }

    @media (max-width: 480px) {
      .btn-tg-channel-full {
        display: none !important;
      }

      .btn-tg-channel-short {
        display: inline !important;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .btn-tg-channel {
        animation: none !important;
      }
    }
