:root {
    --bg-color: #0d1117;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --accent: #58a6ff;
    --accent-hover: #3182ce;
    --card-bg: rgba(22, 27, 34, 0.7);
    --border-color: rgba(48, 54, 61, 0.5);
    
    /* Dynamic Theme Variables */
    --blob-1: linear-gradient(135deg, rgba(88, 166, 255, 0.4), rgba(49, 130, 206, 0.1));
    --blob-2: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(75, 0, 130, 0.1));
    --title-gradient: linear-gradient(to right, #ffffff, #a5c8ff);
    --slider-bg: rgba(0,0,0,0.3);
    --overlay-bg: linear-gradient(to top, rgba(13, 17, 23, 0.95), rgba(13, 17, 23, 0.7) 60%, transparent);
    --overlay-text: #ffffff;
    --btn-icon: rgba(255,255,255,0.1);
}

[data-theme="light"] {
    --bg-color: #f6f8fa;
    --text-primary: #1f2328;
    --text-secondary: #656d76;
    --accent: #0969da;
    --accent-hover: #0349b4;
    --card-bg: rgba(255, 255, 255, 0.7);
    --border-color: rgba(208, 215, 222, 0.8);
    
    --blob-1: linear-gradient(135deg, rgba(9, 105, 218, 0.3), rgba(9, 105, 218, 0.05));
    --blob-2: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(75, 0, 130, 0.05));
    --title-gradient: linear-gradient(to right, #0969da, #1da1f2);
    --slider-bg: rgba(0,0,0,0.05);
    --overlay-bg: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8) 60%, transparent);
    --overlay-text: #1f2328;
    --btn-icon: rgba(0,0,0,0.05);
}

/* ==========================================
   STYLE THEMES (Ruby, Emerald, Amethyst, Gold)
   ========================================== */

/* Ruby (Red) */
[data-style="ruby"] {
    --accent: #ff5e5b;
    --accent-hover: #ff4742;
    --blob-1: linear-gradient(135deg, rgba(255, 94, 91, 0.4), rgba(255, 71, 66, 0.1));
    --blob-2: linear-gradient(135deg, rgba(255, 126, 179, 0.3), rgba(255, 117, 140, 0.1));
    --title-gradient: linear-gradient(to right, #ffffff, #ffbaba);
}
[data-theme="light"][data-style="ruby"] {
    --accent: #d32f2f;
    --accent-hover: #b71c1c;
    --blob-1: linear-gradient(135deg, rgba(211, 47, 47, 0.3), rgba(211, 47, 47, 0.05));
    --title-gradient: linear-gradient(to right, #d32f2f, #ff5252);
}

/* Emerald (Green) */
[data-style="emerald"] {
    --accent: #00e676;
    --accent-hover: #00c853;
    --blob-1: linear-gradient(135deg, rgba(0, 230, 118, 0.4), rgba(0, 200, 83, 0.1));
    --blob-2: linear-gradient(135deg, rgba(29, 209, 161, 0.3), rgba(16, 172, 132, 0.1));
    --title-gradient: linear-gradient(to right, #ffffff, #c2ffd9);
}
[data-theme="light"][data-style="emerald"] {
    --accent: #1b5e20;
    --accent-hover: #144e18;
    --blob-1: linear-gradient(135deg, rgba(27, 94, 32, 0.3), rgba(27, 94, 32, 0.05));
    --title-gradient: linear-gradient(to right, #1b5e20, #4caf50);
}

/* Amethyst (Purple) */
[data-style="amethyst"] {
    --accent: #a855f7;
    --accent-hover: #9333ea;
    --blob-1: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(147, 51, 234, 0.1));
    --blob-2: linear-gradient(135deg, rgba(192, 132, 252, 0.3), rgba(168, 85, 247, 0.1));
    --title-gradient: linear-gradient(to right, #ffffff, #e9d5ff);
}
[data-theme="light"][data-style="amethyst"] {
    --accent: #6b21a8;
    --accent-hover: #581c87;
    --blob-1: linear-gradient(135deg, rgba(107, 33, 168, 0.3), rgba(107, 33, 168, 0.05));
    --title-gradient: linear-gradient(to right, #6b21a8, #9333ea);
}

/* Gold (Sunset) */
[data-style="gold"] {
    --accent: #ffca28;
    --accent-hover: #ffb300;
    --blob-1: linear-gradient(135deg, rgba(255, 202, 40, 0.4), rgba(255, 179, 0, 0.1));
    --blob-2: linear-gradient(135deg, rgba(255, 167, 38, 0.3), rgba(255, 152, 0, 0.1));
    --title-gradient: linear-gradient(to right, #ffffff, #ffecb3);
}
[data-theme="light"][data-style="gold"] {
    --accent: #b8860b;
    --accent-hover: #8b6b08;
    --blob-1: linear-gradient(135deg, rgba(184, 134, 11, 0.3), rgba(184, 134, 11, 0.05));
    --title-gradient: linear-gradient(to right, #b8860b, #daa520);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    /* iOS Safari viewport fix */
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column; /* Crucial for child flex: 1 to work */
    overflow-x: hidden; /* Fix locking up native scroll */
    position: relative;
    -webkit-font-smoothing: antialiased;
    padding: 20px;
}

/* Background Animation */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 10s infinite alternate ease-in-out;
}

.blob.top-left {
    width: 400px;
    height: 400px;
    background: var(--blob-1);
    top: -100px;
    left: -100px;
}

.blob.bottom-right {
    width: 500px;
    height: 500px;
    background: var(--blob-2);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Main Layout */
.main-layout {
    position: relative;
    z-index: 1;
    width: 100%;
    /* Allow expanding if needed while targeting viewport */
    flex: 1; /* Stretch to fill body */
    perspective: 1000px;
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.left-pane {
    flex: 0 0 380px;
    display: flex;
    flex-direction: column;
}

.right-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Responsive */
@media (max-width: 900px) {
    body { 
        padding: 0; 
        overflow-y: auto; 
        overflow-x: hidden;
        padding-bottom: 80px; /* Space for Bottom Nav Bar */
    }
    
    /* Header Mobile Adjustments */
    .site-header { 
        margin: 15px 15px 0 15px; 
        padding: 10px 15px;
        border-radius: 15px;
    }
    .header-nav { 
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
        justify-content: space-around;
        align-items: center;
        padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
        z-index: 9999;
        margin: 0;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
    }

    .nav-link {
        flex-direction: column;
        gap: 5px;
        font-size: 0.75rem;
        padding: 5px;
        flex: 1;
        justify-content: center;
    }
    
    .nav-link i {
        font-size: 1.25rem;
        transition: all 0.3s;
    }
    
    .nav-link::after {
        display: none; /* Hide hover underline on mobile */
    }
    
    .nav-link.active, .nav-link:hover {
        color: var(--accent);
    }
    
    .nav-link.active i {
        transform: scale(1.15);
        filter: drop-shadow(0 0 5px rgba(88, 166, 255, 0.4));
    }

    .main-layout {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 20px;
    }
    .left-pane {
        flex: none;
        width: 100%;
        height: auto;
    }
    .right-pane {
        width: 100%;
        min-height: auto; /* Allow flexible height */
        height: auto; 
    }
    
    /* Adjust Profile Card */
    .profile-card {
        padding: 30px 20px;
        height: auto;
    }
    .profile-header {
        margin-bottom: 25px;
    }
    .profile-img-wrap {
        width: 110px;
        height: 110px;
    }
    
    .thinking-popup {
        top: -45px;
        padding: 8px 14px;
        border-radius: 16px;
    }
    .welcome-text {
        font-size: 0.75rem;
    }
    
    /* Adjust Typography */
    .name { font-size: 1.7rem; }
    .role { font-size: 0.9rem; margin-bottom: 15px; }
    .bio { font-size: 0.9rem; margin-bottom: 20px; }
    
    /* Adjust Buttons */
    .action-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    /* Adjust Slider */
    .portfolio-slider {
        padding: 20px;
        min-height: 400px;
    }
    .slider-container {
        min-height: 250px;
        aspect-ratio: 4/3;
    }
    .portfolio-slider h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
        text-align: center;
    }
    .slide-overlay {
        padding: 25px 20px 15px;
    }
    .slide-overlay h3 {
        font-size: 1.3rem;
    }
    .slide-overlay p {
        font-size: 0.85rem;
    }
    
    /* Center slider dots on mobile */
    .slider-dots {
        bottom: 15px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Make sure footer clears the fixed bottom nav bar */
    .site-footer {
        padding-bottom: 90px;
    }
    
    /* Hide background blobs if they cause scrolling/jitter */
    .background-animation {
        display: none;
    }
}

/* Profile Card (Glassmorphism) */
.profile-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 45px 35px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    flex: 1; /* Make card fill the pane */
    display: flex;
    flex-direction: column;
}

/* Header & Image */
.profile-header {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    transform: translateZ(40px);
}

.profile-img-wrap {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent), #8a2be2, var(--accent));
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.profile-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: #2ea043;
    border: 3px solid var(--card-bg);
    border-radius: 50%;
    z-index: 2;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-color);
}

/* Thinking Popup Bubble */
.thinking-popup {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 20px 20px 20px 20px; /* Centered cloud shape */
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10;
    animation: floatPopup 2s infinite ease-in-out;
}

.thinking-popup .dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    animation: typing 1.5s infinite ease-in-out both;
}

.thinking-popup .dot:nth-child(1) { animation-delay: -0.32s; }
.thinking-popup .dot:nth-child(2) { animation-delay: -0.16s; }

.dots-container {
    display: flex;
    gap: 4px;
    align-items: center;
}

.welcome-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.blinking-cursor {
    font-weight: bold;
    color: var(--accent);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; background-color: var(--accent); }
}

@keyframes floatPopup {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -6px); }
}

/* Content */
.profile-content {
    text-align: center;
    transform: translateZ(30px);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.plain-name {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.name {
    background: var(--title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.dev-badge {
    font-size: 0.8rem;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: 2px;
    font-weight: 700;
    -webkit-text-fill-color: var(--accent); /* Override parent transparent fill */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.2);
    animation: pulseBadge 2s infinite ease-in-out;
}

@keyframes pulseBadge {
    0%, 100% { box-shadow: 0 0 5px rgba(88, 166, 255, 0.1); }
    50% { box-shadow: 0 0 15px rgba(88, 166, 255, 0.4); }
}

.role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Skills Container and Groups */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: auto;
    padding-bottom: 30px;
    width: 100%;
}

.skills-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills-group-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.skill-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.skill-badge:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 15px rgba(88, 166, 255, 0.25);
}

/* Socials */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-icon i.fa-github:hover { color: #ffffff; }
.social-icon i.fa-linkedin-in:hover { color: #0a66c2; }
.social-icon i.fa-twitter:hover { color: #1da1f2; }
.social-icon i.fa-envelope:hover { color: #ea4335; }

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    flex: 1;
    padding: 14px 0;
    border-radius: 14px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #3b82f6);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #6baeff, #4f90ff);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ================================
   PORTFOLIO INTERACTIONS
   ================================ */

.portfolio-interactions {
    margin: 15px 0;
}

.like-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #ff5e5b;
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.like-btn:hover {
    background: rgba(255, 94, 91, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 94, 91, 0.2);
}

.like-btn.liked i {
    font-weight: 900; /* Solid heart */
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 1.1rem;
    color: #ffd700;
}

.rating-stars .star {
    cursor: pointer;
    transition: transform 0.2s;
}

.rating-stars .star:hover {
    transform: scale(1.2);
}

.rating-stars .rating-avg {
    font-weight: 600;
    font-size: 1rem;
    margin-right: 5px;
    color: var(--text-primary);
}

.rating-stars .review-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: 8px;
}

/* ================================
   PORTFOLIO SLIDER
   ================================ */

.portfolio-slider {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    flex: 1; /* Stretch to fill right pane */
    /* Safari protection against zero height flex items */
    min-height: 400px; 
    display: flex;
    flex-direction: column;
}

.portfolio-slider h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(
        to right,
        #ff595e, 
        #ffca3a, 
        #8ac926, 
        #1982c4, 
        #6a4c93, 
        #ff595e
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    animation: rainbowFade 5s linear infinite;
}

@keyframes rainbowFade {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.emoji {
    color: initial !important;
    -webkit-text-fill-color: initial !important;
    background: none !important;
    display: inline-block;
}

.slider-container {
    position: relative;
    flex: 1 1 auto; /* Fixes safari flex-grow */
    border-radius: 20px;
    overflow: hidden;
    background: var(--slider-bg);
    border: 1px solid var(--border-color);
    height: 100%;
    min-height: 300px; /* Explicit fallback for iOS */
    box-shadow: inset 0 5px 20px rgba(0,0,0,0.5);
    /* Create stacking context for Safari */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    -webkit-transform: scale(0.97); /* Safari prefix */
    transform: scale(0.97);
    pointer-events: none;
    z-index: 1; /* Safari stacking issue */
}

.slide.active {
    opacity: 1;
    -webkit-transform: scale(1); /* Safari prefix */
    transform: scale(1);
    pointer-events: auto;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px 30px;
    background: var(--overlay-bg);
    color: var(--overlay-text);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.2s;
}

.slide.active .slide-overlay {
    transform: translateY(0);
    opacity: 1;
}

.slide-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--accent);
}

.slide-overlay p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.view-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(88, 166, 255, 0.3);
    transition: all 0.3s;
}

.view-project-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.3);
    transform: translateY(-2px);
}

/* Nav Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10; /* Fixed arrow visibility */
}

.slider-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(88, 166, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dots .dot:hover {
    background: rgba(255,255,255,0.6);
}

.slider-dots .dot.active {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--accent);
}

/* ================================
   HEADER
   ================================ */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin-bottom: 25px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}
.header-logo i { color: var(--accent); }

.header-nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
}

/* Theme Toggle & Style Toggle Buttons */
.theme-toggle, .style-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.theme-toggle:hover, .style-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: var(--accent);
    border-color: var(--accent);
}

.theme-toggle .fa-sun {
    display: none;
}

[data-theme="light"] .theme-toggle .fa-moon {
    display: none;
}

[data-theme="light"] .theme-toggle .fa-sun {
    display: block;
}

.style-toggle i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.style-toggle:active i {
    transform: rotate(180deg) scale(1.2);
}

/* Footer */
.site-footer {
    text-align: center;
    padding-top: 30px;
    padding-bottom: 30px;
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-secondary);
    z-index: 10;
    position: relative;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ================================
   ABOUT / DIGITAL CV
   ================================ */
.about-page {
    display: flex;
    justify-content: center;
    padding-bottom: 30px;
}

.cv-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 50px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 1000px;
}

.cv-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.cv-title span {
    background: var(--title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.cv-section h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 12px;
}

.cv-item {
    position: relative;
    padding-left: 25px;
    padding-bottom: 35px;
    border-left: 2px solid var(--border-color);
}

.cv-item:last-child {
    border-left-color: transparent; /* Remove trailing line */
}

.cv-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.cv-item-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cv-item h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.cv-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.cv-item .cv-item-desc {
    margin-top: 15px;
    line-height: 1.6;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 900px) {
    .cv-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .cv-card {
        padding: 30px 20px;
    }
}

/* ================================
   SUPPORT MODAL
   ================================ */

.support-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.support-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.support-modal-content {
    max-width: 400px;
    width: 100%;
    position: relative;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.support-modal-overlay.active .support-modal-content {
    transform: translateY(0);
}

.support-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.support-modal-close:hover {
    background: rgba(255, 94, 91, 0.2);
    color: #ff5e5b;
    transform: rotate(90deg);
}

/* ================================
   HTML RICH TEXT RENDERING (.topic-content-html)
   ================================ */
.topic-content-html {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.topic-content-html p {
    margin-bottom: 1em;
}

.topic-content-html a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.topic-content-html a:hover {
    color: #ff8583;
}

.topic-content-html img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.topic-content-html blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 15px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 15px;
    color: var(--text-secondary);
    background: rgba(0,0,0,0.15);
    padding-top: 10px;
    padding-bottom: 1px;
    border-radius: 0 8px 8px 0;
}

.topic-content-html ul, 
.topic-content-html ol {
    margin-bottom: 1em;
    padding-left: 20px;
}

.topic-content-html li {
    margin-bottom: 0.5em;
}

.topic-content-html pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.topic-content-html code {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: monospace;
    color: #ffd700;
}

.topic-content-html hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

/* ================================
   USER ROLE BADGES
   ================================ */
.role-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.role-member {
    background: rgba(42, 5, 90, 0.1);
    color: var(--text-secondary);
}

.role-mod {
    background: #ffffff ;
    color: #000000 ;
    border: 1px solid rgba(0,0,0,0.1);
}

.role-admin {
    background: linear-gradient(135deg, #ff8a00, #e52e71);
    color: white;
    box-shadow: 0 0 15px rgba(255, 138, 0, 0.6);
    animation: admin-blink 1.5s infinite ease-in-out;
}

@keyframes admin-blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 15px rgba(255, 138, 0, 0.6); }
    50% { opacity: 0.8; box-shadow: 0 0 25px rgba(255, 138, 0, 1); }
}

.role-super-admin {
    background: #ff0000;
    color: white;
    font-weight: 250;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation: super-admin-fire 0.8s infinite alternate;
}

@keyframes super-admin-fire {
    0% { box-shadow: 0 0 15px #ff0000, 0 0 5px #ff8a00; transform: scale(1); }
    100% { box-shadow: 0 0 25px #ff0000, 0 0 15px #ff8a00; transform: scale(1.03); }
}

/* ================================
   SHOP ITEM EFFECTS
   ================================ */

/* VIP Tiered Imperial Styling */
.badge-vip {
    border: 2px solid rgba(255,255,255,0.3) !important;
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
    cursor: help !important; /* Shows '?' on hover */
}

.badge-vip-lvl-bronze { background: linear-gradient(135deg, #8b4513, #cd7f32) !important; box-shadow: 0 0 10px rgba(205, 127, 50, 0.4) !important; }
.badge-vip-lvl-silver { background: linear-gradient(135deg, #708090, #c0c0c0) !important; box-shadow: 0 0 10px rgba(192, 192, 192, 0.4) !important; }
.badge-vip-lvl-gold   { background: linear-gradient(135deg, #d4af37, #ffd700) !important; box-shadow: 0 0 15px rgba(255, 215, 0, 0.5) !important; border-color: #fff !important; }
.badge-vip-lvl-platinum { background: linear-gradient(135deg, #e5e4e2, #b4c2d1) !important; box-shadow: 0 0 15px rgba(229, 228, 226, 0.5) !important; color: #333 !important; }
.badge-vip-lvl-emerald  { background: linear-gradient(135deg, #065535, #50c878) !important; box-shadow: 0 0 15px rgba(80, 200, 120, 0.5) !important; }
.badge-vip-lvl-sapphire { background: linear-gradient(135deg, #082567, #0f52ba) !important; box-shadow: 0 0 15px rgba(15, 82, 186, 0.5) !important; }
.badge-vip-lvl-amethyst { background: linear-gradient(135deg, #4b0082, #9966cc) !important; box-shadow: 0 0 20px rgba(153, 102, 204, 0.6) !important; animation: royalGlow 3s infinite alternate; }
.badge-vip-lvl-ruby     { background: linear-gradient(135deg, #9b111e, #e0115f) !important; box-shadow: 0 0 20px rgba(224, 17, 95, 0.6) !important; animation: royalGlow 3s infinite alternate; }
.badge-vip-lvl-diamond  { background: linear-gradient(135deg, #b9f2ff, #ffffff) !important; box-shadow: 0 0 25px rgba(185, 242, 255, 0.8) !important; color: #008080 !important; border-color: #00ffff !important; animation: royalGlow 2s infinite alternate; }

/* Absolute VIP Level 10 - Rainbow Obsidian (Fixed & Enhanced) */
.badge-vip-lvl-absolute {
    background: #000 !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1) !important;
    z-index: 1;
    position: relative;
    overflow: visible !important; /* Allow the extreme shine to spill over */
    animation: absoluteAura 4s linear infinite, royalGlow 2s infinite alternate !important;
}

@keyframes absoluteAura {
    0% { box-shadow: 0 0 15px #f00, inset 0 0 5px rgba(255,255,255,0.2); filter: hue-rotate(0deg); }
    25% { box-shadow: 0 0 25px #ff0, inset 0 0 10px rgba(255,255,255,0.4); }
    50% { box-shadow: 0 0 35px #0f0, inset 0 0 15px rgba(255,255,255,0.6); }
    75% { box-shadow: 0 0 25px #00f, inset 0 0 10px rgba(255,255,255,0.4); }
    100% { box-shadow: 0 0 15px #f00, inset 0 0 5px rgba(255,255,255,0.2); filter: hue-rotate(360deg); }
}

/* Royal Shine Effect for Levels 5-10 */
.badge-vip-lvl-emerald::after,
.badge-vip-lvl-sapphire::after,
.badge-vip-lvl-amethyst::after,
.badge-vip-lvl-ruby::after,
.badge-vip-lvl-diamond::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: badgeShine 4s infinite;
}

@keyframes royalGlow {
    from { transform: scale(1); filter: brightness(1); }
    to { transform: scale(1.02); filter: brightness(1.2); }
}

@keyframes badgeShine {
    0% { left: -150%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

/* VIP Rank Tooltip Popup */
.badge-vip {
    position: relative;
}

.badge-vip::before {
    content: attr(data-vip-name);
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(25, 25, 25, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.2);
    z-index: 100;
}

/* Tooltip Arrow */
.badge-vip::after {
    display: none !important; /* Overriding previous shine since we are moving to better tooltip index */
}

/* Extreme Swipe Shine for VIP 10 (Pops out to the right) */
.badge-vip-lvl-absolute::after {
    display: block !important;
    width: 300% !important; /* Extra wide to sweep and leave boundary */
    height: 100% !important;
    top: 0 !important;
    left: -200% !important;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0) 30%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 0) 70%, 
        transparent 100%) !important;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.8)) !important;
    transform: skewX(-30deg) !important;
    animation: extremeShine 3s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    pointer-events: none;
}

@keyframes extremeShine {
    0% { left: -200%; opacity: 0; }
    5% { opacity: 1; }
    40% { left: 200%; opacity: 1; }
    45%, 100% { left: 200%; opacity: 0; }
}

/* Tooltip Visible on Hover */
.badge-vip:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.user-name-rainbow {
    background: linear-gradient(
        to right, 
        #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow-shift 3s linear infinite;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    display: inline-block;
}

@keyframes rainbow-shift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.user-name-gold {
    color: #ffd700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    font-weight: 700;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fcf6ba, #bf953f);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.user-profile-aura {
    position: relative;
    border-radius: 50%;
}

.user-profile-aura::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    background: conic-gradient(from 0deg, #00fff2, #0066ff, #00fff2);
    z-index: -1;
    opacity: 0.6;
    filter: blur(10px);
    animation: rotate-aura 3s linear infinite;
}

@keyframes rotate-aura {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}




/* ================================
   SHOP VISUAL EFFECTS
   ================================ */

.user-name-gold {
    background: linear-gradient(135deg, #ffd700, #ff8c00, #ffd700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    animation: goldShine 3s linear infinite;
}

@keyframes goldShine {
    to { background-position: 200% center; }
}

/* ================================
   ELITE ROLE BADGES (Gold & Fire)
   ================================ */

@keyframes goldFlame {
    0% { text-shadow: 0 0 8px #ffd700, 0 -4px 10px #ffae00, 0 -8px 15px #ff7b00, 0 -12px 20px #ff4500; filter: contrast(1.2) brightness(1.2); }
    33% { text-shadow: 0 0 10px #ffd700, 0 -5px 12px #ffae00, 0 -10px 18px #ff7b00, 0 -15px 25px #ff4500; filter: contrast(1.3) brightness(1.3); }
    66% { text-shadow: 0 0 8px #ffd700, 0 -3px 10px #ffae00, 0 -7px 15px #ff7b00, 0 -10px 20px #ff4500; filter: contrast(1.1) brightness(1.1); }
    100% { text-shadow: 0 0 8px #ffd700, 0 -4px 10px #ffae00, 0 -8px 15px #ff7b00, 0 -12px 20px #ff4500; filter: contrast(1.2) brightness(1.2); }
}

@keyframes superAdminGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 0, 0, 0.6), inset 0 0 5px rgba(255, 255, 255, 0.4); }
    50% { box-shadow: 0 0 35px rgba(255, 0, 0, 1), inset 0 0 10px rgba(255, 255, 255, 0.6); }
}

.role-badge-vip-elite {
    background: linear-gradient(135deg, #ffd700, #ff8c00, #ffd700);
    background-size: 200% auto;
    color: #000 !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    padding: 5px 15px !important;
    border-radius: 8px !important;
    letter-spacing: 1.5px;
    animation: goldFlame 1.5s infinite linear, goldShine 3s infinite linear;
    border: 2px solid #fff !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6) !important;
}

.role-badge-super-admin {
    background: linear-gradient(135deg, #cc0000, #ff0000);
    color: #fff !important;
    font-weight: 950 !important;
    text-transform: uppercase;
    padding: 5px 15px !important;
    border-radius: 8px !important;
    letter-spacing: 1px;
    animation: superAdminGlow 2s infinite ease-in-out;
    border: 2px solid rgba(255,255,255,0.3) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 10px rgba(255,255,255,0.5) !important;
}

.user-profile-aura {
    position: relative;
    color: #58a6ff !important;
    filter: drop-shadow(0 0 5px rgba(88, 166, 255, 0.8));
    animation: auraPulse 2s infinite ease-in-out;
}

@keyframes auraPulse {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(88, 166, 255, 0.5)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 10px rgba(88, 166, 255, 1)); transform: scale(1.1); }
}


.user-profile-avatar-aura {
    border: 2px solid #58a6ff !important;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.6), inset 0 0 10px rgba(88, 166, 255, 0.4) !important;
    animation: avatarAuraSpin 4s linear infinite;
}

@keyframes avatarAuraSpin {
    0% { border-color: #58a6ff; }
    50% { border-color: #00ffff; }
    100% { border-color: #58a6ff; }
}

/* ================================
   PROFILE FRAMES
   ================================ */

.author-avatar-rage, 
.avatar-container,
.author-avatar-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    background: none !important;
    border: none !important;
    overflow: visible !important; /* CRITICAL: Allow frames to spill out */
}
.author-avatar-rage img,
.avatar-container .avatar,
.avatar-container img,
.author-avatar-wrapper img {
    position: relative;
    z-index: 10; /* Avatar stays on Very Top */
    border-radius: 50%;
    border: 3px solid var(--bg-color);
}

/* Pseudo-frame system */
.author-avatar-rage::after,
.avatar-container::after,
.author-avatar-wrapper::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 20; /* Frame is ABOVE avatar(z:10) so it borders properly */
    border-radius: 0;
    /* No background: none !important here; let specific frames show up */
}

/* User Info Layout (Avatar + Name side by side) */
.user-info {
    display: flex;
    align-items: left;
    gap: 18px;
}

.avatar-container::after {
    content: '';
    position: absolute;
    top: -15%;
    left: -15%;
    right: -15%;
    bottom: -15%;
    border-radius: 0; /* Remove 50% rounding to prevent circular 'fill' behind PNGs */
    pointer-events: none;
    z-index: 20; /* Frame OVER avatar */
}

/* Golden Royal Frame (Animated Shine) */
.frame-gold::after,
.royal_gold::after {
    background: url('../../assets/frames/royal_gold.png') no-repeat center center / contain;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1)) contrast(1.2);
    top: -15%;
    left: -15%;
    right: -15%;
    bottom: -15%;
    animation: royalShine 4s linear infinite;
    opacity: 1 !important; /* Fully solid */
    visibility: visible !important;
    border-radius: 80%; /* Clip any corner artifacts */
}

/* Cyber Neon Frame (Voltage Flicker) */
.frame-neon::after,
.cyber_neon::after {
    background: url('../../assets/frames/cyber_neon.png') no-repeat center center / contain;
    filter: drop-shadow(0 0 20px rgba(0, 242, 255, 1)) contrast(1.3);
    top: -15%;
    left: -15%;
    right: -15%;
    bottom: -15%;
    animation: cyberFlicker 3s infinite alternate;
    opacity: 1 !important; /* Fully solid */
    visibility: visible !important;
    border-radius: 50%; /* Clip any corner artifacts */
}

/* Hellfire Frame (Thermal Pulse) */
.frame-fire::after,
.frame-hellfire::after,
.hellfire::after {
    background: url('../../assets/frames/hellfire.png') no-repeat center center / contain;
    filter: drop-shadow(0 0 25px rgba(255, 69, 0, 1)) brightness(1.2);
    top: -15%;
    left: -15%;
    right: -15%;
    bottom: -15%;
    animation: flamePulse 2s infinite ease-in-out;
    opacity: 1 !important; /* Fully solid */
    visibility: visible !important;
    border-radius: 90%; /* Clip any corner artifacts */
}

/* New Elite Animations */
@keyframes royalShine {
    0% { filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.7)) brightness(1); }
    50% { filter: drop-shadow(0 0 18px rgba(255, 215, 0, 1)) brightness(1.3); }
    100% { filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.7)) brightness(1); }
}

@keyframes cyberFlicker {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 18px rgba(0, 242, 255, 0.9)); }
    92% { opacity: 0.95; filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.7)); }
    94% { opacity: 1; filter: drop-shadow(0 0 22px rgba(0, 242, 255, 1)); }
    96% { opacity: 0.9; filter: drop-shadow(0 0 12px rgba(0, 242, 255, 0.6)); }
    98% { opacity: 1; filter: drop-shadow(0 0 18px rgba(0, 242, 255, 0.9)); }
}

@keyframes flamePulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(255, 69, 0, 0.8)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 30px rgba(255, 69, 0, 1)); }
}

/* Hellfire Frame */
.frame-fire::after {
    background: url('../../assets/frames/hellfire.png') no-repeat center center / contain;
    filter: drop-shadow(0 0 12px rgba(255, 69, 0, 0.7));
    animation: fireFlicker 0.4s infinite alternate;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
}

@keyframes fireFlicker {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.05); opacity: 1; }
}

/* ================================
   RAGE ELITE DESIGN (Topic Page)
   ================================ */

.rage-post-wrapper {
    display: flex;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 0, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-card);
}

@media (max-width: 768px) {
    .rage-post-wrapper {
        flex-direction: column;
    }
    .author-sidebar {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    .author-avatar-rage {
        width: 100px !important;
        height: 100px !important;
        margin-bottom: 0 !important;
    }
    .author-username-rage {
        margin-bottom: 0 !important;
    }
    .author-stats-rage {
        display: none; /* Hide detailed stats on mobile for brevity */
    }
}

.author-sidebar {
    width: 190px;
    flex-shrink: 0;
    padding: 20px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.post-content-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: #080808;
    background-image: 
        linear-gradient(30deg, #111 12%, transparent 12.5%, transparent 87%, #111 87.5%, #111),
        linear-gradient(150deg, #111 12%, transparent 12.5%, transparent 87%, #111 87.5%, #111),
        linear-gradient(30deg, #111 12%, transparent 12.5%, transparent 87%, #111 87.5%, #111),
        linear-gradient(150deg, #111 12%, transparent 12.5%, transparent 87%, #111 87.5%, #111),
        linear-gradient(60deg, #141414 25%, transparent 25.5%, transparent 75%, #141414 75%, #141414),
        linear-gradient(60deg, #141414 25%, transparent 25.5%, transparent 75%, #141414 75%, #141414);
    background-size: 30px 52px; /* Denser Isometric Cube Pattern */
    background-position: 0 0, 0 0, 15px 26px, 15px 26px, 0 0, 15px 26px;
}

.author-avatar-rage {
    width: 140px;
    height: 140px;
    margin-bottom: 25px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Role Badge: Screenshot-Perfect (White with Glow) */
.role-badge-plain {
    background: #fff !important;
    color: #000 !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
    border: none !important;
    padding: 4px 12px !important;
    letter-spacing: 0.5px;
}

.author-avatar-rage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-username-rage {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.author-stats-rage {
    width: 100%;
    margin-top: 25px;
    font-size: 0.72rem;
    color: #999;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.author-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.author-stat-label {
    opacity: 0.7;
    text-align: left;
}

.author-stat-value {
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
}

.post-header-rage {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.post-body-rage {
    padding: 30px;
    min-height: 250px;
    color: #e0e0e0;
    line-height: 1.8;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Square Frames for Sidebar */
.author-sidebar .avatar-container, 
.author-sidebar .avatar-container::after,
.author-sidebar .avatar {
    border-radius: 4px !important;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .rage-post-wrapper {
        flex-direction: column;
    }
    .author-sidebar {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    .author-avatar-rage {
        width: 100px !important;
        height: 100px !important;
        margin-bottom: 0 !important;
    }
    .author-stats-rage {
        display: none;
    }
}

/* ================================
   ELITE GLASS DESIGN (Antigravity Vision)
   ================================ */

.elite-post-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: stretch;
    flex: 1;
}

.floating-author-card {
    width: 200px;
    flex-shrink: 0;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 0, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 0, 255, 0.1);
    border-radius: 12px;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    height: auto;
}

.glass-post-pane {
    flex-grow: 1;
    height: auto;
    min-height: 100%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.author-avatar-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.rank-progress-container {
    width: 85%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rank-progress-bar {
    height: 100%;
    background: linear-gradient(to right, #ff00ff, #00ffff);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.6);
}

.minimal-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.reaction-score-pill {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 18px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    font-weight: 800;
    font-size: 0.8rem;
    color: #ffd700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
    .elite-post-container {
        flex-direction: column;
    }
    .floating-author-card {
        width: 100%;
        position: relative;
        top: 0;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 20px;
    }
    .author-stats-rage {
        display: none;
    }
}

/* New Premium Frames */

/* Frost Essence */
.frame-frost::after {
    background: url('../../assets/frames/frost_essence.png') no-repeat center center / contain;
    filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.8));
    animation: iceGlow 3s infinite ease-in-out;
    top: -12%; left: -12%; right: -12%; bottom: -12%;
    opacity: 1 !important; visibility: visible !important;
    border-radius: 50%;
}
@keyframes iceGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.6)) brightness(1); }
    50% { filter: drop-shadow(0 0 20px rgba(0, 242, 255, 1)) brightness(1.2); transform: scale(1.02); }
}

/* Amethyst Mystique */
.frame-amethyst::after {
    background: url('../../assets/frames/amethyst_mystique.png') no-repeat center center / contain;
    filter: drop-shadow(0 0 15px rgba(153, 102, 204, 0.8));
    animation: mysticPulse 4s infinite linear;
    top: -12%; left: -12%; right: -12%; bottom: -12%;
    opacity: 1 !important; visibility: visible !important;
    border-radius: 50%;
}
@keyframes mysticPulse {
    0%, 100% { filter: hue-rotate(0deg) drop-shadow(0 0 12px rgba(153, 102, 204, 0.7)); }
    50% { filter: hue-rotate(20deg) drop-shadow(0 0 18px rgba(153, 102, 204, 1)); }
}

/* Nature's Embrace */
.frame-nature::after {
    background: url('../../assets/frames/natures_embrace.png') no-repeat center center / contain;
    filter: drop-shadow(0 0 12px rgba(80, 200, 120, 0.7));
    animation: leafRustle 5s infinite ease-in-out;
    top: -12%; left: -12%; right: -12%; bottom: -12%;
    opacity: 1 !important; visibility: visible !important;
    border-radius: 50%;
}
@keyframes leafRustle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(1deg) scale(1.01); }
    75% { transform: rotate(-1deg) scale(0.99); }
}

/* Void Rift */
.frame-void::after {
    background: url('../../assets/frames/void_rift.png') no-repeat center center / contain;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.6));
    animation: voidSwirl 8s infinite linear;
    top: -15%; left: -15%; right: -15%; bottom: -15%;
    opacity: 1 !important; visibility: visible !important;
    border-radius: 50%;
}
@keyframes voidSwirl {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(360deg) scale(1.05); }
}

/* Sakura Bloom */
.frame-sakura::after {
    background: url('../../assets/frames/sakura_bloom.png') no-repeat center center / contain;
    filter: drop-shadow(0 0 12px rgba(255, 183, 197, 0.7));
    animation: petalFall 3s infinite ease-in-out;
    top: -12%; left: -12%; right: -12%; bottom: -12%;
    opacity: 1 !important; visibility: visible !important;
    border-radius: 50%;
}
@keyframes petalFall {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 1; }
    50% { transform: translateY(3px) rotate(2deg); opacity: 0.9; }
}

/* New Profile Auras */

/* Shared Aura Properties */
.aura-inferno, .aura-venom, .aura-thunder, .aura-void, .aura-holy {
    position: relative;
    border-radius: 50%;
}

.aura-inferno::after, .aura-venom::after, .aura-thunder::after, .aura-void::after, .aura-holy::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    z-index: -1;
    filter: blur(12px);
    opacity: 0.7;
}

/* 1. Inferno (Fire) */
.aura-inferno::after {
    background: conic-gradient(from 0deg, #ff4500, #ff8c00, #ff0000, #ff4500);
    animation: rotate-aura 1.5s linear infinite, aura-pulse 2s infinite ease-in-out;
}

/* 2. Venom (Toxic) */
.aura-venom::after {
    background: conic-gradient(from 0deg, #32cd32, #adff2f, #00ff00, #32cd32);
    animation: rotate-aura 4s linear infinite, aura-flicker 0.4s infinite alternate;
}

/* 3. Thunder (Lightning) */
.aura-thunder::after {
    background: conic-gradient(from 0deg, #00bfff, #1e90ff, #00ffff, #00bfff);
    animation: rotate-aura 0.5s linear infinite, lightning-flash 3s infinite;
}

/* 4. Void (Cosmic) */
.aura-void::after {
    background: radial-gradient(circle, #4b0082, #000, #4b0082);
    box-shadow: 0 0 30px #4b0082, inset 0 0 20px #9400d3;
    animation: void-swirl 10s linear infinite;
    inset: -12px;
}

/* 5. Holy (Gold) */
.aura-holy::after {
    background: conic-gradient(from 0deg, #ffd700, #fff, #ffd700);
    animation: rotate-aura 6s linear infinite, holy-glow 2s infinite alternate;
}

/* New Aura Animations */
@keyframes aura-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.9; }
}

@keyframes aura-flicker {
    0% { opacity: 0.4; filter: blur(8px); }
    100% { opacity: 0.8; filter: blur(14px); }
}

@keyframes lightning-flash {
    0%, 90%, 100% { opacity: 0.5; }
    92%, 96% { opacity: 1; filter: brightness(2); }
    94% { opacity: 0.3; }
}

@keyframes void-swirl {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(-360deg) scale(1.1); }
}

@keyframes holy-glow {
    0% { box-shadow: 0 0 10px #fff, 0 0 20px #ffd700; transform: scale(1); }
    100% { box-shadow: 0 0 25px #fff, 0 0 45px #ffd700; transform: scale(1.05); }
}

/* New Vibrance Name Colors */
.user-name-red { color: #ff3e3e !important; text-shadow: 0 0 10px rgba(255, 62, 62, 0.5); font-weight: 800; }
.user-name-blue { color: #3e8eff !important; text-shadow: 0 0 10px rgba(62, 142, 255, 0.5); font-weight: 800; }
.user-name-green { color: #3eff8e !important; text-shadow: 0 0 10px rgba(62, 255, 142, 0.5); font-weight: 800; }
.user-name-cyan { color: #00f2ff !important; text-shadow: 0 0 10px rgba(0, 242, 255, 0.5); font-weight: 800; }
.user-name-purple { color: #b63eff !important; text-shadow: 0 0 10px rgba(182, 62, 255, 0.5); font-weight: 800; }
.user-name-orange { color: #ff8e3e !important; text-shadow: 0 0 10px rgba(255, 142, 62, 0.5); font-weight: 800; }
.user-name-pink { color: #ff3e8e !important; text-shadow: 0 0 10px rgba(255, 62, 142, 0.5); font-weight: 800; }

/* Premium Frame: Neko Kawaii (Cat Ears) */
.frame-cat-ears::after {
    background: url('../../assets/frames/neko_kawaii.png') no-repeat center center / contain;
    filter: drop-shadow(0 0 10px rgba(255, 128, 171, 0.6));
    animation: pulse-soft 3s infinite alternate;
    top: -15%; left: -15%; right: -15%; bottom: -15%;
    opacity: 1 !important; visibility: visible !important;
    border-radius: 50%;
}

/* Premium Frame: Cyberpunk Neon */
.frame-cyberpunk::after {
    background: url('../../assets/frames/cyber_neon_new.png') no-repeat center center / contain;
    filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.6));
    animation: cyber-flicker-img 3s infinite;
    top: -15%; left: -15%; right: -15%; bottom: -15%;
    opacity: 1 !important; visibility: visible !important;
    border-radius: 50%;
}

@keyframes cyber-flicker-img {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.6)) hue-rotate(0deg); }
    20%, 22%, 24%, 55% { filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.8)) hue-rotate(90deg); }
}

/* Premium Frame: Golden King */
.frame-king::after {
    background: url('../../assets/frames/golden_king.png') no-repeat center center / contain;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.7));
    animation: pulse-soft 2.5s infinite alternate;
    top: -18%; left: -18%; right: -18%; bottom: -18%;
    opacity: 1 !important; visibility: visible !important;
    border-radius: 50%;
}

/* Premium Frame: Void Ghost */
.frame-void-ghost::after {
    background: url('../../assets/frames/void_ghost_new.png') no-repeat center center / contain;
    filter: drop-shadow(0 0 15px rgba(98, 0, 234, 0.7));
    animation: voidSwirl 8s infinite linear;
    top: -20%; left: -20%; right: -20%; bottom: -20%;
    opacity: 1 !important; visibility: visible !important;
    border-radius: 50%;
}

/* Premium Frame: Inferno Essence */
.frame-inferno-essence::after {
    background: url('../../assets/frames/inferno_essence.png') no-repeat center center / contain;
    filter: drop-shadow(0 0 15px rgba(255, 77, 77, 0.8));
    animation: inferno-flux-img 3s infinite ease-in-out;
    top: -15%; left: -15%; right: -15%; bottom: -15%;
    opacity: 1 !important; visibility: visible !important;
    border-radius: 50%;
}

@keyframes inferno-flux-img {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(255, 77, 77, 0.5)) hue-rotate(0deg); transform: scale(1); }
    50% { filter: drop-shadow(0 0 25px rgba(255, 77, 77, 0.9)) hue-rotate(15deg); transform: scale(1.03); }
}


/* Premium Frame: Abyssal Depths */
.frame-abyssal-essence::after {
    background: url('../../assets/frames/abyssal_essence.png') no-repeat center center / contain;
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.7));
    animation: pulse-soft 4s infinite alternate;
    top: -15%; left: -15%; right: -15%; bottom: -15%;
    opacity: 1 !important; visibility: visible !important;
    border-radius: 50%;
}

/* Premium Frame: Thunder Strike */
.frame-thunder-essence::after {
    background: url('../../assets/frames/thunder_essence.png') no-repeat center center / contain;
    filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.8));
    animation: pulse-soft 2s infinite alternate;
    top: -16%; left: -16%; right: -16%; bottom: -16%;
    opacity: 1 !important; visibility: visible !important;
    border-radius: 50%;
}

/* Premium Frame: Terra Guard */
.frame-terra-essence::after {
    background: url('../../assets/frames/terra_essence.png') no-repeat center center / contain;
    filter: drop-shadow(0 0 10px rgba(46, 204, 113, 0.6));
    animation: rotate-slow 20s infinite linear;
    top: -18%; left: -18%; right: -18%; bottom: -18%;
    opacity: 1 !important; visibility: visible !important;
    border-radius: 50%;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Premium Frame: Solar Flare */
.frame-solar-essence::after {
    background: url('../../assets/frames/solar_essence.png') no-repeat center center / contain;
    filter: drop-shadow(0 0 20px rgba(255, 202, 40, 0.8));
    animation: solar-bright-img 2s infinite alternate;
    top: -15%; left: -15%; right: -15%; bottom: -15%;
    opacity: 1 !important; visibility: visible !important;
    border-radius: 50%;
}

@keyframes solar-bright-img {
    from { filter: drop-shadow(0 0 15px rgba(255, 202, 40, 0.6)) brightness(1); transform: scale(1); }
    to { filter: drop-shadow(0 0 35px rgba(255, 202, 40, 1)) brightness(1.2); transform: scale(1.02); }
}

/* Premium Frame: Black Hole Event Horizon */
.frame-black-hole {
    position: relative;
    overflow: visible;
    animation: black-hole-suck 3s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.frame-black-hole::after {
    background: url('../../assets/frames/black_hole.png') no-repeat center center / contain;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.9));
    animation: voidSwirl 1.5s infinite linear;
    top: -25%; left: -25%; right: -25%; bottom: -25%;
    opacity: 1 !important; visibility: visible !important;
    border-radius: 50%;
}

@keyframes black-hole-suck {
    0% { transform: scale(1) rotate(0deg); opacity: 1; filter: blur(0px) contrast(1); }
    50% { transform: scale(0.9) rotate(90deg); opacity: 1; filter: blur(1px) contrast(1.2); }
    80% { transform: scale(0.0) rotate(720deg); opacity: 0; filter: blur(3px) contrast(2); }
    90% { transform: scale(0.0) rotate(720deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; filter: blur(0px) contrast(1); }
}

/* Premium Frame: Arcane Magic */
.frame-arcane-magic::after {
    background: url('../../assets/frames/arcane_magic.png') no-repeat center center / contain;
    filter: drop-shadow(0 0 15px rgba(186, 85, 211, 0.8));
    animation: voidSwirl 20s infinite linear reverse;
    top: -18%; left: -18%; right: -18%; bottom: -18%;
    opacity: 1 !important; visibility: visible !important;
    border-radius: 50%;
}

/* Premium Frame: Golden Dragon */
.frame-golden-dragon::after {
    background: url('../../assets/frames/golden_dragon.png') no-repeat center center / contain;
    filter: drop-shadow(0 0 12px rgba(255, 165, 0, 0.7));
    top: -15%; left: -15%; right: -15%; bottom: -15%;
    opacity: 1 !important; visibility: visible !important;
    border-radius: 50%;
}

/* Premium Frame: Stellar Galaxy */
.frame-stellar-galaxy::after {
    background: url('../../assets/frames/stellar_galaxy.png') no-repeat center center / contain;
    filter: drop-shadow(0 0 15px rgba(72, 61, 139, 0.8));
    animation: pulse-soft 5s infinite alternate;
    top: -20%; left: -20%; right: -20%; bottom: -20%;
    opacity: 1 !important; visibility: visible !important;
    border-radius: 50%;
}
