.btn, .form-control, .input-group, .alert, .badge, .modal-content, .nav-link, .dropdown-menu, .toast, .popover, .list-group-item, .pagination, .progress, .nav-pills .nav-link {
  border-radius: 0 !important;
}
body { background-color: #f5f7fa; }
.pub-card { border-radius: 20px; background: #f7f7f7;}
.pub-input { border-radius: 0; border: 1px solid #ddd; padding: 12px 16px; font-size: 1rem; min-height: 48px; }
.pub-input:focus { border-color: #28a745; box-shadow: 0 0 0 3px rgba(40,167,69,0.1); }
.pub-textarea { border-radius: 0; border: 1px solid #ddd; padding: 12px 16px; font-size: 1rem; min-height: 140px; resize: vertical; }
.pub-textarea:focus { border-color: #28a745; box-shadow: 0 0 0 3px rgba(40,167,69,0.1); }
.pub-input::placeholder, .pub-textarea::placeholder { font-size: 0.85rem; color: #bbb; }
.pub-btn { border-radius: 0; padding: 12px 28px; font-size: 1rem; min-height: 48px; }
@media (max-width: 768px) {
  .pub-btn { padding: 8px 12px; font-size: 0.85rem; min-height: 40px; }
}
.top-btn { border-radius: 0; font-weight: 600; }
.nav-tabs-wrapper { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-bottom: 1px solid #f0f0f0; padding-bottom: 8px; margin-bottom: 16px; }
.nav-tabs-wrapper::-webkit-scrollbar { display: none; }
.nav-tab-item { border-radius: 0; padding: 8px 20px; font-size: 0.95rem; font-weight: 600; color: #666; text-decoration: none; white-space: nowrap; display: inline-block; transition: all 0.2s; border: 1px solid transparent; }
.nav-tab-item:hover { color: #28a745; background: #f0f0f0; border-color: #e0e0e0; }
.nav-tab-item.active { background: #28a745; color: #fff; border-color: #28a745; }
.section-title { font-size: 1.2rem; font-weight: 700; }
.help-card { border-radius: 0; border: 1px solid #eee; box-shadow: 0 1px 4px rgba(0,0,0,0.03); transition: transform 0.15s, box-shadow 0.15s; }
.help-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.help-card.available { background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%); border-color: #d4edda; }
.help-card.completed { background: #fff; border: 1px solid #e8e8e8; opacity: 0.65; }
.divider-line { border-top: 1px solid #f0f0f0; margin: 8px 0; }
.code-text { font-family: 'Courier New', monospace; font-size: 1.5rem; font-weight: 700; color: #2d6a4f; letter-spacing: 4px; word-break: break-all; }
.link-text { font-size: 1rem; color: #0d6efd; word-break: break-all; }
.kouling-text { font-family: 'Courier New', monospace; font-size: 1.2rem; font-weight: 600; color: #2d6a4f; word-break: break-all; }
.text-text { font-size: 1.1rem; color: #333; word-break: break-all; }
.mask-text { font-family: 'Courier New', monospace; font-size: 1.5rem; font-weight: 700; color: #999; letter-spacing: 4px; }
.use-btn { border-radius: 0; padding: 8px 20px; font-size: 0.95rem; white-space: nowrap; min-width: fit-content; }
@media (min-width: 768px) {
  .use-btn { padding: 10px 26px; font-size: 1rem; }
}
.btn-col { flex-shrink: 0; }
.badge-count { border-radius: 0; font-size: 0.85rem; padding: 4px 12px; }
.modal-content { border-radius: 0; border: 1px solid #eee; }
.modal-body .code-big { font-family: 'Courier New', monospace; font-size: 2.2rem; font-weight: 700; color: #28a745; letter-spacing: 4px; text-align: center; word-break: break-all; max-height: 180px; overflow-y: auto; }
.modal-body .content-long { font-size: 0.95rem; color: #333; text-align: left; word-break: break-all; max-height: 200px; overflow-y: auto; background: #f8f9fa; padding: 12px; border-radius: 0; border: 1px solid #eee; }
.complain-btn { font-size: 0.75rem; color: #dc3545; cursor: pointer; text-decoration: underline; }
.complain-inline { font-size: 0.75rem; color: #dc3545; cursor: pointer; text-decoration: underline; white-space: nowrap; }
.participants-line { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; font-size: 0.8rem; color: #666; border-top: 1px solid #f0f0f0; padding-top: 6px; margin-top: 6px; }
.badge-participant { display: inline; background: #e8f5e9; color: #2e7d32; border-radius: 0; padding: 1px 8px; font-size: 0.75rem; white-space: nowrap; }
.code-input { font-family: 'Courier New', monospace; font-weight: 700; color: #2d6a4f; letter-spacing: 4px; }
.code-input-box { border: 3px solid #28a745 !important; border-radius: 0 !important; font-family: 'Courier New', monospace !important; font-size: 1.6rem !important; font-weight: 700 !important; color: #2d6a4f !important; letter-spacing: 8px !important; text-align: center !important; min-height: 64px !important; padding: 12px 16px !important; background: #f8fff8 !important; }
@media (max-width: 768px) {
  .code-input-box { font-size: 1.2rem !important; letter-spacing: 2px !important; min-height: 48px !important; padding: 8px 10px !important; }
}
.code-input-box::placeholder { font-size: 1rem !important; letter-spacing: 2px !important; color: #bbb !important; }
.code-input-box:focus { border-color: #1e7e34 !important; box-shadow: 0 0 0 4px rgba(40,167,69,0.15) !important; background: #fff; }
.page-wrapper { background: #fff; border-radius: 0; box-shadow: 0 5px 10px rgba(0,0,0,0.08); max-width: 500px; margin: 0px auto; padding: 5px; }
@media (max-width: 768px) {
  .page-wrapper { margin: 12px 8px; padding: 16px 12px; border-radius: 0; }
}
.template-ad-content { font-size: 0.85rem; color: #666;  padding: 0px 5px; max-width: 360px; text-align: right; border-radius: 0;}
#autoRefreshBtn { font-variant-numeric: tabular-nums; }
.refresh-indicator { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,0.95); border: 1px solid #e0e0e0; border-radius: 0; padding: 4px 12px; font-size: 0.8rem; color: #666; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.copy-toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-20px); background: rgba(230,230,230,0.98); color: #333; padding: 10px 24px; border-radius: 0; font-size: 0.9rem; z-index: 9999; opacity: 0; transition: all 0.3s ease; box-shadow: 0 4px 16px rgba(0,0,0,0.12); pointer-events: none; display: flex; align-items: center; }
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.blur-last-3 { filter: blur(2px); opacity: 0.6; }
.blur-last-2 { filter: blur(4px); opacity: 0.4; }
.blur-last-1 { filter: blur(6px); opacity: 0.15; }