/* ==========================================
   LAYOUT GLOBALE DESKTOP - CHATTER
   ================================---------- */

@media (min-width: 768px) {
  body {
    flex-direction: row;
  }

  /* --- Sfumatura e Sfondo Luminoso Globale --- */
  .bg-glow {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
    z-index: -9999 !important;
    pointer-events: none !important;
    background: radial-gradient(circle at 50% 20%, #150926 0%, #030305 85%) !important;
  }

  .bg-glow::before, .bg-glow::after {
    content: '' !important;
    position: absolute !important;
    width: 500px !important;
    height: 500px !important;
    border-radius: 50% !important;
    filter: blur(130px) !important;
    opacity: 0.5 !important;
    animation: floatGlow 18s ease-in-out infinite alternate !important;
  }

  .bg-glow::before {
    background: #ff0050 !important;
    top: -80px !important;
    left: -80px !important;
  }

  .bg-glow::after {
    background: #7928ca !important;
    bottom: -80px !important;
    right: -80px !important;
    animation-delay: -9s !important;
  }

  @keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 60px) scale(1.15); }
  }

  /* --- Sidebar Desktop Trasparente --- */
  .desktop-sidebar {
    width: 260px;
    height: 100vh;
    height: 100dvh;
    background: rgba(9, 9, 11, 0.5) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    z-index: 1000;
    flex-shrink: 0;
    position: sticky;
    top: 0;
  }

  /* --- Contenuto Principale (Spostato a sinistra e quasi a tutto schermo) --- */
  .main-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-start !important;
    padding-left: 40px !important;
    min-height: 100vh;
    overflow-y: auto;
    background: transparent !important;
  }

  .profile-page-container {
    max-width: 960px !important;
    width: 100%;
    min-height: 100vh;
    background: rgba(3, 3, 5, 0.45) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    color: #fff;
    padding-bottom: 90px;
    position: relative;
  }

  /* --- Griglia Video PC (Meno allungati, formato quadrato o 4/5 a 4 colonne) --- */
  .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    padding: 12px !important;
  }

  .grid-item-wrapper {
    position: relative;
    aspect-ratio: 1 / 1 !important; /* Quadrati ed equilibrati su PC */
    overflow: hidden;
    background: #121216;
    border-radius: 8px !important;
  }

  /* Nascondi la barra di navigazione mobile su PC */
  .mobile-bottom-nav {
    display: none !important;
  }
}
 * { box-sizing: border-box; margin: 0; padding: 0; }
    
    html {
      width: 100%;
      height: 100%;
      font-size: 16px;
    }

    body {
      width: 100%;
      min-height: 100%;
      background-color: #030305;
      color: #fff;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      overflow-x: hidden;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      overscroll-behavior-y: none;
      display: flex;
      flex-direction: row;
    }

    /* --- SIDEBAR DESKTOP --- */
    .desktop-sidebar {
      width: 260px;
      height: 100vh;
      height: 100dvh;
      background: #09090b;
      border-right: 1px solid #27272a;
      display: flex;
      flex-direction: column;
      padding: 24px 16px;
      z-index: 1000;
      flex-shrink: 0;
      position: sticky;
      top: 0;
    }

    .desktop-sidebar .brand {
      font-size: 22px;
      font-weight: 800;
      color: #fff;
      margin-bottom: 30px;
      padding-left: 12px;
      letter-spacing: 0.5px;
    }

    .desktop-sidebar .nav-links {
      display: flex;
      flex-direction: column;
      gap: 6px;
      flex: 1;
    }

    .desktop-sidebar .nav-links a {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 12px 16px;
      color: #a1a1aa;
      text-decoration: none;
      font-size: 15px;
      font-weight: 600;
      border-radius: 10px;
      transition: all 0.2s ease;
    }

    .desktop-sidebar .nav-links a i {
      font-size: 20px;
    }

    .desktop-sidebar .nav-links a:hover, 
    .desktop-sidebar .nav-links a.active {
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
    }

    .desktop-sidebar .nav-links a.nav-pill-btn {
      background: linear-gradient(135deg, #ff0050, #7928ca);
      color: #fff !important;
      border-radius: 30px; 
      justify-content: center; 
      font-weight: 700;
      font-size: 14px;
      margin: 6px 12px;
      padding: 9px 14px;
      box-shadow: 0 3px 12px rgba(255, 0, 80, 0.3);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .desktop-sidebar .nav-links a.nav-pill-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 5px 18px rgba(255, 0, 80, 0.45);
    }

    /* --- CONTENUTO PRINCIPALE --- */
    .main-wrapper {
      flex: 1;
      width: 100%;
      display: flex;
      justify-content: center;
      min-height: 100vh;
      overflow-y: auto;
    }

    .page-container {
      width: 100%;
      max-width: 1100px;
      padding: 24px;
    }

    .topbar {
      margin-bottom: 20px;
    }

    .topbar h2 {
      font-size: 24px;
      font-weight: 700;
    }

    /* --- GRIGLIA VIDEO COMPATTA --- */
    .videos-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }

    .video-card {
      background: rgba(24, 24, 27, 0.6);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 16px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      text-decoration: none;
      color: inherit;
      position: relative;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .video-card:hover {
      transform: translateY(-6px) scale(1.02);
      border-color: rgba(255, 0, 80, 0.4);
      box-shadow: 0 10px 30px rgba(255, 0, 80, 0.25), 0 4px 12px rgba(0, 0, 0, 0.6);
    }

    .video-thumbnail-wrapper {
      position: relative;
      width: 100%;
      aspect-ratio: 4/5; 
      background: #000;
      overflow: hidden;
    }

    .video-thumbnail-wrapper video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }

    .video-card:hover .video-thumbnail-wrapper video {
      transform: scale(1.05);
    }

    .video-thumbnail-wrapper::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.6) 100%);
      pointer-events: none;
    }

    .video-info {
      padding: 10px 12px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      background: rgba(18, 18, 22, 0.95);
    }

    .video-author {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .video-author img {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
    }

    .video-author .avatar-placeholder {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: linear-gradient(135deg, #ff0050, #7928ca);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      font-weight: bold;
      color: #fff;
      flex-shrink: 0;
    }

    .video-author span {
      font-size: 13px;
      font-weight: 600;
      color: #e4e4e7;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Spunta di verifica blu */
    .badge-verify {
      color: #0095f6 !important;
      font-size: 14px;
      display: inline-flex;
      align-items: center;
      vertical-align: middle;
      flex-shrink: 0;
    }

    .video-caption {
      font-size: 12px;
      color: #a1a1aa;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .empty-state {
      text-align: center;
      padding: 60px 20px;
      color: #71717a;
      grid-column: 1 / -1;
    }

    /* --- LAYOUT MOBILE --- */
    .mobile-bottom-nav {
      display: none;
    }

    @media (max-width: 767px) {
      body {
        flex-direction: column;
      }
      .desktop-sidebar {
        display: none !important;
      }
      .main-wrapper {
        display: block;
        width: 100%;
      }
      .page-container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 10px auto 70px auto;
        padding: 0 10px;
      }

      .videos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
      }

      .video-thumbnail-wrapper {
        aspect-ratio: 1/1; 
      }

      .video-card {
        border-radius: 10px;
      }
      
      .video-info {
        padding: 6px 8px;
      }

      .video-author span {
        font-size: 11px;
      }

      .badge-verify {
        font-size: 12px;
      }

      .video-caption {
        display: none;
      }
      
      .video-author img, .video-author .avatar-placeholder {
        width: 18px;
        height: 18px;
      }

      .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: #09090b;
        border-top: 1px solid #27272a;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
      }

      .mobile-bottom-nav a {
        color: #a1a1aa;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 11px;
        gap: 2px;
      }
      .mobile-bottom-nav a i { font-size: 20px; }
      .mobile-bottom-nav a.active { color: #fff; }

      .mobile-bottom-nav .nav-add-btn {
        background: linear-gradient(135deg, #ff0050, #7928ca);
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(255, 0, 80, 0.4);
      }
      .mobile-bottom-nav .nav-add-btn i {
        font-size: 22px !important;
        color: #fff !important;
      }
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    
    html {
      width: 100%;
      height: 100%;
      font-size: 16px;
    }

    body {
      width: 100%;
      min-height: 100%;
      background-color: #030305;
      color: #fff;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      overflow-x: hidden;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      overscroll-behavior-y: none;
      display: flex;
      flex-direction: row;
    }

    /* --- SIDEBAR DESKTOP --- */
    .desktop-sidebar {
      width: 260px;
      height: 100vh;
      height: 100dvh;
      background: #09090b;
      border-right: 1px solid #27272a;
      display: flex;
      flex-direction: column;
      padding: 24px 16px;
      z-index: 1000;
      flex-shrink: 0;
      position: sticky;
      top: 0;
    }

    .desktop-sidebar .brand {
      font-size: 22px;
      font-weight: 800;
      color: #fff;
      margin-bottom: 30px;
      padding-left: 12px;
      letter-spacing: 0.5px;
    }

    .desktop-sidebar .nav-links {
      display: flex;
      flex-direction: column;
      gap: 6px;
      flex: 1;
    }

    .desktop-sidebar .nav-links a {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 12px 16px;
      color: #a1a1aa;
      text-decoration: none;
      font-size: 15px;
      font-weight: 600;
      border-radius: 10px;
      transition: all 0.2s ease;
    }

    .desktop-sidebar .nav-links a i {
      font-size: 20px;
    }

    .desktop-sidebar .nav-links a:hover, 
    .desktop-sidebar .nav-links a.active {
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
    }

    .desktop-sidebar .nav-links a.nav-pill-btn {
      background: linear-gradient(135deg, #ff0050, #7928ca);
      color: #fff !important;
      border-radius: 30px; 
      justify-content: center; 
      font-weight: 700;
      font-size: 14px;
      margin: 6px 12px;
      padding: 9px 14px;
      box-shadow: 0 3px 12px rgba(255, 0, 80, 0.3);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .desktop-sidebar .nav-links a.nav-pill-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 5px 18px rgba(255, 0, 80, 0.45);
    }

    /* --- CONTENUTO PRINCIPALE --- */
    .main-wrapper {
      flex: 1;
      width: 100%;
      display: flex;
      justify-content: center;
      min-height: 100vh;
      overflow-y: auto;
    }

    .page-container {
      width: 100%;
      max-width: 1100px;
      padding: 24px;
    }

    .topbar {
      margin-bottom: 20px;
    }

    .topbar h2 {
      font-size: 24px;
      font-weight: 700;
    }

    /* --- GRIGLIA VIDEO COMPATTA --- */
    .videos-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }

    .video-card {
      background: rgba(24, 24, 27, 0.6);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 16px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      text-decoration: none;
      color: inherit;
      position: relative;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .video-card:hover {
      transform: translateY(-6px) scale(1.02);
      border-color: rgba(255, 0, 80, 0.4);
      box-shadow: 0 10px 30px rgba(255, 0, 80, 0.25), 0 4px 12px rgba(0, 0, 0, 0.6);
    }

    .video-thumbnail-wrapper {
      position: relative;
      width: 100%;
      aspect-ratio: 4/5; 
      background: #000;
      overflow: hidden;
    }

    .video-thumbnail-wrapper video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }

    .video-card:hover .video-thumbnail-wrapper video {
      transform: scale(1.05);
    }

    .video-thumbnail-wrapper::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.6) 100%);
      pointer-events: none;
    }

    .video-info {
      padding: 10px 12px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      background: rgba(18, 18, 22, 0.95);
    }

    .video-author {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .video-author img {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
    }

    .video-author .avatar-placeholder {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: linear-gradient(135deg, #ff0050, #7928ca);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      font-weight: bold;
      color: #fff;
      flex-shrink: 0;
    }

    .video-author span {
      font-size: 13px;
      font-weight: 600;
      color: #e4e4e7;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

   

    .video-caption {
      font-size: 12px;
      color: #a1a1aa;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .empty-state {
      text-align: center;
      padding: 60px 20px;
      color: #71717a;
      grid-column: 1 / -1;
    }

    /* --- LAYOUT MOBILE --- */
    .mobile-bottom-nav {
      display: none;
    }

    @media (max-width: 767px) {
      body {
        flex-direction: column;
      }
      .desktop-sidebar {
        display: none !important;
      }
      .main-wrapper {
        display: block;
        width: 100%;
      }
      .page-container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 10px auto 70px auto;
        padding: 0 10px;
      }

      .videos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
      }

      .video-thumbnail-wrapper {
        aspect-ratio: 1/1; 
      }

      .video-card {
        border-radius: 10px;
      }
      
      .video-info {
        padding: 6px 8px;
      }

      .video-author span {
        font-size: 11px;
      }

      .badge-verify {
        font-size: 12px;
      }

      .video-caption {
        display: none;
      }
      
      .video-author img, .video-author .avatar-placeholder {
        width: 18px;
        height: 18px;
      }

      .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: #09090b;
        border-top: 1px solid #27272a;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
      }

      .mobile-bottom-nav a {
        color: #a1a1aa;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 11px;
        gap: 2px;
      }
      .mobile-bottom-nav a i { font-size: 20px; }
      .mobile-bottom-nav a.active { color: #fff; }

      .mobile-bottom-nav .nav-add-btn {
        background: linear-gradient(135deg, #ff0050, #7928ca);
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(255, 0, 80, 0.4);
      }
      .mobile-bottom-nav .nav-add-btn i {
        font-size: 22px !important;
        color: #fff !important;
      }
    } 
  * { box-sizing: border-box; margin: 0; padding: 0; }
    
    html, body {
      width: 100%; height: 100%; background-color: #030305; color: #fff;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      overflow-x: hidden; user-select: none;
      -webkit-tap-highlight-color: transparent;
      overscroll-behavior-y: none;
    }

    body {
      display: flex;
      justify-content: flex-start;
    }

    /* --- SIDEBAR DESKTOP --- */
    .desktop-sidebar {
      width: 260px;
      height: 100vh;
      height: 100dvh;
      background: #09090b;
      border-right: 1px solid #27272a;
      display: flex;
      flex-direction: column;
      padding: 24px 16px;
      z-index: 1000;
      flex-shrink: 0;
      position: sticky;
      top: 0;
    }

    .desktop-sidebar .brand {
      font-size: 22px;
      font-weight: 800;
      color: #fff;
      margin-bottom: 30px;
      padding-left: 12px;
      letter-spacing: 0.5px;
    }

    .desktop-sidebar .nav-links {
      display: flex;
      flex-direction: column;
      gap: 6px;
      flex: 1;
    }

    .desktop-sidebar .nav-links a {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 12px 16px;
      color: #a1a1aa;
      text-decoration: none;
      font-size: 15px;
      font-weight: 600;
      border-radius: 10px;
      transition: all 0.2s ease;
    }

    .desktop-sidebar .nav-links a i {
      font-size: 20px;
    }

    .desktop-sidebar .nav-links a:hover, 
    .desktop-sidebar .nav-links a.active {
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
    }

    .desktop-sidebar .nav-links a.nav-pill-btn {
      background: linear-gradient(135deg, #ff0050, #7928ca);
      color: #fff !important;
      border-radius: 30px; 
      justify-content: center; 
      font-weight: 700;
      font-size: 14px;
      margin: 6px 12px;
      padding: 9px 14px;
      box-shadow: 0 3px 12px rgba(255, 0, 80, 0.3);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .desktop-sidebar .nav-links a.nav-pill-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 5px 18px rgba(255, 0, 80, 0.45);
      background: linear-gradient(135deg, #ff1a60, #8a35db);
    }

    /* --- CONTENUTO PRINCIPALE PIÙ LARGO (stile Facebook) --- */
    .main-wrapper {
      flex: 1;
      display: flex;
      justify-content: center;
      min-height: 100vh;
      overflow-y: auto;
    }

    .muro-container {
      max-width: 900px; /* Larghezza aumentata stile Facebook/Social moderno */
      width: 100%;
      margin: 25px auto 90px auto; 
      padding: 0 16px;
      box-sizing: border-box;
    }
    
    /* Card Design Pro con Glassmorphism avanzato */
    .card {
      background: linear-gradient(145deg, rgba(24, 24, 30, 0.7), rgba(14, 14, 18, 0.8));
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 24px;
      padding: 22px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
      margin-bottom: 20px;
      box-sizing: border-box;
      transition: border-color 0.3s ease;
    }
    .card:hover {
      border-color: rgba(255, 255, 255, 0.15);
    }

    .tag {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 2px 8px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 700;
    }
    .tag.ok {
      background: rgba(16, 185, 129, 0.15);
      color: #34d399;
      border: 1px solid rgba(16, 185, 129, 0.3);
    }

    textarea {
      width: 100%;
      background: rgba(0, 0, 0, 0.4);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 16px;
      padding: 16px;
      color: #ffffff;
      font-size: 15px;
      resize: none;
      outline: none;
      box-sizing: border-box;
      font-family: inherit;
      transition: all 0.2s ease;
    }
    textarea::placeholder {
      color: rgba(255, 255, 255, 0.65);
      font-weight: 400;
    }
    textarea:focus {
      border-color: #ff0050;
      background: rgba(0, 0, 0, 0.6);
      box-shadow: 0 0 15px rgba(255, 0, 80, 0.2);
    }
    
    .btn-gradient {
      background: linear-gradient(135deg, #ff0050 0%, #7928ca 100%);
      color: #fff;
      border: none;
      padding: 10px 22px;
      border-radius: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      box-shadow: 0 4px 15px rgba(255, 0, 80, 0.3);
    }
    .btn-gradient:hover {
      opacity: 0.92;
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(255, 0, 80, 0.4);
    }
    .btn-gradient:active {
      transform: translateY(1px);
    }

    .file-upload-wrapper {
      position: relative;
      overflow: hidden;
      display: inline-block;
    }
    .file-upload-wrapper input[type=file] {
      position: absolute;
      left: 0; top: 0;
      opacity: 0;
      cursor: pointer;
      width: 100%;
      height: 100%;
    }

    .btn-like {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      color: #a1a1aa;
      padding: 8px 16px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: all 0.2s ease;
    }
    .btn-like:hover {
      background: rgba(255, 0, 80, 0.1);
      color: #ff0050;
      border-color: rgba(255, 0, 80, 0.3);
    }
    .btn-like.liked {
      background: rgba(255, 0, 80, 0.15);
      color: #ff0050;
      border-color: rgba(255, 0, 80, 0.4);
    }

    /* --- LAYOUT MOBILE --- */
    .mobile-bottom-nav {
      display: none;
    }

    @media (max-width: 767px) {
      .desktop-sidebar {
        display: none !important;
      }
      .main-wrapper {
        display: block;
        width: 100%;
      }
      .muro-container {
        margin: 15px auto 80px auto;
        padding: 0 12px;
      }

      .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: #09090b;
        border-top: 1px solid #27272a;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
      }

      .mobile-bottom-nav a {
        color: #a1a1aa;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 11px;
        gap: 2px;
      }
      .mobile-bottom-nav a i { font-size: 20px; }
      .mobile-bottom-nav a.active { color: #fff; }

      .mobile-bottom-nav .nav-add-btn {
        background: linear-gradient(135deg, #ff0050, #7928ca);
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(255, 0, 80, 0.4);
      }
      .mobile-bottom-nav .nav-add-btn i {
        font-size: 22px !important;
        color: #fff !important;
      }
    }
 * { box-sizing: border-box; margin: 0; padding: 0; }
    
    html, body {
      width: 100%; height: 100%; background-color: #000; color: #fff;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      overflow-x: hidden; user-select: none;
    }

    body {
      display: flex;
      justify-content: flex-start;
      background: #000;
    }

    /* --- SIDEBAR DESKTOP --- */
    .desktop-sidebar {
      width: 260px;
      height: 100vh;
      height: 100dvh;
      background: #09090b;
      border-right: 1px solid #27272a;
      display: flex;
      flex-direction: column;
      padding: 24px 16px;
      z-index: 1000;
      flex-shrink: 0;
      position: sticky;
      top: 0;
    }

    .desktop-sidebar .brand {
      font-size: 22px;
      font-weight: 800;
      color: #fff;
      margin-bottom: 30px;
      padding-left: 12px;
      letter-spacing: 0.5px;
    }

    .desktop-sidebar .nav-links {
      display: flex;
      flex-direction: column;
      gap: 6px;
      flex: 1;
    }

    .desktop-sidebar .nav-links a {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 12px 16px;
      color: #a1a1aa;
      text-decoration: none;
      font-size: 15px;
      font-weight: 600;
      border-radius: 10px;
      transition: all 0.2s ease;
    }

    .desktop-sidebar .nav-links a i {
      font-size: 20px;
    }

    .desktop-sidebar .nav-links a:hover, 
    .desktop-sidebar .nav-links a.active {
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
    }

    /* Pulsante a pillola Pubblica Post nella sidebar desktop */
    .desktop-sidebar .nav-links a.nav-pill-btn {
      background: linear-gradient(135deg, #ff0050, #7928ca);
      color: #fff !important;
      border-radius: 30px; 
      justify-content: center; 
      font-weight: 700;
      font-size: 14px;
      margin: 6px 12px;
      padding: 9px 14px;
      box-shadow: 0 3px 12px rgba(255, 0, 80, 0.3);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .desktop-sidebar .nav-links a.nav-pill-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 5px 18px rgba(255, 0, 80, 0.45);
      background: linear-gradient(135deg, #ff1a60, #8a35db);
    }

    /* --- CONTENUTO PRINCIPALE --- */
    .main-content {
      flex: 1;
      max-width: 600px;
      margin: 0 auto;
      padding: 20px;
      min-height: 100vh;
      overflow-y: auto;
    }

    .topbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 0 20px 0;
      font-size: 20px;
      font-weight: 700;
    }

    .notif {
      background: #121214;
      padding: 12px 16px;
      border-radius: 12px;
      margin-bottom: 10px;
      border: 1px solid #1f1f23;
    }
    .notif.unread {
      background: #18181b;
      border-color: #27272a;
    }

    .notif img {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      object-fit: cover;
      background: #27272a;
    }

    .empty {
      text-align: center;
      color: #a1a1aa;
      padding-top: 50px;
      font-size: 14px;
    }
    .empty i {
      font-size: 32px;
      display: block;
      margin-bottom: 8px;
    }

    /* --- LAYOUT MOBILE --- */
    .mobile-bottom-nav {
      display: none;
    }

    @media (max-width: 767px) {
      .desktop-sidebar {
        display: none !important;
      }
      .main-content {
        max-width: 100%;
        padding: 16px;
        padding-bottom: 80px; /* Spazio per non coprire i contenuti col menu in basso */
      }

      /* Mostra il menu in basso su mobile */
      .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: #09090b;
        border-top: 1px solid #27272a;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
      }

      .mobile-bottom-nav a {
        color: #a1a1aa;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 11px;
        gap: 2px;
      }
      .mobile-bottom-nav a i { font-size: 20px; }
      .mobile-bottom-nav a.active { color: #fff; }

      /* Pulsante centrale "+" nel menu mobile in basso */
      .mobile-bottom-nav .nav-add-btn {
        background: linear-gradient(135deg, #ff0050, #7928ca);
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(255, 0, 80, 0.4);
      }
      .mobile-bottom-nav .nav-add-btn i {
        font-size: 22px !important;
        color: #fff !important;
      }
    }
* { box-sizing: border-box; margin: 0; padding: 0; }
    
    html {
      width: 100%;
      height: 100%;
      font-size: 16px;
      background-color: #030305 !important;
    }

    body {
      width: 100%;
      min-height: 100%;
      background-color: transparent !important;
      color: #fff;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      overflow-x: hidden;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      overscroll-behavior-y: none;
      display: flex;
      flex-direction: row;
      position: relative;
    }

    /* --- SFONDO LUMINOSO (GLOW) --- */
    .bg-glow {
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      width: 100vw !important;
      height: 100vh !important;
      overflow: hidden !important;
      z-index: -9999 !important;
      pointer-events: none !important;
      background: radial-gradient(circle at 50% 20%, #150926 0%, #030305 85%) !important;
    }

    .bg-glow::before, .bg-glow::after {
      content: '' !important;
      position: absolute !important;
      width: 500px !important;
      height: 500px !important;
      border-radius: 50% !important;
      filter: blur(130px) !important;
      opacity: 0.5 !important;
      animation: floatGlow 18s ease-in-out infinite alternate !important;
    }

    .bg-glow::before {
      background: #ff0050 !important;
      top: -80px !important;
      left: -80px !important;
    }

    .bg-glow::after {
      background: #7928ca !important;
      bottom: -80px !important;
      right: -80px !important;
      animation-delay: -9s !important;
    }

    @keyframes floatGlow {
      0% { transform: translate(0, 0) scale(1); }
      100% { transform: translate(50px, 60px) scale(1.15); }
    }

    /* --- SIDEBAR DESKTOP --- */
    .desktop-sidebar {
      width: 260px;
      height: 100vh;
      height: 100dvh;
      background: rgba(9, 9, 11, 0.85);
      backdrop-filter: blur(20px);
      border-right: 1px solid rgba(255, 255, 255, 0.08);
      display: flex;
      flex-direction: column;
      padding: 24px 16px;
      z-index: 1000;
      flex-shrink: 0;
      position: sticky;
      top: 0;
    }

    .desktop-sidebar .brand {
      font-size: 22px;
      font-weight: 800;
      color: #fff;
      margin-bottom: 30px;
      padding-left: 12px;
      letter-spacing: 0.5px;
    }

    .desktop-sidebar .nav-links {
      display: flex;
      flex-direction: column;
      gap: 6px;
      flex: 1;
    }

    .desktop-sidebar .nav-links a {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 12px 16px;
      color: #a1a1aa;
      text-decoration: none;
      font-size: 15px;
      font-weight: 600;
      border-radius: 10px;
      transition: all 0.2s ease;
    }

    .desktop-sidebar .nav-links a i {
      font-size: 20px;
    }

    .desktop-sidebar .nav-links a:hover, 
    .desktop-sidebar .nav-links a.active {
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
    }

    .desktop-sidebar .nav-links a.nav-pill-btn {
      background: linear-gradient(135deg, #ff0050, #7928ca);
      color: #fff !important;
      border-radius: 30px; 
      justify-content: center; 
      font-weight: 700;
      font-size: 14px;
      margin: 6px 12px;
      padding: 9px 14px;
      box-shadow: 0 3px 12px rgba(255, 0, 80, 0.3);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .desktop-sidebar .nav-links a.nav-pill-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 5px 18px rgba(255, 0, 80, 0.45);
      background: linear-gradient(135deg, #ff1a60, #8a35db);
    }

    /* --- CONTENUTO PRINCIPALE --- */
  .main-wrapper {
      flex: 1;
      display: flex;
      justify-content: flex-start; /* Sposta il contenuto verso sinistra invece di centrarlo perfettamente */
      padding-left: 40px;          /* Dà un piccolo margine iniziale dal bordo della sidebar */
      min-height: 100vh;
      overflow-y: auto;
      background: transparent !important;
    }

    .profile-page-container {
      max-width: 960px;
      width: 100%;
      min-height: 100vh;
      background: rgba(3, 3, 5, 0.45) !important;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-left: 1px solid rgba(255, 255, 255, 0.04);
      border-right: 1px solid rgba(255, 255, 255, 0.04);
      color: #fff;
      padding-bottom: 90px;
      position: relative;
    }
                                  
                                  .actions-row {
      display: flex;
      gap: 10px;
      width: 100%;
      max-width: 420px; /* Leggermente più largo ma sempre centrato ed elegante */
      margin: 12px auto 0 auto;
    }

    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 20px;
      font-size: 18px;
      font-weight: 700;
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .topbar a { color: #fff; text-decoration: none; }

    .profile-head {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 16px 20px 12px 20px; 
      text-align: center;
    }

    .profile-head img.avatar {
      width: 90px !important;
      height: 90px !important;
      border-radius: 50% !important;
      object-fit: cover !important;
      border: 3px solid rgba(255,255,255,0.15) !important;
      box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    }

    .profile-head .name {
      font-size: 20px;
      font-weight: 800;
      margin-top: 10px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

/* Badge blu stile TikTok - leggermente ingrandito */
.badge-verify {
  color: #20d5ec; /* Azzurro TikTok */
  font-size: 14px; /* Aumentato leggermente (era 13px) */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 3px;
  vertical-align: middle;
}

.badge-verify i {
  font-size: 14px !important; /* IMPORTANTE: Aumentato per far ingrandire l'icona (era 11px) */
}
    .tag.adm {
      background: linear-gradient(135deg, #ff0050, #7928ca);
      color: #fff;
      font-size: 10px;
      padding: 2px 6px;
      border-radius: 6px;
      font-weight: 800;
      letter-spacing: 0.5px;
    }

    .profile-head .handle {
      color: #a1a1aa !important;
      font-size: 14px !important;
      font-weight: 500 !important;
      margin-top: 2px !important;
    }

    .profile-head .stats {
      display: flex !important;
      justify-content: center !important;
      gap: 40px !important;
      margin: 14px 0 !important;
      width: 100%;
    }

    .profile-head .stats .stat .n {
      font-size: 20px !important;
      font-weight: 900 !important;
      color: #ffffff !important;
    }

    .profile-head .stats .stat .l {
      font-size: 13px !important;
      color: #a1a1aa !important;
      font-weight: 500 !important;
    }

    .bio, .profile-website {
      max-width: 100% !important;
      width: 100%;
      margin: 4px 0 !important;
      text-align: center !important;
      font-size: 14px !important;
      line-height: 1.4 !important;
      color: #e4e4e7 !important;
    }

    .actions-row {
      display: flex;
      gap: 10px;
      width: 100%;
      max-width: 365px;
      margin: 12px auto 0 auto;
    }

    .actions-row .btn {
      flex: 1;
      min-height: 38px;
      border-radius: 10px;
      font-weight: 700;
      font-size: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
      cursor: pointer;
      text-decoration: none;
      background: linear-gradient(135deg, #ff0050 0%, #7928ca 100%);
      color: #fff;
      box-shadow: 0 3px 10px rgba(255, 0, 80, 0.25);
      transition: transform 0.15s ease, opacity 0.15s ease;
    }

    .actions-row .btn:hover {
      opacity: 0.9;
      transform: translateY(-1px);
    }

    #fbtn.following {
      background: rgba(255, 255, 255, 0.1);
      box-shadow: none;
      color: #fff;
    }

    .profile-tabs {
      display: flex;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      margin-top: 8px;
    }

    .profile-tabs a {
      flex: 1;
      text-align: center;
      padding: 12px;
      font-weight: 700;
      font-size: 14px;
      color: #71717a;
      text-decoration: none;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: color 0.2s;
    }

    .profile-tabs a.active {
      color: #fff;
      border-bottom: 2px solid #ff0050;
    }

  .grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr); /* Passiamo a 4 colonne su PC per sfruttare lo spazio e accorciare i box */
      gap: 8px;
      padding: 12px;
    }

    .grid-item-wrapper {
      position: relative;
      aspect-ratio: 1 / 1; /* Cambiato da 9/16 a 1/1 (quadrato) o usa 4/5 se li vuoi leggermente più alti */
      overflow: hidden;
      background: #121216;
      border-radius: 8px;
    }

    .grid-item-wrapper img, .grid-item-wrapper video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .grid-item-wrapper .v {
      position: absolute;
      bottom: 8px;
      left: 8px;
      color: #fff;
      font-size: 14px;
      text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    }
                                  
                                  /* Media query per mantenere la griglia a 3 colonne su smartphone */
    @media (max-width: 767px) {
      .main-wrapper {
        padding-left: 0;
        justify-content: center;
      }
      .grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 4px;
        gap: 4px;
      }
      .grid-item-wrapper {
        aspect-ratio: 9/16; /* Su mobile restano in formato verticale originale */
        border-radius: 4px;
      }
    }

    .delete-reel-btn {
      position: absolute;
      top: 6px;
      right: 6px;
      background: rgba(0,0,0,0.6);
      border: none;
      color: #fff;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 5;
    }
    .delete-reel-btn:hover { background: #fe2c55 !important; }

    .empty {
      grid-column: 1/-1;
      text-align: center;
      padding: 50px 20px;
      color: #71717a;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      font-size: 15px;
    }
    .empty i { font-size: 36px; }

    .mobile-bottom-nav {
      display: none;
    }

    @media (max-width: 767px) {
      body {
        flex-direction: column;
      }
      .desktop-sidebar {
        display: none !important;
      }
      .main-wrapper {
        display: block;
        width: 100%;
      }
      .profile-page-container {
        max-width: 100% !important;
        width: 100% !important;
        padding-bottom: 80px;
      }

      .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: rgba(9, 9, 11, 0.9);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
      }

      .mobile-bottom-nav a {
        color: #a1a1aa;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 11px;
        gap: 2px;
      }
      .mobile-bottom-nav a i { font-size: 20px; }
      .mobile-bottom-nav a.active { color: #fff; }

      .mobile-bottom-nav .nav-add-btn {
        background: linear-gradient(135deg, #ff0050, #7928ca);
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(255, 0, 80, 0.4);
      }
      .mobile-bottom-nav .nav-add-btn i {
        font-size: 22px !important;
        color: #fff !important;
      }
    }
* { box-sizing: border-box; margin: 0; padding: 0; }
    
    html, body {
      width: 100%; height: 100%; background-color: #030305; color: #fff;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      overflow-x: hidden; user-select: none;
      -webkit-tap-highlight-color: transparent;
      overscroll-behavior-y: none;
    }

    body {
      display: flex;
      justify-content: flex-start;
    }

    /* --- SIDEBAR DESKTOP --- */
    .desktop-sidebar {
      width: 260px;
      height: 100vh;
      height: 100dvh;
      background: #09090b;
      border-right: 1px solid #27272a;
      display: flex;
      flex-direction: column;
      padding: 24px 16px;
      z-index: 1000;
      flex-shrink: 0;
      position: sticky;
      top: 0;
    }

    .desktop-sidebar .brand {
      font-size: 22px;
      font-weight: 800;
      color: #fff;
      margin-bottom: 30px;
      padding-left: 12px;
      letter-spacing: 0.5px;
    }

    .desktop-sidebar .nav-links {
      display: flex;
      flex-direction: column;
      gap: 6px;
      flex: 1;
    }

    .desktop-sidebar .nav-links a {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 12px 16px;
      color: #a1a1aa;
      text-decoration: none;
      font-size: 15px;
      font-weight: 600;
      border-radius: 10px;
      transition: all 0.2s ease;
    }

    .desktop-sidebar .nav-links a i {
      font-size: 20px;
    }

    .desktop-sidebar .nav-links a:hover, 
    .desktop-sidebar .nav-links a.active {
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
    }

    /* Pulsante a pillola Pubblica Post nella sidebar desktop */
    .desktop-sidebar .nav-links a.nav-pill-btn {
      background: linear-gradient(135deg, #ff0050, #7928ca);
      color: #fff !important;
      border-radius: 30px; 
      justify-content: center; 
      font-weight: 700;
      font-size: 14px;
      margin: 6px 12px;
      padding: 9px 14px;
      box-shadow: 0 3px 12px rgba(255, 0, 80, 0.3);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .desktop-sidebar .nav-links a.nav-pill-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 5px 18px rgba(255, 0, 80, 0.45);
      background: linear-gradient(135deg, #ff1a60, #8a35db);
    }

    /* --- CONTENUTO PRINCIPALE --- */
    .main-wrapper {
      flex: 1;
      display: flex;
      justify-content: center;
      min-height: 100vh;
      overflow-y: auto;
    }

    .topbar {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
    }
    .topbar h2 {
        font-size: 22px;
        font-weight: 800;
        background: linear-gradient(135deg, #fff 40%, #a1a1aa 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .topbar .back {
        color: #fff;
        font-size: 20px;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        transition: background 0.2s ease;
    }
    .topbar .back:hover {
        background: rgba(255, 255, 255, 0.12);
    }

    /* Stile pulito per la pagina delle impostazioni */
    .page {
        max-width: 600px;
        width: 100%;
        margin: 0 auto;
        padding: 25px 16px 90px 16px;
        box-sizing: border-box;
    }

    .page .card {
        background: linear-gradient(145deg, rgba(24, 24, 30, 0.7), rgba(14, 14, 18, 0.8));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        padding: 20px;
        margin-bottom: 16px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    }

    .page .field {
        margin-bottom: 14px;
    }

    .page .field label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #a1a1aa;
        margin-bottom: 6px;
    }

    .page .field input[type="text"],
    .page .field input[type="password"],
    .page .field select,
    .page .field textarea {
        width: 100%;
        padding: 12px 14px;
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        color: #ffffff;
        font-size: 14px;
        outline: none;
        box-sizing: border-box;
        font-family: inherit;
        transition: all 0.2s ease;
    }

    /* Stile professionale ed elegante per il menu a tendina (select) */
    .page .field select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 14px center;
        background-size: 16px;
        padding-right: 40px;
        cursor: pointer;
    }

    .page .field select option {
        background-color: #121216;
        color: #ffffff;
        padding: 10px;
    }

    .page .field textarea {
        resize: vertical;
    }

    .page .field input:focus,
    .page .field select:focus,
    .page .field textarea:focus {
        border-color: #ff0050;
        background: rgba(0, 0, 0, 0.6);
        box-shadow: 0 0 15px rgba(255, 0, 80, 0.2);
    }

    .page .btn {
        width: 100%;
        padding: 14px;
        background: linear-gradient(135deg, #ff0050 0%, #7928ca 100%);
        color: white;
        border: none;
        border-radius: 14px;
        font-weight: 600;
        font-size: 15px;
        cursor: pointer;
        text-align: center;
        box-shadow: 0 4px 15px rgba(255, 0, 80, 0.3);
        transition: all 0.2s ease;
    }
    .page .btn:hover {
        opacity: 0.92;
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(255, 0, 80, 0.4);
    }

    .page .btn.danger {
        background: rgba(239, 68, 68, 0.15);
        color: #ef4444;
        border: 1px solid rgba(239, 68, 68, 0.3);
        box-shadow: none;
    }
    .page .btn.danger:hover {
        background: rgba(239, 68, 68, 0.25);
    }

    .page .btn.ghost {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #fff;
        box-shadow: none;
    }
    .page .btn.ghost:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    /* --- LAYOUT MOBILE --- */
    .mobile-bottom-nav {
      display: none;
    }

    @media (max-width: 767px) {
      .desktop-sidebar {
        display: none !important;
      }
      .main-wrapper {
        display: block;
        width: 100%;
      }
      .page {
        padding: 15px 12px 80px 12px;
      }

      /* Mostra il menu in basso su mobile */
      .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: #09090b;
        border-top: 1px solid #27272a;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
      }

      .mobile-bottom-nav a {
        color: #a1a1aa;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 11px;
        gap: 2px;
      }
      .mobile-bottom-nav a i { font-size: 20px; }
      .mobile-bottom-nav a.active { color: #fff; }

      .mobile-bottom-nav .nav-add-btn {
        background: linear-gradient(135deg, #ff0050, #7928ca);
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(255, 0, 80, 0.4);
      }
      .mobile-bottom-nav .nav-add-btn i {
        font-size: 22px !important;
        color: #fff !important;
      }
    }

    /* Scrollbar personalizzata */
    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; }
    ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4); }
 * { box-sizing: border-box; margin: 0; padding: 0; }
    html, body { width: 100%; height: 100%; height: 100dvh; background: #000; color: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; overflow: hidden; position: fixed; }

    .page { position: absolute; inset: 0; width: 100%; height: 100%; height: 100dvh; background: #000; z-index: 99999; display: flex; flex-direction: column; }

    .recorder { position: relative; width: 100%; height: 100%; background: #000; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
    
    .recorder video { 
      position: absolute; 
      inset: 0; 
      width: 100%; 
      height: 100%; 
      object-fit: cover; 
      z-index: 1; 
      transition: filter 0.3s ease; 
      background: #000; 
    }
    
    .recorder video.mirrored {
      transform: scaleX(-1);
    }
    
    .rec-progress { position: absolute; top: 0; left: 0; height: 4px; background: #ff0050; width: 0%; z-index: 30; transition: width 0.1s linear; }

    .rec-top { position: relative; z-index: 15; display: flex; align-items: center; justify-content: space-between; padding: 12px; gap: 6px; background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent); }
    
    .mode-switch { display: flex; background: rgba(0,0,0,0.6); border-radius: 20px; padding: 2px; border: 1px solid rgba(255,255,255,0.2); }
    .mode-switch button { background: none; border: none; color: rgba(255,255,255,0.7); padding: 6px 10px; font-weight: 600; font-size: 12px; border-radius: 16px; cursor: pointer; display: flex; align-items: center; gap: 4px; transition: all 0.2s; }
    .mode-switch button.active { background: #fff; color: #000; }

    .cam-tools { display: flex; align-items: center; gap: 6px; }

    .zoom-picker { display: flex; gap: 2px; background: rgba(0,0,0,0.6); padding: 4px 6px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.15); }
    .zoom-btn { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 11px; font-weight: 700; padding: 4px 6px; border-radius: 12px; cursor: pointer; }
    .zoom-btn.active { background: rgba(255,255,255,0.3); color: #fff; }

    .icon-btn { background: rgba(0,0,0,0.6); border: none; color: #fff; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; border: 1px solid rgba(255,255,255,0.2); transition: transform 0.15s ease; flex-shrink: 0; text-decoration: none; }
    .icon-btn:active { transform: scale(0.9); }

    .filter-btn-cycle { background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 0 10px; height: 38px; border-radius: 20px; display: flex; align-items: center; gap: 4px; cursor: pointer; font-size: 11px; font-weight: 600; flex-shrink: 0; }
    .filter-btn-cycle i { font-size: 14px; color: #ff0050; }

    .rec-controls { position: relative; z-index: 15; display: flex; align-items: center; justify-content: space-between; padding: 15px 30px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); }
    
    .rec-btn-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; position: relative; }
    
    /* MODIFICATO: Spaziatura e dimensioni aumentate per ospitare una barra circolare gialla più spessa ed evidente */
    .rec-btn-container { position: relative; width: 94px; height: 94px; display: flex; align-items: center; justify-content: center; }
    .rec-progress-svg { position: absolute; top: 0; left: 0; width: 94px; height: 94px; transform: rotate(-90deg); pointer-events: none; filter: drop-shadow(0 0 6px rgba(255, 235, 59, 0.6)); }
    .rec-progress-svg circle { fill: none; stroke: #ffeb3b; stroke-width: 8; stroke-dasharray: 264; stroke-dashoffset: 264; transition: stroke-dashoffset 0.05s linear; stroke-linecap: round; }

    .rec-btn { width: 68px; height: 68px; border-radius: 50%; border: 4px solid #fff; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 4px; box-shadow: 0 0 20px rgba(0,0,0,0.6); position: relative; z-index: 2; }
    .rec-btn .inner { width: 100%; height: 100%; background: #ff0050; border-radius: 50%; transition: all 0.2s ease; }
    .rec-btn.recording .inner { border-radius: 12px; transform: scale(0.5); }

    .rec-timer { position: absolute; top: -32px; left: 50%; transform: translateX(-50%); background: rgba(255, 0, 80, 0.95); color: #fff; padding: 4px 12px; border-radius: 14px; font-size: 12px; font-weight: 700; display: none; box-shadow: 0 4px 10px rgba(0,0,0,0.5); z-index: 5; }
    
    .filter-sepia { filter: sepia(0.8); }
    .filter-grayscale { filter: grayscale(1); }
    .filter-vintage { filter: contrast(1.2) saturate(1.3) sepia(0.3); }
    .filter-warm { filter: sepia(0.4) saturate(1.4); }
    .filter-cool { filter: hue-rotate(30deg) saturate(1.1); }
    .filter-cinematic { filter: contrast(1.3) brightness(0.95) saturate(1.2); }

    #pane-post { position: absolute; inset: 0; background: #000; z-index: 50; display: none; padding: 30px 20px; overflow-y: auto; }
    .card-post { background: #18181b; padding: 20px; border-radius: 20px; border: 1px solid #27272a; max-width: 480px; margin: 0 auto; }
    .field { margin-bottom: 16px; }
    .field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #d4d4d8; }
    .field input, .field textarea { width: 100%; background: #09090b; border: 1px solid #27272a; color: #fff; padding: 12px; border-radius: 12px; outline: none; font-size: 14px; }
    
    .btn { width: 100%; background: #ff0050; color: #fff; border: none; padding: 14px; border-radius: 12px; font-weight: 600; font-size: 15px; cursor: pointer; transition: background 0.2s; margin-top: 10px; }
    .btn:hover { background: #e00046; }

    #pane-upload { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000; padding: 20px; max-width: 480px; margin: 0 auto; right: 0; display: none; z-index: 20; overflow-y: auto; }
    .card-upload { background: #18181b; padding: 20px; border-radius: 20px; border: 1px solid #27272a; margin-top: 60px; }
 * { box-sizing: border-box; margin: 0; padding: 0; }
    
    html, body {
      width: 100%; height: 100%; background-color: #000; color: #fff;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      overflow-x: hidden; user-select: none;
    }

    body {
      display: flex;
      justify-content: flex-start;
      background: #000;
    }

    /* --- SIDEBAR DESKTOP --- */
    .desktop-sidebar {
      width: 260px;
      height: 100vh;
      height: 100dvh;
      background: #09090b;
      border-right: 1px solid #27272a;
      display: flex;
      flex-direction: column;
      padding: 24px 16px;
      z-index: 1000;
      flex-shrink: 0;
      position: sticky;
      top: 0;
    }

    .desktop-sidebar .brand {
      font-size: 22px;
      font-weight: 800;
      color: #fff;
      margin-bottom: 30px;
      padding-left: 12px;
      letter-spacing: 0.5px;
    }

    .desktop-sidebar .nav-links {
      display: flex;
      flex-direction: column;
      gap: 6px;
      flex: 1;
    }

    .desktop-sidebar .nav-links a {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 12px 16px;
      color: #a1a1aa;
      text-decoration: none;
      font-size: 15px;
      font-weight: 600;
      border-radius: 10px;
      transition: all 0.2s ease;
    }

    .desktop-sidebar .nav-links a i {
      font-size: 20px;
    }

    .desktop-sidebar .nav-links a:hover, 
    .desktop-sidebar .nav-links a.active {
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
    }

    /* Pulsante a pillola Pubblica Post nella sidebar desktop */
    .desktop-sidebar .nav-links a.nav-pill-btn {
      background: linear-gradient(135deg, #ff0050, #7928ca);
      color: #fff !important;
      border-radius: 30px; 
      justify-content: center; 
      font-weight: 700;
      font-size: 14px;
      margin: 6px 12px;
      padding: 9px 14px;
      box-shadow: 0 3px 12px rgba(255, 0, 80, 0.3);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .desktop-sidebar .nav-links a.nav-pill-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 5px 18px rgba(255, 0, 80, 0.45);
      background: linear-gradient(135deg, #ff1a60, #8a35db);
    }

    /* --- CONTENUTO PRINCIPALE --- */
    .main-content {
      flex: 1;
      max-width: 600px;
      margin: 0 auto;
      padding: 20px;
      min-height: 100vh;
      overflow-y: auto;
    }

    .topbar {
      padding: 12px 0 20px 0;
      font-size: 20px;
      font-weight: 700;
    }

    .field input {
      width: 100%;
      background: #18181b;
      border: 1px solid #27272a;
      color: #fff;
      padding: 12px 16px;
      border-radius: 12px;
      outline: none;
      font-size: 14px;
      margin-bottom: 20px;
    }
    .field input:focus {
      border-color: #52525b;
    }

    .user-item-row {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      background: #121214;
      padding: 12px 16px;
      border-radius: 12px;
      margin-bottom: 10px;
      border: 1px solid #1f1f23;
    }

    .user-info-link {
      display: flex !important;
      align-items: center !important;
      text-decoration: none !important;
      color: inherit !important;
      flex-grow: 1;
      min-width: 0;
    }

    .user-info-link img {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      object-fit: cover;
      background: #27272a;
    }

.badge-verify {
      color: #38bdf8 !important; /* <-- Rimesso azzurro */
      font-size: 16px !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      flex-shrink: 0;
      background: transparent !important;
    }

    .badge-verify i {
      display: inline-block !important;
      font-family: "remixicon" !important;
      font-style: normal !important;
      -webkit-font-smoothing: antialiased;
    }

    /* Stile per il bottone Segui */
    .btn-follow {
      background-color: #ff0050;
      color: white;
      border: none;
      font-weight: 600;
      padding: 8px 18px;
      border-radius: 10px;
      cursor: pointer;
      white-space: nowrap;
      font-size: 13px;
      transition: background 0.2s, opacity 0.2s;
    }

    .btn-follow.following {
      background-color: #27272a;
      color: #fff;
      border: none;
    }

    .empty {
      text-align: center;
      color: #a1a1aa;
      padding-top: 50px;
      font-size: 14px;
    }
    .empty i {
      font-size: 32px;
      display: block;
      margin-bottom: 8px;
    }

    /* --- LAYOUT MOBILE --- */
    .mobile-bottom-nav {
      display: none;
    }

    @media (max-width: 767px) {
      .desktop-sidebar {
        display: none !important;
      }
      .main-content {
        max-width: 100%;
        padding: 16px;
        padding-bottom: 80px;
      }

      .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: #09090b;
        border-top: 1px solid #27272a;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
      }

      .mobile-bottom-nav a {
        color: #a1a1aa;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 11px;
        gap: 2px;
      }
      .mobile-bottom-nav a i { font-size: 20px; }
      .mobile-bottom-nav a.active { color: #fff; }

      .mobile-bottom-nav .nav-add-btn {
        background: linear-gradient(135deg, #ff0050, #7928ca);
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(255, 0, 80, 0.4);
      }
      .mobile-bottom-nav .nav-add-btn i {
        font-size: 22px !important;
        color: #fff !important;
      }
    }
* { box-sizing: border-box; margin: 0; padding: 0; }
    
    html, body {
      width: 100%; height: 100%; background-color: #030305; color: #fff;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      overflow-x: hidden; user-select: none;
      -webkit-tap-highlight-color: transparent;
      overscroll-behavior-y: none;
    }

    body {
      display: flex;
      justify-content: flex-start;
    }

    /* --- SIDEBAR DESKTOP --- */
    .desktop-sidebar {
      width: 260px;
      height: 100vh;
      height: 100dvh;
      background: #09090b;
      border-right: 1px solid #27272a;
      display: flex;
      flex-direction: column;
      padding: 24px 16px;
      z-index: 1000;
      flex-shrink: 0;
      position: sticky;
      top: 0;
    }

    .desktop-sidebar .brand {
      font-size: 22px;
      font-weight: 800;
      color: #fff;
      margin-bottom: 30px;
      padding-left: 12px;
      letter-spacing: 0.5px;
    }

    .desktop-sidebar .nav-links {
      display: flex;
      flex-direction: column;
      gap: 6px;
      flex: 1;
    }

    .desktop-sidebar .nav-links a {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 12px 16px;
      color: #a1a1aa;
      text-decoration: none;
      font-size: 15px;
      font-weight: 600;
      border-radius: 10px;
      transition: all 0.2s ease;
    }

    .desktop-sidebar .nav-links a i {
      font-size: 20px;
    }

    .desktop-sidebar .nav-links a:hover, 
    .desktop-sidebar .nav-links a.active {
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
    }

    /* Pulsante a pillola Pubblica Post nella sidebar desktop */
    .desktop-sidebar .nav-links a.nav-pill-btn {
      background: linear-gradient(135deg, #ff0050, #7928ca);
      color: #fff !important;
      border-radius: 30px; 
      justify-content: center; 
      font-weight: 700;
      font-size: 14px;
      margin: 6px 12px;
      padding: 9px 14px;
      box-shadow: 0 3px 12px rgba(255, 0, 80, 0.3);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .desktop-sidebar .nav-links a.nav-pill-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 5px 18px rgba(255, 0, 80, 0.45);
      background: linear-gradient(135deg, #ff1a60, #8a35db);
    }

    /* --- CONTENUTO PRINCIPALE --- */
    .main-wrapper {
      flex: 1;
      display: flex;
      justify-content: center;
      min-height: 100vh;
      overflow-y: auto;
    }

    .page-container {
      max-width: 620px;
      width: 100%;
      margin: 25px auto 90px auto;
      padding: 0 16px;
      box-sizing: border-box;
    }

    .topbar {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 24px;
    }

    .topbar .back {
      width: 40px; height: 40px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      color: #fff; text-decoration: none;
      transition: all 0.2s ease;
    }
    .topbar .back:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    .topbar h2 {
      font-size: 22px;
      font-weight: 800;
      letter-spacing: -0.5px;
      background: linear-gradient(135deg, #fff 40%, #a1a1aa 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .card {
      background: linear-gradient(145deg, rgba(24, 24, 30, 0.7), rgba(14, 14, 18, 0.8));
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 24px;
      padding: 22px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
      margin-bottom: 20px;
      box-sizing: border-box;
      transition: border-color 0.3s ease;
    }
    .card:hover {
      border-color: rgba(255, 255, 255, 0.15);
    }

    .field {
      margin-bottom: 16px;
    }
    .field label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: #a1a1aa;
      margin-bottom: 8px;
    }

    textarea, input[type="text"], input[name="link"] {
      width: 100%;
      background: rgba(0, 0, 0, 0.4);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 16px;
      padding: 14px 16px;
      color: #ffffff;
      font-size: 15px;
      outline: none;
      box-sizing: border-box;
      font-family: inherit;
      transition: all 0.2s ease;
    }
    textarea { resize: none; }
    textarea::placeholder, input::placeholder {
      color: rgba(255, 255, 255, 0.4);
    }
    textarea:focus, input:focus {
      border-color: #ff0050;
      background: rgba(0, 0, 0, 0.6);
      box-shadow: 0 0 15px rgba(255, 0, 80, 0.2);
    }

    .btn-gradient {
      background: linear-gradient(135deg, #ff0050 0%, #7928ca 100%);
      color: #fff;
      border: none;
      width: 100%;
      padding: 14px;
      border-radius: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s ease;
      font-size: 15px;
      box-shadow: 0 4px 15px rgba(255, 0, 80, 0.3);
      text-align: center;
    }
    .btn-gradient:hover {
      opacity: 0.92;
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(255, 0, 80, 0.4);
    }

    /* Tag Stati */
    .tag {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 4px 10px;
      border-radius: 8px;
      font-size: 11px;
      font-weight: 700;
    }
    .tag.ok {
      background: rgba(16, 185, 129, 0.15);
      color: #34d399;
      border: 1px solid rgba(16, 185, 129, 0.3);
    }
    .tag.no {
      background: rgba(239, 68, 68, 0.15);
      color: #f87171;
      border: 1px solid rgba(239, 68, 68, 0.3);
    }
    .tag.pen {
      background: rgba(245, 158, 11, 0.15);
      color: #fbbf24;
      border: 1px solid rgba(245, 158, 11, 0.3);
    }

    /* --- LAYOUT MOBILE --- */
    .mobile-bottom-nav {
      display: none;
    }

    @media (max-width: 767px) {
      .desktop-sidebar {
        display: none !important;
      }
      .main-wrapper {
        display: block;
        width: 100%;
      }
      .page-container {
        margin: 15px auto 80px auto;
        padding: 0 12px;
      }

      /* Mostra il menu in basso su mobile */
      .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: #09090b;
        border-top: 1px solid #27272a;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
      }

      .mobile-bottom-nav a {
        color: #a1a1aa;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 11px;
        gap: 2px;
      }
      .mobile-bottom-nav a i { font-size: 20px; }
      .mobile-bottom-nav a.active { color: #fff; }

      /* Pulsante centrale "+" nel menu mobile in basso */
      .mobile-bottom-nav .nav-add-btn {
        background: linear-gradient(135deg, #ff0050, #7928ca);
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(255, 0, 80, 0.4);
      }
      .mobile-bottom-nav .nav-add-btn i {
        font-size: 22px !important;
        color: #fff !important;
      }
    }