/* ========================================
   UNIFIED DARK THEME CSS - ColOxy
   ZBS Capital Style - Vibrant Purple & Cyan Theme
   ======================================== */

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== ROOT VARIABLES (ZBS Capital Theme) ========== */
:root {
    /* رنگ‌های اصلی ZBS */
    --primary-purple: #A855F7;
    --primary-cyan: #06B6D4;
    --accent-blue: #3B82F6;
    --accent-pink: #EC4899;
    --vibrant-green: #10B981;
    
    /* گرادینت‌های ZBS */
    --gradient-main: linear-gradient(135deg, #A855F7 0%, #06B6D4 100%);
    --gradient-soft: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
    --gradient-purple: linear-gradient(90deg, #A855F7 0%, #EC4899 100%);
    --gradient-cyber: linear-gradient(135deg, #06B6D4 0%, #3B82F6 50%, #A855F7 100%);
    
    /* تم تاریک */
    --bg-color: #0A0B0D;
    --card-bg: #111827;
    --text-color: #F9FAFB;
    --text-secondary: #9CA3AF;
    --border-color: #1F2937;
    --hover-bg: #1F2937;
    
    /* سایه‌ها با رنگ‌های ZBS */
    --shadow-sm: 0 4px 24px rgba(168, 85, 247, 0.2);
    --shadow-md: 0 8px 40px rgba(168, 85, 247, 0.25);
    --shadow-lg: 0 12px 48px rgba(168, 85, 247, 0.3);
    --shadow-cyan: 0 8px 32px rgba(6, 182, 212, 0.25);
    --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.4);
    
    /* ارتفاع نوار */
    --nav-height: 60px;
}

/* ========== BODY & TYPOGRAPHY ========== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color) !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Animated Background Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundPulse 15s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-color) !important;
}

/* ========== REMIXICON FIX ========== */
[class^="ri-"], [class*=" ri-"] {
    font-family: "remixicon" !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== LAYOUT ========== */
.main-content {
    flex: 1;
    padding: 20px 0;
    min-height: calc(100vh - 120px);
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== TOP HEADER ========== */
.top-header {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDownHeader 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

@keyframes slideDownHeader {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.app-title {
    font-family: 'Oleo Script', sans-serif;
    font-size: 2.3rem;
    font-weight: 900;
    margin: 0;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5));
}

@keyframes titleGlow {
    from { 
        filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.6)); 
    }
    to { 
        filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.8)); 
    }
}

.header-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 3px;
    color: var(--text-secondary);
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* ========== WELCOME CARD ========== */
.welcome-card {
    background: var(--card-bg) !important;
    border-radius: 20px;
    padding: 12px 16px;
    text-align: left;
    margin-bottom: 15px;
    box-shadow: var(--shadow-lg) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(168, 85, 247, 0.2);
    position: relative;
    overflow: hidden;
    animation: cardSlideIn 0.8s ease-out;
    color: var(--text-color);
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.welcome-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--gradient-main);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.welcome-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-glow) !important;
    border-color: var(--primary-purple);
}

.welcome-card:hover::before {
    left: 100%;
}

.welcome-card:hover::after {
    opacity: 0.6;
}

.welcome-content h1 {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text-color) !important;
}

.welcome-content p {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--text-secondary) !important;
    margin-bottom: 6px;
    font-weight: 400;
}

.welcome-divider {
    height: 2px;
    background: var(--gradient-main);
    margin: 6px 0;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    animation: dividerGlow 2s ease-in-out infinite;
}

@keyframes dividerGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.8);
    }
}

.follow-header {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color) !important;
    margin: 0 0 5px 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: left;
}

.social-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.social-link {
    font-family: 'Inter', sans-serif;
    color: var(--primary-purple) !important;
    text-decoration: none;
    font-weight: 700;
    padding: 3px 15px;
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.15) !important;
    transition: all 0.3s ease;
    font-size: 0.7rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.social-link span {
    position: relative;
    z-index: 1;
}

.social-link:hover {
    background: var(--gradient-main) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-cyan);
}

.social-link:hover::before {
    opacity: 1;
}

/* ========== PROFILE CARD ========== */
.profile-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(168, 85, 247, 0.2);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    animation: profileGlow 8s linear infinite;
    pointer-events: none;
}

@keyframes profileGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.profile-card:hover {
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-glow);
}

.profile-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.profile-avatar .avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.profile-avatar .avatar-circle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--gradient-main);
    z-index: -1;
    animation: rotateBorder 3s linear infinite;
    pointer-events: none;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.profile-avatar .avatar-circle .profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.avatar-fallback {
    font-size: 24px;
    color: var(--primary-purple);
}

.profile-stats {
    background: var(--gradient-main);
    border-radius: 50px 0 0 50px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-around;
    gap: 20px;
    box-shadow: var(--shadow-cyan);
    color: white;
    margin-right: -20px;
    margin-left: -10px;
    padding-right: 40px;
    padding-left: 30px;
    position: relative;
    overflow: hidden;
}

.profile-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.stat-pill {
    background: transparent;
    color: white;
    padding: 0;
    border-radius: 0;
    text-align: center;
    box-shadow: none;
    min-width: auto;
    flex: 1;
    position: relative;
    z-index: 1;
}

.stat-pill .stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2px;
    font-family: 'Outfit', sans-serif;
    animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stat-pill .stat-label {
    display: block;
    font-size: 0.7rem;
    opacity: 0.9;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: white !important;
}

.profile-info {
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.profile-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-name h2 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-color) !important;
    font-weight: 600;
    font-family: 'Outfit', 'Poppins', sans-serif;
}

.profile-description {
    margin: 8px 0 0 0;
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
    line-height: 1.4;
    font-style: italic;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.follow-btn {
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.follow-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.follow-btn:hover::before {
    width: 300px;
    height: 300px;
}

.follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ========== NEWS CARD ========== */
.news-card {
    background: var(--card-bg) !important;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg) !important;
    border-left: 5px solid var(--primary-purple);
    transition: all 0.3s ease;
    color: var(--text-color);
    border: 1px solid rgba(168, 85, 247, 0.2);
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow) !important;
    border-color: var(--primary-purple);
}

.news-card:hover::before {
    opacity: 1;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.news-header h3 {
    font-size: 1.4rem;
    color: var(--text-color) !important;
    margin: 0;
}

.news-badge {
    background: var(--gradient-main);
    color: white !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: badgePulse 2s infinite;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

@keyframes badgePulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.news-title {
    font-size: 1.2rem;
    color: var(--text-color) !important;
    margin-bottom: 10px;
}

.news-excerpt {
    color: var(--text-secondary) !important;
    line-height: 1.5;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-time {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.news-link {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.news-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
    pointer-events: none;
}

.news-link:hover {
    color: var(--primary-purple);
}

.news-link:hover::after {
    width: 100%;
}

/* ========== NEWS MODAL ========== */
.news-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 13, 0.9) !important;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-in-out;
}

.news-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-modal-content {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
    border-radius: 18px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    box-shadow: var(--shadow-glow) !important;
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.news-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
    background: var(--gradient-cyber);
    color: white !important;
    border-radius: 18px 18px 0 0;
    position: relative;
    overflow: hidden;
}

.news-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: headerShine 3s infinite;
    pointer-events: none;
}

@keyframes headerShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.news-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
    color: white !important;
    position: relative;
    z-index: 1;
}

.news-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: white !important;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.news-modal-close:hover {
    color: var(--primary-cyan) !important;
    transform: rotate(90deg);
}

.news-modal-body {
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
}

/* Custom Scrollbar */
.news-modal-body::-webkit-scrollbar {
    width: 8px;
}

.news-modal-body::-webkit-scrollbar-track {
    background: var(--card-bg);
}

.news-modal-body::-webkit-scrollbar-thumb {
    background: var(--gradient-main);
    border-radius: 4px;
}

.news-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-purple);
}

/* ========== NEWS ARTICLES ========== */
.news-list {
    padding: 20px;
}

.news-article {
    background: var(--hover-bg) !important;
    color: var(--text-color) !important;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-purple);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.news-article:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md) !important;
    border-color: var(--primary-cyan);
}

.news-article:last-child {
    margin-bottom: 0;
}

.news-article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.news-article-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color) !important;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    flex: 1;
}

.news-article-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    background: transparent !important;
    color: var(--text-color) !important;
}

.news-category {
    background: rgba(168, 85, 247, 0.2) !important;
    color: var(--primary-purple) !important;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.news-featured {
    background: var(--gradient-main) !important;
    color: white !important;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.news-article-content {
    color: var(--text-color) !important;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.news-article-content h1,
.news-article-content h2,
.news-article-content h3,
.news-article-content h4,
.news-article-content h5,
.news-article-content h6 {
    color: var(--text-color) !important;
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.news-article-content p {
    margin-bottom: 15px;
}

.news-article-content ul,
.news-article-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.news-article-content blockquote {
    border-left: 4px solid var(--primary-purple);
    padding-left: 15px;
    margin: 15px 0;
    font-style: italic;
    color: var(--text-secondary);
    background: rgba(168, 85, 247, 0.05);
    padding: 10px 15px;
    border-radius: 4px;
}

.news-article-content code {
    background: rgba(168, 85, 247, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--primary-cyan);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.news-article-content pre {
    background: rgba(168, 85, 247, 0.05);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.news-article-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary) !important;
}

.news-views {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-color) !important;
}

/* ========== NEWS TIME WITH ICON ========== */
.news-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.news-time i {
    font-size: 1rem;
    color: var(--primary-purple);
    animation: newsIconPulse 2s ease-in-out infinite;
}

@keyframes newsIconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.news-time img {
    width: 20px;
    vertical-align: middle;
}

/* ========== NEWS ARTICLE ICONS ========== */
.news-article-footer i {
    margin-right: 4px;
    color: var(--primary-cyan);
}

.news-views i {
    color: var(--primary-purple);
    animation: viewIconPulse 3s ease-in-out infinite;
}

@keyframes viewIconPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* ========== LOADING ========== */
.news-loading {
    text-align: center;
    padding: 40px;
}

.news-loading p {
    color: var(--text-secondary) !important;
    font-size: 0.95rem;
}

.news-loading .no-news-title {
    font-size: 1.1rem;
    color: var(--text-color) !important;
    font-weight: 600;
    margin-bottom: 8px;
}

.news-loading .no-news-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary) !important;
    opacity: 0.8;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.loading-spinner i {
    font-size: 2.5rem;
    color: var(--primary-purple);
    animation: spinGlow 1s linear infinite;
}

@keyframes spinGlow {
    0% {
        transform: rotate(0deg);
        filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.8));
    }
    100% {
        transform: rotate(360deg);
        filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.6));
    }
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-purple);
    border-right-color: var(--primary-cyan);
    animation: spin 0.8s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* Loading state for text */
.loading-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Loading button style */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pulse animation for loading states */
@keyframes pulse-loading {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.loading-pulse {
    animation: pulse-loading 1.5s ease-in-out infinite;
}

/* ========== NEWS BADGE STYLES ========== */
.news-badge {
    background: var(--gradient-main);
    color: white !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: badgePulse 2s infinite;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-badge.featured {
    background: linear-gradient(135deg, #EC4899 0%, #F59E0B 100%);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
}

.news-badge i {
    font-size: 0.75rem;
    animation: iconSpin 3s ease-in-out infinite;
}

@keyframes iconSpin {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

/* ========== NEWS LINK WITH ARROW ========== */
.news-link {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-link i {
    transition: transform 0.3s ease;
}

.news-link:hover i {
    transform: translateX(5px);
}

/* ========== HIDDEN UTILITY CLASS ========== */
.hidden {
    display: none !important;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--card-bg) !important;
    border-top: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-main);
    opacity: 0.3;
    pointer-events: none;
}

.footer p {
    margin: 0;
    color: var(--text-secondary) !important;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.hidden { display: none; }

/* ========== RESPONSIVE DESIGN ========== */
@media screen and (max-width: 768px) {
    .welcome-content h1 {
        font-size: 2rem;
    }
    
    .profile-main {
        align-items: center;
        gap: 20px;
    }
    
    .profile-stats {
        flex-direction: row !important;
        padding: 15px 25px !important;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .stat-pill {
        flex: 1;
        text-align: center;
    }
    
    .profile-avatar {
        order: -1;
    }
    
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .news-modal-header {
        padding: 20px;
    }
    
    .news-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .news-article {
        padding: 15px;
    }
    
    .news-article-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 480px) {
    :root {
        --nav-height: 50px;
    }
    
    .app-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .welcome-card,
    .profile-card {
        border-radius: 16px;
    }
    
    .welcome-content h1 {
        font-size: 1.5rem;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .footer {
        padding: 15px;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
}