        /* ========================================== */
        /* P2: AUTH MODALS CSS                       */
        /* ========================================== */

        /* Modal overlay */
        .auth-modal {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            animation: fadeIn 0.2s ease-in-out;
        }

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

        /* Modal content box */
        .auth-modal-content {
            background-color: var(--bg-primary);
            margin: 5% auto;
            padding: 30px 40px;
            border: 1px solid var(--border-primary);
            border-radius: 12px;
            width: 90%;
            max-width: 480px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            animation: slideDown 0.3s ease-out;
            position: relative;
        }

        @keyframes slideDown {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        /* Close button */
        .auth-modal-close {
            color: var(--text-secondary);
            float: right;
            font-size: 32px;
            font-weight: bold;
            line-height: 1;
            cursor: pointer;
            transition: color 0.2s;
            position: absolute;
            right: 20px;
            top: 20px;
        }

        .auth-modal-close:hover,
        .auth-modal-close:focus {
            color: var(--text-primary);
        }

        /* Modal title */
        .auth-modal-content h2 {
            margin-top: 0;
            margin-bottom: 10px;
            color: var(--text-primary);
            font-size: 24px;
        }

        /* Modal description */
        .auth-modal-desc {
            color: var(--text-secondary);
            margin-bottom: 25px;
            font-size: 14px;
        }

        /* Form groups */
        .auth-form-group {
            margin-bottom: 20px;
        }

        .auth-form-group label {
            display: block;
            margin-bottom: 6px;
            color: var(--text-primary);
            font-weight: 500;
            font-size: 14px;
        }

        .auth-form-group input[type="email"],
        .auth-form-group input[type="password"] {
            width: 100%;
            padding: 12px 14px;
            border: 1px solid var(--border-primary);
            border-radius: 6px;
            font-size: 15px;
            background-color: var(--bg-secondary);
            color: var(--text-primary);
            transition: border-color 0.2s, box-shadow 0.2s;
            box-sizing: border-box;
        }

        .auth-form-group input[type="email"]:focus,
        .auth-form-group input[type="password"]:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        }

        /* Password hint */
        .auth-hint {
            display: block;
            margin-top: 5px;
            color: var(--text-tertiary);
            font-size: 12px;
        }

        /* Checkbox group */
        .auth-checkbox-group label {
            display: flex;
            align-items: center;
            cursor: pointer;
            font-weight: normal;
        }

        .auth-checkbox-group input[type="checkbox"] {
            margin-right: 8px;
            cursor: pointer;
            width: 18px;
            height: 18px;
        }

        /* Submit button */
        .auth-submit-btn {
            width: 100%;
            padding: 14px 20px;
            background: linear-gradient(135deg, #3498db, #2980b9);
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            margin-top: 10px;
        }

        .auth-submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
        }

        .auth-submit-btn:active {
            transform: translateY(0);
        }

        /* Switch between login/register */
        .auth-switch {
            text-align: center;
            margin-top: 20px;
            color: var(--text-secondary);
            font-size: 14px;
        }

        .auth-switch a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
            margin-left: 5px;
            transition: color 0.2s;
        }

        .auth-switch a:hover {
            color: var(--text-primary);
            text-decoration: underline;
        }

        /* User menu in header (already exists, but ensure styling) */
        .auth-header {
            margin-bottom: 20px;
            padding: 15px;
            background-color: var(--bg-secondary);
            border-radius: 8px;
            border: 1px solid var(--border-primary);
        }

        .anonymous-notice {
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.6;
        }

        .anonymous-notice a {
            color: var(--primary-color);
            text-decoration: underline;
            cursor: pointer;
        }

        .user-menu {
            display: none;
            align-items: center;
            justify-content: space-between;
        }

        .user-menu.active {
            display: flex;
        }

        .user-email {
            color: var(--text-primary);
            font-weight: 600;
            font-size: 15px;
        }

        .logout-btn {
            padding: 8px 16px;
            background-color: var(--danger-color);
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: background-color 0.2s, transform 0.1s;
        }

        .logout-btn:hover {
            background-color: #c0392b;
            transform: translateY(-1px);
        }

        .logout-btn:active {
            transform: translateY(0);
        }

        /* Responsive design */
        @media (max-width: 600px) {
            .auth-modal-content {
                width: 95%;
                padding: 25px 20px;
                margin: 10% auto;
            }

            .auth-modal-content h2 {
                font-size: 20px;
            }

            .auth-form-group input[type="email"],
            .auth-form-group input[type="password"] {
                font-size: 16px; /* Prevent zoom on iOS */
            }
        }

        /* ============================================================ */
        /* Trust & Security Section                                      */
        /* ============================================================ */
        .trust-section {
            max-width: 900px;
            margin: 3rem auto;
            padding: 2rem;
            background: var(--bg-secondary);
            border-radius: 12px;
        }

        .trust-section h2 {
            text-align: center;
            margin-bottom: 2rem;
            font-size: 1.5rem;
        }

        .trust-badges {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2.5rem;
        }

        .trust-badge {
            text-align: center;
            padding: 1.5rem 1rem;
            background: var(--bg-primary);
            border-radius: 8px;
            box-shadow: 0 1px 3px var(--shadow-color);
        }

        .trust-badge-icon {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        .trust-badge h3 {
            font-size: 1rem;
            margin-bottom: 0.5rem;
        }

        .trust-badge p {
            font-size: 0.85rem;
            color: var(--text-secondary);
            line-height: 1.4;
        }

        .trust-how-it-works {
            margin-bottom: 2rem;
        }

        .trust-how-it-works h3 {
            text-align: center;
            margin-bottom: 1.5rem;
        }

        .trust-steps {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .trust-step {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            padding: 1rem;
            background: var(--bg-primary);
            border-radius: 8px;
        }

        .step-number {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 2rem;
            height: 2rem;
            background: var(--btn-primary);
            color: #fff;
            border-radius: 50%;
            font-weight: bold;
            font-size: 0.9rem;
        }

        .trust-step p {
            margin: 0;
            line-height: 1.5;
        }

        .trust-manual {
            text-align: center;
            padding: 1.5rem;
            background: var(--bg-primary);
            border-radius: 8px;
            border-left: 4px solid var(--btn-primary);
        }

        .trust-manual h3 {
            margin-bottom: 0.75rem;
        }

        .trust-manual p {
            font-size: 0.9rem;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        @media (max-width: 600px) {
            .trust-badges {
                grid-template-columns: 1fr;
            }
            .trust-section {
                padding: 1rem;
                margin: 1.5rem auto;
            }
        }

