/* ============================================
   MAIN STYLESHEET - SoftWare Mobile Pro
   Version: 2.1 (Cleaned & Optimized)
   ============================================ */

/* ======================
   VARIABLES & ROOT
   ====================== */
:root {
    /* Colors - Dark Theme (Default) */
    --primary: #38bdf8;
    --primary-dark: #0284c7;
    --primary-light: #7dd3fc;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --bg-dark: #020617;
    --card-bg: #1e293b;
    --nav-bg: rgba(15, 23, 42, 0.95);
    --border-color: rgba(255, 255, 255, 0.08);
    --code-bg: #0a0a0a;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #38bdf8;
    
    /* Notifications Colors (Dark) */
    --notif-bg: #1e293b;
    --notif-border: #334155;
    --notif-hover: #334155;
    --notif-unread-bg: rgba(56, 189, 248, 0.05);
    
    /* Shadows & Effects */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.3);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-dark));
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-dark));
    --gradient-dark: linear-gradient(135deg, #1e293b, #0f172a);
    
    /* Social Media Colors */
    --facebook: #1877f2;
    --github: #333;
    --telegram: #0088cc;
    --whatsapp: #25d366;
    --youtube: #ff0000;
}

/* Light Theme Variables */
body.light-theme {
    --primary: #0f6f9e;
    --primary-dark: #0a5a82;
    --primary-light: #2d8fc0;
    --secondary: #f1f5f9;
    --accent: #e67e22;
    --accent-dark: #d35400;
    --text-main: #0f172a;
    --text-muted: #475569;
    --bg-dark: #f8fafc;
    --card-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.98);
    --border-color: #e2e8f0;
    --code-bg: #f1f5f9;
    --shadow-glow: 0 0 20px rgba(15, 111, 158, 0.2);
    
    /* Notifications Colors (Light) */
    --notif-bg: #ffffff;
    --notif-border: #e2e8f0;
    --notif-hover: #f1f5f9;
    --notif-unread-bg: rgba(15, 111, 158, 0.05);
}

/* ======================
   RESET & BASE
   ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* ======================
   CUSTOM SCROLLBAR
   ====================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

::selection {
    background: var(--primary);
    color: var(--secondary);
}

/* ======================
   NAVBAR
   ====================== */
.navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.7rem 5%;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-lg);
}

body.light-theme .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: auto;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: var(--transition);
    position: relative;
}

body.light-theme .logo { 
    color: #0f172a; 
}

.logo::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.logo:hover::before { 
    width: 100%; 
}

.logo:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.logo span {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    border-radius: 2px;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* ======================
   MENU TOGGLE (Mobile)
   ====================== */
.menu-toggle {
    display: none;
    cursor: pointer;
    transition: var(--transition);
    width: 30px;
    height: 24px;
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-main);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transition: all 0.25s ease-in-out;
}

.menu-toggle span:nth-child(1) { top: 0px; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }

.menu-toggle:hover span { 
    background: var(--primary); 
}

.menu-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-toggle.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* ======================
   THEME TOGGLE
   ====================== */
.theme-toggle {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 50px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin-right: 15px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.theme-toggle:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.theme-toggle i {
    font-size: 1.4rem;
    color: var(--primary);
    transition: var(--transition);
}

.theme-toggle:hover i {
    color: var(--primary-light);
    transform: rotate(15deg);
}

/* ======================
   MAIN CONTENT
   ====================== */
main {
    margin-top: 80px;
    padding: 2rem 5%;
    min-height: calc(100vh - 400px);
}

/* ======================
   HERO SECTION
   ====================== */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 20px;
    background: radial-gradient(circle at top, #0f172a, #020617);
    color: #fff;
    position: relative;
    overflow: hidden;
}

body.light-theme .hero {
    background: radial-gradient(circle at top, #f1f5f9, #e2e8f0);
    color: var(--text-main);
}

.hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--primary);
    filter: blur(140px);
    opacity: 0.12;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.container {
    max-width: 900px;
    width: 100%;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.3;
    margin-bottom: 15px;
    text-shadow: 0 0 25px rgba(56, 189, 248, 0.2);
}

.brand {
    color: var(--primary);
    font-weight: 800;
}

.hero-desc {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 650px;
    margin: 0 auto 25px auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ======================
   BUTTONS
   ====================== */
.btn-main {
    background: var(--gradient-primary);
    color: var(--secondary);
    padding: 12px 26px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    display: inline-block;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn-main:hover::before { 
    left: 100%; 
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 26px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ======================
   CARDS & GRID
   ====================== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.custom-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.custom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.custom-card:hover::before { 
    transform: scaleX(1); 
}

.custom-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

body.light-theme .custom-card { 
    box-shadow: var(--shadow-sm); 
}

body.light-theme .custom-card:hover { 
    box-shadow: var(--shadow-lg); 
}

.custom-card .icon {
    font-size: 2.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.2rem;
    display: inline-block;
    transition: var(--transition);
}

.custom-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.custom-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.custom-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.custom-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ======================
   STATS SECTION
   ====================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    text-align: center;
}

.stat-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 24px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-item:hover::after { 
    transform: scaleX(1); 
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.stat-item h2 {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ======================
   SECTION TITLE
   ====================== */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin: 3rem 0 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 800;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 50%;
    transform: translateX(50%);
    width: 30px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 3px;
}

/* ======================
   PRICING CARDS
   ====================== */
.price-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.price-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.price-card.featured:hover {
    transform: translateY(-8px) scale(1.02);
}

.price-card .badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gradient-primary);
    color: var(--secondary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; transform: scale(0.98); }
}

.price-card h2 {
    font-size: 2.8rem;
    margin: 1.5rem 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.price-card ul {
    list-style: none;
    text-align: right;
    margin: 2rem 0;
}

.price-card li {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    transition: var(--transition);
}

.price-card li:hover {
    transform: translateX(-5px);
    color: var(--primary);
}

.price-card li i {
    color: var(--primary);
    margin-left: 10px;
}

/* ======================
   SOCIAL LINKS
   ====================== */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.social-links a:hover::before { 
    opacity: 1; 
}

.social-links a i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-links a:hover i {
    color: white;
    transform: scale(1.1);
}

.social-links a[href*="facebook"]:hover { background: var(--facebook); }
.social-links a[href*="github"]:hover { background: var(--github); }
.social-links a[href*="telegram"]:hover { background: var(--telegram); }
.social-links a[href*="whatsapp"]:hover { background: var(--whatsapp); }

/* ======================
   BACK TO TOP BUTTON
   ====================== */
#backToTop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--card-bg);
    color: var(--primary);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: var(--transition);
    font-size: 1.2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#backToTop:hover {
    background: var(--gradient-primary);
    color: var(--secondary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow);
}

#backToTop.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ======================
   FOOTER
   ====================== */
.main-footer {
    background: var(--secondary);
    padding: 3rem 5% 1.5rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
    position: relative;
}

body.light-theme .main-footer { 
    background: #f1f5f9; 
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: auto;
}

.footer-info h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.footer-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.9rem;
}

.footer-links h4,
.footer-support h4,
.footer-contact h4 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

.footer-links h4::after,
.footer-support h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
}

.footer-links ul,
.footer-support ul,
.footer-contact ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li,
.footer-support li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-support a,
.footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    font-size: 0.9rem;
}

.footer-links a:hover,
.footer-support a:hover,
.footer-contact a:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-contact li i {
    width: 25px;
    font-size: 1.1rem;
}

.footer-contact li i.fa-whatsapp { color: #25d366; }
.footer-contact li i.fa-envelope { color: #38bdf8; }
.footer-contact li i.fa-telegram { color: #0088cc; }
.footer-contact li i.fa-map-marker-alt { color: #f59e0b; }
.footer-contact li i.fa-clock { color: #10b981; }

.footer-contact span { 
    color: var(--text-muted); 
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.logo-white { 
    color: #ffffff; 
    font-weight: 700; 
}

body.light-theme .logo-white { 
    color: #0f172a; 
}

.logo-blue {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* ======================
   ARTICLE DETAIL
   ====================== */
.article-detail {
    max-width: 900px;
    margin: auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 32px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease;
}

.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.article-meta i {
    margin-left: 0.5rem;
    color: var(--primary);
}

.article-body h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--primary);
    border-right: 4px solid var(--primary);
    padding-right: 1rem;
}

.article-body h3 {
    font-size: 1.4rem;
    margin: 1.8rem 0 1rem;
    color: var(--primary-light);
}

.article-body p {
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.article-body ul,
.article-body ol {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-muted);
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body li::marker { 
    color: var(--primary); 
}

.code-box {
    background: var(--code-bg);
    color: var(--success);
    padding: 1.5rem;
    border-radius: 16px;
    font-family: 'Courier New', 'Fira Code', monospace;
    direction: ltr;
    text-align: left;
    margin: 1.5rem 0;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    position: relative;
}

.code-box::before {
    content: '</>';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: monospace;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 12px 28px;
    background: var(--gradient-primary);
    color: var(--secondary);
    text-decoration: none;
    border-radius: 14px;
    font-weight: bold;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

/* ======================
   UTILITY CLASSES
   ====================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Loading Spinner */
.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--card-bg) 25%, var(--border-color) 50%, var(--card-bg) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ======================
   NOTIFICATIONS SYSTEM
   ====================== */
.notifications-btn {
    position: relative;
    cursor: pointer;
    background: var(--notif-bg);
    border: 1px solid var(--notif-border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    color: var(--primary);
}

.notifications-btn:hover {
    background: var(--primary);
    color: #0f172a;
    border-color: var(--primary);
}

.notifications-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-panel {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    background: var(--notif-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    border: 1px solid var(--notif-border);
}

.notifications-panel.show {
    transform: translateX(0);
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--notif-border);
}

.notifications-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary);
}

.mark-all-btn {
    background: var(--primary);
    color: var(--secondary);
    border: none;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.7rem;
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    border-bottom: 1px solid var(--notif-border);
    cursor: pointer;
    transition: 0.2s;
}

.notification-item:hover {
    background: var(--notif-hover);
}

.notification-unread {
    background: var(--notif-unread-bg);
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.notification-message {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notification-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.notification-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
}

.notification-delete:hover {
    color: var(--danger);
}

.empty-notifications {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* ======================
   TOAST NOTIFICATIONS
   ====================== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #1e293b;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn 0.3s ease;
    border-right: 4px solid;
    min-width: 250px;
    position: relative;
}

body.light-theme .toast { 
    background: #ffffff; 
    color: #1e293b; 
}

.toast-success { border-right-color: var(--success); }
.toast-error { border-right-color: var(--danger); }
.toast-warning { border-right-color: var(--warning); }
.toast-info { border-right-color: var(--info); }

.toast-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    margin-right: auto;
    padding: 0 5px;
}

body.light-theme .toast-close { 
    color: #64748b; 
}

.toast-close:hover { 
    color: white; 
}

body.light-theme .toast-close:hover { 
    color: black; 
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ======================
   ANIMATIONS
   ====================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

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

/* ======================
   RESPONSIVE DESIGN
   ====================== */
@media (max-width: 1200px) {
    .hero-title { font-size: 2.8rem; }
}

@media (max-width: 992px) {
    .hero-title { font-size: 2.4rem; }
    .section-title { font-size: 2rem; }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        padding: 1.5rem;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        gap: 0.5rem;
        backdrop-filter: blur(12px);
        z-index: 999;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active { 
        display: flex; 
    }
    
    .nav-links li { 
        width: 100%; 
    }
    
    .nav-links a {
        display: block;
        padding: 0.8rem 1rem;
        border-radius: 8px;
        font-size: 1rem;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(56, 189, 248, 0.1);
    }
    
    .nav-links a::after { 
        display: none; 
    }

    .menu-toggle { 
        display: block; 
    }
    
    .hero { 
        padding: 3rem 1rem; 
    }
    
    .hero-title { 
        font-size: 1.8rem; 
    }
    
    .hero-desc { 
        font-size: 1rem; 
    }
    
    .grid-container { 
        grid-template-columns: 1fr; 
        gap: 1.5rem; 
    }
    
    .stats-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 1rem; 
    }
    
    .stat-item h2 { 
        font-size: 2rem; 
    }
    
    .article-detail { 
        padding: 1.5rem; 
    }
    
    .article-body h2 { 
        font-size: 1.4rem; 
    }
    
    .price-card.featured { 
        transform: scale(1); 
    }

    #backToTop {
        bottom: 20px;
        left: 20px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .footer-info, .footer-links, .footer-support, .footer-contact {
        width: 100% !important;
        text-align: center !important;
    }
    
    .footer-links h4::after, 
    .footer-support h4::after, 
    .footer-contact h4::after {
        right: 50% !important;
        transform: translateX(50%) !important;
    }
    
    .footer-contact li {
        justify-content: center !important;
    }
    
    .social-links { 
        justify-content: center !important; 
    }
    
    .notifications-panel {
        width: calc(100vw - 20px);
        right: 10px;
        left: 10px;
        top: 70px;
    }
}

@media (max-width: 480px) {
    .stats-grid { 
        grid-template-columns: 1fr; 
    }
    
    .hero-title { 
        font-size: 1.5rem; 
    }
    
    .section-title { 
        font-size: 1.6rem; 
    }
    
    .custom-card { 
        padding: 1.5rem; 
    }
}

.hero-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
