        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
            background: #0b141a;
        }

        .whatsapp-container {
            display: flex;
            flex-direction: column;
            height: 100vh;
            background: #0b141a;
            max-width: 100%;
            overflow: hidden;
        }

        .whatsapp-header {
            background: #1f2c34;
            color: white;
            padding: 12px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.12);
            flex-shrink: 0;
        }

        .header-icon {
            width: 40px;
            height: 40px;
            background: rgba(255,255,255,0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 14px;
        }

        .header-title {
            flex: 1;
        }

        .header-title h1 {
            font-size: 17px;
            font-weight: 600;
            margin-bottom: 2px;
        }

        .header-title p {
            font-size: 13.5px;
            opacity: 0.85;
        }

        .messages-container {
            flex: 1;
            overflow-y: auto;
            padding: 12px 8px;
            display: flex;
            flex-direction: column;
            gap: 2px;
            background: #0b141a url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%230b141a" width="100" height="100"/><circle cx="50" cy="50" r="1" fill="%23222" opacity="0.2"/></svg>');
        }

        .message-group {
            display: flex;
            margin-bottom: 20px;
            animation: slideIn 0.3s ease-out;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .message-group.other {
            justify-content: flex-start;
        }

        .message-group.self {
            justify-content: flex-end;
        }

        .message-bubble {
            max-width: 90%;
            padding: 8px 12px;
            border-radius: 18px;
            font-size: 14px;
            line-height: 1.4;
            word-wrap: break-word;
            position: relative;
        }

        .message-group.other .message-bubble::before {
            content: '';
            position: absolute;
            top: 0;
            left: -8px;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 0 8px 8px 0;
            border-color: transparent #1f2c34 transparent transparent;
        }

        .message-group.other .message-bubble {
            background: #1f2c34;
            color: #e9edef;
            box-shadow: 0 1px 1px rgba(0,0,0,0.3);
            border-top-left-radius: 0;
        }

        .message-group.self .message-bubble {
            background: #005c4b;
            color: #e9edef;
            border-bottom-right-radius: 4px;
        }

        .offer-bubble {
            background: #1f2c34;
            border-radius: 12px;
            padding: 4px;
            max-width: 100%;
        }

        .offer-title {
            font-weight: 600;
            color: #e9edef;
            font-size: 15px;
            margin-bottom: 4px;
            padding: 10px 12px 0 12px;
        }

        .offer-desc {
            font-size: 14px;
            color: #d1d7db;
            margin-bottom: 6px;
            line-height: 1.3;
            padding: 0 12px;
        }

        .offer-discount {
            background: #202c33;
            border: 1px solid #00a884;
            color: #00a884;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            display: inline-block;
            margin: 2px 12px;
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            animation: fadeIn 0.3s ease-out;
        }

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

        .modal-content {
            background: white;
            border-radius: 20px;
            padding: 24px;
            max-width: 90%;
            width: 100%;
            max-height: 80vh;
            text-align: center;
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
            animation: slideUp 0.3s ease-out;
        }

        @keyframes slideUp {
            from {
                transform: translateY(20px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .modal-icon {
            font-size: 48px;
            margin-bottom: 12px;
        }

        .modal-title {
            font-size: 18px;
            font-weight: 600;
            color: #075e54;
            margin-bottom: 12px;
        }

        .modal-text {
            font-size: 14px;
            color: #666;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .modal-button {
            background: #075e54;
            color: white;
            border: none;
            padding: 12px 28px;
            border-radius: 24px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
            width: 100%;
            max-width: 200px;
        }

        .modal-button:hover {
            background: #064e47;
        }

        .modal-button:active {
            transform: scale(0.98);
        }

        .timestamp {
            font-size: 11px;
            color: #aaa;
            margin-top: 2px;
            text-align: center;
            margin: 12px 0 8px 0;
        }

        .info-message {
            text-align: center;
            color: #666;
            font-size: 12px;
            padding: 16px;
            background: rgba(0,0,0,0.02);
            border-radius: 12px;
            margin: 16px 8px;
        }

        .scroll-indicator {
            text-align: center;
            color: #999;
            font-size: 12px;
            padding: 8px;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.5; }
            50% { opacity: 1; }
        }

        .sender-name {
            font-size: 11px;
            color: #666;
            margin-bottom: 2px;
            margin-left: 8px;
        }

        .message-group.other {
            justify-content: flex-start;
            align-items: flex-start;
            gap: 16px;
        }

        .message-group.self {
            justify-content: flex-end;
        }

        .avatar {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 12px;
            flex-shrink: 0;
            color: white;
        }

        .avatar.maria {
            background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
        }

        .avatar.joao {
            background: linear-gradient(135deg, #4ECDC4 0%, #6FE3E0 100%);
        }

        .avatar.ana {
            background: linear-gradient(135deg, #FFD93D 0%, #FFE66D 100%);
            color: #333;
        }

        .avatar.carlos {
            background: linear-gradient(135deg, #95E1D3 0%, #B8F0E0 100%);
            color: #333;
        }

        .avatar.sophie {
            background: linear-gradient(135deg, #B19CD9 0%, #D4A5F0 100%);
        }

        .message-content {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .message-group.other .message-content {
            align-items: flex-start;
        }

        .message-group.self .message-content {
            align-items: flex-end;
        }
.avatar.admin { background: linear-gradient(135deg, #1f2c34 0%, #30414d 100%); color: #fff; border: 1px solid #53bdeb; }
