/**
 * CleanUrMac - Main Stylesheet
 * Modern, clean design with consistent design system
 */

/* Import shared design system variables */
@import url('variables.css');

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-primary);
    background: var(--color-bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-primary-dark);
}

/* ============================================
   LAYOUT COMPONENTS
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-lg {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--color-text-white);
}

.btn-secondary {
    background: var(--color-bg-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-text-white);
}

.btn-dark {
    background: var(--color-bg-dark);
    color: var(--color-text-white);
}

.btn-dark:hover {
    background: var(--color-bg-darker);
    color: var(--color-text-white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border-light);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-body {
    margin-bottom: var(--spacing-md);
}

.card-footer {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border-light);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.navbar-logo {
    height: 40px;
    width: auto;
    transition: transform var(--transition-base);
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.navbar-link {
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-link:hover {
    color: var(--color-primary);
}

.navbar-link.active {
    color: var(--color-primary);
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-primary);
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
    }

    .navbar-menu.active {
        display: flex;
    }
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--color-text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--font-sans);
    color: var(--color-text-primary);
    background: var(--color-bg-white);
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

.form-help {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.alert-success {
    background: #f0fdf4;
    border-left: 4px solid var(--color-success);
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border-left: 4px solid var(--color-error);
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    border-left: 4px solid var(--color-warning);
    color: #92400e;
}

.alert-info {
    background: #eff6ff;
    border-left: 4px solid var(--color-info);
    color: #1e40af;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    color: var(--color-text-white);
    margin-bottom: var(--spacing-md);
}

.footer-logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.footer-logo-link:hover {
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: var(--color-primary);
    color: var(--color-text-white);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--color-text-light);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-text-white);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-white { color: var(--color-text-white); }
.text-muted { color: var(--color-text-light); }

.bg-white { background: var(--color-bg-white); }
.bg-light { background: var(--color-bg-light); }
.bg-dark { background: var(--color-bg-dark); }
.bg-primary { background: var(--color-primary); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.hero-note {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* App Preview */
.app-preview {
    perspective: 1000px;
}

.app-window {
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.app-window:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.window-header {
    background: #f5f5f5;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-content {
    padding: var(--spacing-xl);
}

.scan-result {
    text-align: center;
}

.scan-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.scan-result h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.scan-result p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
}

.scan-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .app-window {
        transform: none;
    }
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: var(--spacing-2xl) 0;
    background: var(--color-bg-white);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    text-align: center;
}

.stat-item {
    padding: var(--spacing-lg);
}

.stat-number {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-md);
}

.section-header p {
    font-size: var(--font-size-lg);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: var(--spacing-4xl) 0;
    background: var(--color-bg-light);
}

.feature-card {
    background: var(--color-bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.feature-icon {
    font-size: var(--font-size-4xl);
}

.feature-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.feature-card p {
    flex: 1;
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
}

.feature-link {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: color var(--transition-base);
}

.feature-link:hover {
    color: var(--color-primary-dark);
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works-section {
    padding: var(--spacing-4xl) 0;
    background: var(--color-bg-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.step-item {
    text-align: center;
    padding: var(--spacing-xl);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin: 0 auto var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.step-item h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.step-item p {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    padding: var(--spacing-4xl) 0;
    background: var(--color-bg-light);
}

.testimonial-card {
    background: var(--color-bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-rating {
    color: #fbbf24;
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.testimonial-text {
    flex: 1;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border-light);
}

.testimonial-author strong {
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
}

.testimonial-author span {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: var(--spacing-4xl) 0;
    background: var(--color-bg-white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    padding: var(--spacing-lg);
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary);
}

.faq-item h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.faq-item p {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin: 0;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: var(--color-text-white);
    font-size: var(--font-size-5xl);
    margin-bottom: var(--spacing-md);
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.cta-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-md);
}

.btn-white {
    background: var(--color-bg-white);
    color: var(--color-primary);
}

.btn-white:hover {
    background: var(--color-bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-white);
    border: 2px solid var(--color-text-white);
}

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

@media (max-width: 768px) {
    .cta-section h2 {
        font-size: var(--font-size-3xl);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ============================================
   BLOG STYLES
   ============================================ */
.blog-header {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.blog-posts {
    padding: var(--spacing-2xl) 0;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.blog-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.blog-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
}

.blog-date {
    color: var(--color-text-light);
}

.blog-category {
    background: var(--color-primary);
    color: var(--color-text-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.blog-title {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
}

.blog-title a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-title a:hover {
    color: var(--color-primary);
}

.blog-excerpt {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.blog-read-more {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-read-more:hover {
    color: var(--color-primary-dark);
    transform: translateX(4px);
}

/* ============================================
   ENHANCED BLOG STYLES
   ============================================ */

/* Blog Header Enhanced */
.blog-header {
    padding: var(--spacing-4xl) 0 var(--spacing-2xl);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-white);
}

.blog-header h1 {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-white);
}

.blog-subtitle {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-2xl);
}

/* Blog Search */
.blog-search-container {
    max-width: 600px;
    margin: 0 auto;
}

.blog-search-form {
    display: flex;
    gap: var(--spacing-sm);
    background: var(--color-bg-white);
    padding: var(--spacing-xs);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.blog-search-input {
    flex: 1;
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-base);
    border-radius: var(--radius-lg);
    font-family: var(--font-sans);
}

.blog-search-input:focus {
    outline: none;
}

.blog-search-btn {
    background: var(--color-primary);
    color: var(--color-text-white);
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-sans);
}

.blog-search-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* Category Filter */
.blog-categories {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border-light);
}

.category-pills {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.category-pill {
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    background: var(--color-bg-light);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.category-pill:hover {
    background: var(--color-primary-light);
    color: var(--color-text-white);
}

.category-pill.active {
    background: var(--color-primary);
    color: var(--color-text-white);
    border-color: var(--color-primary-dark);
}

/* Blog Posts Section */
.blog-posts-section {
    padding: var(--spacing-4xl) 0;
    background: var(--color-bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-2xl);
}

/* Blog Card Modern */
.blog-card-modern {
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-modern:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.blog-card-modern.featured {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .blog-card-modern.featured {
        grid-column: span 1;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
}

.blog-card-modern.featured .blog-card-image {
    height: 320px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card-modern:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-category-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: var(--color-primary);
    color: var(--color-text-white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-body {
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta-row {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.blog-card-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-tight);
}

.blog-card-modern.featured .blog-card-title {
    font-size: var(--font-size-3xl);
}

.blog-card-title a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.blog-card-title a:hover {
    color: var(--color-primary);
}

.blog-card-excerpt {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-lg);
    flex: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border-light);
}

.blog-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    color: var(--color-text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
}

.author-name {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
}

.blog-read-more-btn {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: all var(--transition-base);
    font-size: var(--font-size-sm);
}

.blog-read-more-btn:hover {
    color: var(--color-primary-dark);
    transform: translateX(4px);
}

.blog-empty-state {
    text-align: center;
    padding: var(--spacing-4xl) var(--spacing-xl);
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
}

.blog-empty-state .empty-icon {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--spacing-lg);
}

.blog-empty-state h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
}

/* Single Blog Post */
.blog-post {
    padding: var(--spacing-2xl) 0;
}

.blog-post-header {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 2px solid var(--color-border-light);
}

.blog-post-header h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.blog-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3 {
    color: var(--color-text-primary);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.blog-post-content p {
    margin-bottom: var(--spacing-md);
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-xl);
}

.blog-post-content li {
    margin-bottom: var(--spacing-xs);
}

.blog-post-content code {
    background: var(--color-bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.blog-post-content pre {
    background: var(--color-bg-dark);
    color: var(--color-text-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: var(--spacing-md);
}

.blog-post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.blog-post-footer {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--color-border-light);
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   FEATURES PAGE
   ============================================ */
.features-detailed {
    padding: var(--spacing-2xl) 0;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-2xl) 0;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

.feature-icon-large {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.feature-content h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.feature-list {
    list-style: none;
    margin-top: var(--spacing-md);
}

.feature-list li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-lg);
    position: relative;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

.scan-preview {
    margin-top: var(--spacing-md);
}

.scan-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.scan-item:last-child {
    border-bottom: none;
}

.performance-stats {
    margin-top: var(--spacing-md);
}

.stat-bar {
    margin-bottom: var(--spacing-md);
}

.stat-bar span {
    display: block;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
}

.bar {
    height: 8px;
    background: var(--color-bg-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
}

.bar-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
}

.privacy-items {
    margin-top: var(--spacing-md);
}

.privacy-items div {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    background: var(--color-bg-light);
    border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
}

/* ============================================
   PRICING PAGE
   ============================================ */
.pricing-section {
    padding: var(--spacing-2xl) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.pricing-card {
    background: var(--color-bg-white);
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-text-white);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 700;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.pricing-price {
    margin-bottom: var(--spacing-sm);
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    vertical-align: top;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.price-period {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
}

.pricing-savings {
    color: var(--color-success);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    min-height: 1.5rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: var(--spacing-xl);
}

.pricing-features li {
    padding: var(--spacing-xs) 0;
    color: var(--color-text-secondary);
}

.pricing-note {
    margin-top: var(--spacing-xl);
}

/* Pricing FAQ */
.pricing-faq {
    padding: var(--spacing-2xl) 0;
    background: var(--color-bg-light);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item {
    background: var(--color-bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.faq-item h4 {
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.faq-item p {
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* ============================================
   DOWNLOAD PAGE
   ============================================ */
.download-section {
    padding: var(--spacing-2xl) 0;
}

.download-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-md);
}

.download-card {
    background: var(--color-bg-white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: var(--spacing-xl) 0;
}

.download-size {
    font-size: 0.875rem;
}

.step-card {
    text-align: center;
    padding: var(--spacing-lg);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-md);
}

.requirements-list {
    list-style: none;
    max-width: 400px;
    margin: var(--spacing-lg) auto 0;
    text-align: left;
}

.requirements-list li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    position: relative;
}

.requirements-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-2xl) 0;
}

.auth-card {
    max-width: 450px;
    margin: 0 auto;
    background: var(--color-bg-white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.auth-divider {
    text-align: center;
    margin: var(--spacing-lg) 0;
    position: relative;
}

.auth-divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-border-light);
}

.auth-divider span {
    background: var(--color-bg-white);
    padding: 0 var(--spacing-md);
    position: relative;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.auth-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border-light);
}

/* ============================================
   ACCOUNT PAGES
   ============================================ */
.account-section {
    padding: var(--spacing-2xl) 0;
    min-height: 70vh;
}

.licenses-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.license-card {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.license-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-active {
    background: var(--color-success-light);
    color: var(--color-success);
}

.badge-inactive {
    background: var(--color-border-light);
    color: var(--color-text-light);
}

.badge-expired {
    background: var(--color-error-light);
    color: var(--color-error);
}

.license-key {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.license-key code {
    background: var(--color-bg-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    flex: 1;
}

.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
}

/* Success Page */
.success-section {
    padding: var(--spacing-2xl) 0;
    min-height: 70vh;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-md);
}

.success-steps {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
}

.success-steps li {
    counter-increment: step-counter;
    margin-bottom: var(--spacing-xl);
    padding-left: var(--spacing-2xl);
    position: relative;
}

.success-steps li:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: var(--color-text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.success-steps li strong {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
}

.success-steps li p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   SUPPORT PAGE
   ============================================ */
.support-section {
    padding: var(--spacing-2xl) 0;
}

.support-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.support-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.faq-section {
    padding: var(--spacing-2xl) 0;
}

.faq-category h2 {
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-primary);
}

.cta-box {
    background: var(--color-primary);
    color: var(--color-text-white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
}

.cta-box h3 {
    color: var(--color-text-white);
    margin-bottom: var(--spacing-sm);
}

.cta-box .text-secondary {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Newsletter Section
   ============================================ */
.newsletter-section {
    background: var(--color-primary);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-text h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: white;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.newsletter-form .btn {
    padding: 0.875rem 2rem;
    background: white;
    color: var(--color-primary);
    border: none;
    white-space: nowrap;
}

.newsletter-form .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.newsletter-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    display: none;
}

.newsletter-message.success {
    display: block;
    background: rgba(72, 187, 120, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.newsletter-message.error {
    display: block;
    background: rgba(245, 101, 101, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-text h2 {
        font-size: 1.5rem;
    }

    .newsletter-text p {
        font-size: 1rem;
    }
}

/* ============================================
   Donation Section
   ============================================ */
.donation-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem;
    border-radius: 12px;
    border: 2px solid var(--color-border-light);
}

.donation-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.donation-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.donation-card p {
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
}

.donation-card .btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form-section {
    background: var(--color-bg-white);
    padding: var(--spacing-xl) 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-message {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background: rgba(72, 187, 120, 0.1);
    color: var(--color-success);
    border: 2px solid var(--color-success);
}

.form-message.error {
    background: rgba(245, 101, 101, 0.1);
    color: var(--color-error);
    border: 2px solid var(--color-error);
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */

/* Mobile: 320px - 480px */
@media (max-width: 480px) {
    /* Typography adjustments */
    h1, .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Container padding */
    .container,
    .container-sm,
    .container-lg {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Buttons */
    .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .btn-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons {
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Navigation */
    .navbar-container {
        padding: 0.75rem 1rem;
    }

    .navbar-logo {
        height: 28px;
    }

    /* Cards */
    .card,
    .feature-card,
    .pricing-card,
    .blog-card {
        padding: 1rem;
    }

    /* Sections */
    section {
        padding: 2rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    /* Tables - make them scrollable */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* Tablet: 481px - 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .container,
    .container-sm,
    .container-lg {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ensure all interactive elements are touch-friendly */
@media (max-width: 768px) {
    button,
    a.btn,
    input,
    select,
    textarea {
        min-height: 44px; /* iOS recommended touch target size */
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    /* Fix for long words/URLs */
    p, li, td, th {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}
