        /* === FORM SPECIFIC VARIABLES === */
        /* Note: Main color variables are inherited from shared variables.css */
        :root {
            --border-radius: 16px;
        }
        /* === LOW RESOLUTION SCREEN FIXES === */
        /* Fix menu-toggle icon padding on low resolution screens */
        @media (max-width: 1280px) and (max-height: 720px) {
            .menu-toggle .cross-icon,
            .menu-toggle-left .cross-icon {
                padding: 8px;
            }
            
            .menu-toggle .dots-container {
                padding: 6px;
            }
            
            /* Make achievement emoji icons and circles smaller */
            .achievement-icon,
            .achievement-badge,
            .badge-icon,
            .achievement-circle,
            .badge-circle {
                transform: scale(0.75) !important;
            }
            
            /* Reduce progress bar section height without affecting icons */
            .progress-container {
                padding: 0 !important;
                margin: 0 !important;
            }
            
            .progress-with-stats {
                gap: 0 !important;
                line-height: 1 !important;
            }
        }
        /* === GLOBAL RESET === */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: linear-gradient(135deg, var(--warm-white) 0%, var(--primary-bg-light) 100%);
            color: var(--text-color);
            height: 100vh;
            overflow: hidden;
        }

        /* === MAIN CONTAINER === */
        .container {
            width: min(98vw, 1600px);
            height: 95vh;
            margin: 2.5vh auto;
            background:
                radial-gradient(circle at 20% 80%, rgba(139, 90, 92, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(107, 138, 170, 0.03) 0%, transparent 50%),
                rgba(230, 250, 230, 0.6);
            backdrop-filter: blur(20px);
            border-radius: 25px;
            border: 1px solid rgba(198, 40, 40, 0.3);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            padding: 1rem;
        }

        /* === HEADER SECTION - ORIGINAL LOGO === */
        .header-section {
            flex: 0 0 auto;
            text-align: center;
            padding: 0.5rem 0;
            margin-bottom: 0.5rem;
            background:
                radial-gradient(circle at 20% 80%, rgba(139, 90, 92, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(107, 138, 170, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(122, 132, 113, 0.02) 0%, transparent 70%),
                rgba(230, 250, 230, 0.6);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        }

        .logo-container {
            text-align: center;
            position: relative;
            max-width: clamp(320px, 90vw, 800px);
            margin: 0 auto;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .logo-brand-center {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-width: 150px;
            max-width: clamp(400px, 90vw, 600px);
            margin: 0 auto;
        }

        .logo-main {
            font-family: 'Inter', 'Segoe UI', sans-serif;
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            justify-items: center;
            gap: clamp(0.3rem, 1vw, 0.8rem);
            margin-bottom: clamp(0.2rem, 0.8vh, 0.5rem);
            line-height: 1;
            position: relative;
            z-index: 2;
            width: 100%;
            max-width: clamp(400px, 90vw, 600px);
            margin-left: auto;
            margin-right: auto;
        }

        .donate {
            background: var(--blue-dark);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 600;
            font-size: clamp(1.2rem, 3.5vw, 1.8rem);
            letter-spacing: 0.01em;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            filter: drop-shadow(0 2px 6px rgba(30, 64, 175, 0.3));
            justify-self: end;
            text-align: right;
        }

        .blood {
            color: #C62828 !important;
            font-weight: 800;
            font-size: clamp(1.5rem, 4.5vw, 2.2rem);
            letter-spacing: -0.02em;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            filter: drop-shadow(0 4px 12px rgba(198, 40, 40, 0.4));
            margin: 0;
            justify-self: center;
            text-align: center;
            width: 100%;
            text-shadow: 0 2px 4px rgba(198, 40, 40, 0.3);
        }

        .now {
            display: flex;
            align-items: center;
            gap: clamp(0.2rem, 0.4vw, 0.4rem);
            background: var(--green-teal-dark);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 700;
            font-size: clamp(1.2rem, 3.5vw, 1.8rem);
            letter-spacing: 0.08em;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            filter: drop-shadow(0 2px 6px rgba(5, 150, 105, 0.3));
            justify-self: start;
            text-align: left;
        }

        .now .emoji {
            -webkit-background-clip: initial !important;
            background-clip: initial !important;
            -webkit-text-fill-color: initial !important;
            color: initial !important;
            background: transparent !important;
            font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif !important;
            display: inline !important;
            margin-left: -0.2em !important;
            padding: 0 !important;
            transform: scaleX(-1) scale(1.1) translateY(-0.1em) !important;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
        }

        .heart-logo {
            width: clamp(50px, 8vh, 70px);
            height: clamp(50px, 8vh, 70px);
            margin: clamp(0.3rem, 1vh, 0.8rem) auto clamp(0.5rem, 1.5vh, 1rem);
            background:
                radial-gradient(circle at 25% 25%, rgba(220, 38, 38, 0.4) 0%, transparent 45%),
                radial-gradient(circle at 75% 35%, rgba(34, 197, 94, 0.35) 0%, transparent 45%),
                radial-gradient(circle at 50% 75%, rgba(59, 130, 246, 0.3) 0%, transparent 45%),
                radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.25) 0%, transparent 45%),
                linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(34, 197, 94, 0.12) 33%, rgba(59, 130, 246, 0.12) 66%, rgba(251, 191, 36, 0.1) 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            box-shadow: 0 15px 45px rgba(220, 38, 38, 0.2), 0 10px 30px rgba(34, 197, 94, 0.15), 0 5px 20px rgba(59, 130, 246, 0.1);
            border: 2px solid transparent;
            background-clip: padding-box;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
            flex-shrink: 0;
        }

        .heart-icon {
            filter: drop-shadow(0 3px 6px rgba(220, 38, 38, 0.3));
            position: relative;
            z-index: 100;
            font-size: clamp(1.2rem, 3vh, 1.8rem);
            font-family: 'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji', sans-serif;
            font-weight: 400;
            text-rendering: optimizeLegibility;
            animation: heartbeat 1.5s ease-in-out infinite;
        }

        @keyframes heartbeat {
            0%, 100% { transform: scale(1); }
            8% { transform: scale(1.1); }
            16% { transform: scale(1); }
            24% { transform: scale(1.05); }
            32% { transform: scale(1); }
        }

        .tagline {
            font-family: 'Georgia', 'Times New Roman', serif;
            font-weight: 400;
            font-style: italic;
            font-size: clamp(0.7rem, 1.8vmin, 0.9rem);
            color: var(--primary-dark);
            position: relative;
            margin: clamp(0.1rem, 0.3vmin, 0.2rem) 0 0;
            text-transform: none;
            letter-spacing: clamp(0.02em, 0.15vw, 0.05em);
            line-height: 1.4;
            text-align: center;
            text-shadow: 0 1px 3px rgba(220, 38, 38, 0.3);
            filter: drop-shadow(0 1px 4px rgba(220, 38, 38, 0.3));
        }

        /* === PROGRESS SECTION === */
        .progress-container {
            flex: 0 0 auto;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            padding: 1rem;
            border-radius: var(--border-radius);
            margin-bottom: 0.5rem;
            color: white;
        }

        .progress-content {
            text-align: center;
        }

        .progress-with-stats {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .time-left {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 600;
            min-width: 120px;
        }

        .progress-percentage {
            font-weight: 700;
            font-size: 1.1rem;
            min-width: 120px;
        }

        .achievement-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            position: relative;
            flex: 1;
            min-height: 80px;
        }

        .progress-line-container {
            position: absolute;
            top: 50%;
            left: 5%;
            right: 5%;
            height: 4px;
            transform: translateY(-50%);
            z-index: 1;
        }

        .progress-line-background {
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 2px;
        }

        .progress-line-fill {
            height: 100%;
            background: white;
            border-radius: 2px;
            transition: width 0.5s ease;
            width: 0%;
        }

        .achievement-badge {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            border: 3px solid rgba(255, 255, 255, 0.3);
            background: rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
            position: relative;
            z-index: 2;
            cursor: pointer;
            flex-shrink: 0;
        }
            border-radius: 2px;
        }

        .progress-line-fill {
            height: 100%;
            background: white;
            border-radius: 2px;
            transition: width 0.5s ease;
            width: 2%;
        }

        .achievement-badge {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            border: 2px solid rgba(255, 255, 255, 0.3);
            background: rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
            position: relative;
            z-index: 2;
        }

        .achievement-badge.unlocked {
            border-color: rgba(255, 255, 255, 0.8);
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1.1); }
            50% { transform: scale(1.15); }
        }

        /* === MAIN CONTENT === */
        .main-content {
            flex: 1 1 auto;
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 1rem;
            margin-bottom: 0.5rem;
            overflow: hidden;
            min-height: 0;
        }

        /* === AI ASSISTANT === */
        .ai-assistant {
            background: var(--card-background);
            border-radius: var(--border-radius);
            padding: 1rem;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            overflow-y: auto;
        }

        .ai-header {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--border-color);
        }

        .ai-avatar-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
        }

        .ai-info h3 {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-color);
        }

        .ai-status {
            font-size: 0.75rem;
            color: var(--success-color);
        }

        .ai-message {
            background: linear-gradient(135deg, rgba(198, 40, 40, 0.05), rgba(91, 123, 141, 0.05));
            border-radius: 12px;
            padding: 1rem;
            border-left: 4px solid var(--primary-color);
            margin-bottom: 1rem;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .ai-progress {
            margin-bottom: 1rem;
        }

        .ai-progress-item {
            padding: 0.5rem;
            margin-bottom: 0.5rem;
            background: var(--background-color);
            border-radius: 8px;
            font-size: 0.85rem;
            opacity: 0.6;
            transition: all 0.3s ease;
        }

        .ai-progress-item.active {
            opacity: 1;
            background: rgba(198, 40, 40, 0.1);
            border-left: 3px solid var(--primary-color);
        }

        .ai-tips, .ai-section, .ai-quote, .ai-explainer {
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
            padding: 0.5rem;
            background: var(--background-color);
            border-radius: 6px;
        }

        /* === FORM STEP === */
        .form-step {
            background: var(--card-background);
            border-radius: var(--border-radius);
            padding: 1.5rem;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }

        .step-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-color);
            margin-bottom: 1rem;
            text-align: center;
        }

        .form-input {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            font-size: 1rem;
            background: var(--background-color);
            color: var(--text-color);
            transition: all 0.3s ease;
            margin-bottom: 1rem;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
        }

        .form-radio-group {
            margin-bottom: 1rem;
            border: none;
        }

        .form-radio-group legend {
            position: absolute;
            width: 1px;
            height: 1px;
            margin: -1px;
            padding: 0;
            overflow: hidden;
            clip: rect(0 0 0 0);
            white-space: nowrap;
        }

        .radio-option {
            display: flex;
            align-items: center;
            padding: 0.75rem;
            margin-bottom: 0.5rem;
            background: var(--background-color);
            border: 2px solid var(--border-color);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .radio-option:hover {
            border-color: var(--primary-color);
            background: rgba(198, 40, 40, 0.05);
        }

        .radio-option input[type="radio"],
        .radio-option input[type="checkbox"] {
            margin-right: 0.75rem;
            transform: scale(1.2);
            accent-color: var(--primary-color);
        }

        .form-select {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            font-size: 1rem;
            background: var(--background-color);
            color: var(--text-color);
            transition: all 0.3s ease;
            margin-bottom: 1rem;
            cursor: pointer;
        }

        .form-select:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
        }

        .form-textarea {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            font-size: 1rem;
            background: var(--background-color);
            color: var(--text-color);
            transition: all 0.3s ease;
            margin-bottom: 1rem;
            min-height: 100px;
            resize: vertical;
            font-family: inherit;
        }

        .form-textarea:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
        }

        .form-file {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            font-size: 1rem;
            background: var(--background-color);
            color: var(--text-color);
            transition: all 0.3s ease;
            margin-bottom: 1rem;
            cursor: pointer;
        }

        .form-file:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
        }

        .form-file-container {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.5rem;
            width: 100%;
        }

        .file-status-text {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .dev-validation-container {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.25rem;
            margin-top: 0.75rem;
        }

        .dev-validation-btn {
            background: rgba(33, 150, 243, 0.15);
            border: 1px solid rgba(33, 150, 243, 0.4);
            color: #1565c0;
            font-weight: 600;
            padding: 0.4rem 0.75rem;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.85rem;
        }

        .dev-validation-btn[data-state="off"] {
            background: rgba(244, 67, 54, 0.15);
            border-color: rgba(244, 67, 54, 0.4);
            color: #c62828;
        }

        .dev-validation-helper {
            font-size: 0.75rem;
            color: rgba(0, 0, 0, 0.45);
        }

        body.validation-disabled .form-step {
            outline: 2px dashed rgba(244, 67, 54, 0.35);
            outline-offset: 6px;
        }

        .agree-option {
            background: rgba(255, 255, 255, 0.95);
            border: 2px solid var(--border-color);
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            color: var(--text-color);
        }

        .agree-option:hover {
            border-color: var(--primary-color);
            background: rgba(198, 40, 40, 0.05);
        }

        .agree-option input[type="checkbox"] {
            margin: 0;
            transform: scale(1.2);
            accent-color: var(--primary-color);
            flex-shrink: 0;
        }

        .form-help {
            font-size: 0.85rem;
            color: var(--text-secondary);
            background: rgba(255, 255, 255, 0.8);
            padding: 0.75rem;
            border-radius: 8px;
            margin-top: 1rem;
            border-left: 3px solid var(--accent-color);
        }

        .field-error {
            background: rgba(198, 40, 40, 0.1);
            color: var(--error-color);
            padding: 0.5rem;
            border-radius: 6px;
            font-size: 0.85rem;
            margin-top: 0.5rem;
            border-left: 3px solid var(--error-color);
        }

        /* === NAVIGATION BUTTONS === */
        .nav-buttons {
            flex: 0 0 auto;
            background: var(--card-background);
            padding: 0.75rem;
            display: flex;
            gap: 0.5rem;
            justify-content: space-between;
            border-top: 1px solid var(--border-color);
            border-radius: 0 0 25px 25px;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        }

        .nav-btn {
            flex: 1;
            padding: 0.75rem;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .btn-prev {
            background: var(--secondary-color);
            color: white;
        }

        .btn-prev:hover {
            background: var(--secondary-dark);
            transform: translateY(-2px);
        }

        .btn-save {
            background: var(--warning-color);
            color: white;
        }

        .btn-save:hover {
            background: var(--orange-amber);
            transform: translateY(-2px);
        }

        .btn-reset {
            background: var(--error-color);
            color: white;
        }

        .btn-reset:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
        }

        .btn-next {
            background: var(--primary-color);
            color: white;
        }

        .btn-next:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
        }

        /* === REVIEW STYLES === */
        .review-scroll-container {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            background: rgba(255, 255, 255, 0.85);
            border: 1px solid rgba(0, 0, 0, 0.08);
            border-radius: 12px;
            padding: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            max-height: 200px;
            min-height: 150px;
            margin-bottom: 16px;
        }

        .review-scroll-container table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }

        .review-scroll-container th {
            text-align: left;
            padding: 6px 8px;
            font-weight: 600;
            color: var(--text-color);
        }

        .review-scroll-container td {
            padding: 6px 8px;
            color: var(--text-secondary);
        }

        .review-scroll-container tr:nth-child(even) {
            background: rgba(0, 0, 0, 0.02);
        }

        /* === MOBILE RESPONSIVENESS === */
        @media (max-width: 768px) {
            body {
                overflow: hidden;
            }

            .container {
                width: 100vw;
                /* Use dynamic viewport height to account for mobile system UI */
                height: 100vh;
                height: 100dvh; /* Better for real mobile devices */
                margin: 0;
                border-radius: 0;
                padding: 0.5rem;
                display: flex;
                flex-direction: column;
            }

            .main-content {
                grid-template-columns: 1fr;
                gap: 0.5rem;
                flex: 1;
                display: flex !important;
                flex-direction: column !important;
                overflow: hidden !important;
                /* Reserve space for fixed navigation */
                margin-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
            }

            .ai-assistant {
                display: none;
            }

            .progress-content {
                flex-direction: column;
                gap: 0.5rem;
            }

            /* Fix achievement container for mobile with dynamic spacing */
            .achievement-container {
                display: flex !important;
                align-items: center !important;
                justify-content: space-between !important; /* Use space-between for edge alignment */
                gap: 0 !important; /* Remove gap, use space-between instead */
                width: 100% !important;
                min-height: 60px !important;
                padding: 0 0.5rem !important; /* Add small horizontal padding */
                margin: 0 !important;
                flex-wrap: nowrap !important;
                box-sizing: border-box !important;
            }

            /* Make header and progress sections more compact */
            .header-section {
                flex: 0 0 auto;
                padding: 0.25rem 0;
                margin-bottom: 0.25rem;
            }

            .progress-container {
                flex: 0 0 auto;
                padding: 0.5rem 0; /* Remove horizontal padding */
                margin-bottom: 0.25rem;
                overflow: hidden; /* Prevent badge overflow */
            }

            .progress-line-container {
                position: absolute;
                top: 50%;
                left: 5%;
                right: 5%;
                height: 3px;
                transform: translateY(-50%);
                z-index: 1;
            }

            /* Extra narrow screens - catch all narrow devices including Galaxy Z Flip and similar */
            @media (max-width: 430px) {
                /* Remove ALL padding that pushes badges inward */
                .progress-container {
                    padding: 0 !important; /* Remove the 8px horizontal padding */
                }

                .achievement-container,
                .progress-container .progress-content .progress-with-stats .achievement-container {
                    gap: 0 !important;
                    padding: 0 !important;
                    margin: 0 !important;
                    justify-content: space-evenly !important; /* Even distribution instead of edge alignment */
                    width: 100% !important;
                }
                
                .achievement-badge {
                    width: clamp(28px, 6vw, 36px);
                    height: clamp(28px, 6vw, 36px);
                    font-size: clamp(0.7rem, 2.5vw, 1rem);
                    margin: 0 !important;
                    padding: 0 !important;
                }

                /* Ensure first badge has no left margin */
                .achievement-badge:first-child {
                    margin-left: 0 !important;
                }
                
                .achievement-badge div {
                    font-size: clamp(0.7rem, 2.5vw, 1rem) !important;
                }
            }

            .time-left, .progress-percentage {
                font-size: 0.8rem;
                min-width: auto;
            }

            .achievement-badge {
                width: clamp(32px, 8vw, 50px); /* Responsive width based on screen */
                height: clamp(32px, 8vw, 50px); /* Responsive height based on screen */
                font-size: clamp(0.8rem, 3vw, 1.4rem); /* Responsive font size */
                display: flex;
                align-items: center;
                justify-content: center;
                flex-shrink: 0;
                min-width: 32px; /* Minimum size to ensure readability */
                min-height: 32px;
                margin: 0 !important; /* Remove any margins */
                padding: 0 !important; /* Remove any padding */
                box-sizing: border-box !important;
            }

            .achievement-badge div {
                font-size: clamp(0.8rem, 3vw, 1.4rem) !important; /* Responsive font size */
                display: flex;
                align-items: center;
                justify-content: center;
                width: 100%;
                height: 100%;
            }

            .logo-main {
                font-size: 1.5rem;
            }

            .nav-btn {
                font-size: 0.8rem;
                padding: 0.6rem;
            }

            /* Form step needs bottom padding to account for fixed navigation */
            .form-step {
                padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
                margin-bottom: 0 !important;
                overflow-y: auto !important;
            }

            /* Ensure navigation buttons are always visible on mobile - FIXED POSITION */
            .nav-buttons {
                position: fixed !important;
                bottom: 0 !important;
                left: 0 !important;
                right: 0 !important;
                width: 100% !important;
                z-index: 100 !important;
                background: var(--card-background) !important;
                border-top: 1px solid var(--border-color) !important;
                box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
                padding: 0.5rem !important; /* Reduced from 0.75rem */
                margin: 0 !important;
                /* Account for mobile device safe areas */
                padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px)) !important;
                bottom: env(safe-area-inset-bottom, 0px) !important;
            }

            .donate, .now {
                font-size: clamp(1rem, 3.5vw, 1.4rem);
            }

            .blood {
                font-size: clamp(1.3rem, 4.5vw, 1.8rem);
            }

            .heart-logo {
                width: clamp(40px, 6vh, 60px);
                height: clamp(40px, 6vh, 60px);
            }

            .heart-icon {
                font-size: clamp(1rem, 2.5vh, 1.5rem);
            }

            .tagline {
                font-size: clamp(0.6rem, 1.5vmin, 0.8rem);
            }
        }

        /* === ANIMATIONS === */
        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .form-field-animated {
            animation: slideInRight 0.5s ease-out;
        }

        /* === SCROLLBAR STYLING === */
        .ai-assistant::-webkit-scrollbar,
        .form-step::-webkit-scrollbar,
        .review-scroll-container::-webkit-scrollbar {
            width: 6px;
        }

        .ai-assistant::-webkit-scrollbar-track,
        .form-step::-webkit-scrollbar-track,
        .review-scroll-container::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.1);
            border-radius: 3px;
        }

        .ai-assistant::-webkit-scrollbar-thumb,
        .form-step::-webkit-scrollbar-thumb,
        .review-scroll-container::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 3px;
        }

        .ai-assistant::-webkit-scrollbar-thumb:hover,
        .form-step::-webkit-scrollbar-thumb:hover,
        .review-scroll-container::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.5);
        }
    

/* Only keep menu toggle fixes - don't override container layout */
@media (min-width: 769px) and (max-height: 768px) {
    :root {
        --toggle-button-size: 44px !important;
        --toggle-menu-gap: 6px !important;
    }

    .menu-container, .menu-container-left {
        --button-size: 44px;
        --menu-gap: 6px;
    }

    .menu-toggle, .menu-toggle-left {
        width: 44px !important;
        height: 44px !important;
    }

    .menu-btn, .menu-btn-left {
        width: 44px !important;
        height: 44px !important;
    }
}
/* Enhanced Progress Bar Styles from standalone */
.progress-with-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.time-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    min-width: 100px;
    flex-shrink: 0;
}

.progress-percentage {
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 100px;
    flex-shrink: 0;
    text-align: right;
}

/* Achievement Container - Horizontal Layout */
.achievement-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    position: relative !important;
    flex: 1 !important;
    min-height: 80px !important;
    max-width: none !important;
    margin: 0 !important;
}

.progress-line-container {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 4px;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-line-background {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.progress-line-fill {
    height: 100%;
    background: white;
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
}

.achievement-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    cursor: pointer;
    flex-shrink: 0;
}

.achievement-badge.unlocked {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.15); }
}

.milestone-dots {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 0;
    transform: translateY(-50%);
    z-index: 1;
}

.milestone-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    position: absolute;
    top: -4px;
}

.milestone-dot.m1 { left: 15%; }
.milestone-dot.m2 { left: 30%; }
.milestone-dot.m3 { left: 45%; }
.milestone-dot.m4 { left: 60%; }
.milestone-dot.m5 { left: 75%; }
.progress-container .progress-content .progress-with-stats .achievement-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    position: relative !important;
    flex: 1 !important;
    min-height: 80px !important;
    max-width: none !important;
    margin: 0 !important;
    width: 100% !important;
}
/* Enhanced emoji popup effects */
.achievement-badge div {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.achievement-badge:hover div {
    transform: scale(1.2);
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.5)) 
            drop-shadow(0 0 20px rgba(255,255,255,0.4));
}

.achievement-badge.unlocked div {
    animation: emojiPulse 2s infinite ease-in-out;
}

@keyframes emojiPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4))
                drop-shadow(0 0 15px rgba(255,255,255,0.6));
    }
}

/* Individual emoji special effects */
.achievement-badge[data-step="1"] div {
    animation: heartbeat 3s infinite ease-in-out;
}

.achievement-badge[data-step="2"] div {
    animation: emergency 1.5s infinite ease-in-out;
}

.achievement-badge[data-step="6"] div {
    animation: celebration 4s infinite ease-in-out;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.05); }
    28% { transform: scale(1); }
    42% { transform: scale(1.05); }
    70% { transform: scale(1); }
}

@keyframes emergency {
    0%, 100% { 
        filter: drop-shadow(0 2px 8px rgba(255,0,0,0.3));
    }
    50% { 
        filter: drop-shadow(0 2px 8px rgba(255,0,0,0.8))
                drop-shadow(0 0 20px rgba(255,0,0,0.6));
    }
}

@keyframes celebration {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.05) rotate(2deg); }
    50% { transform: scale(1.1) rotate(0deg); }
    75% { transform: scale(1.05) rotate(-2deg); }
}
/* Reduce spacing between tagline and toggle */
.tagline-container {
    margin-bottom: 0.5rem;
}

/* Development Toggle - Dynamic States */
.dev-validation-toggle {
    background: var(--toggle-switch-off);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
    margin-top: 0;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.dev-validation-toggle.disabled {
    background: var(--primary-light);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 14px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    border-radius: 14px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 1px;
    bottom: 1px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(14px);
}

.toggle-label {
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--white) !important;
}

.toggle-label::after {
    content: "Enabled";
}

.dev-validation-toggle.disabled .toggle-label::after {
    content: "Disabled";
}
/* Hide time and progress percentage on mobile */
@media (max-width: 768px) {
    .time-left,
    .progress-percentage {
        display: none;
    }
    
    /* Slightly larger badge size for mobile */
    .achievement-badge {
        width: 44px;
        height: 44px;
        font-size: 1.55rem;
    }
    
    .achievement-badge div {
        font-size: 1.55rem !important;
    }
    
    /* Remove padding from progress container on mobile */
    .progress-container {
        padding: 0 8px !important;
    }
    
    /* Center badge group in middle of screen */
    .progress-container .progress-content .progress-with-stats .achievement-container {
        padding: 0 !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        min-height: auto !important;
        flex: none !important;
    }
    
    /* Remove any margins from individual badges */
    .achievement-badge {
        margin: 0 !important;
    }
    
    .progress-with-stats {
        padding: 0;
        margin: 0 auto;
        height: 80px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    /* Adjust progress line for smaller badges */
    .progress-line-background {
        height: 2px;
    }
    
    .progress-line-fill {
        height: 2px;
    }
}

/* Desktop-specific: Slightly scale down house emoji */
@media (min-width: 769px) {
    .house-emoji-container {
        font-size: 2.2rem !important;
    }
}

/* Galaxy Z Flip and very narrow screens - ONLY for extremely narrow devices */
@media (max-width: 280px) {
    .achievement-container {
        padding: 0 !important;
        margin: 0 !important;
        justify-content: space-evenly !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .achievement-badge {
        width: 28px !important;
        height: 28px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    .achievement-badge div,
    .house-emoji-container {
        font-size: 0.8rem !important;
    }

    /* Remove space-consuming elements on extremely narrow screens */
    .progress-line-container {
        display: none !important;
    }

    .milestone-dots {
        display: none !important;
    }
}
