/* =========================================
   VARIÁVEIS GLOBAIS (PREMIUM & NEON)
   ========================================= */
   :root {
    --primary-color: #ff007f;
    --primary-hover: #d81b60;
    --dark-bg: #0a0a0c;
    --darker-bg: #121212;
    --light-bg: rgba(30, 30, 34, 0.7); /* Efeito Vidro Escuro */
    --text-color: #ffffff;
    --text-secondary: #888890;
    --border-color: rgba(255, 255, 255, 0.08);
    --success-color: #00e676;
    --error-color: #ff1744;
    --warning-color: #ff9800;
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    background-image: radial-gradient(circle at 50% 0%, rgba(255, 0, 127, 0.05) 0%, transparent 70%);
    background-attachment: fixed;
    -webkit-tap-highlight-color: transparent;
  }
  
  #app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  /* =========================================
     ESTILOS GERAIS (BOTÕES, INPUTS, ETC)
     ========================================= */
  a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  a:hover {
    color: var(--primary-hover);
  }
  
  button, .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), #b30059);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3);
  }
  
  button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 127, 0.5);
  }
  
  button:active, .btn:active {
    transform: translateY(0);
  }
  
  button:disabled, .btn:disabled {
    background: #444;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
  }
  
  /* =========================================
     FEED E STORIES (NOVO DESIGN APP)
     ========================================= */
  
  .feed-wrapper {
    max-width: 600px; /* Estilo Instagram Mobile */
    margin: 80px auto 100px auto; /* Espaço pro Header e Footer */
    padding: 0;
  }
  
  .sessao-titulo {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 15px;
    margin: 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .sessao-titulo i {
    color: var(--primary-color);
  }
  
  /* Carrossel Horizontal (Stories) */
  .scroll-horizontal {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 15px 20px 15px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
  }
  .scroll-horizontal::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
  }
  
  .story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 75px;
  }
  
  .story-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 5px 15px rgba(204, 35, 102, 0.3);
    transition: transform 0.2s;
  }
  .story-item.online .story-avatar {
    background: linear-gradient(45deg, #00e676, #1df5ad);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
    animation: pulse-online 2s infinite;
  }
  
  .story-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--dark-bg);
  }
  
  .story-item span {
    font-size: 0.75rem;
    color: #e0e0e0;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75px;
  }
  
  .story-item:active .story-avatar {
    transform: scale(0.95);
  }
  
  @keyframes pulse-online {
    0% { box-shadow: 0 0 5px rgba(0, 230, 118, 0.2); }
    50% { box-shadow: 0 0 15px rgba(0, 230, 118, 0.6); }
    100% { box-shadow: 0 0 5px rgba(0, 230, 118, 0.2); }
  }
  
  /* Feed de Publicações (Cards) */
  .feed-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 0 15px;
  }
  
  .post-card {
    background: var(--light-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .post-header {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .post-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
  }
  
  .post-header .autor-nome {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
  }
  
  .post-header .autor-verificado {
    color: #00b0ff;
    font-size: 0.8rem;
    margin-left: 4px;
  }
  
  .post-midia-container {
    position: relative;
    width: 100%;
    background: #000;
    aspect-ratio: 4/5; /* Formato retrato perfeito para mobile */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }
  
  .post-midia-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
  }
  
  /* Estilo do conteúdo Bloqueado */
  .midia-bloqueada {
    filter: blur(15px) brightness(0.6);
    transform: scale(1.1); /* Evita bordas brancas no blur */
  }
  
  .overlay-bloqueado {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 10;
    padding: 20px;
    text-align: center;
  }
  
  .icone-cadeado {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
  }
  
  .btn-desbloquear {
    background: #fff;
    color: #000;
    border-radius: 30px;
    padding: 12px 25px;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  }
  .btn-desbloquear i { color: var(--primary-color); }
  .btn-desbloquear:hover { background: #f0f0f0; transform: scale(1.05); }
  
  .post-info {
    padding: 15px;
  }
  
  .post-info .acoes {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 1.4rem;
  }
  .post-info .acoes i { cursor: pointer; transition: 0.2s; }
  .post-info .acoes i:hover { color: var(--primary-color); transform: scale(1.2); }
  
  .post-info .descricao {
    font-size: 0.9rem;
    color: #e0e0e0;
    line-height: 1.4;
  }
  .post-info .descricao strong { color: #fff; }
  
  /* =========================================
     MODAL DE IMAGEM / VÍDEO (VIP)
     ========================================= */
  #imageModal {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
  }
  
  #modalImage, #videomodalImage {
    max-width: 95%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    object-fit: contain;
  }
  
  #closeBtn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    z-index: 100000;
    padding: 0;
  }
  #closeBtn:hover { background: var(--primary-color); border-color: var(--primary-color); transform: rotate(90deg); }