/* DEMO PROFISSIONAL COM TELEGRAM */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.demo-header {
    background: rgba(255, 255, 255, 0.98);
    padding: 20px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.demo-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.back-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start;
    font-size: 15px;
    transition: transform 0.2s;
}

.back-link:hover {
    transform: translateX(-3px);
}

.demo-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.demo-header p {
    color: #666;
    font-size: 15px;
}

/* TABS */
.demo-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 30px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.tab-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    color: #555;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.tab-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
}

.tab-icon {
    font-size: 20px;
}

/* CONTENT */
.demo-content {
    display: none;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.demo-content.active {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    align-items: start;
}

/* CELULAR */
.phone-mockup {
    position: sticky;
    top: 120px;
}

.phone-frame {
    width: 360px;
    height: 720px;
    background: #1a1a1a;
    border-radius: 35px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 18px 18px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #e5ddd5;
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* TELEGRAM HEADER */
.telegram-header {
    background: #2481cc;
    color: white;
    padding: 50px 15px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.back-icon, .menu-icon {
    font-size: 22px;
    cursor: pointer;
    opacity: 0.9;
}

.chat-title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 10px;
}

.bot-avatar {
    font-size: 28px;
}

.bot-name {
    font-size: 16px;
    font-weight: 600;
}

/* CHAT */
.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    animation: slideIn 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    background: white;
    align-self: flex-start;
    border-radius: 4px 12px 12px 12px;
}

.message.user {
    background: #dcf8c6;
    align-self: flex-end;
    border-radius: 12px 4px 12px 12px;
}

.message b {
    font-weight: 600;
}

.message i {
    font-style: italic;
    color: #666;
}

.message-time {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.keyboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.keyboard-btn {
    background: #f0f0f0;
    border: 1px solid #d0d0d0;
    padding: 8px 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.keyboard-btn:hover {
    background: #e0e0e0;
}

/* INPUT */
.chat-input {
    background: #f0f0f0;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #d0d0d0;
}

.emoji-btn, .send-btn {
    font-size: 20px;
    opacity: 0.7;
    cursor: pointer;
}

.chat-input input {
    flex: 1;
    border: none;
    background: white;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

/* CONTROLS */
.demo-controls {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.demo-controls h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.demo-controls > p {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
}

.demo-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.btn-play, .btn-reset {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-play {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-reset {
    background: #f5f5f5;
    color: #666;
}

.btn-reset:hover {
    background: #e8e8e8;
}

.steps-list {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
}

.steps-list h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.steps-list ul {
    list-style: none;
}

.steps-list li {
    padding: 10px 0;
    padding-left: 28px;
    font-size: 15px;
    color: #555;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.steps-list li:last-child {
    border-bottom: none;
}

.steps-list li:before {
    content: "○";
    position: absolute;
    left: 0;
    color: #999;
    font-size: 18px;
}

.steps-list li.active {
    color: #667eea;
    font-weight: 600;
}

.steps-list li.active:before {
    content: "●";
    color: #667eea;
}

.steps-list li.done {
    color: #4caf50;
}

.steps-list li.done:before {
    content: "✓";
    color: #4caf50;
}

/* FOOTER */
.demo-footer {
    text-align: center;
    padding: 50px 20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    margin: 40px 20px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.demo-footer h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.demo-footer p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.main-cta {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.main-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .demo-content.active {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .phone-mockup {
        position: relative;
        top: 0;
        margin: 0 auto;
    }

    .phone-frame {
        width: 320px;
        height: 640px;
    }

    .demo-controls {
        padding: 25px;
    }
}

@media (max-width: 640px) {
    .demo-header h1 {
        font-size: 22px;
    }

    .demo-tabs {
        flex-direction: column;
        max-width: 300px;
    }

    .phone-frame {
        width: 300px;
        height: 600px;
        border-radius: 30px;
    }

    .demo-footer h2 {
        font-size: 22px;
    }
}
