@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;700;900&display=swap');

/* ==========================================================
   VARIABLES & RESET
   ========================================================== */
:root {
    --bg-dark: #030303;
    --bg-card: #0a0a0f;
    --text-light: #ffffff;
    --text-dim: #a1a1aa;
    --text-muted: #71717a;
    --glass-bg: rgba(25, 25, 30, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-light: rgba(255, 255, 255, 0.15);
    --neon-blue: #3b82f6;
    --neon-purple: #8b5cf6;
    --neon-pink: #ec4899;
    --neon-cyan: #06b6d4;
    --neon-gold: #FFD700;
    --neon-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    --glow-blue: 0 0 20px rgba(59, 130, 246, 0.5);
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.5);
    --glow-pink: 0 0 20px rgba(236, 72, 153, 0.5);
    --radius-lg: 30px;
    --radius-md: 20px;
    --radius-sm: 16px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Alexandria', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    height: 100dvh;
    overflow: hidden;
    width: 100vw;
    scroll-behavior: smooth;
}

/* ==========================================================
   LOADING SCREEN
   ========================================================== */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-orb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--neon-gradient);
    filter: blur(20px);
    animation: loadingPulse 2s ease-in-out infinite;
    margin-bottom: 30px;
}

@keyframes loadingPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
}

.loading-text {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: loadingGlow 2s ease-in-out infinite;
    margin-bottom: 10px;
}

@keyframes loadingGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3)); }
    50% { filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.8)); }
}

.loading-sub {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.3s forwards;
}

.loading-bar {
    width: 150px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.5s forwards;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: var(--neon-gradient);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   PARTICLES CANVAS
   ========================================================== */
.particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ==========================================================
   SVG ICONS
   ========================================================== */
.icon, .nav-icon, .social-icon, .btn-icon, .action-btn svg, .sparkle, .gem-icon, .toast-icon {
    width: 1.2em;
    height: 1.2em;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

.nav-icon {
    width: 1em;
    height: 1em;
}

.social-icon {
    width: 1.3rem;
    height: 1.3rem;
    fill: currentColor;
}

.sparkle {
    width: 0.8rem;
    height: 0.8rem;
    fill: var(--neon-gold);
}

.gem-icon {
    width: 4rem;
    height: 4rem;
    fill: url(#gem-gradient);
}

.toast-icon {
    width: 1.3rem;
    height: 1.3rem;
    fill: #10b981;
    flex-shrink: 0;
}

.btn-icon {
    width: 1.1em;
    height: 1.1em;
    margin-left: 5px;
}

.action-btn svg {
    width: 1.4rem;
    height: 1.4rem;
    fill: currentColor;
}

.category-badge svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    margin-left: 4px;
}

.cat-icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
}

/* ==========================================================
   MOUSE GLOW
   ========================================================== */
.mouse-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: left 0.3s ease, top 0.3s ease;
    filter: blur(40px);
}

/* ==========================================================
   SCROLL PROGRESS
   ========================================================== */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 200;
    background: rgba(255, 255, 255, 0.03);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--neon-gradient);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.8), 0 0 30px rgba(59, 130, 246, 0.4);
    transition: width 0.1s ease-out;
}

/* ==========================================================
   TOAST NOTIFICATION
   ========================================================== */
.toast {
    position: fixed;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10000;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(20px);
    white-space: nowrap;
}

.toast i {
    color: #10b981;
    font-size: 1.1rem;
}

.toast.show {
    top: 85px;
    animation: toastShake 0.5s ease;
}

@keyframes toastShake {
    0%, 100% { transform: translateX(-50%) scale(1); }
    25% { transform: translateX(-50%) scale(1.05); }
    50% { transform: translateX(-50%) scale(0.98); }
    75% { transform: translateX(-50%) scale(1.02); }
}

/* ==========================================================
   TOP NAVIGATION
   ========================================================== */
.top-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 7px 14px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.top-nav.scrolled {
    background: rgba(10, 10, 15, 0.9);
    box-shadow: 0 15px 50px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08);
    top: 12px;
}

.nav-item {
    color: var(--text-dim);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 2;
}

.nav-item:hover {
    color: var(--text-light);
    background: rgba(255,255,255,0.05);
}

.nav-item.active {
    color: var(--text-light);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--neon-gradient);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.8);
    animation: navDotPulse 2s ease-in-out infinite;
}

@keyframes navDotPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(139, 92, 246, 0.8); }
    50% { box-shadow: 0 0 20px rgba(139, 92, 246, 1), 0 0 40px rgba(59, 130, 246, 0.5); }
}

.nav-divider {
    width: 1px;
    height: 16px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
    margin: 0 3px;
}

.profile-tab {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.profile-tab i {
    font-size: 0.9rem;
}

.profile-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-tab.active {
    background: var(--neon-gradient);
    color: white;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* ==========================================================
   MAIN WRAPPER & SCREENS
   ========================================================== */
.main-wrapper {
    position: relative;
    width: 100vw;
    height: 100dvh;
    perspective: 1200px;
    z-index: 5;
}

.screen-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
}

/* ==========================================================
   PROFILE PAGE
   ========================================================== */
.profile-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 10;
}

.profile-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: var(--radius-lg);
    padding: 45px 35px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    z-index: 1;
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(139,92,246,0.3), rgba(236,72,153,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-card:hover {
    box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 40px rgba(139, 92, 246, 0.1);
}

/* Avatar */
.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 25px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
}

.avatar img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--neon-pink)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ringRotate 4s linear infinite;
    z-index: 1;
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.avatar-pulse {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.3);
    animation: avatarPulseAnim 2s ease-out infinite;
    z-index: 0;
}

@keyframes avatarPulseAnim {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.15); opacity: 0; }
}

.avatar:hover {
    transform: scale(1.08);
}

.avatar:hover .avatar-ring {
    animation-duration: 1s;
}

@keyframes avatarShake {
    0% { transform: scale(1); }
    20% { transform: scale(0.9) rotate(-10deg); filter: hue-rotate(90deg); }
    40% { transform: scale(1.1) rotate(10deg); filter: hue-rotate(180deg); }
    60% { transform: scale(1.1) rotate(-10deg); filter: hue-rotate(270deg); }
    80% { transform: scale(1.1) rotate(10deg); filter: hue-rotate(360deg); }
    100% { transform: scale(1); filter: hue-rotate(0deg); }
}

.avatar-triggered {
    animation: avatarShake 0.6s ease-in-out;
}

.avatar-triggered .avatar-ring {
    border-color: var(--neon-gold);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.8), 0 0 100px rgba(255, 215, 0, 0.4);
}

/* Profile Content */
.profile-name {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.profile-bio {
    color: var(--text-dim);
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.9;
    font-weight: 300;
}

.hint-text {
    margin-top: 25px;
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-card:hover .hint-text {
    opacity: 1;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-6px) scale(1.1);
}

.social-btn.x-btn:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 15px 30px rgba(255,255,255,0.25);
}

.social-btn.snap-btn:hover {
    background: #FFFC00;
    color: #000000;
    border-color: #FFFC00;
    box-shadow: 0 15px 30px rgba(255, 252, 0, 0.35);
}

.social-btn.ig-btn:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    box-shadow: 0 15px 30px rgba(220, 39, 67, 0.4);
}

.social-btn.tt-btn:hover {
    background: #000000;
    color: #ffffff;
    border-color: #25F4EE;
    box-shadow: -3px 3px 0px #FE2C55, 3px -3px 0px #25F4EE;
}

/* ==========================================================
   SECRET CARD
   ========================================================== */
.secret-hidden {
    display: none !important;
}

.secret-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
    z-index: 50;
    transition: var(--transition-smooth);
    animation: secretAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes secretAppear {
    from { opacity: 0; transform: scale(0.8) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.orb-1, .orb-2, .orb-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
    animation: floatOrb 8s infinite alternate ease-in-out;
}

.orb-1 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255,215,0,0.6), transparent 70%);
    top: -30px;
    left: -30px;
    animation-duration: 7s;
}

.orb-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(139,92,246,0.5), transparent 70%);
    bottom: -30px;
    right: -30px;
    animation-delay: -3s;
    animation-duration: 9s;
}

.orb-3 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(236,72,153,0.4), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
    animation-duration: 6s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -40px) scale(1.3); }
}

.secret-glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-radius: var(--radius-lg);
    padding: 50px 35px 40px 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.secret-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    animation: glassShine 5s infinite;
}

@keyframes glassShine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.secret-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.secret-sparkles i {
    position: absolute;
    color: var(--neon-gold);
    font-size: 0.8rem;
    opacity: 0;
    animation: sparkleFloat 3s ease-in-out infinite;
}

.secret-sparkles .s1 { top: 15%; left: 10%; animation-delay: 0s; }
.secret-sparkles .s2 { top: 20%; right: 15%; animation-delay: 1s; }
.secret-sparkles .s3 { bottom: 25%; left: 20%; animation-delay: 2s; }
.secret-sparkles .s4 { bottom: 20%; right: 10%; animation-delay: 0.5s; }

@keyframes sparkleFloat {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
    50% { opacity: 1; transform: translateY(-10px) scale(1); }
}

.secret-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #FFD700, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6)); }
    50% { filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.9)); }
}

.secret-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 5px;
    letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    line-height: 1.5;
}

.secret-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-gold), transparent);
    margin: 15px auto 20px auto;
}

.secret-prompt-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px inset rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 22px;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 2;
    margin-bottom: 30px;
    text-align: right;
    direction: rtl;
    box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.secret-prompt-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--neon-gold), transparent);
}

.secret-btn {
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(139,92,246,0.15));
    color: #fff;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.secret-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,215,0,0.3), rgba(139,92,246,0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.secret-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(255, 215, 0, 0.2);
    border-color: var(--neon-gold);
}

.secret-btn:hover::before {
    opacity: 1;
}

.secret-btn i {
    position: relative;
    z-index: 1;
}

.exit-secret-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-top: 25px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.exit-secret-text:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* ==========================================================
   FEED CONTAINER
   ========================================================== */
.feed-container {
    height: 100dvh;
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    background: var(--bg-dark);
    position: relative;
}

.feed-container::-webkit-scrollbar {
    display: none;
}

.feed-item {
    position: relative;
    height: 100dvh;
    width: 100vw;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feed-item.hidden {
    display: none;
}

/* Entrance Animation */
.feed-item {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.feed-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ==========================================================
   AURA & OVERLAY
   ========================================================== */
.aura {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    z-index: 0;
    transition: transform 0.3s ease-out;
    animation: auraBreathe 6s ease-in-out infinite;
}

@keyframes auraBreathe {
    0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.35; transform: translate(-50%, -50%) scale(1.1); }
}

.aura.gradient-1 { background: radial-gradient(circle, #4f46e5 0%, transparent 70%); }
.aura.gradient-2 { background: radial-gradient(circle, #10b981 0%, transparent 70%); }
.aura.gradient-3 { background: radial-gradient(circle, #f59e0b 0%, transparent 70%); }

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================
   CONTENT AREA
   ========================================================== */
.content-area {
    position: absolute;
    inset: 0;
    padding: 80px 20px 30px 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(25px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

.feed-item.active .content-area {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   SHOWCASE IMAGE
   ========================================================== */
.showcase-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
    margin-bottom: 18px;
    width: 100%;
}

.showcase-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: zoom-in;
}

.showcase-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, filter 0.4s ease;
    display: block;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
}

.showcase-container:hover .showcase-img {
    transform: scale(1.04);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
    filter: brightness(1.1);
}

/* Image shimmer effect */
.showcase-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-sm);
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.05) 45%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 55%, transparent 60%);
    background-size: 200% 200%;
    animation: shimmer 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

/* ==========================================================
   TEXT BLOCK
   ========================================================== */
.text-block {
    flex-shrink: 0;
    width: 100%;
    padding-left: 65px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 7px 16px;
    border-radius: 25px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #e4e4e7;
    width: fit-content;
    align-self: flex-start;
    transition: var(--transition-smooth);
}

.feed-item.active .category-badge {
    animation: badgeSlide 0.5s cubic-bezier(0.25, 1, 0.5, 1) 0.1s both;
}

@keyframes badgeSlide {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.4;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6), 0 0 40px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #fff 60%, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feed-item.active .title {
    animation: titleReveal 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.2s both;
}

@keyframes titleReveal {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.description {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1.7;
    font-weight: 300;
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

.feed-item.active .description {
    animation: descFade 0.6s ease 0.35s both;
}

@keyframes descFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================
   ACTION BAR
   ========================================================== */
.action-bar {
    position: absolute;
    left: 18px;
    bottom: 45px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: center;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.feed-item.active .action-item {
    opacity: 1;
    transform: translateY(0);
}

.feed-item.active .action-item:nth-child(1) { transition-delay: 0.3s; }
.feed-item.active .action-item:nth-child(2) { transition-delay: 0.4s; }
.feed-item.active .action-item:nth-child(3) { transition-delay: 0.5s; }

.action-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.action-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-btn:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 20px rgba(139, 92, 246, 0.3);
    border-color: var(--glass-border-light);
}

.action-btn:hover::after {
    opacity: 1;
}

.action-btn:active {
    transform: scale(0.95);
}

.action-label {
    font-size: 0.75rem;
    margin-top: 8px;
    color: var(--text-dim);
    text-align: center;
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* Particle burst on click */
.action-btn {
    --burst-x: 50%;
    --burst-y: 50%;
}

.action-btn.clicked {
    animation: btnBurst 0.5s ease;
}

@keyframes btnBurst {
    0% { transform: scale(1); }
    30% { transform: scale(0.9); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ==========================================================
   PROMPT BOX
   ========================================================== */
.hidden-prompt {
    display: none;
}

.visible-prompt-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px inset rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 18px;
    color: #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.7;
    text-align: right;
    direction: rtl;
    max-height: 150px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
    position: relative;
    margin-top: 10px;
    animation: promptSlide 0.5s ease;
}

@keyframes promptSlide {
    from { opacity: 0; max-height: 0; padding: 0 18px; }
    to { opacity: 1; max-height: 150px; padding: 18px; }
}

.visible-prompt-box::-webkit-scrollbar {
    width: 4px;
}

.visible-prompt-box::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

/* ==========================================================
   LIGHTBOX
   ========================================================== */
.talal-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, background 0.4s ease, visibility 0.4s ease;
    touch-action: none;
}

.talal-lightbox.open {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-img {
    max-width: 95vw;
    max-height: 90dvh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    transform-origin: center center;
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

.talal-lightbox.open .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: var(--transition-bounce);
    opacity: 0;
    transform: scale(0.7) rotate(-90deg);
}

.talal-lightbox.open .lightbox-close {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.lightbox-zoom-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    padding: 8px 20px;
    border-radius: 25px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease 0.3s;
}

.talal-lightbox.open .lightbox-zoom-hint {
    opacity: 1;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 480px) {
    .profile-name { font-size: 2rem; }
    .profile-card { padding: 35px 25px; }
    .top-nav { gap: 6px; padding: 6px 10px; }
    .nav-item { padding: 5px 8px; font-size: 0.75rem; }
    .title { font-size: 1.5rem; }
    .action-btn { width: 48px; height: 48px; font-size: 1.1rem; }
    .action-bar { left: 12px; bottom: 35px; gap: 18px; }
    .secret-title { font-size: 1.5rem; }
    .secret-glass-card { padding: 40px 25px 35px 25px; }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .loading-screen { display: none; }
}

/* ==========================================================
   CUSTOM SCROLLBAR (for desktop)
   ========================================================== */
@media (min-width: 768px) {
    ::-webkit-scrollbar {
        width: 6px;
    }
    ::-webkit-scrollbar-track {
        background: transparent;
    }
    ::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.1);
        border-radius: 10px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: rgba(255,255,255,0.2);
    }
}
