.cgsdd-wrap { max-width: 1100px; margin: 0 auto; }
.cgsdd-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.cgsdd-tab {
	background: #f2f2f2; border: none; padding: 10px 18px; border-radius: 20px;
	cursor: pointer; font-weight: 600; font-size: 14px;
}
.cgsdd-tab.active { background: #1a7a3c; color: #fff; }

.cgsdd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.cgsdd-card { border: 1px solid #e5e5e5; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.05); display: flex; flex-direction: column; }
.cgsdd-card-img { height: 150px; background: #f7f7f7; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cgsdd-card-img img { width: 100%; height: 100%; object-fit: cover; }
.cgsdd-fallback-icon { font-size: 56px; }
.cgsdd-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.cgsdd-card-body h3 { font-size: 17px; margin: 6px 0 8px; }
.cgsdd-card-body p { font-size: 13.5px; color: #555; flex: 1; }
.cgsdd-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 12px; color: #fff; }
.cgsdd-badge-pdf { background: #b3121b; }
.cgsdd-badge-software { background: #0a5cad; }
.cgsdd-badge-books { background: #6a3fa0; }
.cgsdd-author { font-size: 12.5px; color: #777; font-style: italic; margin: -4px 0 6px; }

.cgsdd-card-actions { display: flex; gap: 8px; margin-top: 10px; align-items: stretch; }
.cgsdd-card-actions .cgsdd-donate-btn { margin-top: 0; flex: 1; }

.cgsdd-donate-btn {
	margin-top: 10px; background: #434194; color: #fff; border: none; padding: 10px 14px;
	border-radius: 6px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; display: inline-block;
}
.cgsdd-donate-btn:hover { background: #322f74; color: #fff; }

.cgsdd-share-btn {
	background: #25d366; color: #fff; padding: 10px 12px; border-radius: 6px; text-decoration: none;
	font-weight: 600; font-size: 13px; white-space: nowrap; align-self: center;
}
.cgsdd-share-btn:hover { background: #1eab52; color: #fff; }

.cgsdd-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 99999; align-items: center; justify-content: center; }
.cgsdd-modal-box { background: #fff; width: 92%; max-width: 420px; border-radius: 10px; padding: 26px; position: relative; margin: auto; top: 8%; }
.cgsdd-modal-close { position: absolute; top: 10px; right: 16px; font-size: 24px; cursor: pointer; color: #888; }
#cgsdd-modal-body label { display: block; margin-top: 12px; font-weight: 600; font-size: 13px; }
#cgsdd-modal-body input { width: 100%; padding: 9px; border: 1px solid #ccc; border-radius: 5px; margin-top: 4px; box-sizing: border-box; }
#cgsdd-msg { color: #b00; font-size: 13px; margin-top: 10px; }
