/**
 * ═══════════════════════════════════════════════════════════════════════
 * MASAHA STORAGE — PARTIALS ENHANCEMENTS CSS
 * ═══════════════════════════════════════════════════════════════════════
 *
 * Consolidated CSS extracted from the 9 template partial inline <style>
 * blocks. These are enhancement-only classes that complement the core
 * CSS architecture (variables.css, base.css, components.css, booking.css,
 * payment.css, responsive.css, rtl.css).
 *
 * FILE 1 OF 2 — Verification, Progress Tracker, Step 1 (Storage)
 *
 * Partial Sources in this file:
 *   1. phone-verification.php   — Verify screen, OTP, trust signals
 *   2. progress-tracker.php     — Connectors, tooltips, pulse, counter
 *   3. step1-storage.php        — Feature chips, size tags, specs, AC
 *
 * RTL Handling:
 *   All directional properties use LTR defaults with html[dir="rtl"]
 *   overrides. No PHP expressions remain in this file.
 *
 * @package  Masaha\Assets\CSS
 * @version  2.0.0
 */


/* ═══════════════════════════════════════════════════════════════════════
   1. PHONE VERIFICATION — phone-verification.php
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Floating Decorative Shapes ────────────────────────────────────── */
.masaha-verify-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.masaha-decor-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
    filter: blur(60px);
}

.masaha-decor-shape--1 {
    width: 400px;
    height: 400px;
    background: var(--m-primary, #ea4526);
    top: -10%;
    right: -5%;
    animation: masaha-decor-float 20s ease-in-out infinite;
}

.masaha-decor-shape--2 {
    width: 300px;
    height: 300px;
    background: var(--m-accent, #2980b9);
    bottom: 10%;
    left: -8%;
    animation: masaha-decor-float 25s ease-in-out infinite reverse;
}

.masaha-decor-shape--3 {
    width: 200px;
    height: 200px;
    background: var(--m-success, #10b981);
    top: 40%;
    right: 15%;
    animation: masaha-decor-float 18s ease-in-out infinite 5s;
}

@keyframes masaha-decor-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(15px, 15px) scale(1.02); }
}

/* ── Brand Logo ────────────────────────────────────────────────────── */
.masaha-verify-brand {
    margin-bottom: var(--m-sp-6, 24px);
    text-align: center;
}

.masaha-verify-logo {
    max-width: 140px;
    height: auto;
    opacity: 0;
    animation: masaha-logo-reveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

@keyframes masaha-logo-reveal {
    0% { opacity: 0; transform: translateY(-10px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Benefit Pills (Why Verify) ────────────────────────────────────── */
.masaha-verify-benefits {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--m-sp-2, 8px);
    margin-bottom: var(--m-sp-8, 32px);
}

.masaha-benefit-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--m-gray-50, #f9fafb);
    border: 1px solid var(--m-border-light, #f0f0f0);
    border-radius: var(--m-radius-full, 9999px);
    font-size: 11px;
    font-weight: 600;
    color: var(--m-gray-500, #6b7280);
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    opacity: 0;
    animation: masaha-pill-enter 0.4s ease forwards;
}

.masaha-benefit-pill:nth-child(1) { animation-delay: 0.5s; }
.masaha-benefit-pill:nth-child(2) { animation-delay: 0.6s; }
.masaha-benefit-pill:nth-child(3) { animation-delay: 0.7s; }

@keyframes masaha-pill-enter {
    0% { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

.masaha-benefit-pill:hover {
    background: var(--m-primary-50, #fef2f0);
    border-color: var(--m-primary-100, #fcd5cf);
    color: var(--m-primary, #ea4526);
}

.masaha-benefit-pill i {
    font-size: 12px;
    color: var(--m-primary, #ea4526);
    opacity: 0.7;
}

/* ── Phone Input Label ─────────────────────────────────────────────── */
.masaha-verify-input-label {
    display: block;
    font-size: var(--m-text-sm, 14px);
    font-weight: var(--m-weight-semibold, 600);
    color: var(--m-gray-600, #4b5563);
    margin-bottom: var(--m-sp-2, 8px);
    text-align: left;
}

html[dir="rtl"] .masaha-verify-input-label {
    text-align: right;
}

/* ── Input Prefix (Flag + Country Code) ────────────────────────────── */
.masaha-input-prefix {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 var(--m-sp-3, 12px);
    border-right: 1px solid var(--m-border-light, #f0f0f0);
    flex-shrink: 0;
    user-select: none;
}

html[dir="rtl"] .masaha-input-prefix {
    border-right: none;
    border-left: 1px solid var(--m-border-light, #f0f0f0);
}

.masaha-input-flag {
    display: block;
    width: 24px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.masaha-input-country-code {
    font-size: var(--m-text-sm, 14px);
    font-weight: var(--m-weight-semibold, 600);
    color: var(--m-gray-600, #4b5563);
    font-family: var(--m-font-display, 'Montserrat', sans-serif);
    letter-spacing: 0.5px;
}

/* ── Input Validation Error ────────────────────────────────────────── */
.masaha-input-error {
    display: flex;
    align-items: center;
    gap: var(--m-sp-2, 8px);
    color: var(--m-danger, #ef4444);
    font-size: var(--m-text-xs, 12px);
    font-weight: 500;
    margin-top: var(--m-sp-2, 8px);
    padding: var(--m-sp-2, 8px) var(--m-sp-3, 12px);
    background: var(--m-danger-ghost, rgba(239, 68, 68, 0.05));
    border-radius: var(--m-radius, 8px);
    border: 1px solid rgba(239, 68, 68, 0.15);
    animation: masahaFadeInUp 0.3s ease both;
}

.masaha-input-error i {
    font-size: var(--m-text-sm, 14px);
    flex-shrink: 0;
}

/* ── Button States (loading) ───────────────────────────────────────── */
.masaha-btn__loader {
    display: none;
}

.masaha-btn.is-loading .masaha-btn__text,
.masaha-btn.is-loading .masaha-btn__icon {
    display: none;
}

.masaha-btn.is-loading .masaha-btn__loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ── Glow Effect on Primary CTA ────────────────────────────────────── */
.masaha-btn--glow {
    position: relative;
    overflow: hidden;
}

.masaha-btn--glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255,255,255,0.15) 45%,
        rgba(255,255,255,0.25) 50%,
        rgba(255,255,255,0.15) 55%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: none;
}

.masaha-btn--glow:hover::after {
    animation: masaha-btn-shine 0.8s ease forwards;
}

@keyframes masaha-btn-shine {
    to { transform: translateX(100%); }
}

/* ── OTP Title Icon ────────────────────────────────────────────────── */
.masaha-otp-title-icon {
    color: var(--m-primary, #ea4526);
    margin-right: 8px;
    font-size: 1.1em;
}

html[dir="rtl"] .masaha-otp-title-icon {
    margin-right: 0;
    margin-left: 8px;
}

/* ── OTP Phone Display ─────────────────────────────────────────────── */
.masaha-otp-phone-display {
    display: block;
    font-family: var(--m-font-display, 'Montserrat', sans-serif);
    font-size: var(--m-text-lg, 18px);
    color: var(--m-primary, #ea4526);
    letter-spacing: 1.5px;
    margin-top: var(--m-sp-1, 4px);
}

/* ── Timer Ring (SVG circular progress) ────────────────────────────── */
.masaha-otp-timer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--m-sp-3, 12px);
    margin-bottom: var(--m-sp-5, 20px);
}

.masaha-otp-timer-ring {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.masaha-timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.masaha-timer-track {
    fill: none;
    stroke: var(--m-gray-100, #f3f4f6);
    stroke-width: 2.5;
}

.masaha-timer-progress {
    fill: none;
    stroke: var(--m-primary, #ea4526);
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.masaha-timer-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--m-primary, #ea4526);
}

.masaha-otp-timer {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.masaha-timer-label {
    font-size: 11px;
    color: var(--m-gray-400, #9ca3af);
    font-weight: 500;
}

.masaha-timer-value {
    font-size: var(--m-text-lg, 18px);
    font-family: var(--m-font-display, 'Montserrat', sans-serif);
    color: var(--m-primary, #ea4526);
    letter-spacing: 1px;
    font-weight: 700;
}

/* Timer expired state */
.masaha-otp-timer-container.expired .masaha-timer-progress {
    stroke: var(--m-danger, #ef4444);
}

.masaha-otp-timer-container.expired .masaha-timer-value {
    color: var(--m-danger, #ef4444);
}

.masaha-otp-timer-container.expired .masaha-timer-icon {
    color: var(--m-danger, #ef4444);
}

/* ── OTP Success State ─────────────────────────────────────────────── */
.masaha-otp-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--m-sp-3, 12px);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.03));
    color: var(--m-success, #10b981);
    font-size: var(--m-text-base, 16px);
    font-weight: var(--m-weight-semibold, 600);
    padding: var(--m-sp-4, 16px) var(--m-sp-6, 24px);
    border-radius: var(--m-radius-lg, 12px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-bottom: var(--m-sp-5, 20px);
    animation: masaha-success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.masaha-success-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--m-success, #10b981);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    animation: masaha-check-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes masaha-success-pop {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes masaha-check-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ── Change Phone Number Link ──────────────────────────────────────── */
.masaha-otp-change-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--m-text-xs, 12px);
    color: var(--m-gray-400, #9ca3af);
    font-weight: 500;
    margin-top: var(--m-sp-4, 16px);
    transition: color 0.2s ease;
    text-decoration: none;
}

.masaha-otp-change-phone:hover {
    color: var(--m-primary, #ea4526);
}

.masaha-otp-change-phone i {
    font-size: 11px;
}

/* ── Enhanced Trust Signals ────────────────────────────────────────── */
.masaha-verify-trust {
    display: flex;
    justify-content: center;
    gap: var(--m-sp-5, 20px);
    margin-top: var(--m-sp-8, 32px);
    padding-top: var(--m-sp-6, 24px);
    border-top: 1px solid var(--m-border-light, #f0f0f0);
}

.masaha-trust-item {
    display: flex;
    align-items: center;
    gap: var(--m-sp-3, 12px);
    text-align: left;
}

html[dir="rtl"] .masaha-trust-item {
    text-align: right;
}

.masaha-trust-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.04));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.masaha-trust-icon-wrap i {
    font-size: 14px;
    color: var(--m-success, #10b981);
}

.masaha-trust-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.masaha-trust-content strong {
    font-size: 12px;
    font-weight: 700;
    color: var(--m-gray-700, #374151);
    letter-spacing: 0.01em;
}

.masaha-trust-content span {
    font-size: 11px;
    color: var(--m-gray-400, #9ca3af);
    font-weight: 400;
}

/* ── Secure Notice ─────────────────────────────────────────────────── */
.masaha-verify-secure-notice {
    font-size: 11px;
    color: var(--m-gray-400, #9ca3af);
    text-align: center;
    margin-top: var(--m-sp-5, 20px);
    line-height: 1.5;
}

.masaha-verify-secure-notice i {
    margin-right: 4px;
    color: var(--m-accent, #2980b9);
    font-size: 12px;
}

html[dir="rtl"] .masaha-verify-secure-notice i {
    margin-right: 0;
    margin-left: 4px;
}

/* ── Footer Below Card ─────────────────────────────────────────────── */
.masaha-verify-footer {
    text-align: center;
    margin-top: var(--m-sp-6, 24px);
    font-size: 12px;
    color: var(--m-gray-400, #9ca3af);
    font-weight: 400;
    opacity: 0;
    animation: masahaFadeInUp 0.4s ease 1s forwards;
}

.masaha-verify-footer strong {
    color: var(--m-primary, #ea4526);
    font-weight: 700;
}

.masaha-verify-footer-dot {
    margin: 0 6px;
    opacity: 0.3;
}


/* ═══════════════════════════════════════════════════════════════════════
   2. PROGRESS TRACKER — progress-tracker.php
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Connector Lines Between Steps ──────────────────────────────────── */
.masaha-progress-connector {
    flex: 1;
    display: flex;
    align-items: center;
    height: var(--m-progress-dot-size, 44px);
    position: relative;
    z-index: 0;
}

.masaha-connector-track {
    width: 100%;
    height: 3px;
    background: var(--m-gray-200, #e5e7eb);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.masaha-connector-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--m-gradient-primary, linear-gradient(135deg, #ea4526, #d63a1e));
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

html[dir="rtl"] .masaha-connector-fill {
    left: auto;
    right: 0;
}

/* When the step BEFORE this connector is completed, fill the connector */
.masaha-progress-step.completed + .masaha-progress-connector .masaha-connector-fill,
.masaha-progress-connector.filled .masaha-connector-fill {
    width: 100%;
}

/* ── Pulse Ring on Active Step ──────────────────────────────────────── */
.masaha-step-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--m-primary, #ea4526);
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
}

.masaha-progress-step.active .masaha-step-pulse {
    animation: masaha-pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes masaha-pulse-ring {
    0% {
        opacity: 0.6;
        transform: scale(0.9);
    }
    70% {
        opacity: 0;
        transform: scale(1.35);
    }
    100% {
        opacity: 0;
        transform: scale(1.35);
    }
}

/* ── Shimmer Effect on Active Step ──────────────────────────────────── */
.masaha-step-shimmer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
}

.masaha-progress-step.active .masaha-step-shimmer {
    opacity: 1;
}

.masaha-step-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 10%,
        transparent 20%
    );
    animation: masaha-shimmer-rotate 4s linear infinite;
}

@keyframes masaha-shimmer-rotate {
    to { transform: rotate(360deg); }
}

/* ── Step Number Badge (progress tracker) ──────────────────────────── */
.masaha-progress-tracker .masaha-step-number {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--m-gray-300, #d1d5db);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    font-family: var(--m-font-heading, 'Montserrat', sans-serif);
}

html[dir="rtl"] .masaha-progress-tracker .masaha-step-number {
    right: auto;
    left: -4px;
}

.masaha-progress-step.active .masaha-step-number {
    background: var(--m-primary-dark, #c0381f);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(234, 69, 38, 0.4);
}

.masaha-progress-step.completed .masaha-step-number {
    background: var(--m-success, #10b981);
    color: #fff;
    transform: scale(0);
    opacity: 0;
}

/* ── Tooltip (Desktop Hover) ───────────────────────────────────────── */
.masaha-step-tooltip {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: var(--m-gray-900, #1f2937);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.masaha-step-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--m-gray-900, #1f2937);
}

.masaha-tooltip-number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.masaha-tooltip-text {
    font-weight: 500;
    letter-spacing: 0.01em;
}

.masaha-progress-step:hover .masaha-step-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Hide tooltip on mobile/touch */
@media (hover: none) {
    .masaha-step-tooltip {
        display: none !important;
    }
}

/* ── Mobile Step Counter ───────────────────────────────────────────── */
.masaha-progress-mobile-counter {
    display: none;
    text-align: center;
    margin-top: var(--m-sp-3, 12px);
    font-size: 13px;
    color: var(--m-gray-500, #6b7280);
    font-weight: 500;
    gap: 2px;
    align-items: baseline;
    justify-content: center;
}

.masaha-mobile-step-current {
    font-size: 18px;
    font-weight: 800;
    color: var(--m-primary, #ea4526);
    font-family: var(--m-font-heading, 'Montserrat', sans-serif);
    line-height: 1;
}

.masaha-mobile-step-separator {
    color: var(--m-gray-300, #d1d5db);
    margin: 0 2px;
    font-weight: 400;
}

.masaha-mobile-step-total {
    font-size: 14px;
    font-weight: 600;
    color: var(--m-gray-400, #9ca3af);
    font-family: var(--m-font-heading, 'Montserrat', sans-serif);
}

.masaha-mobile-step-label {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
    color: var(--m-primary, #ea4526);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Completed Step Hover (clickable) ──────────────────────────────── */
.masaha-progress-step.completed {
    cursor: pointer;
}

.masaha-progress-step.completed:focus-visible .masaha-step-icon {
    outline: 3px solid var(--m-primary, #ea4526);
    outline-offset: 3px;
}

/* ── Connector Reordering for Flex Layout ──────────────────────────── */
.masaha-progress-steps {
    display: flex;
    align-items: flex-start;
    position: relative;
    z-index: var(--m-z-base, 1);
}

.masaha-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--m-sp-2, 8px);
    flex-shrink: 0;
    cursor: default;
    position: relative;
    min-width: 60px;
}

/* ── Transition Orchestration ──────────────────────────────────────── */
.masaha-progress-step:nth-child(1)  { --step-delay: 0ms; }
.masaha-progress-step:nth-child(2)  { --step-delay: 40ms; }
.masaha-progress-step:nth-child(3)  { --step-delay: 80ms; }
.masaha-progress-step:nth-child(4)  { --step-delay: 120ms; }
.masaha-progress-step:nth-child(5)  { --step-delay: 160ms; }
.masaha-progress-step:nth-child(6)  { --step-delay: 200ms; }
.masaha-progress-step:nth-child(7)  { --step-delay: 240ms; }
.masaha-progress-step:nth-child(8)  { --step-delay: 280ms; }
.masaha-progress-step:nth-child(9)  { --step-delay: 320ms; }
.masaha-progress-step:nth-child(10) { --step-delay: 360ms; }
.masaha-progress-step:nth-child(11) { --step-delay: 400ms; }

.masaha-step-icon {
    transition-delay: var(--step-delay, 0ms);
}

/* ── Entry Animation (page load) ───────────────────────────────────── */
@keyframes masaha-step-entrance {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.masaha-progress-step {
    animation: masaha-step-entrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: var(--step-delay, 0ms);
}

.masaha-progress-connector {
    animation: masaha-step-entrance 0.4s ease both;
}

/* ── Screen Reader Only ────────────────────────────────────────────── */
.masaha-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ═══════════════════════════════════════════════════════════════════════
   3. STEP 1: STORAGE SELECTION — step1-storage.php
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Feature Chips Row ─────────────────────────────────────────────── */
.masaha-step1-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--m-sp-3, 12px);
    margin-bottom: var(--m-sp-8, 32px);
}

.masaha-feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--m-surface, #fff);
    border: 1px solid var(--m-border-light, #f0f0f0);
    border-radius: var(--m-radius-full, 9999px);
    font-size: 13px;
    font-weight: 600;
    color: var(--m-gray-600, #4b5563);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
}

.masaha-feature-chip:hover {
    border-color: var(--m-primary-200, #fcd5cf);
    box-shadow: 0 2px 8px rgba(234, 69, 38, 0.08);
    transform: translateY(-1px);
}

.masaha-feature-chip i {
    font-size: 14px;
    color: var(--m-primary, #ea4526);
    width: 20px;
    text-align: center;
}

/* ── Step Subtitle ─────────────────────────────────────────────────── */
.masaha-step-subtitle {
    font-size: var(--m-text-sm, 14px);
    color: var(--m-gray-500, #6b7280);
    font-weight: 400;
    margin-top: var(--m-sp-1, 4px);
    line-height: 1.5;
}

/* ── Step Badge Enrichment ─────────────────────────────────────────── */
.masaha-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--m-gray-400, #9ca3af);
    background: var(--m-gray-50, #f9fafb);
    padding: 4px 12px;
    border-radius: var(--m-radius-full, 9999px);
    border: 1px solid var(--m-border-light, #f0f0f0);
    white-space: nowrap;
    flex-shrink: 0;
}

.masaha-step-badge i {
    font-size: 11px;
    color: var(--m-primary, #ea4526);
}

/* ── Info Banner (shared across steps) ─────────────────────────────── */
.masaha-info-banner {
    display: flex;
    align-items: flex-start;
    gap: var(--m-sp-4, 16px);
    padding: var(--m-sp-5, 20px) var(--m-sp-6, 24px);
    border-radius: var(--m-radius-lg, 12px);
    margin-bottom: var(--m-sp-6, 24px);
    border: 1px solid transparent;
}

.masaha-info-banner--blue {
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.06), rgba(41, 128, 185, 0.02));
    border-color: rgba(41, 128, 185, 0.12);
}

.masaha-info-banner__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(41, 128, 185, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--m-accent, #2980b9);
    font-size: 16px;
}

.masaha-info-banner__content {
    flex: 1;
}

.masaha-info-banner__content strong {
    display: block;
    font-size: var(--m-text-sm, 14px);
    font-weight: 700;
    color: var(--m-gray-800, #1f2937);
    margin-bottom: 2px;
}

.masaha-info-banner__content span {
    font-size: var(--m-text-sm, 14px);
    color: var(--m-gray-500, #6b7280);
    line-height: 1.5;
}

/* ── Storage Card Title Row ────────────────────────────────────────── */
.masaha-storage-card__title-row {
    display: flex;
    align-items: center;
    gap: var(--m-sp-2, 8px);
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Size Tag (Small / Medium / Large) ─────────────────────────────── */
.masaha-size-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--m-radius-full, 9999px);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.masaha-size-tag--mini {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.masaha-size-tag--mid {
    background: rgba(234, 69, 38, 0.1);
    color: var(--m-primary, #ea4526);
}

.masaha-size-tag--max {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

/* ── Spec Icon Enhancement ─────────────────────────────────────────── */
.masaha-spec__icon {
    width: 32px;
    height: 32px;
    border-radius: var(--m-radius, 8px);
    background: var(--m-gray-50, #f9fafb);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--m-gray-400, #9ca3af);
    font-size: 13px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.masaha-storage-card:hover .masaha-spec__icon,
.masaha-storage-card.has-units .masaha-spec__icon {
    background: var(--m-primary-50, #fef2f0);
    color: var(--m-primary, #ea4526);
}

.masaha-spec__icon--climate {
    color: var(--m-accent, #2980b9);
}

.masaha-storage-card:hover .masaha-spec__icon--climate,
.masaha-storage-card.has-units .masaha-spec__icon--climate {
    background: rgba(41, 128, 185, 0.1);
    color: var(--m-accent, #2980b9);
}

.masaha-spec__info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.masaha-spec__info strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--m-gray-800, #1f2937);
}

.masaha-spec__info small {
    font-size: 11px;
    color: var(--m-gray-400, #9ca3af);
    font-weight: 500;
}

/* ── What Fits Title Icon ──────────────────────────────────────────── */
.masaha-what-fits h5 i {
    color: var(--m-primary, #ea4526);
    margin-right: 6px;
    font-size: 12px;
    opacity: 0.7;
}

html[dir="rtl"] .masaha-what-fits h5 i {
    margin-right: 0;
    margin-left: 6px;
}

/* ── Fits Item Entrance Animation ──────────────────────────────────── */
.masaha-fits-item {
    opacity: 0;
    animation: masaha-fit-reveal 0.4s ease forwards;
}

@keyframes masaha-fit-reveal {
    0% { opacity: 0; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ── Inventory Warning Pulse ───────────────────────────────────────── */
.masaha-inventory-warning {
    position: relative;
    overflow: hidden;
}

.masaha-warning-pulse {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(243, 156, 18, 0.08), transparent);
    animation: masaha-warn-sweep 3s ease-in-out infinite;
}

@keyframes masaha-warn-sweep {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* ── Price Display Enhancement ─────────────────────────────────────── */
.masaha-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.masaha-price-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.masaha-price-currency {
    font-size: 12px;
    font-weight: 700;
    color: var(--m-gray-500, #6b7280);
}

.masaha-price-period {
    font-size: 11px;
    color: var(--m-gray-400, #9ca3af);
    font-weight: 500;
}

.masaha-price-vat-note {
    display: block;
    font-size: 10px;
    color: var(--m-gray-400, #9ca3af);
    margin-top: 2px;
    font-weight: 400;
}

/* ── Card Selected Indicator ───────────────────────────────────────── */
.masaha-card-selected-indicator {
    position: absolute;
    top: var(--m-sp-3, 12px);
    right: var(--m-sp-3, 12px);
    display: none;
    align-items: center;
    gap: 6px;
    background: var(--m-success, #10b981);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--m-radius-full, 9999px);
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

html[dir="rtl"] .masaha-card-selected-indicator {
    right: auto;
    left: var(--m-sp-3, 12px);
}

.masaha-card-selected-indicator i {
    font-size: 12px;
}

.masaha-storage-card.has-units .masaha-card-selected-indicator {
    display: flex;
}

/* ── AC Section Header ─────────────────────────────────────────────── */
.masaha-ac-section-header {
    display: flex;
    align-items: center;
    gap: var(--m-sp-4, 16px);
    margin-bottom: var(--m-sp-5, 20px);
}

.masaha-ac-section-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--m-radius-lg, 12px);
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.1), rgba(41, 128, 185, 0.04));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--m-accent, #2980b9);
    font-size: 20px;
}

.masaha-ac-section-text h4 {
    font-size: var(--m-text-lg, 18px);
    font-weight: 700;
    color: var(--m-gray-800, #1f2937);
    margin: 0 0 2px;
}

.masaha-ac-section-text p {
    font-size: var(--m-text-sm, 14px);
    color: var(--m-gray-500, #6b7280);
    margin: 0;
}

/* ── AC Feature Enhancement ────────────────────────────────────────── */
.masaha-ac-feature__icon {
    width: 32px;
    height: 32px;
    border-radius: var(--m-radius, 8px);
    background: rgba(41, 128, 185, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--m-accent, #2980b9);
    font-size: 13px;
}

.masaha-ac-feature__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.masaha-ac-feature__text strong {
    font-size: 12px;
    font-weight: 600;
    color: var(--m-gray-700, #374151);
}

.masaha-ac-feature__text span {
    font-size: 11px;
    color: var(--m-gray-400, #9ca3af);
    font-weight: 400;
}

/* ── AC Switch Thumb Icon ──────────────────────────────────────────── */
.masaha-ac-switch-thumb i {
    font-size: 10px;
    color: var(--m-gray-400, #9ca3af);
    transition: color 0.3s ease;
}

.masaha-ac-checkbox:checked + .masaha-ac-switch .masaha-ac-switch-thumb i {
    color: var(--m-accent, #2980b9);
}

/* ── Step Nav Spacer ──────────────────────────────────────────────── */
.masaha-step-nav__spacer {
    flex: 1;
}

/* ================================================================
   STEP 1 — STORAGE CARD LAYOUT BUG FIX
   File: step1-layout-fix.css
   Load this AFTER all other stylesheets.
   ================================================================
   
   Bug: Clicking +/- buttons causes the card to expand vertically
   for ~1-2 seconds, then snap back. Buttons also shift left/right.

   Root Causes:
   
   1. masahaPulse keyframes use transform: scale(1.04) on in-flow
      elements (.masaha-inventory-warning, avail badges), which
      periodically inflates the card's intrinsic height.
   
   2. .masaha-qty-btn uses transform: scale() on :hover and :active
      inside a flex row with no fixed outer dimensions. The visual
      scaling causes the browser to recalculate flex layout, shifting
      sibling elements (buttons moving left/right).
   
   3. The 3-col grid defaults to align-items: stretch, so ALL cards
      expand when any single card reflows.
   
   4. The card has transition on transform (250ms) and overflow:hidden.
      Combined with flex-direction:column, any child layout shift
      propagates upward into the card's computed height, which then
      transitions/animates back — creating the "expand then shrink"
      visual for 1-2 seconds.
   
   ================================================================ */


/* ────────────────────────────────────────────────────────────────
   1. GRID: Cards size independently
   ──────────────────────────────────────────────────────────────── */
.masaha-storage-grid {
    align-items: start;
}


/* ────────────────────────────────────────────────────────────────
   2. CARD: Remove transition on transform — the translateY(-4px)
   hover effect is what causes the "snap back" duration feeling.
   Replace with a non-layout transition (box-shadow only).
   ──────────────────────────────────────────────────────────────── */
.masaha-storage-card {
    transition:
        border-color 250ms ease,
        box-shadow 250ms ease !important;
    /* Kill the existing translateY(0) base + will-change */
    transform: none !important;
    will-change: auto !important;
}

.masaha-storage-card:hover {
    /* Lift effect via shadow only — no transform needed */
    transform: none !important;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04) !important;
}


/* ────────────────────────────────────────────────────────────────
   3. QUANTITY BUTTONS: Isolate scale transforms from flex layout.
   
   The key fix: give the button container fixed dimensions and 
   make each button position:relative so its scale transform 
   can't affect flex siblings.
   ──────────────────────────────────────────────────────────────── */
.masaha-quantity-control {
    /* Lock outer dimensions so nothing inside can expand the row */
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    overflow: visible;
    position: relative;
}

.masaha-qty-btn {
    /* Fixed box model — scale() is purely visual, no layout impact */
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    flex: 0 0 42px !important;
    position: relative;
    z-index: 1;
}

.masaha-qty-display {
    /* Lock width — prevents reflow when number changes */
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    flex: 0 0 56px !important;
}


/* ────────────────────────────────────────────────────────────────
   4. CARD FOOTER: Lock height so internal changes can't expand it.
   ──────────────────────────────────────────────────────────────── */
.masaha-storage-card__footer {
    flex: 0 0 auto;
    /* Prevent children from pushing this taller */
    overflow: visible;
}


/* ────────────────────────────────────────────────────────────────
   5. INVENTORY WARNING: Replace scale-based pulse with safe one.
   
   masahaPulse uses transform: scale(1.04) which inflates the
   element's visual box. Since it's in normal flow, the card
   grows with it.
   ──────────────────────────────────────────────────────────────── */
.masaha-inventory-warning {
    animation-name: masahaPulseSafe !important;
}

@keyframes masahaPulseSafe {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.7; }
}


/* ────────────────────────────────────────────────────────────────
   6. AVAILABILITY BADGE (limited): Same scale issue.
   ──────────────────────────────────────────────────────────────── */
.masaha-storage-card__avail-badge--limited {
    animation-name: masahaBadgePulseSafe !important;
}

@keyframes masahaBadgePulseSafe {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
    }
    50% {
        opacity: 0.85;
        box-shadow: 0 2px 14px rgba(245, 158, 11, 0.5);
    }
}


/* ────────────────────────────────────────────────────────────────
   7. POPULAR PILL ICON: Same scale animation override.
   ──────────────────────────────────────────────────────────────── */
.masaha-storage-card__popular-pill i {
    animation-name: masahaBadgePulseSafe !important;
}


/* ────────────────────────────────────────────────────────────────
   8. PRICE DISPLAY: Lock its height to prevent reflow.
   ──────────────────────────────────────────────────────────────── */
.masaha-price-display {
    min-height: 48px;
    flex-shrink: 0;
}


/* ────────────────────────────────────────────────────────────────
   9. ISO VISUALIZER: Prevent float animation from affecting card.
   The hover float animation (masaha-iso-float) uses translateY
   which can push content.
   ──────────────────────────────────────────────────────────────── */
.masaha-unit-iso {
    height: 230px;
    min-height: 230px;
    max-height: 230px;
    flex-shrink: 0;
    overflow: hidden;
}
/* ================================================================
   STEP 1 — STORAGE CARD LAYOUT BUG FIX
   Load AFTER all existing stylesheets.
   ================================================================
   
   ROOT CAUSE:
   createRipple() in utils.js appends a <span class="masaha-ripple">
   directly into the card as a flex child. The span is sized at
   2x max(card.width, card.height) — roughly 1200px. Because there
   is NO CSS for .masaha-ripple anywhere in the codebase, this span
   participates in the flex-column layout and expands the card to
   ~1200px tall. After ~1 second the span is removed (setTimeout
   fallback in createRipple) and the card snaps back to normal.

   The ripple was supposed to be position:absolute (standard material
   ripple pattern), but the CSS definition was never created.

   This also explains the +/- buttons "shifting to the left": the
   ripple span inserted as a flex child pushes all other children
   to reflow around it.

   FIX: Add the missing .masaha-ripple styles + grid alignment.
   ================================================================ */


/* ────────────────────────────────────────────────────────────────
   THE FIX: Position the ripple absolutely so it doesn't affect
   flex layout. This is the standard material ripple pattern.
   ──────────────────────────────────────────────────────────────── */
.masaha-ripple {
    position: absolute !important;
    border-radius: 50%;
    background: rgba(234, 69, 38, 0.12);
    transform: scale(0);
    animation: masahaRippleExpand 0.6s ease-out forwards;
    pointer-events: none;
    z-index: 0;
}

@keyframes masahaRippleExpand {
    0%   { transform: scale(0); opacity: 0.5; }
    100% { transform: scale(1); opacity: 0; }
}


/* ────────────────────────────────────────────────────────────────
   GRID: Cards size independently (prevents cross-card expansion)
   ──────────────────────────────────────────────────────────────── */
.masaha-storage-grid {
    align-items: start;
}
/* ═══════════════════════════════════════════════════════════════════════