/* ==========================================================================
   Mounted Disk Image (.dmg)
   ========================================================================== */

.dmg-win { background: rgba(30, 30, 32, 0.88); }

.dmg-content { flex-direction: column; overflow: hidden; }

.dmg-stage {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* ── Verification phase ─────────────────────────────────────────────────── */

.dmg-verifying {
    margin: auto;
    text-align: center;
    padding: 40px 30px;
}

.dmg-verifying i {
    font-size: 44px;
    color: #7d8792;
    margin-bottom: 18px;
    display: block;
}

.dmg-verify-label {
    font-size: 13px;
    color: #ddd;
    margin-bottom: 14px;
}

.dmg-verify-track {
    width: 260px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    margin: 0 auto;
}

.dmg-verify-bar {
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: var(--accent);
    transition: width 0.09s linear;
}

/* ── Mounted volume ─────────────────────────────────────────────────────── */

.dmg-volume {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* The classic "drag the app onto the target" layout every dmg uses. */
.dmg-volume-drop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    padding: 26px 20px 22px;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.09), transparent 70%),
        rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dmg-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 104px;
    text-align: center;
    color: #eee;
    text-decoration: none;
    font-size: 12.5px;
}

.dmg-app img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.dmg-app i {
    font-size: 50px;
    color: #d8d8dc;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.dmg-target {
    border: 2px dashed rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    padding: 8px 4px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dmg-target:hover {
    border-color: var(--accent);
    background: rgba(0, 122, 255, 0.12);
}

.dmg-arrow {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.4);
}

/* ── Details ────────────────────────────────────────────────────────────── */

.dmg-info { padding: 20px 26px; flex: 1; }

.dmg-info h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.dmg-tagline {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
}

.dmg-desc {
    font-size: 13px;
    line-height: 1.62;
    color: #c4c4c8;
    margin-bottom: 16px;
}

.dmg-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.dmg-chip {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.09);
    color: #d0d0d4;
}

.dmg-req {
    font-size: 11.5px;
    color: #8a8a8f;
    margin-bottom: 18px;
}

.dmg-req i { margin-right: 5px; }

.dmg-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.dmg-eject {
    flex-shrink: 0;
    padding: 10px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.24);
}

.dmg-eject-btn {
    background: none;
    border: none;
    color: #9a9a9f;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    border-radius: 5px;
}

.dmg-eject-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

@media (max-width: 768px) {
    .dmg-volume-drop { gap: 16px; padding: 18px 12px; }
    .dmg-app { width: 84px; font-size: 11.5px; }
    .dmg-app img { width: 50px; height: 50px; }
}
