/* The member pages: /konto and the page a visitor without access gets in place of a deal
   (templates/account.html, templates/members_only.html). Built on the tokens in style.css. */

.mb-page { background: linear-gradient(180deg, var(--lighter-blue) 0, var(--light-gray) 420px); padding: 56px 0 72px; }
.mb-wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.mb-narrow { max-width: 620px; margin: 0 auto; padding: 0 16px; }

.mb-kicker { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: var(--light-blue);
    color: var(--accent-blue); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.mb-title { margin: 0 0 16px; color: var(--text-primary); font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800;
    letter-spacing: -0.035em; line-height: 1.08; }
.mb-title em { font-style: normal; color: var(--primary-blue); }
.mb-lead { margin: 0 0 28px; color: var(--text-secondary); font-size: 1.15rem; line-height: 1.6; max-width: 34em; }

.mb-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .mb-hero { grid-template-columns: 1fr; gap: 32px; } .mb-page { padding-top: 32px; } }

.mb-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.mb-benefits li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.mb-benefits strong { display: block; color: var(--text-primary); font-size: 1.02rem; }
.mb-benefits span { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; }
.mb-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: var(--white); color: var(--primary-blue); box-shadow: var(--shadow-md); }
.mb-icon svg { width: 22px; height: 22px; }

.mb-card { background: var(--white); border: 1px solid var(--border-light); border-radius: 20px; box-shadow: var(--shadow-xl); padding: 32px; }
.mb-card + .mb-card { margin-top: 20px; }
.mb-card h2 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 800; color: var(--text-primary); }
.mb-card p { color: var(--text-secondary); }
.mb-muted { color: var(--text-secondary); font-size: 0.9rem; }

.mb-price { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 4px; }
.mb-price b { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; color: var(--text-primary); line-height: 1; }
.mb-price span { color: var(--text-secondary); font-weight: 600; }
.mb-ticks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; }
.mb-ticks li { position: relative; padding-left: 26px; color: var(--dark-gray); font-size: 0.95rem; }
.mb-ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

.mb-card label { font-weight: 600; color: var(--text-primary); font-size: 0.92rem; margin-bottom: 6px; display: block; }
.mb-input { width: 100%; padding: 13px 14px; border: 1.5px solid var(--border-light); border-radius: 12px; font-size: 1rem;
    background: var(--light-gray); transition: border-color 0.15s, background 0.15s; }
.mb-input:focus { outline: none; border-color: var(--primary-blue); background: var(--white); box-shadow: 0 0 0 4px var(--light-blue); }
.mb-btn { display: block; width: 100%; padding: 14px 18px; border: 0; border-radius: 12px; font-weight: 700; font-size: 1.02rem;
    text-align: center; text-decoration: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.mb-btn-primary { background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue)); color: var(--white); box-shadow: 0 8px 20px -6px rgb(37 99 235 / 0.55); }
.mb-btn-primary:hover { color: var(--white); transform: translateY(-1px); box-shadow: 0 12px 24px -6px rgb(37 99 235 / 0.6); }
.mb-btn-quiet { background: var(--light-gray); color: var(--dark-gray); border: 1px solid var(--border-light); }
.mb-btn-quiet:hover { background: var(--white); color: var(--text-primary); }
.mb-btn-link { background: none; color: var(--text-secondary); font-weight: 600; padding: 8px; }
.mb-btn-link:hover { color: var(--text-primary); }
.mb-btn-small { display: inline-block; width: auto; padding: 9px 16px; font-size: 0.92rem; }

.mb-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 12px; }
.mb-amounts input { position: absolute; opacity: 0; pointer-events: none; }
.mb-amounts label { margin: 0; padding: 14px 8px; border: 1.5px solid var(--border-light); border-radius: 12px; text-align: center;
    cursor: pointer; font-weight: 800; font-size: 1.1rem; color: var(--text-primary); background: var(--white); transition: all 0.15s; }
.mb-amounts label small { display: block; font-weight: 600; font-size: 0.72rem; color: var(--text-secondary); margin-top: 2px; }
.mb-amounts input:checked + label { border-color: var(--primary-blue); background: var(--lighter-blue); box-shadow: 0 0 0 3px var(--light-blue); }
.mb-amounts input:focus-visible + label { outline: 2px solid var(--primary-blue); outline-offset: 2px; }

.mb-alert { border-radius: 12px; padding: 12px 16px; margin-bottom: 20px; font-size: 0.95rem; }
.mb-alert-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.mb-alert-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.mb-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mb-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 800; }
.mb-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mb-badge-ok { background: #ecfdf5; color: #047857; }
.mb-badge-warn { background: #fffbeb; color: #b45309; }
.mb-badge-off { background: var(--light-gray); color: var(--gray); }
.mb-who { color: var(--text-secondary); font-size: 0.92rem; margin: 2px 0 0; word-break: break-all; }

.mb-channels { display: grid; gap: 12px; margin-top: 16px; }
.mb-channel { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px;
    border: 1px solid var(--border-light); border-radius: 14px; }
.mb-channel strong { display: block; color: var(--text-primary); }
.mb-channel span { color: var(--text-secondary); font-size: 0.88rem; }
.mb-channel form { margin: 0; }
.mb-channel .mb-icon { box-shadow: none; }
.mb-icon-discord { background: #eef2ff; color: #5865f2; }
.mb-icon-telegram { background: #e0f2fe; color: #229ed9; }
@media (max-width: 520px) { .mb-channel { grid-template-columns: 44px 1fr; } .mb-channel form { grid-column: 1 / -1; } .mb-channel .mb-btn-small { width: 100%; } }

.mb-faq { margin-top: 56px; }
.mb-faq h2 { text-align: center; font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; color: var(--text-primary); }
.mb-faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .mb-faq-grid { grid-template-columns: 1fr; } }
.mb-faq-item { background: var(--white); border: 1px solid var(--border-light); border-radius: 16px; padding: 20px; }
.mb-faq-item h3 { font-size: 1rem; font-weight: 800; margin: 0 0 6px; color: var(--text-primary); }
.mb-faq-item p { margin: 0; color: var(--text-secondary); font-size: 0.93rem; line-height: 1.55; }

.mb-center { text-align: center; }
.mb-center .mb-lead { margin-left: auto; margin-right: auto; }
.mb-actions { display: grid; gap: 10px; margin-top: 8px; }

/* The examples on the front page (services/example_finds.py). */
.mb-examples { margin-top: 56px; }
.mb-examples h2 { margin: 0 0 8px; color: var(--text-primary); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.mb-examples .mb-lead { margin-bottom: 24px; max-width: none; }
.mb-example-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mb-example { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border-light); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-md); }
.mb-example img { display: block; width: 100%; height: 180px; object-fit: contain; margin-bottom: 14px; }
.mb-example h3 { flex: 1; margin: 0 0 10px; color: var(--text-primary); font-size: 0.98rem; font-weight: 700; line-height: 1.35; }
.mb-example-price { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.mb-example-price s { color: var(--text-secondary); font-size: 0.95rem; }
.mb-example-price b { color: var(--text-primary); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.mb-example-price span { padding: 2px 8px; border-radius: 999px; background: var(--success); color: var(--white); font-size: 0.82rem; font-weight: 800; white-space: nowrap; }
.mb-example-note { margin: 16px 0 20px; font-size: 0.85rem; }
.mb-example-join { max-width: 360px; margin: 0 auto; }
@media (max-width: 860px) { .mb-example-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .mb-example { padding: 12px; } .mb-example img { height: 130px; } .mb-example h3 { font-size: 0.9rem; } .mb-example-price b { font-size: 1.25rem; } }
