/**
 * ToolStack Pro - Main Stylesheet
 * Premium SaaS Tool Marketplace
 * Author: Mr Arslan CEO
 */

/* ================================================
   CSS VARIABLES & BASE
   ================================================ */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #7c8cf5;
    --secondary: #764ba2;
    --accent: #f093fb;
    --success: #43e97b;
    --warning: #ffc107;
    --danger: #ff6b6b;
    --info: #4facfe;
    --bg-primary: #ffffff;
    --bg-secondary: #f7f8fc;
    --bg-tertiary: #edf2f7;
    --bg-card: #ffffff;
    --bg-glass: rgba(255,255,255,0.7);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #a0aec0;
    --border-color: #e2e8f0;
    --border-light: #edf2f7;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
    --shadow-glow: 0 8px 30px rgba(102,126,234,0.2);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
    --nav-height: 72px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font);
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ================================================
   NAVIGATION
   ================================================ */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition);
}
.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
}
.logo-icon {
    width: 38px; height: 38px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-glow);
}
.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links {
    display: flex;
    gap: 8px;
}
.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(102,126,234,0.08);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-nav-outline {
    padding: 8px 20px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}
.btn-nav-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-glow);
}
.btn-nav-primary {
    padding: 8px 22px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}
.btn-nav-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 35px rgba(102,126,234,0.4);
}
.nav-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px 4px 4px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}
.nav-avatar-btn:hover { box-shadow: var(--shadow-md); }
.nav-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.nav-user-menu { position: relative; }
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
}
.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}
.user-dropdown a:hover {
    background: rgba(102,126,234,0.08);
    color: var(--primary);
}
.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 4px 0;
}
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 5px;
}
.mobile-menu-btn span {
    width: 22px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ================================================
   MAIN CONTENT
   ================================================ */
.main-content {
    min-height: calc(100vh - var(--nav-height));
    padding-top: var(--nav-height);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero-section {
    position: relative;
    padding: 100px 30px 80px;
    text-align: center;
    overflow: hidden;
    background: var(--gradient-primary);
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 80px;
    background: var(--bg-secondary);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 25px;
    animation: fadeInDown 0.8s ease;
}
.hero-title {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease;
}
.hero-title span {
    background: linear-gradient(135deg, #f5af19, #f12711);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-description {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.btn-white {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102,126,234,0.4);
}
.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover { background: var(--border-color); }
.btn-success { background: var(--gradient-success); color: #000; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 16px; }
.btn-full { width: 100%; }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-stat {
    text-align: center;
    color: #fff;
}
.hero-stat .num {
    font-size: 32px;
    font-weight: 800;
    display: block;
}
.hero-stat .label {
    font-size: 13px;
    opacity: 0.75;
    margin-top: 2px;
}

/* ================================================
   SECTIONS
   ================================================ */
.section {
    padding: 80px 30px;
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(102,126,234,0.08);
    border: 1px solid rgba(102,126,234,0.15);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.section-title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}
.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
}

/* ================================================
   TOOL CARDS
   ================================================ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}
.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.tool-card:hover::before { opacity: 1; }
.tool-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}
.tool-logo {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border-light);
    flex-shrink: 0;
}
.tool-meta {
    flex: 1;
    min-width: 0;
}
.tool-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tool-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}
.tool-save-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
    cursor: pointer;
}
.tool-save-btn:hover {
    background: rgba(255,107,107,0.1);
    border-color: rgba(255,107,107,0.3);
    transform: scale(1.1);
}
.tool-save-btn.saved {
    background: rgba(255,107,107,0.1);
    border-color: rgba(255,107,107,0.3);
    color: #ff6b6b;
}
.tool-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tool-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
.tool-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}
.tool-price small {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}
.tool-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}
.stars-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.star { color: var(--text-muted); font-size: 14px; }
.star.filled { color: #f5af19; }
.star.half { color: #f5af19; opacity: 0.6; }
.rating-num { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-left: 4px; }
.btn-visit {
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
}
.btn-visit:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* Pricing Badges */
.pricing-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-free { background: rgba(67,233,123,0.1); color: #43e97b; }
.badge-freemium { background: rgba(79,172,254,0.1); color: #4facfe; }
.badge-paid { background: rgba(102,126,234,0.1); color: #667eea; }
.badge-enterprise { background: rgba(118,75,162,0.1); color: #764ba2; }

/* ================================================
   CATEGORIES
   ================================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.category-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.category-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}
.category-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.category-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ================================================
   PRICING SECTION
   ================================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-glow);
}
.pricing-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pricing-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.pricing-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.pricing-amount {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 6px;
}
.pricing-amount span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}
.pricing-period {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
}
.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
    content: '✓';
    width: 22px; height: 22px;
    background: rgba(67,233,123,0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 50px;
}
.pricing-toggle span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}
.pricing-toggle span.active { color: var(--text-primary); }
.toggle-switch {
    width: 56px; height: 30px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}
.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 22px; height: 22px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}
.toggle-switch.active { background: rgba(102,126,234,0.1); }
.toggle-switch.active::after { left: 29px; }
.save-badge {
    display: inline-flex;
    padding: 3px 10px;
    background: rgba(67,233,123,0.1);
    color: var(--success);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

/* ================================================
   TESTIMONIALS
   ================================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: var(--transition);
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.testimonial-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}
.testimonial-text::before { content: '"'; font-size: 36px; color: var(--primary); line-height: 0; vertical-align: -12px; margin-right: 4px; }
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
}
.testimonial-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.testimonial-role { font-size: 13px; color: var(--text-muted); }

/* ================================================
   BLOG CARDS
   ================================================ */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.blog-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-card-body { padding: 24px; }
.blog-category-tag {
    display: inline-flex;
    padding: 4px 12px;
    background: rgba(102,126,234,0.08);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

/* ================================================
   FAQ SECTION
   ================================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
    flex-shrink: 0;
}
.faq-item.active .faq-icon { transform: rotate(45deg); background: var(--gradient-primary); color: #fff; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
    background: var(--text-primary);
    color: rgba(255,255,255,0.7);
    padding: 60px 30px 30px;
}
.footer-container { max-width: 1280px; margin: 0 auto; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
}
.footer-logo .logo-icon { width: 34px; height: 34px; font-size: 16px; }
.footer-logo .logo-text { -webkit-text-fill-color: #fff; color: #fff; }
.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.5);
}
.footer-social {
    display: flex;
    gap: 10px;
}
.social-link {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}
.social-link:hover {
    background: var(--gradient-primary);
    color: #fff;
    transform: translateY(-2px);
}
.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}
.footer-col a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: var(--primary-light); }
.footer-bottom a:hover { color: #fff; }

/* ================================================
   FLASH MESSAGES
   ================================================ */
.flash-message {
    position: fixed;
    top: 90px;
    right: 30px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.4s ease;
    box-shadow: var(--shadow-lg);
}
.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.flash-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.flash-message button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.6;
    color: inherit;
}

/* ================================================
   THEME SWITCHER
   ================================================ */
.theme-switcher-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}
.theme-toggle-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    font-size: 22px;
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle-btn:hover { transform: scale(1.1) rotate(15deg); }
.theme-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: var(--transition);
}
.theme-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.theme-panel-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.theme-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.theme-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.theme-option:hover { border-color: var(--primary); color: var(--primary); }
.theme-preview {
    width: 18px; height: 18px;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.1);
}

/* ================================================
   FORM STYLES (Login/Register/Profile)
   ================================================ */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height));
    padding: 40px 20px;
}
.auth-card {
    width: 100%;
    max-width: 450px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.auth-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-size: 13px;
    color: var(--text-muted);
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ================================================
   SEARCH & FILTERS
   ================================================ */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}
.search-input-wrap {
    flex: 1;
    position: relative;
}
.search-input-wrap .form-control {
    padding-left: 42px;
}
.search-input-wrap::before {
    content: '🔍';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.filter-btn {
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

/* ================================================
   PAGE HEADER
   ================================================ */
.page-header {
    padding: 50px 30px 40px;
    background: var(--gradient-primary);
    text-align: center;
    position: relative;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 40px;
    background: var(--bg-secondary);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}
.page-header p {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
}

/* ================================================
   PAGINATION
   ================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-secondary);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination span.current {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

/* ================================================
   USER DASHBOARD
   ================================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.stat-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.stat-info h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}
.stat-info p {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ================================================
   BLOG POST (Single)
   ================================================ */
.blog-post-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}
.blog-post-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 16px;
}
.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.blog-post-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}
.blog-post-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 30px 0 15px;
}
.blog-post-content p { margin-bottom: 18px; }

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.share-btn {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.share-btn:hover { background: var(--gradient-primary); color: #fff; border-color: transparent; }

/* Comments */
.comments-section {
    margin-top: 40px;
}
.comments-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}
.comment-item {
    display: flex;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}
.comment-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.comment-author { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.comment-date { font-size: 12px; color: var(--text-muted); margin-left: 10px; }
.comment-text { font-size: 14px; color: var(--text-secondary); margin-top: 6px; line-height: 1.6; }

/* ================================================
   TOOL DETAIL PAGE
   ================================================ */
.tool-detail-hero {
    padding: 50px 30px;
    background: var(--gradient-primary);
    position: relative;
}
.tool-detail-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 40px;
    background: var(--bg-secondary);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.tool-detail-card {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}
.tool-detail-logo {
    width: 100px; height: 100px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
}
.tool-detail-info h1 { color: #fff; font-size: 32px; font-weight: 800; }
.tool-detail-info p { color: rgba(255,255,255,0.8); font-size: 16px; margin-top: 6px; }
.tool-detail-actions { display: flex; gap: 12px; margin-top: 16px; }
.tool-detail-body {
    max-width: 900px;
    margin: -20px auto 0;
    padding: 0 20px 40px;
    position: relative;
    z-index: 2;
}
.tool-detail-content {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

/* ================================================
   FEATURED CAROUSEL
   ================================================ */
.featured-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 24px;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.featured-carousel::-webkit-scrollbar { display: none; }
.featured-carousel .tool-card {
    min-width: 320px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   UTILITY CLASSES
   ================================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.p-2 { padding: 20px; }
.gap-1 { gap: 10px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius-md); }
.shadow { box-shadow: var(--shadow-md); }
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
}
.hidden { display: none !important; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }
