/* =========================================
   LOCATION QR SCANNER — PREMIUM UI
   ========================================= */
.da-wrapper {
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    justify-content: center;
    padding: clamp(0px, 5vw, 0px) 20px;
}

.da-panel {
    position: relative;                
    width: 100%;
    max-width: 1200px;
    border-radius: 28px;
    padding: clamp(28px, 5vw, 56px);
}

/* ---------- OPTIONS BAR ---------- */
.options-bar { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 12px 20px; display: flex; align-items: center; gap: 16px; margin-bottom: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.02); flex-wrap: wrap; }

.ob-lbl { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.f-btn { background: transparent; border: none; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--text-muted); outline: none; cursor: pointer; padding: 6px 12px; border-radius: 8px; transition: all 0.2s; }
.f-btn:hover { background: var(--bg-body); color: var(--text-main); }
.f-btn.on { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.ob-sep { width: 1px; height: 24px; background: var(--border-color); margin: 0 4px; }

.dir-toggle { display: flex; align-items: center; gap: 8px; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 8px; padding: 6px 12px; font-size: 11px; font-weight: 800; color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.dir-toggle:hover { border-color: #10b981; }
.d-ltr, .d-rtl { transition: color 0.2s; }
.dir-toggle.rtl .d-rtl { color: #10b981; }
.dir-toggle:not(.rtl) .d-ltr { color: #10b981; }

.usage-meter { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.usage-pips { display: flex; gap: 4px; }
.pip { width: 8px; height: 8px; border-radius: 50%; background: var(--border-color); }
.pip.used { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
.usage-lbl { font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; color: #10b981; }

/* ---------- ORBITAL WORKSPACE ---------- */
.orbital-workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
@media (max-width: 900px) { .orbital-workspace { grid-template-columns: 1fr; } }

/* Uplink Panel (Left) */
.uplink-panel { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 24px; padding: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.02); display: flex; flex-direction: column; gap: 20px; }
.up-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 16px; margin-bottom: 8px; }
.up-title { font-size: 16px; font-weight: 900; color: var(--text-main); display: flex; align-items: center; gap: 8px; }
.up-title i { color: #10b981; }

.gps-btn { background: rgba(16,185,129,0.1); color: #10b981; border: 1px solid rgba(16,185,129,0.3); border-radius: 8px; padding: 6px 12px; font-size: 11px; font-weight: 800; display: flex; align-items: center; gap: 6px; cursor: pointer; transition: all 0.2s; }
.gps-btn:hover:not(:disabled) { background: #10b981; color: #fff; }
.gps-btn.loading { opacity: 0.7; cursor: wait; }
.gps-btn.loading i { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.coord-group { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.input-wrap { display: flex; flex-direction: column; gap: 6px; }
.input-label { font-size: 12px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 6px; }
.input-label i { width: 14px; height: 14px; color: #10b981; }
.c-input { width: 100%; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; font-family: 'Space Mono', monospace; font-size: 14px; font-weight: 700; color: var(--text-main); outline: none; transition: border-color 0.2s; }
.c-input:focus { border-color: #10b981; }

.beam-btn { width: 100%; padding: 14px; background: var(--primary-color); color: #fff; border: none; border-radius: 12px; font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.3); margin-top: auto; }
.beam-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.4); }
.beam-btn:disabled { background: var(--border-color); color: var(--text-muted); cursor: not-allowed; box-shadow: none; }
.beam-btn i.ri { color: #fff; }

/* Projection Panel (Right) - Sci-Fi Hologram */
.projection-panel { background: #0a0a0a; border: 1px solid #222; border-radius: 24px; padding: 24px; box-shadow: inset 0 0 50px rgba(0,0,0,0.5); display: flex; flex-direction: column; position: relative; overflow: hidden; min-height: 400px; }

.coord-display { position: absolute; top: 24px; left: 24px; font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 800; color: #10b981; letter-spacing: 1px; z-index: 10; opacity: 0; transform: translateY(-10px); transition: all 0.5s; display: flex; flex-direction: column; gap: 4px; }
.coord-display.active { opacity: 1; transform: translateY(0); }
.cd-val { color: #fff; }

.proj-actions { position: absolute; top: 24px; right: 24px; display: flex; gap: 8px; z-index: 10; opacity: 0; pointer-events: none; transform: translateY(-10px); transition: all 0.5s; }
.proj-actions.active { opacity: 1; pointer-events: auto; transform: translateY(0); }

.pa-btn { background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 6px 12px; font-size: 11px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 6px; cursor: pointer; transition: all 0.2s; backdrop-filter: blur(4px); }
.pa-btn:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.holo-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; perspective: 800px; padding-top: 40px; }

.holo-base { width: 200px; height: 60px; background: radial-gradient(ellipse at center, rgba(16,185,129,0.3) 0%, rgba(16,185,129,0) 70%); border-radius: 50%; border: 1px solid rgba(16,185,129,0.2); transform: rotateX(60deg); position: absolute; bottom: 40px; box-shadow: 0 0 30px rgba(16,185,129,0.2); }

.holo-beam { position: absolute; bottom: 70px; width: 140px; height: 0; background: linear-gradient(to top, rgba(16,185,129,0.4) 0%, rgba(16,185,129,0) 100%); transition: height 0.8s var(--ease-spring); }
.qr-projection.active ~ .holo-beam { height: 180px; }

.qr-projection { width: 180px; height: 180px; background: #fff; border-radius: 12px; padding: 10px; box-shadow: 0 0 40px rgba(16,185,129,0.6), inset 0 0 20px rgba(16,185,129,0.2); z-index: 5; opacity: 0; transform: translateY(50px) rotateX(20deg); transition: all 1s var(--ease-spring); }
.qr-projection.active { opacity: 1; transform: translateY(-40px) rotateX(0deg); animation: float 3s ease-in-out infinite alternate; }

#qrCanvas { width: 100% !important; height: 100% !important; }

@keyframes float { 0% { transform: translateY(-40px); } 100% { transform: translateY(-55px); } }

/* ---------- STATS STRIP ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 40px; }
.sc { background: var(--card-bg); border-radius: 16px; padding: 20px; border: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform 0.2s; box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.sc:hover { transform: translateY(-2px); }
.sc-ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }

.sc-ico.r { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.sc-ico.b { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.sc-ico.g { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.sc-ico.p { background: rgba(168, 85, 247, 0.1); color: #a855f7; }

.sc-val { font-size: 28px; font-weight: 900; color: var(--text-main); line-height: 1; margin-bottom: 4px; transition: transform 0.3s; font-family: 'Space Mono', monospace; }
.sc-lbl { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.sc-val.popped { transform: scale(1.3); color: var(--primary-color); }

/* Toast */
/* ── Comparison Panel & Analytics ── */
.comparison-panel {
    background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 24px;
    padding: 28px; margin-top: 32px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); margin-bottom: 40px;
}
.cp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.cp-title { font-size: 16px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 10px; }
.cp-badge { font-size: 12px; font-weight: 800; padding: 6px 14px; border-radius: 100px; }
.badge-high { background: color-mix(in srgb, var(--success, #10b981) 15%, transparent); color: var(--success, #10b981); border: 1px solid color-mix(in srgb, var(--success, #10b981) 30%, transparent); }

.cp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cp-card { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.cpc-header { display: flex; justify-content: space-between; align-items: center; }
.cpc-title { font-size: 13.5px; font-weight: 800; color: var(--text-main); }
.cpc-tag { font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 6px; }
.cpc-tag.success { background: color-mix(in srgb, var(--success, #10b981) 15%, transparent); color: var(--success, #10b981); }

.cpc-body { display: flex; flex-direction: column; gap: 10px; }
.cpc-stat-row { font-size: 13px; color: var(--text-muted); display: flex; justify-content: space-between; }
.cpc-stat-row strong { color: var(--text-main); font-weight: 700; }
.cpc-progress-bar { width: 100%; height: 8px; background: var(--border-color); border-radius: 100px; overflow: hidden; margin-top: 4px; }
.cpc-progress-fill { height: 100%; background: var(--primary-color); border-radius: 100px; transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.cpc-progress-fill.bg-gradient { background: linear-gradient(90deg, var(--primary-color), var(--primary-gradient-end)); }

/* Toast */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 20px; display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; color: var(--text-main); box-shadow: 0 10px 30px rgba(0,0,0,0.1); z-index: 100000; opacity: 0; pointer-events: none; transform: translateY(20px); transition: all 0.3s var(--ease-spring); }
.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid #ef4444; }
.toast.warn { border-left: 4px solid #f59e0b; }
.toast.info { border-left: 4px solid #3b82f6; }

/* =========================================
   ZERO INLINE STYLES EXTENSIONS
   ========================================= */
#bgCv {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.icon-hero-badge {
    width: 14px;
    height: 14px;
}

.icon-type-muted {
    width: 12px;
    height: 12px;
    color: var(--text-muted);
}

.dir-divider {
    opacity: 0.3;
}

.gps-btn i {
    width: 12px;
    height: 12px;
}

.beam-btn i.ri {
    width: 18px;
    height: 18px;
    color: #fff;
}

.pa-btn i {
    width: 14px;
    height: 14px;
}

.pa-btn.btn-save {
    color: #10b981;
    border-color: #10b981;
}

.sc-ico i {
    width: 18px;
    height: 18px;
}

.info-div-t {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    margin-top: 40px;
}

.icon-star-primary {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.toast i {
    width: 18px;
    height: 18px;
}

.toast.success i {
    color: #10b981;
}

.toast.error i {
    color: #ef4444;
}

.toast.warn i {
    color: #f59e0b;
}

.toast.info i {
    color: #3b82f6;
}