/* ========================================
   ACERFI Pages - Scoped to path-local-acerfi
   Uses .acp- prefix to avoid collision with
   homepage injection classes (.acerfi-*)
   ======================================== */

/* Hide Moove default footer on ACERFI pages, replaced by custom ACERFI footer */
.path-local-acerfi #page-footer { display: none !important; }
.path-local-acerfi #page.drawers { padding-left: 0 !important; padding-top: 0 !important; }
.path-local-acerfi .drawer { display: none !important; }
.path-local-acerfi #page-content { padding: 0 !important; margin: 0 !important; }
.path-local-acerfi #region-main { padding: 0 !important; overflow: visible !important; }
.path-local-acerfi .secondary-navigation { display: none !important; }
.path-local-acerfi #region-main-box { max-width: 100% !important; width: 100% !important; }
.path-local-acerfi .activity-header { display: none !important; }
.path-local-acerfi #topofscroll { padding: 0 !important; margin: 0 !important; }
.path-local-acerfi .main-inner { max-width: 100% !important; margin: 0 !important; }
.path-local-acerfi #page-header { display: none !important; }
/* Full-width sections break out of Moodle container */
.path-local-acerfi .acp-hero,
.path-local-acerfi .acp-section-alt,
.path-local-acerfi .acp-cta,
.path-local-acerfi .site-footer { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); width: 100vw; }
/* Fix the footer styles inside Moodle context (matching homepage) */
.path-local-acerfi .site-footer { background: linear-gradient(180deg, #0a1645 0%, #0a1645 100%); color: #fff; }
.path-local-acerfi .site-footer .footer-top { padding: 4rem 0 3rem; }
.path-local-acerfi .site-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; }
.path-local-acerfi .site-footer .footer-logo-img { max-width: 200px; height: auto; filter: brightness(0) invert(1); margin-bottom: 1.5rem; }
.path-local-acerfi .site-footer .footer-about p { color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 1.5rem; }
.path-local-acerfi .site-footer .social-links { display: flex; gap: 0.8rem; }
.path-local-acerfi .site-footer .social-btn { width: 42px; height: 42px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s; text-decoration: none; }
.path-local-acerfi .site-footer .social-btn svg { width: 20px; height: 20px; fill: #fff; }
.path-local-acerfi .site-footer .social-btn:hover { background: #2e9e8f; transform: translateY(-3px); }
.path-local-acerfi .site-footer h4 { color: #2e9e8f; font-size: 1.1rem; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }
.path-local-acerfi .site-footer ul { list-style: none; padding: 0; margin: 0; }
.path-local-acerfi .site-footer li { margin-bottom: 0.8rem; }
.path-local-acerfi .site-footer .footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: all 0.3s; display: inline-block; }
.path-local-acerfi .site-footer .footer-links a:hover { color: #2e9e8f; transform: translateX(5px); }
.path-local-acerfi .site-footer .contact-item { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; color: rgba(255,255,255,0.7); }
.path-local-acerfi .site-footer .contact-item a { color: rgba(255,255,255,0.7); text-decoration: none; }
.path-local-acerfi .site-footer .contact-item a:hover { color: #2e9e8f; }
.path-local-acerfi .site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; }
.path-local-acerfi .site-footer .footer-bottom p { text-align: center; color: rgba(255,255,255,0.5); margin: 0; font-size: 0.9rem; }
@media (max-width: 900px) { .path-local-acerfi .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .path-local-acerfi .site-footer .footer-grid { grid-template-columns: 1fr; } }

/* ---- Hero ---- */
.acp-hero {
    background: linear-gradient(135deg, #2d5ba8 0%, #15226d 100%);
    color: #fff;
    padding: 5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}
.acp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z' fill='%23fff' fill-opacity='.03'/%3E%3C/svg%3E");
}
.acp-hero > * { position: relative; z-index: 1; }
.acp-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
}
.acp-hero h1 .text-gold { color: #2e9e8f; }
.acp-hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* ---- Container ---- */
.acp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Sections ---- */
.acp-section {
    padding: 6rem 0;
}
.acp-section-alt {
    background: #f5f7fa;
}
.acp-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: #15226d;
    margin-bottom: 0.5rem;
}
.acp-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2d5ba8, #2e9e8f);
    margin: 1rem auto 0;
    border-radius: 2px;
}
.acp-section .acp-subtitle {
    text-align: center;
    color: #5b6b85;
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

/* ---- Grid ---- */
.acp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* ---- Cards ---- */
.acp-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #e7ecf3;
}
.acp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(45,91,168,0.12);
}
.acp-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #15226d;
}
.acp-card p {
    color: #5b6b85;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}
.acp-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ---- Category cards (formations) ---- */
.acp-cat-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    border: 1px solid #e7ecf3;
}
.acp-cat-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #15226d;
    margin-bottom: 0.25rem;
}
.acp-cat-card .acp-cat-count {
    font-size: 0.85rem;
    color: #5b6b85;
    margin-bottom: 1.25rem;
}
.acp-course-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #f0f0f0;
}
.acp-course-item .acp-course-info {
    flex: 1;
}
.acp-course-item .acp-course-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: #0a1645;
}
.acp-course-item .acp-course-info p {
    font-size: 0.9rem;
    color: #5b6b85;
    margin: 0;
    line-height: 1.6;
}
.acp-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
}
.acp-badge-hot {
    background: #2e9e8f;
    color: #0a1645;
}

/* ---- Buttons (matching homepage) ---- */
.acp-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.acp-btn:hover { text-decoration: none; }
.acp-btn-gold {
    background: #2e9e8f;
    color: #0a1645 !important;
}
.acp-btn-gold:hover {
    background: #fff;
    color: #2d5ba8 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(46,158,143,0.4);
}
.acp-btn-blue {
    background: #2d5ba8;
    color: #fff !important;
}
.acp-btn-blue:hover {
    background: #15226d;
    color: #fff !important;
    transform: translateY(-2px);
}
.acp-btn-white-outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid #fff;
}
.acp-btn-white-outline:hover {
    background: #fff;
    color: #2d5ba8 !important;
}
.acp-btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}
.acp-link-arrow {
    color: #2d5ba8;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}
.acp-link-arrow:hover { color: #2e9e8f; text-decoration: none; }

/* ---- Stats ---- */
.acp-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}
.acp-stat { text-align: center; }
.acp-stat h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2e9e8f;
    margin-bottom: 0.25rem;
}
.acp-stat p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}
.acp-stat-dark p {
    color: #5b6b85;
}
.acp-stat-dark h3 {
    color: #2d5ba8;
}

/* ---- Values (à propos) ---- */
.acp-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.acp-value {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    transition: all 0.3s;
}
.acp-value:hover { background: #e3f3f0; transform: translateY(-5px); }
.acp-value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.acp-value h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #15226d;
    margin-bottom: 0.5rem;
}
.acp-value p {
    color: #5b6b85;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---- CTA Section ---- */
.acp-cta {
    background: linear-gradient(135deg, #2d5ba8, #15226d);
    text-align: center;
    padding: 5rem 1.5rem;
}
.acp-cta h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.acp-cta h2::after { display: none; }
.acp-cta p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}
.acp-cta-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Contact ---- */
.acp-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.acp-contact-info h2,
.acp-contact-form-wrap h2 {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}
.acp-contact-info h2::after,
.acp-contact-form-wrap h2::after { display: none; }
.acp-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.acp-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(45,91,168,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.acp-info-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.15rem;
    color: #0a1645;
}
.acp-info-item p {
    font-size: 0.9rem;
    color: #5b6b85;
    margin: 0;
}
.acp-info-item a {
    color: #2d5ba8;
    text-decoration: none;
}
.acp-info-item a:hover { color: #2e9e8f; }

/* ---- Form ---- */
.acp-form .acp-form-group { margin-bottom: 1rem; }
.acp-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: #0a1645;
}
.acp-form input,
.acp-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e7ecf3;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.acp-form input:focus,
.acp-form textarea:focus {
    outline: none;
    border-color: #2d5ba8;
    box-shadow: 0 0 0 3px rgba(45,91,168,0.1);
}
.acp-alert-success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    color: #065f46;
}
.acp-alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    color: #991b1b;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .acp-hero h1 { font-size: 1.8rem; }
    .acp-hero { padding: 3rem 1rem; }
    .acp-section { padding: 3rem 0; }
    .acp-contact-grid { grid-template-columns: 1fr; }
    .acp-stats { gap: 1.5rem; }
    .acp-cta { padding: 3rem 1rem; }
    .acp-cta h2 { font-size: 1.6rem; }
}
@media (max-width: 480px) {
    .acp-hero h1 { font-size: 1.5rem; }
    .acp-grid { grid-template-columns: 1fr; }
}

/* ========================================
   ACERFI Navbar - ALL pages (moved from lib.php)
   ======================================== */
/* Hide Moove navbar, replace with ACERFI navbar */
.navbar.fixed-top { display: none !important; }
#page-wrapper { padding-top: 0 !important; }
#page.drawers { margin-top: 62px !important; }
.pagelayout-login #page { margin-top: 62px !important; }

/* ACERFI edit mode toggle */
.acerfi-edit-btn {
    display: flex; align-items: center; gap: 0.4rem;
    background: rgba(255,255,255,0.15); padding: 0.35rem 0.9rem;
    border-radius: 50px; border: 1px solid rgba(255,255,255,0.2);
    color: #fff; cursor: pointer; font-size: 0.82rem; font-weight: 600;
    transition: all 0.3s; text-decoration: none; white-space: nowrap;
}
.acerfi-edit-btn:hover { background: rgba(255,255,255,0.25); color: #fff; text-decoration: none; }
.acerfi-edit-btn.editing { background: #2e9e8f; color: #0a1645; border-color: #2e9e8f; }
.acerfi-edit-btn.editing:hover { background: #227e77; color: #0a1645; text-decoration: none; }

.acerfi-nav {
    background: #fff; border-bottom: 1px solid #e7ecf3;
    padding: 0 1.25rem; position: fixed; width: 100%; top: 0;
    z-index: 9999; box-shadow: 0 1px 3px rgba(27,42,74,.05);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
}
.acerfi-nav-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: .6rem; height: 62px; }
.acerfi-nav .nav-logo { height: 38px; filter: none; display: block; }
.acerfi-nav-links { display: flex; align-items: center; gap: .1rem; margin-left: .4rem; flex: 1; }
.acerfi-nav-links > a {
    color: #1b2a4a; text-decoration: none; font-weight: 500;
    font-size: .92rem; padding: .5rem .8rem; border-radius: 8px; transition: all .2s;
}
.acerfi-nav-links > a:hover { color: #15226d; background: #f5f7fa; }
.acerfi-nav-links a.active { color: #2e9e8f; }
.acerfi-nav-spacer { margin-left: auto; }
.acerfi-nav-links .nav-cta {
    background: #2e9e8f; color: #fff !important; padding: .5rem 1.2rem;
    border-radius: 8px; font-weight: 600; margin-left: .4rem;
}
.acerfi-nav-links .nav-cta:hover { background: #227e77; color: #fff !important; transform: translateY(-1px); }
.acerfi-nav-links .nav-premium {
    color: #2e9e8f !important; font-weight: 600; border: 1px solid rgba(46,158,143,0.4);
    border-radius: 8px; padding: .45rem 1rem; margin-left: .3rem; transition: all .2s;
}
.acerfi-nav-links .nav-premium:hover {
    background: #2e9e8f; color: #fff !important; transform: translateY(-1px);
}
/* Mega-menu "Formations" */
.acerfi-nav-item { position: relative; display: flex; align-items: center; }
.acerfi-mega-trigger { color: #1b2a4a; text-decoration: none; font-weight: 500; font-size: .92rem; padding: .5rem .8rem; border-radius: 8px; transition: all .2s; cursor: pointer; }
.acerfi-mega-trigger:hover, .acerfi-nav-item:hover .acerfi-mega-trigger { color: #15226d; background: #f5f7fa; }
.acerfi-mega-trigger .caret { font-size: .7rem; opacity: .6; margin-left: .2rem; }
.acerfi-mega { display: none; position: absolute; top: calc(100% + 6px); left: 0; background: #fff; border: 1px solid #e7ecf3; border-radius: 14px; box-shadow: 0 18px 44px rgba(27,42,74,.14); padding: 1.1rem; width: 520px; z-index: 10000; }
.acerfi-nav-item:hover .acerfi-mega, .acerfi-nav-item:focus-within .acerfi-mega { display: block; }
.acerfi-mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem .6rem; }
.acerfi-mega-grid a { display: block; padding: .5rem .7rem; border-radius: 8px; font-size: .9rem; font-weight: 500; color: #1b2a4a; text-decoration: none; }
.acerfi-mega-grid a:hover { background: #f5f7fa; color: #2e9e8f; }
.acerfi-mega-foot { border-top: 1px solid #e7ecf3; margin-top: .6rem; padding-top: .7rem; }
.acerfi-mega-foot a { color: #2d5ba8; font-weight: 600; font-size: .9rem; padding: 0 .7rem; text-decoration: none; }
.acerfi-mega-foot a:hover { color: #2e9e8f; }
.acerfi-nav-user {
    position: relative; display: flex; align-items: center; gap: .5rem;
    margin-left: .4rem; cursor: pointer; padding: .3rem .6rem; border-radius: 8px; transition: background .2s;
}
.acerfi-nav-user:hover { background: #f5f7fa; }
.acerfi-nav-user-avatar { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #e7ecf3; object-fit: cover; }
.acerfi-nav-user-name { color: #1b2a4a; font-weight: 600; font-size: .85rem; }
.acerfi-nav-user-arrow { color: #5b6b85; font-size: .7rem; transition: transform .3s; }
.acerfi-nav-user.open .acerfi-nav-user-arrow { transform: rotate(180deg); }
.acerfi-nav-dropdown {
    display: none; position: absolute; top: 100%; right: 0; background: #fff; border: 1px solid #e7ecf3;
    border-radius: 12px; box-shadow: 0 10px 40px rgba(27,42,74,.15);
    min-width: 210px; margin-top: .5rem; padding: .4rem 0; z-index: 10000;
}
.acerfi-nav-user.open .acerfi-nav-dropdown { display: block; }
.acerfi-nav-dropdown a {
    display: block; padding: .6rem 1.2rem; color: #1b2a4a !important;
    text-decoration: none; font-size: .9rem; font-weight: 500; transition: background .2s;
}
.acerfi-nav-dropdown a:hover { background: #e3f3f0; color: #2d5ba8 !important; }
.acerfi-nav-dropdown hr { margin: .3rem 0; border: none; border-top: 1px solid #e7ecf3; }
.acerfi-nav-toggle { display: none; background: none; border: none; color: #15226d; font-size: 1.5rem; cursor: pointer; padding: .3rem; margin-left: auto; }
@media (max-width: 860px) {
    .acerfi-nav-spacer { display: none; }
    .acerfi-nav-links { display: none; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e7ecf3; padding: .6rem; gap: .1rem; z-index: 9999; box-shadow: 0 18px 40px rgba(27,42,74,.12); max-height: calc(100vh - 62px); overflow-y: auto; }
    .acerfi-nav-links.open { display: flex; }
    .acerfi-nav-links > a { padding: .8rem 1rem; width: 100%; }
    .acerfi-nav-links .nav-cta { margin-left: 0; margin-top: .4rem; text-align: center; }
    .acerfi-nav-item { display: block; }
    .acerfi-mega-trigger { display: block; padding: .8rem 1rem; }
    .acerfi-mega { position: static; display: block; width: auto; border: none; box-shadow: none; padding: .2rem .4rem .6rem; }
    .acerfi-mega-grid { grid-template-columns: 1fr; }
    .acerfi-mega-foot { display: none; }
    .acerfi-nav-user { margin-left: 0; padding: .6rem 1rem; width: 100%; }
    .acerfi-nav-toggle { display: block; }
}

/* Accessibility: focus-visible */
.acerfi-nav-links a:focus-visible,
.acerfi-nav-links .nav-cta:focus-visible,
.acerfi-nav-toggle:focus-visible,
.acerfi-nav-user:focus-visible,
.acerfi-nav-dropdown a:focus-visible,
.acerfi-edit-btn:focus-visible {
    outline: 2px solid #2e9e8f;
    outline-offset: 2px;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid #2d5ba8;
    outline-offset: 2px;
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   ACERFI Dashboard - mydashboard (moved from lib.php)
   ======================================== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

.acd-dashboard { font-family: "Inter", system-ui, -apple-system, sans-serif; max-width: 100%; margin: 0 0 2rem; }

@keyframes acdFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.acd-animate { animation: acdFadeInUp .5s ease-out forwards; opacity: 0; }
.acd-animate-d1 { animation-delay: .1s; }
.acd-animate-d2 { animation-delay: .2s; }
.acd-animate-d3 { animation-delay: .3s; }
.acd-animate-d4 { animation-delay: .4s; }

/* Welcome Header */
.acd-welcome {
    background: linear-gradient(135deg, #2d5ba8 0%, #15226d 100%);
    color: #fff; border-radius: 16px; padding: 2rem; margin-bottom: 1.5rem;
    position: relative; overflow: hidden;
}
.acd-welcome::before {
    content: ""; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z' fill='%23fff' fill-opacity='.03'/%3E%3C/svg%3E");
}
.acd-welcome-inner {
    position: relative; z-index: 1; display: flex; align-items: center;
    gap: 1.5rem; flex-wrap: wrap;
}
.acd-avatar { width: 64px; height: 64px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); object-fit: cover; }
.acd-welcome-text h2 { font-size: 1.6rem; font-weight: 800; margin: 0 0 .25rem; color: #fff; }
.acd-welcome-text h2 span { color: #2e9e8f; }
.acd-welcome-date { font-size: .9rem; opacity: .8; margin: 0; }
.acd-chips { display: flex; gap: .75rem; margin-left: auto; flex-wrap: wrap; }
.acd-chip {
    background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2); border-radius: 50px;
    padding: .5rem 1.2rem; font-size: .85rem; font-weight: 600; color: #fff;
    display: flex; align-items: center; gap: .5rem;
}
.acd-chip-value { color: #2e9e8f; font-weight: 800; }

/* ISA Progress Card */
.acd-isa-card {
    background: #fff; border-radius: 16px; padding: 1.5rem 2rem; margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.06); border: 1px solid #e7ecf3;
}
.acd-isa-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: .5rem; }
.acd-isa-title { font-size: 1.1rem; font-weight: 700; color: #15226d; margin: 0; }
.acd-isa-modules { font-size: .85rem; color: #5b6b85; }
.acd-progress-bar-wrap { background: #e7ecf3; border-radius: 50px; height: 12px; overflow: hidden; margin-bottom: .75rem; }
.acd-progress-bar {
    height: 100%; border-radius: 50px;
    background: linear-gradient(90deg, #2d5ba8, #2e9e8f);
    transition: width 1.5s ease-out; width: 0;
}
.acd-isa-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.acd-isa-next { font-size: .85rem; color: #5b6b85; }
.acd-isa-next strong { color: #15226d; }

/* Shared buttons */
.acd-btn-gold {
    display: inline-block; padding: .6rem 1.8rem; border-radius: 50px;
    font-weight: 700; font-size: .9rem; text-decoration: none;
    background: #2e9e8f; color: #0a1645 !important; transition: all .3s; border: none; cursor: pointer;
}
.acd-btn-gold:hover {
    background: #227e77; transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46,158,143,.4); text-decoration: none; color: #0a1645 !important;
}
.acd-btn-dark {
    display: inline-block; padding: .7rem 2rem; border-radius: 50px;
    font-weight: 700; font-size: .95rem; text-decoration: none;
    background: #0a1645; color: #2e9e8f !important; transition: all .3s;
}
.acd-btn-dark:hover {
    background: #15226d; transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,.2); text-decoration: none; color: #2e9e8f !important;
}

/* Premium CTA Banner */
.acd-premium-cta {
    background: linear-gradient(135deg, #2e9e8f 0%, #227e77 100%);
    border-radius: 16px; padding: 1.5rem 2rem; margin-bottom: 1.5rem;
    position: relative; overflow: hidden;
}
.acd-premium-cta::before {
    content: ""; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z' fill='%231a1a2e' fill-opacity='.04'/%3E%3C/svg%3E");
}
.acd-premium-inner {
    position: relative; z-index: 1; display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.acd-premium-close {
    position: absolute; top: 12px; right: 14px; background: none; border: none;
    color: rgba(10,22,69,.5); font-size: 20px; cursor: pointer; z-index: 2; padding: 4px; line-height: 1;
}
.acd-premium-close:hover { color: #0a1645; }
.acd-premium-text { flex: 1; min-width: 200px; }
.acd-premium-text h3 { font-size: 1.15rem; font-weight: 800; color: #0a1645; margin: 0 0 .5rem; }
.acd-premium-text ul { list-style: none; padding: 0; margin: 0 0 .5rem; }
.acd-premium-text li { font-size: .85rem; color: #0a1645; padding: 2px 0; }
.acd-premium-price { font-size: 1.4rem; font-weight: 900; color: #0a1645; }

/* Catalog Highlights */
.acd-catalog { margin-bottom: 1.5rem; }
.acd-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.acd-section-title { font-size: 1.2rem; font-weight: 700; color: #15226d; margin: 0; }
.acd-see-all { color: #2d5ba8; font-weight: 600; text-decoration: none; font-size: .9rem; transition: color .3s; }
.acd-see-all:hover { color: #2e9e8f; text-decoration: none; }
.acd-catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.acd-catalog-card {
    background: #fff; border-radius: 16px; padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.06); border: 1px solid #e7ecf3;
    transition: all .3s; text-decoration: none !important; color: inherit !important; display: block;
}
.acd-catalog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(45,91,168,.12); }
.acd-catalog-card h4 {
    font-size: .95rem; font-weight: 700; color: #0a1645; margin: 0 0 .4rem;
    line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.acd-catalog-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.acd-provider-badge {
    padding: .15rem .6rem; border-radius: 20px; font-size: .7rem;
    font-weight: 700; text-transform: uppercase; color: #fff;
}
.acd-catalog-desc { font-size: .8rem; color: #5b6b85; margin: .4rem 0 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acd-stars { color: #2e9e8f; font-size: .85rem; }
.acd-free-badge { background: #059669; color: #fff; padding: .1rem .5rem; border-radius: 10px; font-size: .7rem; font-weight: 700; }

/* Quick Links Grid */
.acd-quicklinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.acd-quicklink {
    background: #fff; border-radius: 16px; padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.06); border: 1px solid #e7ecf3;
    text-decoration: none !important; color: inherit !important; transition: all .3s; display: block; border-top: 4px solid;
}
.acd-quicklink:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(45,91,168,.12); }
.acd-quicklink-icon { font-size: 2rem; margin-bottom: .75rem; }
.acd-quicklink h4 { font-size: .95rem; font-weight: 700; color: #15226d; margin: 0 0 .25rem; }
.acd-quicklink p { font-size: .82rem; color: #5b6b85; margin: 0; line-height: 1.5; }

/* Separator */
.acd-separator { border: none; border-top: 1px solid #e7ecf3; margin: .5rem 0 1.5rem; }

/* Responsive Dashboard */
@media (max-width: 768px) {
    .acd-welcome-inner { flex-direction: column; text-align: center; }
    .acd-chips { margin-left: 0; justify-content: center; }
    .acd-welcome-text h2 { font-size: 1.3rem; }
    .acd-premium-inner { flex-direction: column; text-align: center; }
    .acd-quicklinks { grid-template-columns: repeat(2, 1fr); }
    .acd-catalog-grid { grid-template-columns: 1fr; }
    .acd-isa-footer { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (max-width: 480px) {
    .acd-quicklinks { grid-template-columns: 1fr; }
    .acd-welcome { padding: 1.5rem; }
    .acd-chips { flex-direction: column; align-items: center; }
}
