/**
 * Modules Section - 2 Columns Layout
 * Layout 30% (modules) / 70% (features) with side modal for details
 */

/* =======================
   2-COLUMN LAYOUT
   ======================= */

.modules-2col-layout {
    display: flex;
    gap: 30px;
    margin-top: 60px;
    min-height: 600px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* =======================
   LEFT SIDEBAR - MODULES LIST (30%)
   ======================= */

.modules-sidebar {
    flex: 0 0 30%;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    overflow-y: auto;
    max-height: 800px;
}

.modules-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.module-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(255, 151, 96, 0.15);
}

.module-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, #ff7a3d 100%);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(255, 151, 96, 0.35);
    transform: translateX(6px);
}

.module-item.active .module-item-content h4,
.module-item.active .module-count {
    color: white;
}

.module-item.active .module-item-arrow svg {
    stroke: white;
}

.module-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-item-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.module-item:hover .module-item-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.module-item.active .module-item-icon {
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.module-item-content {
    flex: 1;
    min-width: 0;
}

.module-item-content h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.module-count {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    transition: color 0.3s ease;
}

.module-item-arrow {
    flex-shrink: 0;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.module-item:hover .module-item-arrow {
    opacity: 1;
    transform: translateX(2px);
}

.module-item.active .module-item-arrow {
    opacity: 1;
}

.module-item-arrow svg {
    display: block;
}

/* =======================
   RIGHT DISPLAY - FEATURES (70%)
   ======================= */

.features-display {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    max-height: 800px;
}

.features-display-inner {
    position: relative;
}

.features-content {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

.features-content.active {
    display: block;
}

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

.features-content-header {
    margin-bottom: 32px;
}

.features-content-header h3 {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.features-content-header p {
    font-size: 16px;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

/* Header as clickable link */
.features-header-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    padding: 20px 24px;
    margin: -20px -24px 32px -24px;
    background: linear-gradient(135deg, rgba(255, 151, 96, 0.08) 0%, rgba(255, 122, 61, 0.04) 100%);
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.features-header-link:hover {
    background: linear-gradient(135deg, rgba(255, 151, 96, 0.15) 0%, rgba(255, 122, 61, 0.08) 100%);
    border-color: rgba(255, 122, 61, 0.3);
    transform: translateX(4px);
}

.features-header-link .features-header-text {
    flex: 1;
}

.features-header-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.features-header-link:hover .features-header-arrow {
    transform: translateX(4px);
}

/* See More CTA Button */
.features-see-more-cta {
    margin-top: 24px;
    text-align: center;
}

.features-see-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #ff9760 0%, #ff7a3d 100%);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 122, 61, 0.3);
}

.features-see-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 122, 61, 0.4);
}

.features-see-more-btn .see-more-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.features-see-more-btn .see-more-arrow {
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.features-see-more-btn:hover .see-more-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.feature-card-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #1a1a2e;
}

/* Blurred background image */
.feature-card-blur {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    opacity: 0.7;
    transform: scale(1.1);
}

.feature-card-image img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

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

.feature-card-content {
    padding: 20px;
}

.feature-card-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.feature-card-content p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.feature-see-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-see-more:hover {
    gap: 10px;
    color: #ff7a3d;
}

.feature-see-more svg {
    transition: transform 0.3s ease;
}

.feature-see-more:hover svg {
    transform: translateX(2px);
}

.no-features {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 16px;
}

/* =======================
   SIDE MODAL RIGHT
   ======================= */

.side-modal-right {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 600px;
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.side-modal-right.open {
    pointer-events: auto;
    opacity: 1;
}

.side-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.side-modal-right.open .side-modal-overlay {
    opacity: 1;
}

.side-modal-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: white;
    box-shadow: -10px 0 60px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.side-modal-right.open .side-modal-content {
    transform: translateX(0);
}

.side-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.side-modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.side-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 80px 40px 40px 40px;
}

/* Loader */
.side-modal-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 20px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 151, 96, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.side-modal-loader p {
    color: var(--text-light);
    font-size: 14px;
}

/* Modal Content */
.side-modal-header {
    margin-bottom: 32px;
}

.feature-module-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.feature-detail-image {
    width: 100%;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.feature-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-modal-header h3 {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.feature-excerpt {
    font-size: 16px;
    color: var(--text);
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    padding: 6px 14px;
    background: rgba(255, 151, 96, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.side-modal-content-body {
    margin-top: 32px;
}

.feature-description {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 32px;
}

.feature-description p {
    margin: 0 0 16px 0;
}

.feature-details-list {
    margin-bottom: 32px;
}

.feature-details-list h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 16px 0;
}

.feature-details-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-details-list li {
    padding-left: 28px;
    position: relative;
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
}

.feature-details-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 16px;
}

.feature-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.feature-actions .btn {
    width: 100%;
    justify-content: center;
    gap: 8px;
}

.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #ef4444;
    font-size: 15px;
}

/* Body scroll lock when modal is open */
body.modal-open {
    overflow: hidden;
}

/* =======================
   SCROLLBAR STYLING
   ======================= */

.modules-sidebar::-webkit-scrollbar,
.features-display::-webkit-scrollbar,
.side-modal-body::-webkit-scrollbar {
    width: 8px;
}

.modules-sidebar::-webkit-scrollbar-track,
.features-display::-webkit-scrollbar-track,
.side-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modules-sidebar::-webkit-scrollbar-thumb,
.features-display::-webkit-scrollbar-thumb,
.side-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.modules-sidebar::-webkit-scrollbar-thumb:hover,
.features-display::-webkit-scrollbar-thumb:hover,
.side-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 151, 96, 0.5);
}

/* =======================
   TABLET (768px - 1024px)
   ======================= */

@media (max-width: 1024px) {
    .modules-2col-layout {
        gap: 20px;
    }

    .modules-sidebar {
        flex: 0 0 35%;
    }

    .features-display {
        padding: 30px 20px;
    }

    .features-content-header h3 {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .side-modal-right {
        max-width: 500px;
    }

    .side-modal-body {
        padding: 70px 30px 30px 30px;
    }
}

/* =======================
   MOBILE (max 768px)
   ======================= */

@media (max-width: 768px) {
    .modules-2col-layout {
        flex-direction: column;
        gap: 0;
        margin-top: 40px;
    }

    .modules-sidebar {
        flex: none;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        overflow-y: visible;
    }

    .modules-list {
        padding: 16px;
        gap: 10px;
    }

    .module-item {
        padding: 12px 14px;
        gap: 12px;
    }

    .module-item-icon {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

    .module-item-content h4 {
        font-size: 14px;
    }

    .module-count {
        font-size: 11px;
    }

    .features-display {
        padding: 24px 16px;
        max-height: none;
        overflow-y: visible;
    }

    .features-content-header {
        margin-bottom: 24px;
    }

    .features-content-header h3 {
        font-size: 24px;
    }

    .features-content-header p {
        font-size: 14px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .feature-card-image {
        height: 180px;
    }

    .feature-card-content {
        padding: 16px;
    }

    /* Side Modal on Mobile */
    .side-modal-right {
        max-width: 100%;
    }

    .side-modal-body {
        padding: 70px 20px 20px 20px;
    }

    .feature-detail-image {
        height: 220px;
    }

    .side-modal-header h3 {
        font-size: 24px;
    }

    .feature-excerpt {
        font-size: 15px;
    }

    .side-modal-close {
        width: 36px;
        height: 36px;
        top: 16px;
        right: 16px;
    }
}

/* =======================
   SMALL MOBILE (max 480px)
   ======================= */

@media (max-width: 480px) {
    .modules-list {
        padding: 12px;
    }

    .module-item {
        padding: 10px 12px;
    }

    .module-item-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .module-item-content h4 {
        font-size: 13px;
    }

    .features-display {
        padding: 20px 12px;
    }

    .features-content-header h3 {
        font-size: 20px;
    }

    .feature-card-image {
        height: 160px;
    }

    .feature-card-content {
        padding: 14px;
    }

    .feature-card-content h4 {
        font-size: 15px;
    }

    .feature-card-content p {
        font-size: 13px;
    }

    .side-modal-body {
        padding: 60px 16px 16px 16px;
    }

    .feature-detail-image {
        height: 180px;
    }
}

/* =======================
   MOBILE MODULES NAVIGATION ASSISTANT
   Ergonomic bottom navigation for mobile
   ======================= */

/* Hide sidebar on mobile and show only features */
@media (max-width: 768px) {
    .modules-sidebar {
        display: none;
    }

    .modules-2col-layout {
        display: block;
    }

    .features-display {
        padding: 24px 16px 100px;
    }
}

/* Mobile Module Switcher - Enhanced */
.mobile-module-switcher {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff7a3d 100%);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(255, 151, 96, 0.4), 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    align-items: center;
    gap: 10px;
}

.mobile-module-switcher:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 15px 50px rgba(255, 151, 96, 0.5), 0 6px 20px rgba(0, 0, 0, 0.2);
}

.mobile-module-switcher:active {
    transform: translateX(-50%) scale(0.98);
}

.mobile-module-switcher-text {
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-module-switcher .switcher-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    margin-left: 4px;
}

.mobile-module-switcher .switcher-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-module-switcher .switcher-dot.active {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .mobile-module-switcher {
        display: flex;
    }
}

/* Module Switcher Modal - Bottom Sheet Style */
.module-switcher-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-switcher-modal-backdrop.open {
    display: block;
    opacity: 1;
}

.module-switcher-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 24px 24px 0 0;
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.module-switcher-modal.open {
    transform: translateY(0);
}

.module-switcher-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.module-switcher-header::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.module-switcher-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.module-switcher-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg);
    border-radius: 50%;
    font-size: 20px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.module-switcher-close:hover {
    background: var(--primary);
    color: white;
}

.module-switcher-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.module-switcher-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    background: var(--bg);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.module-switcher-item:hover {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.module-switcher-item.active {
    background: linear-gradient(135deg, rgba(255, 151, 96, 0.15) 0%, rgba(255, 122, 61, 0.1) 100%);
    border-color: var(--primary);
}

.module-switcher-item-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.module-switcher-item-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.module-switcher-item-info h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.module-switcher-item-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.module-switcher-item-check {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    color: white;
    align-items: center;
    justify-content: center;
}

.module-switcher-item {
    position: relative;
}

.module-switcher-item.active .module-switcher-item-check {
    display: flex;
}

/* Mobile Progress Bar for Modules */
.mobile-modules-progress {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.06);
    z-index: 100;
}

.mobile-modules-progress-bar {
    height: 100%;
    background: var(--gradient);
    transition: width 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-modules-progress {
        display: block;
    }
}

/* Swipe hint animation */
@keyframes swipeHint {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(10px); opacity: 0.5; }
}

.module-swipe-hint {
    display: none;
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 999;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    10%, 90% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 768px) {
    .module-swipe-hint.show {
        display: block;
    }
}

/* Mobile Quick Module Pills (horizontal scroll above features) */
.mobile-module-pills {
    display: none;
    padding: 16px;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
    position: sticky;
    top: 70px;
    z-index: 50;
}

.mobile-module-pills::-webkit-scrollbar {
    display: none;
}

.mobile-module-pills-inner {
    display: flex;
    gap: 10px;
    min-width: max-content;
}

.mobile-module-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg);
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.mobile-module-pill:hover {
    border-color: var(--primary);
}

.mobile-module-pill.active {
    background: var(--gradient);
    color: white;
}

.mobile-module-pill-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.mobile-module-pill-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.mobile-module-pill-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.mobile-module-pill.active .mobile-module-pill-name {
    color: white;
}

@media (max-width: 768px) {
    .mobile-module-pills {
        display: block;
    }
}

/* Mobile: Header link and see more */
@media (max-width: 768px) {
    .features-header-link {
        padding: 16px 18px;
        margin: -16px -16px 24px -16px;
    }

    .features-header-arrow {
        width: 36px;
        height: 36px;
    }

    .features-see-more-cta {
        margin-top: 20px;
    }

    .features-see-more-btn {
        padding: 14px 22px;
        font-size: 14px;
        gap: 10px;
        width: 100%;
        justify-content: center;
    }

    .features-see-more-btn .see-more-icon {
        width: 24px;
        height: 24px;
    }
}
