* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --success: #10B981;
    --danger: #EF4444;
    --info: #3B82F6;
    --dark: #0a0a0f;
    --darker: #050508;
    --card: rgba(255,255,255,0.05);
    --card-solid: #12121a;
    --border: rgba(255,255,255,0.1);
    --text: #fff;
    --text-muted: #888;
}
html, body { height: 100%; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--dark); color: var(--text); overflow-x: hidden; }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; right: 0; height: 60px; background: rgba(10,10,15,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); z-index: 100; }
.nav-container { max-width: 1200px; margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { font-size: 28px; }
.logo-text { font-size: 20px; font-weight: 800; background: linear-gradient(135deg, var(--primary), #FF8F6B); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 8px; }
.nav-link { padding: 8px 16px; border-radius: 20px; color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 14px; transition: all 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--card); }
.get-app-btn { display: flex; align-items: center; gap: 6px; padding: 10px 20px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; text-decoration: none; border-radius: 25px; font-weight: 600; font-size: 14px; transition: all 0.3s; }
.get-app-btn:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(255,107,53,0.4); }

/* Main Content */
.main-content { padding-top: 60px; min-height: 100vh; }
.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Feed */
.feed-container { max-width: 420px; margin: 0 auto; padding: 20px; }
.feed-header { text-align: center; margin-bottom: 20px; }
.feed-header h2 { font-size: 24px; margin-bottom: 4px; }
.feed-header p { color: var(--text-muted); font-size: 14px; }

/* Card Stack */
.card-stack { position: relative; height: 580px; perspective: 1000px; }
.photo-card { position: absolute; width: 100%; height: 100%; background: var(--card-solid); border-radius: 24px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.5); transition: transform 0.3s ease, opacity 0.3s ease; }
.photo-card.behind { transform: scale(0.95) translateY(20px); opacity: 0.5; z-index: 1; }
.photo-card.active { z-index: 10; }
.photo-card.swiping-left { transform: translateX(-120%) rotate(-20deg); opacity: 0; }
.photo-card.swiping-right { transform: translateX(120%) rotate(20deg); opacity: 0; }

.card-image { width: 100%; height: 360px; object-fit: cover; background: #1a1a1a; }
.card-content { padding: 16px; }
.card-user { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.card-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.card-user-info { flex: 1; }
.card-username { font-weight: 600; font-size: 15px; }
.card-time { font-size: 12px; color: var(--text-muted); }
.card-caption { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.card-actions { display: flex; gap: 12px; justify-content: center; }
.vote-btn { flex: 1; padding: 14px; border: none; border-radius: 16px; font-size: 18px; font-weight: 700; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.vote-btn.lit { background: linear-gradient(135deg, #FF6B35, #FF4500); color: #fff; }
.vote-btn.not { background: linear-gradient(135deg, #3B82F6, #1D4ED8); color: #fff; }
.vote-btn:hover { transform: scale(1.02); }
.vote-btn:active { transform: scale(0.98); }
.vote-btn.voted { opacity: 0.6; pointer-events: none; }
.vote-count { font-size: 14px; font-weight: 500; }

.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.share-btn-small { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; padding: 8px; transition: all 0.2s; }
.share-btn-small:hover { color: var(--text); transform: scale(1.1); }
.vote-stats { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); }
.vote-stats span { display: flex; align-items: center; gap: 4px; }

/* Vote Result Overlay */
.vote-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.8); opacity: 0; pointer-events: none; transition: opacity 0.3s; border-radius: 24px; }
.vote-overlay.show { opacity: 1; }
.vote-result { text-align: center; }
.vote-result-icon { font-size: 64px; animation: bounceIn 0.5s ease; }
.vote-result-text { font-size: 24px; font-weight: 700; margin-top: 12px; }
.vote-result-stats { margin-top: 16px; padding: 16px; background: var(--card); border-radius: 12px; }
.vote-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin: 8px 0; }
.vote-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #FF8F6B); transition: width 0.5s ease; }
@keyframes bounceIn { 0% { transform: scale(0); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* Loading Card */
.loading-card { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; background: var(--card-solid); border-radius: 24px; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-card p { margin-top: 16px; color: var(--text-muted); }

/* Empty Feed */
.empty-feed { text-align: center; padding: 60px 20px; }
.empty-feed.hidden { display: none; }
.empty-icon { font-size: 64px; display: block; margin-bottom: 16px; }
.empty-feed h3 { margin-bottom: 8px; }
.empty-feed p { color: var(--text-muted); margin-bottom: 20px; }

/* Trending */
.trending-container { max-width: 1000px; margin: 0 auto; padding: 30px 20px; }
.trending-container h2 { margin-bottom: 24px; }
.trending-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.trending-item { background: var(--card-solid); border-radius: 16px; overflow: hidden; cursor: pointer; transition: all 0.3s; }
.trending-item:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.trending-item img { width: 100%; height: 200px; object-fit: cover; }
.trending-item-info { padding: 12px; }
.trending-item-stats { display: flex; justify-content: space-between; font-size: 13px; }
.trending-item-stats .lit { color: var(--primary); }
.trending-item-stats .not { color: var(--info); }

/* Profile */
.profile-container { max-width: 500px; margin: 0 auto; padding: 30px 20px; }
.profile-card { background: var(--card-solid); border-radius: 24px; padding: 40px; text-align: center; margin-bottom: 24px; }
.profile-guest .guest-icon { font-size: 80px; display: block; margin-bottom: 16px; opacity: 0.5; }
.profile-guest h3 { margin-bottom: 8px; }
.profile-guest p { color: var(--text-muted); margin-bottom: 24px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-item { background: var(--card-solid); border-radius: 16px; padding: 20px; text-align: center; }
.stat-value { display: block; font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Buttons */
.btn { padding: 12px 24px; border: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 16px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }

/* Modal */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 200; justify-content: center; align-items: center; backdrop-filter: blur(4px); }
.modal.active { display: flex; }
.modal-content { background: var(--card-solid); border-radius: 20px; width: 90%; max-width: 400px; animation: modalIn 0.3s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 18px; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 28px; cursor: pointer; }
.modal-body { padding: 20px; }
.share-preview { margin-bottom: 20px; }
.share-preview img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; }
.share-buttons { display: flex; flex-direction: column; gap: 10px; }
.share-btn { padding: 14px; border: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.2s; }
.share-btn.whatsapp { background: #25D366; color: #fff; }
.share-btn.twitter { background: #1DA1F2; color: #fff; }
.share-btn.copy { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.share-btn:hover { transform: scale(1.02); }

/* Toast */
.toast-container { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); z-index: 300; }
.toast { padding: 14px 24px; border-radius: 12px; font-weight: 500; animation: toastIn 0.3s ease; background: var(--card-solid); border: 1px solid var(--border); }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* App Banner */
.app-banner { position: fixed; bottom: 0; left: 0; right: 0; background: linear-gradient(135deg, #1a1a2e, #16213e); padding: 12px 16px; display: flex; align-items: center; gap: 12px; z-index: 150; border-top: 1px solid var(--border); }
.app-banner.hidden { display: none; }
.banner-content { flex: 1; display: flex; align-items: center; gap: 12px; }
.banner-icon { font-size: 32px; }
.banner-text { display: flex; flex-direction: column; }
.banner-text strong { font-size: 14px; }
.banner-text span { font-size: 12px; color: var(--text-muted); }
.banner-btn { padding: 10px 20px; background: var(--primary); color: #fff; text-decoration: none; border-radius: 20px; font-weight: 600; font-size: 14px; }
.banner-close { background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; padding: 4px; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .feed-container { padding: 16px; }
    .card-stack { height: 520px; }
    .card-image { height: 300px; }
    .get-app-btn span { display: none; }
}
@media (min-width: 769px) {
    .app-banner { display: none; }
}
