﻿/* ============================================================
   QR Code Modal — زر QR فى التوب بار لفتح الموقع من الموبايل
   ============================================================ */

.qr-modal-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #ffffff;
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, .08));
    margin-bottom: 16px;
}

    .qr-modal-code canvas,
    .qr-modal-code img {
        display: block;
    }

.qr-modal-url {
    font-weight: 600;
    color: var(--accent-light, #f0a830);
    word-break: break-all;
    margin-bottom: 6px;
}

.qr-modal-hint {
    color: #6c757d;
    font-size: .9rem;
    margin-bottom: 0;
}

@media (min-width: 576px) {
    #siteQrModal .modal-dialog {
        max-width: 420px;
    }
}

/* ── مودال التطبيق: نفس تصميم صفحة /appstore ── */
.qr-app-content {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}

.qr-app-close {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    z-index: 3;
    opacity: .85;
}

.qr-app-head {
    position: relative;
    padding: 30px 22px 22px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at 85% 0%, rgba(240, 168, 48, .30), transparent 55%),
        radial-gradient(circle at 10% 100%, rgba(56, 120, 196, .35), transparent 55%),
        linear-gradient(160deg, #081628 0%, #0f2640 60%, #16365a 100%);
}

.qr-app-emblem {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #f0a830;
    background: linear-gradient(145deg, #0f2640, #081628);
    border: 3px solid rgba(255, 255, 255, .9);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}

.qr-app-title {
    margin: 0 0 6px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff;
}

.qr-app-desc {
    margin: 0 0 4px;
    font-size: .92rem;
    color: rgba(255, 255, 255, .85);
}

.qr-app-company {
    font-size: .8rem;
    color: rgba(255, 255, 255, .62);
}

.qr-app-body {
    padding: 22px 22px 24px;
    background: #fff;
}

.qr-store-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.qr-store-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(8, 22, 40, .22);
    transition: transform .18s ease, box-shadow .18s ease;
}

.qr-store-btn:hover,
.qr-store-btn:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(8, 22, 40, .3);
}

.qr-store-btn > i {
    font-size: 28px;
    width: 32px;
    text-align: center;
}

.qr-store-btn span {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.25;
}

.qr-store-btn small {
    font-size: .72rem;
    opacity: .8;
}

.qr-store-btn b {
    font-size: 1.05rem;
    font-weight: 800;
}

.qr-store-apple { background: linear-gradient(135deg, #1c1c1e, #000); }
.qr-store-google { background: linear-gradient(135deg, #12805c, #0a5c42); }
.qr-store-web { background: linear-gradient(135deg, #c8860a, #a86d05); }
