/* ============================================
   MELIS PLATFORM DOCUMENTATION - MODERN DESIGN
   ============================================ */

/* Color Variables */
:root {
    --melis-red: #e61c23;
    --melis-red-hover: #ff2d35;
    --melis-red-light: rgba(230, 28, 35, 0.1);
    
    /* Light Theme - Ultra Modern */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-sidebar: #ffffff;
    --bg-header: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --text-light: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 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);
    --code-bg: #f8fafc;
    --code-border: #e2e8f0;
    --gradient-start: #ffffff;
    --gradient-end: #f8fafc;
}

/* Dark Theme - Deep Black */
[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #141414;
    --bg-sidebar: #0a0a0a;
    --bg-header: #000000;
    --text-primary: #ffffff;
    --text-secondary: #a1a1a1;
    --text-tertiary: #737373;
    --text-light: #ffffff;
    --border-color: #1f1f1f;
    --border-light: #141414;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.8);
    --code-bg: #0a0a0a;
    --code-border: #1f1f1f;
    --gradient-start: #000000;
    --gradient-end: #0a0a0a;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: var(--melis-red);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--melis-red-hover);
}

/* Header Styles - Glassmorphism */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .main-header {
    background: rgba(0, 0, 0, 0.85);
    border-bottom-color: #1f1f1f;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 40px;
    max-width: 1920px;
    margin: 0 auto;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.melis-logo {
    height: 40px;
    width: auto;
    background: white;
    border-radius: 8px;
    padding: 2px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.logo-text i {
    color: var(--melis-red);
    font-size: 28px;
}

.logo-text .doc-label {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.header-btn:hover {
    background-color: var(--melis-red);
    border-color: var(--melis-red);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.header-btn-icon {
    padding: 10px 12px;
    min-width: 44px;
    justify-content: center;
}

.header-btn i {
    font-size: 16px;
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 3px;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow: hidden;
}

.lang-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.lang-option:hover {
    background-color: var(--melis-red-light);
    color: var(--melis-red);
}

.lang-option .flag-icon {
    flex-shrink: 0;
}

/* Main Layout */
.main-layout {
    display: flex;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Sidebar Styles - Modern Cards */
.main-sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    bottom: 0;
    width: 280px;
    background-color: var(--bg-sidebar);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
    border-right: 1px solid var(--border-color);
    padding: 24px 16px 0 16px;
    display: flex;
    flex-direction: column;
}

.main-sidebar::-webkit-scrollbar {
    width: 6px;
}

.main-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.main-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.main-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--melis-red);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    padding-bottom: 24px;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-section-title {
    color: var(--melis-red);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--melis-red-light);
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid var(--melis-red);
}

.nav-section-title i {
    font-size: 14px;
    color: var(--melis-red);
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-link.active {
    background-color: var(--melis-red-light);
    color: var(--melis-red);
    font-weight: 600;
}

.nav-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Submenu Styles */
.nav-submenu {
    list-style: none;
    margin: 4px 0 0 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-submenu.show {
    max-height: 1000px;
}

.nav-submenu .nav-link {
    padding-left: 44px;
    font-size: 13px;
    font-weight: 400;
}

.nav-link.has-submenu {
    position: relative;
}

.nav-link.has-submenu::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
}

.nav-link.has-submenu.open::after {
    transform: rotate(180deg);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px 12px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    background-color: var(--bg-sidebar);
}

.sidebar-footer p {
    margin: 0;
    font-size: 11px;
    color: var(--text-tertiary);
    text-align: center;
    line-height: 1.6;
}

.sidebar-footer p:first-child {
    margin-bottom: 4px;
}

.sidebar-footer a {
    color: var(--melis-red);
    font-weight: 600;
    text-decoration: none;
}

.sidebar-footer a:hover {
    color: var(--melis-red-hover);
}

/* Content Wrapper */
.content-wrapper {
    margin-left: 280px;
    width: calc(100% - 280px);
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
}

.content-area {
    flex: 1;
    padding: 48px 64px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Content Typography - Ultra Modern */
.content-area h1 {
    color: var(--text-primary);
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.content-area h1::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, var(--melis-red), var(--melis-red-hover));
    border-radius: 2px;
    margin-bottom: 24px;
}

.content-area h2 {
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.content-area h3 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
}

.content-area p {
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-secondary);
}

.content-area ul,
.content-area ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.content-area li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.content-area code {
    background-color: var(--code-bg);
    border: 1px solid var(--code-border);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 13px;
    color: var(--melis-red);
    font-weight: 500;
}

.content-area pre {
    background-color: var(--code-bg);
    border: 1px solid var(--code-border);
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.content-area pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-primary);
}

/* Footer - Hidden (moved to sidebar) */
.main-footer {
    display: none;
}

/* Cards and Boxes - Modern Glass Effect */
.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover {
    box-shadow: var(--shadow-md);
}

.info-card h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h4 i {
    color: var(--melis-red);
}

/* Homepage - Ultra Modern Hero */
.home-hero {
    text-align: center;
    padding: 80px 0 60px;
    margin-bottom: 64px;
    position: relative;
}

.home-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--melis-red), transparent);
}

.home-hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.home-hero h1::before {
    display: none;
}

.home-hero h1 i {
    color: var(--melis-red);
    margin-right: 12px;
}

.home-hero p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-top: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.quick-link-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--melis-red), var(--melis-red-hover));
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--melis-red-light);
}

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

.quick-link-card i {
    font-size: 40px;
    color: var(--melis-red);
    margin-bottom: 20px;
    display: block;
}

.quick-link-card h3 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
}

.quick-link-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-xl);
    }
    
    .main-sidebar.show {
        transform: translateX(0);
    }
    
    .content-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .content-area {
        padding: 32px 24px;
    }
    
    .header-content {
        padding: 0 20px;
    }
    
    .logo-text .doc-label {
        display: none;
    }
    
    .main-footer {
        padding: 20px 24px;
    }
}

@media (max-width: 768px) {
    .content-area h1 {
        font-size: 36px;
    }
    
    .home-hero h1 {
        font-size: 40px;
    }
    
    .home-hero p {
        font-size: 16px;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .quick-link-card {
        padding: 24px;
    }
}

/* Loading Animation - Modern Spinner */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--melis-red);
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Transitions */
* {
    transition-property: background-color, color, border-color, opacity;
    transition-duration: 0.2s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Accessibility Focus States */
.header-btn:focus,
.nav-link:focus,
.quick-link-card:focus {
    outline: 2px solid var(--melis-red);
    outline-offset: 2px;
}

/* Selection Colors */
::selection {
    background-color: var(--melis-red-light);
    color: var(--melis-red);
}

/* ============================================
   MODULE DOCUMENTATION PAGES STYLES
   ============================================ */

.module-documentation {
    max-width: 1200px;
    margin: 0 auto;
}

/* Module Header */
.module-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.module-icon {
    width: 80px;
    height: 80px;
    background: var(--melis-red-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.module-icon i {
    font-size: 36px;
    color: var(--melis-red);
}

.module-title-section h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.module-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0;
}

/* Module Badges */
.module-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

/* Module Quick Links */
.module-quick-links {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.quick-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-link-btn:hover {
    background: var(--melis-red);
    border-color: var(--melis-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-link-btn i {
    font-size: 18px;
}

/* Table of Contents */
.toc-section {
    background: var(--melis-red-light);
    border: 2px solid var(--melis-red);
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.toc-link:hover {
    background: var(--melis-red);
    border-color: var(--melis-red);
    color: white;
    transform: translateX(4px);
}

.toc-link i {
    font-size: 16px;
    color: var(--melis-red);
    transition: color 0.2s;
}

.toc-link:hover i {
    color: white;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-core {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.badge-cms {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.badge-commerce {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.badge-required {
    background: var(--melis-red-light);
    color: var(--melis-red);
}

.badge-optional {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.badge-license {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Module Sections */
.module-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.module-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.module-section h2 i {
    color: var(--melis-red);
    font-size: 22px;
}

.module-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 16px 0;
}

.module-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 16px 0 12px 0;
}

.module-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.module-section code {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--melis-red);
}

/* Requirements List */
.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    padding: 12px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
}

.requirements-list li:last-child {
    border-bottom: none;
}

.requirements-list li i {
    color: var(--melis-red);
    font-size: 12px;
}

/* Code Blocks */
.code-block {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 8px;
    overflow: hidden;
    margin: 16px 0;
}

.code-header {
    background: var(--bg-tertiary);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.code-header span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-copy {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: var(--melis-red);
    border-color: var(--melis-red);
    color: white;
}

.code-block pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.code-block code {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 16px 0;
    display: flex;
    gap: 16px;
}

.alert i {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.alert-info i {
    color: #3b82f6;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-warning i {
    color: #f59e0b;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.alert-success i {
    color: #22c55e;
}

.alert strong {
    color: var(--text-primary);
    font-weight: 600;
}

.alert p {
    margin: 0;
    color: var(--text-secondary);
}

/* Step List */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-item {
    display: flex;
    gap: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--melis-red-light);
    color: var(--melis-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-top: 8px;
}

.step-content p {
    margin-bottom: 8px;
}

/* Link Cards */
.link-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.link-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-card:hover {
    border-color: var(--melis-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.link-card i {
    font-size: 32px;
    color: var(--melis-red);
}

.link-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.link-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Module Footer */
.module-footer {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 32px;
    margin-top: 40px;
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px 0;
}

.footer-section p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.footer-section a {
    color: var(--melis-red);
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .module-header {
        flex-direction: column;
        text-align: center;
    }
    
    .module-title-section h1 {
        font-size: 28px;
    }
    
    .module-section {
        padding: 20px;
    }
    
    .link-cards {
        grid-template-columns: 1fr;
    }
    
    .module-footer {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
