.mb-account-wrap {
    max-width: 760px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Tabs ── */
.mb-account-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #eee;
    margin-bottom: 24px;
}

.mb-account-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}

.mb-account-tab:hover { color: #333; }

.mb-account-tab.is-active {
    color: #e1306c;
    border-bottom-color: #e1306c;
}

.mb-account-tab-count {
    background: #e1306c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 6px;
}

/* ── Panels ── */
.mb-account-panel { display: none; }
.mb-account-panel.is-active { display: block; }

/* ── Cards ── */
.mb-account-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}

.mb-account-card-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 18px;
    color: #111;
}

/* ── Table ── */
.mb-account-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mb-account-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 12px 10px 0;
    border-bottom: 1px solid #eee;
}

.mb-account-table td {
    padding: 12px 12px 12px 0;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: middle;
}

.mb-account-table tr:last-child td { border-bottom: none; }

.mb-account-table a {
    color: #111;
    font-weight: 600;
    text-decoration: none;
}

.mb-account-table a:hover { color: #e1306c; }

/* ── Follows list ── */
.mb-follows-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mb-follow-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.mb-follow-row:last-child { border-bottom: none; }

.mb-follow-row a {
    color: #111;
    font-weight: 600;
    text-decoration: none;
    flex: 1;
}

.mb-follow-row a:hover { color: #e1306c; }

/* ── Manage row ── */
.mbs-manage-row { display: none; }
.mbs-manage-row.mbs-manage-open { display: table-row; }
.mbs-manage-row td { background: #fafafa; }
.mbs-inline-manage { padding: 16px; }

.mbs-manage-label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
}

.mbs-manage-section { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.mb-btn-link {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
    font-size: 13px;
}

/* ── Profile form ── */
.mb-account-field {
    margin-bottom: 16px;
}

.mb-account-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}

.mb-account-field input,
.mb-account-input {
    width: 100%;
    padding: 9px 13px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s;
}

.mb-account-field input:focus,
.mb-account-input:focus {
    outline: none;
    border-color: #e1306c;
}

.mb-account-details summary {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    padding: 8px 0;
}

/* ── Buttons ── */
.mb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
    text-decoration: none;
}

.mb-btn-primary {
    background: #e1306c;
    color: #fff;
}

.mb-btn-primary:hover { background: #c0255a; }

.mb-btn-outline {
    background: transparent;
    color: #e1306c !important;
    border: 1.5px solid #e1306c;
}

.mb-btn-outline:hover {
    background: #e1306c;
    color: #fff;
}

.mb-btn-sm {
    padding: 6px 13px;
    font-size: 13px;
}

.mb-btn-danger {
    color: #d32f2f !important;
    background: none !important;
    border: 1px solid #d32f2f !important;
}

.mb-btn-danger:hover {
    background: #d32f2f !important;
    color: #fff !important;
}

/* ── Actions row ── */
.mb-account-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* ── Messages ── */
.mb-account-msg {
    font-size: 13px;
    font-weight: 500;
}

.mb-msg-ok    { color: #2e7d32; }
.mb-msg-error { color: #d32f2f; }

.mb-subtle { color: #888; font-size: 14px; }

/* ── Billing summary ── */
.mb-billing-summary {
    font-size: 15px;
    color: #333;
    margin-bottom: 0;
}

/* ── Recurly card element ── */
#mb-card-element {
    border: 1px solid #ddd;
    border-radius: 7px;
    padding: 10px;
    min-height: 42px;
}

@media (max-width: 600px) {
    .mb-account-wrap { padding: 0 12px; }
    .mb-account-table th:nth-child(3),
    .mb-account-table td:nth-child(3),
    .mb-account-table th:nth-child(4),
    .mb-account-table td:nth-child(4) { display: none; }
}
