.top-nav-right .user-menu a {
  font-size: 14px;
  color: #333 !important;
}
.top-nav-right .user-menu a:hover {
  color: #f1404b !important;
}
.top-nav-right .submit-link {
  font-size: 14px;
  color: #f1404b;
}
.top-nav-right .submit-link:hover {
  color: #c82333;
  text-decoration: none;
}
.top-nav-right .user-menu .dropdown-menu {
  min-width: 140px;
  margin-top: 8px;
}
.top-nav-right .user-menu .dropdown-toggle::after {
  vertical-align: middle;
}
.top-nav-right .user-menu .dropdown-item {
  font-size: 14px;
}

.bookmark-btn {
  transition: all 0.2s;
}
.bookmark-btn.bookmarked {
  color: #ffc107;
  border-color: #ffc107;
}
.bookmark-btn.bookmarked:hover {
  color: #fff;
  background: #ffc107;
}

.comment-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}
.comment-section h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.comment-section .comment-form textarea {
  border-radius: 8px;
  resize: vertical;
  min-height: 60px;
  font-size: 14px;
}
.comment-section .comment-form .btn {
  border-radius: 20px;
}

.profile-page {
  min-height: 60vh;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  color: #fff !important;
}
.profile-header h3,
.profile-header p {
  color: #fff !important;
}
.profile-login-hint {
  background: linear-gradient(135deg,#667eea,#764ba2);
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(102,126,234,0.25);
}
.profile-login-hint p {
  color: #fff !important;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}
.profile-login-hint .btn {
  color: #fff !important;
  font-size: 1.1rem;
  padding: 10px 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.profile-login-hint .btn:hover {
  background: rgba(255,255,255,0.3);
}
.admin-header h3,
.admin-header p {
  color: #fff !important;
}
.profile-header .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.profile-section {
  margin-bottom: 2rem;
}
.change-pwd-form {
  max-width: 400px;
}
.change-pwd-input {
  margin-bottom: 12px;
}
.change-pwd-btn {
  margin-top: 4px;
}
.profile-section h5 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e9ecef;
}

#authModal .modal-content {
  border: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
#authModal .form-control {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
}
#authModal .btn-primary {
  border-radius: 8px;
  padding: 10px;
  font-size: 15px;
}


.admin-page .admin-users-table table {
  font-size: 14px;
}
.admin-page .admin-users-table table th {
  border-top: none;
  font-weight: 600;
  color: #495057;
}
.admin-page .admin-users-table table td {
  vertical-align: middle;
}
.admin-page .badge {
  font-size: 12px;
  padding: 4px 8px;
}
.admin-page .nav-tabs .nav-link {
  color: #6c757d;
  border: none;
  font-size: 14px;
  padding: 0.5rem 1rem;
}
.admin-page .nav-tabs .nav-link.active {
  color: #fff;
  background: #1a1a2e;
  border-radius: 8px 8px 0 0;
}
.admin-page .opacity-75 {
  opacity: 0.75;
}

.custom-nav-section {
  margin-bottom: 0.5rem;
}
.custom-nav-section .url-card .card {
  transition: all 0.2s;
}
.custom-nav-section .url-card .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.custom-nav-del-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  background: #dc3545;
  color: #fff;
  border: 2px solid #fff;
  font-size: 11px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}
.custom-nav-section .url-card .card:hover .custom-nav-del-btn {
  opacity: 1;
}
.custom-nav-del-btn:hover {
  background: #c82333;
  color: #fff;
}
#customNavAddModal .form-control {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
}
#customNavAddModal .btn-primary {
  border-radius: 8px;
  padding: 10px;
  font-size: 15px;
}
#customNavAddModal .modal-header .close {
  font-size: 1.5rem;
}
#customNavAddBtn {
  font-size: 13px;
  padding: 2px 14px;
  transition: all 0.2s;
}
#customNavAddBtn:hover {
  background: #007bff;
  color: #fff;
}
.submit-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102,126,234,0.3);
}
.submit-page { max-width: 720px; margin: 0 auto; }
.submit-hero { background: linear-gradient(135deg,#667eea,#764ba2); color: #fff !important; padding: 3.5rem 2.5rem; border-radius: 16px; margin-bottom: 2.5rem; text-align: center; box-shadow: 0 8px 32px rgba(102,126,234,0.25); }
.submit-hero h2 { font-size: 2rem; margin-bottom: 0.75rem; font-weight: 700; color: #fff !important; }
.submit-hero p { opacity: 0.9; margin: 0; font-size: 1.05rem; color: #fff !important; }
.submit-form { background: #fff; border-radius: 12px; padding: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.submit-form .form-row { margin-bottom: 1.25rem; }
.submit-form label { font-weight: 600; font-size: 14px; color: #333; margin-bottom: 0.4rem; display: block; }
.submit-form .form-control { border-radius: 8px; padding: 10px 14px; font-size: 14px; border: 1px solid #dee2e6; }
.submit-form .form-control:focus { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,0.15); }
.category-tree { display: flex; gap: 0; border: 1px solid #e9ecef; border-radius: 8px; overflow: hidden; min-height: 200px; }
.cat-left { width: 160px; flex-shrink: 0; border-right: 1px solid #e9ecef; background: #f8f9fa; overflow-y: auto; }
.cat-left-item { padding: 10px 14px; font-size: 13px; font-weight: 500; color: #495057; cursor: pointer; transition: all 0.15s; border-bottom: 1px solid #e9ecef; user-select: none; }
.cat-left-item:last-child { border-bottom: none; }
.cat-left-item:hover { background: #e9ecef; }
.cat-left-item.active { background: #fff; color: #667eea; font-weight: 600; border-left: 3px solid #667eea; }
.cat-right { flex: 1; padding: 14px 16px; background: #fff; overflow-y: auto; }
.cat-group-items { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-item { display: flex; align-items: center; gap: 5px; font-size: 13px; padding: 6px 12px; background: #f8f9fa; border-radius: 6px; cursor: pointer; transition: all 0.15s; }
.cat-item:hover { background: #e9ecef; }
.cat-item input { margin: 0; }
.submit-btn { border-radius: 8px; padding: 12px; font-size: 16px; }
.submit-success { background: #fff; border-radius: 12px; padding: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.submit-notice { background: #fff; border-radius: 12px; padding: 1.5rem 2rem; margin-top: 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.submit-notice h5 { font-size: 1rem; margin-bottom: 1rem; }
.submit-notice ul { padding-left: 1.2rem; margin: 0; }
.submit-notice li { font-size: 14px; color: #666; margin-bottom: 0.4rem; }
#search-bg { background: linear-gradient(135deg,#667eea,#764ba2) !important; background-size: cover !important; animation: none !important; }
#search-bg .s-type-list.big label span { color: #fff !important; }
#search-bg .s-type-list { color: #fff !important; }
#search-bg .search-type label span,
#search-bg #search button i,
#search-bg .search-type input:checked+label:before { color: #fff !important; border-color: #fff transparent transparent !important; }
#search-bg h1.big-title {
  color: #fff !important;
}
#search-bg .s-type-list .anchor {
  display: none !important;
}
#search-bg .s-type-list.big label {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
}
#search-bg .s-type-list.big label.active {
  background: #fff !important;
  border-color: #fff !important;
}
#search-bg .s-type-list.big label.active span {
  color: #667eea !important;
}
#search-bg .s-type-list.big label:not(.active):hover {
  background: rgba(255,255,255,0.2) !important;
}

.auth-modal-content {
  border-radius: 16px;
  border: none;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}
.auth-modal-header {
  background: linear-gradient(135deg,#667eea,#764ba2);
  padding: 24px 24px 16px;
  position: relative;
  text-align: center;
}
#authTabs {
  display: inline-flex;
  gap: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 3px;
}
#authTabs .nav-link {
  color: rgba(255,255,255,0.9);
  border: none;
  border-radius: 8px;
  padding: 8px 28px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}
#authTabs .nav-link.active {
  color: #667eea;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#authTabs .nav-link:hover:not(.active) {
  color: #fff;
}
.auth-close {
  position: absolute;
  top: 8px;
  right: 12px;
  color: rgba(255,255,255,0.7) !important;
  text-shadow: none;
  font-size: 24px;
  opacity: 1;
  cursor: pointer;
}
.auth-close:hover {
  color: #fff !important;
  opacity: 1;
}
.auth-modal-body {
  padding: 28px 32px 32px;
}
.auth-input-wrap {
  position: relative;
  margin-bottom: 16px;
}
.auth-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
  font-size: 16px;
  z-index: 2;
  pointer-events: none;
}
.auth-input {
  height: 48px;
  padding-left: 46px !important;
  border-radius: 10px;
  border: 1.5px solid #e9ecef;
  font-size: 14px;
  transition: all 0.2s;
  background: #f8f9fa;
}
.auth-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
  background: #fff;
}
.auth-btn {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg,#667eea,#764ba2);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 4px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}
.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102,126,234,0.35);
}
.auth-btn:active {
  transform: translateY(0);
}
.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
