      :root {
        color-scheme: light !important;
      }
      html,
      body {
        color-scheme: light !important;
        background: #f2f2f7 !important;
        color: #000 !important;
      }
      * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        -webkit-tap-highlight-color: transparent;
      }
      body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        min-height: 100vh;
      }
      @media (prefers-color-scheme: dark) {
        html:not(.has-wallpaper),
        body:not(.has-wallpaper) {
          background: #181a1b !important;
          color: #e8e6e3 !important;
        }
      }
      #main-screen:not(.has-wallpaper) {
        background-color: #f2f2f7 !important;
      }
      /* Auth */
      #auth-screen {
        display: none;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 24px;
        background: rgba(15, 17, 21, 0.72);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
      }
      .auth-card {
        background: #fff;
        border-radius: 20px;
        padding: 32px 24px;
        width: 100%;
        max-width: 380px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
      }
      .auth-logo {
        text-align: center;
        margin-bottom: 24px;
      }
      .auth-logo span {
        font-size: 28px;
        font-weight: 800;
        
      }
      .auth-logo small {
        display: block;
        color: #8e8e93;
        font-size: 13px;
        margin-top: 4px;
      }
      .auth-tabs {
        display: flex;
        background: #f2f2f7;
        border-radius: 10px;
        padding: 3px;
        margin-bottom: 24px;
      }
      .auth-tab {
        flex: 1;
        text-align: center;
        padding: 8px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        color: #8e8e93;
        border: none;
        background: none;
      }
      .auth-tab.active {
        background: #fff;
        
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
      }
      .form-field {
        margin-bottom: 14px;
      }
      .form-field label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: #3c3c43;
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
      }
      .form-field input {
        width: 100%;
        padding: 12px 14px;
        border: 1.5px solid #e5e5ea;
        border-radius: 10px;
        font-size: 16px;
        outline: none;
        transition: 0.2s;
      }
      .form-field input:focus {
        border-color: #007aff;
      }
      .auth-btn {
        width: 100%;
        padding: 14px;
        background: #007aff;
        color: #fff;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        margin-top: 8px;
      }
      .auth-btn:active {
        opacity: 0.8;
      }
      .auth-error {
        color: #ff3b30;
        font-size: 13px;
        text-align: center;
        margin-top: 10px;
        min-height: 18px;
      }
      /* Main */
      #main-screen {
        display: none;
        background: #f2f2f7;
        min-height: 100vh;
        padding-bottom: 80px;
      }
      #main-screen.has-wallpaper,
      body.dark #main-screen.has-wallpaper {
        background-color: transparent !important;
        background-size: cover !important;
        background-position: center !important;
        background-attachment: fixed !important;
        background-repeat: no-repeat !important;
      }

      /* Mobile Context Menu */
      .mobile-context-menu {
        position: fixed;
        display: none;
        z-index: 999999;
        width: 220px;
        background: rgba(24, 25, 33, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 14px;
        box-shadow: 0 10px 45px rgba(0, 0, 0, 0.35);
        padding: 6px 0;
        border: 1px solid rgba(255, 255, 255, 0.08);
        user-select: none;
        animation: popContextMenu 0.12s cubic-bezier(0.1, 0.9, 0.2, 1);
        transform-origin: top left;
      }
      @keyframes popContextMenu {
        from {
          transform: scale(0.92);
          opacity: 0;
        }
        to {
          transform: scale(1);
          opacity: 1;
        }
      }
      .context-menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999998;
        display: none;
        background: transparent;
      }
      .context-menu-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 16px;
        font-size: 14px;
        font-weight: 600;
        color: #fff;
        cursor: pointer;
        transition: background 0.1s;
      }
      .context-menu-item:active {
        background: rgba(255, 255, 255, 0.12);
      }
      .context-menu-divider {
        height: 1px;
        background: rgba(255, 255, 255, 0.08);
        margin: 5px 0;
      }
      .context-menu-item-icon {
        font-size: 16px;
        width: 20px;
        text-align: center;
      }

      /* Edit Mode */
      .edit-mode-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e5e5ea;
        padding: 12px 16px;
        display: none;
        align-items: center;
        justify-content: space-between;
        z-index: 200;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        gap: 12px;
      }
      .edit-mode-bar.active {
        display: flex;
      }
      .edit-mode-bar-info {
        font-size: 14px;
        font-weight: 700;
        color: #3c3c43;
        flex: 1;
        text-align: center;
      }
      .edit-mode-btn-cancel {
        padding: 10px 18px;
        background: #f2f2f7;
        color: #3c3c43;
        border: none;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        flex-shrink: 0;
      }
      .edit-mode-btn-save {
        padding: 10px 18px;
        background: #007aff;
        color: #fff;
        border: none;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        flex-shrink: 0;
      }
      .bm-card {
        position: relative;
      }
      .bm-card-checkbox {
        position: absolute;
        top: 8px;
        left: 8px;
        z-index: 10;
        width: 24px;
        height: 24px;
        background: #fff;
        border: 2px solid #c7c7cc;
        border-radius: 50%;
        display: none;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.15s;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
      }
      .bm-card-checkbox.visible {
        display: flex;
      }
      .bm-card-checkbox.checked {
        background: #007aff;
        border-color: #007aff;
      }
      .bm-card-checkbox.checked::after {
        content: "✓";
        color: #fff;
        font-size: 12px;
        font-weight: 900;
      }
      .bm-card.edit-selected {
        box-shadow:
          0 0 0 3px #007aff,
          0 1px 3px rgba(0, 0, 0, 0.08) !important;
      }
      .context-menu-item.disabled {
        opacity: 0.4;
        pointer-events: none;
      }

      .mob-header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: #fff;
        border-bottom: 1px solid #e5e5ea;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
      .mob-header-title {
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        user-select: none;
        margin-left: 8px;
        margin-right: auto;
        min-width: 0;
      }
      .mob-header-title span {
        font-size: 24px;
        font-weight: 800;
        
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .mob-header-title svg {
        color: #007aff;
      }
      .mob-header-actions {
        display: flex;
        gap: 8px;
      }
      .mob-icon-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: #f2f2f7;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: #3c3c43;
      }
      /* Slide-Out Left Sidebar */
      #mob-left-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 76px;
        background: #f8f9fa;
        border-right: 1px solid #e5e5ea;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 12px 0;
        overflow-y: auto;
      }
      #mob-left-sidebar.open {
        transform: translateX(0);
      }
      #main-screen {
        transition: padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      }
      body.sidebar-open #main-screen {
        padding-left: 76px;
      }
      .bottom-dock {
        transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      }
      body.sidebar-open .bottom-dock {
        left: 76px !important;
      }
      .sidebar-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
        border-radius: 12px;
        cursor: pointer;
        color: #636366;
        gap: 4px;
        transition: background 0.2s, color 0.2s;
        user-select: none;
      }
      .sidebar-nav-item i {
        font-size: 22px;
      }
      .sidebar-nav-item span {
        font-size: 11px;
        font-weight: 600;
      }
      .sidebar-nav-item.active {
        color: #007aff;
        background: rgba(0, 122, 255, 0.1);
      }
      #mob-sidebar-toggle {
        font-weight: 800;
        font-size: 14px;
        letter-spacing: -1px;
      }
      .sidebar-spacer {
        flex: 1;
      }
      .sidebar-divider {
        width: 44px;
        height: 1px;
        background: rgba(255,255,255,0.1);
        margin: 4px 0;
        flex-shrink: 0;
      }
      /* Grid */
      .bookmark-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: min-content !important;
        gap: 12px;
        padding: 12px;
      }
      @media (min-width: 600px) {
        .bookmark-grid {
          grid-template-columns: repeat(3, 1fr);
        }
      }
      @media (min-width: 900px) {
        .bookmark-grid {
          grid-template-columns: repeat(3, 1fr);
        }
      }
      @media (min-width: 1200px) {
        .bookmark-grid {
          grid-template-columns: repeat(4, 1fr);
        }
      }
      .bm-card {
        background: rgba(24, 24, 27, 0.75);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        overflow: hidden;
        cursor: pointer;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
        transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
      }
      .bm-card:hover {
        border-color: rgba(255, 255, 255, 0.2);
        background: rgba(30, 30, 36, 0.85);
      }
      .bm-card:active {
        transform: scale(0.97);
        transition: 0.1s;
        opacity: 0.85;
      }
      .bm-thumb {
        width: 100%;
        aspect-ratio: 1 / 1 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: rgba(15, 15, 18, 0.6);
        font-size: 36px;
        overflow: hidden;
        position: relative;
        flex-shrink: 0;
      }
      .bm-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      .bm-thumb .smm-badge {
        position: absolute;
        top: 6px;
        right: 6px;
        background: #007aff;
        color: #fff;
        font-size: 9px;
        font-weight: 800;
        padding: 2px 5px;
        border-radius: 4px;
        text-transform: uppercase;
      }
      .bm-info {
        padding: 8px 10px 10px;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        flex-grow: 1 !important;
        background: transparent;
      }
      .bm-name {
        font-size: 11px !important;
        font-weight: 600;
        color: #f1f5f9;
        line-height: 1.2;
        margin-bottom: 3px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      .bm-date {
        font-size: 10px !important;
        color: #94a3b8;
      }
      /* Bottom sheet */
      .sheet-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 400;
        display: none;
        opacity: 0;
        transition: 0.25s;
      }
      .sheet-backdrop.open {
        display: block;
        opacity: 1;
      }
      .bottom-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-radius: 20px 20px 0 0;
        z-index: 401;
        transform: translateY(100%);
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: 80vh;
        overflow-y: auto;
      }
      .bottom-sheet.open {
        transform: translateY(0);
      }
      .sheet-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid #f2f2f7;
        position: sticky;
        top: 0;
        background: #fff;
      }
      .sheet-header h3 {
        font-size: 18px;
        font-weight: 700;
      }
      .sheet-close {
        background: none;
        border: none;
        font-size: 22px;
        color: #8e8e93;
        cursor: pointer;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .sheet-item {
        padding: 14px 20px;
        font-size: 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #f2f2f7;
      }
      .sheet-item:active {
        background: #f2f2f7;
      }
      .sheet-item.active-tab {
        color: #007aff;
        font-weight: 600;
      }
      /* Order modal */
      .modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.75);
        z-index: 300;
        display: none;
        align-items: flex-end;
        justify-content: center;
      }
      .modal-overlay.open {
        display: flex;
      }
      .order-modal {
        background: #1a1d2e;
        border-radius: 20px 20px 0 0;
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        padding-bottom: env(safe-area-inset-bottom, 16px);
      }
      .order-modal-header {
        padding: 20px 20px 12px;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
      }
      .order-modal-title {
        font-size: 16px;
        font-weight: 700;
        color: #fff;
        line-height: 1.3;
        flex: 1;
      }
      .order-modal-sub {
        font-size: 12px;
        color: #8b949e;
        margin-top: 4px;
      }
      .order-modal-close {
        background: none;
        border: none;
        color: #8b949e;
        font-size: 24px;
        cursor: pointer;
        flex-shrink: 0;
        line-height: 1;
      }
      .order-modal-body {
        padding: 0 20px 20px;
      }
      .o-label {
        font-size: 12px;
        font-weight: 600;
        color: #8b949e;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 6px;
        margin-top: 16px;
      }
      .o-input {
        width: 100%;
        padding: 12px 14px;
        background: #0d1117;
        border: 1.5px solid #30363d;
        border-radius: 10px;
        color: #fff;
        font-size: 15px;
        outline: none;
      }
      .o-input:focus {
        border-color: #58a6ff;
      }
      .o-input.input-valid {
        border-color: #2ea043 !important;
        box-shadow: 0 0 0 1px rgba(46, 160, 67, 0.25);
      }
      .o-input.input-invalid {
        border-color: #f85149 !important;
        box-shadow: 0 0 0 1px rgba(248, 81, 73, 0.25);
      }
      .post-preview-card {
        background: #141620;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 10px 12px;
        margin-top: 8px;
        display: flex;
        gap: 12px;
        align-items: center;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        word-break: break-word;
        overflow-wrap: anywhere;
      }
      .post-preview-card .preview-thumb {
        width: 60px;
        height: 60px;
        border-radius: 8px;
        object-fit: cover;
        background: #1c1e29;
        flex-shrink: 0;
        border: 1px solid rgba(255, 255, 255, 0.15);
      }
      .post-preview-card .preview-details {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        word-break: break-word;
        overflow-wrap: anywhere;
      }
      .post-preview-card .preview-title {
        font-size: 13px;
        color: #ffffff;
        font-weight: 700;
        line-height: 1.35;
        max-height: 2.7em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        word-break: break-word;
        overflow-wrap: anywhere;
        margin-bottom: 3px;
      }
      .post-preview-card .preview-author {
        color: #fe2c55;
        font-weight: 600;
        font-size: 12px;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        gap: 5px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .post-preview-card .preview-stats {
        display: flex;
        gap: 12px;
        font-size: 11px;
        color: #ffffff;
        flex-wrap: wrap;
      }
      .post-preview-card .preview-stat-item {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #ffffff;
        font-weight: 600;
      }
      .post-preview-card .preview-stat-item i {
        color: #ffffff;
      }
      .o-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
      }
      .o-select {
        width: 100%;
        padding: 12px 14px;
        background: #0d1117;
        border: 1.5px solid #30363d;
        border-radius: 10px;
        color: #fff;
        font-size: 15px;
        outline: none;
        appearance: none;
      }
      .cost-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-top: 1px solid #30363d;
        padding: 16px 20px;
        gap: 10px;
        margin-top: 16px;
      }
      .cost-cell {
        text-align: center;
      }
      .cost-label {
        font-size: 11px;
        color: #8b949e;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 4px;
      }
      .cost-value {
        font-size: 22px;
        font-weight: 700;
        color: #58a6ff;
      }
      .cost-value.green {
        color: #3fb950;
      }
      .order-footer {
        display: flex;
        gap: 10px;
        padding: 12px 20px;
        border-top: 1px solid #30363d;
      }
      .btn-cancel {
        flex: 1;
        padding: 13px;
        background: rgba(255, 255, 255, 0.07);
        color: #fff;
        border: 1px solid #30363d;
        border-radius: 10px;
        font-size: 15px;
        cursor: pointer;
        font-weight: 600;
      }
      .btn-place {
        flex: 2;
        padding: 13px;
        background: #238636;
        color: #fff;
        border: none;
        border-radius: 10px;
        font-size: 15px;
        cursor: pointer;
        font-weight: 700;
      }
      .btn-place:disabled {
        background: #4a4a5a;
        cursor: not-allowed;
        opacity: 0.6;
      }
      /* Add type modal */
      .type-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
        padding: 16px 20px;
      }
      .type-card {
        background: rgba(255, 255, 255, 0.04);
        border: 1.5px solid #30363d;
        border-radius: 14px;
        padding: 14px 8px;
        text-align: center;
        cursor: pointer;
      }
      .type-card:active {
        background: rgba(88, 101, 242, 0.15);
        border-color: #5865f2;
      }
      .type-card-icon {
        font-size: 26px;
        margin-bottom: 8px;
      }
      .type-card-name {
        font-size: 11px;
        font-weight: 700;
        color: #fff;
        line-height: 1.3;
      }
      .type-card-desc {
        font-size: 10px;
        color: #8b949e;
        margin-top: 3px;
        line-height: 1.3;
      }
      /* SMM config modal (light sheet) */
      .light-modal {
        background: #fff;
        border-radius: 20px 20px 0 0;
        width: 100%;
        max-height: 92vh;
        overflow-y: auto;
        padding-bottom: env(safe-area-inset-bottom, 16px);
      }
      .light-modal-header {
        padding: 20px 20px 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #f2f2f7;
      }
      .light-modal-title {
        font-size: 18px;
        font-weight: 700;
        
      }
      .light-modal-close {
        background: none;
        border: none;
        font-size: 24px;
        color: #8e8e93;
        cursor: pointer;
      }
      .light-modal-body {
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 16px;
      }
      .lm-label {
        font-size: 12px;
        font-weight: 600;
        color: #3c3c43;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 6px;
      }
      .lm-input,
      .lm-select {
        width: 100%;
        padding: 12px 14px;
        border: 1.5px solid #e5e5ea;
        border-radius: 10px;
        font-size: 15px;
        outline: none;
        
        background: #fff;
        appearance: none;
      }
      .lm-input:focus,
      .lm-select:focus {
        border-color: #007aff;
      }
      .lm-divider {
        text-align: center;
        font-size: 12px;
        font-weight: 700;
        color: #8e8e93;
        letter-spacing: 0.06em;
        position: relative;
      }
      .lm-divider::before,
      .lm-divider::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 40%;
        height: 1px;
        background: #e5e5ea;
      }
      .lm-divider::before {
        left: 0;
      }
      .lm-divider::after {
        right: 0;
      }
      .lm-preview {
        background: #f2f2f7;
        border-radius: 10px;
        padding: 12px;
        font-size: 13px;
        color: #3c3c43;
        line-height: 1.6;
      }
      .lm-preview strong {
        
      }
      .light-modal-footer {
        padding: 12px 20px 8px;
        display: flex;
        gap: 10px;
        border-top: 1px solid #f2f2f7;
      }
      .lm-btn-cancel {
        flex: 1;
        padding: 13px;
        background: #f2f2f7;
        color: #3c3c43;
        border: none;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
      }
      .lm-btn-save {
        flex: 2;
        padding: 13px;
        background: #007aff;
        color: #fff;
        border: none;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
      }
      .lm-btn-save:disabled {
        background: #b0c8f0;
        cursor: not-allowed;
      }
      /* Loading */
      .loading-state {
        grid-column: 1 / -1 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 55vh;
        width: 100%;
        text-align: center;
        color: #8e8e93;
      }
      .spinner {
        width: 32px;
        height: 32px;
        border: 3px solid #e5e5ea;
        border-top-color: #007aff;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        margin: 0 auto 12px;
      }
      @keyframes spin {
        to {
          transform: rotate(360deg);
        }
      }
      .empty-state {
        text-align: center;
        padding: 60px 20px;
        color: #8e8e93;
        grid-column: span 2;
      }
      /* Sync banner */
      .sync-banner {
        background: #fff3cd;
        border-bottom: 1px solid #ffc107;
        padding: 10px 16px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 13px;
        color: #856404;
      }
      .sync-banner strong {
        font-weight: 700;
      }
      .sync-banner a {
        color: #007aff;
        font-weight: 600;
        text-decoration: none;
      }
      .sync-banner-close {
        margin-left: auto;
        background: none;
        border: none;
        font-size: 18px;
        cursor: pointer;
        color: #856404;
        line-height: 1;
      }

      /* Slide-down Menu Dropdown */
      .dropdown-menu {
        position: absolute;
        top: 61px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1.5px solid #e5e5ea;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        z-index: 150;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition:
          max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
          opacity 0.3s ease;
      }
      .dropdown-menu.open {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        opacity: 1;
      }
      .menu-user-row {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 16px 20px;
        font-size: 18px;
        font-weight: 700;
        color: #000000;
      }
      .menu-user-row .bolt {
        font-size: 20px;
        color: #000000;
      }
      .menu-divider {
        height: 1.5px;
        background: #e5e5ea;
        margin: 0 20px 6px;
      }
      .menu-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 20px;
        font-size: 16px;
        font-weight: 500;
        color: #000000;
        cursor: pointer;
        transition: background 0.15s ease;
      }
      .menu-item:active {
        background: #f2f2f7;
      }
      .menu-item .menu-icon {
        font-size: 18px;
        width: 24px;
        text-align: center;
      }

      /* SMM Wizard Grid and Row styles */
      .smm-wizard-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 8px 0;
      }
      .smm-platform-tile {
        border-radius: 12px;
        padding: 16px;
        color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 105px;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        transition:
          transform 0.2s ease,
          opacity 0.2s;
        border: none;
        text-align: left;
      }
      .smm-platform-tile:active {
        transform: scale(0.96);
        opacity: 0.9;
      }
      .smm-platform-tile i {
        font-size: 24px;
        opacity: 0.85;
      }
      .smm-platform-tile h3 {
        margin: 0;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.2;
      }
      .smm-platform-tile-footer {
        font-size: 11px;
        opacity: 0.75;
        font-weight: 700;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
      }
      .smm-service-row {
        background: #fff;
        border-radius: 12px;
        padding: 14px 16px;
        border: 1.5px solid #e5e5ea;
        display: flex;
        flex-direction: column;
        gap: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
      }
      .smm-service-row-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
      }
      .smm-service-row-title {
        font-size: 13px;
        font-weight: 800;
        
        line-height: 1.3;
      }
      .smm-service-row-id {
        background: #f2f2f7;
        color: #8e8e93;
        font-size: 10px;
        font-weight: 700;
        padding: 2px 6px;
        border-radius: 4px;
        flex-shrink: 0;
      }
      .smm-service-row-details {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 11px;
        color: #8e8e93;
        border-top: 1px solid #f2f2f7;
        padding-top: 8px;
        margin-top: 4px;
      }
      .smm-service-row-rate {
        font-weight: 800;
        color: #007aff;
        font-size: 13px;
      }
      .smm-service-row-btn {
        background: #007aff;
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 8px 14px;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
      }
      .smm-service-row-btn:active {
        background: #0051ba;
      }

      /* ── Notifications Modal ── */
      .notif-bell-wrap {
        position: relative;
        display: inline-flex;
      }
      .notif-badge {
        position: absolute;
        top: 4px;
        right: 4px;
        width: 9px;
        height: 9px;
        background: #ff3b30;
        border-radius: 50%;
        border: 1.5px solid #fff;
        display: none;
        pointer-events: none;
      }
      .notif-badge.visible {
        display: block;
      }
      .notif-tabs-wrap {
        display: flex;
        overflow-x: auto;
        gap: 0;
        padding: 0 12px;
        border-bottom: 1px solid #e5e5ea;
        background: #fff;
        flex-shrink: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }
      .notif-tabs-wrap::-webkit-scrollbar {
        display: none;
      }
      .notif-tab {
        flex-shrink: 0;
        padding: 11px 14px;
        background: none;
        border: none;
        border-bottom: 2.5px solid transparent;
        color: #8e8e93;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 5px;
      }
      .notif-tab.active {
        border-bottom-color: #007aff;
        color: #007aff;
      }
      .notif-split {
        flex: 1;
        display: flex;
        overflow: hidden;
        min-height: 0;
      }
      .notif-list-col {
        width: 38%;
        min-width: 0;
        border-right: 1px solid #e5e5ea;
        overflow-y: auto;
        background: #fff;
        flex-shrink: 0;
      }
      .notif-detail-col {
        flex: 1;
        min-width: 0;
        overflow-y: auto;
        background: #f2f2f7;
        display: flex;
        flex-direction: column;
      }
      .notif-item {
        padding: 12px 14px;
        border-bottom: 1px solid #f2f2f7;
        cursor: pointer;
        display: flex;
        gap: 10px;
        align-items: flex-start;
        background: #fff;
        transition: background 0.15s;
      }
      .notif-item:active {
        background: #f2f2f7;
      }
      .notif-item.unread {
        border-left: 3px solid #007aff;
        background: #f0f6ff;
      }
      .notif-item.selected {
        background: #e8f0fe !important;
        border-left: 3px solid #007aff;
      }
      .notif-item-dot {
        width: 8px;
        height: 8px;
        background: #007aff;
        border-radius: 50%;
        flex-shrink: 0;
        margin-top: 4px;
      }
      .notif-item-body {
        flex: 1;
        min-width: 0;
      }
      .notif-item-title {
        font-size: 13px;
        font-weight: 700;
        
        margin-bottom: 2px;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .notif-item-msg {
        font-size: 12px;
        color: #3c3c43;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
      }
      .notif-item-time {
        font-size: 11px;
        color: #8e8e93;
        margin-top: 4px;
      }
      .notif-detail-title {
        font-size: 15px;
        font-weight: 800;
        
        line-height: 1.3;
      }
      .notif-detail-time {
        font-size: 12px;
        color: #8e8e93;
        margin-top: 4px;
      }
      .notif-detail-msg {
        font-size: 13px;
        color: #3c3c43;
        line-height: 1.6;
      }
      .notif-detail-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }
      .notif-action-btn {
        padding: 8px 14px;
        background: #fff;
        border: 1.5px solid #e5e5ea;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        
        display: flex;
        align-items: center;
        gap: 6px;
      }
      .notif-action-btn:active {
        background: #f2f2f7;
      }
      .notif-action-btn.danger {
        background: #fff0f0;
        border-color: #ffcdd2;
        color: #ff3b30;
      }
      .notif-empty {
        text-align: center;
        padding: 48px 12px;
        color: #8e8e93;
      }

      /* ══ Dark Mode ══════════════════════════════════════════════════════════ */
      body.dark {
        color-scheme: dark !important;
      }
      html:not(.has-wallpaper):has(body.dark:not(.has-wallpaper)) {
        background: #181a1b !important;
      }
      body.dark:not(.has-wallpaper),
      body.dark #main-screen:not(.has-wallpaper) {
        background-color: #181a1b !important;
        color: #e8e6e3 !important;
      }
      body.dark.has-wallpaper,
      html.has-wallpaper {
        background-color: transparent !important;
      }
      /* Header */
      body.dark .mob-header {
        background: #1c1e1f !important;
        border-bottom-color: #2d2f30 !important;
      }
      body.dark .mob-header-title span {
        color: #e8e6e3 !important;
      }
      body.dark .mob-icon-btn {
        background: #2a2c2e !important;
        color: #e8e6e3 !important;
      }
      body.dark #mob-left-sidebar {
        background: #111213 !important;
        border-right-color: #2a2c2e !important;
      }
      body.dark .sidebar-nav-item {
        color: #8e8e93 !important;
      }
      body.dark .sidebar-nav-item.active {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.08) !important;
      }
      /* Dropdown menu */
      body.dark .dropdown-menu {
        background: #1c1e1f !important;
        border-bottom-color: #2d2f30 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
      }
      body.dark .menu-user-row,
      body.dark .menu-user-row .bolt {
        color: #e8e6e3 !important;
      }
      body.dark .menu-divider {
        background: #2d2f30 !important;
      }
      body.dark .menu-item {
        color: #e8e6e3 !important;
      }
      body.dark .menu-item:active {
        background: #2a2c2e !important;
      }
      /* Search bar */
      body.dark #search-bar {
        background: #1c1e1f !important;
        border-bottom-color: #2d2f30 !important;
      }
      body.dark #search-input {
        background: #2a2c2e !important;
        border-color: #3a3c3e !important;
        color: #e8e6e3 !important;
      }
      /* Sync banner */
      body.dark .sync-banner {
        background: #2a2000 !important;
        border-bottom-color: #4a3800 !important;
        color: #d4a800 !important;
      }
      /* Bookmark cards */
      body.dark .bm-card {
        background: #1c1e1f !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
      }
      body.dark .bm-name {
        color: #e8e6e3 !important;
      }
      body.dark .bm-date {
        color: #6e6e73 !important;
      }
      body.dark .bm-thumb:not([style*="background"]) {
        background: #111213 !important;
      }
      /* Group bottom sheet */
      body.dark .sheet-backdrop {
        background: rgba(0, 0, 0, 0.65) !important;
      }
      body.dark .bottom-sheet,
      body.dark .sheet-header {
        background: #1c1e1f !important;
      }
      body.dark .sheet-header {
        border-bottom-color: #2d2f30 !important;
      }
      body.dark .sheet-header h3 {
        color: #e8e6e3 !important;
      }
      body.dark .sheet-item {
        color: #e8e6e3 !important;
        border-bottom-color: #2d2f30 !important;
      }
      body.dark .sheet-item:active {
        background: #2a2c2e !important;
      }
      /* Light modals → dark */
      body.dark .light-modal {
        background: #1c1e1f !important;
      }
      body.dark .light-modal-header {
        background: #1c1e1f !important;
        border-bottom-color: #2d2f30 !important;
      }
      body.dark .light-modal-title {
        color: #e8e6e3 !important;
      }
      body.dark .light-modal-footer {
        border-top-color: #2d2f30 !important;
      }
      body.dark .lm-input,
      body.dark .lm-select {
        background: #2a2c2e !important;
        border-color: #3a3c3e !important;
        color: #e8e6e3 !important;
      }
      body.dark .lm-label {
        color: #8e8e93 !important;
      }
      body.dark .lm-preview {
        background: #2a2c2e !important;
        color: #a0a0a5 !important;
      }
      body.dark .lm-preview strong {
        color: #e8e6e3 !important;
      }
      body.dark .lm-btn-cancel {
        background: #2a2c2e !important;
        color: #e8e6e3 !important;
      }
      body.dark .lm-divider::before,
      body.dark .lm-divider::after {
        background: #2d2f30 !important;
      }
      /* Notifications modal */
      body.dark .notif-tabs-wrap {
        background: #1c1e1f !important;
        border-bottom-color: #2d2f30 !important;
      }
      body.dark .notif-tab {
        color: #8e8e93 !important;
      }
      body.dark .notif-tab.active {
        color: #007aff !important;
        border-bottom-color: #007aff !important;
      }
      body.dark .notif-list-col {
        background: #1c1e1f !important;
        border-right-color: #2d2f30 !important;
      }
      body.dark .notif-detail-col {
        background: #181a1b !important;
      }
      body.dark .notif-item {
        background: #1c1e1f !important;
        border-bottom-color: #2d2f30 !important;
      }
      body.dark .notif-item:active {
        background: #2a2c2e !important;
      }
      body.dark .notif-item.unread {
        background: #1a2035 !important;
      }
      body.dark .notif-item.selected {
        background: #1a2a40 !important;
      }
      body.dark .notif-item-title {
        color: #e8e6e3 !important;
      }
      body.dark .notif-item-msg {
        color: #8e8e93 !important;
      }
      body.dark .notif-detail-title {
        color: #e8e6e3 !important;
      }
      body.dark .notif-detail-msg {
        color: #a0a0a5 !important;
      }
      body.dark .notif-badge {
        border-color: #1c1e1f !important;
      }
      body.dark .notif-action-btn {
        background: #2a2c2e !important;
        border-color: #3a3c3e !important;
        color: #e8e6e3 !important;
      }
      body.dark .notif-action-btn:active {
        background: #3a3c3e !important;
      }
      body.dark .notif-action-btn.danger {
        background: #2d1a1a !important;
        border-color: #5a2a2a !important;
        color: #ff453a !important;
      }
      /* SMM service rows */
      body.dark .smm-service-row {
        background: #1c1e1f !important;
        border-color: #2d2f30 !important;
      }
      body.dark .smm-service-row-title {
        color: #e8e6e3 !important;
      }
      body.dark .smm-service-row-id {
        background: #2a2c2e !important;
        color: #8e8e93 !important;
      }
      body.dark .smm-service-row-details {
        border-top-color: #2d2f30 !important;
        color: #8e8e93 !important;
      }
      /* Inline-styled dynamic cards (order history, pages, active services, etc.) */
      body.dark [style*="background:#fff;"] {
        background: #1c1e1f !important;
      }
      body.dark [style*="background: #fff;"] {
        background: #1c1e1f !important;
      }
      body.dark [style*="background:#f2f2f7;"] {
        background: #181a1b !important;
      }
      body.dark [style*="background: #f2f2f7;"] {
        background: #181a1b !important;
      }
      body.dark [style*="background:#f9f9fb;"] {
        background: #222426 !important;
      }
      body.dark [style*="background:#f0f6ff;"] {
        background: #1a2035 !important;
      }
      body.dark [style*="background:#fff8f0;"] {
        background: #2d1f10 !important;
      }
      body.dark [style*="background:#fff0f0;"] {
        background: #2d1a1a !important;
      }
      body.dark [style*=""] {
        color: #e8e6e3 !important;
      }
      body.dark [style*=""] {
        color: #e8e6e3 !important;
      }
      body.dark [style*="color:#3c3c43;"] {
        color: #a0a0a5 !important;
      }
      body.dark [style*=""] {
        color: #e8e6e3 !important;
      }
      body.dark [style*="border:1px solid #f2f2f7;"] {
        border-color: #2d2f30 !important;
      }
      body.dark [style*="border:1.5px solid #e5e5ea;"] {
        border-color: #3a3c3e !important;
      }
      body.dark [style*="border-bottom:1px solid #f2f2f7;"] {
        border-bottom-color: #2d2f30 !important;
      }
      body.dark [style*="border-bottom:1px solid #e5e5ea;"] {
        border-bottom-color: #2d2f30 !important;
      }
      body.dark [style*="border-top:1px solid #e5e5ea;"] {
        border-top-color: #2d2f30 !important;
      }
      body.dark [style*="border-bottom: 1px solid #e5e5ea;"] {
        border-bottom-color: #2d2f30 !important;
      }
      /* Scrollable containers with bg */
      body.dark [style*="background:#f2f2f7"] {
        background: #181a1b !important;
      }

      /* Preferences Modal */
      .prefs-overlay {
        position: fixed;
        inset: 0;
        z-index: 500;
        background: #f2f2f7;
        display: flex;
        flex-direction: column;
        transform: translateY(100%);
        transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      }
      .prefs-overlay.open {
        transform: translateY(0);
      }
      .prefs-header {
        background: #fff;
        padding: 14px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #e5e5ea;
        flex-shrink: 0;
      }
      .prefs-header h2 {
        font-size: 17px;
        font-weight: 700;
        
        flex: 1;
        text-align: center;
      }
      .prefs-close-btn {
        padding: 6px 0;
        background: none;
        border: none;
        font-size: 15px;
        color: #8e8e93;
        cursor: pointer;
        font-weight: 600;
        min-width: 64px;
      }
      .prefs-save-btn-hdr {
        padding: 6px 14px;
        background: #007aff;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
      }
      .prefs-tabs {
        background: #fff;
        border-bottom: 1px solid #e5e5ea;
        display: flex;
        overflow-x: auto;
        flex-shrink: 0;
        padding: 0 8px;
        gap: 2px;
      }
      .prefs-tabs::-webkit-scrollbar {
        display: none;
      }
      .prefs-tab {
        padding: 10px 14px;
        font-size: 13px;
        font-weight: 600;
        color: #8e8e93;
        background: none;
        border: none;
        cursor: pointer;
        border-bottom: 2.5px solid transparent;
        white-space: nowrap;
        flex-shrink: 0;
        transition: 0.15s;
      }
      .prefs-tab.active {
        color: #007aff;
        border-bottom-color: #007aff;
      }
      .prefs-section {
        padding: 16px;
        display: none;
      }
      .prefs-section.active {
        display: block;
      }
      .prefs-group {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 20px;
      }
      .prefs-row {
        padding: 14px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #f2f2f7;
      }
      .prefs-row:last-child {
        border-bottom: none;
      }
      .prefs-row-label {
        font-size: 15px;
        
        font-weight: 500;
      }
      .prefs-row-sub {
        font-size: 12px;
        color: #8e8e93;
        margin-top: 2px;
      }
      .prefs-row-full {
        padding: 14px 16px;
        border-bottom: 1px solid #f2f2f7;
      }
      .prefs-row-full:last-child {
        border-bottom: none;
      }
      .prefs-section-title {
        font-size: 12px;
        font-weight: 600;
        color: #8e8e93;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin: 0 0 8px 4px;
      }
      .prefs-segment {
        display: flex;
        background: #f2f2f7;
        border-radius: 9px;
        padding: 2px;
        gap: 1px;
      }
      .prefs-seg-btn {
        flex: 1;
        padding: 7px 0;
        font-size: 13px;
        font-weight: 600;
        background: none;
        border: none;
        cursor: pointer;
        border-radius: 7px;
        color: #3c3c43;
        transition: all 0.15s;
      }
      .prefs-seg-btn.active {
        background: #fff;
        color: #007aff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
      }
      .prefs-range {
        width: 100%;
        accent-color: #007aff;
        margin: 10px 0 0;
        display: block;
      }
      .prefs-toggle {
        position: relative;
        width: 51px;
        height: 31px;
        flex-shrink: 0;
      }
      .prefs-toggle input {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
      }
      .prefs-toggle-track {
        position: absolute;
        cursor: pointer;
        inset: 0;
        background: #e5e5ea;
        border-radius: 31px;
        transition: 0.25s;
      }
      .prefs-toggle input:checked + .prefs-toggle-track {
        background: #34c759;
      }
      .prefs-toggle-track::after {
        content: "";
        position: absolute;
        left: 2px;
        top: 2px;
        width: 27px;
        height: 27px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
        transition: 0.25s;
      }
      .prefs-toggle input:checked + .prefs-toggle-track::after {
        left: 22px;
      }
      .prefs-val-badge {
        font-size: 13px;
        color: #8e8e93;
        font-weight: 500;
      }
      .prefs-url-input {
        width: 100%;
        padding: 10px 12px;
        border: 1.5px solid #e5e5ea;
        border-radius: 10px;
        font-size: 14px;
        outline: none;
        box-sizing: border-box;
        margin-top: 6px;
      }
      .prefs-action-btn {
        width: 100%;
        padding: 11px;
        border: none;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        margin-top: 8px;
      }
      body.dark .prefs-overlay {
        background: #1c1c1e;
      }
      body.dark .prefs-header {
        background: #2c2c2e;
        border-color: #3a3a3c;
      }
      body.dark .prefs-header h2 {
        color: #fff;
      }
      body.dark .prefs-tabs {
        background: #2c2c2e;
        border-color: #3a3a3c;
      }
      body.dark .prefs-tab {
        color: #8e8e93;
      }
      body.dark .prefs-tab.active {
        color: #0a84ff;
        border-bottom-color: #0a84ff;
      }
      body.dark .prefs-group {
        background: #2c2c2e;
      }
      body.dark .prefs-row {
        border-color: #3a3a3c;
      }
      body.dark .prefs-row-full {
        border-color: #3a3a3c;
      }
      body.dark .prefs-row-label {
        color: #fff;
      }
      body.dark .prefs-row-sub {
        color: #636366;
      }
      body.dark .prefs-section-title {
        color: #636366;
      }
      body.dark .prefs-segment {
        background: #3a3a3c;
      }
      body.dark .prefs-seg-btn {
        color: #ebebf5;
      }
      body.dark .prefs-seg-btn.active {
        background: #545458;
        color: #0a84ff;
      }
      body.dark .prefs-url-input {
        background: #1c1c1e;
        border-color: #3a3a3c;
        color: #fff;
      }
      /* Bottom Dock */
      .bottom-dock {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 65px;
        background: rgba(15, 17, 21, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: space-around;
        z-index: 100;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
      }
      body.dark .bottom-dock {
        background: rgba(15, 17, 21, 0.95);
      }
      .dock-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #8b949e;
        width: 60px;
        cursor: pointer;
        transition: transform 0.15s, color 0.15s;
      }
      .dock-item:active {
        transform: scale(0.92);
      }
      .dock-item.active {
        color: #fff;
      }
      .dock-item i {
        font-size: 20px;
        margin-bottom: 4px;
      }
      .dock-item span {
        font-size: 10px;
        font-weight: 500;
        text-align: center;
        line-height: 1.1;
      }
      .dock-icon-wrapper {
        position: relative;
        display: inline-block;
      }
      .dock-badge {
        position: absolute;
        top: -6px;
        right: -12px;
        background: #ff3b30;
        color: #fff;
        font-size: 10px;
        font-weight: 800;
        padding: 2px 5px;
        border-radius: 12px;
        min-width: 18px;
        text-align: center;
        border: 1.5px solid #0f1115;
      }
      /* APK Apps Grid */
      .apk-apps-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px 12px;
        padding: 24px 20px;
      }
      .apk-app-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
      }
      .apk-app-icon-wrap {
        width: 64px;
        height: 64px;
        background: #25262b;
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 26px;
        color: #d1d5db;
        margin-bottom: 8px;
        transition: transform 0.1s;
      }
      .apk-app-item:active .apk-app-icon-wrap {
        transform: scale(0.92);
      }
      .apk-app-label {
        font-size: 11px;
        color: #9ca3af;
        text-align: center;
        line-height: 1.2;
        max-width: 64px;
        word-wrap: break-word;
      }
      .apk-app-item.all-apps .apk-app-icon-wrap {
        border: 2px solid #3b82f6;
        background: rgba(59, 130, 246, 0.1);
        color: #3b82f6;
      }
      .apk-app-item.all-apps .apk-app-label {
        color: #3b82f6;
      }

      /* Reorder Modal */
      .reorder-modal {
        position: fixed;
        top: 0; left: 0; width: 100vw; height: 100vh;
        background: #0f1115;
        z-index: 1000;
        display: none;
        flex-direction: column;
      }
      .reorder-modal.open {
        display: flex;
      }
      .reorder-header {
        display: flex;
        align-items: center;
        padding: 16px 20px;
        padding-top: max(16px, env(safe-area-inset-top));
        color: #fff;
        font-size: 18px;
        font-weight: 600;
        border-bottom: 1px solid rgba(255,255,255,0.05);
      }
      .reorder-header .back-btn {
        font-size: 20px;
        margin-right: 16px;
        cursor: pointer;
      }
      .reorder-header .title { flex: 1; }
      .reorder-header .options-btn { font-size: 20px; cursor: pointer; }
      
      .reorder-scroll-area {
        flex: 1;
        overflow-y: auto;
        padding-bottom: 40px;
      }
      .reorder-section-title {
        color: #3b82f6;
        font-size: 14px;
        font-weight: 700;
        padding: 24px 20px 12px;
      }
      .reorder-list {
        padding: 0 20px;
      }
      .reorder-list-item {
        display: flex;
        align-items: center;
        padding: 14px 0;
        color: #fff;
        font-size: 15px;
        background: #0f1115;
      }
      .reorder-list-item .item-icon {
        width: 24px;
        text-align: center;
        margin-right: 16px;
        font-size: 18px;
        color: #d1d5db;
      }
      .reorder-list-item .item-label { flex: 1; }
      .reorder-list-item .action-btn {
        font-size: 20px;
        margin-right: 16px;
        cursor: pointer;
      }
      .reorder-list-item .action-btn.unpin { color: #ef4444; }
      .reorder-list-item .action-btn.pin { color: #22c55e; }
      body.dark .reorder-list-item .drag-handle {
        color: #6b7280;
        font-size: 18px;
        cursor: grab;
      }
      .sync-progress-box { background: #f2f2f7; }
      .sync-progress-text-row { color: #3c3c43; }
      .sync-progress-track { background: #e5e5ea; }
      body.dark .sync-progress-box { background: #1c1e1f !important; border: 1px solid #2a2c2e; }
      body.dark .sync-progress-text-row { color: #e8e6e3 !important; }
      body.dark .sync-progress-track { background: #2a2c2e !important; }
      
      /* Chat Screen Styles */
      #chat-screen {
        position: fixed;
        inset: 0;
        z-index: 1100;
        display: none;
        flex-direction: column;
        background-color: #1e1f22;
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      }
      #chat-screen.open {
        display: flex;
        transform: translateX(0);
      }
      .chat-main-content {
        flex: 1;
        display: flex;
        flex-direction: row;
        overflow: hidden;
      }
      .chat-rail {
        width: 72px;
        background-color: #1e1f22;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 12px;
        padding-bottom: 12px;
        overflow-y: auto;
      }
      .chat-rail::-webkit-scrollbar { width: 0; }
      .rail-icon {
        width: 48px;
        height: 48px;
        border-radius: 24px;
        background-color: #313338;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        margin-bottom: 8px;
        cursor: pointer;
        transition: border-radius 0.2s, background-color 0.2s;
        position: relative;
      }
      .rail-icon.active {
        border-radius: 16px;
        background-color: #5865f2;
      }
      .rail-icon.server.active {
        background-color: #23a559;
      }
      .rail-divider {
        width: 32px;
        height: 2px;
        background-color: rgba(255, 255, 255, 0.1);
        margin: 4px 0 12px;
      }
      .rail-spacer {
        flex: 1;
      }
      
      .chat-sidebar {
        width: 240px;
        background-color: #2b2d31;
        display: flex;
        flex-direction: column;
        border-top-left-radius: 12px;
      }
      .chat-sidebar-header {
        padding: 16px;
        border-bottom: 1px solid rgba(0,0,0,0.2);
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: white;
      }
      .chat-sidebar-header h3 {
        margin: 0;
        font-size: 16px;
        font-weight: bold;
      }
      .chat-sidebar-list {
        flex: 1;
        overflow-y: auto;
        padding: 8px;
      }
      .chat-dm-item {
        display: flex;
        align-items: center;
        padding: 8px;
        border-radius: 4px;
        cursor: pointer;
        color: rgba(255,255,255,0.7);
        margin-bottom: 2px;
      }
      .chat-dm-item:active, .chat-dm-item.active {
        background-color: rgba(255,255,255,0.1);
        color: white;
      }
      .chat-dm-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: #313338;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 12px;
        font-weight: bold;
        color: white;
      }
      .chat-dm-info {
        flex: 1;
        overflow: hidden;
      }
      .chat-dm-name {
        font-weight: 600;
        font-size: 14px;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .chat-dm-preview {
        font-size: 12px;
        color: rgba(255,255,255,0.5);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .chat-channel-category {
        color: rgba(255,255,255,0.5);
        font-size: 11px;
        font-weight: bold;
        text-transform: uppercase;
        padding: 12px 8px 4px;
        display: flex;
        align-items: center;
      }
      .chat-channel-category i {
        margin-right: 4px;
        font-size: 10px;
      }
      .chat-channel-item {
        display: flex;
        align-items: center;
        padding: 6px 8px;
        border-radius: 4px;
        cursor: pointer;
        color: rgba(255,255,255,0.5);
        font-size: 14px;
        margin-bottom: 2px;
      }
      .chat-channel-item i {
        margin-right: 8px;
        font-size: 16px;
      }
      .chat-channel-item:active, .chat-channel-item.active {
        background-color: rgba(255,255,255,0.1);
        color: white;
      }
      .chat-channel-item.active i {
        color: white;
      }
      
      .chat-media-modal {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.85);
        z-index: 99999;
        justify-content: center;
        align-items: center;
        flex-direction: column;
      }
      .chat-media-modal.open {
        display: flex;
      }
      .chat-media-modal-content {
        max-width: 90vw;
        max-height: 80vh;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.5);
        object-fit: contain;
      }
      .chat-media-modal-actions {
        margin-top: 16px;
        display: flex;
        gap: 16px;
      }
      .chat-media-btn {
        background: #5865f2;
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 4px;
        cursor: pointer;
        font-weight: 500;
        font-size: 14px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
      }
      .chat-media-btn:hover {
        background: #4752c4;
      }
      .chat-media-close {
        position: absolute;
        top: 16px;
        right: 24px;
        color: #aaa;
        font-size: 28px;
        cursor: pointer;
        background: transparent;
        border: none;
      }
      .chat-media-close:hover {
        color: white;
      }
      
      .chat-context-menu {
        display: none;
        position: fixed;
        background: #111214;
        border-radius: 4px;
        padding: 6px 8px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.4);
        z-index: 100000;
        min-width: 180px;
        flex-direction: column;
        gap: 2px;
      }
      .chat-context-menu.open {
        display: flex;
      }
      .chat-context-item {
        padding: 8px 12px;
        border-radius: 4px;
        color: #dbdee1;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
        font-weight: 500;
        user-select: none;
      }
      .chat-context-item:hover {
        background: #5865f2;
        color: white;
      }
      .chat-context-item.danger {
        color: #da373c;
      }
      .chat-context-item.danger:hover {
        background: #da373c;
        color: white;
      }
      
      .chat-view {
        flex: 1;
        background-color: #313338;
        display: flex;
        flex-direction: column;
        position: absolute;
        inset: 0;
        z-index: 10;
        transform: translateX(100%);
        transition: transform 0.25s ease-out;
      }
      .chat-view.open {
        transform: translateX(0);
      }
      
      .chat-view-header {
        height: 52px;
        padding: 0 16px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        background-color: #313338;
        flex-shrink: 0;
      }
      .chat-mobile-back {
        background: transparent;
        border: none;
        color: white;
        font-size: 20px;
        margin-right: 16px;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
      }
      
      .chat-messages {
        flex: 1;
        overflow-y: auto;
        padding: 16px;
        display: flex;
        flex-direction: column;
      }
      .chat-message {
        display: flex;
        margin-bottom: 16px;
      }
      .chat-message-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #2b2d31;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 16px;
        flex-shrink: 0;
        font-weight: bold;
        color: white;
      }
      .chat-message-content {
        flex: 1;
      }
      .chat-message-header {
        display: flex;
        align-items: baseline;
        margin-bottom: 4px;
      }
      .chat-message-name {
        color: white;
        font-weight: 600;
        font-size: 15px;
        margin-right: 8px;
      }
      .chat-message-role {
        font-size: 10px;
        font-weight: bold;
        padding: 2px 6px;
        border-radius: 4px;
        margin-right: 8px;
      }
      .chat-message-time {
        color: rgba(255,255,255,0.4);
        font-size: 11px;
      }
      .chat-message-text {
        color: #dbdee1;
        font-size: 15px;
        line-height: 1.4;
      }
      
      .chat-input-area {
        padding: 12px 16px;
        background-color: #313338;
      }
      .chat-attachment-preview {
        display: none;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 8px;
        padding: 8px;
        background: #2b2d31;
        border-radius: 8px;
      }
      .chat-attachment-item {
        position: relative;
        width: 100px;
        height: 100px;
      }
      .chat-attachment-item img, .chat-attachment-item video {
        width: 100px;
        height: 100px;
        border-radius: 4px;
        object-fit: cover;
        cursor: pointer;
      }
      .chat-attachment-preview .chat-attachment-icon {
        width: 100px;
        height: 100px;
        background: #1e1f22;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32px;
        color: #aaa;
      }
      .chat-attachment-remove {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #da373c;
        color: white;
        border: none;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        font-size: 12px;
      }
      .chat-attachment-remove:hover {
        background: #a1282c;
      }
      .chat-input-wrapper {
        display: flex;
        align-items: center;
        background-color: #383a40;
        border-radius: 24px;
        padding: 6px 12px;
      }
      .chat-input-add {
        background: #2b2d31;
        border: none;
        color: rgba(255,255,255,0.7);
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 12px;
        cursor: pointer;
      }
      #chat-input-field {
        flex: 1;
        background: transparent;
        border: none;
        color: white;
        font-size: 15px;
        outline: none;
      }
      #chat-input-field::placeholder {
        color: rgba(255,255,255,0.3);
      }
      .chat-input-send {
        background: transparent;
        border: none;
        color: #5865f2;
        font-size: 20px;
        cursor: pointer;
        padding: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      
      .chat-bottom-nav {
        height: 56px;
        background-color: #111214;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
      }
      .chat-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: rgba(255,255,255,0.5);
        cursor: pointer;
      }
      .chat-nav-item.active {
        color: white;
      }
      .chat-nav-item i {
        font-size: 24px;
        margin-bottom: 2px;
      }
      .chat-nav-item span {
        font-size: 10px;
        font-weight: 500;
      }
      
      @media (min-width: 768px) {
        .chat-view {
          position: relative;
          transform: none !important;
        }
        .chat-mobile-back {
          display: none;
        }
      }

      /* Custom Mobile Notif Calendar Styles */
      #mobileNotifDateModal .calendar-container {
          width: 100%;
          background: #0f172a;
          border-radius: 8px;
          padding: 16px;
          user-select: none;
      }
      #mobileNotifDateModal .calendar-header {
          display: flex;
          justify-content: space-between;
          align-items: center;
          margin-bottom: 20px;
      }
      #mobileNotifDateModal .calendar-nav {
          background: transparent;
          border: none;
          color: #00e5ff;
          cursor: pointer;
          font-size: 16px;
          padding: 4px 8px;
          border-radius: 4px;
      }
      #mobileNotifDateModal .calendar-nav:hover {
          background: rgba(0, 229, 255, 0.1);
      }
      #mobileNotifDateModal .calendar-title {
          color: #f8fafc;
          font-size: 14px;
          font-weight: 700;
          display: flex;
          align-items: center;
          gap: 6px;
      }
      #mobileNotifDateModal .calendar-reset {
          background: transparent;
          color: #94a3b8;
          font-size: 11px;
          cursor: pointer;
          padding: 4px 8px;
          border-radius: 4px;
          border: 1px solid #334155;
          transition: all 0.2s;
      }
      #mobileNotifDateModal .calendar-reset:hover { background: #334155; color: #f8fafc; }
      #mobileNotifDateModal .calendar-grid {
          display: grid;
          grid-template-columns: repeat(7, 1fr);
          gap: 8px 4px;
          text-align: center;
      }
      #mobileNotifDateModal .calendar-day-name {
          color: #94a3b8;
          font-size: 11px;
          font-weight: 700;
          margin-bottom: 8px;
      }
      #mobileNotifDateModal .calendar-cell {
          color: #f8fafc;
          font-size: 13px;
          font-weight: 600;
          border-radius: 50%;
          cursor: pointer;
          width: 32px;
          height: 32px;
          margin: 0 auto;
          display: flex;
          align-items: center;
          justify-content: center;
          transition: all 0.2s;
      }
      #mobileNotifDateModal .calendar-cell.empty {
          cursor: default;
      }
      #mobileNotifDateModal .calendar-cell:not(.empty):hover {
          background: rgba(255, 255, 255, 0.1);
      }
      #mobileNotifDateModal .calendar-cell.has-data {
          color: #00e5ff;
      }
      #mobileNotifDateModal .calendar-cell.selected {
          background: #00e5ff !important;
          color: #0f172a !important;
      }
      #mobileNotifDateModal .calendar-cell.today {
          border: 1px solid #00e5ff;
      }

      /* Platform Services Header & Cards Grid - Hidden from TabDeck mobile view */
      .platform-services-section {
        display: none !important;
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 2px;
        margin-bottom: 16px;
      }
      .platform-services-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
        padding: 0 4px;
      }
      .platform-services-title {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 13px;
        font-weight: 800;
        color: #818cf8;
        text-transform: uppercase;
        letter-spacing: 0.8px;
      }
      .platform-services-title .bolt-icon {
        color: #60a5fa;
        font-size: 14px;
      }
      .platform-services-all-btn {
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.16);
        color: #cbd5e1;
        border-radius: 20px;
        padding: 3px 12px;
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 4px;
        transition: all 0.2s;
      }
      .platform-services-all-btn:hover {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.3);
      }
      .platform-services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
      }
      .mob-svc-card {
        background: rgba(24, 24, 27, 0.85);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 14px;
        padding: 12px 14px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 98px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
        cursor: pointer;
        transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
      }
      .mob-svc-card:hover {
        border-color: rgba(129, 140, 248, 0.4);
        background: rgba(30, 30, 36, 0.9);
      }
      .mob-svc-card:active {
        transform: scale(0.98);
      }
      .mob-svc-top {
        display: flex;
        align-items: center;
        gap: 10px;
      }
      .mob-svc-icon-wrap {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        background: rgba(99, 102, 241, 0.22);
        border: 1px solid rgba(129, 140, 248, 0.28);
        color: #818cf8;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        flex-shrink: 0;
      }
      .mob-svc-name {
        font-size: 13px;
        font-weight: 700;
        color: #ffffff;
        line-height: 1.25;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }
      .mob-svc-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 12px;
      }
      .mob-svc-price {
        color: #4ade80;
        font-size: 12px;
        font-weight: 700;
        display: flex;
        align-items: baseline;
        gap: 3px;
      }
      .mob-svc-price-unit {
        color: #86efac;
        font-size: 10px;
        font-weight: 500;
        opacity: 0.85;
      }
      .mob-svc-order-btn {
        background: linear-gradient(135deg, #6366f1, #8b5cf6);
        color: #ffffff;
        font-size: 11px;
        font-weight: 700;
        padding: 5px 14px;
        border-radius: 18px;
        border: none;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
        transition: transform 0.15s ease, opacity 0.15s ease;
      }
      .mob-svc-order-btn:hover {
        opacity: 0.92;
        transform: translateY(-1px);
      }
      .mob-svc-order-btn:active {
        transform: scale(0.95);
      }

      /* Disabled Platform Services Styling */
      .platform-services-section.is-disabled {
        opacity: 0.72;
      }
      .platform-services-disabled-badge {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        background: rgba(148, 163, 184, 0.14);
        color: #94a3b8;
        border: 1px solid rgba(148, 163, 184, 0.25);
        padding: 2px 7px;
        border-radius: 6px;
        margin-left: 6px;
        vertical-align: middle;
        display: inline-flex;
        align-items: center;
      }
      .platform-services-all-btn.is-disabled,
      .platform-services-all-btn:disabled {
        opacity: 0.45 !important;
        cursor: not-allowed !important;
        pointer-events: none;
      }
      .mob-svc-card.is-disabled {
        cursor: not-allowed !important;
        filter: grayscale(12%);
      }
      .mob-svc-card.is-disabled:hover {
        border-color: rgba(255, 255, 255, 0.09) !important;
        background: rgba(24, 24, 27, 0.85) !important;
        transform: none !important;
      }
      .mob-svc-card.is-disabled:active {
        transform: none !important;
      }
      .mob-svc-order-btn.is-disabled,
      .mob-svc-order-btn:disabled {
        background: rgba(99, 102, 241, 0.3) !important;
        color: rgba(255, 255, 255, 0.55) !important;
        box-shadow: none !important;
        cursor: not-allowed !important;
        opacity: 0.7 !important;
        pointer-events: none;
      }

/* ── Site Toast & In-App Notification System ── */
      #ax-toast-container {
        position: fixed;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 99999;
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 10px;
        pointer-events: none;
        width: 92%;
        max-width: 400px;
      }
      .ax-toast {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        background: #1c1c1e;
        color: #fff;
        padding: 12px 16px;
        border-radius: 14px;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.4;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
        pointer-events: auto;
        opacity: 0;
        transform: translateY(16px) scale(0.96);
        transition:
          opacity 0.28s ease,
          transform 0.28s ease;
        width: 100%;
        box-sizing: border-box;
        border-left: 4px solid #555;
        word-break: break-word;
      }
      .ax-toast.show {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
      .ax-toast.toast-success {
        border-left-color: #30d158;
      }
      .ax-toast.toast-error {
        border-left-color: #ff453a;
      }
      .ax-toast.toast-warning {
        border-left-color: #ffd60a;
      }
      .ax-toast.toast-info {
        border-left-color: #0a84ff;
      }
      .ax-toast-icon {
        font-size: 18px;
        flex-shrink: 0;
        margin-top: 1px;
      }
      .ax-toast-body {
        flex: 1;
      }
      .ax-toast-title {
        font-weight: 700;
        font-size: 13px;
        opacity: 0.7;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 2px;
      }
      .ax-toast-msg {
        font-size: 14px;
      }


/* ── Extracted Component Styles ── */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

        /* Force container to fit exactly in mobile overlay */
        #campaigns-mobile-overlay #view-sound-campaign-dashboard {
          margin: 0 !important;
          width: 100% !important;
          height: 100% !important;
          padding: 0 !important;
        }
        /* Move sidebar to bottom nav */
        #campaigns-mobile-overlay #sc-root {
          flex-direction: column-reverse !important;
          width: 100% !important;
        }
        #campaigns-mobile-overlay #sc-root > div[style*="52px"] {
          width: 100% !important;
          min-width: 100% !important;
          height: 56px !important;
          flex-direction: row !important;
          border-right: none !important;
          border-top: 1px solid #3a3a5c !important;
          padding: 0 !important;
          justify-content: space-evenly !important;
          align-items: center !important;
          z-index: 20;
        }
        #campaigns-mobile-overlay
          #sc-root
          > div[style*="52px"]
          > div:first-child {
          flex-direction: row !important;
          width: 100% !important;
          height: 100% !important;
          justify-content: space-evenly !important;
          align-items: center !important;
          gap: 0 !important;
        }
        #campaigns-mobile-overlay
          #sc-root
          > div[style*="52px"]
          > div:last-child {
          display: none !important;
        }
        #campaigns-mobile-overlay .sc-nav-btn {
          flex: 1 1 0% !important;
          width: 0 !important;
          min-width: 0 !important;
          height: 100% !important;
          border-radius: 0 !important;
          display: flex !important;
          align-items: center !important;
          justify-content: center !important;
          margin: 0 !important;
          padding: 0 !important;
          background: transparent !important;
          border: none !important;
          box-shadow: none !important;
          overflow: visible !important;
        }
        #campaigns-mobile-overlay .sc-nav-btn[style*="rgba(88,101,242,0.15)"] {
          background: rgba(88, 101, 242, 0.15) !important;
        }
        #campaigns-mobile-overlay .sc-nav-btn i {
          font-size: 20px !important;
          color: inherit !important;
          pointer-events: none !important;
        }
        /* Fix top bar width issues */
        #campaigns-mobile-overlay
          #sc-root
          > div:nth-child(2)
          > div:nth-child(1) {
          padding: 8px 12px !important;
          flex-wrap: wrap !important;
          justify-content: center !important;
          gap: 12px !important;
          height: auto !important;
        }
        #campaigns-mobile-overlay
          #sc-root
          > div:nth-child(2)
          > div:nth-child(1)
          > div:nth-child(1) {
          display: none !important; /* Hide "How to use..." text */
        }
        #campaigns-mobile-overlay
          #sc-root
          > div:nth-child(2)
          > div:nth-child(1)
          > div:nth-child(2) {
          width: 100% !important;
          justify-content: space-between !important;
          gap: 8px !important;
        }
        #campaigns-mobile-overlay #sc-creator-chip {
          padding: 4px !important;
        }
        /* Fix grid */
        #campaigns-mobile-overlay #sc-grid {
          grid-template-columns: 1fr !important;
        }

      /* ── Store & Servers Screens ─────────────────────────────────── */
      #store-screen, #servers-screen {
        position: fixed;
        inset: 0;
        z-index: 1100;
        display: none;
        flex-direction: column;
        background: #1a1a1a;
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
      }
      #store-screen.open, #servers-screen.open {
        display: flex;
        transform: translateX(0);
      }
      .sv-bg {
        position: absolute;
        inset: 0;
        background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop') center/cover no-repeat;
        z-index: 0;
      }
      .sv-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.65);
        z-index: 1;
      }
      .sv-content {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
      }
      .sv-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 16px;
        padding-top: max(16px, env(safe-area-inset-top));
      }
      .sv-back-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(0,0,0,0.35);
        border: none;
        color: #fff;
        font-size: 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
      }
      .sv-title {
        color: #fff;
        font-weight: 700;
        font-size: 18px;
        letter-spacing: -0.3px;
      }
      .sv-body {
        flex: 1;
        overflow-y: auto;
        padding: 0 16px 24px;
        -webkit-overflow-scrolling: touch;
      }
      .sv-section-title {
        color: #fff;
        font-size: 22px;
        font-weight: 700;
        margin: 0 0 14px;
      }
      /* Shortcut chips row */
      .sv-shortcuts-row {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 4px;
        margin-bottom: 28px;
        scrollbar-width: none;
      }
      .sv-shortcuts-row::-webkit-scrollbar { display: none; }
      .sv-chip {
        flex-shrink: 0;
        width: 88px;
        min-height: 90px;
        background: rgba(0,0,0,0.42);
        border: 1px solid rgba(255,255,255,0.09);
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        cursor: pointer;
        transition: background 0.18s;
        padding: 8px 4px;
        text-decoration: none;
      }
      .sv-chip:active { background: rgba(255,255,255,0.08); }
      .sv-chip.soon { opacity: 0.3; cursor: default; pointer-events: none; }
      .sv-chip i { font-size: 24px; }
      .sv-chip-label {
        color: #fff;
        font-size: 10px;
        font-weight: 600;
        text-align: center;
        line-height: 1.3;
      }
      .sv-chip .soon-badge {
        font-size: 8px;
        color: rgba(255,255,255,0.4);
        font-weight: 700;
      }
      /* Tab bar */
      .sv-tab-bar {
        display: flex;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin: 0 16px 16px;
        flex-shrink: 0;
      }
      .sv-tab-btn {
        flex: 1;
        background: transparent;
        border: none;
        color: rgba(255,255,255,0.5);
        font-size: 14px;
        font-weight: 500;
        padding: 10px 0;
        cursor: pointer;
        border-bottom: 2px solid transparent;
        transition: all 0.2s;
      }
      .sv-tab-btn.active {
        color: #fff;
        font-weight: 700;
        border-bottom-color: #4e89f8;
      }
      .sv-section-title {
        color: #fff;
        font-size: 14px;
        font-weight: bold;
        margin: 16px 0 10px 0;
        padding-left: 4px;
      }
      .sv-shortcuts-scroll {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
      }
      .sv-shortcuts-scroll::-webkit-scrollbar { display: none; }
      .sv-shortcut-chip {
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 20px;
        padding: 8px 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        color: #fff;
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
        cursor: pointer;
        transition: background 0.2s;
      }
      .sv-shortcut-chip:active { background: rgba(255,255,255,0.15); }
      .sv-shortcut-chip i { font-size: 14px; }
      /* App grid */
      .sv-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
      }
      .sv-card {
        background: rgba(0,0,0,0.42);
        border: 1px solid rgba(255,255,255,0.09);
        border-radius: 14px;
        min-height: 105px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        cursor: pointer;
        padding: 12px 6px;
        transition: background 0.18s;
        position: relative;
      }
      .sv-card:active { background: rgba(255,255,255,0.07); }
      .sv-card.soon { opacity: 0.35; cursor: pointer; }
      .sv-card i { font-size: 30px; }
      .sv-card-label {
        color: #fff;
        font-size: 11px;
        font-weight: 600;
        text-align: center;
        line-height: 1.2;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .sv-card-sub {
        color: rgba(255,255,255,0.38);
        font-size: 9px;
        text-align: center;
        line-height: 1.2;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .sv-card .sv-soon-tag {
        position: absolute;
        top: 6px;
        right: 6px;
        font-size: 8px;
        color: rgba(255,255,255,0.28);
        font-weight: 700;
        background: rgba(255,255,255,0.07);
        border-radius: 4px;
        padding: 2px 4px;
      }

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

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

      body.dark #spreads-inner-screen,
      body.dark #blends-inner-screen,
      body.dark #cs-inner-screen {
        background-color: #181a1b !important;
      }
      @media (max-width: 650px) {
        #spreads-list-container {
          grid-template-columns: repeat(2, 1fr) !important;
        }
      }

      #mobile-qc-autoprocess-toggle:checked + .slider { background-color: rgba(48, 162, 255, 0.2) !important; border-color: rgba(48, 162, 255, 0.4) !important; }
      #mobile-qc-autoprocess-toggle:checked + .slider .slider-knob { transform: translateX(14px); background-color: #30a2ff !important; }


    #tt-analytics-modifier-screen {
      --bg-color: #000000;
      --card-bg: #121212;
      --text-main: #FFFFFF;
      --text-muted: #888888;
      --accent: #FE2C55;
      --border-color: #2A2A2A;
    }
#tt-analytics-modifier-screen {
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }
#tt-analytics-modifier-screen {
      margin: 0;
      padding: 0;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      background-color: var(--bg-color);
      color: var(--text-main);
      overflow-x: hidden;
      overscroll-behavior-y: none;
    }
    
    /* Header */
#tt-analytics-modifier-screen .app-bar {
      display: flex;
      align-items: center;
      padding: 16px;
      padding-top: max(16px, env(safe-area-inset-top));
      background-color: var(--bg-color);
      position: sticky;
      top: 0;
      z-index: 100;
      border-bottom: 0.5px solid rgba(255,255,255,0.12);
    }
#tt-analytics-modifier-screen .back-btn {
      background: none;
      border: none;
      color: var(--text-main);
      font-size: 20px;
      padding: 8px;
      cursor: pointer;
      margin-left: -8px;
    }
#tt-analytics-modifier-screen .app-bar-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
#tt-analytics-modifier-screen .app-bar-title {
      font-size: 16px;
      font-weight: 700;
    }
#tt-analytics-modifier-screen .app-bar-subtitle {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      color: rgba(255,255,255,0.38);
      margin-top: 2px;
    }
#tt-analytics-modifier-screen .app-bar-subtitle img {
      width: 12px;
      height: 12px;
      filter: invert(0.6);
    }
    
    /* Video Header Area */
#tt-analytics-modifier-screen .video-header-area {
      display: flex;
      padding: 16px;
      gap: 16px;
      border-bottom: 0.5px solid rgba(255,255,255,0.12);
    }
#tt-analytics-modifier-screen .video-thumbnail-container {
      width: 72px;
      height: 128px;
      background-color: #222;
      border-radius: 4px;
      position: relative;
      overflow: hidden;
      cursor: pointer;
    }
#tt-analytics-modifier-screen .video-thumbnail-container img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
#tt-analytics-modifier-screen .duration-badge {
      position: absolute;
      bottom: 4px;
      right: 4px;
      background: rgba(0,0,0,0.6);
      color: white;
      font-size: 10px;
      padding: 2px 4px;
      border-radius: 2px;
      font-weight: 500;
    }
#tt-analytics-modifier-screen .post-info-container {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
#tt-analytics-modifier-screen .post-date {
      font-size: 13px;
      color: rgba(255,255,255,0.38);
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 4px;
      cursor: pointer;
    }
#tt-analytics-modifier-screen .top-metrics-row {
      display: flex;
      justify-content: space-between;
      width: 100%;
    }
#tt-analytics-modifier-screen .top-metric-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      cursor: pointer;
    }
#tt-analytics-modifier-screen .top-metric-icon {
      width: 20px;
      height: 20px;
      filter: invert(1);
    }
#tt-analytics-modifier-screen .top-metric-value {
      font-size: 13px;
      font-weight: 600;
    }
#tt-analytics-modifier-screen .top-metric-label {
      font-size: 10px;
      color: rgba(255,255,255,0.38);
    }
    
    /* Tabs */
#tt-analytics-modifier-screen .tabs-container {
      display: flex;
      border-bottom: 0.5px solid rgba(255,255,255,0.12);
      position: sticky;
      top: 60px; /* Adjust based on app-bar height */
      background-color: var(--bg-color);
      z-index: 99;
      overflow-x: auto;
    }
#tt-analytics-modifier-screen .tabs-container::-webkit-scrollbar {
      display: none;
    }
#tt-analytics-modifier-screen .tab {
      flex: 1;
      text-align: center;
      padding: 14px 0;
      font-size: 14px;
      font-weight: 600;
      color: rgba(255,255,255,0.38);
      cursor: pointer;
      position: relative;
      white-space: nowrap;
      min-width: 80px;
    }
#tt-analytics-modifier-screen .tab.active {
      color: var(--text-main);
    }
#tt-analytics-modifier-screen .tab.active::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 20%;
      right: 20%;
      height: 2px;
      background-color: var(--text-main);
    }
    
    /* Content Areas */
#tt-analytics-modifier-screen .tab-content {
      display: none;
      padding: 16px;
    }
#tt-analytics-modifier-screen .tab-content.active {
      display: block;
    }
    
    /* Overview Tab Content */
#tt-analytics-modifier-screen .section-title {
      font-size: 16px;
      font-weight: 700;
      margin-bottom: 16px;
    }
#tt-analytics-modifier-screen .metrics-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-bottom: 24px;
    }
#tt-analytics-modifier-screen .metric-card {
      background-color: var(--card-bg);
      border-radius: 8px;
      padding: 16px;
      cursor: pointer;
    }
#tt-analytics-modifier-screen .metric-card-label {
      font-size: 12px;
      color: rgba(255,255,255,0.38);
      margin-bottom: 8px;
    }
#tt-analytics-modifier-screen .metric-card-value {
      font-size: 20px;
      font-weight: 700;
    }
#tt-analytics-modifier-screen .metric-card-sub {
      font-size: 11px;
      color: rgba(255,255,255,0.38);
      margin-top: 4px;
    }
    
    /* Editor Dialog overlay */
#tt-analytics-modifier-screen .editor-overlay {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.7);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }
#tt-analytics-modifier-screen .editor-dialog {
      background: #1c1c1c;
      width: 85%;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    }
#tt-analytics-modifier-screen .editor-title {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 16px;
    }
#tt-analytics-modifier-screen .editor-input {
      width: 100%;
      background: #000;
      border: 1px solid #333;
      color: #fff;
      padding: 12px;
      border-radius: 8px;
      font-size: 16px;
      margin-bottom: 16px;
      outline: none;
    }
#tt-analytics-modifier-screen .editor-input:focus {
      border-color: var(--accent);
    }
#tt-analytics-modifier-screen .editor-actions {
      display: flex;
      justify-content: flex-end;
      gap: 12px;
    }
#tt-analytics-modifier-screen .editor-btn {
      background: transparent;
      border: none;
      color: var(--accent);
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      padding: 8px 12px;
    }
    
#tt-analytics-modifier-screen .analytics-card { background-color: var(--card-bg); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
#tt-analytics-modifier-screen .analytics-card-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
#tt-analytics-modifier-screen .creator-assistant-card { background-color: var(--card-bg); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
#tt-analytics-modifier-screen .retention-desc { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
#tt-analytics-modifier-screen .retention-subtext { font-size: 13px; color: rgba(255,255,255,0.38); line-height: 1.3; }
#tt-analytics-modifier-screen .graph-container { width: 100%; position: relative; }
#tt-analytics-modifier-screen .graph-container canvas { width: 100%; height: 100%; }
#tt-analytics-modifier-screen .promote-banner { display: flex; background-color: #FFF; color: #000; padding: 14px 16px; border-radius: 8px; align-items: center; font-weight: 600; font-size: 13px; margin-bottom: 16px; }
#tt-analytics-modifier-screen .video-preview-stack { width: 160px; height: 240px; background-color: #000; border: 1px solid #333; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: white; font-size: 30px; }
#tt-analytics-modifier-screen .scrubber { width: 100%; margin: 8px 0; -webkit-appearance: none; background: transparent; }
#tt-analytics-modifier-screen .scrubber::-webkit-slider-thumb { -webkit-appearance: none; height: 12px; width: 12px; border-radius: 50%; background: #ffffff; cursor: pointer; margin-top: -5px; }
#tt-analytics-modifier-screen .scrubber::-webkit-slider-runnable-track { width: 100%; height: 2px; cursor: pointer; background: #333; }
#tt-analytics-modifier-screen .progress-bar-bg { background-color: #2D2D2D; border-radius: 2px; height: 6px; flex: 1; overflow: hidden; display: flex; }
#tt-analytics-modifier-screen .progress-bar-fill { background-color: #007AFF; height: 100%; }
#tt-analytics-modifier-screen .progress-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; cursor: pointer; }
#tt-analytics-modifier-screen .progress-label { width: 80px; font-size: 13px; color: rgba(255,255,255,0.38); }
#tt-analytics-modifier-screen .progress-value { width: 45px; text-align: right; font-size: 13px; font-weight: 600; }
#tt-analytics-modifier-screen .hidden {
      display: none !important;
    }
  @keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
  }
  .tt-skel-box {
    background: #1e1e1e;
    background-image: linear-gradient(to right, #1e1e1e 0%, #2a2a2a 20%, #1e1e1e 40%, #1e1e1e 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%; 
    animation: shimmer 1.5s infinite linear forwards;
    border-radius: 4px;
  }
  .tt-skel-header { display: flex; flex-direction: column; align-items: center; margin-bottom: 24px; padding-top: 16px; }
  .tt-skel-thumb { width: 86px; height: 128px; border-radius: 8px; margin-bottom: 16px; }
  .tt-skel-profiles { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; }
  .tt-skel-profile { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .tt-skel-avatar { width: 32px; height: 32px; border-radius: 50%; }
  .tt-skel-name { width: 40px; height: 10px; border-radius: 4px; }
  .tt-skel-metrics { padding: 0 16px; }
  .tt-skel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .tt-skel-card { height: 90px; border-radius: 8px; }