:root {
      --bg-dark-1: #07080D;
      --bg-dark-2: #121622;
      --bg-dark-3: #090B11;
      --neon-sky: #38BDF8;
      --neon-white: #FFFFFF;
      --neon-pink: #F472B6;
      --wa-green: #25D366;
      --text-main: #F8FAFC;
      --text-muted: #94A3B8;
      --ios-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
      --preview-scale: 1;
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html,
    body {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
      font-size: 16px;
      -webkit-text-size-adjust: 100%;
    }

    body {
      min-height: 100vh;
      font-family: 'Poppins', sans-serif;
      font-weight: 600;
      color: var(--text-main);
      background-color: var(--bg-dark-1);
      background-image:
        radial-gradient(circle at 8% 4%, rgba(56, 189, 248, 0.2) 0%, transparent 42%),
        radial-gradient(circle at 92% 94%, rgba(244, 114, 182, 0.2) 0%, transparent 44%),
        linear-gradient(145deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 52%, var(--bg-dark-3) 100%);
      position: relative;
    }

    body.modal-open {
      overflow: hidden;
    }

    button,
    input,
    textarea,
    select,
    a {
      font-family: 'Poppins', sans-serif;
      font-weight: 600;
    }

    .metallic-sheen {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background:
        linear-gradient(125deg, rgba(255, 255, 255, 0.035) 0%, transparent 30%, rgba(255, 255, 255, 0.02) 52%, transparent 75%, rgba(255, 255, 255, 0.03) 100%);
    }

    .ambient-particles {
      position: fixed;
      inset: 0;
      z-index: 0;
      overflow: hidden;
      pointer-events: none;
    }

    .particle {
      position: absolute;
      left: var(--x);
      bottom: -12px;
      width: var(--size);
      height: var(--size);
      border-radius: 50%;
      opacity: 0;
      will-change: transform, opacity;
      animation: floatDot var(--dur) linear infinite;
      animation-delay: var(--delay);
    }

    .p-sky { background: var(--neon-sky); }
    .p-pink { background: var(--neon-pink); }
    .p-white { background: var(--neon-white); }

    @keyframes floatDot {
      0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
      }
      15% {
        opacity: 0.65;
      }
      85% {
        opacity: 0.55;
      }
      100% {
        transform: translate3d(0, -104vh, 0);
        opacity: 0;
      }
    }

    @keyframes twinkleSoft {
      0%, 100% {
        transform: scale(0.9);
        opacity: 0.72;
      }
      50% {
        transform: scale(1.1);
        opacity: 1;
      }
    }

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

    @keyframes modalPopIn {
      from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    /* =========================================================
       WELCOME WARNING MODAL (100% FREE BY LYSOOS)
       ========================================================= */
    .welcome-overlay {
      position: fixed;
      inset: 0;
      z-index: 999;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      background: rgba(5, 7, 13, 0.88);
      transition: opacity 0.2s ease;
    }

    .welcome-overlay.is-hidden {
      display: none;
    }

    .welcome-box {
      position: relative;
      width: 100%;
      max-width: 410px;
      max-height: 90vh;
      overflow-y: auto;
      border-radius: 24px;
      padding: 24px 18px 20px;
      background: linear-gradient(155deg, #131828 0%, #0B0E18 55%, #111624 100%);
      border: 1px solid rgba(56, 189, 248, 0.42);
      box-shadow:
        0 0 0 1px rgba(244, 114, 182, 0.22),
        0 0 24px rgba(56, 189, 248, 0.18),
        0 0 36px rgba(244, 114, 182, 0.14),
        0 24px 54px rgba(0, 0, 0, 0.78);
      text-align: center;
      animation: modalPopIn 0.24s ease-out;
    }

    .welcome-icon-ring {
      width: 56px;
      height: 56px;
      margin: 0 auto 14px;
      border-radius: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, rgba(244, 114, 182, 0.2), rgba(56, 189, 248, 0.22));
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: var(--neon-sky);
      box-shadow: 0 0 18px rgba(56, 189, 248, 0.24);
    }

    .welcome-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 12px;
      border-radius: 999px;
      font-size: 0.68rem;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: #FFFFFF;
      background: linear-gradient(95deg, rgba(244, 114, 182, 0.26), rgba(56, 189, 248, 0.26));
      border: 1px solid rgba(244, 114, 182, 0.48);
      margin-bottom: 10px;
    }

    .welcome-title {
      font-size: 1.15rem;
      line-height: 1.3;
      margin-bottom: 10px;
      background: linear-gradient(95deg, #F472B6 0%, #FFFFFF 50%, #38BDF8 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .welcome-desc {
      font-size: 0.8rem;
      line-height: 1.6;
      color: #CBD5E1;
      margin-bottom: 14px;
    }

    .welcome-desc strong {
      color: #FFFFFF;
    }

    .welcome-alert-card {
      text-align: left;
      padding: 12px 13px;
      border-radius: 14px;
      background: rgba(7, 8, 13, 0.82);
      border: 1px solid rgba(244, 114, 182, 0.28);
      margin-bottom: 16px;
      display: flex;
      flex-direction: column;
      gap: 7px;
    }

    .welcome-alert-row {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      font-size: 0.74rem;
      line-height: 1.45;
      color: #E2E8F0;
    }

    .welcome-alert-row svg {
      flex-shrink: 0;
      margin-top: 2px;
    }

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

    .wa-channel-btn {
      width: 100%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 14px;
      border-radius: 14px;
      text-decoration: none;
      font-size: 0.82rem;
      color: #051A0E;
      background: linear-gradient(95deg, #25D366 0%, #4ADE80 100%);
      border: 1px solid rgba(255, 255, 255, 0.35);
      box-shadow: 0 0 16px rgba(37, 211, 102, 0.32);
      transition: transform 0.16s ease, opacity 0.16s ease;
    }

    .wa-channel-btn:hover {
      transform: translateY(-1px);
    }

    .welcome-close-btn {
      width: 100%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 14px;
      border-radius: 14px;
      font-size: 0.82rem;
      color: #FFFFFF;
      background: linear-gradient(95deg, rgba(244, 114, 182, 0.22), rgba(56, 189, 248, 0.24));
      border: 1px solid rgba(56, 189, 248, 0.45);
      cursor: pointer;
      transition: background-color 0.16s ease, transform 0.16s ease;
    }

    .welcome-close-btn:hover {
      background: linear-gradient(95deg, rgba(244, 114, 182, 0.32), rgba(56, 189, 248, 0.34));
    }

    /* =========================================================
       MAIN SHELL & HEADER
       ========================================================= */
    .app-shell {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: 1080px;
      margin: 0 auto;
      padding: 20px 12px 42px;
    }

    .hero-header {
      text-align: center;
      margin-bottom: 22px;
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 5px 12px;
      border-radius: 999px;
      font-size: 0.72rem;
      letter-spacing: 0.03em;
      color: #E2E8F0;
      background: rgba(18, 22, 34, 0.92);
      border: 1px solid rgba(56, 189, 248, 0.38);
      box-shadow: 0 0 12px rgba(56, 189, 248, 0.16);
      margin-bottom: 12px;
      max-width: 100%;
    }

    .hero-title-container {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      max-width: calc(100% - 12px);
      padding: 8px 16px;
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.16);
      background: linear-gradient(135deg, rgba(244, 114, 182, 0.1), rgba(18, 22, 34, 0.85), rgba(56, 189, 248, 0.1));
      box-shadow:
        0 0 8px rgba(244, 114, 182, 0.32),
        0 0 18px rgba(56, 189, 248, 0.26),
        0 0 30px rgba(244, 114, 182, 0.14),
        inset 0 0 12px rgba(56, 189, 248, 0.14);
      margin-bottom: 12px;
    }

    .hero-title-wrap {
      position: relative;
      display: inline-grid;
      place-items: center;
      max-width: 100%;
    }

    .hero-title-glow,
    .hero-title {
      grid-area: 1 / 1;
      font-size: clamp(1.22rem, 6vw, 2.75rem);
      line-height: 1.15;
      letter-spacing: -0.02em;
      white-space: nowrap;
    }

    .hero-title-glow {
      color: rgba(255, 255, 255, 0.12);
      user-select: none;
      pointer-events: none;
      text-shadow:
        0 0 6px rgba(255, 255, 255, 0.75),
        0 0 14px rgba(244, 114, 182, 0.75),
        0 0 26px rgba(56, 189, 248, 0.65),
        0 0 40px rgba(244, 114, 182, 0.4);
    }

    .hero-title {
      background: linear-gradient(95deg, #F472B6 0%, #FFFFFF 50%, #38BDF8 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .sparkle-ornament,
    .card-sparkle {
      position: absolute;
      pointer-events: none;
      animation: twinkleSoft 3.6s ease-in-out infinite;
    }

    .sp-header-1 { top: -10px; left: -10px; }
    .sp-header-2 { top: -7px; right: 12px; animation-delay: -1.2s; }
    .sp-header-3 { bottom: -10px; right: -10px; animation-delay: -2.2s; }
    .sp-card-tr { top: 12px; right: 12px; }
    .sp-card-bl { bottom: 12px; left: 12px; animation-delay: -1.6s; }
    .sp-preview-tl { top: 10px; left: 10px; animation-delay: -0.8s; }
    .sp-preview-br { bottom: 10px; right: 10px; animation-delay: -2s; }

    .hero-subtitle {
      max-width: 520px;
      font-size: 0.82rem;
      line-height: 1.5;
      color: var(--text-muted);
      padding: 0 6px;
    }

    .workspace-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 18px;
      align-items: start;
      width: 100%;
    }

    .controls-column,
    .preview-column {
      min-width: 0;
      width: 100%;
    }

    .glass-card {
      position: relative;
      width: 100%;
      min-width: 0;
      background: linear-gradient(160deg, rgba(20, 25, 40, 0.94) 0%, rgba(11, 14, 24, 0.96) 100%);
      border-radius: 22px;
      padding: 18px 14px;
      border: 1px solid rgba(56, 189, 248, 0.28);
      box-shadow:
        0 0 0 1px rgba(244, 114, 182, 0.14),
        0 14px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .step-block {
      display: flex;
      flex-direction: column;
      gap: 12px;
      min-width: 0;
    }

    .step-header {
      display: flex;
      flex-direction: column;
      gap: 7px;
      min-width: 0;
    }

    .step-header-left {
      display: flex;
      flex-direction: column;
      gap: 7px;
      min-width: 0;
    }

    .preview-header-row {
      flex-direction: row;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 14px;
    }

    .step-pill {
      align-self: flex-start;
      font-size: 0.68rem;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      padding: 3px 10px;
      border-radius: 999px;
      color: #FFFFFF;
      background: linear-gradient(95deg, rgba(244, 114, 182, 0.24), rgba(56, 189, 248, 0.24));
      border: 1px solid rgba(244, 114, 182, 0.45);
    }

    .step-heading {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .step-heading h2 {
      font-size: 0.98rem;
      color: #FFFFFF;
      line-height: 1.25;
    }

    .step-icon {
      color: var(--neon-sky);
      flex-shrink: 0;
      display: block;
    }

    .card-divider {
      height: 1px;
      margin: 18px 0;
      background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.32), rgba(244, 114, 182, 0.32), transparent);
    }

    .field-group {
      display: flex;
      flex-direction: column;
      gap: 7px;
      min-width: 0;
      width: 100%;
    }

    .field-group label {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.8rem;
      color: #CBD5E1;
    }

    .inline-label-icon {
      color: var(--neon-pink);
      flex-shrink: 0;
      display: block;
    }

    .label-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      min-width: 0;
    }

    .char-counter,
    .battery-readout {
      font-size: 0.74rem;
      color: var(--neon-sky);
      flex-shrink: 0;
    }

    .neon-textarea,
    .neon-input {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      color: #FFFFFF;
      font-size: 0.88rem;
      background: rgba(7, 8, 13, 0.88);
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 13px;
      padding: 11px 12px;
      outline: none;
      transition: border-color 0.18s ease, box-shadow 0.18s ease;
      color-scheme: dark;
    }

    .neon-textarea {
      resize: vertical;
      min-height: 98px;
      line-height: 1.5;
    }

    .neon-textarea:focus,
    .neon-input:focus {
      border-color: var(--neon-sky);
      box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.22);
    }

    .mode-switch-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      width: 100%;
    }

    .mode-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      width: 100%;
      min-width: 0;
      padding: 10px 8px;
      border-radius: 12px;
      font-size: 0.78rem;
      color: #CBD5E1;
      background: rgba(7, 8, 13, 0.85);
      border: 1px solid rgba(255, 255, 255, 0.13);
      cursor: pointer;
      transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
    }

    .mode-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .mode-dot-in { background: #334652; border: 1px solid #94A3B8; }
    .mode-dot-out { background: #00A884; border: 1px solid #5EEAD4; }

    .mode-btn.is-active {
      color: #FFFFFF;
      border-color: var(--neon-sky);
      background: linear-gradient(120deg, rgba(244, 114, 182, 0.18), rgba(56, 189, 248, 0.2));
      box-shadow: 0 0 12px rgba(56, 189, 248, 0.18);
    }

    .two-col-fields {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 12px;
      width: 100%;
    }

    .battery-control-row {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      min-width: 0;
    }

    .neon-slider {
      flex: 1;
      min-width: 0;
      -webkit-appearance: none;
      appearance: none;
      height: 7px;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--neon-pink), var(--neon-sky));
      outline: none;
      cursor: pointer;
    }

    .neon-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: #FFFFFF;
      border: 2px solid var(--neon-sky);
      box-shadow: 0 0 8px rgba(56, 189, 248, 0.65);
      cursor: pointer;
    }

    .neon-slider::-moz-range-thumb {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: #FFFFFF;
      border: 2px solid var(--neon-sky);
      box-shadow: 0 0 8px rgba(56, 189, 248, 0.65);
      cursor: pointer;
    }

    .battery-num-input {
      width: 66px;
      flex-shrink: 0;
      text-align: center;
      padding: 9px 6px;
    }

    .wallpaper-actions-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      width: 100%;
    }

    .file-input-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      opacity: 0;
      overflow: hidden;
      pointer-events: none;
    }

    .upload-btn {
      flex: 1 1 150px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      padding: 10px 12px;
      border-radius: 12px;
      font-size: 0.78rem;
      color: #FFFFFF;
      background: rgba(56, 189, 248, 0.14);
      border: 1px solid rgba(56, 189, 248, 0.42);
      cursor: pointer;
      transition: background-color 0.18s ease, border-color 0.18s ease;
    }

    .upload-btn:hover {
      background: rgba(56, 189, 248, 0.22);
    }

    .reset-wp-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 10px 12px;
      border-radius: 12px;
      font-size: 0.76rem;
      color: #F472B6;
      background: rgba(244, 114, 182, 0.12);
      border: 1px solid rgba(244, 114, 182, 0.38);
      cursor: pointer;
    }

    .reset-wp-btn[hidden] {
      display: none;
    }

    .wallpaper-meta-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
    }

    .wallpaper-name {
      font-size: 0.72rem;
      color: var(--text-muted);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: 190px;
    }

    .blur-toggle-label {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-size: 0.75rem;
      color: #E2E8F0;
      cursor: pointer;
      user-select: none;
    }

    .blur-checkbox {
      width: 16px;
      height: 16px;
      accent-color: var(--neon-sky);
      cursor: pointer;
    }

    .live-indicator {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.68rem;
      color: #E2E8F0;
      padding: 4px 9px;
      border-radius: 999px;
      background: rgba(7, 8, 13, 0.85);
      border: 1px solid rgba(56, 189, 248, 0.35);
      white-space: nowrap;
      flex-shrink: 0;
    }

    .live-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--neon-sky);
    }

    /* =========================================================
       PREVIEW STAGE (ZERO OVERFLOW GUARANTEED ON ALL SCREENS)
       ========================================================= */
    .phone-stage-outer {
      position: relative;
      width: 100%;
      overflow: hidden;
      margin: 0 auto;
    }

    .phone-bezel-shell {
      position: absolute;
      top: 0;
      left: 50%;
      width: 390px;
      height: 826px;
      border-radius: 38px;
      padding: 8px;
      background: linear-gradient(155deg, rgba(255, 255, 255, 0.22), rgba(56, 189, 248, 0.28), rgba(244, 114, 182, 0.28), rgba(15, 23, 42, 0.92));
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
      transform-origin: top center;
      transform: translateX(-50%) scale(var(--preview-scale));
      will-change: transform;
    }

    /* =========================================================
       IPHONE SCREENSHOT CANVAS (STRICT IOS FONT & 9:19.5 RATIO)
       ========================================================= */
    .iphone-canvas {
      position: relative;
      width: 374px;
      height: 810px;
      border-radius: 30px;
      overflow: hidden;
      background-color: #0B141A;
      font-family: var(--ios-font);
      font-weight: 400;
      color: #FFFFFF;
      -webkit-font-smoothing: antialiased;
      user-select: none;
      contain: layout paint;
    }

    .iphone-canvas * {
      font-family: var(--ios-font);
    }

    .wa-bg-image {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      z-index: 1;
      pointer-events: none;
    }

    .ios-status-bar {
      position: relative;
      z-index: 4;
      height: 50px;
      padding: 14px 22px 0 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .ios-time {
      font-size: 15.5px;
      font-weight: 600;
      letter-spacing: -0.35px;
      color: #FFFFFF;
    }

    .ios-status-right {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .ios-signal-svg,
    .ios-wifi-svg,
    .ios-battery-svg {
      display: block;
      flex-shrink: 0;
    }

    .ios-battery-group {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .ios-battery-pct {
      font-size: 12px;
      font-weight: 600;
      letter-spacing: -0.2px;
      color: rgba(255, 255, 255, 0.94);
    }

    .wa-quoted-stage {
      position: relative;
      z-index: 3;
      height: calc(100% - 76px);
      padding: 16px 18px 20px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .wa-focus-stack {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      width: 100%;
    }

    .wa-focus-stack.is-outgoing {
      align-items: flex-end;
    }

    .wa-reaction-bar {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background-color: #26272B;
      border-radius: 999px;
      padding: 7px 10px 7px 12px;
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
      max-width: 100%;
    }

    .wa-emoji {
      font-size: 21px;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 27px;
      height: 27px;
    }

    .wa-reaction-plus {
      width: 27px;
      height: 27px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.14);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .wa-main-bubble {
      position: relative;
      background-color: #202C33;
      border-radius: 14px;
      padding: 10px 13px 9px 13px;
      max-width: 88%;
      min-width: 132px;
      box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
      text-align: left;
      line-height: 1.36;
    }

    .wa-focus-stack.is-outgoing .wa-main-bubble {
      background-color: #005C4B;
    }

    .wa-bubble-text {
      color: #FFFFFF;
      font-size: 16px;
      font-weight: 400;
      white-space: pre-wrap;
      word-break: break-word;
    }

    .wa-bubble-spacer {
      display: inline-block;
      width: 46px;
      height: 1px;
    }

    .wa-focus-stack.is-outgoing .wa-bubble-spacer {
      width: 66px;
    }

    .wa-bubble-meta {
      position: absolute;
      right: 11px;
      bottom: 7px;
      display: inline-flex;
      align-items: center;
      gap: 3px;
    }

    .wa-bubble-time {
      font-size: 11.5px;
      font-weight: 400;
      color: #8696A0;
      letter-spacing: 0.01em;
    }

    .wa-focus-stack.is-outgoing .wa-bubble-time {
      color: #A2C7BF;
    }

    .wa-read-tick {
      display: none;
      flex-shrink: 0;
    }

    .wa-focus-stack.is-outgoing .wa-read-tick {
      display: block;
    }

    .wa-context-menu {
      width: 248px;
      background-color: #1F2226;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
    }

    .wa-menu-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 11px 16px;
      color: #FFFFFF;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .wa-menu-item:last-child {
      border-bottom: none;
    }

    .wa-menu-label {
      font-size: 16px;
      font-weight: 400;
      letter-spacing: -0.15px;
      text-align: left;
    }

    .wa-menu-icon {
      display: block;
      flex-shrink: 0;
      color: #FFFFFF;
    }

    .wa-menu-delete .wa-menu-label {
      color: #EF4444;
    }

    .wa-menu-delete .wa-menu-icon {
      color: #EF4444;
    }

    .ios-home-indicator {
      position: absolute;
      bottom: 8px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 4;
      width: 132px;
      height: 5px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.88);
    }

    .download-action-wrap {
      margin-top: 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      width: 100%;
    }

    .neon-download-btn {
      width: 100%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      padding: 13px 16px;
      border-radius: 15px;
      border: 1px solid rgba(255, 255, 255, 0.32);
      background: linear-gradient(95deg, #F472B6 0%, #7DD3FC 52%, #38BDF8 100%);
      color: #07080D;
      font-size: 0.88rem;
      letter-spacing: 0.01em;
      cursor: pointer;
      box-shadow:
        0 0 12px rgba(244, 114, 182, 0.36),
        0 0 20px rgba(56, 189, 248, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.4);
      transition: transform 0.16s ease, opacity 0.16s ease;
    }

    .neon-download-btn:hover:not(:disabled) {
      transform: translateY(-1px);
    }

    .neon-download-btn:active:not(:disabled) {
      transform: translateY(0);
    }

    .neon-download-btn:disabled {
      opacity: 0.78;
      cursor: wait;
    }

    .btn-icon-wrap {
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .btn-spinner {
      animation: spinLoader 0.85s linear infinite;
    }

    .download-status {
      min-height: 18px;
      font-size: 0.76rem;
      color: var(--neon-sky);
      text-align: center;
    }

    .download-status.is-success { color: #4ADE80; }
    .download-status.is-error { color: #F87171; }

    /* =========================================================
       DEVELOPER & ANTI-CLAIM FOOTER
       ========================================================= */
    .dev-footer {
      margin-top: 26px;
      width: 100%;
      border-radius: 22px;
      padding: 20px 16px;
      background: linear-gradient(160deg, rgba(18, 22, 36, 0.94) 0%, rgba(9, 11, 18, 0.98) 100%);
      border: 1px solid rgba(56, 189, 248, 0.25);
      box-shadow:
        0 0 0 1px rgba(244, 114, 182, 0.12),
        0 12px 28px rgba(0, 0, 0, 0.48);
    }

    .dev-footer-top {
      display: flex;
      flex-direction: column;
      gap: 14px;
      padding-bottom: 16px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .dev-brand-block {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .dev-brand-title {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 0.95rem;
      color: #FFFFFF;
    }

    .dev-brand-gradient {
      background: linear-gradient(95deg, #F472B6 0%, #FFFFFF 50%, #38BDF8 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .dev-brand-note {
      font-size: 0.75rem;
      line-height: 1.55;
      color: var(--text-muted);
    }

    .dev-meta-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .dev-meta-item {
      padding: 10px 11px;
      border-radius: 13px;
      background: rgba(7, 8, 13, 0.78);
      border: 1px solid rgba(255, 255, 255, 0.08);
      display: flex;
      flex-direction: column;
      gap: 3px;
      min-width: 0;
    }

    .dev-meta-label {
      font-size: 0.65rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-muted);
    }

    .dev-meta-value {
      font-size: 0.76rem;
      color: #FFFFFF;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .dev-meta-value.is-sky { color: var(--neon-sky); }
    .dev-meta-value.is-pink { color: var(--neon-pink); }

    .dev-footer-actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 9px;
      margin-top: 14px;
    }

    .footer-wa-link {
      flex: 1 1 210px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 12px;
      text-decoration: none;
      font-size: 0.78rem;
      color: #4ADE80;
      background: rgba(37, 211, 102, 0.12);
      border: 1px solid rgba(37, 211, 102, 0.36);
    }

    .footer-notice-btn {
      flex: 1 1 150px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      padding: 10px 14px;
      border-radius: 12px;
      font-size: 0.76rem;
      color: #E2E8F0;
      background: rgba(56, 189, 248, 0.1);
      border: 1px solid rgba(56, 189, 248, 0.32);
      cursor: pointer;
    }

    .dev-copyright-bar {
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid rgba(255, 255, 255, 0.07);
      display: flex;
      flex-direction: column;
      gap: 4px;
      text-align: center;
      font-size: 0.7rem;
      color: #64748B;
    }

    .dev-anti-theft {
      color: #94A3B8;
      font-size: 0.71rem;
    }

    @media (min-width: 560px) {
      .app-shell {
        padding: 28px 22px 52px;
      }

      .hero-title-container {
        padding: 10px 26px;
      }

      .glass-card,
      .dev-footer {
        padding: 24px 22px;
      }

      .two-col-fields {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
        gap: 14px;
      }

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

    @media (min-width: 920px) {
      .workspace-grid {
        grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
        gap: 26px;
      }

      .preview-column {
        position: sticky;
        top: 20px;
      }

      .dev-copyright-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .particle,
      .sparkle-ornament,
      .card-sparkle,
      .welcome-box {
        animation: none;
      }
    }
