/* ═══════════ Measurement Guide Trigger Button ═══════════ */
.measurement-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    width: 100%;
    justify-content: center;
}

.measurement-guide-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.measurement-guide-btn svg {
    opacity: 0.7;
    flex-shrink: 0;
}

/* ═══════════ Measurement Guide Modal ═══════════ */
.mg-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 1rem;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mg-modal-overlay.active {
    display: flex;
    opacity: 1;
    animation: mgFadeIn 0.3s ease forwards;
}

@keyframes mgFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.mg-modal-card {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 2.25rem;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    animation: mgSlideUp 0.3s ease forwards;
}

@keyframes mgSlideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.mg-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.mg-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ═══════════ Measurement Guide Content (inside modal) ═══════════ */

.measurement-guide__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-right: 2.5rem;
}

.measurement-guide__ruler-icon { font-size: 1.75rem; line-height: 1; }

.measurement-guide__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.measurement-guide__intro {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.measurement-guide__sections {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.measurement-guide__section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.measurement-guide__section:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.measurement-guide__section-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.measurement-guide__section-icon {
    font-size: 1.3rem;
    opacity: 0.8;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    flex-shrink: 0;
}

.measurement-guide__section-heading {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.measurement-guide__section-text {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.measurement-guide__note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.15);
    border-radius: 8px;
}

.measurement-guide__note-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.measurement-guide__note p { margin: 0; color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; line-height: 1.6; }
.measurement-guide__note strong { color: rgba(255, 193, 7, 0.9); }

/* Scrollbar inside modal */
.mg-modal-card::-webkit-scrollbar { width: 6px; }
.mg-modal-card::-webkit-scrollbar-track { background: transparent; }
.mg-modal-card::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
.mg-modal-card::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

@media (max-width: 768px) {
    .mg-modal-card { padding: 1.5rem 1.25rem; border-radius: 12px; max-height: 90vh; }
    .measurement-guide__title { font-size: 1.15rem; }
    .measurement-guide__section { padding: 1rem 1.15rem; }
    .measurement-guide-btn { font-size: 0.85rem; padding: 0.6rem 1rem; }
}
