
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --dark: #0f1f3d;
      --accent: #4f6ef7;
      --red: #e03131;
      --yellow: #f5c400;
      --light: #fff8f5;
      --white: #fff;
      --border: #e2e6f3;
      --text: #2d3160;
      --muted: #8a8faf;
      --card-shadow: 0 2px 14px rgba(30,35,64,0.08);
    }

   /* ── Base ── */
body {
 font-family: 'Inter', sans-serif;
  background: var(--light);
  color: var(--text);
  min-height: 100vh;
}

/* ── Agent Thumbnail (Responsive) ── */
.agent-thumb {
  width: 176px !important;
  min-height: 126px !important;
}

/* Tablet */
@media (max-width: 768px) {
  .agent-thumb {
    width: 110px !important;
    min-height: 90px !important;
  }
}

/* Small Mobile */
@media (max-width: 420px) {
  .agent-thumb {
    width: 90px !important;
    min-height: 80px !important;
  }
}

/* ── Header ── */
.site-header {
  background: var(--dark);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.logo-name {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 18px;
  line-height: 1.1;
}

.logo-name span {
  display: block;
  font-size: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 21px 42px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
}

.main-col {}

/* ── Page Header ── */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.total-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--red);
}

.total-label strong {
  font-size: 18px;
}

/* ── Search Bar ── */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(30, 35, 64, 0.06);
}

.search-bar input {
  border: none;
  outline: none;
  padding: 9px 14px;
  font-size: 13.5px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  width: 220px;
  background: transparent;
}

.search-bar input::placeholder {
  color: var(--muted);
}

.search-bar button {
  background: var(--dark);
  border: none;
  cursor: pointer;
  padding: 9px 16px;
  color: #fff;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  transition: background 0.2s;
}

.search-bar button:hover {
  background: #3a57d4;
}

/* ── Agent Card ── */
.agent-card {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  animation: fadeUp 0.4s ease both;
}

.agent-card:hover {
  box-shadow: 0 6px 24px rgba(30, 35, 64, 0.12);
  transform: translateY(-2px);
}

/* ── Animation ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

   /* ── Animation Delay (Stagger Effect) ── */
.agent-card:nth-child(1) { animation-delay: 0.05s; }
.agent-card:nth-child(2) { animation-delay: 0.10s; }
.agent-card:nth-child(3) { animation-delay: 0.15s; }
.agent-card:nth-child(4) { animation-delay: 0.20s; }
.agent-card:nth-child(5) { animation-delay: 0.25s; }

/* ── Agent Thumbnail ── */
.agent-thumb {
  width: 140px;
  height: 110px;
  flex-shrink: 0;
  background: #f0f2fb;
  overflow: hidden;
  position: relative;
}

.agent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badge */
.agent-thumb .thumb-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--yellow);
  color: var(--dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  text-transform: uppercase;
}

/* Logo Type Thumb */
.agent-thumb.logo-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9ff;
}

.agent-thumb.logo-thumb img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* ── Agent Info ── */
.agent-info {
  flex: 1;
  padding: 16px 18px;
  min-width: 0;
}

.agent-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-desc {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.agent-id {
  font-size: 12.5px;
  color: var(--red);
  font-weight: 600;
}

.agent-id span {
  color: var(--dark);
  font-weight: 400;
}

/* ── Actions ── */
.agent-actions {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

/* Common Button Style */
.agent-actions button {
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* Properties Button */
.btn-props {
  background: #d8d8d8;
  color: #505050;
}

/*.btn-props:hover {
  background: #a50d25;
}*/

/* Contact Button */
.btn-contact {
  background:var(--red);
  color: #fff;
}

/*.btn-contact:hover {
  background: #162a52;
}*/

.btn-contact:active {
  transform: scale(0.97);
}

   /* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* Hover */
.page-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Active */
.page-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Arrow */
.page-btn.arrow {
  color: var(--muted);
}

/* Disabled */
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Page Info */
.page-info {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

/* ── Sidebar ── */
.sidebar {}

/* Card */
.sidebar-card {
        margin-top: 35px;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover lift */
.sidebar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(30,35,64,0.12);
}

/* Title */
.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--light);
}

/* Featured Image */
.featured-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* Body */
.featured-body {
  padding: 12px 14px;
}

.featured-body h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.featured-body p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* CTA */
.featured-cta {
  display: inline-block;
  margin-top: 8px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.featured-cta:hover {
  background: #a93226;
  transform: translateY(-1px);
}

/* ── Modal Overlay ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 50, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Open State */
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

    .modal {
      background: var(--white);
      border-radius: 18px;
      width: 100%; max-width: 460px;
      box-shadow: 0 32px 80px rgba(20,24,50,0.3);
      transform: scale(0.94) translateY(16px);
      transition: transform 0.25s, opacity 0.25s;
      overflow: hidden;
    }
   

.modal-header {
    background: linear-gradient(rgb(15 31 61 / 85%), rgb(15 31 61 / 86%)), url(../assert/popup.jpg) no-repeat center;
    background-size: cover;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
   /* ── Modal Header ── */
.modal-header h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
}

/* Close Button */
.modal-close {
  background: #e03131;
  border: none;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #c92a2a;
  transform: scale(1.05);
}

/* ── Agent Bar ── */
.modal-agent-bar {
  background: #fff8f8;
  border-bottom: 1px solid var(--border);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-agent-bar .agent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--dark);
  flex-shrink: 0;
}

.modal-agent-bar .agent-meta p {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}

.modal-agent-bar .agent-meta span {
  font-size: 11.5px;
  color: var(--red);
  font-weight: 600;
}

/* ── Body ── */
.modal-body {
  padding: 20px 22px;
}

/* Fields */
.m-field {
  margin-bottom: 14px;
}

.m-field-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  margin-bottom: 14px;
}

/* Input Wrapper */
.m-input-wrap {
  position: relative;
}

/* Icons */
.m-input-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}

.m-input-wrap.textarea-wrap svg {
  top: 14px;
  transform: none;
}

/* Inputs */
.m-input-wrap input,
.m-input-wrap textarea,
.m-input-wrap select {
  width: 100%;
  background: #f5f6fb;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px 10px 36px;
  font-size: 13.5px;
 font-family: 'Inter', sans-serif;
  color: var(--text);
  outline: none;
  transition: all 0.2s ease;
  appearance: none;
}

.m-input-wrap input::placeholder,
.m-input-wrap textarea::placeholder {
  color: var(--muted);
}

/* Focus State (Improved UX) */
.m-input-wrap input:focus,
.m-input-wrap textarea:focus,
.m-input-wrap select:focus {
 /* border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(224, 49, 49, 0.1);*/
  background: #fff !important;
}

/* Textarea */
.m-input-wrap textarea {
  resize: vertical;
  min-height: 80px;
  padding-top: 10px;
}

/* ── Phone Field ── */
.m-field-row .m-input-wrap:first-child select {
  border-right: none;
  border-radius: 10px 0 0 10px;
  padding-left: 12px;
}

.m-field-row .m-input-wrap:last-child input {
  border-radius: 0 10px 10px 0;
  padding-left: 14px;
}

/* Dropdown Arrow */
.cc-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-top-color: var(--muted);
  pointer-events: none;
}

/* ── Terms ── */
.m-terms {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 14px;
}

.m-terms input[type="checkbox"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.m-terms label {
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.5;
}

.m-terms label a {
  color: var(--accent);
  text-decoration: none;
}

.m-terms label a:hover {
  text-decoration: underline;
}
   /* ── Captcha Box ── */
.captcha-box {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f6fb;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

/* Hover subtle */
.captcha-box:hover {
  border-color: var(--accent);
}

/* Left */
.captcha-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Checkbox */
.captcha-check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

/* Checked */
.captcha-check.checked {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.05);
}

.captcha-check svg {
  display: none;
  width: 12px;
  height: 12px;
  fill: #fff;
}

.captcha-check.checked svg {
  display: block;
}

/* Label */
.captcha-label {
  font-size: 13px;
  color: var(--text);
}

/* Logo */
.captcha-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  color: var(--muted);
}

.captcha-logo svg {
  width: 26px;
  height: 26px;
}

/* ── Submit Button ── */
.btn-submit-modal {
  width: 100%;
  background: #c8102e;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
 font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  transition: all 0.2s ease;
}

/* Hover */
.btn-submit-modal:hover:not(:disabled) {
  background: #0f1f3d;
  transform: translateY(-1px);
}

/* Active */
.btn-submit-modal:active {
  transform: scale(0.97);
}

/* Disabled */
.btn-submit-modal:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Icon */
.btn-submit-modal svg {
  width: 16px;
  height: 16px;
}
    /* ── Tablet (≤900px) ── */
@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {

  /* Page Head */
  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Search Full Width */
  .search-bar {
    width: 100%;
  }

  .search-bar input {
    flex: 1;
    width: auto;
  }

  /* Agent Card Layout */
  .agent-card {
    align-items: stretch;
  }

  .agent-thumb {
    width: 110px;
    min-height: 100px;
    height: auto;
  }

  .agent-info {
    padding: 12px 12px 6px;
  }

  .agent-actions {
    padding: 6px 12px 12px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }

  .btn-props,
  .btn-contact {
    font-size: 11.5px;
    padding: 7px 12px;
    flex: 1;
    text-align: center;
  }

  /* ── Modal (Bottom Sheet Style 🔥) ── */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

 
  .modal {
    width: 87%;
    max-width: 100%;
    height: 78vh;
    border-radius: 18px 18px 18px 18px;
    overflow-y: auto;

    transform: translateY(-15%); /* 👈 change here */
    transition: transform 0.3s ease;
  }



  .modal-body {
    padding: 16px;
  }

  .m-field-row {
    grid-template-columns: 88px 1fr;
  }
}

/* ── Small Mobile (≤420px) ── */
@media (max-width: 420px) {

  .agent-thumb {
    width: 90px;
    min-height: 80px;
  }

  .btn-props,
  .btn-contact {
    font-size: 10.5px;
    padding: 6px 10px;
  }

  .m-field-row {
    grid-template-columns: 70px 1fr;
  }
}
   /* ── Mobile Card Layout (≤700px) ── */
@media (max-width: 700px) {
  .agent-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    grid-template-rows: auto auto;
  }

  .agent-thumb {
    grid-row: 1 / 3;
  }

  .agent-info {
    grid-column: 2;
    padding-bottom: 4px;
  }

  .agent-actions {
    grid-column: 2;
  }
}

/* ── Small Mobile (≤420px) ── */
@media (max-width: 420px) {

  /* Card Layout */
  .agent-card {
    grid-template-columns: 90px 1fr;
  }

  .agent-thumb {
    width: 90px;
  }

  /* Typography */
  .agent-name {
    font-size: 13px;
    white-space: normal; /* wrap allowed */
    line-height: 1.3;
  }

  .agent-desc {
    font-size: 11.5px;
  }

  .agent-id {
    font-size: 11.5px;
  }

  /* Buttons */
  .btn-props,
  .btn-contact {
    font-size: 11px;
    padding: 6px 8px;
  }

  /* Pagination */
  .page-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  /* Header Count */
  .total-label {
    font-size: 14px;
  }

  .total-label strong {
    font-size: 16px;
  }
}
@media (max-width: 768px) {

  .container {
    display: block !important;
    padding: 17px 12px !important;
  }

}
@media (max-width: 768px) {

  .agent-card {
    display: flex;
    flex-direction: column; /* 🔥 mobile மட்டும் vertical */
  }

  .agent-thumb {
    width: 100%;
    height: 180px; /* adjust if needed */
  }

  .agent-info {
    text-align: center;
    padding: 12px;
  }

  .agent-actions {
    flex-direction: column;
    padding: 12px;
    gap: 8px;
  }

  .agent-actions button {
    width: 100%;
  }

}
@media (max-width: 700px) {
  .agent-card {
    display: flex !important;
    flex-direction: column !important;
  }
}
@media (max-width: 768px) {

  .agent-thumb {
    width: 100% !important;
    height: auto !important; /* 🔥 remove fixed height */
  }

  .agent-thumb img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* 🔥 no crop */
    display: block;
  }

}
@media (max-width: 768px) {

  .agent-actions button {
    width: 100% !important;
    padding: 12px !important;   /* 🔥 height increase */
    font-size: 14px;
    min-height: 36px;           /* 🔥 consistent height */
  }

}
.agent-thumb.logo-thumb {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.agent-thumb.logo-thumb img {
  width: auto !important;
  height: auto !important;
  max-width: 90% !important;
  max-height: 90% !important;
  object-fit: contain !important;
}
.agent-thumb {
    object-fit: contain;
    width: 197px !important;
    min-height: 133px !important;
}
@media (max-width: 768px) {

  .agent-thumb {
    width: 100% !important;
    height: 200px; /* adjust height */
  }

  .agent-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* 🔥 important */
    display: block;
  }

}
  /* ===== DARK FOOTER ===== */

.dark-footer {
  background-color: #243147;
  color: #ffffff;
  padding: 60px 20px;
}

.dark-footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.dark-footer-col h3 {
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 2px solid #3d4a61;
}

.dark-footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 60px;
  height: 2px;
  background-color: #F8E81C;
}

.dark-footer-col p,
.dark-footer-col li {
  font-size: 14px;
  line-height: 1.8;
  color: #d1d8e2;
}

.dark-footer-col ul {
  list-style: none;
  padding: 0;
}

.dark-footer-col ul li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.dark-footer-col ul li a {
  color: #d1d8e2;
  text-decoration: none;
  transition: 0.3s;
}

.dark-footer-col ul li a:hover {
  color: #F8E81C;
}

.yellow-bold {
  color: #F8E81C;
  font-weight: bold;
}
    /* ===== COPYRIGHT BAR ===== */

.copyright-bar {
  background-color: #1d283a;
  padding: 20px;
  color: #9ba6b9;
  font-size: 13px;
}

.bar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.bottom-nav a {
  color: #9ba6b9;
  text-decoration: none;
  margin-right: 20px;
}

.bottom-nav a:hover {
  color: #fff;
}

@media (max-width: 768px) {
    .bar-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        position: relative;
        top: 7px;
    }
}
  .section-header {
  position: relative;
  text-align: center;
  padding-top: 20px;
  padding-bottom: 10px;
  padding-left: 50px;
  padding-right: 50px;
}

.header-left {
  display: inline-block;
}

.header-left h1 {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.header-left p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #666;
}

.header-right {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 10px;
}

 