* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --accent-primary: #f59e0b;
    --accent-secondary: #ea580c;
    --accent-light: #fef3c7;
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --excel-color: #1D6F42; --excel-bg: #e8f5ed;
    --powerpoint-color: #D35230; --powerpoint-bg: #fdeee9;
    --word-color: #2B579A; --word-bg: #e8eef7;
    --powerbi-color: #F2C811; --powerbi-bg: #fef9e7;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
.hidden { display: none !important; }
.page { display: none; }
.page.active { display: block; animation: pageIn 0.4s ease-out; }

/* ==================== ANIMATIONS ==================== */
@keyframes pageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll.fade-left { transform: translateX(-40px); }
.animate-on-scroll.fade-left.visible { transform: translateX(0); }
.animate-on-scroll.fade-right { transform: translateX(40px); }
.animate-on-scroll.fade-right.visible { transform: translateX(0); }
.animate-on-scroll.scale-up { transform: scale(0.9); }
.animate-on-scroll.scale-up.visible { transform: scale(1); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Skeleton Loading */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
.skeleton-card { height: 280px; }
.skeleton-text { height: 20px; margin-bottom: 10px; }
.skeleton-text.short { width: 60%; }

/* ==================== NAVIGATION ==================== */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); padding: 0 1.5rem; transition: all 0.3s ease; }
nav.scrolled { box-shadow: var(--shadow-md); background: rgba(255,255,255,0.98); }
.nav-container { max-width: 1300px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; transition: transform 0.3s ease; }
.logo:hover { transform: scale(1.02); }
.logo-icon { width: 42px; height: 42px; background: var(--accent-gradient); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; box-shadow: 0 2px 8px rgba(245,158,11,0.3); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.logo-icon-img { width: 42px; height: 42px; border-radius: 10px; box-shadow: 0 2px 8px rgba(245,158,11,0.3); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.logo-bars-img { width: 32px; height: 32px; transition: transform 0.3s ease; }
.logo:hover .logo-icon, .logo:hover .logo-icon-img { transform: rotate(-5deg) scale(1.1); box-shadow: 0 4px 12px rgba(245,158,11,0.4); }
.logo:hover .logo-bars-img { transform: scale(1.1); }
.logo-text { font-size: 1.4rem; font-weight: 800; color: var(--text-primary); }
.logo-text span { color: var(--accent-primary); }

.nav-links { display: flex; gap: 0.5rem; background: var(--bg-secondary); padding: 5px; border-radius: 12px; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 0.9rem; padding: 10px 18px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; }
.nav-link::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transition: left 0.5s ease; }
.nav-link:hover::before { left: 100%; }
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.7); }
.nav-link.active { color: var(--accent-primary); font-weight: 600; background: transparent; }

/* Nav Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: flex; align-items: center; gap: 4px; }
.nav-dropdown-trigger .dropdown-arrow { font-size: 0.6rem; transition: transform 0.3s ease; }
.nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.nav-dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--accent-primary);
}

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.btn { padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease; border: none; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; position: relative; overflow: hidden; }
.btn::after { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(255,255,255,0.2); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.6s ease, height 0.6s ease; }
.btn:active::after { width: 300px; height: 300px; }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-secondary); transform: translateY(-2px); }
.btn-primary { background: var(--accent-gradient); color: white; box-shadow: 0 2px 8px rgba(245,158,11,0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(245,158,11,0.4); }
.btn-secondary { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { border-color: var(--accent-primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--accent-primary); border: 2px solid var(--accent-primary); }
.btn-outline:hover { background: var(--accent-primary); color: white; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* Mobile Menu */
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; padding: 8px; border-radius: 8px; transition: all 0.3s ease; }
.mobile-menu-btn:hover { background: var(--bg-secondary); }
.mobile-menu { position: fixed; top: 70px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--border-color); padding: 1rem; display: none; flex-direction: column; gap: 0.5rem; box-shadow: var(--shadow-lg); animation: slideDown 0.3s ease; z-index: 999; max-height: calc(100vh - 70px); overflow-y: auto; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.mobile-menu.active { display: flex; }
.mobile-menu .nav-link { padding: 14px 16px; border-radius: 8px; font-size: 1rem; display: block; }
.mobile-menu .nav-actions { display: flex !important; flex-direction: column; width: 100%; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-color); gap: 0.75rem; }
.mobile-menu .nav-actions.hidden { display: none !important; }
.mobile-menu .btn { width: 100%; justify-content: center; padding: 14px 20px; font-size: 1rem; }
.mobile-menu-divider { height: 1px; background: var(--border-color); margin: 8px 0; }

/* Mobile User Section */
.mobile-user-section { width: 100%; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 0.75rem; }
.mobile-user-section.hidden { display: none !important; }
.mobile-user-info { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--bg-secondary); border-radius: 10px; }
.mobile-user-name { font-weight: 600; color: var(--text-primary); }
.mobile-user-badge { padding: 3px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; background: #d1fae5; color: #065f46; }
.mobile-user-section .admin-link { color: #7c3aed; font-weight: 600; }
.mobile-user-section .admin-link.hidden { display: none; }

/* User Menu */
.user-menu { position: relative; }
.user-avatar { width: 40px; height: 40px; background: var(--accent-gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; }
.user-avatar:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(245,158,11,0.4); }
.user-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: white; border: 1px solid var(--border-color); border-radius: 12px; box-shadow: var(--shadow-xl); min-width: 220px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; }
.user-menu:hover .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown-header { padding: 1rem; border-bottom: 1px solid var(--border-color); }
.user-dropdown-name { font-weight: 600; font-size: 0.95rem; }
.user-dropdown-email { font-size: 0.8rem; color: var(--text-muted); }
.user-dropdown-item { display: flex; align-items: center; gap: 10px; padding: 12px 1rem; color: var(--text-secondary); font-size: 0.9rem; cursor: pointer; transition: all 0.2s; }
.user-dropdown-item:hover { background: var(--bg-secondary); color: var(--text-primary); padding-left: 1.25rem; }
.user-dropdown-item.danger { color: #dc2626; }
.user-dropdown-item.danger:hover { background: #fee2e2; }
.user-dropdown-item.admin { color: #7c3aed; font-weight: 600; }
.user-dropdown-item.admin:hover { background: #ede9fe; }

/* ==================== HERO ==================== */
.hero { padding: 120px 1.5rem 80px; background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%); pointer-events: none; }
.hero-container { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.hero-content { max-width: 550px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: white; border: 1px solid var(--border-color); border-radius: 50px; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); animation: fadeInUp 0.6s ease-out; }
.hero-badge-dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; animation: pulse 2s infinite; }
.hero-badge-text { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.hero-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem; animation: fadeInUp 0.6s ease-out 0.1s both; }
.hero-title-highlight { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.7; animation: fadeInUp 0.6s ease-out 0.2s both; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; animation: fadeInUp 0.6s ease-out 0.3s both; }
.hero-buttons .btn { padding: 14px 28px; font-size: 1rem; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; animation: fadeInUp 0.6s ease-out 0.4s both; }
.stat-item { text-align: left; }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--text-primary); }
.stat-label { color: var(--text-muted); font-size: 0.85rem; }

/* Dashboard Mockup */
.hero-illustration { position: relative; display: flex; justify-content: center; align-items: center; animation: fadeIn 1s ease-out 0.5s both; }
.dashboard-mockup { width: 100%; max-width: 520px; background: white; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15); overflow: hidden; border: 1px solid var(--border-color); animation: float 6s ease-in-out infinite; }
.dashboard-header { background: linear-gradient(135deg, #1e293b 0%, #334155 100%); padding: 12px 16px; display: flex; align-items: center; gap: 8px; }
.dashboard-dot { width: 10px; height: 10px; border-radius: 50%; }
.dashboard-dot.red { background: #ef4444; }
.dashboard-dot.yellow { background: #f59e0b; }
.dashboard-dot.green { background: #10b981; }
.dashboard-title { color: white; font-size: 0.8rem; margin-left: 8px; opacity: 0.8; }
.dashboard-body { padding: 16px; background: #f8fafc; }
.dashboard-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.dashboard-card { background: white; border-radius: 10px; padding: 12px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: transform 0.3s ease; }
.dashboard-card:hover { transform: translateY(-3px); }
.card-label { font-size: 0.65rem; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; }
.card-value { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.card-value.green { color: #10b981; }
.card-value.orange { color: #f59e0b; }
.card-value.blue { color: #3b82f6; }
.card-change { font-size: 0.6rem; color: #10b981; margin-top: 2px; }
.card-change.down { color: #ef4444; }

.dashboard-chart { background: white; border-radius: 10px; padding: 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); }
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.chart-title { font-size: 0.75rem; font-weight: 600; color: var(--text-primary); }
.chart-legend { display: flex; gap: 10px; }
.legend-item { display: flex; align-items: center; gap: 4px; font-size: 0.6rem; color: var(--text-muted); }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; }
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding-top: 10px; }
.chart-bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bar-container { display: flex; align-items: flex-end; gap: 2px; height: 70px; }
.chart-bar { width: 10px; border-radius: 2px 2px 0 0; animation: growBar 1.5s ease-out forwards; transform-origin: bottom; }
@keyframes growBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.chart-bar.primary { background: var(--accent-gradient); }
.chart-bar.secondary { background: #e2e8f0; }
.bar-label { font-size: 0.55rem; color: var(--text-muted); }

.floating-element { position: absolute; background: white; border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); display: flex; align-items: center; gap: 10px; animation: floatElement 4s ease-in-out infinite; }
.floating-element.excel { top: 10%; right: -10px; animation-delay: 0s; }
.floating-element.ppt { bottom: 25%; left: -20px; animation-delay: 1s; }
.floating-element.powerbi { bottom: 5%; right: 15%; animation-delay: 2s; }
@keyframes floatElement { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
.floating-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.floating-icon.excel { background: var(--excel-bg); }
.floating-icon.ppt { background: var(--powerpoint-bg); }
.floating-icon.word { background: var(--word-bg); }
.floating-icon.powerbi { background: var(--powerbi-bg); }
.floating-text { font-size: 0.7rem; }
.floating-text strong { display: block; color: var(--text-primary); font-weight: 600; }
.floating-text span { color: var(--text-muted); font-size: 0.6rem; }

/* ==================== SECTIONS ==================== */
.section { padding: 80px 1.5rem; }
.container { max-width: 1300px; margin: 0 auto; }
.category-section { margin-bottom: 4rem; }
.category-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.category-title-wrapper { display: flex; align-items: center; gap: 12px; }
.category-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; transition: transform 0.3s ease; }
.category-header:hover .category-icon { transform: scale(1.1) rotate(-5deg); }
.category-icon.excel { background: var(--excel-bg); }
.category-icon.powerpoint { background: var(--powerpoint-bg); }
.category-icon.word { background: var(--word-bg); }
.category-icon.powerbi { background: var(--powerbi-bg); }
.category-title { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.btn-view-all { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; background: var(--accent-light); border: none; border-radius: 8px; color: var(--accent-secondary); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease; }
.btn-view-all:hover { background: var(--accent-primary); color: white; transform: translateX(5px); }
.btn-view-all svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.btn-view-all:hover svg { transform: translateX(5px); }

/* ==================== TEMPLATE CARDS ==================== */
.templates-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.template-card { background: white; border-radius: 16px; overflow: hidden; border: 1px solid var(--border-color); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; }
.template-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.12); border-color: transparent; }
.template-preview { height: 180px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.template-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.template-card:hover .template-preview img { transform: scale(1.1); }
.template-preview.excel { background: linear-gradient(135deg, #e8f5ed 0%, #d1fae5 100%); }
.template-preview.powerpoint { background: linear-gradient(135deg, #fdeee9 0%, #fed7aa 100%); }
.template-preview.word { background: linear-gradient(135deg, #e8eef7 0%, #dbeafe 100%); }
.template-preview.powerbi { background: linear-gradient(135deg, #fef9e7 0%, #fef08a 100%); }
.template-preview-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform 0.4s ease; }
.template-card:hover .template-preview-placeholder { transform: scale(1.1); }
.template-preview-placeholder .icon { font-size: 3.5rem; }
.template-preview-placeholder .text { font-size: 0.75rem; color: var(--text-muted); background: rgba(255,255,255,0.9); padding: 4px 12px; border-radius: 4px; font-weight: 500; }
.template-badge { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; transition: transform 0.3s ease; }
.template-card:hover .template-badge { transform: scale(1.1); }
.template-badge.free { background: #d1fae5; color: #065f46; }
.template-badge.pro { background: #fef3c7; color: #92400e; }
.template-badge.premium { background: #ede9fe; color: #5b21b6; }
.template-badge.purchase { background: #fce7f3; color: #be185d; }
.template-price-badge { position: absolute; bottom: 10px; left: 10px; padding: 4px 8px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; background: rgba(0,0,0,0.75); color: #fff; backdrop-filter: blur(4px); }
.template-info { padding: 1rem; }
.template-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem; color: var(--text-primary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.3s ease; }
.template-card:hover .template-name { color: var(--accent-primary); }
.template-meta { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.template-type { display: flex; align-items: center; gap: 4px; color: var(--text-muted); }
.template-type-icon { width: 16px; height: 16px; border-radius: 3px; }
.template-type-icon.excel { background: var(--excel-color); }
.template-type-icon.powerpoint { background: var(--powerpoint-color); }
.template-type-icon.word { background: var(--word-color); }
.template-type-icon.powerbi { background: var(--powerbi-color); }

/* ==================== PAGE HEADER ==================== */
.page-header { padding: 100px 1.5rem 40px; background: var(--bg-secondary); }
.page-header-container { max-width: 1300px; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; margin-bottom: 1.5rem; cursor: pointer; transition: all 0.3s ease; }
.back-link:hover { color: var(--accent-primary); transform: translateX(-5px); }
.page-header-content { display: flex; align-items: center; gap: 1rem; animation: fadeInUp 0.5s ease-out; }
.page-header-icon { width: 60px; height: 60px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.page-header-icon.excel { background: var(--excel-bg); }
.page-header-icon.powerpoint { background: var(--powerpoint-bg); }
.page-header-icon.word { background: var(--word-bg); }
.page-header-icon.powerbi { background: var(--powerbi-bg); }
.page-header-info h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.25rem; }
.page-header-info p { color: var(--text-secondary); }
.templates-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2rem 1.5rem; max-width: 1300px; margin: 0 auto; }

/* ==================== DETAIL PAGE ==================== */
.template-detail { max-width: 1200px; margin: 0 auto; padding: 100px 1.5rem 60px; }
.template-detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.template-detail-preview { background: white; border-radius: 16px; overflow: hidden; border: 1px solid var(--border-color); box-shadow: var(--shadow-lg); animation: scaleIn 0.5s ease-out; }
.template-detail-image { height: 350px; display: flex; align-items: center; justify-content: center; }
.template-detail-image img { width: 100%; height: 100%; object-fit: contain; }
.template-detail-image.excel { background: linear-gradient(135deg, #e8f5ed 0%, #d1fae5 100%); }
.template-detail-image.powerpoint { background: linear-gradient(135deg, #fdeee9 0%, #fed7aa 100%); }
.template-detail-image.word { background: linear-gradient(135deg, #e8eef7 0%, #dbeafe 100%); }
.template-detail-image.powerbi { background: linear-gradient(135deg, #fef9e7 0%, #fef08a 100%); }
.preview-placeholder { text-align: center; }
.preview-placeholder .icon { font-size: 5rem; margin-bottom: 1rem; }
.preview-placeholder .text { color: var(--text-muted); font-size: 0.9rem; }
.template-detail-thumbnails { display: flex; gap: 0.75rem; padding: 1rem; border-top: 1px solid var(--border-color); background: white; }
.thumbnail { width: 70px; height: 50px; background: var(--bg-secondary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; border: 2px solid transparent; cursor: pointer; transition: all 0.3s ease; overflow: hidden; }
.thumbnail:hover, .thumbnail.active { border-color: var(--accent-primary); transform: scale(1.05); }
.template-detail-info { position: sticky; top: 90px; animation: slideInRight 0.5s ease-out; }
.detail-badge { display: inline-block; padding: 6px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; }
.detail-badge.free { background: #d1fae5; color: #065f46; }
.detail-badge.pro { background: #fef3c7; color: #92400e; }
.detail-badge.premium { background: #ede9fe; color: #5b21b6; }
.detail-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--text-primary); }
.detail-category { color: var(--text-muted); font-size: 0.9rem; }
.detail-category-link { display: inline-block; color: var(--accent-primary); font-size: 0.9rem; margin-bottom: 1.5rem; cursor: pointer; transition: color 0.2s; text-decoration: none; }
.detail-category-link:hover { color: var(--accent-secondary); text-decoration: underline; }
.detail-category-link span { color: inherit; }
.stars { letter-spacing: 2px; }
.detail-meta { background: var(--bg-secondary); border-radius: 12px; padding: 1.25rem; margin-bottom: 1.5rem; }
.detail-meta h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text-primary); }
.detail-meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.detail-meta-item { display: flex; flex-direction: column; gap: 4px; }
.detail-meta-label { font-size: 0.75rem; color: var(--text-muted); }
.detail-meta-value { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.detail-versions { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.detail-versions .detail-meta-label { margin-bottom: 0.5rem; display: block; }
.version-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.version-tag { padding: 4px 10px; background: white; border: 1px solid var(--border-color); border-radius: 6px; font-size: 0.75rem; color: var(--text-secondary); }
.detail-stats { display: flex; gap: 2rem; padding: 1.25rem 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); margin-bottom: 1.5rem; }
.detail-stat { text-align: center; }
.detail-stat-value { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.detail-stat-value.rating { color: #f59e0b; }
.detail-stat-label { font-size: 0.75rem; color: var(--text-muted); }
.detail-description { color: var(--text-secondary); line-height: 1.8; }
.detail-description p { margin-bottom: 1rem; }
.detail-description p:last-child { margin-bottom: 0; }
.detail-description img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }
.detail-description iframe { width: 100%; aspect-ratio: 16/9; border-radius: 8px; margin: 1rem 0; border: none; }
.detail-description h1, .detail-description h2, .detail-description h3 { color: var(--text-primary); margin: 1.5rem 0 0.75rem; }
.detail-description ul, .detail-description ol { margin: 1rem 0; padding-left: 1.5rem; }
.detail-description li { margin-bottom: 0.5rem; }
.detail-description blockquote { border-left: 4px solid var(--accent-primary); padding-left: 1rem; margin: 1rem 0; font-style: italic; color: var(--text-muted); }
.detail-description a { color: var(--accent-primary); text-decoration: underline; }
.detail-description strong { color: var(--text-primary); }
.template-description-box { padding: 1.5rem; border-top: 1px solid var(--border-color); background: white; }
.template-description-box h3 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.75rem; }
.detail-features { background: var(--bg-secondary); border-radius: 12px; padding: 1.25rem; margin-bottom: 1.5rem; }
.detail-features h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text-primary); }
.feature-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--text-secondary); font-size: 0.9rem; }
.feature-item .check { width: 18px; height: 18px; background: #d1fae5; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #065f46; font-size: 0.7rem; flex-shrink: 0; }
.access-requirement { padding: 12px 16px; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.access-requirement.free { background: #d1fae5; color: #065f46; }
.access-requirement.pro { background: #fef3c7; color: #92400e; }
.access-requirement.premium { background: #ede9fe; color: #5b21b6; }
.access-requirement.purchase { background: #fce7f3; color: #be185d; }
.access-requirement .access-icon { font-size: 1.1rem; flex-shrink: 0; }
.access-requirement .access-purchase { margin-left: auto; white-space: nowrap; }
.access-requirement .access-purchase a { color: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.access-requirement .access-purchase a:hover { opacity: 0.8; }
.detail-actions { display: flex; gap: 1rem; }
.detail-actions .btn { flex: 1; padding: 14px 24px; font-size: 1rem; justify-content: center; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.5rem; }
.detail-tag { padding: 6px 12px; background: var(--bg-secondary); border-radius: 20px; font-size: 0.8rem; color: var(--text-secondary); transition: all 0.3s ease; }
.detail-tag:hover { background: var(--accent-light); color: var(--accent-secondary); }

/* User Rating Section */
.user-rating-section { margin-top: 1.5rem; padding: 1.25rem; background: var(--bg-secondary); border-radius: 12px; text-align: center; }
.user-rating-section h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--text-primary); }
.user-rating-stars { display: flex; justify-content: center; gap: 8px; margin-bottom: 0.5rem; }
.rating-star { font-size: 2rem; color: #d1d5db; cursor: pointer; transition: all 0.2s ease; }
.rating-star:hover, .rating-star.hover { color: #fbbf24; transform: scale(1.15); }
.rating-star.active { color: #f59e0b; }
.rating-star.submitted { color: #f59e0b; cursor: default; }
.user-rating-text { font-size: 0.85rem; color: var(--text-muted); }
.user-rating-text.success { color: #059669; font-weight: 500; }
.user-rating-section.logged-out .user-rating-stars { pointer-events: none; opacity: 0.5; }

/* ==================== PRICING ==================== */
.pricing-header { text-align: center; margin-bottom: 3rem; }
.pricing-header h1 { font-size: 2.25rem; font-weight: 800; margin-bottom: 0.5rem; }
.pricing-header p { color: var(--text-secondary); font-size: 1.1rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.pricing-card { background: white; border-radius: 20px; padding: 2rem; border: 1px solid var(--border-color); position: relative; transition: all 0.4s ease; }
.pricing-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-xl); }
.pricing-card.popular { border: 2px solid var(--accent-primary); box-shadow: var(--shadow-lg); transform: scale(1.05); }
.pricing-card.popular:hover { transform: scale(1.05) translateY(-10px); }
.pricing-card.popular::before { content: '⭐ Plus Populaire'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 6px 16px; background: var(--accent-gradient); border-radius: 20px; font-size: 0.75rem; font-weight: 700; color: white; white-space: nowrap; animation: pulse 2s infinite; }
.pricing-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.pricing-price { margin-bottom: 1.5rem; }
.pricing-amount { font-size: 2rem; font-weight: 800; }
.pricing-original { font-size: 1.1rem; color: var(--text-muted); text-decoration: line-through; margin-right: 8px; }
.pricing-original:not(.hidden) + .pricing-amount { color: #10b981; }
.pricing-period { color: var(--text-muted); font-size: 0.9rem; }
.pricing-promo-banner { background: linear-gradient(135deg, #10b981 0%, #059669 100%); border-radius: 12px; padding: 1rem 1.5rem; margin-bottom: 2rem; color: white; display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; animation: pulse 2s infinite; }
.pricing-promo-banner .promo-badge { background: rgba(255,255,255,0.2); padding: 6px 12px; border-radius: 20px; font-weight: 700; font-size: 0.85rem; }
.pricing-promo-banner #pricing-promo-text { font-size: 1.1rem; font-weight: 600; }
.pricing-promo-banner .promo-timer { background: rgba(0,0,0,0.2); padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; }
.pricing-card.has-promo { border-color: #10b981; }
.pricing-card.has-promo .pricing-name::after { content: ' 🎉'; }
.pricing-features { list-style: none; margin-bottom: 1.5rem; }
.pricing-features li { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--text-secondary); font-size: 0.9rem; }
.pricing-features li .check { color: var(--accent-primary); font-weight: bold; }
.pricing-card .btn { width: 100%; justify-content: center; }
.payment-methods { background: var(--bg-secondary); border-radius: 20px; padding: 2rem; margin-top: 3rem; text-align: center; }
.payment-methods h3 { margin-bottom: 1.5rem; font-size: 1.1rem; }
.payment-icons { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.payment-item { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: white; border-radius: 10px; border: 1px solid var(--border-color); transition: all 0.3s ease; }
.payment-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.payment-item span:first-child { font-size: 1.25rem; }
.payment-item span:last-child { color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; }

/* Payment Modal */
.payment-plan-selected { background: var(--accent-light); border-radius: 12px; padding: 1.25rem; margin-bottom: 1.5rem; text-align: center; }
.payment-plan-name { font-size: 1.25rem; font-weight: 700; color: var(--accent-secondary); margin-bottom: 0.25rem; }
.payment-plan-price { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); }
.payment-instructions { background: var(--bg-secondary); border-radius: 12px; padding: 1.25rem; margin-bottom: 1.5rem; }
.payment-instructions h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.payment-instructions ol { padding-left: 1.25rem; }
.payment-instructions li { margin-bottom: 0.75rem; color: var(--text-secondary); line-height: 1.6; }
.payment-instructions strong { color: var(--text-primary); }
.payment-contact-options { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.payment-contact-options h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.btn-whatsapp { background: #25D366; color: white; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: all 0.3s; }
.btn-whatsapp:hover { background: #1DA851; transform: translateY(-2px); }
.btn-email { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: all 0.3s; }
.btn-email:hover { background: var(--border-color); transform: translateY(-2px); }
.payment-note { font-size: 0.85rem; color: var(--text-muted); text-align: center; padding: 1rem; background: #f0fdf4; border-radius: 8px; border-left: 3px solid #10b981; }

/* My Subscription Page */
.subscription-header { text-align: center; margin-bottom: 2rem; }
.subscription-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.subscription-header p { color: var(--text-secondary); }
.subscription-card { background: white; border-radius: 16px; padding: 2rem; border: 1px solid var(--border-color); box-shadow: var(--shadow-md); margin-bottom: 2rem; }
.subscription-status { display: flex; align-items: center; gap: 1.5rem; }
.subscription-icon { font-size: 3rem; }
.subscription-info h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.subscription-info p { color: var(--text-secondary); }
.subscription-card.active { border-color: #10b981; background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); }
.subscription-card.active .subscription-icon { color: #10b981; }
.subscription-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.subscription-date .label { font-size: 0.8rem; color: var(--text-muted); display: block; }
.subscription-date .value { font-weight: 600; color: var(--text-primary); }
.subscription-plans-section { margin-bottom: 2rem; }
.subscription-plans-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.mini-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mini-pricing-card { background: white; border-radius: 12px; padding: 1.25rem; border: 1px solid var(--border-color); cursor: pointer; transition: all 0.3s; }
.mini-pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent-primary); }
.mini-pricing-card.popular { border: 2px solid var(--accent-primary); }
.mini-plan-name { font-weight: 700; margin-bottom: 0.5rem; }
.mini-plan-price { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.mini-plan-price small { font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }
.mini-pricing-card ul { list-style: none; font-size: 0.8rem; color: var(--text-secondary); }
.mini-pricing-card ul li { padding: 0.25rem 0; }
.mini-pricing-card ul li::before { content: "✓ "; color: var(--accent-primary); }
.subscription-help { background: var(--bg-secondary); border-radius: 12px; padding: 1.5rem; text-align: center; }
.subscription-help a { color: var(--accent-primary); text-decoration: none; font-weight: 600; }
.subscription-help a:hover { text-decoration: underline; }
.user-subscription-badge { margin-top: 0.5rem; padding: 4px 10px; border-radius: 12px; font-size: 0.7rem; font-weight: 600; display: inline-block; }
.user-subscription-badge.active { background: #d1fae5; color: #065f46; }
.user-subscription-badge.none { background: #fee2e2; color: #991b1b; }
.guest-only { }

/* ==================== FOOTER ==================== */
footer { background: #1e293b; color: white; padding: 4rem 1.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; max-width: 1300px; margin: 0 auto 3rem; }
.footer-brand .logo-text { color: white; }
.footer-brand p { color: #94a3b8; font-size: 0.9rem; margin-top: 1rem; max-width: 280px; }
.footer-title { font-weight: 700; margin-bottom: 1.25rem; font-size: 0.95rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: 0.9rem; transition: all 0.3s ease; cursor: pointer; display: inline-block; }
.footer-links a:hover { color: var(--accent-primary); transform: translateX(5px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid #334155; max-width: 1300px; margin: 0 auto; }
.footer-copyright { color: #64748b; font-size: 0.85rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { width: 40px; height: 40px; background: #334155; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #94a3b8; text-decoration: none; transition: all 0.3s ease; font-size: 1rem; }
.footer-social a:hover { background: var(--accent-primary); color: white; transform: translateY(-3px); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
    .templates-row, .templates-grid { grid-template-columns: repeat(3, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-10px); }
}
@media (max-width: 1024px) {
    .nav-links { display: none !important; }
    .nav-actions { display: none !important; }
    .search-container { display: none !important; }
    .mobile-menu-btn { display: flex !important; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 1.8rem; }
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero-content { max-width: 100%; margin: 0 auto; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .stat-item { text-align: center; }
    .hero-illustration { display: none; }
    .template-detail-grid { grid-template-columns: 1fr; }
    .template-detail-info { position: static; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .templates-row, .templates-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .category-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .hero-stats { gap: 1.5rem; }
    .stat-value { font-size: 1.5rem; }
    .detail-stats { flex-wrap: wrap; gap: 1rem; }
    .detail-actions { flex-direction: column; }
}
@media (max-width: 500px) {
    .templates-row, .templates-grid { grid-template-columns: 1fr; }
    nav { padding: 0 1rem; }
    .section { padding: 60px 1rem; }
    .hero { padding: 100px 1rem 60px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .template-preview { height: 200px; }
    .pricing-card { padding: 1.5rem; }
}

/* ==================== AUTH MODAL ==================== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 1rem; opacity: 0; visibility: hidden; transition: all 0.3s ease; backdrop-filter: blur(4px); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: white; border-radius: 20px; width: 100%; max-width: 420px; overflow: hidden; transform: scale(0.9) translateY(20px); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-header { padding: 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-weight: 700; font-size: 1.2rem; }
.modal-close { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--bg-secondary); cursor: pointer; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.modal-close:hover { background: #fee2e2; color: #dc2626; transform: rotate(90deg); }
.modal-body { padding: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.form-input { width: 100%; padding: 12px 14px; border: 2px solid var(--border-color); border-radius: 10px; font-size: 1rem; font-family: inherit; transition: all 0.3s ease; }
.form-input:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 4px rgba(245,158,11,0.15); }
.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-secondary); }
.auth-switch a { color: var(--accent-primary); font-weight: 600; cursor: pointer; text-decoration: none; transition: color 0.3s ease; }
.auth-switch a:hover { color: var(--accent-secondary); }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 1rem; font-size: 0.9rem; display: none; animation: fadeIn 0.3s ease; }
.alert.show { display: block; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #d1fae5; color: #065f46; }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-state-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state-text { font-size: 1rem; }

/* Loading spinner */
.loading-spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: white; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== SEARCH BAR ==================== */
.search-container { position: relative; flex: 1; max-width: 280px; margin: 0 1.5rem; }
.search-input-wrapper { position: relative; display: flex; align-items: center; }
.search-input { width: 100%; padding: 10px 16px 10px 42px; border: 2px solid var(--border-color); border-radius: 12px; font-size: 0.9rem; font-family: inherit; background: var(--bg-secondary); transition: all 0.3s ease; }
.search-input:focus { outline: none; border-color: var(--accent-primary); background: white; box-shadow: 0 0 0 4px rgba(245,158,11,0.1); }
.search-input::placeholder { color: var(--text-muted); }
.search-icon { position: absolute; left: 14px; color: var(--text-muted); font-size: 1rem; pointer-events: none; }
.search-clear { position: absolute; right: 12px; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; padding: 4px; border-radius: 50%; transition: all 0.2s; display: none; }
.search-clear.visible { display: block; }
.search-clear:hover { background: var(--bg-secondary); color: var(--text-primary); }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: white; border: 1px solid var(--border-color); border-radius: 12px; box-shadow: var(--shadow-xl); max-height: 400px; overflow-y: auto; z-index: 1001; display: none; }
.search-results.active { display: block; animation: fadeIn 0.2s ease; }
.search-result-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; transition: background 0.2s; border-bottom: 1px solid var(--border-color); }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-secondary); }
.search-result-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.search-result-icon.excel { background: var(--excel-bg); }
.search-result-icon.powerpoint { background: var(--powerpoint-bg); }
.search-result-icon.word { background: var(--word-bg); }
.search-result-icon.powerbi { background: var(--powerbi-bg); }
.search-result-info { flex: 1; min-width: 0; }
.search-result-name { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-meta { font-size: 0.75rem; color: var(--text-muted); }
.search-result-badge { padding: 2px 8px; border-radius: 4px; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; }
.search-no-results { padding: 2rem; text-align: center; color: var(--text-muted); }
.search-no-results-icon { font-size: 2.5rem; margin-bottom: 0.5rem; opacity: 0.5; }

/* ==================== FILTERS ==================== */
.filters-bar { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; margin-bottom: 1.5rem; flex-wrap: wrap; }
.filters-label { font-weight: 600; font-size: 0.9rem; color: var(--text-secondary); }
.filter-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-chip { padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; border: 2px solid var(--border-color); background: white; color: var(--text-secondary); }
.filter-chip:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.filter-chip.active { background: var(--accent-gradient); color: white; border-color: transparent; box-shadow: 0 2px 8px rgba(245,158,11,0.3); }
.filter-chip.excel.active { background: var(--excel-color); }
.filter-chip.powerpoint.active { background: var(--powerpoint-color); }
.filter-chip.word.active { background: var(--word-color); }
.filter-chip.powerbi.active { background: var(--powerbi-color); }
.filter-divider { width: 1px; height: 24px; background: var(--border-color); margin: 0 0.5rem; }
.results-count { font-size: 0.85rem; color: var(--text-muted); margin-left: auto; }
.sort-select { padding: 8px 12px; border: 2px solid var(--border-color); border-radius: 8px; font-size: 0.85rem; font-family: inherit; background: white; cursor: pointer; transition: all 0.3s; }
.sort-select:focus { outline: none; border-color: var(--accent-primary); }

/* ==================== RELATED TEMPLATES ==================== */
.related-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }
.related-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--text-primary); }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* ==================== IMPROVED RESPONSIVE ==================== */
@media (max-width: 1100px) {
    .templates-row, .templates-grid, .related-grid { grid-template-columns: repeat(3, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-10px); }
    .search-container { max-width: 300px; margin: 0 1rem; }
}
@media (max-width: 1024px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .filters-bar { justify-content: flex-start; }
    .results-count { width: 100%; margin-left: 0; margin-top: 0.5rem; }
}
@media (max-width: 768px) {
    .templates-row, .templates-grid, .related-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .category-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; min-height: 48px; }
    .hero-stats { gap: 1.5rem; }
    .stat-value { font-size: 1.5rem; }
    .detail-stats { flex-wrap: wrap; gap: 1rem; }
    .detail-actions { flex-direction: column; }
    .detail-actions .btn { min-height: 48px; }
    .filter-chips { width: 100%; }
    .filter-chip { flex: 1; min-width: calc(50% - 0.25rem); text-align: center; justify-content: center; }
    .filter-divider { display: none; }
    .btn { min-height: 44px; }
    .template-card { border-radius: 12px; }
    .template-preview { height: 160px; }
    .template-info { padding: 0.875rem; }
    .template-name { font-size: 0.9rem; }
}
@media (max-width: 500px) {
    .templates-row, .templates-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    nav { padding: 0 1rem; }
    .section { padding: 60px 1rem; }
    .hero { padding: 100px 1rem 60px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .template-preview { height: 200px; }
    .pricing-card { padding: 1.5rem; }
    .hero-badge { padding: 6px 12px; }
    .hero-badge-text { font-size: 0.8rem; }
    .hero-stats { gap: 1rem; }
    .stat-item { min-width: calc(50% - 0.5rem); }
    .filter-chip { min-width: 100%; }
    .page-header { padding: 90px 1rem 30px; }
    .page-header-icon { width: 50px; height: 50px; font-size: 1.5rem; }
    .page-header-info h1 { font-size: 1.5rem; }
}

/* Mobile search in menu */
.mobile-search { padding: 0 0 1rem 0; }
.mobile-search .search-input { background: white; border-color: var(--border-color); }
.mobile-menu .search-results { position: relative; top: 0.5rem; max-height: 250px; }

/* ==================== LIGHTBOX ==================== */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.9); display: flex; align-items: center; justify-content: center; z-index: 3000; padding: 2rem; animation: fadeIn 0.3s ease; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-content img { max-width: 100%; max-height: 80vh; border-radius: 12px; box-shadow: 0 25px 50px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: -40px; right: 0; background: none; border: none; color: white; font-size: 2rem; cursor: pointer; transition: transform 0.3s; padding: 8px; }
.lightbox-close:hover { transform: scale(1.2); }
.lightbox-title { text-align: center; color: white; margin-top: 1rem; font-size: 1rem; font-weight: 500; }

/* ==================== SECTION HEADERS ==================== */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-badge { display: inline-block; padding: 8px 16px; background: var(--accent-light); color: var(--accent-secondary); font-size: 0.85rem; font-weight: 600; border-radius: 20px; margin-bottom: 1rem; }
.section-title { font-size: 2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.75rem; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ==================== HOW IT WORKS SECTION ==================== */
.how-it-works-section { background: var(--bg-secondary); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-card { background: white; border-radius: 20px; padding: 2rem; text-align: center; position: relative; border: 1px solid var(--border-color); transition: all 0.4s ease; }
.step-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-xl); border-color: transparent; }
.step-number { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; background: var(--accent-gradient); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; box-shadow: 0 4px 12px rgba(245,158,11,0.3); }
.step-icon { font-size: 3rem; margin-bottom: 1rem; }
.step-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.75rem; }
.step-description { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials-section { background: white; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card { background: var(--bg-secondary); border-radius: 20px; padding: 2rem; position: relative; transition: all 0.4s ease; border: 1px solid transparent; }
.testimonial-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); background: white; border-color: var(--border-color); }
.testimonial-stars { color: #f59e0b; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 1rem; }
.testimonial-text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 48px; height: 48px; background: var(--accent-gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.testimonial-info { }
.testimonial-name { font-weight: 600; color: var(--text-primary); font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* ==================== CUSTOM SERVICE SECTION ==================== */
.custom-service-section { background: linear-gradient(135deg, #1e293b 0%, #334155 100%); }
.custom-service-card { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; background: rgba(255,255,255,0.05); border-radius: 24px; padding: 3rem; border: 1px solid rgba(255,255,255,0.1); }
.custom-service-badge { display: inline-block; padding: 6px 14px; background: var(--accent-gradient); color: white; font-size: 0.8rem; font-weight: 600; border-radius: 20px; margin-bottom: 1rem; }
.custom-service-title { font-size: 2rem; font-weight: 800; color: white; margin-bottom: 1rem; }
.custom-service-description { font-size: 1rem; color: #94a3b8; line-height: 1.7; margin-bottom: 1.5rem; max-width: 600px; }
.custom-service-features { list-style: none; margin-bottom: 2rem; }
.custom-service-features li { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: #e2e8f0; font-size: 0.95rem; }
.custom-service-features .check-icon { width: 22px; height: 22px; background: rgba(16,185,129,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #10b981; font-size: 0.75rem; flex-shrink: 0; }
.custom-service-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.custom-service-actions .btn { padding: 14px 28px; font-size: 1rem; }
.btn-lg { padding: 16px 32px !important; font-size: 1rem !important; }
.custom-service-illustration { width: 200px; height: 200px; background: rgba(245,158,11,0.1); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed rgba(245,158,11,0.3); }
.custom-illustration-icon { font-size: 4rem; margin-bottom: 0.5rem; }
.custom-illustration-text { color: #94a3b8; font-size: 0.9rem; text-align: center; font-weight: 600; }

/* Responsive for new sections */
@media (max-width: 1024px) {
    .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .testimonials-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .custom-service-card { grid-template-columns: 1fr; text-align: center; }
    .custom-service-description { margin-left: auto; margin-right: auto; }
    .custom-service-features { display: inline-block; text-align: left; }
    .custom-service-actions { justify-content: center; }
    .custom-service-illustration { margin: 0 auto 2rem; order: -1; }
}
@media (max-width: 768px) {
    .section-title { font-size: 1.5rem; }
    .custom-service-title { font-size: 1.5rem; }
    .custom-service-actions { flex-direction: column; }
    .custom-service-actions .btn { width: 100%; }
    .custom-service-illustration { width: 150px; height: 150px; }
    .custom-illustration-icon { font-size: 3rem; }
}
@media (max-width: 500px) {
    .step-card { padding: 1.5rem; }
    .testimonial-card { padding: 1.5rem; }
    .custom-service-card { padding: 1.5rem; }
}

/* ==================== SIMPLE PAGES (About, Contact, FAQ, etc.) ==================== */
.page-simple-header { margin-bottom: 3rem; }
.page-simple-header h1 { font-size: 2rem; font-weight: 800; margin: 1rem 0 0.5rem; color: var(--text-primary); }
.page-simple-header .page-intro { color: var(--text-secondary); font-size: 1.1rem; }

.content-section { margin-bottom: 2.5rem; }
.content-section h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-primary); }
.content-section p { color: var(--text-secondary); line-height: 1.8; }

/* Values Grid (About page) */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.value-card { background: var(--bg-secondary); border-radius: 12px; padding: 1.5rem; text-align: center; border: 1px solid var(--border-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.value-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-primary); }
.value-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* Empty State (Blog page) */
.empty-state { text-align: center; padding: 4rem 2rem; background: var(--bg-secondary); border-radius: 16px; border: 2px dashed var(--border-color); }
.empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-primary); }
.empty-state p { color: var(--text-secondary); }

/* Partner CTA */
.partner-cta { margin-top: 2rem; }

/* Contact Grid */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.contact-card { background: var(--bg-secondary); border-radius: 16px; padding: 2rem; text-align: center; border: 1px solid var(--border-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-icon { font-size: 3rem; margin-bottom: 1rem; }
.contact-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-primary); }
.contact-card p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.9rem; }
.contact-card .btn { min-width: 200px; }

/* Help Categories */
.help-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.help-card { background: var(--bg-secondary); border-radius: 16px; padding: 2rem; text-align: center; border: 1px solid var(--border-color); cursor: pointer; transition: all 0.3s ease; }
.help-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-primary); }
.help-icon { font-size: 3rem; margin-bottom: 1rem; }
.help-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-primary); }
.help-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* FAQ Accordion */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--bg-secondary); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; cursor: pointer; font-weight: 600; color: var(--text-primary); transition: background 0.3s ease; }
.faq-question:hover { background: rgba(0,0,0,0.02); }
.faq-toggle { font-size: 1.5rem; color: var(--accent-primary); transition: transform 0.3s ease; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 500px; padding: 0 1.5rem 1.25rem; }
.faq-answer p { color: var(--text-secondary); line-height: 1.7; }

/* Tutorials Grid */
.tutorials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.tutorial-card { background: var(--bg-secondary); border-radius: 16px; padding: 1.5rem; border: 1px solid var(--border-color); transition: all 0.3s ease; }
.tutorial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-primary); }
.tutorial-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.tutorial-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-primary); }
.tutorial-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }
.tutorial-duration { font-size: 0.8rem; color: var(--accent-primary); font-weight: 500; }

/* Responsive for new pages */
@media (max-width: 768px) {
    .page-simple-header h1 { font-size: 1.6rem; }
    .values-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .help-categories { grid-template-columns: 1fr; }
    .tutorials-grid { grid-template-columns: 1fr; }
}

/* ==================== ENHANCED ABOUT PAGE ==================== */
.about-hero {
    padding: 120px 1.5rem 60px;
    background: linear-gradient(180deg, #fef3c7 0%, #fffbeb 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}
.about-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.about-hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}
.about-badge {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.about-hero-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}
.about-hero-content h1 .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.about-hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* About Mission Section */
.about-mission-section { background: white; }
.about-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-mission-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 1rem 0;
    color: var(--text-primary);
}
.about-mission-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.mission-list {
    list-style: none;
    padding: 0;
}
.mission-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.mission-list .check-icon {
    width: 24px;
    height: 24px;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #065f46;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.mission-stats-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 24px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.mission-stat { text-align: center; }
.mission-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
}
.mission-stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* About Values Section */
.about-values-section { background: var(--bg-secondary); }
.values-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.value-card-enhanced {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}
.value-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.value-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}
.value-icon-bg {
    width: 70px;
    height: 70px;
    background: var(--accent-light);
    border-radius: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(10deg);
    transition: transform 0.3s ease;
}
.value-card-enhanced:hover .value-icon-bg {
    transform: translate(-50%, -50%) rotate(-10deg);
}
.value-icon-emoji {
    position: relative;
    font-size: 2.5rem;
    z-index: 1;
}
.value-card-enhanced h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.value-card-enhanced p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Team Section */
.about-team-section { background: white; }
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.team-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.team-avatar {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}
.team-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.team-role {
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.team-bio {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About CTA Section */
.about-cta-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}
.about-cta-card {
    text-align: center;
    padding: 3rem;
    background: rgba(255,255,255,0.05);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
}
.about-cta-card h2 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
}
.about-cta-card p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.about-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== ENHANCED BLOG PAGE ==================== */
.blog-hero {
    padding: 120px 1.5rem 60px;
    background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 50%, #ffffff 100%);
    position: relative;
}
.blog-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.blog-hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}
.blog-hero-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

/* Blog Categories */
.blog-categories-section {
    padding: 1.5rem;
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 100;
}
.blog-categories {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}
.blog-category-btn {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}
.blog-category-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}
.blog-category-btn.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

/* Blog Featured */
.blog-featured-section { padding-top: 2rem; padding-bottom: 0; }
.blog-featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}
.blog-featured-image {
    height: 350px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-featured-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.blog-featured-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--accent-light);
    color: var(--accent-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 1rem;
    width: fit-content;
}
.blog-featured-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.blog-featured-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.blog-featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Blog Grid */
.blog-grid-section { padding-top: 2rem; }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.blog-article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    cursor: pointer;
}
.blog-article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.blog-article-image {
    height: 180px;
    background: var(--bg-secondary);
    overflow: hidden;
}
.blog-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-article-card:hover .blog-article-image img {
    transform: scale(1.1);
}
.blog-article-content {
    padding: 1.25rem;
}
.blog-article-category {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}
.blog-article-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-article-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.blog-loading, .tutorials-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}
.blog-loading .spinner, .tutorials-loading .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}
.blog-empty-state, .tutorials-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 2px dashed var(--border-color);
}

/* Blog Newsletter */
.blog-newsletter-section { background: var(--bg-secondary); }
.blog-newsletter-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}
.blog-newsletter-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.newsletter-icon {
    font-size: 3rem;
}
.blog-newsletter-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.blog-newsletter-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.blog-newsletter-form {
    display: flex;
    gap: 0.75rem;
}
.blog-newsletter-form input {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    min-width: 280px;
    transition: all 0.3s ease;
}
.blog-newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* ==================== ENHANCED PARTNERS PAGE ==================== */
.partners-hero {
    padding: 120px 1.5rem 60px;
    background: linear-gradient(180deg, #ede9fe 0%, #f5f3ff 50%, #ffffff 100%);
    position: relative;
}
.partners-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.partners-hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}
.partners-hero-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

/* Partner Types */
.partners-types-section { background: white; }
.partners-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.partner-type-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}
.partner-type-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    background: white;
}
.partner-type-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.partner-type-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}
.partner-type-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.partner-benefits {
    list-style: none;
    padding: 0;
}
.partner-benefits li {
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}
.partner-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* Partners Benefits Section */
.partners-benefits-section { background: var(--bg-secondary); }
.partners-benefits-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}
.partners-benefits-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}
.benefits-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.benefit-icon {
    font-size: 2rem;
    flex-shrink: 0;
}
.benefit-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.benefit-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.partners-benefits-visual {
    display: flex;
    justify-content: center;
}
.partners-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.partner-stat-item {
    background: linear-gradient(135deg, var(--accent-light) 0%, #fef3c7 100%);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    text-align: center;
}
.partner-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-secondary);
}
.partner-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Partners CTA */
.partners-cta-section {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}
.partners-cta-card {
    text-align: center;
    padding: 3rem;
}
.partners-cta-card h2 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
}
.partners-cta-card p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.partners-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.partners-cta-buttons .btn-outline {
    border-color: white;
    color: white;
}
.partners-cta-buttons .btn-outline:hover {
    background: white;
    color: #7c3aed;
}

/* ==================== ENHANCED CONTACT PAGE ==================== */
.contact-hero {
    padding: 120px 1.5rem 60px;
    background: linear-gradient(180deg, #d1fae5 0%, #ecfdf5 50%, #ffffff 100%);
    position: relative;
}
.contact-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.contact-hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}
.contact-hero-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

/* Contact Options */
.contact-options-section { background: white; }
.contact-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.contact-option-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.contact-option-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.contact-option-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}
.contact-option-icon.whatsapp { background: #d1fae5; }
.contact-option-icon.email { background: #dbeafe; }
.contact-option-icon.help { background: #fef3c7; }
.contact-option-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.contact-option-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.btn-whatsapp-contact {
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}
.btn-whatsapp-contact:hover {
    background: #1DA851;
    transform: translateY(-2px);
}
.btn-email-contact {
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}
.btn-email-contact:hover {
    background: #2563eb;
    transform: translateY(-2px);
}
.contact-option-phone, .contact-option-email, .contact-option-info {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact Form */
.contact-form-section { background: var(--bg-secondary); }
.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}
.contact-form-info h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}
.contact-form-info > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.contact-info-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.contact-info-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.contact-info-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.contact-form .form-group {
    margin-bottom: 0;
}
.contact-form .form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.contact-form .form-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}
.contact-form .form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(245,158,11,0.15);
}
.contact-form textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* ==================== ENHANCED TUTORIALS PAGE ==================== */
.tutorials-hero {
    padding: 120px 1.5rem 60px;
    background: linear-gradient(180deg, #fce7f3 0%, #fdf2f8 50%, #ffffff 100%);
    position: relative;
}
.tutorials-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236,72,153,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.tutorials-hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}
.tutorials-hero-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

/* Tutorials Categories */
.tutorials-categories-section {
    padding: 1.5rem;
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 100;
}
.tutorials-categories {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}
.tutorial-category-btn {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}
.tutorial-category-btn:hover {
    border-color: #ec4899;
    color: #ec4899;
}
.tutorial-category-btn.active {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: white;
    border-color: transparent;
}

/* Tutorials Video Grid */
.tutorials-grid-section { padding-top: 2rem; }
.tutorials-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.tutorial-video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    cursor: pointer;
}
.tutorial-video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.tutorial-video-thumbnail {
    position: relative;
    height: 180px;
    background: var(--bg-secondary);
    overflow: hidden;
}
.tutorial-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.tutorial-video-card:hover .tutorial-video-thumbnail img {
    transform: scale(1.1);
}
.tutorial-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}
.tutorial-video-card:hover .tutorial-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent-primary);
    color: white;
}
.tutorial-video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.tutorial-video-content {
    padding: 1.25rem;
}
.tutorial-video-category {
    display: inline-block;
    padding: 4px 10px;
    background: #fce7f3;
    color: #be185d;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}
.tutorial-video-category.excel { background: var(--excel-bg); color: var(--excel-color); }
.tutorial-video-category.powerpoint { background: var(--powerpoint-bg); color: var(--powerpoint-color); }
.tutorial-video-category.word { background: var(--word-bg); color: var(--word-color); }
.tutorial-video-category.powerbi { background: var(--powerbi-bg); color: #92400e; }
.tutorial-video-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tutorial-video-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tutorials Guides */
.tutorials-guides-section { background: var(--bg-secondary); }
.tutorials-guides-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.tutorial-guide-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.tutorial-guide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.tutorial-guide-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.tutorial-guide-icon.excel { background: var(--excel-bg); }
.tutorial-guide-icon.powerpoint { background: var(--powerpoint-bg); }
.tutorial-guide-icon.word { background: var(--word-bg); }
.tutorial-guide-icon.powerbi { background: var(--powerbi-bg); }
.tutorial-guide-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.tutorial-guide-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.tutorial-guide-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}
.tutorial-guide-meta .tutorial-duration {
    color: var(--accent-primary);
    font-weight: 600;
}
.tutorial-guide-meta .tutorial-level {
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 3px 8px;
    border-radius: 10px;
}

/* Tutorials Help */
.tutorials-help-section { background: white; }
.tutorials-help-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #fbcfe8;
}
.tutorials-help-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.tutorials-help-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Video Modal */
.video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.video-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.video-modal {
    width: 100%;
    max-width: 900px;
    background: black;
    border-radius: 16px;
    overflow: hidden;
}
.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #1e293b;
}
.video-modal-title {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}
.video-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.video-modal-close:hover { opacity: 1; }
.video-modal-content {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}
.video-modal-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==================== RESPONSIVE FOR NEW PAGES ==================== */
@media (max-width: 1100px) {
    .about-mission-grid { grid-template-columns: 1fr; gap: 2rem; }
    .values-grid-enhanced { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .partners-types-grid { grid-template-columns: repeat(2, 1fr); }
    .partners-benefits-card { grid-template-columns: 1fr; }
    .benefits-list { grid-template-columns: 1fr; }
    .contact-options-grid { grid-template-columns: 1fr; }
    .contact-form-wrapper { grid-template-columns: 1fr; }
    .tutorials-video-grid { grid-template-columns: repeat(2, 1fr); }
    .tutorials-guides-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .about-hero, .blog-hero, .partners-hero, .contact-hero, .tutorials-hero {
        padding: 100px 1rem 40px;
    }
    .about-hero-content h1, .blog-hero-content h1, .partners-hero-content h1,
    .contact-hero-content h1, .tutorials-hero-content h1 {
        font-size: 1.5rem;
    }
    .values-grid-enhanced { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; max-width: 400px; }
    .about-cta-buttons { flex-direction: column; }
    .blog-featured-card { grid-template-columns: 1fr; }
    .blog-featured-image { height: 200px; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-newsletter-card { flex-direction: column; text-align: center; }
    .blog-newsletter-content { flex-direction: column; text-align: center; }
    .blog-newsletter-form { flex-direction: column; width: 100%; }
    .blog-newsletter-form input { min-width: auto; width: 100%; }
    .partners-types-grid { grid-template-columns: 1fr; }
    .partners-cta-buttons { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
    .tutorials-video-grid { grid-template-columns: 1fr; }
    .tutorials-guides-grid { grid-template-columns: 1fr; }
    .tutorials-help-card { flex-direction: column; text-align: center; }
}

/* ==================== BLOG ARTICLE DETAIL PAGE ==================== */
.article-detail {
    padding-top: 100px;
    padding-bottom: 60px;
    background: var(--bg-secondary);
    min-height: 100vh;
}
.article-detail .container {
    max-width: 1200px;
}
.article-detail .back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}
.article-detail .back-link:hover { color: var(--accent-primary); }

/* Article Header */
.article-detail-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}
.article-detail-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}
.article-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.article-detail-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.article-detail-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.article-detail-author .author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}
.article-detail-author .author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.article-detail-author .author-name {
    font-weight: 600;
    color: var(--text-primary);
}
.article-detail-author .author-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.article-detail-date,
.article-detail-reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.article-detail-date .date-icon,
.article-detail-reading-time .time-icon {
    font-size: 1rem;
}

/* Article Cover Image */
.article-detail-cover {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.article-detail-cover img {
    width: 100%;
    height: auto;
    display: block;
}
.article-cover-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-cover-placeholder .cover-icon {
    font-size: 4rem;
    opacity: 0.3;
}

/* Article Body */
.article-detail-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Article Content */
.article-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.article-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}
.article-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}
.article-content ul, .article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}
.article-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.article-content blockquote {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-primary);
}
.article-content code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}
.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
}
.article-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}
.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
}

/* Article Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.sidebar-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Share Buttons */
.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.share-btn span { font-size: 1rem; }
.share-btn.whatsapp {
    background: #25d366;
    color: white;
}
.share-btn.whatsapp:hover { background: #20bd5a; }
.share-btn.twitter {
    background: #1da1f2;
    color: white;
}
.share-btn.twitter:hover { background: #1a91da; }
.share-btn.linkedin {
    background: #0077b5;
    color: white;
}
.share-btn.linkedin:hover { background: #006699; }
.share-btn.copy {
    background: var(--bg-secondary);
    color: var(--text-primary);
}
.share-btn.copy:hover { background: var(--border-color); }

/* Table of Contents */
.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.toc-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}
.toc-nav a:hover {
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
    background: var(--bg-secondary);
}
.toc-nav a.active {
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
    font-weight: 600;
}

/* Sidebar Newsletter */
.sidebar-newsletter {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.sidebar-newsletter input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9rem;
}
.sidebar-newsletter input:focus {
    outline: none;
    border-color: var(--accent-primary);
}
.newsletter-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Article Tags */
.article-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 800px;
    margin: 3rem auto;
    justify-content: center;
}
.article-detail-tags .tag {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.article-detail-tags .tag:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* Author Bio */
.article-author-bio {
    display: flex;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.author-bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.author-bio-content h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}
.author-bio-content .author-bio-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.author-bio-content .author-bio-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Related Articles */
.article-related-section {
    max-width: 1000px;
    margin: 0 auto;
}
.article-related-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}
.article-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.related-article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}
.related-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.related-article-card .related-image {
    height: 150px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.related-article-card .related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-article-card .related-image .placeholder-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}
.related-article-card .related-content {
    padding: 1.25rem;
}
.related-article-card .related-category {
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.related-article-card .related-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}
.related-article-card .related-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==================== TUTORIAL DETAIL PAGE ==================== */
.tutorial-detail {
    padding-top: 100px;
    padding-bottom: 60px;
    background: var(--bg-secondary);
    min-height: 100vh;
}
.tutorial-detail .container {
    max-width: 1200px;
}
.tutorial-detail .back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}
.tutorial-detail .back-link:hover { color: var(--accent-primary); }

/* Tutorial Header */
.tutorial-detail-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}
.tutorial-detail-category {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}
.tutorial-detail-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.tutorial-detail-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.tutorial-detail-duration,
.tutorial-detail-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.tutorial-detail-duration .duration-icon,
.tutorial-detail-date .date-icon {
    font-size: 1.1rem;
}

/* Video Container */
.tutorial-video-container {
    max-width: 900px;
    margin: 0 auto 3rem;
}
.tutorial-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.tutorial-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Tutorial Body */
.tutorial-detail-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Tutorial Content */
.tutorial-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.tutorial-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.tutorial-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.tutorial-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.tutorial-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.tutorial-description p {
    margin-bottom: 1rem;
}

/* Tutorial Learnings */
.tutorial-learnings {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tutorial-learnings li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.tutorial-learnings li::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Tutorial Resources */
.tutorial-resources {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.resource-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
}
.resource-link:hover {
    background: #fef3c7;
    transform: translateX(4px);
}
.resource-link .resource-icon {
    font-size: 1.5rem;
}
.resource-link .resource-info {
    flex: 1;
}
.resource-link .resource-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.resource-link .resource-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.resource-link .resource-arrow {
    color: var(--accent-primary);
    font-weight: 700;
}

/* Tutorial Sidebar */
.tutorial-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.tutorial-info-card .tutorial-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.tutorial-info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}
.tutorial-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.tutorial-info-item .info-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.tutorial-info-item .info-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}
.help-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Related Tutorials */
.tutorial-related-section {
    max-width: 1000px;
    margin: 3rem auto 0;
}
.tutorial-related-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}
.tutorial-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.related-tutorial-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}
.related-tutorial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.related-tutorial-card .related-thumbnail {
    position: relative;
    height: 150px;
    background: #000;
}
.related-tutorial-card .related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-tutorial-card .related-thumbnail .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.related-tutorial-card:hover .play-overlay {
    opacity: 1;
}
.related-tutorial-card .play-overlay .play-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.related-tutorial-card .related-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.related-tutorial-card .related-info {
    padding: 1.25rem;
}
.related-tutorial-card .related-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}
.related-tutorial-card .related-info .related-category {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 600;
}

/* ==================== VIDEO MODAL IMPROVEMENTS ==================== */
.video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.video-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.video-modal-content {
    width: 100%;
    max-width: 1000px;
    position: relative;
}
.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}
.video-modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}
.video-modal-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}
.video-modal-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==================== RESPONSIVE FOR DETAIL PAGES ==================== */
@media (max-width: 1100px) {
    .article-detail-body { grid-template-columns: 1fr; }
    .article-sidebar { order: -1; flex-direction: row; flex-wrap: wrap; }
    .article-sidebar .sidebar-card { flex: 1; min-width: 280px; }
    .tutorial-detail-body { grid-template-columns: 1fr; }
    .tutorial-sidebar { order: -1; flex-direction: row; flex-wrap: wrap; }
    .tutorial-sidebar .sidebar-card { flex: 1; min-width: 280px; }
    .article-related-grid { grid-template-columns: repeat(2, 1fr); }
    .tutorial-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .article-detail-title { font-size: 1.75rem; }
    .article-detail-meta { gap: 1rem; }
    .article-detail-author { flex-direction: column; align-items: flex-start; }
    .article-content { padding: 1.5rem; }
    .article-author-bio { flex-direction: column; text-align: center; }
    .article-author-bio .author-bio-avatar { margin: 0 auto; }
    .article-related-grid { grid-template-columns: 1fr; }
    .share-buttons { grid-template-columns: 1fr; }
    .article-sidebar { flex-direction: column; }
    .article-sidebar .sidebar-card { min-width: auto; }

    .tutorial-detail-title { font-size: 1.5rem; }
    .tutorial-content { padding: 1.5rem; }
    .tutorial-related-grid { grid-template-columns: 1fr; }
    .tutorial-sidebar { flex-direction: column; }
    .tutorial-sidebar .sidebar-card { min-width: auto; }
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    max-width: 380px;
    border-left: 4px solid var(--accent-primary);
}
.toast.show { transform: translateX(0); }
.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #ef4444; }
.toast.warning { border-left-color: #f59e0b; }
.toast.info { border-left-color: #3b82f6; }
.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.toast-content {
    flex: 1;
}
.toast-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.toast-message {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}
.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1.25rem;
    line-height: 1;
    transition: color 0.2s;
}
.toast-close:hover { color: var(--text-primary); }

/* ==================== BUTTON STATES ==================== */
.btn:disabled, .btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}
.btn .btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .page.active { animation: none; }
    .toast { transition: none; }
}

/* Focus states for keyboard navigation */
.btn:focus-visible,
.nav-link:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* ==================== IMPROVED EMPTY STATES ==================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}
.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.empty-state-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}
.empty-state .btn {
    margin-top: 1rem;
}

/* Mobile toast adjustments */
@media (max-width: 480px) {
    .toast-container {
        left: 10px;
        right: 10px;
        top: 80px;
    }
    .toast {
        max-width: 100%;
    }
}
