/* =====================================================
   PRECISION MICRO LABS - Main Stylesheet
   ===================================================== */

/* CSS Variables */
:root {
  --primary: #0A2540;
  --primary-light: #1E3A5F;
  --secondary: #00D4AA;
  --secondary-dark: #00B89C;
  --accent: #00B4D8;
  --surface: #F8FAFE;
  --card: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --text-light: rgba(255,255,255,0.7);
  --border: #E5E7EB;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --gradient-primary: linear-gradient(135deg, #0A2540 0%, #1E3A5F 50%, #0A2540 100%);
  --gradient-secondary: linear-gradient(135deg, #00D4AA 0%, #00B4D8 100%);
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.06);
  --shadow: 0 4px 20px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 20px 60px rgba(10, 37, 64, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hidden { display: none !important; }

.gradient-text {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hex Pattern Background */
.hex-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%2300D4AA' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Config Banner */
.config-banner {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  padding: 1rem 2rem;
  text-align: center;
  border-bottom: 1px solid #F59E0B;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.config-text {
  color: #92400E;
  font-size: 0.9rem;
}

.config-text code {
  background: rgba(0,0,0,0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,212,170,0.1);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-secondary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  color: white;
  font-size: 1rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-secondary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: 'Outfit', sans-serif;
}

.btn-primary {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: 0 4px 15px rgba(0,212,170,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,212,170,0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: white;
}

.btn-outline-light {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary);
}

.btn-danger {
  background: var(--error);
  color: white;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  background: var(--gradient-primary);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 70% 20%, rgba(0,212,170,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 80%, rgba(0,180,216,0.1) 0%, transparent 50%);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.stat {
  text-align: left;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  font-family: 'Space Mono', monospace;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Molecule Animation */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.molecule {
  width: 350px;
  height: 350px;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.molecule-node {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 0 30px rgba(0,212,170,0.5);
  animation: pulse 2s ease-in-out infinite;
}

.molecule-node.center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  font-size: 1.5rem;
}

.molecule-node.n1 { top: 10%; left: 50%; transform: translateX(-50%); animation-delay: 0.1s; }
.molecule-node.n2 { top: 30%; left: 85%; animation-delay: 0.2s; }
.molecule-node.n3 { top: 70%; left: 85%; animation-delay: 0.3s; }
.molecule-node.n4 { top: 90%; left: 50%; transform: translateX(-50%); animation-delay: 0.4s; }
.molecule-node.n5 { top: 70%; left: 15%; animation-delay: 0.5s; }
.molecule-node.n6 { top: 30%; left: 15%; animation-delay: 0.6s; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(0,212,170,0.5); }
  50% { box-shadow: 0 0 50px rgba(0,212,170,0.8); }
}

/* Sections */
.section {
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0,212,170,0.1);
  color: var(--secondary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.5px;
}

.section-tag.light {
  background: rgba(255,255,255,0.1);
  color: white;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0,212,170,0.1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-secondary);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

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

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(0,212,170,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.service-desc {
  color: var(--text-muted);
  line-height: 1.6;
}

/* COA Section */
.coa-section {
  background: var(--gradient-primary);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.coa-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.coa-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.coa-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.search-container {
  margin-bottom: 2rem;
}

.search-box {
  display: flex;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto 1rem;
}

.search-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  font-size: 1rem;
  background: rgba(255,255,255,0.1);
  color: white;
  font-family: 'Outfit', sans-serif;
  backdrop-filter: blur(10px);
}

.search-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.search-input:focus {
  outline: none;
  border-color: var(--secondary);
  background: rgba(255,255,255,0.15);
}

.search-filters {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.filter-select {
  padding: 0.75rem 1.5rem;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
}

.filter-select option {
  background: var(--primary);
  color: white;
}

/* COA Results */
.coa-results {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  max-height: 500px;
  overflow-y: auto;
  text-align: left;
}

.coa-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.coa-item:last-child {
  margin-bottom: 0;
}

.coa-item:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(0,212,170,0.3);
}

.coa-info {
  flex: 1;
}

.coa-id {
  color: var(--secondary);
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
}

.coa-product {
  color: white;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.coa-date {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.coa-status {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.coa-status.valid {
  background: rgba(16,185,129,0.2);
  color: #10B981;
}

.coa-status.pending {
  background: rgba(245,158,11,0.2);
  color: #F59E0B;
}

.coa-empty {
  text-align: center;
  padding: 3rem;
  color: rgba(255,255,255,0.5);
}

/* Contact Section */
.contact-section {
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition);
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0,212,170,0.1);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--secondary);
}

.contact-card h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--primary);
  padding: 3rem 2rem;
  color: white;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer .logo {
  color: white;
}

.footer p {
  color: rgba(255,255,255,0.6);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10,37,64,0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 450px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-lg {
  max-width: 700px;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--surface);
  color: var(--text);
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

/* Auth Forms */
.auth-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form-toggle {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-toggle span {
  color: var(--secondary);
  cursor: pointer;
  font-weight: 600;
}

.form-toggle span:hover {
  text-decoration: underline;
}

/* User Badge */
.user-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(0,212,170,0.1);
  border-radius: 30px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
}

.user-name {
  font-weight: 500;
  color: var(--primary);
}

/* Admin Panel */
.admin-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  z-index: 300;
  overflow-y: auto;
}

.admin-header {
  background: var(--primary);
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-header h2 {
  font-size: 1.5rem;
}

.admin-content {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

.admin-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: var(--transition);
}

.admin-tab:hover {
  color: var(--primary);
  background: rgba(0,212,170,0.05);
}

.admin-tab.active {
  color: var(--secondary);
  background: rgba(0,212,170,0.1);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.admin-toolbar h3 {
  font-size: 1.25rem;
  color: var(--primary);
}

.admin-table {
  width: 100%;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.admin-table th,
.admin-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: var(--surface);
  font-weight: 600;
  color: var(--primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table tr:hover td {
  background: rgba(0,212,170,0.02);
}

.admin-table .actions {
  display: flex;
  gap: 0.5rem;
}

/* Alert Messages */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert-error {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.alert-success {
  background: #D1FAE5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 300px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--error);
}

.toast-icon {
  font-size: 1.25rem;
}

.toast-message {
  flex: 1;
  font-size: 0.9rem;
}

/* COA Detail View */
.coa-detail {
  text-align: left;
}

.coa-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.coa-detail-id {
  font-family: 'Space Mono', monospace;
  color: var(--secondary);
  font-size: 1.5rem;
  font-weight: 700;
}

.coa-detail-product {
  font-size: 1.25rem;
  color: var(--primary);
  margin-top: 0.5rem;
}

.coa-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.coa-detail-item {
  background: var(--surface);
  padding: 1rem;
  border-radius: var(--radius);
}

.coa-detail-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.coa-detail-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

.coa-detail-results {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.coa-detail-results h4 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.coa-detail-results p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* QR Code Section */
.coa-qr-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  border: 2px dashed rgba(0, 212, 170, 0.3);
}

.coa-qr-code {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.coa-qr-code img,
.coa-qr-code canvas {
  border-radius: 4px;
}

.coa-qr-info {
  flex: 1;
}

.coa-qr-info h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.coa-qr-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.coa-permalink {
  display: flex;
  gap: 0.5rem;
}

.permalink-input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  font-family: 'Space Mono', monospace;
  color: var(--text-muted);
  background: white;
}

.permalink-input:focus {
  outline: none;
  border-color: var(--secondary);
}

.coa-detail-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.75rem;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    display: none;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: var(--transition);
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero {
    padding: 6rem 1rem 3rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  
  .section {
    padding: 4rem 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .search-box {
    flex-direction: column;
  }
  
  .search-filters {
    flex-direction: column;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .modal {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .coa-detail-grid {
    grid-template-columns: 1fr;
  }

  .coa-qr-section {
    flex-direction: column;
    text-align: center;
  }

  .coa-permalink {
    flex-direction: column;
  }
}
