/* TikTok/Reels-style Detail View - Compact */
    .detail-card-ig { overflow: hidden; padding: 0; }
    .detail-media { width: 100%; max-height: 50dvh; object-fit: cover; background: #000; display: block; }
    
    .detail-ig-media-container {
      position: relative;
      width: 100%;
      min-height: 320px;
    }
    
    .detail-ig-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.75));
      pointer-events: none;
      z-index: 1;
    }
    
    .detail-ig-left-content {
      position: absolute;
      left: 10px;
      right: 10px;
      bottom: 10px;
      z-index: 2;
      display: grid;
      gap: 8px;
    }
    
    [dir="rtl"] .detail-ig-left-content {
      left: 10px;
      right: 10px;
    }
    
    .detail-ig-author {
      display: flex;
      align-items: center;
      gap: 6px;
      border: 0;
      background: transparent;
      padding: 0;
      color: #fff;
      text-align: inherit;
    }
    
    .avatar-small {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      object-fit: cover;
      background: var(--bg-soft);
      border: 1.5px solid #fff;
      flex: 0 0 28px;
    }
    
    .detail-ig-author-info {
      display: grid;
      gap: 1px;
    }
    
    .detail-ig-author-info b {
      font-size: 12px;
      font-weight: 800;
      line-height: 1.2;
      color: #fff;
      text-shadow: 0 1px 3px rgba(0,0,0,.5);
    }
    
    .detail-ig-author-info small {
      font-size: 10px;
      color: rgba(255,255,255,.85);
      line-height: 1.2;
      text-shadow: 0 1px 3px rgba(0,0,0,.5);
    }
    
    .detail-ig-text {
      display: grid;
      gap: 5px;
    }
    
    .detail-ig-title {
      margin: 0;
      font-size: 13px;
      line-height: 1.35;
      font-weight: 800;
      color: #fff;
      text-shadow: 0 1px 4px rgba(0,0,0,.6);
    }
    
    .detail-ig-description {
      margin: 0;
      font-size: 11px;
      line-height: 1.45;
      color: rgba(255,255,255,.95);
      text-shadow: 0 1px 4px rgba(0,0,0,.6);
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    
    .detail-ig-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
    }
    
    .detail-ig-chip {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      padding: 3px 7px;
      border-radius: 999px;
      background: rgba(0,0,0,.5);
      backdrop-filter: blur(8px);
      font-size: 9px;
      font-weight: 700;
      color: #fff;
      border: 1px solid rgba(255,255,255,.2);
    }
    
    .detail-ig-chip i {
      font-size: 8px;
      color: #fff;
    }
    
    .detail-ig-right-actions {
      position: absolute;
      right: 10px;
      bottom: 10px;
      z-index: 2;
      display: grid;
      gap: 10px;
      justify-items: center;
    }
    
    [dir="rtl"] .detail-ig-right-actions {
      right: auto;
      left: 10px;
    }
    
    .detail-ig-action-btn {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      border: 0;
      background: rgba(0,0,0,.5);
      backdrop-filter: blur(12px);
      color: #fff;
      font-size: 17px;
      display: grid;
      place-items: center;
      transition: transform .2s ease, background .2s ease;
      border: 1.5px solid rgba(255,255,255,.2);
    }
    
    .detail-ig-action-btn:hover {
      transform: scale(1.1);
      background: rgba(0,0,0,.7);
    }
    
    .detail-ig-action-btn.active {
      color: #ef4444;
      background: rgba(239,68,68,.2);
      border-color: #ef4444;
    }
    
    .detail-ig-action-btn.danger {
      color: #fca5a5;
    }
    
    .detail-ig-price-badge {
      font-size: 14px;
      font-weight: 800;
      color: #fff;
      background: linear-gradient(135deg, rgba(248,113,113,.9), rgba(244,63,94,.9));
      border: 1.5px solid rgba(255,255,255,.3);
      border-radius: 999px;
      padding: 6px 10px;
      text-align: center;
      backdrop-filter: blur(8px);
      box-shadow: 0 3px 10px rgba(0,0,0,.3);
    }
    
    .detail-ig-cta-section {
      padding: 10px;
      display: grid;
      gap: 7px;
      border-top: 1px solid var(--line);
    }
    
    .detail-ig-cta {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 7px;
    }
    
    .detail-ig-btn {
      min-height: 38px;
      border-radius: 9px;
      border: 1px solid var(--line);
      padding: 8px 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      font-weight: 800;
      font-size: 12px;
      transition: transform .14s ease, box-shadow .14s ease;
    }
    
    .detail-ig-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 5px 14px rgba(127,29,29,.1);
    }
    
    .detail-ig-btn i {
      font-size: 13px;
    }
    
    .detail-ig-btn.primary {
      color: #fff;
      background: linear-gradient(135deg, var(--primary), var(--primary-2));
      border-color: transparent;
    }
    
    .detail-ig-btn.secondary {
      color: var(--ink);
      background: var(--panel);
    }
    
    .detail-ig-btn.whatsapp {
      color: #fff;
      background: linear-gradient(135deg, #25D366, #128C7E);
      border-color: transparent;
    }
    
    .detail-ig-btn.danger {
      color: #fff;
      background: linear-gradient(135deg, #ef4444, #dc2626);
      border-color: transparent;
    }
    
    .detail-ig-btn.full {
      grid-column: 1 / -1;
    }
    
    .detail-attachment {
      display: flex;
      gap: 8px;
      align-items: center;
      padding: 8px;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.3);
      width: 100%;
      color: inherit;
      text-align: inherit;
    }
    
    /* Modern Comments Section */
    .comments-section {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 14px;
      overflow: hidden;
      margin-top: 10px;
    }
    
    .comments-header {
      padding: 10px 12px;
      border-bottom: 1px solid var(--line);
      background: linear-gradient(135deg, rgba(248,113,113,.08), rgba(244,63,94,.08));
    }
    
    .comments-title-row {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .comments-title-row i {
      font-size: 16px;
      color: var(--primary);
    }
    
    .comments-title-row h3 {
      margin: 0;
      font-size: 14px;
      font-weight: 800;
      flex: 1;
    }
    
    .comments-count {
      background: var(--primary);
      color: #fff;
      font-size: 10px;
      font-weight: 800;
      padding: 3px 8px;
      border-radius: 999px;
      min-width: 20px;
      text-align: center;
    }
    
    .comments-input-wrapper {
      padding: 10px;
      background: var(--bg-soft);
      border-bottom: 1px solid var(--line);
    }
    
    .comments-input-container {
      display: flex;
      align-items: center;
      gap: 8px;
      background: #fff;
      border: 1.5px solid var(--line);
      border-radius: 999px;
      padding: 8px 12px;
      transition: border-color .2s ease;
    }
    
    .comments-input-container:focus-within {
      border-color: var(--primary);
    }
    
    .comment-input-icon {
      font-size: 16px;
      color: var(--muted);
      flex: 0 0 16px;
    }
    
    .comments-input {
      flex: 1;
      border: 0;
      background: transparent;
      font-size: 12px;
      padding: 0;
      outline: none;
      min-width: 0;
    }
    
    .comments-send-btn {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 0;
      background: linear-gradient(135deg, var(--primary), var(--primary-2));
      color: #fff;
      font-size: 13px;
      display: grid;
      place-items: center;
      flex: 0 0 32px;
      transition: transform .2s ease, box-shadow .2s ease;
    }
    
    .comments-send-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 4px 12px rgba(244,63,94,.3);
    }
    
    .comments-list {
      padding: 8px;
      display: grid;
      gap: 8px;
      max-height: 400px;
      overflow-y: auto;
    }
    
    .comment-bubble {
      background: var(--bg-soft);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 10px;
      transition: transform .15s ease, box-shadow .15s ease;
    }
    
    .comment-bubble:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0,0,0,.06);
    }
    
    .comment-bubble.editing {
      background: #fff;
      border-color: var(--primary);
      box-shadow: 0 4px 16px rgba(244,63,94,.15);
    }
    
    .comment-edit-container {
      display: grid;
      gap: 8px;
    }
    
    .comment-edit-input {
      width: 100%;
      border: 1.5px solid var(--line);
      border-radius: 10px;
      padding: 10px;
      font-size: 12px;
      line-height: 1.5;
      font-family: inherit;
      resize: vertical;
      min-height: 60px;
      background: var(--bg-soft);
      transition: border-color .2s ease;
    }
    
    .comment-edit-input:focus {
      outline: none;
      border-color: var(--primary);
      background: #fff;
    }
    
    .comment-edit-actions {
      display: flex;
      gap: 6px;
      justify-content: flex-end;
    }
    
    .comment-edit-btn {
      display: flex;
      align-items: center;
      gap: 5px;
      padding: 7px 12px;
      border-radius: 8px;
      border: 1px solid var(--line);
      font-size: 11px;
      font-weight: 700;
      transition: all .2s ease;
    }
    
    .comment-edit-btn i {
      font-size: 11px;
    }
    
    .comment-edit-btn.cancel {
      background: var(--panel);
      color: var(--muted);
    }
    
    .comment-edit-btn.cancel:hover {
      background: var(--bg-soft);
      color: var(--ink);
      transform: translateY(-1px);
    }
    
    .comment-edit-btn.save {
      background: linear-gradient(135deg, var(--primary), var(--primary-2));
      color: #fff;
      border-color: transparent;
    }
    
    .comment-edit-btn.save:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(244,63,94,.3);
    }
    
    .comment-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 6px;
    }
    
    .comment-author-row {
      display: flex;
      align-items: center;
      gap: 7px;
      flex: 1;
      min-width: 0;
    }
    
    .comment-avatar {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      object-fit: cover;
      background: linear-gradient(135deg, rgba(248,113,113,.2), rgba(244,63,94,.2));
      border: 1.5px solid var(--line);
      flex: 0 0 24px;
      display: grid;
      place-items: center;
      font-size: 10px;
      color: var(--primary);
    }
    
    .comment-author-name {
      font-size: 11px;
      font-weight: 800;
      color: var(--ink);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    
    .comment-actions {
      display: flex;
      gap: 4px;
    }
    
    .comment-icon-btn {
      width: 26px;
      height: 26px;
      border-radius: 8px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--muted);
      font-size: 10px;
      display: grid;
      place-items: center;
      transition: all .2s ease;
    }
    
    .comment-icon-btn:hover {
      background: var(--bg-soft);
      color: var(--ink);
      transform: scale(1.05);
    }
    
    .comment-icon-btn.danger {
      color: #ef4444;
    }
    
    .comment-icon-btn.danger:hover {
      background: rgba(239,68,68,.1);
      border-color: #ef4444;
    }
    
    .comment-text {
      margin: 0;
      font-size: 11px;
      line-height: 1.5;
      color: var(--ink);
      word-wrap: break-word;
    }
    
    .comments-empty {
      padding: 30px 20px;
      text-align: center;
      color: var(--muted);
    }
    
    .comments-empty i {
      font-size: 32px;
      margin-bottom: 8px;
      opacity: .5;
    }
    
    .comments-empty p {
      margin: 0;
      font-size: 12px;
      font-weight: 600;
    }
    
    /* Legacy comment styles - keep for compatibility */
    .comment-form { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: start; }
    .comment-row { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); background: transparent; }
    .comment-row:last-child { border-bottom: none; }
    .comment-row .avatar { width: 28px; height: 28px; }
    .comment-row .copy { font-size: 11px; line-height: 1.45; margin-top: 2px; }
    .comment-row b { font-size: 12px; }
    .mini-card {
      border: 1px solid var(--line);
      background: var(--panel);
      border-radius: 14px;
      overflow: hidden;
      min-height: 120px;
      padding: 0;
      text-align: inherit;
      color: inherit;
      display: grid;
      align-content: start;
    }
    .mini-card img, .mini-media { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-soft); }
    .mini-card span { padding: 7px; font-size: 11px; font-weight: 800; line-height: 1.4; }
    .bottom-nav {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 30;
      width: 100%;
      border-radius: 28px 28px 0 0;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 4px;
      padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)) 8px;
      overflow: visible;
      background: var(--panel-strong);
      border-top: 1px solid var(--line);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
    }
    .nav-btn {
      height: 58px;
      flex: 1 1 0;
      border: 0;
      border-radius: 18px;
      background: transparent;
      display: grid;
      place-items: center;
      gap: 2px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      min-width: 0;
      padding: 4px 2px;
    }
    .nav-btn b { font-size: 17px; line-height: 1; }
    .nav-btn span {
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      display: block;
    }
    .nav-btn.active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
    .nav-plus-btn {
      flex: 0 0 58px;
      width: 58px;
      height: 58px;
      border-radius: 50%;
      border: 0;
      background: linear-gradient(135deg, #f43f5e, #ef4444);
      color: #fff;
      font-size: 24px;
      line-height: 0;
      font-weight: 400;
      box-shadow: 0 14px 30px rgba(239, 68, 68, .35);
      display: grid;
      place-items: center;
      padding: 0;
    }
    .nav-plus-btn i { line-height: 1; transform: translateY(0); }
    :root[data-theme="dark"] .nav-plus-btn {
      background: linear-gradient(135deg, #fb7185, #ef4444);
      color: #fff;
    }
    .menu-backdrop {
      position: absolute;
      inset: 0;
      z-index: 80;
      background: rgba(24,16,18,.34);
      display: flex;
      justify-content: flex-start;
    }
    [dir="rtl"] .menu-backdrop { justify-content: flex-end; }
    .side-menu {
      width: min(84%, 340px);
      height: 100%;
      padding: calc(14px + var(--safe-top)) 12px calc(18px + var(--safe-bottom));
      border-radius: 0 26px 26px 0;
      overflow-y: auto;
      display: grid;
      align-content: start;
      gap: 10px;
      background:
        linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.68)),
        var(--panel-strong);
    }
    [dir="rtl"] .side-menu { border-radius: 26px 0 0 26px; }
    .side-menu-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 8px 10px;
      background: rgba(255,255,255,.4);
    }
    .side-menu-logo {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: var(--primary);
      background: rgba(248,113,113,.12);
      border: 1px solid var(--line);
      font-size: 12px;
    }
    .menu-card {
      border: 1px solid var(--line);
      border-radius: 16px;
      background: rgba(255,255,255,.42);
      padding: 10px;
    }
    .menu-section-title {
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      padding-inline: 4px;
    }
    .menu-nav-stack { gap: 8px; }
    .menu-item {
      min-height: 52px;
      border: 1px solid var(--line);
      background: var(--panel);
      border-radius: 16px;
      padding: 10px 11px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      color: inherit;
      text-align: inherit;
      transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
    }
    .menu-item:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 26px rgba(127,29,29,.11);
      border-color: rgba(244,63,94,.35);
    }
    .menu-item-icon {
      width: 30px;
      height: 30px;
      border-radius: 11px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.5);
      display: inline-grid;
      place-items: center;
      color: var(--primary);
      margin-inline-end: 8px;
      flex: 0 0 30px;
    }
    .menu-item b { flex: 1; text-align: start; }
    [dir="rtl"] .menu-item b { text-align: end; }
    .menu-item.active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: transparent; }
    .menu-item.active .menu-item-icon {
      background: rgba(255,255,255,.2);
      border-color: rgba(255,255,255,.2);
      color: #fff;
    }
    .menu-tools {
      display: grid;
      gap: 8px;
      margin-top: 0;
    }
    .menu-setting-row {
      min-height: 44px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: var(--panel-strong);
      color: var(--ink);
      width: 100%;
      padding: 8px 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      font-size: 13px;
      font-weight: 700;
      transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
    }
    .menu-setting-row:hover {
      transform: translateY(-1px);
      border-color: rgba(244,63,94,.35);
      box-shadow: 0 10px 20px rgba(127,29,29,.1);
    }
    .menu-setting-row.danger { color: #b91c1c; }
    .menu-setting-leading {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      font-weight: 700;
    }
    .menu-setting-leading i {
      width: 20px;
      text-align: center;
      font-size: 13px;
      color: var(--primary);
      flex: 0 0 20px;
    }
    .menu-setting-leading b {
      margin: 0;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.2;
      color: inherit;
    }
    .menu-setting-value {
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      line-height: 1;
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 5px 8px;
      background: rgba(255,255,255,.45);
      white-space: nowrap;
    }
    .menu-profile {
      margin-top: 0;
      border-radius: 16px;
      padding: 10px;
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 10px;
      align-items: center;
    }
    .menu-profile small { display: block; color: var(--muted); margin-top: 3px; line-height: 1.45; }