@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #D4FF00;
    --primary-hover: #bce600;
    --bg-main: #FFFFFF;
    --bg-chat: #F0F2F5;
    --text-dark: #000000;
    --text-muted: #555555;
    --border-color: #000000;
    --border-light: #E5E7EB;
    --chat-my-msg: #D4FF00;
    --chat-ai-msg: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 601px) {
    body {
        background-color: #E5E7EB;
        /* cor de fundo para PC */
        align-items: center;
    }
}

/* --- LOGO --- */
.logo-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 56px;
    letter-spacing: -2px;
    line-height: 1;
}

.logo-text {
    color: #000;
}

.logo-bubble {
    background-color: var(--primary);
    color: #000;
    padding: 4px 16px 8px 12px;
    border-radius: 40px 40px 40px 0;
    margin-left: 2px;
    font-size: 56px;
    position: relative;
    top: 4px;
}

.subtitle {
    text-align: center;
    margin-top: 16px;
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 400;
}

/* --- LOGIN PAGE --- */
.login-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
}

@media (min-width: 601px) {
    .login-wrapper {
        background-color: var(--bg-main);
        max-width: 480px;
        margin: 40px auto;
        border-radius: 24px;
        box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.08);
    }
}

.login-header {
    margin-bottom: 40px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    background: #FFF;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.03);
}

@media (max-width: 480px) {
    .login-card {
        border: none;
        box-shadow: none;
        padding: 16px;
    }
}

.login-card h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-card p.desc {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(212, 255, 0, 0.4);
}

.btn-primary {
    width: 100%;
    background-color: var(--primary);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.2s, transform 0.1s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-primary:active {
    transform: scale(0.98);
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
}

.login-footer a {
    color: #000;
    font-weight: 700;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* --- CHAT PAGE --- */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-chat);
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    position: relative;
}

@media (max-width: 600px) {
    .chat-container {
        border-left: none;
        border-right: none;
        max-width: 100%;
    }
}

@media (min-width: 601px) {
    .chat-container {
        height: 90vh;
        /* Não ocupa 100% no PC */
        margin-top: 5vh;
        border-radius: 20px;
        border: 1px solid var(--border-light);
        box-shadow: 0px 12px 35px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }
}

.chat-header {
    background: #FFF;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    gap: 12px;
    z-index: 10;
}

.chat-header .avatar {
    background-color: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 18px;
    border: 1px solid #000;
}

.chat-header-info h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 2px 0;
}

.chat-header-info p {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    display: inline-block;
}

.credits-badge {
    margin-left: auto;
    background: #F3F4F6;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #000;
    border: 1px solid var(--border-light);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2h2v4h20v2H22v4h-2v-3.5zm0 0' fill='%23000000' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.msg {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msg-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #000;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
}

.msg-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    align-self: flex-end;
}

.msg.ai {
    align-self: flex-start;
}

.msg.ai .msg-bubble {
    background-color: var(--chat-ai-msg);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-light);
}

.msg.user {
    align-self: flex-end;
}

.msg.user .msg-bubble {
    background-color: var(--chat-my-msg);
    border-bottom-right-radius: 4px;
}

.msg-image {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 8px;
}

.chat-input-area {
    background: #FFF;
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: var(--bg-chat);
    color: #000;
}

.chat-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #2A2A2A;
    border-radius: 24px;
    padding: 0 16px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.chat-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(212, 255, 0, 0.4);
}

.chat-input-wrapper input::placeholder {
    color: #9CA3AF;
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #FFFFFF;
    outline: none;
    width: 100%;
}

.send-btn {
    background: var(--primary);
    color: #000;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
}

.send-btn:hover {
    background: var(--primary-hover);
}

.send-btn:active {
    transform: scale(0.95);
}

.macro-box {
    background: #F9FAFB;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
}

.macro-item span {
    display: block;
}

.macro-val {
    font-weight: 700;
    font-size: 14px;
}

.macro-lbl {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.macro-cal {
    grid-column: span 3;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #E5E7EB;
    font-weight: 700;
    color: #10B981;
}

/* --- PLANS PAGE --- */
.plans-wrapper {
    background-color: var(--bg-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    width: 100%;
}

@media (min-width: 601px) {
    .plans-wrapper {
        background-color: #F9FAFB;
    }
}

.plans-header {
    text-align: center;
    margin-bottom: 56px;
    max-width: 600px;
}

.plans-title {
    font-family: 'Outfit', sans-serif;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    color: #000;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

@media (max-width: 600px) {
    .plans-title {
        font-size: 32px;
    }
}

.plans-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.5;
}

.plans-cards {
    display: flex;
    gap: 32px;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
}

@media (min-width: 800px) {
    .plans-cards {
        flex-direction: row;
        align-items: stretch;
    }
}

.plan-card {
    flex: 1;
    background: #FFF;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.02);
}

.plan-card:hover {
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.06);
}

.plan-card.pro {
    background: #000;
    color: #FFF;
    border-color: #000;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

@media (max-width: 800px) {
    .plan-card.pro {
        transform: scale(1);
    }
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.plan-card-header {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 24px;
}

.plan-card.pro .plan-card-header {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.plan-name {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.pro-text {
    color: var(--primary);
}

.plan-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.4;
}

.plan-card.pro .plan-desc {
    color: #9CA3AF;
}

.plan-card .price {
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.plan-card .currency {
    font-size: 24px;
    font-weight: 600;
    margin-top: 6px;
}

.plan-card .amount {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.plan-card .period {
    font-size: 15px;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    align-self: flex-end;
    margin-bottom: 12px;
}

.plan-card.pro .period {
    color: #9CA3AF;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.feature-item i {
    color: #10B981;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.plan-card.pro .feature-item i {
    color: var(--primary);
}

.feature-item.disabled {
    color: #9CA3AF;
    text-decoration: line-through;
}

.plan-card.pro .feature-item.disabled {
    color: #4B5563;
}

.feature-item.disabled i {
    color: #9CA3AF;
    text-decoration: none;
}

.btn-outline {
    width: 100%;
    border: 2px solid #E5E7EB;
    background: transparent;
    color: #000;
    font-weight: 700;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-outline:hover {
    border-color: #000;
    background: #F9FAFB;
}