:root {
  --purple-dark: #1a0533;
  --purple-mid: #2d1b69;
  --purple-light: #7c3aed;
  --white: #ffffff;
  --gray-light: #f8f9fc;
  --gray-border: #e5e7eb;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-mid));
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
  color: var(--text-primary);
}

.app {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Header */
.header {
  text-align: center;
  color: white;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 2.2rem;
  font-weight: 700;
}

.logo .icon {
  font-size: 2.5rem;
}

.logo h1 {
  font-size: inherit;
  font-weight: 800;
}

.logo h1 span {
  color: #c084fc; /* lighter purple */
}

.tagline {
  margin-top: 0.5rem;
  opacity: 0.8;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

/* Search */
.search-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.search-box {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 60px;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 600px;
}

.search-icon {
  font-size: 1.4rem;
  margin-right: 0.5rem;
}

#phoneInput {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  padding: 0.8rem 0;
  color: var(--text-primary);
}

#phoneInput::placeholder {
  color: var(--text-secondary);
}

#searchBtn {
  background: var(--purple-light);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1rem;
}

#searchBtn:hover {
  background: #6d28d9;
}

.status-badge {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-header {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--purple-light);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--gray-border);
  padding-bottom: 0.5rem;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.detail-label {
  width: 90px;
  color: var(--text-secondary);
  font-weight: 500;
  flex-shrink: 0;
}

.detail-value {
  color: var(--text-primary);
  word-break: break-word;
}

.no-data {
  grid-column: 1 / -1;
  text-align: center;
  background: white;
  border-radius: var(--radius);
  padding: 3rem;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dot {
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 600px) {
  .logo {
    font-size: 1.8rem;
  }
  .search-box {
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    gap: 0.5rem;
  }
  #phoneInput {
    background: white;
    border-radius: 50px;
    padding: 0.8rem 1.2rem;
    width: 100%;
    box-shadow: var(--shadow);
  }
  #searchBtn {
    width: 100%;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
}
