/* ==========================================================================
   Search My Lost Shares (SearchMLS) — Modern UI Design System
   ========================================================================== */

:root {
  --primary: #1e3a8a;
  --primary-hover: #172554;
  --primary-light: #2563eb;
  --primary-gradient: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%);
  --accent: #38bdf8;
  --accent-dark: #0284c7;
  --bg-navy: #0f172a;
  --bg-dark-navy: #090d16;
  --bg-body: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-focus: #3b82f6;
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.bg-navy {
  background-color: var(--bg-navy) !important;
  backdrop-filter: blur(10px);
}

.bg-dark-navy {
  background-color: var(--bg-dark-navy) !important;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.brand-icon.small {
  width: 32px;
  height: 32px;
  font-size: 0.95rem;
}

.brand-title {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-top: -3px;
}

.text-accent {
  color: var(--accent) !important;
}

.text-light-muted {
  color: #94a3b8;
}

.navbar .nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5e1;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: var(--primary-gradient);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4.5rem;
  color: #ffffff;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: #e0f2fe;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Search Box Container */
.search-card-wrapper {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.search-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 0.6rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.search-card:focus-within {
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.35), var(--shadow-xl);
}

.search-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-input-group .search-icon {
  padding-left: 1rem;
  font-size: 1.25rem;
  color: #94a3b8;
}

.search-input-group .form-control-search {
  border: none;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.85rem 0.5rem;
  color: var(--text-main);
  box-shadow: none !important;
}

.search-input-group .form-control-search::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.btn-search-hero {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-search-hero:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.search-tips {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 1rem;
}

/* ==========================================================================
   Metrics & Stats Cards
   ========================================================================== */
.stats-section {
  margin-top: -2.5rem;
  position: relative;
  z-index: 3;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.stat-icon.blue {
  background-color: #eff6ff;
  color: #2563eb;
}

.stat-icon.green {
  background-color: #ecfdf5;
  color: #10b981;
}

.stat-icon.amber {
  background-color: #fffbeb;
  color: #f59e0b;
}

.stat-icon.purple {
  background-color: #f5f3ff;
  color: #8b5cf6;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* ==========================================================================
   How It Works / Steps Section
   ========================================================================== */
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  transition: all 0.25s ease;
  height: 100%;
}

.step-card:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.step-title {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step-text {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ==========================================================================
   Search Results (all_info.php)
   ========================================================================== */
.results-header-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.results-table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.table-modern {
  margin-bottom: 0;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-modern thead th {
  background-color: #f8fafc;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table-modern tbody td {
  padding: 1.1rem 1.25rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
}

.table-modern tbody tr {
  transition: background-color 0.15s ease;
}

.table-modern tbody tr:hover {
  background-color: #f8fafc;
}

.table-modern tbody tr:last-child td {
  border-bottom: none;
}

.badge-eligible {
  background-color: var(--success-light);
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-view-record {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-view-record:hover {
  background-color: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   Investor Details Page (info.php)
   ========================================================================== */
.valuation-highlight-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}

.valuation-highlight-card::after {
  content: "₹";
  position: absolute;
  right: -10px;
  bottom: -40px;
  font-size: 12rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  pointer-events: none;
}

.valuation-amount {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #38bdf8;
  line-height: 1.1;
  margin: 0.5rem 0;
}

.details-spec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.spec-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.action-card-callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==========================================================================
   Forms (investment_details.php & recovery.php)
   ========================================================================== */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
}

.form-label-modern {
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 0.4rem;
}

.form-control-modern {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.form-control-modern:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  outline: none;
}

.form-control-modern[readonly] {
  background-color: #f8fafc;
  color: #64748b;
  border-style: dashed;
}

.btn-submit-action {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius-sm);
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}

.btn-submit-action:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* ==========================================================================
   Mobile Responsiveness Utilities
   ========================================================================== */
@media (max-width: 767.98px) {
  .hero-section {
    padding: 3.5rem 0 3rem;
  }
  
  .search-input-group {
    flex-direction: column;
  }
  
  .search-input-group .form-control-search {
    width: 100%;
    padding: 0.5rem;
    text-align: center;
  }
  
  .btn-search-hero {
    width: 100%;
    justify-content: center;
  }
  
  .form-card {
    padding: 1.5rem;
  }
  
  /* Mobile Responsive Table Transformation */
  .table-responsive-cards thead {
    display: none;
  }
  
  .table-responsive-cards tbody,
  .table-responsive-cards tr,
  .table-responsive-cards td {
    display: block;
    width: 100%;
  }
  
  .table-responsive-cards tr {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
  }
  
  .table-responsive-cards td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
  }
  
  .table-responsive-cards td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    margin-right: 1rem;
  }
  
  .table-responsive-cards td:last-child {
    border-bottom: none;
    justify-content: center;
    padding-top: 0.9rem;
  }
  
  .table-responsive-cards td:last-child::before {
    display: none;
  }
  
  .table-modern td a.btn-view-record {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Home Page Layout (Matching Attached Mockup)
   ========================================================================== */
.home-hero-section {
  position: relative;
  background: linear-gradient(rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.88)), url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
  color: #ffffff;
  padding: 6.5rem 0 5.5rem;
  text-align: center;
}

.home-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.home-hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 auto 2.25rem;
  max-width: 600px;
}

.home-hero-bullets li {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.unclaimed-blue-band {
  background-color: #0d6efd;
  color: #ffffff;
  padding: 3.5rem 0 3rem;
}

.unclaimed-stat-tile {
  text-align: center;
  padding: 1rem 0.5rem;
}

.unclaimed-stat-tile i {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: inline-block;
  color: #ffffff;
  opacity: 0.9;
}

.unclaimed-stat-tile .stat-amount {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.service-card-mockup {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2.25rem 1.5rem;
  text-align: center;
  transition: all 0.25s ease;
  height: 100%;
}

.service-card-mockup:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: #93c5fd;
}

.service-card-mockup .service-icon-box {
  width: 58px;
  height: 58px;
  margin: 0 auto 1.25rem;
  border: 1.5px solid #0f172a;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #0f172a;
  background-color: #ffffff;
}

.service-card-mockup h4 {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.service-card-mockup p {
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.check-item-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.85rem;
}

.check-icon-svg {
  width: 22px;
  height: 22px;
  background-color: #0ea5e9;
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
