:root {
    --bg-dark: #000000;
    --card-bg: #121212;
    --border-color: #262626;
    --accent: #ff2a74;
    --text: #ffffff;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding-bottom: 70px;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #000;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }

.btn-pwa {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.8rem;
}

.btn-login-head { color: var(--accent); text-decoration: none; font-weight: bold; }

/* Feed estilo Instagram */
.feed-container { max-width: 470px; margin: 0 auto; }

.insta-card {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.card-header {
    display: flex;
    align-items: center;
    padding: 10px 14px;
}

.avatar {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}

.badge-character { font-size: 0.75rem; color: #888; display: block; }

/* Enquadramento Perfeito da Imagem */
.media-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    background: #050505;
    overflow: hidden;
}

.carousel { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; }
.protected-img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
    user-select: none;
}

.photo-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* Bloqueio Premium */
.locked-media { position: relative; width: 100%; height: 100%; }
.blur-img { width: 100%; height: 100%; object-fit: cover; filter: blur(30px) brightness(0.4); }
.lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.btn-unlock {
    background: var(--accent);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.card-caption { padding: 12px 14px; font-size: 0.9rem; }
.time-ago { color: #666; font-size: 0.75rem; }

/* Menu Inferior Instagram */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    background: #000;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.nav-item { color: #888; text-decoration: none; display: flex; flex-direction: column; align-items: center; font-size: 0.65rem; }
.nav-item.active { color: #fff; }
.nav-item.accent { color: var(--accent); }

/* Formuários e Upload */
.upload-container { max-width: 450px; margin: 20px auto; padding: 15px; }
.insta-form input, .insta-form select {
    width: 100%;
    padding: 12px;
    background: #121212;
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 8px;
    margin-top: 6px;
    margin-bottom: 14px;
    box-sizing: border-box;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    border: none;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
}

.btn-sec {
    width: 100%;
    padding: 12px;
    background: #222;
    border: none;
    color: #fff;
    border-radius: 8px;
}

.alert-info { background: rgba(0, 255, 136, 0.1); color: #00ff88; padding: 10px; border-radius: 8px; text-align: center; }

.admin-card { background: #121212; border: 1px solid #222; padding: 15px; border-radius: 8px; margin-bottom: 10px; }
.admin-actions { display: flex; gap: 8px; margin-top: 10px; }
.btn-ok { background: #00ff88; color: #000; padding: 6px 12px; border-radius: 6px; text-decoration: none; font-weight: bold; }
.btn-no { background: red; color: #fff; padding: 6px 12px; border-radius: 6px; text-decoration: none; font-weight: bold; }

/* Feed com 2 Cards (Personagem x Cosplay) */
.dual-card-feed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: #000;
}

.feed-media-box {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #050505;
}

.media-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.65rem;
    padding: 3px 6px;
    border-radius: 4px;
    z-index: 2;
}

/* Banner Promocional */
.promo-banner-card {
    background: linear-gradient(135deg, #1a000a, #330015);
    border: 1px solid var(--accent);
    padding: 15px;
    border-radius: 12px;
    margin: 15px;
    text-align: center;
}

.btn-unlock-vip {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 10px;
}

/* Seção de Comentários e Reações */
.comments-section { padding: 10px 14px; border-top: 1px solid #1a1a1a; }
.comment-item { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; margin-bottom: 6px; }
.badge-influencer { background: var(--accent); color: #fff; font-size: 0.6rem; padding: 2px 4px; border-radius: 4px; }
.btn-react { text-decoration: none; font-size: 0.8rem; cursor: pointer; }

.comment-form { display: flex; margin-top: 10px; }
.comment-form input { flex: 1; background: #121212; border: 1px solid #222; color: #fff; padding: 8px 12px; border-radius: 16px; font-size: 0.85rem; }
.comment-form button { background: none; border: none; color: var(--accent); font-weight: bold; padding-left: 10px; cursor: pointer; }

/* Botão Flutuante PWA Discreto */
.pwa-float-btn {
    position: fixed;
    bottom: 70px;
    right: 15px;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(255, 42, 116, 0.4);
    z-index: 999;
}