/* ============================================================
   Zente Code — App download pop-up styles
   Self-contained overlay. Designed to match the site's dark,
   gold-accented theme without altering other layouts.
   ============================================================ */

.zc-app-popup {
    position: fixed;
    inset: 0;
    z-index: 20001; /* above preloader (20000) so it is always visible */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(6, 9, 16, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: zcAppFade .3s ease forwards;
}

.zc-app-popup-card {
    width: 100%;
    max-width: 380px;
    background: linear-gradient(180deg, #141c2e 0%, #0d1424 100%);
    border: 1px solid rgba(245, 184, 0, 0.28);
    border-radius: 22px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03);
    padding: 28px 24px 24px;
    text-align: center;
    animation: zcAppRise .45s cubic-bezier(.16, 1, .3, 1) forwards;
}

.zc-app-popup-hide {
    opacity: 0;
    transition: opacity .4s ease;
}

.zc-app-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 16px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(245, 184, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.zc-app-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.zc-app-title {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}
.zc-app-desc {
    font-size: .92rem;
    line-height: 1.55;
    color: #b9c0cf;
    margin: 0 0 20px;
}

.zc-app-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zc-app-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 13px 18px;
    border-radius: 14px;
    font-size: .96rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, background .25s ease, color .25s ease;
    -webkit-tap-highlight-color: transparent;
}
.zc-app-btn-primary {
    background: linear-gradient(135deg, #f5b800, #d99c00);
    color: #1a1608;
    border: 0;
    box-shadow: 0 12px 28px rgba(245, 184, 0, 0.35);
}
.zc-app-btn-primary:hover, .zc-app-btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(245, 184, 0, 0.45);
}
.zc-app-btn-ghost {
    background: transparent;
    color: #c3c9d6;
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.zc-app-btn-ghost:hover, .zc-app-btn-ghost:focus {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.zc-app-btn:active { transform: scale(.97); }

/* iOS / manual "Add to Home Screen" instructions */
.zc-app-instruction {
    margin-top: 18px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(245, 184, 0, 0.06);
    border: 1px dashed rgba(245, 184, 0, 0.35);
    text-align: left;
}
.zc-app-ios-title {
    font-size: .95rem;
    font-weight: 700;
    color: #f5b800;
    margin: 0 0 10px;
}
.zc-app-ios-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.zc-app-ios-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .86rem;
    line-height: 1.4;
    color: #d7dce6;
}
.zc-app-ios-steps li span {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--grad-gold, linear-gradient(135deg, #f5b800, #d99c00));
    color: #1a1608;
    font-size: .75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.zc-app-ios-steps li i { color: #f5b800; margin-left: auto; font-size: 1rem; }
.zc-app-ios-steps li b { color: #fff; }

@keyframes zcAppFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes zcAppRise {
    from { opacity: 0; transform: translateY(24px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 575.98px) {
    .zc-app-popup { padding: 14px; }
    .zc-app-popup-card { padding: 24px 18px 20px; }
    .zc-app-icon { width: 68px; height: 68px; }
}
