/* Activity + Invite-Friend shared CSS */
/* Activity */
.act-container { max-width: 1400px; margin: 0 auto; padding: 20px 24px; }
.act-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.act-header-left h2 { font-size: 16px; font-weight: 700; color: #111827; display: inline-block; margin-right: 8px; }
.act-breadcrumb { font-size: 11px; color: #6b7280; }
.act-btn-outline { border: 1px solid #e5e7eb; background: #fff; padding: 6px 14px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #374151; cursor: pointer; }
.act-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 24px; overflow: hidden; }
.act-card-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; border-bottom: 1px solid #e5e7eb; flex-wrap: wrap; gap: 8px; }
.act-card-title { font-size: 13px; font-weight: 700; color: #111827; }
.act-card-body { padding: 0; }
/* Feed item */
.act-item { display: flex; gap: 14px; padding: 16px 24px; border-bottom: 1px solid #f3f4f6; position: relative; }
.act-item:last-child { border-bottom: none; }
.act-item:hover { background: #fdfdfd; }
.act-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.act-avatar-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.act-body { flex: 1; }
.act-text { font-size: 12px; color: #374151; line-height: 1.5; }
.act-text a { color: #3b82f6; text-decoration: none; font-weight: 600; }
.act-time { font-size: 10px; color: #9ca3af; margin-top: 4px; }
.act-time-right { font-size: 10px; color: #9ca3af; white-space: nowrap; flex-shrink: 0; margin-left: 12px; }
.act-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; font-size: 9px; font-weight: 700; }
.act-badge-new { background: #dcfce7; color: #166534; }
.act-badge-free { background: #dbeafe; color: #1e40af; }
/* Event card inside feed */
.act-event-card { border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px; margin-top: 10px; display: flex; gap: 14px; align-items: flex-start; }
.act-event-img { width: 60px; height: 60px; border-radius: 8px; background: #ede9fe; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.act-event-title { font-size: 12px; font-weight: 700; color: #111827; }
.act-event-sub { font-size: 11px; color: #6b7280; margin-top: 3px; }
.act-event-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 10px; color: #6b7280; }
.act-event-meta span { display: flex; align-items: center; gap: 4px; }
.act-avatars { display: flex; }
.act-avatars img { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #fff; margin-left: -5px; }
.act-avatars img:first-child { margin-left: 0; }
.act-more-btn { font-size: 10px; font-weight: 700; color: #3b82f6; text-decoration: none; display: block; text-align: center; padding: 14px; border-top: 1px solid #e5e7eb; }
/* Team card inside feed */
.act-team-card { border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px; margin-top: 10px; }
.act-team-name { font-size: 12px; font-weight: 700; color: #111827; }
.act-team-desc { font-size: 11px; color: #6b7280; }
.act-team-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }

/* Illus grid 2 */
.act-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .act-grid-2 { grid-template-columns: 1fr; } }
.act-illus-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; position: relative; overflow: hidden; min-height: 160px; }
.act-illus-title { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 10px; }
.act-illus-card p { font-size: 11px; color: #6b7280; line-height: 1.5; margin-bottom: 20px; max-width: 55%; }
.act-illus-card a { font-size: 10px; font-weight: 700; color: #3b82f6; text-transform: uppercase; text-decoration: none; }
.act-illus-img { position: absolute; right: 16px; bottom: 16px; width: 130px; height: auto; }
.act-toggle-wrap { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #374151; }
.act-toggle { position: relative; display: inline-block; width: 32px; height: 18px; }
.act-toggle input { opacity: 0; width: 0; height: 0; }
.act-toggle span { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #e5e7eb; transition: .3s; border-radius: 34px; }
.act-toggle span:before { position: absolute; content: ""; height: 14px; width: 14px; left: 2px; bottom: 2px; background: white; transition: .3s; border-radius: 50%; }
.act-toggle input:checked + span { background-color: #3b82f6; }
.act-toggle input:checked + span:before { transform: translateX(14px); }

/* === Invite Friend === */
.if-container { max-width: 1400px; margin: 0 auto; padding: 20px 24px; }
.if-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.if-header-left h2 { font-size: 16px; font-weight: 700; color: #111827; display: inline-block; margin-right: 8px; }
.if-breadcrumb { font-size: 11px; color: #6b7280; }
.if-btn-outline { border: 1px solid #e5e7eb; background: #fff; padding: 6px 14px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #374151; cursor: pointer; }
.if-btn-primary { background: #3b82f6; border: none; padding: 8px 20px; border-radius: 6px; font-size: 12px; font-weight: 600; color: #fff; cursor: pointer; width: 100%; }
.if-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 24px; align-items: start; }
@media (max-width: 1024px) { .if-layout { grid-template-columns: 1fr; } }
.if-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 24px; overflow: hidden; }
.if-card-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; border-bottom: 1px solid #e5e7eb; flex-wrap: wrap; gap: 8px; }
.if-card-title { font-size: 13px; font-weight: 700; color: #111827; }
.if-card-body { padding: 24px; }
.if-form-group { margin-bottom: 14px; }
.if-form-label { display: block; font-size: 11px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.if-form-input { width: 100%; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 12px; outline: none; box-sizing: border-box; }
.if-form-input:focus { border-color: #3b82f6; }
.if-form-select { width: 100%; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 12px; outline: none; background: #fff; box-sizing: border-box; }
.if-add-more { font-size: 11px; color: #3b82f6; font-weight: 600; text-decoration: none; display: block; margin-bottom: 16px; }
.if-link-box { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 11px; color: #374151; }
.if-link-box span { flex: 1; word-break: break-all; }
.if-link-box i { color: #9ca3af; cursor: pointer; }
.if-invite-desc { font-size: 11px; color: #6b7280; line-height: 1.5; margin-bottom: 16px; }
.if-reset-link { font-size: 11px; color: #374151; display: block; margin-bottom: 14px; }
/* Table */
.if-table-wrapper { overflow-x: auto; }
.if-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.if-table th { text-align: left; padding: 11px 16px; font-size: 11px; font-weight: 600; color: #6b7280; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.if-table td { padding: 12px 16px; font-size: 12px; color: #374151; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.if-table tr:last-child td { border-bottom: none; }
.if-table tr:hover td { background: #fdfdfd; }
.if-status-active { background: #dcfce7; color: #166534; font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 4px; display: inline-block; }
.if-status-pending { background: #fef9c3; color: #854d0e; font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 4px; display: inline-block; }
.if-member-cell { display: flex; align-items: center; gap: 10px; }
.if-avatar { width: 28px; height: 28px; border-radius: 50%; }
.if-flag { width: 16px; margin-right: 4px; }
.if-pagination-wrap { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid #e5e7eb; flex-wrap: wrap; gap: 8px; }
.if-pagination-info { font-size: 11px; color: #6b7280; }
.if-pages { display: flex; gap: 4px; }
.if-page { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 11px; cursor: pointer; border: 1px solid #e5e7eb; color: #374151; }
.if-page:hover { background: #f3f4f6; }
.if-page.if-active { background: #3b82f6; color: #fff; border-color: #3b82f6; font-weight: 700; }
/* KB + Illus same as others */
.if-kb-icon { width: 32px; height: 32px; border-radius: 8px; background: #eff6ff; color: #3b82f6; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 14px; }
.if-kb-title { font-size: 12px; font-weight: 700; color: #111827; margin-bottom: 8px; line-height: 1.4; }
.if-kb-desc { font-size: 11px; color: #6b7280; line-height: 1.5; margin-bottom: 12px; }
.if-link-learn { font-size: 10px; font-weight: 700; color: #3b82f6; text-decoration: none; text-transform: uppercase; }
.if-illus-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; position: relative; overflow: hidden; min-height: 160px; margin-bottom: 24px; }
.if-illus-title { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 10px; }
.if-illus-card p { font-size: 11px; color: #6b7280; line-height: 1.5; margin-bottom: 20px; max-width: 55%; }
.if-illus-card a { font-size: 10px; font-weight: 700; color: #3b82f6; text-transform: uppercase; text-decoration: none; }
.if-illus-img { position: absolute; right: 16px; bottom: 16px; width: 130px; height: auto; }
