/* ── Spolek Members – Frontend Profile ───────────────────────────────────── */
.sm-profile-box {
    max-width: 680px; margin: 0 auto; font-family: inherit;
}
.sm-profile-header {
    display: flex; align-items: center; gap: 18px; margin-bottom: 24px;
    padding: 20px; background: #f8f9fa; border-radius: 12px;
}
.sm-profile-photo {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.sm-profile-header h2 { margin: 0 0 4px; font-size: 22px; }
.sm-profile-type { margin: 0; color: #666; font-size: 14px; }

.sm-profile-section { margin-bottom: 28px; }
.sm-profile-section h3 {
    font-size: 15px; font-weight: 700; color: #1a5276;
    border-bottom: 2px solid #1a5276; padding-bottom: 4px; margin-bottom: 12px;
}
.sm-profile-section h3 small { font-weight: 400; color: #999; font-size: 12px; margin-left: 6px; }

.sm-profile-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sm-profile-table th {
    text-align: left; color: #666; font-weight: 500; padding: 5px 10px 5px 0;
    width: 38%; white-space: nowrap;
}
.sm-profile-table td { padding: 5px 0; }

/* Fee status colours (same as admin) */
.sm-fee-expired { color: #c0392b; font-weight: 600; }
.sm-fee-soon    { color: #d35400; }
.sm-fee-ok      { color: #27ae60; }

/* Payment years grid */
.sm-years-grid {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.sm-year-tile {
    display: flex; flex-direction: column; align-items: center;
    width: 64px; padding: 8px 4px; border-radius: 10px; font-size: 12px;
    border: 2px solid transparent;
}
.sm-year-tile.paid   { background: #d5f5e3; border-color: #27ae60; }
.sm-year-tile.unpaid { background: #f5f5f5; border-color: #ddd; color: #aaa; }
.sm-year-num  { font-size: 13px; font-weight: 700; }
.sm-year-status { font-size: 16px; }
.sm-year-amt  { font-size: 10px; color: #555; margin-top: 2px; }

/* Edit form */
.sm-edit-table .sm-input {
    width: 100%; padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px;
    font-size: 14px; font-family: inherit;
}
.sm-edit-table .sm-input-sm { max-width: 100px; }
.sm-btn-save {
    background: #1a5276; color: #fff; border: none; padding: 9px 20px;
    border-radius: 8px; cursor: pointer; font-size: 14px; margin-top: 6px;
}
.sm-btn-save:hover { background: #154360; }

/* Membership card link */
.sm-card-link { text-align: center; }
.sm-btn-card {
    display: inline-block; padding: 10px 24px;
    background: #f0f7ff; border: 2px solid #1a5276; color: #1a5276;
    border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px;
}
.sm-btn-card:hover { background: #1a5276; color: #fff; }

/* Messages */
.sm-msg { padding: 10px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.sm-msg.sm-ok    { background: #d5f5e3; color: #1e8449; }
.sm-msg.sm-error { background: #fde8e8; color: #922b21; }

/* Not logged in */
.sm-not-logged, .sm-not-member {
    background: #f8f9fa; padding: 24px; border-radius: 12px; text-align: center; color: #555;
}
