/* GetintoAI — clean creator hub */
:root {
    --bg: #0c0c0e;
    --surface: #141418;
    --surface-hover: #1a1a20;
    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    --accent: #e85d04;
    --accent-hover: #f48c06;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 12px;
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    width: 100%;
    flex: 1;
}

/* Header */
.profile-header {
    text-align: center;
    margin-bottom: 36px;
}

.logo-container {
    margin-bottom: 16px;
}

.profile-logo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    background: var(--surface);
}

.brand-name {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-bottom: 8px;
}

.tagline {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 400;
    max-width: 480px;
    margin: 0 auto;
}

/* CTA */
.action-section {
    margin-bottom: 44px;
    display: flex;
    justify-content: center;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: var(--radius);
    font-size: 1.02rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.primary-btn:hover {
    background: var(--accent-hover);
}

.primary-btn:active {
    transform: scale(0.98);
}

/* Sections */
.section-block {
    margin-bottom: 36px;
}

.section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-weight: 600;
    text-align: left;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .container {
        padding: 32px 16px 24px;
    }

    .brand-name {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 0.92rem;
    }

    .section-title {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }

    .grid-2col {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .link-card {
        padding: 12px 14px;
        gap: 12px;
        border-radius: 12px;
    }

    .card-icon {
        width: 38px;
        height: 38px;
        font-size: 1.18rem;
    }

    .card-content h3 {
        font-size: 0.95rem;
    }

    .card-pills {
        gap: 5px;
        flex-wrap: wrap;
    }

    .pill {
        font-size: 0.68rem;
        padding: 2px 5px;
    }

    .card-arrow {
        display: none;
    }
}

/* Link cards */
.link-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 16px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    width: 100%;
    font-family: inherit;
    cursor: pointer;
}

button.link-card {
    color: inherit;
}

.link-card:hover {
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.link-card.chat-card {
    grid-column: 1 / -1;
    border-color: rgba(232, 93, 4, 0.35);
    background: rgba(232, 93, 4, 0.06);
}

.link-card.chat-card:hover {
    border-color: rgba(232, 93, 4, 0.55);
    background: rgba(232, 93, 4, 0.12);
}

.card-icon {
    font-size: 1.35rem;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.link-card.chat-card .card-icon {
    color: var(--accent);
    background: rgba(232, 93, 4, 0.14);
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.card-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.card-desc {
    font-size: 0.85rem;
    color: #94a3b8;
}

.card-pills {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
    margin-top: 4px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.pill-orange {
    background: rgba(255, 112, 0, 0.14);
    color: #ff7000;
    border: 1px solid rgba(255, 112, 0, 0.25);
}

.pill-blue {
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.card-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.4;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.link-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Footer */
footer {
    text-align: center;
    padding: 28px 20px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.82rem;
}

.legal-links {
    margin-top: 6px;
}

.legal-links a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: var(--text);
}

/* Chat widget */
.chat-widget {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    right: 24px;
    z-index: 9999;
}

.chat-toggle-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.chat-toggle-btn:active {
    transform: scale(0.97);
}

.chat-box {
    position: absolute;
    bottom: 68px;
    right: 0;
    width: 340px;
    max-width: calc(100vw - 48px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.chat-box.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.chat-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg);
    border: 1px solid var(--border);
}

.chat-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.status-indicator {
    font-size: 0.72rem;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
}

.close-chat-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-chat-btn:hover {
    color: var(--text);
}

.chat-body {
    padding: 16px;
    min-height: 220px;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
    margin-bottom: 2px;
}

.chat-msg-row.bot {
    justify-content: flex-start;
}

.chat-msg-row.user {
    justify-content: flex-end;
}

.chat-msg-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
    margin-bottom: 2px;
}

.chat-msg-sender {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-bottom: 3px;
    font-weight: 500;
}

.chat-msg {
    padding: 9px 13px;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.chat-msg.bot {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border);
    color: var(--text);
    border-bottom-left-radius: 3px;
}

.chat-msg.user {
    background: var(--accent);
    color: #fff;
    border-bottom-right-radius: 3px;
}

.chat-footer {
    padding: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
}

.chat-footer input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.88rem;
}

.chat-footer input:focus {
    outline: none;
    border-color: var(--accent);
}

.chat-send-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
}

.chat-send-btn:hover {
    background: var(--accent-hover);
}

@media (max-width: 480px) {
    .container { padding-top: 32px; }
    .chat-widget {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        right: 16px;
    }
    .chat-box {
        width: calc(100vw - 32px);
        right: 0;
    }
}
