/* ============================================================
   AkademikTR Components — components.css
   Buton, badge, widget, kart, form, modal, job-card, vb.
   ============================================================ */

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font-sans);
  font-weight: 500px;
  font-size: 14.5px;
  text-decoration: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  border: none;
  user-select: none;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 0 var(--primary-dark);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-primary:active {
  box-shadow: none;
  margin-bottom: 2px;
}

.btn-secondary {
  background: var(--secondary);
  color: white;
  box-shadow: 0 2px 0 var(--secondary-dark);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
}

.btn-secondary:active {
  box-shadow: none;
  margin-bottom: 2px;
}

.btn-danger {
  background: var(--danger);
  color: white;
  box-shadow: 0 2px 0 var(--danger-dark);
}

.btn-danger:hover {
  background: var(--danger-dark);
}

.btn-danger:active {
  box-shadow: none;
  margin-bottom: 2px;
}

/* ==================== JOB CARD ==================== */
.job-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-bottom: 2px solid var(--border-dark);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-xs);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.job-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.job-card-deadline {
  color: #475569;
  font-size: 13px;
  font-weight: 400;
}

.job-card-deadline.expired {
  color: #94a3b8;
}

.job-card-deadline .deadline-date {
  font-weight: 600;
  color: #1e293b;
}

.job-card-deadline.expired .deadline-date {
  color: #94a3b8;
  font-weight: 500;
}


.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.job-inst {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.job-inst-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

.job-inst h3 {
  font-size: 17px;
  font-weight: var(--font-weight-extra);
}

.job-inst p {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: var(--font-weight-semi);
  margin-top: 2px;
}

.job-details {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.job-tag {
  background: var(--bg-surface);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  gap: 6px;
}

.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--border-light);
  padding-top: var(--space-4);
}

/* ==================== WIDGET ==================== */
.widget {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-bottom: 2px solid var(--border-dark);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-xs);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.widget-title {
  font-size: 17px;
  font-weight: var(--font-weight-extra);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--bg-off);
  padding-bottom: var(--space-3);
}

.widget-list {
  list-style: none;
}

.widget-list li {
  margin-bottom: var(--space-3);
  border-bottom: 1px dashed var(--bg-off);
  padding-bottom: var(--space-3);
}

.widget-list li:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.widget-list a {
  font-weight: var(--font-weight-extra);
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
  font-size: 14.5px;
}

.widget-list a:hover {
  color: var(--primary);
}

.widget-list .meta {
  font-size: 12.5px;
  color: var(--danger);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Layout sidebar widget overrides */
.layout-sidebar .widget {
  border-radius: var(--radius-xs);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.layout-sidebar .widget-title {
  font-size: 15px;
  font-weight: var(--font-weight-semi);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
}

.layout-sidebar .widget-list li {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: 13.5px;
}

/* ==================== BADGE ==================== */
.badge {
  background-color: rgba(88, 204, 2, 0.1);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: var(--radius-xl);
  font-weight: var(--font-weight-extra);
  font-size: 12px;
}

.badge-danger {
  background-color: rgba(255, 75, 75, 0.1);
  color: var(--danger);
}

/* ==================== AUTH WIDGET ==================== */
.auth-widget {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-bottom: 2px solid var(--border-dark);
  border-radius: 6px;
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.auth-widget h3 {
  font-size: 15.5px;
  font-weight: var(--font-weight-extra);
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

.btn-auth {
  display: block;
  width: 100%;
  padding: 11px;
  border-radius: 6px;
  font-weight: var(--font-weight-extra);
  font-size: 14px;
  text-align: center;
  margin-bottom: var(--space-3);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-outline-blue {
  color: var(--primary);
  border: 2px solid var(--primary);
  background: transparent;
}

.btn-outline-blue:hover {
  background: var(--primary-light);
}

.btn-solid-blue {
  color: white;
  background: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 3px 0 var(--primary-dark);
}

.btn-solid-blue:hover {
  background: var(--primary-dark);
}

.btn-solid-blue:active {
  transform: translateY(2px);
  box-shadow: none;
}

/* Social divider */
.social-divider {
  display: flex;
  align-items: center;
  color: var(--text-subtle);
  font-size: 11px;
  margin: var(--space-4) 0;
  font-weight: var(--font-weight-bold);
}

.social-divider::before,
.social-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-light);
}

.social-divider:not(:empty)::before {
  margin-right: 0.5em;
}

.social-divider:not(:empty)::after {
  margin-left: 0.5em;
}

/* Social buttons */
.social-buttons {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 1px solid var(--border-light);
  border-bottom: 2px solid var(--border-dark);
  border-radius: var(--radius-xs);
  color: var(--text-main);
  font-size: 16px;
  transition: all var(--transition-fast);
  background: var(--bg-surface);
}

.social-btn:hover {
  background: var(--bg-off);
}

.social-btn:active {
  transform: translateY(1px);
  border-bottom-width: 1px;
}

/* ==================== NAV ITEM DROPDOWN ==================== */
.nav-item>span {
  font-weight: var(--font-weight-semi);
  color: var(--text-muted);
  font-size: 14px;
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.nav-links a i,
.nav-item>span i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ==================== COMBINATIONS WIDGET ==================== */
.combinations-widget {
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-light);
  border-bottom: 2px solid var(--border-dark);
  box-shadow: var(--shadow-xs);
  background: var(--bg-white);
  padding: var(--space-6);
  text-align: left;
  margin-bottom: var(--space-8);
  width: 100%;
}

.comb-widget-title {
  border-bottom: 2px solid var(--bg-off);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.comb-widget-title .icon {
  color: var(--primary);
  font-size: 24px;
  flex-shrink: 0;
}

.comb-widget-title .text-group h3 {
  font-size: 19px;
  font-weight: var(--font-weight-black);
  margin: 0;
  color: var(--text-primary);
  line-height: 1.2;
}

.comb-widget-title .text-group p {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: var(--font-weight-bold);
  margin: 4px 0 0 0;
}

.comb-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.comb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comb-field label {
  font-weight: var(--font-weight-semi);
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.comb-field select,
.comb-field input[type="text"] {
  padding: 10px 36px 10px 14px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 14px;
  color: #495057;
  outline: none;
  background-color: #fdfdfd;
  height: 44px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}

.comb-field select:focus,
.comb-field input[type="text"]:focus {
  border-color: var(--primary);
  background-color: var(--bg-white);
}

.comb-submit {
  margin-top: var(--space-6);
}

.comb-submit button {
  width: 100%;
  font-size: 15.5px;
  padding: 13px;
  box-shadow: none !important;
  transform: none !important;
  margin: 0 !important;
  transition: background-color var(--transition-base), opacity var(--transition-base);
}

.comb-submit button:hover {
  background-color: var(--primary-dark) !important;
  transform: none !important;
  opacity: 0.95;
}

.comb-submit button:active {
  background-color: var(--primary-dark) !important;
  transform: none !important;
  margin: 0 !important;
}

/* Layout sidebar combinations overrides */
.layout-sidebar .combinations-widget {
  padding: 0;
  margin-bottom: var(--space-6);
}

.layout-sidebar .comb-widget-title {
  padding: var(--space-5) var(--space-5) var(--space-3);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0;
  gap: 8px;
}

.layout-sidebar .comb-widget-title .icon {
  font-size: 15px;
}

.layout-sidebar .comb-widget-title .text-group h3 {
  font-size: 15px;
  font-weight: var(--font-weight-semi);
  color: var(--text-primary);
  margin: 0;
}

.layout-sidebar .comb-widget-title .text-group p {
  display: none;
}

.layout-sidebar .comb-grid {
  gap: 0;
}

.layout-sidebar .comb-field {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-light);
  margin: 0;
}

.layout-sidebar .comb-field>label {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  margin-bottom: 2px;
  display: block;
}

.layout-sidebar .comb-field>label i {
  display: none;
}

.layout-sidebar .comb-field select,
.layout-sidebar .comb-field input[type="text"] {
  height: 38px;
  font-size: 13.5px;
}

.layout-sidebar .comb-submit {
  padding: var(--space-4);
  background: var(--bg-white);
  border-bottom-left-radius: var(--radius-xs);
  border-bottom-right-radius: var(--radius-xs);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
  margin: 0;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.layout-sidebar .comb-submit button {
  width: 100%;
}

.layout-sidebar .comb-submit button i {
  display: none;
}

/* Toggle field */
.toggle-field {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-3);
  padding: 0;
  border: none;
  background: transparent;
  height: 44px;
}

.toggle-text {
  font-size: 13.5px;
  color: #495057;
}

.layout-sidebar .toggle-field {
  justify-content: flex-end;
  height: auto;
}

.layout-sidebar .switch {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
}

.layout-sidebar .switch input {
  opacity: 1;
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--primary);
}

.layout-sidebar .slider {
  display: none;
}

/* ==================== TOM SELECT (ts-*) ==================== */
.ts-wrapper .ts-control {
  position: relative !important;
  padding: 0 36px 0 14px;
  border: 1px solid var(--border-dark) !important;
  border-radius: var(--radius-xs) !important;
  font-family: var(--font-sans);
  font-size: 14px !important;
  color: #495057 !important;
  background-color: #fdfdfd !important;
  height: 44px;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px !important;
}

.ts-wrapper .ts-control::after {
  display: none !important;
}

.ts-wrapper.multi .ts-control::before {
  content: attr(data-custom-placeholder);
  color: #495057;
  pointer-events: none;
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
}

.ts-wrapper.multi .ts-control>div.item {
  display: none !important;
}

.ts-wrapper.focus .ts-control {
  border-color: #aaa !important;
}

.ts-wrapper .ts-dropdown {
  border-radius: var(--radius-xs) !important;
  border: 1px solid var(--border-dark) !important;
  box-shadow: var(--shadow-lg) !important;
  margin-top: 4px;
  font-family: var(--font-sans);
}

.ts-dropdown .option {
  padding: 10px 16px;
  font-size: 13.5px;
  color: #495057;
}

.ts-dropdown .option.active,
.ts-dropdown .option:hover {
  background-color: var(--bg-surface);
  color: var(--primary);
}

.ts-custom-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ts-custom-option .check-icon {
  color: var(--border-dark);
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.ts-dropdown .option.selected .check-icon::before {
  content: "\f14a";
  font-weight: 900;
  color: var(--primary);
}

.ts-dropdown .dropdown-input-wrap {
  position: relative;
  padding: 10px;
  border-bottom: 1px solid var(--border-light);
}

.ts-dropdown .dropdown-input-wrap::after {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
}

.ts-dropdown .dropdown-input {
  border: 1px solid var(--border-dark) !important;
  border-radius: var(--radius-xs) !important;
  padding: 8px 35px 8px 12px !important;
  width: 100%;
  box-shadow: none !important;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: #495057;
  height: auto !important;
}

.ts-dropdown .dropdown-input:focus {
  border-color: var(--primary) !important;
}

/* ==================== HERO SEARCH (arama.php) ==================== */
.hero-simple {
  background: linear-gradient(135deg, #fdfdfd 0%, var(--bg-surface) 100%);
  padding: 72px 0 56px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.hero-simple h1 {
  font-size: 36px;
  font-weight: var(--font-weight-extra);
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.hero-simple p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 600px;
  margin-inline: auto;
}

.hero-search-wrapper {
  max-width: 900px;
  margin: 0 auto 28px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
}

.hero-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 15px;
  position: relative;
}

.search-icon {
  color: var(--primary);
  font-size: 17px;
  margin-right: 12px;
  flex-shrink: 0;
}

.search-input,
.search-select {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  width: 100%;
  font-size: 15.5px;
  color: #333;
  background: transparent;
  height: 48px;
  font-family: var(--font-sans);
}

.search-input::placeholder {
  color: #aaa;
}

.search-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 30px;
}

.search-divider {
  width: 1px;
  height: 38px;
  background: var(--border-light);
  flex-shrink: 0;
}

.btn-search-submit {
  border-radius: var(--radius-sm);
  padding: 0 28px;
  height: 50px;
  font-size: 15.5px;
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-sans);
}

.btn-search-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(69, 69, 161, 0.3);
}

.popular-searches {
  margin-top: var(--space-8);
}

.popular-title {
  display: block;
  font-size: 11.5px;
  font-weight: var(--font-weight-bold);
  color: var(--text-subtle);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.popular-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pop-tag {
  background: var(--bg-white);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: var(--font-weight-semi);
  text-decoration: none;
  transition: all var(--transition-base);
}

.pop-tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ==================== NAV CTA (service) ==================== */
.service-nav-cta {
  padding: 9px 18px;
  background: #7b2cbf;
  color: white !important;
  font-size: 14px;
  font-weight: var(--font-weight-extra);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast) !important;
  border: 2px solid #7b2cbf;
  box-shadow: 0 3px 0 #5a189a;
  text-decoration: none;
}

.service-nav-cta:hover {
  background: #8936d6 !important;
  transform: translateY(1px) !important;
  box-shadow: 0 2px 0 #5a189a !important;
}

.service-nav-cta:active {
  transform: translateY(3px) !important;
  box-shadow: none !important;
}

/* ==================== MODAL ==================== */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  transition: opacity var(--transition-slow);
  backdrop-filter: blur(2px);
}

.auth-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.auth-modal {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  width: 90%;
  max-width: 400px;
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-slow);
  position: relative;
}

.auth-modal-overlay.active .auth-modal {
  transform: translateY(0);
}

.auth-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-subtle);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.auth-modal-close:hover {
  color: var(--text-muted);
}

.auth-modal-title {
  font-size: 20px;
  font-weight: var(--font-weight-extra);
  color: var(--text-primary);
  margin-bottom: 8px;
  text-align: center;
}

.auth-modal-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--space-6);
}

/* ==================== LOGIN POPOVER ==================== */
.login-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.login-popover {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  width: 340px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.98);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.25s;
  border: 1px solid var(--border-light);
}

.login-popover.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* ==================== CHECKBOX GROUP ==================== */
.combinations-widget .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.combinations-widget .checkbox-group label {
  margin-left: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px !important;
  color: var(--text-muted) !important;
  line-height: 16px !important;
  min-height: 22px;
  max-width: 100%;
  font-weight: 400 !important;
}

.combinations-widget .checkbox-group label span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.combinations-widget .checkbox-group input[type="checkbox"] {
  appearance: none;
  margin: 0 !important;
  cursor: pointer;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-dark);
  border-radius: 3px;
  background-color: var(--bg-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  transform: translateY(-1px);
}

.combinations-widget .checkbox-group label:hover input[type="checkbox"]:not(:checked) {
  background-color: #eff6ff;
  border-color: #3b82f6;
}

.combinations-widget .checkbox-group input[type="checkbox"]:checked {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.combinations-widget .checkbox-group input[type="checkbox"]:checked::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

/* ==================== SEARCH BOX ==================== */
.brans-search-box {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: var(--bg-white);
  margin-bottom: 8px;
}

.brans-search-box input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 13.5px !important;
  color: var(--text-muted) !important;
  padding: 0 !important;
  height: auto !important;
  font-family: var(--font-sans);
}

.brans-search-box i {
  color: var(--text-main);
  font-size: 15px;
  margin-left: 5px;
}

.scrollable-list {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 5px;
}

.scrollable-list::-webkit-scrollbar {
  width: 5px;
}

.scrollable-list::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

.scrollable-list::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: 4px;
}

/* ==================== AD PLACEHOLDER ==================== */
.ad-placeholder-widget {
  background: var(--bg-surface);
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-xs);
  padding: 28px 20px;
  text-align: center;
  color: var(--text-subtle);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== SIDEBAR PROMO ==================== */
.sidebar-promo-banner {
  background: #7b2cbf;
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  text-align: center;
  color: white;
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(123, 44, 191, 0.2);
}

.sidebar-promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}

.sidebar-promo-banner h3 {
  font-size: 21px;
  font-weight: var(--font-weight-extra);
  line-height: 1.3;
  margin: 0;
  position: relative;
  z-index: 2;
  color: white;
}

/* ==================== HERO SEARCH (pages.css'deki basit versiyon) ==================== */
.hero-search {
  background: var(--bg-white);
  padding: 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-light);
  border-bottom: 2px solid var(--border-dark);
  box-shadow: var(--shadow-xs);
  display: flex;
  gap: var(--space-3);
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.hero-search input,
.hero-search select {
  flex: 1;
  min-width: 200px;
  padding: 13px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: var(--font-weight-bold);
  outline: none;
  font-size: 15px;
}

.hero-search input:focus,
.hero-search select:focus {
  border-color: var(--primary);
}

/* txt-highlight (keyword highlighting) */
mark.txt-highlight {
  background: rgba(69, 69, 161, 0.15);
  color: var(--primary-dark);
  border-radius: 3px;
  padding: 0 2px;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  background: var(--bg-white, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 6px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
  width: 100%;
}

.empty-state-icon-wrapper {
  width: 80px;
  height: 80px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #64748b;
  position: relative;
}

.empty-state-icon-wrapper svg {
  width: 40px;
  height: 40px;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.empty-state p {
  font-size: 14px;
  color: #64748b;
  max-width: 420px;
  line-height: 1.6;
  margin: 0 0 30px 0;
}

.empty-state-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.empty-state-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

.empty-state-btn-primary {
  background-color: #4545a1;
  color: #ffffff !important;
  border: 1px solid transparent;
}

.empty-state-btn-primary:hover {
  background-color: #373785;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(69, 69, 161, 0.2);
}

.empty-state-btn-secondary {
  background-color: transparent;
  color: #475569 !important;
  border: 1px solid #cbd5e1;
}

.empty-state-btn-secondary:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════
   WHATSAPP CHAT WIDGET  (wa-widget)
   ══════════════════════════════════════════════ */

.wa-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

/* ── Trigger ──────────────────── */
.wa-trigger {
  position: relative;
  width: 60px;
  height: 60px;
  background: #25D366;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              background 0.25s ease;
  flex-shrink: 0;
  outline: none;
}
.wa-trigger:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,.55); }
.wa-trigger:focus-visible { outline: 3px solid rgba(37,211,102,.5); outline-offset: 3px; }

.wa-trigger-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  animation: waPulseRing 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

@keyframes waPulseRing {
  0%   { transform: scale(1);    opacity: 0.8; }
  70%  { transform: scale(1.55); opacity: 0;   }
  100% { transform: scale(1.55); opacity: 0;   }
}

.wa-icon {
  position: absolute;
  color: white;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.18s ease;
}
.wa-icon--wa    { transform: rotate(0) scale(1); opacity: 1; }
.wa-icon--close { transform: rotate(-90deg) scale(0.5); opacity: 0; }
.wa-trigger--open .wa-icon--wa    { transform: rotate(90deg) scale(0.5); opacity: 0; }
.wa-trigger--open .wa-icon--close { transform: rotate(0) scale(1); opacity: 1; }
.wa-trigger--open { background: #1da851; }

.wa-badge {
  position: absolute;
  top: -3px; right: -3px;
  width: 20px; height: 20px;
  background: #ef4444;
  border: 2.5px solid white;
  border-radius: 50%;
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wa-badge--visible { opacity: 1; transform: scale(1); }

@keyframes waBtnBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  30%       { transform: translateY(-10px) scale(1.06); }
  60%       { transform: translateY(-4px) scale(1.02); }
}
.wa-trigger--bounce { animation: waBtnBounce 0.7s ease-in-out 2; }

/* ── Chat Card ────────────────── */
.wa-card {
  width: 320px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.06);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.95);
  pointer-events: none;
  visibility: hidden;
  transform-origin: bottom right;
  transition: opacity 0.32s ease,
              transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
              visibility 0s linear 0.32s;
}
.wa-card--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.32s ease,
              transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
              visibility 0s linear 0s;
}

/* Header */
.wa-card-header {
  background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
  padding: 14px 14px 18px;
  display: flex; align-items: flex-start; gap: 10px;
}
.wa-card-agent { display: flex; align-items: center; gap: 10px; flex: 1; }
.wa-card-avatar {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; flex-shrink: 0;
}
.wa-card-info { flex: 1; min-width: 0; }
.wa-card-name { font-size: 15px; font-weight: 700; color: white; line-height: 1.2; }
.wa-card-status {
  font-size: 12px; color: rgba(255,255,255,.85);
  display: flex; align-items: center; gap: 5px; margin-top: 3px;
}
.wa-status-dot {
  width: 7px; height: 7px; background: white; border-radius: 50%;
  flex-shrink: 0; animation: waStatusBlink 2s ease-in-out infinite;
}
@keyframes waStatusBlink {
  0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}
.wa-card-close {
  background: rgba(255,255,255,.15); border: none; border-radius: 8px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: white; flex-shrink: 0;
  transition: background 0.2s; outline: none;
}
.wa-card-close:hover { background: rgba(255,255,255,.3); }

/* Body */
.wa-card-body {
  background: #ece5dd;
  padding: 18px 14px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath fill='%23c8b8a8' fill-opacity='.25' d='M0 0h40v40H0zm40 40h40v40H40z'/%3E%3C/svg%3E");
}
.wa-message-row { display: flex; align-items: flex-end; gap: 8px; }
.wa-msg-avatar {
  width: 30px; height: 30px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 12px; flex-shrink: 0; margin-bottom: 4px;
}
.wa-msg-bubble {
  background: white; border-radius: 0 12px 12px 12px;
  padding: 10px 14px 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.1); max-width: 220px;
  animation: waMsgIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s both;
}
@keyframes waMsgIn {
  from { opacity: 0; transform: translateY(10px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.wa-msg-bubble p { font-size: 13.5px; color: #111827; line-height: 1.55; margin: 0 0 4px; }
.wa-msg-bubble p:last-of-type { margin-bottom: 2px; }
.wa-msg-meta {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 3px; font-size: 11px; color: #9ca3af; margin-top: 5px;
}

/* Footer */
.wa-card-footer { padding: 12px 14px; background: white; border-top: 1px solid #f0f4f0; }
.wa-cta-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%; padding: 12px 16px;
  background: #25D366; color: white !important; border-radius: 11px;
  text-decoration: none !important; font-size: 14px; font-weight: 700;
  letter-spacing: .01em; box-shadow: 0 2px 10px rgba(37,211,102,.35);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.wa-cta-btn:hover {
  background: #1da851; transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(37,211,102,.45); color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
  .wa-widget { bottom: 16px; right: 16px; }
  .wa-card   { width: min(300px, calc(100vw - 32px)); }
  .wa-trigger { width: 56px; height: 56px; }
}