:root {
    /* Paleta estilo OnlyFans: fondo claro, azul como color de marca. */
    --mm-bg: #f7f9fa;
    --mm-surface: #ffffff;
    --mm-surface-2: #eff3f4;
    --mm-border: #e1e8ed;
    --mm-text: #14171a;
    --mm-text-dim: #657786;
    --mm-pink: #00aff0;
    --mm-gold: #f2b807;
    --mm-radius: 14px;
}
* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    background: var(--mm-bg); color: var(--mm-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.mm-shell { display: flex; min-height: 100vh; width: 100%; }

.mm-sidebar {
    width: 240px; flex-shrink: 0;
    background: var(--mm-surface); border-right: 1px solid var(--mm-border);
    padding: 24px 16px; position: sticky; top: 0; align-self: flex-start; height: 100vh;
}
.mm-sidebar__logo { font-weight: 800; font-size: 1.4rem; margin: 0 8px 28px; }
.mm-sidebar__logo span { color: var(--mm-pink); }
.mm-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.mm-sidebar nav a {
    display: flex; align-items: center; gap: 12px;
    color: var(--mm-text-dim); text-decoration: none;
    padding: 11px 12px; border-radius: 10px; font-size: 0.95rem;
}
.mm-sidebar nav a span { font-size: 1.1rem; }
.mm-sidebar nav a:hover, .mm-sidebar nav a.active { background: var(--mm-surface-2); color: var(--mm-text); }

.mm-main { flex: 1; min-width: 0; }

.mm-topbar {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; gap: 20px;
    padding: 14px 24px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--mm-border);
}
.mm-topbar__search { flex: 1; max-width: 360px; }
.mm-topbar__search input {
    width: 100%; padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--mm-border); background: var(--mm-surface-2); color: var(--mm-text);
}

.mm-profile { max-width: 680px; margin: 0 auto; padding-bottom: 60px; }

.mm-profile__cover {
    height: 260px; background-color: var(--mm-surface-2);
    background-size: cover; background-position: center;
}
.mm-profile__header {
    display: flex; align-items: flex-end; gap: 18px;
    padding: 0 24px 20px; margin-top: -56px; flex-wrap: wrap;
}
.mm-profile__avatar {
    width: 112px; height: 112px; border-radius: 50%;
    border: 5px solid var(--mm-bg); object-fit: cover; background: #333;
}
.mm-profile__info { flex: 1; min-width: 200px; padding-bottom: 4px; }
.mm-profile__info h1 { margin: 0 0 6px; font-size: 1.5rem; }
.mm-profile__info p { margin: 0; color: var(--mm-text-dim); font-size: 0.92rem; max-width: 480px; }

.mm-btn {
    border: none; border-radius: 999px; padding: 12px 22px;
    font-weight: 700; font-size: 0.95rem; cursor: pointer; white-space: nowrap;
}
.mm-btn--subscribe { background: var(--mm-pink); color: #fff; }
.mm-btn--buy { background: var(--mm-gold); color: #1a1a1a; }
.mm-btn--pay { background: var(--mm-pink); color: #fff; width: 100%; margin-top: 16px; }
.mm-btn--pay[disabled] { opacity: 0.5; cursor: not-allowed; }

.mm-tabs { display: flex; gap: 10px; padding: 0 24px 16px; overflow-x: auto; }
.mm-tab {
    background: var(--mm-surface); border: 1px solid var(--mm-border); color: var(--mm-text-dim);
    padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 0.85rem; white-space: nowrap;
}
.mm-tab.active { background: var(--mm-pink); color: #fff; border-color: var(--mm-pink); }

.mm-feed { padding: 0 24px; display: flex; flex-direction: column; gap: 18px; }
.mm-feed__empty { color: var(--mm-text-dim); text-align: center; padding: 60px 0; }

.mm-post { background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: var(--mm-radius); padding: 18px; }
.mm-post__caption { margin: 0 0 14px; line-height: 1.4; }
.mm-post__media img { border-radius: 10px; margin-bottom: 10px; }
.mm-post__lock {
    background: var(--mm-surface-2); border: 1px dashed var(--mm-border);
    border-radius: 10px; padding: 32px 16px; text-align: center;
}
.mm-post__lock p { margin: 4px 0; color: var(--mm-text-dim); }
.mm-post__lock strong { display: block; font-size: 1.1rem; margin-bottom: 12px; }
.mm-lock-icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }

.mm-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px;
}
.mm-modal[hidden] { display: none; }
.mm-modal__box {
    background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: var(--mm-radius);
    padding: 28px; max-width: 380px; width: 100%; position: relative;
}
.mm-modal__close {
    position: absolute; top: 12px; right: 14px; background: none; border: none;
    color: var(--mm-text-dim); font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.mm-modal h2 { margin: 0 0 18px; font-size: 1.2rem; }
.mm-plans { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.mm-plan {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--mm-surface-2); border: 1px solid var(--mm-border); color: var(--mm-text);
    border-radius: 10px; padding: 12px 16px; cursor: pointer; font-size: 0.95rem;
}
.mm-wallet {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--mm-surface-2); border-radius: 10px; padding: 12px 16px; font-size: 0.9rem;
}
.mm-modal__note { color: var(--mm-text-dim); font-size: 0.78rem; margin-top: 10px; text-align: center; }
.mm-modal__price { font-size: 1rem; }

.mm-notice { max-width: 680px; margin: 16px auto 0; padding: 12px 18px; border-radius: 10px; font-size: 0.9rem; }
.mm-notice--ok { background: rgba(46,204,113,0.1); border: 1px solid #2ecc71; color: #17803f; }
.mm-notice--error { background: rgba(224,36,94,0.08); border: 1px solid #e0245e; color: #c81852; }

.mm-page-header { max-width: 680px; margin: 0 auto; padding: 24px 24px 8px; }
.mm-page-header h1 { margin: 0 0 6px; font-size: 1.4rem; }
.mm-page-header p { margin: 0; color: var(--mm-text-dim); font-size: 0.9rem; }

.mm-grid { max-width: 680px; margin: 0 auto; padding: 16px 24px 60px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.mm-card { background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: var(--mm-radius); overflow: hidden; text-decoration: none; color: var(--mm-text); display: block; }
.mm-card__cover { height: 80px; background-size: cover; background-position: center; background-color: var(--mm-surface-2); }
.mm-card__body { padding: 10px 12px; display: flex; align-items: center; gap: 8px; }
.mm-card__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #333; flex-shrink: 0; }
.mm-card__name { font-size: 0.85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mm-list { max-width: 680px; margin: 0 auto; padding: 8px 24px 60px; display: flex; flex-direction: column; gap: 12px; }
.mm-list-item { background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: var(--mm-radius); padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mm-list-item__name { font-weight: 700; }
.mm-list-item__meta { color: var(--mm-text-dim); font-size: 0.85rem; }

.mm-form { max-width: 520px; margin: 0 auto; padding: 8px 24px 60px; display: flex; flex-direction: column; gap: 16px; }
.mm-field label { display: block; margin-bottom: 6px; font-size: 0.85rem; color: var(--mm-text-dim); }
.mm-field input[type="text"], .mm-field input[type="number"], .mm-field input[type="password"], .mm-field input[type="email"], .mm-field textarea {
    width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--mm-border);
    background: var(--mm-surface); color: var(--mm-text); font-size: 0.95rem;
}
.mm-field textarea { min-height: 90px; resize: vertical; }
.mm-field input[type="file"] { color: var(--mm-text-dim); font-size: 0.85rem; }
.mm-field small { display: block; margin-top: 4px; color: var(--mm-text-dim); font-size: 0.75rem; }

.mm-wallet-card {
    max-width: 680px; margin: 16px auto 0; padding: 28px; background: var(--mm-surface);
    border: 1px solid var(--mm-border); border-radius: var(--mm-radius); text-align: center;
}
.mm-wallet-card__balance { font-size: 2.2rem; font-weight: 800; margin: 6px 0 18px; }
.mm-topup-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.mm-topup-form input { width: 140px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--mm-border); background: var(--mm-surface-2); color: var(--mm-text); }

.mm-chat { max-width: 680px; margin: 0 auto; padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.mm-msg { max-width: 75%; padding: 10px 16px; border-radius: 16px; line-height: 1.4; }
.mm-msg--me { align-self: flex-end; background: var(--mm-pink); color: #fff; border-bottom-right-radius: 4px; }
.mm-msg--them { align-self: flex-start; background: var(--mm-surface); border: 1px solid var(--mm-border); border-bottom-left-radius: 4px; }
.mm-chat-form { max-width: 680px; margin: 0 auto; display: flex; gap: 10px; padding: 12px 24px 40px; }

.mm-auth-gate { max-width: 420px; margin: 80px auto; text-align: center; padding: 0 24px; }
.mm-auth-gate h2 { margin-bottom: 10px; }
.mm-auth-gate p { color: var(--mm-text-dim); margin-bottom: 20px; }

@media (max-width: 900px) {
    .mm-sidebar { display: none; }
}

@media (max-width: 640px) {
    .mm-topbar { padding: 12px 16px; gap: 12px; }
    .mm-topbar__search { max-width: none; }
    .mm-profile__cover { height: 160px; }
    .mm-profile__header { padding: 0 16px 16px; margin-top: -40px; flex-direction: column; align-items: flex-start; }
    .mm-profile__avatar { width: 84px; height: 84px; }
    .mm-btn--subscribe { width: 100%; text-align: center; }
    .mm-tabs { padding: 0 16px 14px; }
    .mm-feed { padding: 0 16px; }
}
