/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--theme-bg);
    color: var(--theme-text);
    line-height: 1.6;
    overflow-x: clip;
}

.theme-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.theme-content-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.theme-content-padding {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Professional Header */
.theme-header {
    background: var(--header-bg, #ffffff);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
}

.theme-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height, 80px);
}

.theme-logo {
    font-size: 26px;
    font-weight: 900;
    color: var(--header-text, #111111);
    text-decoration: none;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.theme-logo img {
    max-height: var(--logo-height, 45px);
    width: var(--logo-width, auto);
}

.theme-nav {
    display: flex;
    align-items: center;
    background: var(--menu-bg, transparent);
    border-radius: 8px;
}

.theme-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

.theme-nav-list li {
    position: relative;
}

.theme-nav-list a {
    text-decoration: none;
    color: var(--menu-link, #444444);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    padding: 10px 0;
}

.theme-nav-list a:hover,
.theme-nav-list a:focus {
    color: var(--menu-link-hover, var(--apb-primary));
}

.theme-nav-list .current-menu-item > a {
    color: var(--menu-link-active, var(--apb-primary));
}

/* Underline animation on hover */
.theme-nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--menu-link-hover, var(--apb-primary));
    transition: width 0.3s ease;
}

.theme-nav-list .current-menu-item > a::after {
    width: 100%;
    background-color: var(--menu-link-active, var(--apb-primary));
}

.theme-nav-list a:hover::after {
    width: 100%;
}

.theme-mobile-toggle {
    display: none;
    background: none;
    border: 2px solid var(--header-text, #111111);
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 38px;
    height: 34px;
    padding: 6px 7px;
    z-index: 1001;
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s;
}

.theme-mobile-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--header-text, #111111);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Mobile Toggle Animation */
.theme-mobile-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.theme-mobile-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}
.theme-mobile-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 768px) {
    .theme-header {
        position: sticky;
        top: 0;
    }
    .theme-header-inner {
        height: var(--header-height, 60px);
    }
    
    .theme-nav {
        position: fixed;
        top: var(--header-height, 70px);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height, 70px));
        background: var(--header-bg, #ffffff);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 20px;
        box-sizing: border-box;
        transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow-y: auto;
        box-shadow: 10px 0 20px rgba(0,0,0,0.05);
        border-radius: 0;
    }
    
    .theme-nav.active {
        left: 0;
    }

    .theme-nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .theme-nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .theme-nav-list a {
        display: block;
        padding: 15px 0;
        font-size: 18px;
    }
    
    .theme-nav-list a::after {
        display: none;
    }

    .theme-mobile-toggle {
        display: flex;
    }
}

/* Professional Footer */
.theme-footer {
    background: var(--footer-bg, #1a1b24);
    color: var(--footer-text, #a0aec0);
    padding: 70px 0 30px;
    margin-top: 80px;
}

.theme-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 50px;
}

/* Dividers via border — works in both LTR and RTL */
.footer-col-1,
.footer-col-2 {
    border-right: var(--footer-divider-width, 1px) var(--footer-divider-style, solid) var(--footer-divider-color, rgba(255,255,255,0.08));
    padding-right: 40px;
}

@media (max-width: 768px) {
    .theme-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-col-1,
    .footer-col-2 {
        border-right: none;
        border-bottom: var(--footer-divider-width, 1px) var(--footer-divider-style, solid) var(--footer-divider-color, rgba(255,255,255,0.08));
        padding-right: 0;
        padding-bottom: 30px;
    }
}

.footer-brand {
    font-size: 24px;
    font-weight: 800;
    color: var(--footer-heading, #ffffff);
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.footer-desc {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 25px 0;
    color: var(--footer-text, #a0aec0);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--footer-link, #cbd5e1);
    transition: all 0.3s;
}

.footer-socials a:hover {
    background: var(--footer-link-hover, #ffffff);
    color: var(--footer-bg, #1a1b24);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--footer-heading, #ffffff);
    margin: 0 0 25px 0;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--apb-primary);
}

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

.footer-menu-list a {
    color: var(--footer-link, #a0aec0);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
    font-weight: 500;
}

.footer-menu-list a:hover {
    color: var(--footer-link-hover, #ffffff);
}

/* ---- Separate Copyright Bar ---- */
.site-copyright-bar {
    background: var(--footer-copy-bg, var(--footer-bg, #1a1b24));
    border-top: var(--footer-copy-border, 1px solid rgba(255,255,255,0.05));
}
.site-copyright-inner {
    padding: var(--footer-copy-padding, 20px 0);
    text-align: center;
    font-size: var(--footer-copy-font-size, 14px);
    color: var(--footer-copy-color, var(--footer-text, #a0aec0));
    line-height: 1.6;
}
.site-copyright-inner a {
    color: var(--footer-copy-link-color, var(--footer-link-hover, #ffffff));
    text-decoration: none;
    transition: opacity 0.2s;
}
.site-copyright-inner a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Page Titles */
.theme-page-title {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 800;
}

.theme-archive-description {
    margin-bottom: 40px;
    color: #666;
}

/* EMD Homepage specifics */
.theme-app-homepage {
    padding-top: 0;
    padding-bottom: 50px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
}

/* Single Post */
.theme-single {
    padding-top: 0;
    padding-bottom: 50px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
}

/* EMD Premium Cards */
.app-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}
.app-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.06), 0 3px 10px rgba(0,0,0,0.03);
}

/* Details card: full width card, but inner content max 900px centered */
.app-details-card {
    padding: 30px 20px;
}
.app-details-inner,
.app-section-inner {
    max-width: 900px;
    margin: 0 auto;
}

.app-section-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    padding-bottom: 0;
    border-bottom: 2px solid #f0f2f5;
    color: #111;
}

/* =========================================
   HERO SECTION — 10 LAYOUT DESIGNS
   ========================================= */

/* Shared Base Hero Variables & Properties */
.app-hero-premium {
    background: var(--hero-bg, #ffffff);
    border-radius: var(--hero-radius, 0 0 24px 24px);
    margin-bottom: 40px;
    border-bottom: var(--hero-border, 1px solid rgba(0,0,0,0.03));
    margin-left: -20px;
    margin-right: -20px;
    position: relative;
    overflow: hidden;
}
.app-hero-title {
    font-size: var(--hero-title-size, 42px);
    font-weight: 900;
    margin: 0 0 10px 0;
    color: var(--hero-heading-color, #111111);
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.app-hero-intro {
    font-size: 16px;
    color: var(--hero-intro-text, #555);
    background: var(--hero-intro-bg, transparent);
    padding: var(--hero-intro-padding, 0);
    margin: var(--hero-intro-margin, 0 auto 35px);
    border-radius: 12px;
    line-height: 1.7;
    text-align: center;
    max-width: 820px;
    width: 100%;
}
.app-hero-logo {
    width: 100%;
    max-width: var(--hero-image-width, 200px);
    border-radius: var(--hero-icon-radius, 24px) !important;
    object-fit: contain;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05);
    border-width: var(--hero-icon-border-width, 0px) !important;
    border-style: var(--hero-icon-border-style, solid) !important;
    border-color: var(--hero-icon-border-color, transparent) !important;
    background: var(--hero-icon-bg, transparent) !important;
    display: block;
    margin: 0 auto;
}
.app-hero-download { margin-top: 10px; }

/* Shared Button Styles */
.app-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: var(--btn-width-desktop, auto);
    max-width: 100%;
    gap: 15px;
    background: var(--btn-bg, var(--apb-primary));
    color: var(--btn-text, #fff);
    padding: 10px 30px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.app-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    color: var(--btn-text, #fff);
}
.app-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.app-btn-text strong {
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
}
.app-btn-text span {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 500;
}

/* ---- LAYOUT 1: Centered Classic ---- */
.app-hero-l1 {
    text-align: center;
    padding: 40px 20px;
    background: var(--hero-bg, #ffffff) !important;
    border-radius: var(--card-radius, 12px) !important;
    box-shadow: var(--card-shadow, 0 10px 30px rgba(0,0,0,0.12)) !important;
    border: var(--card-border, 1px solid #e2e8f0) !important;
    margin: var(--card-margin, 0 0 20px 0) !important;
}
.app-hero-l1 .app-hero-logo-wrap { margin-bottom: 25px; }
.app-hero-l1 .app-hero-intro { max-width: 900px; }

/* ---- LAYOUT 2: App Store Card (Remini-style) ---- */
.app-hero-l2-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    background: var(--hero-bg, #ffffff) !important;
    padding: 30px;
    border-radius: var(--card-radius, 12px) !important;
    box-shadow: var(--card-shadow, 0 10px 30px rgba(0,0,0,0.12)) !important;
    border: var(--card-border, 1px solid #e2e8f0) !important;
    margin: var(--card-margin, 0 0 20px 0) !important;
    gap: 30px;
}
.app-hero-l2-logo-col { flex-shrink: 0; }
.app-hero-l2-content-col { flex: 1; min-width: 280px; }
.app-hero-l2-meta { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; font-size: 14px; color: #666; }
.app-hero-l2-badge { background: #f0f0f0; padding: 3px 8px; border-radius: 4px; font-weight: 600; color: #d32f2f; }
.app-hero-l2-date { display: flex; align-items: center; gap: 5px; }
.app-hero-l2-rating { display: flex; align-items: center; gap: 5px; color: #d32f2f; margin-bottom: 15px; font-weight: 600; font-size: 14px; }
.app-hero-l2-score { margin-left: 5px; }
.app-hero-l2-votes { color: #888; font-weight: 400; }
.app-hero-l2-dl { display: flex; justify-content: var(--btn-align, center); width: 100%; margin-top: 15px; }
.app-hero-l2-dl .app-btn-primary { border-radius: 6px; padding: 12px; justify-content: center; }
.app-hero-l2-intro { font-size: 15px; color: #555; width: 100%; margin-top: -15px; }
.app-hero-l2-intro p { margin-top: 0; margin-bottom: 0; }

/* ---- LAYOUT 3: Colored Info Grid (Alight Motion-style) ---- */
.app-hero-l3-grid {
    background: var(--hero-bg, #2b4e72);
    color: #fff;
    padding: 20px;
    border-radius: var(--card-radius, 12px) !important;
    box-shadow: var(--card-shadow, 0 10px 30px rgba(0,0,0,0.12)) !important;
    border: var(--card-border, 1px solid transparent) !important;
    margin: var(--card-margin, 0 0 20px 0) !important;
}
.app-hero-l3-grid .app-hero-title { color: #fff; text-align: center; margin: 0 0 20px; }
.app-hero-l3-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 40px; }
.app-hero-l3-left { flex: 1 1 0%; min-width: 300px; display: flex; flex-direction: column; align-items: center; }
.app-hero-l3-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; margin-bottom: 30px; }
.app-hero-l3-meta-item { display: flex; align-items: center; gap: 15px; }
.app-hero-l3-icon { background: rgba(255,255,255,0.1); padding: 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.app-hero-l3-meta-text { display: flex; flex-direction: column; font-size: 14px; }
.app-hero-l3-meta-text strong { font-size: 16px; margin-bottom: 2px; }
.app-hero-l3-meta-text span { color: rgba(255,255,255,0.8); }

.app-hero-l3-right { flex: 1 1 0%; display: flex; align-items: flex-start; justify-content: flex-end; }
.app-hero-l3-right img { margin-left: 0; margin-right: auto; }
.app-hero-l3-grid .app-hero-intro { color: rgba(255,255,255,0.9); margin-top: 30px; text-align: left; width: 100%; max-width: 100%; }



/* ---- LAYOUT 5: Centered Info Card ---- */
.app-hero-l5-card { background: transparent; padding: 40px 20px 30px; border-radius: var(--hero-radius, 0 0 24px 24px); margin: var(--card-margin, 0 0 20px 0) !important; }

/* Inner row: image RIGHT, info LEFT (in RTL page) */
.app-hero-l5-inner { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 40px; margin-bottom: 28px; }

/* Image column - sits on RIGHT visually in RTL because it is first in DOM */
.app-hero-l5-image { flex-shrink: 0; }
.app-hero-l5-image .app-hero-logo { width: min(100%, 200px); max-width: 200px; height: auto; border-radius: 8px; padding: 0; border: none; box-shadow: 0 4px 24px rgba(0,0,0,0.3); }

/* Info column - sits on LEFT visually in RTL */
.app-hero-l5-info { flex: 1; color: #fff; }
.app-hero-l5-info .app-hero-title { color: #fff; font-size: clamp(22px, 4vw, 34px); font-weight: 800; margin: 0 0 10px; padding: 0; border: none; line-height: 1.2; }

/* Rating - right aligned in RTL info column */
.app-hero-l5-rating-wrap { display: block; width: 100%; margin-bottom: 8px; }
.app-hero-l5-score { font-size: 15px; font-weight: 700; color: var(--rating-fill, #10b981); display: block; }
.app-hero-l5-interactive-rating { display: inline-flex; flex-direction: row; gap: 3px; }
.app-hero-l5-interactive-rating svg { color: var(--rating-stroke, #10b981); cursor: pointer; transition: transform 0.15s; }
.app-hero-l5-interactive-rating svg:hover { transform: scale(1.25); }
.app-hero-l5-dev { color: rgba(255,255,255,0.75); font-size: 13px; margin-top: 4px; display: block; }

.app-hero-l5-meta-grid { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 12px; margin-bottom: 24px; }
.app-hero-l5-meta-card { background: #fff; border-radius: 10px; padding: 5px 50px; text-align: center; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); text-decoration: none; width: auto; white-space: nowrap; }
.app-hero-l5-meta-label { font-size: 13px; color: #64748b; font-weight: 500; }
.app-hero-l5-meta-val { font-size: 18px; color: #0f172a; font-weight: 700; line-height: 1.2; }

/* Download Button - respects customizer Button Alignment */
.app-hero-l5-dl { display: flex; justify-content: var(--btn-align, center); width: 100%; }
.app-hero-l5-dl .app-btn-primary { padding: 16px 32px; display: flex; justify-content: center; box-shadow: none; font-size: 18px; font-weight: 700; }
.app-hero-l5-card .app-hero-intro { margin-top: 25px; max-width: 100%!important;color: rgba(255,255,255,0.9); font-size: 15px; text-align: center; }

/* ---- LAYOUT 6: Full Color Hero (Yacine TV-style) ---- */
.app-hero-l6-color { background: #b70000; color: #fff; text-align: center; padding: 60px 20px; border-radius: 12px; margin-bottom: 20px; }
.app-hero-l6-color .app-hero-title { color: #fff; margin-bottom: 20px; }
.app-hero-l6-color .app-hero-logo-wrap { margin-bottom: 25px; }
.app-hero-l6-color .app-hero-intro { color: rgba(255,255,255,0.9); max-width: 800px; margin: 0 auto 30px; font-weight: 500; }
.app-hero-l6-dl .app-btn-primary { background: #fff; color: #b70000; border-radius: 6px; font-weight: 800; padding: 12px 30px; box-shadow: none; }
.app-hero-l6-dl .app-btn-text strong { color: #b70000; }

/* Responsive Adjustments for Hero Layouts */
@media (max-width: 768px) {
    .app-btn-primary { width: var(--btn-width-mobile, 100%) !important; }
    .app-hero-premium { padding: 30px 15px; margin-left: -15px; margin-right: -15px; }
    .app-hero-title { font-size: 32px; }
    .app-hero-l1, .app-hero-l2-card, .app-hero-l3-grid {
        margin: var(--card-margin-mobile, 0 0 20px 0) !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .app-hero-l3-grid, .app-hero-l4-compact {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .app-hero-l3-inner, .app-hero-l4-inner { flex-direction: column-reverse; }
    .app-hero-l3-right { justify-content: center; width: 100%; }
    .app-hero-l3-right img { margin-left: auto; margin-right: auto; }
    .app-hero-l3-grid .app-hero-title, .app-hero-l3-grid .app-hero-intro,
    .app-hero-l4-compact .app-hero-title, .app-hero-l4-compact .app-hero-intro { text-align: center; }
    .app-hero-l3-grid .app-hero-intro { width: 100%; max-width: 100%; }
    .app-hero-l2-meta, .app-hero-l2-rating, .app-hero-l2-dl, .app-hero-l3-meta-grid { justify-content: center; }
    .app-hero-l4-meta-col { grid-template-columns: 1fr; }
    /* Layout 5 mobile */
    .app-hero-l5-card { margin: var(--card-margin-mobile, 0 0 20px 0) !important; }
    .app-hero-l5-inner { flex-direction: column; gap: 20px; }
    .app-hero-l5-image { order: -1; }
    .app-hero-l5-image .app-hero-logo { margin: 0 auto; display: block; }
    .app-hero-l5-info { text-align: center; width: 100%; }
    .app-hero-l5-rating-wrap { align-items: center; }
    .app-hero-l5-score { text-align: center; }
    .app-hero-l5-interactive-rating { justify-content: center; }
    .app-hero-l5-dev { text-align: center; }
    .app-hero-l5-meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .app-hero-l5-meta-card { white-space: normal; padding: 5px 12px; width: 100%; box-sizing: border-box; }
}

/* SVG App Details List (Based on screenshot) */
.app-details-card {
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}
.app-details-inner {
    border: 2px solid var(--apb-primary) !important;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
}
.app-details-card .app-section-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    padding: 10px 20px !important;
    background-color: var(--apb-primary) !important;
    color: #ffffff !important;
    text-align: center;
    border-bottom: none !important;
}
.app-details-table-list {
    display: flex;
    flex-direction: column;
}
.app-detail-row-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.app-detail-row-flex:nth-child(odd) {
    background: rgba(var(--apb-primary-rgb), 0.04);
}
.app-detail-row-flex:nth-child(even) {
    background: #ffffff;
}
.app-detail-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
}
.app-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}
.app-detail-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #4a5568;
}
.app-detail-right {
    text-align: right;
}
.app-detail-value {
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
}
.app-detail-value a {
    color: #3182ce;
    text-decoration: underline;
}

/* Advanced EMD Features CSS */
.app-slider-wrap {
    position: relative;
}
.app-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all 0.2s;
    color: var(--apb-primary);
}
.app-slider-arrow:hover {
    background: var(--apb-primary);
    color: #fff;
    border-color: var(--apb-primary);
}
.app-slider-arrow svg {
    width: 20px;
    height: 20px;
}
.app-slider-prev {
    right: -20px;
}
.app-slider-next {
    left: -20px;
}
@media (max-width: 768px) {
    .app-slider-arrow { width: 32px; height: 32px; }
    .app-slider-prev { right: 10px; }
    .app-slider-next { left: 10px; }
}
.app-screenshots-carousel {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
    scrollbar-width: none;
}
.app-screenshots-carousel::-webkit-scrollbar {
    display: none;
}
.app-screenshots-inner {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.app-screenshot-item {
    flex-shrink: 0;
}
.app-screenshot-item img,
.app-screenshots-inner img {
    height: 420px;
    width: auto;
    max-width: 300px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    object-fit: contain;
    border: 1px solid rgba(0,0,0,0.06);
    display: block;
}
@media (max-width: 768px) {
    .app-screenshot-item img,
    .app-screenshots-inner img { height: 280px; max-width: 200px; }
    .app-hero-title { font-size: 32px; }
    .app-hero-logo { width: min(var(--hero-image-width, 140px), 100%); height: auto; }
}

/* Pros and Cons */
/* Pros & Cons Section */
.apb-pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}
@media (max-width: 768px) {
    .apb-pros-cons-grid {
        grid-template-columns: 1fr;
    }
}
.apb-pros-box, .apb-cons-box {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.apb-pc-title {
    color: #ffffff !important;
}

/* Headers */
.apb-pros-header, .apb-cons-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px !important;
    color: #fff !important;
}
.apb-pros-header {
    background: #2e7d32 !important;
}
.apb-cons-header {
    background: #d50000 !important;
}

/* Boxes */
.apb-pros-box {
    border: 1px solid #6cab3d;
    background: #f7fcf5;
}
.apb-cons-box {
    border: 1px solid #d50000;
    background: #fdf6f6;
}

/* Icons */
.apb-pc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.8);
}
.apb-pc-icon svg {
    width: 18px;
    height: 18px;
}

/* Titles */
.apb-pc-title {
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Lists Styling */
.apb-pros-content, .apb-cons-content {
    padding: 10px;
    flex-grow: 1;
}
.apb-pros-content ul, .apb-cons-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.apb-pros-content li, .apb-cons-content li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 16px;
    font-size: 15px;
    color: #374151;
    line-height: 1.5;
}
.apb-pros-content li:last-child, .apb-cons-content li:last-child {
    margin-bottom: 0;
}
.apb-pros-content li:before, .apb-cons-content li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.apb-pros-content li:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232e7d32'%3E%3Cpath d='M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z'/%3E%3C/svg%3E");
}
.apb-cons-content li:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d50000'%3E%3Cpath d='M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z'/%3E%3C/svg%3E");
}

/* FAQs */
.app-faq-item {
    border-radius: 8px;
    margin-bottom: 12px;
}
.app-faq-item:last-child {
    margin-bottom: 0;
}
.app-faq-question,
h3.app-faq-question {
    cursor: pointer;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 18px !important;
    margin: 0 !important;
    font-size: 15px;
    font-weight: 700;
    color: #1a202c;
    background: rgba(var(--apb-primary-rgb), 0.1);
    border-radius: 8px;
    border: 1px solid rgba(var(--apb-primary-rgb), 0.2);
    transition: background 0.2s;
    user-select: none;
    line-height: 1.4;
}
.app-faq-question:hover {
    background: rgba(var(--apb-primary-rgb), 0.2);
}
.app-faq-item.open .app-faq-question {
    border-radius: 8px 8px 0 0;
}
.app-faq-toggle {
    font-size: 18px;
    font-weight: 900;
    color: var(--apb-primary);
    background: rgba(var(--apb-primary-rgb), 0.15);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 12px;
}
/* Answer hidden by default via CSS, shown when parent has .open class */
.app-faq-answer {
    display: none;
    padding: 16px 20px 20px;
    color: #4a5568;
    line-height: 1.7;
    font-size: 15px;
    background: #fff;
    border: 1px solid rgba(var(--apb-primary-rgb), 0.15);
    border-top: none;
    border-radius: 0 0 8px 8px;
}
.app-faq-item.open .app-faq-answer {
    display: block;
}

/* TOC - Redesigned to match screenshot */
.app-toc-card {
    border: 1px solid rgba(var(--apb-primary-rgb), 0.25);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
    padding: 0;
    background: #fff;
    margin-bottom: 20px;
}
.app-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 14px 20px;
    background: rgba(var(--apb-primary-rgb), 0.06);
    user-select: none;
}
.app-toc-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.app-toc-icon {
    color: var(--apb-primary);
    display: flex;
    align-items: center;
}
.app-toc-title {
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 0.2px;
}
.app-toc-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
    line-height: 0;
}
.app-toc-card.open .app-toc-arrow {
    transform: rotate(90deg);
}
/* List area */
.app-toc-list {
    display: none;
    padding: 16px 20px 20px;
    background: #fff;
}
.app-toc-card.open .app-toc-list {
    display: block;
}
.app-toc-list ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.app-toc-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}
.app-toc-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--apb-primary);
    opacity: 0.5;
}
.app-toc-list li.app-toc-level-3 {
    padding-left: 36px;
}
.app-toc-list li.app-toc-level-3::before {
    left: 18px;
    width: 6px;
    height: 6px;
    opacity: 0.3;
}
.app-toc-list li.app-toc-level-4 {
    padding-left: 52px;
}
.app-toc-list li.app-toc-level-4::before {
    left: 34px;
    width: 5px;
    height: 5px;
    opacity: 0.2;
}
.app-toc-list a {
    color: #374151;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    display: block;
    line-height: 1.5;
}
.app-toc-list a:hover {
    color: var(--apb-primary);
}

/* =========================================
   Download Page Styles
   ========================================= */

.app-download-page-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* App Header */
.app-dl-app-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

.app-dl-app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.app-dl-app-icon-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    background: var(--apb-primary, #6C63FF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.app-dl-app-info {
    flex: 1;
    min-width: 0;
}

.app-dl-app-name {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
}

.app-dl-version-badge {
    display: inline-block;
    background: var(--apb-primary, #6C63FF);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.app-dl-developer {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 14px;
}

/* Progress Card */
.app-dl-progress-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.app-dl-progress-icon {
    margin-bottom: 20px;
}

.app-dl-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(var(--apb-primary-rgb, 108, 99, 255), 0.15);
    border-top-color: var(--apb-primary, #6C63FF);
    border-radius: 50%;
    animation: app-spin 0.8s linear infinite;
    margin: 0 auto;
}

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

.app-dl-wait-text {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 20px;
    min-height: 24px;
    transition: opacity 0.3s;
}

.app-dl-progress-bar-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.app-dl-progress-bar {
    flex: 1;
    height: 10px;
    background: #e8eaed;
    border-radius: 99px;
    overflow: hidden;
}

.app-dl-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--apb-primary, #6C63FF);
    border-radius: 99px;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(var(--apb-primary-rgb, 108, 99, 255), 0.4);
}

.app-dl-percent {
    font-size: 14px;
    font-weight: 700;
    color: var(--apb-primary, #6C63FF);
    min-width: 38px;
    text-align: right;
}

.app-dl-sub-text {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

/* Ready Card */
.app-dl-ready-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 2px solid rgba(var(--apb-primary-rgb, 108, 99, 255), 0.15);
    text-align: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.app-dl-ready-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #059669;
    animation: app-pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes app-pop-in {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.app-dl-ready-title {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    color: #1a1a2e;
}

.app-dl-ready-sub {
    color: #6b7280;
    font-size: 15px;
    margin: 0 0 28px;
}

.app-dl-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--apb-primary, #6C63FF);
    color: #fff !important;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(var(--apb-primary-rgb, 108, 99, 255), 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: app-slide-up 0.5s 0.2s ease both;
}

.app-dl-download-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 40px rgba(var(--apb-primary-rgb, 108, 99, 255), 0.5);
    color: #fff !important;
}

.app-dl-download-btn span {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.app-dl-download-btn small {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.85;
}

@keyframes app-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.app-dl-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 16px 0 0;
    font-size: 13px;
    color: #6b7280;
}

/* Details Table */
.app-dl-details-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

.app-dl-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--apb-primary, #6C63FF);
    display: inline-block;
}

.app-dl-table-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.app-dl-table-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 4px;
    border-bottom: 1px solid #f0f2f5;
    gap: 12px;
}

.app-dl-table-row:last-child {
    border-bottom: none;
}

.app-dl-table-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.app-dl-table-icon {
    color: var(--apb-primary, #6C63FF);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.app-dl-table-label {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.app-dl-table-value {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    text-align: right;
}

/* Responsive */
@media (max-width: 600px) {
    .app-download-page-wrap {
        padding: 20px 0 40px;
        gap: 16px;
    }
    .app-dl-app-header {
        padding: 18px;
        gap: 14px;
    }
    .app-dl-app-icon,
    .app-dl-app-icon-placeholder {
        width: 60px;
        height: 60px;
    }
    .app-dl-app-name {
        font-size: 18px;
    }
    .app-dl-progress-card,
    .app-dl-ready-card,
    .app-dl-details-card {
        padding: 24px 18px;
    }
    .app-dl-download-btn {
        padding: 15px 20px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
        max-width: 100%;
        white-space: normal;
    }
    .app-dl-ready-title {
        font-size: 22px;
    }
    .app-dl-table-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 12px 8px;
    }
    .app-faq-item.active .app-faq-answer {
        max-height: 1000px;
        padding: 0 20px 20px;
    }
}

/* Mobile Spacing Optimizations */
@media (max-width: 768px) {
    .theme-container {
        padding: 0 5px !important;
    }
    .app-hero-premium {
        margin-left: -5px;
        margin-right: -5px;
        border-radius: var(--hero-radius, 0 0 16px 16px);
    }
    .app-card {
        padding: 20px 15px;
    }
    .app-hero-intro {
        font-size: 15px;
        margin-bottom: 25px;
    }
    .app-details-card {
        padding: 0 !important;
    }
    .apb-pros-cons-grid {
        gap: 15px;
    }
}

/* Lightbox Gallery */
.app-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    /* Force physical LTR coordinates so left/right are unaffected by page RTL */
    direction: ltr;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}
.app-lightbox.active {
    display: flex;
}
.app-lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    animation: app-zoom 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
@keyframes app-zoom {
    from {transform:scale(0.9); opacity:0;} 
    to {transform:scale(1); opacity:1;}
}
.app-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: rgba(255,255,255,0.7);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2;
    line-height: 1;
}
.app-lightbox-close:hover {
    color: #fff;
}
.app-lightbox-prev,
.app-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.8);
    font-weight: bold;
    font-size: 30px;
    transition: background 0.2s, color 0.2s;
    user-select: none;
    -webkit-user-select: none;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100000;
    backdrop-filter: blur(4px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
/* PREV — physically on the LEFT side */
.app-lightbox-prev {
    left: 20px !important;
    right: auto !important;
}
/* NEXT — physically on the RIGHT side */
.app-lightbox-next {
    right: 20px !important;
    left: auto !important;
}
.app-lightbox-prev:hover,
.app-lightbox-next:hover {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
}
@media (max-width: 768px) {
    .app-lightbox-prev, .app-lightbox-next {
        width: 48px !important;
        height: 48px !important;
        font-size: 22px;
    }
    .app-lightbox-prev {
        left: 8px !important;
        right: auto !important;
    }
    .app-lightbox-next {
        right: 8px !important;
        left: auto !important;
    }
    .app-lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }
}

/* What is Section */
.app-what-is-row {
    display: flex;
    gap: 30px;
    align-items: center;
}
.app-what-is-img-col {
    flex: 1;
    text-align: center;
}
.app-what-is-img-col img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.app-what-is-text-col {
    flex: 1;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color, #444);
}
@media (max-width: 768px) {
    .app-what-is-row {
        flex-direction: column;
        gap: 20px;
    }
}
/* =========================================
   APP FEATURES — ALL 10 DESIGNS
   ========================================= */

/* Shared helpers */
.app-features-wrap { }
.app-feat-icon-center {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}
.app-feat-icon-center .app-feature-icon {
    width: 100px;
    height: 100px;
    border-radius: 100px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Shared text */
.app-feature-name {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--heading-color, #1a1a2e);
    line-height: 1.3;
}
.app-feature-desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: #666;
    margin: 0;
}
.app-feature-desc p:last-child { margin-bottom: 0; }
.app-feature-icon {
    width: 100px;
    height: 100px;
    border-radius: 100px;
    object-fit: cover;
    background: #fff;
}
.app-feature-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

/* ---- DESIGN 1: Classic Cards – Top Border ---- */
.app-feat-design1 .app-features-grid,
.app-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.app-feat-design1 .app-feature-card,
.app-feature-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 5px;
    padding: 28px 22px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--apb-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.app-feat-design1 .app-feature-card:hover,
.app-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.09);
}

/* ---- DESIGN 2: Gradient Glass Cards ---- */
.app-feat-design2 .app-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.app-feat-design2 .app-feature-card {
    background: linear-gradient(145deg, #fff 55%, rgba(var(--apb-primary-rgb,108,99,255),0.07) 100%);
    border: 1px solid rgba(var(--apb-primary-rgb,108,99,255),0.18);
    border-radius: 5px;
    padding: 30px 22px;
    box-shadow: 0 6px 22px rgba(var(--apb-primary-rgb,108,99,255),0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}
.app-feat-design2 .app-feature-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 36px rgba(var(--apb-primary-rgb,108,99,255),0.14);
}
.app-feat-design2 .app-feature-icon-wrap {
    width: 110px;
    height: 110px;
    background: var(--apb-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.app-feat-design2 .app-feature-icon {
    width: 100px;
    height: 100px;
    border-radius: 100px;
    object-fit: cover;
}
.app-feat-design2 .app-feature-name {
    color: var(--apb-primary);
}

/* ---- DESIGN 3: Icon-Left Row Layout ---- */
.app-feat-d3-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.app-feat-d3-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 5px;
    padding: 20px 22px;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: border-left 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.app-feat-d3-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-left: 4px solid var(--apb-primary);
}
.app-feat-d3-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.app-feat-d3-icon img {
    width: 100px;
    height: 100px;
    border-radius: 100px;
    object-fit: cover;
}
.app-feat-d3-content { flex: 1; }
.app-feat-d3-content .app-feature-name { margin-top: 0; }

/* ---- DESIGN 4: Numbered Counter Cards ---- */
.app-feat-d4-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.app-feat-d4-card {
    background: #fff;
    border-radius: 5px;
    padding: 32px 22px 26px;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 3px 14px rgba(0,0,0,0.04);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    text-align: center;
}
.app-feat-d4-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.09);
}
.app-feat-d4-num {
    font-size: 56px;
    font-weight: 900;
    color: var(--apb-primary);
    opacity: 0.1;
    line-height: 1;
    position: absolute;
    top: 10px;
    right: 14px;
    user-select: none;
    letter-spacing: -3px;
}
.app-feat-d4-card .app-feat-icon-center { margin-bottom: 14px; }

/* ---- DESIGN 5: Dark Accent Tiles ---- */
.app-feat-d5-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.app-feat-d5-tile {
    background: #1a1a2e;
    border-radius: 5px;
    padding: 28px 22px 26px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 18px rgba(0,0,0,0.14);
    text-align: center;
}
.app-feat-d5-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.22);
}
.app-feat-d5-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--apb-primary);
    border-radius: 5px 5px 0 0;
}
.app-feat-d5-icon {
    width: 100px;
    height: 100px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    overflow: hidden;
}
.app-feat-d5-icon img {
    width: 100px;
    height: 100px;
    border-radius: 100px;
    object-fit: cover;
}
.app-feat-d5-tile .app-feature-name {
    color: #fff;
    font-size: 16px;
}
.app-feat-d5-tile .app-feature-desc {
    color: rgba(255,255,255,0.62);
    font-size: 14px;
}

/* ---- DESIGN 6: Outlined Border Cards ---- */
.app-feat-d6-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.app-feat-d6-card {
    background: transparent;
    border: 2px solid var(--apb-primary);
    border-radius: 5px;
    padding: 28px 22px;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.app-feat-d6-card:hover {
    background: var(--apb-primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(var(--apb-primary-rgb,108,99,255),0.22);
}
.app-feat-d6-card:hover .app-feature-name,
.app-feat-d6-card:hover .app-feature-desc {
    color: #fff;
}
.app-feat-d6-card .app-feature-name {
    color: var(--apb-primary);
    transition: color 0.3s ease;
}
.app-feat-d6-card .app-feature-desc {
    transition: color 0.3s ease;
}
.app-feat-d6-card .app-feat-icon-center .app-feature-icon {
    transition: transform 0.3s ease;
}
.app-feat-d6-card:hover .app-feat-icon-center .app-feature-icon {
    transform: scale(1.05);
}

/* ---- DESIGN 7: Colorful Icon Badge Cards ---- */
.app-feat-d7-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.app-feat-d7-card {
    background: #fff;
    border-radius: 5px;
    padding: 32px 22px 26px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 3px 14px rgba(0,0,0,0.04);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.app-feat-d7-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.09);
}
.app-feat-d7-badge {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, var(--apb-primary) 0%, rgba(var(--apb-primary-rgb,108,99,255),0.6) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 6px 18px rgba(var(--apb-primary-rgb,108,99,255),0.3);
    overflow: hidden;
}
.app-feat-d7-badge img {
    width: 100px;
    height: 100px;
    border-radius: 100px;
    object-fit: cover;
}

/* ---- DESIGN 8: Minimal Flat Cards ---- */
.app-feat-d8-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}
.app-feat-d8-card {
    background: #fafafa;
    border-radius: 5px;
    padding: 28px 22px;
    text-align: center;
    border-bottom: 3px solid var(--apb-primary);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.app-feat-d8-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.07);
    background: #fff;
}
.app-feat-d8-divider {
    width: 40px;
    height: 3px;
    background: var(--apb-primary);
    border-radius: 2px;
    margin: 10px auto 14px;
}

/* ---- DESIGN 9: Neon Glow Cards ---- */
.app-feat-d9-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}
.app-feat-d9-card {
    background: #0f0f1a;
    border-radius: 5px;
    padding: 30px 22px;
    text-align: center;
    border: 1px solid rgba(var(--apb-primary-rgb,108,99,255),0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}
.app-feat-d9-card:hover {
    transform: translateY(-5px);
    border-color: var(--apb-primary);
    box-shadow: 0 0 22px rgba(var(--apb-primary-rgb,108,99,255),0.35), 0 10px 30px rgba(0,0,0,0.3);
}
.app-feat-d9-icon {
    width: 100px;
    height: 100px;
    border-radius: 100px;
    border: 2px solid rgba(var(--apb-primary-rgb,108,99,255),0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    overflow: hidden;
    background: transparent;
}
.app-feat-d9-icon img {
    width: 100px;
    height: 100px;
    border-radius: 100px;
    object-fit: cover;
}
.app-feat-d9-card .app-feature-name {
    color: #fff;
    font-size: 16px;
}
.app-feat-d9-card .app-feature-desc {
    color: rgba(255,255,255,0.55);
    font-size: 14px;
}

/* ---- DESIGN 10: Split Header Cards ---- */
.app-feat-d10-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.app-feat-d10-card {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.07);
}
.app-feat-d10-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}
.app-feat-d10-header {
    background: var(--apb-primary);
    padding: 24px 20px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.app-feat-d10-header img {
    width: 100px;
    height: 100px;
    border-radius: 100px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.app-feat-d10-header .app-feature-name {
    color: #fff;
    margin: 0;
    font-size: 20px;
}
.app-feat-d10-body {
    background: #fff;
    padding: 18px 20px;
    text-align: center;
}
.app-feat-d10-body .app-feature-desc {
    font-size: 14px;
}
/* Responsive: all designs - 3 col desktop, 2 tablet, 1 mobile */
@media (max-width: 1024px) {
    .app-features-grid,
    .app-feat-d4-grid,
    .app-feat-d5-grid,
    .app-feat-d6-grid,
    .app-feat-d7-grid,
    .app-feat-d10-grid,
    .app-feat-design1 .app-features-grid,
    .app-feat-design2 .app-features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 768px) {
    .app-features-grid,
    .app-feat-d4-grid,
    .app-feat-d5-grid,
    .app-feat-d6-grid,
    .app-feat-d7-grid,
    .app-feat-d10-grid,
    .app-feat-design1 .app-features-grid,
    .app-feat-design2 .app-features-grid {
        grid-template-columns: 1fr !important;
    }
    .app-feat-d3-item { flex-direction: column; align-items: flex-start; }
    .app-feat-d4-num { font-size: 40px; }
}

/* Video Wrap */
.app-video-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.app-video-wrap iframe,
.app-video-wrap object,
.app-video-wrap embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Dynamic Container Widths */
.app-container-narrow {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.app-container-full {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Single Post Boxed Layout */
.app-single-boxed {
    width: 100%;
    margin: 40px auto;
    padding: 30px;
    background: var(--theme-bg);
    border: 2px solid var(--apb-primary);
    border-radius: var(--theme-radius);
    box-sizing: border-box;
}

/* Full-width image breaking out of padding */
.app-single-thumbnail {
    margin-bottom: 25px;
    overflow: hidden;
}
.app-single-thumbnail.pos-before_title {
    margin: -30px -30px 25px -30px;
    border-radius: calc(var(--theme-radius) - 2px) calc(var(--theme-radius) - 2px) 0 0;
}
.app-single-thumbnail.pos-after_title {
    margin: 0 -30px 25px -30px;
    border-radius: 0;
}

.app-single-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.app-single-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--content-heading-color);
    margin: 0 0 15px 0;
    text-align: center;
}

.app-single-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 25px;
}
.app-single-meta a {
    color: var(--apb-primary);
    text-decoration: none;
    font-weight: 600;
}

.app-single-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--theme-text);
}

@media (max-width: 768px) {
    .app-single-boxed {
        margin: 20px;
        padding: 20px;
    }
    .app-single-title {
        font-size: 24px;
    }
    .app-single-thumbnail.pos-before_title {
        margin: -20px -20px 20px -20px;
    }
    .app-single-thumbnail.pos-after_title {
        margin: 0 -20px 20px -20px;
    }
}
