/* ============================================
   SOLAR VERIFY - Main Stylesheet
   ============================================ */

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

:root {
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --primary-light: #fef3c7;
  --secondary: #0f172a;
  --accent: #3b82f6;
  --success: #10b981;
  --success-bg: #d1fae5;
  --danger: #ef4444;
  --danger-bg: #fee2e2;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

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

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--secondary);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
}

.brand-name {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.3px;
}

.brand-tagline {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover, .nav-links a.active {
  color: white;
  background: rgba(255,255,255,0.08);
}

.btn-admin {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  transition: opacity 0.2s !important;
}

.btn-admin:hover { opacity: 0.85 !important; }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 6px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #1e293b;
  padding: 12px 24px;
  gap: 4px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu a {
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; }

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--primary);
}
.shape-1 { width: 400px; height: 400px; top: -100px; right: -80px; }
.shape-2 { width: 250px; height: 250px; bottom: -50px; left: 10%; }
.shape-3 { width: 150px; height: 150px; top: 30%; left: 50%; }

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,158,11,0.15);
  color: var(--primary);
  border: 1px solid rgba(245,158,11,0.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.highlight { color: var(--primary); }

.hero-desc {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ===== SEARCH CARD ===== */
.search-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  margin: 0 auto 36px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.search-input-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 14px 44px 14px 46px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  color: var(--text);
  outline: none;
}

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

.btn-clear {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}
.btn-clear:hover { color: var(--danger); }

.btn-verify {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

.btn-verify:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.4);
}

.btn-verify:active { transform: translateY(0); }

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.stat i { color: var(--primary); }

.stat span {
  font-weight: 700;
  color: white;
  font-size: 1.1rem;
  margin-right: 2px;
}

/* ===== RESULT SECTION ===== */
.result-section {
  padding: 40px 24px;
}

.result-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  flex-wrap: wrap;
}

.result-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.success-icon {
  background: var(--success-bg);
  color: var(--success);
}

.fail-icon {
  background: var(--danger-bg);
  color: var(--danger);
}

.result-success { border-top: 5px solid var(--success); }
.result-fail { border-top: 5px solid var(--danger); }

.result-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.result-subtitle { color: var(--text-muted); font-size: 0.95rem; }

/* Panel Info Grid */
.panel-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}

.info-item {
  padding: 18px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.info-item:last-child { border-right: none; }

.info-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.badge-active {
  background: var(--success-bg);
  color: var(--success);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-inactive {
  background: #f1f5f9;
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

.result-footer {
  padding: 20px 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  background: #f8fafc;
  border-top: 1px solid var(--border);
}

.btn-secondary {
  padding: 10px 20px;
  background: white;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-print {
  padding: 10px 20px;
  background: var(--secondary);
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
}

.btn-print:hover { opacity: 0.85; }

/* Warning Box */
.warning-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--danger-bg);
  border: 1px solid #fca5a5;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 28px 20px;
  color: #b91c1c;
  font-size: 0.9rem;
  line-height: 1.5;
}

.warning-box i { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

.searched-serial {
  padding: 0 28px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.searched-serial strong { color: var(--text); }

/* Loading */
.result-loading { padding: 60px; text-align: center; }

.loading-spinner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.loading-spinner i { font-size: 2.5rem; color: var(--primary); }
.loading-spinner p { color: var(--text-muted); font-size: 1rem; }

/* ===== HOW IT WORKS ===== */
.how-section {
  background: white;
  padding: 80px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 50px;
}

.section-head h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.section-head p { color: var(--text-muted); font-size: 1rem; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  border: 2px solid var(--border);
  transition: all 0.3s;
}

.step-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.step-num {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-light), #fde68a);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin: 0 auto 18px;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.step-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ===== BRANDS SECTION ===== */
.brands-section {
  padding: 80px 0;
  background: var(--bg);
}

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

.brand-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s;
  cursor: default;
}

.brand-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(245,158,11,0.12);
  transform: translateY(-3px);
}

.brand-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin: 0 auto 14px;
}

.brand-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.brand-card p { font-size: 0.8rem; color: var(--text-muted); }

/* ===== PANELS TABLE ===== */
.panels-section {
  padding: 60px 24px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
  box-shadow: var(--shadow);
}

.panels-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.panels-table thead tr {
  background: var(--secondary);
  color: white;
}

.panels-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.panels-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

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

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

.serial-code {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.82rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--secondary);
  padding: 40px 0;
  color: #94a3b8;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-copy { font-size: 0.8rem; color: #64748b; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 60px 0 40px; }
  .hero-title { font-size: 2rem; }

  .search-card {
    padding: 20px;
    flex-direction: column;
  }

  .search-input-wrap { min-width: 100%; }
  .btn-verify { width: 100%; justify-content: center; }

  .hero-stats { gap: 16px; }

  .result-header { padding: 20px; }
  .result-title { font-size: 1.2rem; }

  .panel-info-grid { grid-template-columns: 1fr 1fr; }
  .info-item { border-right: none; }

  .steps-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .panel-info-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; align-items: center; gap: 10px; }
}

@media print {
  .navbar, .hero-stats, .how-section, .brands-section, .panels-section, .footer, .result-footer { display: none !important; }
  .hero { padding: 20px 0; }
  .search-card { display: none; }
  .result-card { box-shadow: none; border: 2px solid #ddd; }
}


.brand-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
  transition: 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-6px);
}

.brand-card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f4b400, #0f9d58);
  color: #fff;
  font-size: 28px;
}

.brand-card h3 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 700;
}

.brand-desc {
  color: #666;
  margin-bottom: 16px;
  line-height: 1.6;
}

.brand-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}

.brand-meta span {
  background: #f4f7fb;
  color: #222;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
}
