/* CC-02b Wave 2 - extracted from FRONTEND/05_communication/first-message-templates.html */
:root {
            --celebration-orange: #f97316;
            --dark-900: #f8fafc;
            --dark-800: #f1f5f9;
            --dark-700: #e2e8f0;
            --dark-600: #cbd5e1;
            --dark-500: #94a3b8;
            --dark-400: #64748b;
            --dark-300: #475569;
            --dark-200: #334155;
            --dark-100: #1e293b;
        }

        .dark {
            --trust-blue: #1e40af;
            /* CC-02a: --love-pink, --marriage-gold, --eternity-blue intentionally
               omitted here — they are canonical brand-color tokens declared in
               FRONTEND/static/css/tokens.css and may not be redeclared per the
               stylelint guard (see DOCS/INDIANMARRIAGE/discussions/CC-02a.md). */
            --success-green: #10b981;
            --wisdom-purple: #7c3aed;
            --celebration-orange: #f97316;
            --dark-900: #0f172a;
            --dark-800: #1e293b;
            --dark-700: #334155;
            --dark-600: #475569;
            --dark-500: #64748b;
            --dark-400: #94a3b8;
            --dark-300: #cbd5e1;
            --dark-200: #e2e8f0;
            --dark-100: #f1f5f9;
        }

        .category-tab {
            transition: all 0.3s ease;
        }

        .category-tab.active {
            background: linear-gradient(135deg, var(--love-pink), var(--wisdom-purple));
            color: white;
        }

        .animate-typing {
            animation: typing 3s steps(30, end) infinite;
        }

        @keyframes typing {
            0% { width: 0; }
            50% { width: 100%; }
            100% { width: 0; }
        }

        .message-preview {
            background: rgba(15, 23, 42, 0.6);
            border: 0.0625rem solid rgba(255, 255, 255, 0.1);
            border-radius: 1rem;
            padding: 1rem;
            margin: 1rem 0;
            position: relative;
        }

        .message-preview::before {
            content: '';
            position: absolute;
            top: -0.5rem;
            left: 1rem;
            width: 0;
            height: 0;
            border-left: 0.5rem solid transparent;
            border-right: 0.5rem solid transparent;
            border-bottom: 0.5rem solid rgba(15, 23, 42, 0.6);
        }

        .success-rate {
            background: linear-gradient(135deg, var(--success-green), var(--celebration-orange));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: bold;
        }

        .copy-button {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .template-card:hover .copy-button {
            opacity: 1;
        }

        .typing-indicator {
            display: inline-block;
            width: 1rem;
            height: 1rem;
            border-radius: 50%;
            background: var(--love-pink);
            animation: pulse 1.5s ease-in-out infinite;
        }

        .floating-heart {
            position: fixed;
            color: var(--love-pink);
            font-size: 1.5rem;
            pointer-events: none;
            animation: float-up 3s ease-out forwards;
        }

        @keyframes float-up {
            0% { transform: translateY(0) rotate(0deg); opacity: 1; }
            100% { transform: translateY(-0.75rem) rotate(360deg); opacity: 0; }
        }

        .glassmorphism {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(1rem);
            border: 0.0625rem solid rgba(255, 255, 255, 0.2);
        }

        .message-stats {
            display: flex;
            align-items: center;
            space-x: 1rem;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 0.0625rem solid rgba(255, 255, 255, 0.1);
        }

        .stat-item {
            display: flex;
            align-items: center;
            space-x: 0.5rem;
        }

        .preview-modal {
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(0.5rem);
        }

        .template-search {
            background: rgba(30, 41, 59, 0.8);
            border: 0.0625rem solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }

        .template-search:focus {
            border-color: var(--love-pink);
            box-shadow: 0 0 0 0.1875rem rgba(236, 72, 153, 0.1);
        }
