/* ============================================================
   Carpe Diem v5 — Footer styles
   assets/css/footer.css
   Matches includes/footer.php (cd-footer-* class system)
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
------------------------------------------------------------ */
:root {
    --cd-purple:       #3d2463;
    --cd-purple-light: #68458f;
    --cd-gold:         #a77c3e;
    --cd-gold-light:   #e3c995;
    --cd-gold-dark:    #8f6a34;
    --cd-dark:         #28163f;
    --cd-ink:          #263129;
    --cd-muted:        #6e746d;
    --cd-line:         #e5e6de;
    --cd-line-soft:    #edeee6;
    --cd-cream:        #faf9f5;
    --cd-cream-dark:   #eeede4;
    --cd-rose:         #c96a6a;
    --cd-green:        #22c55e;
    --cd-green-dark:   #16a34a;
    --cd-red:          #ef4444;
}

/* ------------------------------------------------------------
   2. FOOTER ROOT + PAGE FLEX
------------------------------------------------------------ */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main,
.cd-main {
    flex: 1 0 auto;
}

.cd-footer {
    position: relative;
    margin-top: auto;
    flex-shrink: 0;
    background: var(--cd-cream);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--cd-ink);
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #FF9933 0%, #eae5db 50%, #138808 100%) 1;
}

/* ------------------------------------------------------------
   3. MAIN FOOTER SECTION
------------------------------------------------------------ */
.cd-footer-main {
    padding: 64px 24px 40px;
    background: var(--cd-cream);
}
@media (min-width: 768px) {
    .cd-footer-main { padding: 80px 40px 48px; }
}

.cd-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.cd-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 768px) {
    .cd-footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 48px;
    }
}
@media (min-width: 768px) and (max-width: 900px) {
    .cd-footer-grid { gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cd-footer-brand { grid-column: 1 / -1; min-width: 0; }
    .cd-footer-col, .cd-footer-col ul li a { min-width: 0; overflow-wrap: anywhere; }
}

/* ------------------------------------------------------------
   4. BRAND COLUMN
------------------------------------------------------------ */
.cd-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cd-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease;
}
.cd-footer-logo:hover { transform: translateY(-2px); }

.cd-footer-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform .3s ease;
}
.cd-footer-logo:hover .cd-footer-logo-img { transform: scale(1.05); }

.cd-footer-logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.cd-footer-logo-text strong {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    color: var(--cd-purple);
    letter-spacing: -0.01em;
}
.cd-footer-logo-text small {
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.3em;
    color: var(--cd-muted);
    margin-top: 4px;
    text-transform: uppercase;
}

.cd-footer-tagline {
    font-size: 13px;
    color: var(--cd-muted);
    line-height: 1.7;
    max-width: 340px;
    margin: 0;
}

/* Contact list */
.cd-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cd-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--cd-ink);
    line-height: 1.5;
}
.cd-footer-contact li .material-symbols-outlined {
    font-size: 18px;
    color: var(--cd-purple);
    flex-shrink: 0;
    margin-top: 1px;
}
.cd-footer-contact li a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}
.cd-footer-contact li a:hover { color: var(--cd-purple); }

/* Social icons */
.cd-footer-social-block {
    display: grid;
    gap: 13px;
}

.cd-footer-social-title {
    margin: 0;
    color: var(--cd-purple);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.cd-footer-social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
}

.cd-footer-social-icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(61,36,99,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #68736c;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(30,50,38,.06);
    transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.cd-footer-social-icon svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.cd-footer-social-icon.is-unconfigured {
    background: #f0f0e9;
    border-color: #e1e2d9;
    color: #a0a69e;
    opacity: .78;
}

.cd-footer-social a:hover,
.cd-footer-social a:focus-visible {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(30,50,38,.15);
    outline: none;
}

.cd-footer-social a.is-facebook:hover,
.cd-footer-social a.is-facebook:focus-visible {
    background: #1877f2;
    border-color: #1877f2;
}

.cd-footer-social a.is-instagram:hover,
.cd-footer-social a.is-instagram:focus-visible {
    background: linear-gradient(135deg, #7c36aa, #d63d78 58%, #f3a33b);
    border-color: #bd4d88;
}

.cd-footer-social a.is-x:hover,
.cd-footer-social a.is-x:focus-visible {
    background: #171717;
    border-color: #171717;
}

.cd-footer-social a.is-youtube:hover,
.cd-footer-social a.is-youtube:focus-visible {
    background: #ff0033;
    border-color: #ff0033;
}

.cd-footer-social a.is-whatsapp:hover,
.cd-footer-social a.is-whatsapp:focus-visible {
    background: #1da851;
    border-color: #1da851;
}

.cd-footer-apps {
    display: grid;
    gap: 10px;
    margin-top: 27px;
}

.cd-footer-apps-heading {
    color: var(--cd-purple);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}

.cd-footer-app-badge {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 9px;
    color: #ffffff;
    background: #19211e;
    text-align: left;
    opacity: .82;
    text-decoration: none;
    transition: opacity .2s ease, transform .2s ease;
}

.cd-footer-app-badge:hover,
.cd-footer-app-badge:focus-visible {
    opacity: 1;
    transform: translateY(-2px);
}

.cd-footer-app-logo {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
}

.cd-footer-apple-logo {
    fill: #ffffff;
}

.cd-footer-app-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.cd-footer-app-copy small {
    color: rgba(255,255,255,.76);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1.1;
}

.cd-footer-app-copy strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.cd-footer-coming-soon {
    margin-left: auto;
    padding: 4px 6px;
    border: 1px solid rgba(214,185,117,.36);
    border-radius: 999px;
    color: #f0d99e;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
    white-space: nowrap;
}

/* ------------------------------------------------------------
   5. LINK COLUMNS
------------------------------------------------------------ */
.cd-footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cd-purple);
    margin: 0 0 18px;
}

.cd-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.cd-footer-col ul li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--cd-ink);
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}
.cd-footer-col ul li a .material-symbols-outlined {
    font-size: 14px;
    opacity: .5;
    transition: opacity .2s ease, transform .2s ease;
}
.cd-footer-col ul li a:hover {
    color: var(--cd-purple);
    transform: translateX(3px);
}
.cd-footer-col ul li a:hover .material-symbols-outlined {
    opacity: 1;
    transform: translateX(2px);
}

/* ------------------------------------------------------------
   6. NEWSLETTER ROW
------------------------------------------------------------ */
.cd-footer-newsletter {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--cd-line);
    max-width: 520px;
}
@media (min-width: 768px) {
    .cd-footer-newsletter {
        margin-top: 56px;
        margin-left: auto;
        margin-right: 0;
        max-width: 460px;
    }
}

.cd-footer-nl-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.cd-footer-nl-input {
    flex: 1;
    padding: 13px 18px;
    background: #fff;
    border: 1px solid var(--cd-line);
    border-radius: 10px;
    font-size: 13px;
    color: var(--cd-ink);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.cd-footer-nl-input::placeholder { color: #9ca3af; }
.cd-footer-nl-input:focus {
    border-color: var(--cd-purple);
    box-shadow: 0 0 0 3px rgba(61, 36, 99, .1);
}

.cd-footer-nl-btn {
    padding: 13px 26px;
    background: linear-gradient(135deg, var(--cd-purple) 0%, var(--cd-purple-light) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .25s ease, filter .2s ease;
    box-shadow: 0 6px 16px -8px rgba(61, 36, 99, .5);
}
.cd-footer-nl-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(61, 36, 99, .6);
    filter: brightness(1.08);
}
.cd-footer-nl-btn:active { transform: translateY(0); }
.cd-footer-nl-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

.cd-footer-nl-msg {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    transition: opacity .25s ease;
}
.cd-footer-nl-msg.hidden { display: none !important; }
.cd-footer-nl-msg.success {
    background: #ecf7ee;
    color: #2d6a3f;
    border: 1px solid #c8e6d1;
}
.cd-footer-nl-msg.error {
    background: #fdecec;
    color: #a13636;
    border: 1px solid #f5c6c6;
}

/* ------------------------------------------------------------
   7. BOTTOM BAR (copyright + Proudly Indian + payments)
------------------------------------------------------------ */
.cd-footer-bottom {
    background: #fff;
    border-top: 1px solid var(--cd-line);
    padding: 20px 24px;
}
@media (min-width: 768px) {
    .cd-footer-bottom { padding: 22px 40px; }
}

.cd-footer-bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: center;
}
@media (min-width: 900px) {
    .cd-footer-bottom-inner {
        flex-direction: row;
        text-align: left;
        gap: 24px;
    }
}

.cd-footer-copy {
    font-size: 12.5px;
    color: var(--cd-muted);
    margin: 0;
}

.cd-footer-proudly {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.cd-footer-proudly span {
    font-size: 11.5px;
    font-weight: 900;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--cd-ink);
}
.cd-footer-proudly img {
    height: 26px;
    width: auto;
    object-fit: contain;
}

.cd-footer-payments {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.cd-footer-pay-label {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cd-muted);
}

/* ------------------------------------------------------------
   PAYMENT STRIP — critical fix: caps every logo to 20px
------------------------------------------------------------ */
.cd-payment-strip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--cd-line);
    border-radius: 8px;
    padding: 5px 10px;
    height: 36px;
    overflow: hidden;
}
.cd-payment-strip img {
    display: block !important;
    height: 18px !important;
    width: auto !important;
    max-height: 18px !important;
    max-width: 42px !important;
    object-fit: contain;
    opacity: .85;
    transition: opacity .2s ease, transform .2s ease;
}
.cd-payment-strip img:hover {
    opacity: 1;
    transform: scale(1.08);
}

/* ------------------------------------------------------------
   8. INDIA SKYLINE IMAGE
------------------------------------------------------------ */
.cd-footer-skyline {
    width: 100%;
    overflow: hidden;
    background: var(--cd-cream);
    line-height: 0;
}
.cd-footer-skyline img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: cover;
    object-position: bottom center;
}

/* ------------------------------------------------------------
   9. MOBILE BOTTOM TAB NAV
------------------------------------------------------------ */
#mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--cd-line);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: .375rem .5rem;
    padding-bottom: max(.5rem, env(safe-area-inset-bottom));
    z-index: 100;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .05);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}
@media (min-width: 768px) {
    #mobile-bottom-nav { display: none; }
}

#mobile-bottom-nav a,
#mobile-bottom-nav button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    gap: 3px;
    padding: 5px 2px;
    min-height: 48px;
    min-width: 0;
    border-radius: 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    color: #9ca3af;
    transition: color .2s ease, background-color .2s ease, transform .15s ease;
    -webkit-tap-highlight-color: transparent;
}
#mobile-bottom-nav a:active,
#mobile-bottom-nav button:active { transform: scale(.94); }

#mobile-bottom-nav a:focus-visible,
#mobile-bottom-nav button:focus-visible {
    outline: 2px solid rgba(61, 36, 99, .5);
    outline-offset: -2px;
}

#mobile-bottom-nav .cd-bottom-nav-icon {
    width: 36px;
    height: 28px;
    border: 1px solid #e9e7e1;
    border-radius: 10px;
    background: #faf9f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

#mobile-bottom-nav a.is-active .cd-bottom-nav-icon,
#mobile-bottom-nav button[aria-expanded="true"] .cd-bottom-nav-icon {
    color: var(--cd-purple);
    border-color: rgba(61, 36, 99, .18);
    background: #f0eaf6;
}

#mobile-bottom-nav .material-symbols-outlined {
    font-size: 21px;
    line-height: 1;
}

#mobile-bottom-nav > a > span:last-child,
#mobile-bottom-nav > button > span:last-child {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
}

#mobile-bottom-nav a.is-active {
    color: var(--cd-purple);
}

/* ------------------------------------------------------------
   10. MOBILE MENU PANEL
------------------------------------------------------------ */
#mobile-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 5rem;
    z-index: 90;
    background: rgba(255, 255, 255, .98);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    animation: cdMenuSlide .3s cubic-bezier(.2, .8, .2, 1);
}
#mobile-menu-panel.hidden { display: none !important; }
@media (min-width: 768px) {
    #mobile-menu-panel { display: none !important; }
}

@keyframes cdMenuSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Head */
.cd-mm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--cd-line-soft);
    flex-shrink: 0;
}
.cd-mm-head-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cd-mm-head-logo img {
    height: 34px;
    width: auto;
    object-fit: contain;
}
.cd-mm-head-logo h3 {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--cd-purple);
    margin: 0;
    line-height: 1;
}
.cd-mm-head-logo span {
    display: block;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.24em;
    color: var(--cd-muted);
    margin-top: 3px;
}
#mobile-menu-close {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--cd-cream-dark);
    border: none;
    color: var(--cd-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
#mobile-menu-close:hover {
    background: #eae5db;
    color: var(--cd-ink);
}
#mobile-menu-close .material-symbols-outlined {
    font-size: 18px;
}

/* Patron chip */
.cd-mm-user { padding: 16px 20px 4px; }

.cd-mm-user-chip,
.cd-mm-guest {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(61, 36, 99, .1);
    background: rgba(61, 36, 99, .04);
}
.cd-mm-guest {
    background: linear-gradient(90deg, #edf3eb 0%, #f5f0e4 100%);
}

.cd-mm-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--cd-purple);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.cd-mm-user-info { flex: 1; min-width: 0; }
.cd-mm-user-info p {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--cd-ink);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cd-mm-user-info a {
    font-size: 10.5px;
    color: var(--cd-purple);
    text-decoration: none;
    font-weight: 600;
}
.cd-mm-user-info a:hover { text-decoration: underline; }

.cd-mm-logout {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--cd-red);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    flex-shrink: 0;
    transition: background-color .2s ease;
}
.cd-mm-logout:hover { background: rgba(239, 68, 68, .08); }

.cd-mm-guest .title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--cd-purple);
    margin: 0 0 2px;
}
.cd-mm-guest .sub {
    font-size: 10.5px;
    color: var(--cd-muted);
    margin: 0;
}
.cd-mm-signin {
    background: var(--cd-purple);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    flex-shrink: 0;
    transition: background-color .2s ease, transform .15s ease;
}
.cd-mm-signin:hover { background: var(--cd-purple-light); }
.cd-mm-signin:active { transform: scale(.96); }

/* Sections */
.cd-mm-section {
    padding: 16px 20px 4px;
}
.cd-mm-section-border {
    border-top: 1px solid var(--cd-line-soft);
    margin-top: 12px;
    padding-top: 16px;
}
.cd-mm-label {
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cd-muted);
    margin-bottom: 8px;
    padding-left: 10px;
}

/* Explore links */
.cd-mm-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--cd-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background-color .25s ease, color .25s ease, transform .15s ease;
}
.cd-mm-link > span:first-child {
    color: var(--cd-purple);
    font-size: 20px;
}
.cd-mm-link > span:nth-child(2) { flex: 1; }

.cd-mm-link:hover {
    background: var(--cd-purple);
    color: #fff;
}
.cd-mm-link:hover > span:first-child { color: #fff; }
.cd-mm-link:hover .cd-mm-arrow { opacity: 1; }

.cd-mm-arrow {
    font-size: 16px !important;
    opacity: .4;
    transition: opacity .2s ease;
}

/* Account & Help grid */
.cd-mm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.cd-mm-tile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--cd-cream-dark);
    color: var(--cd-ink);
    text-decoration: none;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.cd-mm-tile .material-symbols-outlined {
    font-size: 18px;
    color: var(--cd-purple);
}
.cd-mm-tile:hover {
    background: rgba(61, 36, 99, .06);
    color: var(--cd-purple);
}
.cd-mm-tile:active { transform: scale(.97); }

/* Policy row */
.cd-mm-policies {
    padding: 20px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 10.5px;
    color: var(--cd-muted);
    border-top: 1px solid var(--cd-line-soft);
}
.cd-mm-policies a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: color .2s ease;
}
.cd-mm-policies a:hover { color: var(--cd-purple); }
.cd-mm-policies span { opacity: .5; }

/* ------------------------------------------------------------
   11. FLOATING CHAT BUTTONS (FABs)
------------------------------------------------------------ */
.cd-footer-fabs {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    z-index: 50;
}
@media (min-width: 768px) {
    .cd-footer-fabs { bottom: 2rem; }
}

.cd-fab {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .35);
    transition: transform .25s cubic-bezier(.2, .8, .2, 1),
                box-shadow .25s ease,
                background-color .25s ease;
    -webkit-tap-highlight-color: transparent;
}
.cd-fab svg { width: 24px; height: 24px; }
.cd-fab .material-symbols-outlined { font-size: 22px; }

.cd-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .4);
}
.cd-fab:active { transform: scale(.96); }

.cd-fab-whatsapp {
    background: var(--cd-green);
    color: #fff;
}
.cd-fab-whatsapp:hover { background: var(--cd-green-dark); }

.cd-fab-chat {
    background: #fff;
    color: var(--cd-purple);
    border: 1px solid var(--cd-line);
}
.cd-fab-chat:hover { background: var(--cd-cream-dark); }

.cd-fab-chat::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    pointer-events: none;
    animation: cdFabPulse 2.4s infinite;
}
@keyframes cdFabPulse {
    0%   { box-shadow: 0 0 0 0 rgba(61, 36, 99, .35); }
    70%  { box-shadow: 0 0 0 12px rgba(61, 36, 99, 0); }
    100% { box-shadow: 0 0 0 0 rgba(61, 36, 99, 0); }
}

/* ------------------------------------------------------------
   12. SUPPORT CHAT MODAL
------------------------------------------------------------ */
#supportChat {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    width: 20rem;
    max-width: calc(100vw - 2rem);
    background: #fff;
    border: 1px solid var(--cd-line);
    border-radius: 22px;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .28);
    z-index: 110;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: cdChatIn .28s cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 768px) {
    #supportChat { width: 24rem; }
}
#supportChat.hidden { display: none !important; }

@keyframes cdChatIn {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.cd-chat-head {
    background: var(--cd-purple);
    color: #fff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.cd-chat-head-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cd-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--cd-gold);
    color: var(--cd-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}
.cd-chat-title {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0;
}
.cd-chat-status {
    font-size: 10px;
    color: rgba(255, 255, 255, .7);
    margin: 2px 0 0;
}
.cd-chat-head button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
    padding: 4px;
    transition: color .2s ease;
}
.cd-chat-head button:hover { color: #fff; }
.cd-chat-head button .material-symbols-outlined { font-size: 20px; }

.cd-chat-messages {
    flex: 1;
    padding: 16px;
    background: var(--cd-cream);
    font-size: 13.5px;
    max-height: 20rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cd-chat-messages::-webkit-scrollbar { width: 6px; }
.cd-chat-messages::-webkit-scrollbar-track { background: transparent; }
.cd-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(61, 36, 99, .18);
    border-radius: 999px;
}
.cd-chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(61, 36, 99, .3);
}

.cd-chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    line-height: 1.5;
    animation: cdMsgIn .25s ease;
}
.cd-chat-msg-rich { max-width: 94%; }
.cd-chat-msg-rich p { margin: 0; }
.cd-chat-related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.cd-chat-related-links a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid var(--cd-line);
    border-radius: 999px;
    color: var(--cd-purple);
    background: var(--cd-cream);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}
.cd-chat-related-links a:hover,
.cd-chat-related-links a:focus-visible {
    border-color: var(--cd-purple);
    background: var(--cd-cream-dark);
}
.cd-chat-ticket-trigger {
    margin-top: 10px;
    padding: 0;
    border: 0;
    color: var(--cd-purple);
    background: transparent;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.cd-chat-ticket-trigger:focus-visible {
    outline: 2px solid var(--cd-gold);
    outline-offset: 2px;
}
@keyframes cdMsgIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cd-chat-msg-bot {
    background: #fff;
    border: 1px solid var(--cd-line);
    border-top-left-radius: 4px;
    color: var(--cd-ink);
    align-self: flex-start;
}
.cd-chat-msg-user {
    background: var(--cd-purple);
    color: #fff;
    border-top-right-radius: 4px;
    align-self: flex-end;
}

.cd-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-self: flex-start;
}
.cd-chat-suggestions button {
    border: 1px solid var(--cd-line);
    border-radius: 999px;
    background: #fff;
    color: var(--cd-purple);
    padding: 7px 10px;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}
.cd-chat-suggestions button:hover,
.cd-chat-suggestions button:focus-visible {
    background: var(--cd-cream-dark);
    border-color: var(--cd-purple);
}
.cd-chat-suggestions button:focus-visible,
.cd-chat-form button:focus-visible,
.cd-chat-head button:focus-visible,
.cd-fab-chat:focus-visible {
    outline: 2px solid var(--cd-gold);
    outline-offset: 2px;
}

.cd-chat-form {
    display: flex;
    gap: 8px;
    padding: 14px;
    background: #fff;
    border-top: 1px solid var(--cd-line);
}
#chatInput {
    flex: 1;
    padding: 11px 14px;
    background: var(--cd-cream);
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13.5px;
    color: var(--cd-ink);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
#chatInput:focus {
    border-color: var(--cd-purple);
    box-shadow: 0 0 0 3px rgba(61, 36, 99, .1);
}
.cd-chat-form button {
    background: var(--cd-purple);
    color: #fff;
    border: none;
    padding: 11px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s ease, transform .15s ease;
}
.cd-chat-form button:hover  { background: var(--cd-purple-light); }
.cd-chat-form button:active { transform: scale(.94); }
.cd-chat-form button .material-symbols-outlined { font-size: 18px; }

.cd-chat-ticket-form {
    display: grid;
    gap: 7px;
    max-height: 45vh;
    overflow-y: auto;
    padding: 13px 15px;
    border-top: 1px solid var(--cd-line);
    background: #fff;
    font-size: 12px;
}
.cd-chat-ticket-form[hidden] { display: none; }
.cd-chat-ticket-form > strong {
    margin-bottom: 3px;
    color: var(--cd-purple);
    font-size: 12px;
}
.cd-chat-ticket-form label {
    color: var(--cd-ink);
    font-size: 11px;
    font-weight: 700;
}
.cd-chat-ticket-form input,
.cd-chat-ticket-form textarea {
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--cd-line);
    border-radius: 9px;
    color: var(--cd-ink);
    background: var(--cd-cream);
    font: inherit;
}
.cd-chat-ticket-form textarea {
    resize: vertical;
}
.cd-chat-ticket-form input:focus,
.cd-chat-ticket-form textarea:focus {
    border-color: var(--cd-purple);
    outline: 2px solid rgba(61, 36, 99, .12);
}
.cd-chat-ticket-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 12px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--cd-purple);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.cd-chat-ticket-submit:hover { background: var(--cd-purple-light); }
.cd-chat-ticket-submit:disabled { cursor: wait; opacity: .7; }
.cd-chat-ticket-status {
    margin: 0;
    color: var(--cd-muted);
    font-size: 11px;
}

/* ------------------------------------------------------------
   13. APP DOWNLOAD POPUP
------------------------------------------------------------ */
#appDownloadPopup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 120;
    animation: cdPopupFade .25s ease;
}
#appDownloadPopup.hidden { display: none !important; }

@keyframes cdPopupFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.cd-popup-card {
    background: #fff;
    border-radius: 20px;
    max-width: 22rem;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 32px 64px -24px rgba(0, 0, 0, .5);
    animation: cdPopupScale .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes cdPopupScale {
    from { opacity: 0; transform: scale(.94) translateY(8px); }
    to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.cd-popup-head {
    background: linear-gradient(135deg, var(--cd-purple) 0%, var(--cd-purple-light) 100%);
    padding: 28px 24px 22px;
    text-align: center;
    color: #fff;
    position: relative;
}
.cd-popup-head button {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
    padding: 4px;
    transition: color .2s ease;
}
.cd-popup-head button:hover { color: #fff; }
.cd-popup-head button .material-symbols-outlined { font-size: 20px; }

.cd-popup-logo {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.cd-popup-head h3 {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 4px;
}
.cd-popup-head p {
    font-size: 11px;
    color: rgba(255, 255, 255, .7);
    margin: 0;
}

.cd-popup-body {
    padding: 24px;
    text-align: center;
}
.cd-popup-body > p:first-child {
    font-size: 13px;
    color: var(--cd-muted);
    line-height: 1.6;
    margin: 0 0 20px;
}

.cd-popup-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cd-purple);
    color: #fff;
    padding: 13px 30px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 12px 24px -8px rgba(61, 36, 99, .4);
    transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease;
}
.cd-popup-cta:hover {
    background: var(--cd-purple-light);
    transform: translateY(-1px);
    box-shadow: 0 16px 32px -10px rgba(61, 36, 99, .5);
}
.cd-popup-cta:active { transform: translateY(0); }
.cd-popup-cta .material-symbols-outlined { font-size: 18px; }

.cd-popup-version {
    font-size: 10px;
    color: var(--cd-muted);
    margin: 16px 0 0;
    letter-spacing: 0.06em;
}

/* ------------------------------------------------------------
   14. MATERIAL SYMBOLS — FILLED VARIANT
------------------------------------------------------------ */
.cd-filled {
    font-variation-settings:
        'FILL' 1,
        'wght' 600,
        'GRAD' 0,
        'opsz' 24;
}

/* ------------------------------------------------------------
   15. UTILITY
------------------------------------------------------------ */
.hidden { display: none !important; }

/* ------------------------------------------------------------
   16. RESPONSIVE — MOBILE
------------------------------------------------------------ */
@media (max-width: 767px) {
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0));
    }

    .cd-footer-main {
        display: block;
        padding: 14px 12px 12px;
    }

    .cd-footer-grid {
        display: block;
    }

    .cd-footer-brand {
        align-items: center;
        gap: 0;
    }

    .cd-footer-brand > :not(.cd-footer-social-block),
    .cd-footer-col,
    .cd-footer-newsletter,
    .cd-footer-skyline { display: none; }

    .cd-footer-apps { display: none; }

    .cd-footer-social-block {
        justify-items: center;
        gap: 9px;
    }

    .cd-footer-social {
        justify-content: center;
        gap: 9px;
    }

    .cd-footer-social-icon {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .cd-footer-bottom { padding: 10px 12px; }
    .cd-footer-bottom-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-align: center;
    }
    .cd-footer-copy {
        order: 0;
        font-size: 10px;
        line-height: 1.35;
        text-align: center;
        width: 100%;
    }
    .cd-footer-proudly {
        order: 1;
        justify-content: center;
        gap: 5px;
        min-width: 0;
    }
    .cd-footer-proudly span {
        font-size: 8px;
        letter-spacing: .04em;
        white-space: nowrap;
    }
    .cd-footer-proudly img { height: 20px; }
    .cd-footer-payments {
        order: 2;
        justify-content: center;
        flex-direction: row;
        gap: 8px;
        min-width: 0;
    }
    .cd-footer-pay-label { font-size: 8px; letter-spacing: .08em; }
    .cd-payment-strip {
        gap: 5px;
        height: 28px;
        max-width: 100%;
        padding: 3px 5px;
    }
    .cd-payment-strip img {
        height: 14px !important;
        max-height: 14px !important;
        max-width: 30px !important;
    }

    .cd-footer-fabs {
        bottom: calc(80px + env(safe-area-inset-bottom, 0));
        right: 1rem;
    }

    #supportChat {
        bottom: calc(80px + env(safe-area-inset-bottom, 0));
        left: 12px;
        right: 12px;
        width: auto;
        max-height: calc(100vh - 180px);
    }

    #mobile-menu-panel {
        bottom: calc(64px + env(safe-area-inset-bottom, 0));
        z-index: 1100;
    }

    .cd-mm-head { position: sticky; top: 0; z-index: 1; background: rgba(255,255,255,.98); padding-top: max(16px,env(safe-area-inset-top, 0)); }
}

@media (max-width: 420px) {
    .cd-footer-bottom { padding-right: 8px; padding-left: 8px; }
    .cd-footer-bottom-inner { gap: 7px 6px; }
    .cd-payment-strip { gap: 4px; padding-right: 4px; padding-left: 4px; }
    .cd-payment-strip img { max-width: 27px !important; }
}

@media (min-width: 768px) {
    body { padding-bottom: 0; }
}

/* ------------------------------------------------------------
   17. ACCESSIBILITY — REDUCED MOTION
------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    #mobile-menu-panel,
    #supportChat,
    .cd-chat-msg,
    #appDownloadPopup,
    .cd-popup-card,
    .cd-fab-chat::after {
        animation: none !important;
    }
    .cd-fab,
    .cd-footer-social a,
    .cd-footer-nl-btn,
    .cd-mm-link,
    .cd-mm-tile,
    #mobile-bottom-nav a,
    #mobile-bottom-nav button {
        transition: none !important;
    }
}

/* ------------------------------------------------------------
   18. PRINT
------------------------------------------------------------ */
@media print {
    #mobile-bottom-nav,
    #mobile-menu-panel,
    #supportChat,
    #appDownloadPopup,
    .cd-footer-fabs {
        display: none !important;
    }
}