
:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* =======================
   LAYOUT
======================= */

.container {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 20px;
}

/* =======================
   HEADER
======================= */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.site-nav a {
  margin-left: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
}

/* =======================
   HERO
======================= */

.hero {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 28px;
}

/* =======================
   SEARCH
======================= */

.search-box {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.search-box input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  outline: none;
  font-size: 15px;
}

.search-box button {
  padding: 14px 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.hero-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* =======================
   SECTIONS
======================= */

.section {
  margin-top: 48px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 22px;
  margin: 0;
}

/* =======================
   CARDS
======================= */

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.company-card,
.industry-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.company-card:hover,
.industry-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.company-name,
.industry-title {
  font-weight: 700;
  font-size: 15px;
}

.industry-code-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 6px;
}

.company-meta,
.industry-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* =======================
   CHIPS / PILLS
======================= */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.status-pill,
.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-pill {
  background: #dcfce7;
  color: #166534;
}

/* =======================
   PAGE HEADER
======================= */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.page-header h1 {
  margin: 0;
}

.inline-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-row {
  display: flex;
  gap: 8px;
}

.page-actions .btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
}

/* =======================
   GRID
======================= */

.grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

/* =======================
   TABLES
======================= */

.table-card {
  padding: 0;
  overflow: hidden;
}

.table-header {
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.table-header,
.table-row {
  display: grid;
  grid-template-columns: 1fr 140px 120px;
  padding: 16px 20px;
  align-items: center;
}

.table-row {
  border-top: 1px solid var(--border);
}

.table-row:hover {
  background: #f8fafc;
}

.table-sub {
  font-size: 12px;
  color: var(--muted);
}

/* =======================
   BADGES & PAYNOW (UPDATED)
======================= */

.uen-pill {
  background-color: #e0e7ff;
  color: #3730a3;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 0.95em;
  display: inline-block;
}

.paynow-header {
    font-weight: 800;
    font-size: 1.25rem;
    color: #3730a3;
    margin-bottom: 8px;
}

/* =======================
   FORMS
======================= */

.form-card {
  max-width: 760px;
  margin: 0 auto 40px;
}

.form-section {
  margin-top: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-card label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.form-card input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 14px;
}

.form-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.form-actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

/* =======================
   BUTTONS
======================= */

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--border);
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 600;
  color: #334155;
}

/* =======================
   SIDEBAR
======================= */

/* =======================
   SIDEBAR
======================= */

/* =======================
   SIDEBAR
======================= */

.paynow-card .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 16px;
  color: #0f172a;
}

.paynow-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.btn-copy {
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.paynow-disclaimer {
  background: #fee2e2;
  color: #dc2626;
  text-align: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
}

.paynow-note {
  font-size: 12px;
  color: #ef4444;
  margin-top: 8px;
}

/* =======================
   FOOTER
======================= */

.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-text {
  font-size: 14px;
  color: var(--muted);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-bottom {
  margin-top: 30px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* =======================
   PAGINATION
======================= */

.pagination {
  margin: 24px 0 40px;
}

.pagination a,
.pagination strong {
  display: inline-block;
  padding: 6px 10px;
  margin-right: 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
}

.pagination strong {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* =======================
   RESPONSIVE
======================= */

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    flex-direction: column;
  }

  .site-nav {
    display: none;
  }
}
/* Featured Industries Pills */
.featured-industries {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.fi-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.fi-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.pill-link {
  background: white;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s ease;
}
.pill-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  text-decoration: none;
}
.pill-link.view-all {
  background: var(--bg);
  color: var(--primary);
  border-color: transparent;
}

/* Featured Company Cards */
.company-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.company-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.company-icon {
  width: 40px;
  height: 40px;
  background: var(--primary); /* Or random color */
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}
.company-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--text);
}
.company-body {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}
.meta-label {
  color: var(--muted);
}
.meta-value {
  font-weight: 500;
  text-align: right;
}
.uen-font {
  font-family: monospace;
  background: #f1f5f9;
  padding: 1px 4px;
  border-radius: 4px;
}
.status-pill.green {
  background: #dcfce7;
  color: #166534;
  font-size: 10px;
  padding: 2px 8px;
  margin-top: 4px;
}

/* Company List Item (Card Row Design) */
.company-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  background: white;
  transition: background 0.1s;
}
.company-list-item:last-child {
  border-bottom: none;
}
.company-list-item:hover {
  background: #f8fafc;
}

/* Header Row */
.cli-header {
  display: flex;
  padding: 16px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Left Content */
.cli-content {
  flex: 1;
  padding-right: 20px;
}
.cli-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  text-decoration: none;
}
.cli-title:hover {
  color: var(--primary);
  text-decoration: underline;
}
.cli-desc {
  font-size: 13px;
  color: #64748b;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Right Meta (Badges) */
.cli-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* UEN Badge (Grey box) */
.badge-uen {
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
  min-width: 110px;
  text-align: center;
}

/* Status Badge (Light Blue Pill) */
.badge-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.badge-status.active {
  background: #e0f2fe; /* Light Blue */
  color: #0284c7;      /* Darker Blue Text */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cli-header { display: none; } /* Hide header on mobile */
  .company-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .cli-meta {
    width: 100%;
    justify-content: space-between;
  }
}

/* --- UI UPGRADE: Company Details --- */

.detail-card {
  padding: 30px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 24px;
  color: #0f172a;
}

/* Info Grid Layout */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-item.full-width {
  grid-column: span 2;
}

/* Icons */
.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bg-blue { background: #eff6ff; color: #3b82f6; }
.bg-red { background: #fff1f2; color: #e11d48; }
.bg-gray { background: #f8fafc; color: #64748b; }

/* Labels & Values */
.info-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.info-value {
  font-size: 15px;
  color: #0f172a;
  line-height: 1.5;
  word-break: break-word;
}

.info-value.bold {
  font-weight: 600;
}

.add-link {
  color: #94a3b8;
  font-style: italic;
  border-bottom: 1px dashed #cbd5e1;
}

/* Neighbor/Address List */
.neighbor-list {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.neighbor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #fcfcfc;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.1s;
}
.neighbor-row:last-child { border-bottom: none; }
.neighbor-row:hover { background: #fff; }

.neighbor-name {
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 2px;
}

.neighbor-meta {
  font-size: 12px;
  color: #64748b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .info-grid { grid-template-columns: 1fr; gap: 24px; }
  .info-item.full-width { grid-column: span 1; }
  .detail-card { padding: 20px; }
}
