/* ========================================
   MINEADERM CİLT ANALİZİ
   Clinical Serenity Design System
   ======================================== */

/* ---- Video Mirror (ayna) ---- */
#video {
    transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
}

#overlay {
    transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
}

/* iOS video kontrolleri gizle */
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-panel,
video::-webkit-media-controls {
    display: none !important;
}

/* ---- Theme ---- */
:root {
    --mn-teal: #5a8f9f;
    --mn-teal-dark: #3d6e7d;
    --mn-teal-deeper: #2c5361;
    --mn-teal-light: #7fb5c4;
    --mn-teal-pale: #dfedf1;
    --mn-teal-ghost: #f0f6f8;

    --mn-gold: #c9a96e;
    --mn-gold-dark: #a98b4f;
    --mn-gold-light: #ddc598;
    --mn-gold-pale: #f7f0e2;

    --mn-bg: #f7f9fa;
    --mn-card: #ffffff;
    --mn-text: #1a2a32;
    --mn-text-secondary: #4a6670;
    --mn-muted: #7a9199;
    --mn-border: #d8e2e6;
    --mn-border-light: #ecf1f3;

    --mn-success: #3aaa8a;
    --mn-success-bg: rgba(58, 170, 138, 0.08);
    --mn-warning: #d4943a;
    --mn-warning-bg: rgba(212, 148, 58, 0.08);
    --mn-danger: #c45858;

    --mn-radius-sm: 10px;
    --mn-radius: 16px;
    --mn-radius-lg: 20px;

    --mn-shadow-sm: 0 2px 8px rgba(26, 42, 50, 0.05);
    --mn-shadow: 0 4px 24px rgba(26, 42, 50, 0.07), 0 1px 4px rgba(26, 42, 50, 0.03);
    --mn-shadow-lg: 0 12px 48px rgba(26, 42, 50, 0.10), 0 2px 8px rgba(26, 42, 50, 0.04);

    --mn-font-display: 'DM Serif Display', Georgia, serif;
    --mn-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --mn-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--mn-font-body);
    background: var(--mn-bg);
    color: var(--mn-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Subtle ambient gradient */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(90, 143, 159, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 100%, rgba(201, 169, 110, 0.04) 0%, transparent 45%);
    pointer-events: none;
    z-index: -1;
}

/* ---- Main loading state ---- */
.mn-main {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mn-main.ready {
    opacity: 1;
}

/* ---- Container ---- */
.mn-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---- Header ---- */
.mn-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--mn-border-light);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mn-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mn-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.mn-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(145deg, var(--mn-teal), var(--mn-teal-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 10px rgba(90, 143, 159, 0.3);
}

.mn-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.mn-brand-name {
    font-family: var(--mn-font-display);
    font-size: 1.1rem;
    color: var(--mn-text);
}

.mn-brand-sub {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--mn-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mn-btn-ghost {
    background: transparent;
    border: 1.5px solid var(--mn-border);
    color: var(--mn-text-secondary);
    font-family: var(--mn-font-body);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.45rem 1rem;
    border-radius: var(--mn-radius-sm);
    cursor: pointer;
    transition: all 0.25s var(--mn-ease);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.mn-btn-ghost:hover {
    background: var(--mn-teal-ghost);
    border-color: var(--mn-teal);
    color: var(--mn-teal-dark);
}

/* ---- Steps ---- */
.mn-step {
    display: none;
    animation: mnStepIn 0.45s var(--mn-ease) forwards;
}

.mn-step.active {
    display: block;
}

@keyframes mnStepIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Card ---- */
.mn-card {
    background: var(--mn-card);
    border: 1px solid var(--mn-border-light);
    border-radius: var(--mn-radius-lg);
    box-shadow: var(--mn-shadow);
    overflow: hidden;
}

.mn-card-body {
    padding: 2rem;
}

@media (max-width: 767.98px) {
    .mn-card-body {
        padding: 1.25rem;
    }
}

/* ---- Typography ---- */
.mn-title {
    font-family: var(--mn-font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--mn-text);
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.mn-subtitle {
    color: var(--mn-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ---- Blocked Step ---- */
.mn-blocked-wrap {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
}

#step-blocked .mn-card {
    border-top: 3px solid var(--mn-teal);
}

.mn-blocked-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--mn-teal-ghost);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--mn-teal-pale);
}

.mn-blocked-icon i {
    font-size: 2rem;
    color: var(--mn-teal);
}

.mn-blocked-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    background: var(--mn-warning-bg);
    color: var(--mn-warning);
    font-weight: 600;
    font-size: 0.82rem;
    border: 1px solid rgba(212, 148, 58, 0.15);
}

/* ---- Camera Step ---- */
.mn-video-shell {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    aspect-ratio: 4/3;
    border-radius: var(--mn-radius);
    overflow: hidden;
    background: #0b1c22;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Subtle vignette to focus attention on the center */
.mn-video-shell::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--mn-radius);
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 3;
}

.mn-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0b1c22;
    z-index: 1;
}

.mn-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

/* ---- Status Area (prevents layout jump) ---- */
.mn-status-area {
    min-height: 4.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

/* ---- Status Pill ---- */
.mn-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.82rem;
    transition: background 0.3s var(--mn-ease), color 0.3s var(--mn-ease), border-color 0.3s var(--mn-ease);
    min-height: 2rem;
}

.mn-status-info {
    background: var(--mn-teal-ghost);
    color: var(--mn-teal-dark);
    border: 1px solid var(--mn-teal-pale);
}

.mn-status-ok {
    background: var(--mn-success-bg);
    color: #1a7a62;
    border: 1px solid rgba(58, 170, 138, 0.2);
}

.mn-status-warn {
    background: var(--mn-warning-bg);
    color: #8a6420;
    border: 1px solid rgba(212, 148, 58, 0.2);
}

.mn-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.65;
}

/* ---- Quality Indicators ---- */
.mn-quality-info {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--mn-muted);
    min-height: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s var(--mn-ease);
}

.mn-qi-ok {
    color: var(--mn-success);
}

.mn-qi-warn {
    color: var(--mn-gold-dark);
}

.mn-qi-danger {
    color: var(--mn-danger);
}

.mn-qi-mid {
    color: var(--mn-gold-dark);
}

.mn-qi-sep {
    color: var(--mn-border);
    font-size: 0.6rem;
}

.mn-qi-dim {
    color: var(--mn-border);
    font-size: 0.65rem;
}

/* Pulsing animation for status-ok dot */
.mn-status-ok .mn-status-dot {
    animation: mnPulse 1.5s ease-in-out infinite;
}

@keyframes mnPulse {
    0%, 100% { opacity: 0.65; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* ---- Buttons ---- */
.mn-btn {
    border: none;
    border-radius: 12px;
    font-family: var(--mn-font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: all 0.25s var(--mn-ease);
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mn-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.mn-btn-capture {
    background: linear-gradient(145deg, var(--mn-gold), var(--mn-gold-dark));
    color: #fff;
    box-shadow: 0 4px 18px rgba(201, 169, 110, 0.3);
    width: 100%;
}

.mn-btn-capture:not(:disabled):hover {
    box-shadow: 0 6px 26px rgba(201, 169, 110, 0.42);
    transform: translateY(-1px);
}

.mn-btn-primary {
    background: linear-gradient(145deg, var(--mn-teal), var(--mn-teal-dark));
    color: #fff;
    box-shadow: 0 4px 18px rgba(90, 143, 159, 0.25);
    width: 100%;
}

.mn-btn-primary:not(:disabled):hover {
    box-shadow: 0 6px 26px rgba(90, 143, 159, 0.38);
    transform: translateY(-1px);
}

.mn-btn-link {
    background: none;
    border: none;
    color: var(--mn-teal);
    font-family: var(--mn-font-body);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s;
}

.mn-btn-link:hover {
    color: var(--mn-teal-dark);
    text-decoration: underline;
}

/* ---- Form Grid ---- */
.mn-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 991.98px) {
    .mn-form-grid {
        grid-template-columns: 1fr;
    }

    /* Form step: compact photo on mobile */
    .mn-form-grid .mn-sticky {
        position: static;
    }

    #step-form .mn-photo-box {
        max-height: 180px;
        overflow: hidden;
        border-radius: var(--mn-radius);
    }

    #step-form .mn-photo {
        width: 100%;
        height: 180px;
        object-fit: cover;
        object-position: center 20%;
    }
}

/* ---- Photo ---- */
.mn-photo {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: var(--mn-radius);
    box-shadow: var(--mn-shadow-sm);
}

.mn-photo-compact {
    max-width: 100%;
}

.mn-photo-box {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* ---- Segmented Control ---- */
.mn-segmented {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.mn-segmented input {
    display: none;
}

.mn-segmented label {
    border: 1.5px solid var(--mn-border);
    border-radius: var(--mn-radius-sm);
    padding: 0.65rem 1rem;
    text-align: center;
    cursor: pointer;
    background: var(--mn-card);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--mn-text);
    transition: all 0.25s var(--mn-ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.mn-segmented label:hover {
    border-color: var(--mn-teal-light);
    background: var(--mn-teal-ghost);
}

.mn-segmented input:checked + label {
    background: linear-gradient(145deg, var(--mn-teal), var(--mn-teal-dark));
    color: #fff;
    border-color: var(--mn-teal);
    box-shadow: 0 2px 10px rgba(90, 143, 159, 0.25);
}

/* ---- Form Controls ---- */
.mn-form-label {
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--mn-text-secondary);
    margin-bottom: 0.45rem;
    display: block;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mn-form-control {
    border: 1.5px solid var(--mn-border);
    border-radius: var(--mn-radius-sm);
    padding: 0.65rem 1rem;
    font-family: var(--mn-font-body);
    font-size: 1rem;
    color: var(--mn-text);
    transition: border-color 0.25s, box-shadow 0.25s;
    width: 100%;
    background: var(--mn-card);
    outline: none;
}

.mn-form-control:focus {
    border-color: var(--mn-teal);
    box-shadow: 0 0 0 3px rgba(90, 143, 159, 0.12);
}

.mn-form-control::placeholder {
    color: var(--mn-muted);
    opacity: 0.7;
}

/* ---- Checkbox ---- */
.mn-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.mn-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--mn-teal);
    cursor: pointer;
    flex-shrink: 0;
}

.mn-check label {
    font-size: 0.88rem;
    color: var(--mn-text-secondary);
    cursor: pointer;
    line-height: 1.45;
}

.mn-check a {
    color: var(--mn-teal);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---- Result Grid ---- */
.mn-result-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 991.98px) {
    .mn-result-grid {
        grid-template-columns: 1fr;
    }

    /* Result step: compact photo + no sticky on mobile */
    .mn-result-grid .mn-sticky {
        position: static;
    }

    #step-result .mn-photo {
        width: 100%;
        max-height: 200px;
        object-fit: cover;
        object-position: center 20%;
    }
}

.mn-sticky {
    position: sticky;
    top: 80px;
}

/* ---- Progress Bars ---- */
.mn-metrics {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 1rem;
}

.mn-progress-item {
    opacity: 0;
    animation: mnFadeUp 0.5s var(--mn-ease) forwards;
}

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

.mn-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.mn-progress-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mn-text-secondary);
}

.mn-progress-value {
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.mn-progress-track {
    width: 100%;
    height: 8px;
    background: var(--mn-border-light);
    border-radius: 99px;
    overflow: hidden;
}

.mn-progress-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 1s var(--mn-ease);
}

.mn-no-issues {
    text-align: center;
    padding: 1.5rem;
    background: var(--mn-success-bg);
    border-radius: var(--mn-radius);
    border: 1.5px dashed rgba(58, 170, 138, 0.3);
}

/* ---- Detection Info ---- */
.mn-detection-label {
    font-size: 0.78rem;
    color: var(--mn-muted);
    line-height: 1.45;
    padding: 0.65rem 0.85rem;
    background: var(--mn-teal-ghost);
    border-radius: var(--mn-radius-sm);
    border: 1px solid var(--mn-teal-pale);
}

.mn-detection-label strong {
    color: var(--mn-text-secondary);
}

/* ---- Scan Overlay ---- */
.mn-scan-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: var(--mn-radius);
    pointer-events: none;
}

.mn-scan-layer.hidden {
    display: none;
}

.mn-scan-layer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 20%;
    top: -22%;
    background: linear-gradient(
        to bottom,
        rgba(90, 143, 159, 0.04) 0%,
        rgba(90, 143, 159, 0.22) 50%,
        rgba(90, 143, 159, 0.32) 100%
    );
    box-shadow: 0 0 24px rgba(90, 143, 159, 0.22);
    animation: mnScanSweep 0.9s linear infinite;
}

.mn-scan-layer::after {
    content: 'Analiz ediliyor';
    position: absolute;
    left: 12px;
    bottom: 12px;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--mn-teal-dark);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--mn-border-light);
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    box-shadow: var(--mn-shadow-sm);
    backdrop-filter: blur(4px);
}

@keyframes mnScanSweep {
    0% { transform: translateY(0); }
    100% { transform: translateY(580%); }
}

/* ---- Analysis Content ---- */
.mn-analysis p,
.mn-analysis ul {
    color: var(--mn-text-secondary);
    line-height: 1.65;
}

.mn-analysis h1 {
    font-family: var(--mn-font-display);
    font-size: 1.35rem;
    margin-bottom: 0.7rem;
    color: var(--mn-text);
}

.mn-analysis h2 {
    font-family: var(--mn-font-display);
    font-size: 1.15rem;
    margin-bottom: 0.55rem;
    color: var(--mn-text);
}

.mn-analysis h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: var(--mn-text);
}

.mn-analysis h4,
.mn-analysis h5 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--mn-text);
    margin-top: 0.85rem;
}

.mn-analysis p {
    margin: 0.45rem 0;
}

.mn-analysis p > strong + a {
    margin-left: 4px;
}

.mn-analysis a {
    color: var(--mn-teal);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mn-analysis a[target="_blank"] {
    cursor: pointer;
}

.mn-analysis img {
    max-width: 100%;
    height: auto;
    border-radius: var(--mn-radius);
}

/* Product figures in analysis */
.mn-analysis figure.product {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 20px;
    margin: 14px 0 24px;
}

.mn-analysis figure.product .product-img {
    width: 200px;
    height: auto;
    object-fit: contain;
    background: white;
    border-radius: var(--mn-radius);
    box-shadow: var(--mn-shadow);
}

.mn-analysis figure.product figcaption {
    flex: 1;
}

/* Product media float */
.mn-analysis .product-media {
    float: right;
    width: 200px;
    margin: 0 0 14px 18px;
    text-align: center;
}

.mn-analysis .product-media img.product-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--mn-radius);
    box-shadow: var(--mn-shadow);
}

.mn-analysis .product-media .product-link {
    margin-top: 8px;
}

.mn-analysis .product-media .product-link__a {
    display: inline-block;
    font-weight: 600;
    text-decoration: underline;
    color: var(--mn-teal);
}

@media (max-width: 991.98px) {
    .mn-analysis figure.product {
        flex-direction: column;
        align-items: center;
    }

    .mn-analysis figure.product .product-img {
        order: 2;
        max-width: 100%;
        width: 240px;
        margin-top: 12px;
    }

    .mn-analysis figure.product figcaption {
        order: 1;
        width: 100%;
    }

    .mn-analysis .product-media {
        float: none;
        width: 200px;
        margin: 12px auto;
    }
}

/* ---- Privacy ---- */
.mn-privacy {
    font-size: 0.75rem;
    color: var(--mn-muted);
    text-align: center;
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

/* ---- Modal Overrides ---- */
.modal-content {
    border-radius: var(--mn-radius-lg) !important;
    border: 1px solid var(--mn-border-light);
    box-shadow: var(--mn-shadow-lg);
}

.modal-header {
    border-bottom-color: var(--mn-border-light);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-family: var(--mn-font-display);
    font-size: 1.1rem;
}

.modal-body {
    padding: 1rem 1.5rem;
    color: var(--mn-text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.modal-body h6 {
    color: var(--mn-text);
    font-weight: 700;
    margin-top: 0.85rem;
    margin-bottom: 0.3rem;
}

.modal-body h6:first-child {
    margin-top: 0;
}

.modal-footer {
    border-top-color: var(--mn-border-light);
    padding: 0.85rem 1.5rem;
}

/* ---- Spacing Helpers ---- */
.mn-text-center { text-align: center; }
.mn-mt-1 { margin-top: 0.5rem; }
.mn-mt-2 { margin-top: 1rem; }
.mn-mt-3 { margin-top: 1.5rem; }
.mn-mb-2 { margin-bottom: 1rem; }
.mn-mb-3 { margin-bottom: 1.5rem; }
.mn-d-grid { display: grid; }

/* ---- Section header row ---- */
.mn-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.mn-section-head .mn-title {
    margin-bottom: 0;
}

/* ---- Photo Lightbox ---- */
.mn-expand-btn {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.mn-expand-btn:hover {
    background: rgba(0, 0, 0, 0.65);
}

.mn-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mn-lightbox.hidden {
    display: none;
}

.mn-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.mn-lightbox-img {
    position: relative;
    z-index: 1;
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--mn-radius);
    box-shadow: var(--mn-shadow-lg);
}

.mn-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.mn-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
}
