/* ============================================================
   Sierra Metals — Main Stylesheet
   ============================================================ */

:root {
  --primary:        #0f172a;
  --primary-light:  #1e293b;
  --primary-mid:    #334155;
  --accent:         #0d9488;
  --accent-dark:    #0f766e;
  --accent-light:   #ccfbf1;
  --white:          #ffffff;
  --surface:        #f8fafc;
  --surface-2:      #f1f5f9;
  --border:         #e2e8f0;
  --text:           #1e293b;
  --text-muted:     #64748b;
  --text-light:     #94a3b8;
  --success:        #10b981;
  --success-bg:     #d1fae5;
  --error:          #ef4444;
  --error-bg:       #fee2e2;
  --info:           #3b82f6;
  --info-bg:        #dbeafe;
  --warning-bg:     #fef9c3;
  --critical:       #dc2626;
  --critical-bg:    #fee2e2;
  --radius:         10px;
  --radius-lg:      16px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:         0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:      0 20px 48px rgba(0,0,0,0.14), 0 8px 20px rgba(0,0,0,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }

img { max-width: 100%; }

/* Honeypot — invisible to humans, attracts bots */
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }

/* ============================================================
   Utilities
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow { max-width: 860px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--primary); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--primary); }

.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); color: var(--white); }

.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-xs { padding: 0.3rem 0.7rem; font-size: 0.75rem; border-radius: 6px; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-hex { width: 32px; height: 36px; color: var(--accent); }
.logo-text {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--white);
}
.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-link {
  padding: 0.5rem 0.75rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s;
  text-decoration: none;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-cta {
  margin-left: 0.75rem;
  padding: 0.5rem 1.125rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--accent-dark); color: var(--white); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: 0.2s;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(13,148,136,0.13) 0%, transparent 65%),
    linear-gradient(160deg, #0f172a 0%, #0f1f2e 50%, #0a1a1a 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 64px, rgba(13,148,136,0.03) 64px, rgba(13,148,136,0.03) 65px),
    repeating-linear-gradient(90deg, transparent, transparent 64px, rgba(13,148,136,0.03) 64px, rgba(13,148,136,0.03) 65px);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13,148,136,0.15);
  border: 1px solid rgba(13,148,136,0.35);
  color: #2dd4bf;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}
.hero-badge::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  background: #2dd4bf;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.hero-accent { color: #2dd4bf; }

.hero-subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  line-height: 1.7;
  margin: 0 auto 3rem;
}

/* Hero action tiles */
.hero-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0;
}
.hero-tile {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: left;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
}
.hero-tile:hover {
  background: rgba(13,148,136,0.1);
  border-color: rgba(13,148,136,0.4);
  transform: translateY(-2px);
}
.hero-tile-icon {
  width: 44px; height: 44px;
  background: rgba(13,148,136,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-tile-icon svg { width: 22px; height: 22px; stroke: #2dd4bf; }
.hero-tile-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.hero-tile-desc {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  flex: 1;
}
.hero-tile-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2dd4bf;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.25rem;
  transition: gap 0.15s;
}
.hero-tile:hover .hero-tile-link { gap: 8px; }

/* ============================================================
   Services Section
   ============================================================ */
.services {
  padding: 6rem 0;
  background: var(--white);
}
.section-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.22s ease;
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(245,158,11,0.12);
  transform: translateY(-3px);
}
.service-card--featured {
  background: var(--primary);
  border-color: var(--accent);
  color: var(--white);
}
.service-card--featured:hover { box-shadow: 0 12px 40px rgba(245,158,11,0.25); }
.service-card--featured p { color: rgba(255,255,255,0.7); }

.service-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--accent-dark); }
.service-card--featured .service-icon { background: rgba(245,158,11,0.15); }
.service-card--featured .service-icon svg { stroke: var(--accent); }

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: var(--primary);
}
.service-card--featured h3 { color: var(--white); }
.service-card p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.65; margin-bottom: 1.5rem; }

.service-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
}
.service-link:hover { gap: 8px; color: var(--accent-dark); }
.service-card--featured .service-link { color: var(--accent); }

/* ============================================================
   Process Section
   ============================================================ */
.process {
  padding: 6rem 0;
  background: var(--surface);
}
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 3rem;
}
.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
}
.step-num {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.step-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.625rem;
}
.step-content p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.65; }

.process-connector {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  margin-top: 29px;
  flex-shrink: 0;
  opacity: 0.4;
}

/* ============================================================
   CTA Band
   ============================================================ */
.cta-band {
  padding: 5rem 0;
  background: var(--primary);
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}
.cta-band-text p { color: rgba(255,255,255,0.65); font-size: 1.0625rem; }
.cta-band-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #080e1a;
  color: rgba(255,255,255,0.6);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}
.footer-logo .logo-hex { color: var(--accent); }
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.35); margin-top: 0.5rem; }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }
.footer-contact-item { font-size: 0.875rem; margin-bottom: 0.5rem; }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.07);
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bar p { font-size: 0.8125rem; }
.footer-admin-link { color: rgba(255,255,255,0.2); font-size: 0.75rem; transition: color 0.15s; }
.footer-admin-link:hover { color: rgba(255,255,255,0.5); }

/* ============================================================
   Page Hero (internal pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%);
  padding: 4rem 0 3rem;
}
.page-hero--sm { padding: 3rem 0 2.5rem; }
.breadcrumb {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}
.page-sub {
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-size: 1.0625rem;
  max-width: 560px;
}

/* ============================================================
   Form styles
   ============================================================ */
.form-section { padding: 4rem 0 5rem; }

.form-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.625rem;
  border-bottom: 1.5px solid var(--accent-light);
}

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

.field { display: flex; flex-direction: column; gap: 0.375rem; }
.field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}
.required { color: var(--error); }

.field-input {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
.field-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}
.field-input::placeholder { color: var(--text-light); }

.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}
.field-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid var(--surface-2);
  flex-wrap: wrap;
}
.form-note { font-size: 0.8125rem; color: var(--text-muted); max-width: 400px; }

/* ============================================================
   Alerts
   ============================================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-error { background: var(--error-bg); color: #991b1b; border: 1px solid #fca5a5; }
.alert-error svg { stroke: #dc2626; }
.alert-success { background: var(--success-bg); color: #065f46; border: 1px solid #6ee7b7; }
.alert-success svg { stroke: #059669; }

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}

.badge-status--open       { background: #dbeafe; color: #1d4ed8; }
.badge-status--in_progress{ background: #fef3c7; color: #92400e; }
.badge-status--awaiting   { background: #ede9fe; color: #5b21b6; }
.badge-status--resolved   { background: var(--success-bg); color: #065f46; }
.badge-status--closed     { background: var(--surface-2); color: var(--text-muted); }

.badge-priority--low      { background: var(--surface-2); color: var(--text-muted); }
.badge-priority--normal   { background: #dbeafe; color: #1e40af; }
.badge-priority--high     { background: #fef3c7; color: #92400e; }
.badge-priority--critical { background: var(--critical-bg); color: var(--critical); }

/* ============================================================
   Ticket Success
   ============================================================ */
.success-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.success-icon {
  width: 72px;
  height: 72px;
  background: var(--success-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.success-icon svg { width: 36px; height: 36px; stroke: var(--success); stroke-width: 2.5; }
.success-card h2 { font-size: 1.75rem; font-weight: 800; color: var(--primary); margin-bottom: 0.75rem; }
.success-card p { color: var(--text-muted); font-size: 1.0625rem; }
.ticket-number-display {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.05em;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.75rem 2rem;
  display: inline-block;
  margin: 1.25rem 0;
  font-variant-numeric: tabular-nums;
}
.ticket-save-note { font-size: 0.875rem; color: var(--text-muted); }
.success-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; }

.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.info-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
}
.info-card-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-card-icon svg { stroke: var(--accent-dark); }
.info-card h4 { font-size: 0.875rem; font-weight: 700; color: var(--primary); margin-bottom: 0.375rem; }
.info-card p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   Track Ticket
   ============================================================ */
.ticket-detail-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ticket-detail-header {
  background: var(--primary);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.ticket-detail-number { color: var(--accent); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 0.25rem; }
.ticket-detail-subject { color: var(--white); font-size: 1.25rem; font-weight: 700; }
.ticket-badges { display: flex; gap: 0.5rem; align-items: center; }
.ticket-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.ticket-meta-item { padding: 1rem 2rem; border-right: 1px solid var(--border); }
.ticket-meta-item:last-child { border-right: none; }
.ticket-meta-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.25rem; }
.ticket-meta-value { font-size: 0.9375rem; font-weight: 600; color: var(--primary); }
.ticket-desc-block { padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); }
.ticket-desc-block h4 { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.75rem; }
.ticket-desc-block p { color: var(--text); font-size: 0.9375rem; line-height: 1.7; }

.ticket-timeline { padding: 1.5rem 2rem; }
.ticket-timeline h4 { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 1.5rem; }
.timeline-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.timeline-dot { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.timeline-content { flex: 1; }
.timeline-meta { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.375rem; font-size: 0.875rem; }
.timeline-meta strong { color: var(--primary); }
.timeline-meta span { color: var(--text-muted); }
.timeline-content p { font-size: 0.9375rem; color: var(--text); line-height: 1.6; }

/* ============================================================
   Remote Support
   ============================================================ */
.remote-intro {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.remote-intro-icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.remote-intro-icon svg { width: 32px; height: 32px; stroke: var(--accent); }
.remote-intro h2 { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin-bottom: 0.75rem; }
.remote-steps { color: var(--text-muted); font-size: 0.9375rem; padding-left: 1.25rem; }
.remote-steps li { margin-bottom: 0.5rem; line-height: 1.6; }

.download-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.download-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow);
  transition: border-color 0.18s, transform 0.18s;
}
.download-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.download-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.download-card-icon--windows { background: #eff6ff; color: #3b82f6; }
.download-card-icon--mac { background: #f1f5f9; color: #475569; }
.download-card-icon svg { width: 28px; height: 28px; }
.download-card-info h3 { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin-bottom: 0.25rem; }
.download-compat { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.download-size { font-size: 0.8125rem; color: var(--text-light); }
.btn-download { margin-top: auto; justify-content: center; }

.security-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.security-note svg { color: var(--success); flex-shrink: 0; margin-top: 2px; }
.security-note strong { font-size: 0.9375rem; color: var(--primary); display: block; margin-bottom: 0.25rem; }
.security-note p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   Contact
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-info-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: rgba(255,255,255,0.8);
}
.contact-info-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: 1.5rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item-icon {
  width: 36px;
  height: 36px;
  background: rgba(245,158,11,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { stroke: var(--accent); }
.contact-item-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.4); margin-bottom: 0.125rem; }
.contact-item-value { font-size: 0.9375rem; color: var(--white); }
.contact-item-value a { color: var(--accent); }
.contact-support-link { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; }
.contact-support-link p { font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-bottom: 0.5rem; }

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

/* ============================================================
   Admin Login
   ============================================================ */
.admin-login-body {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-wrap { width: 100%; max-width: 420px; padding: 1.5rem; }
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.login-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.login-hex { width: 44px; height: 50px; color: var(--accent); }
.login-brand { font-size: 1.125rem; font-weight: 800; letter-spacing: 0.1em; color: var(--primary); }
.login-sub { font-size: 0.8125rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   Admin Layout
   ============================================================ */
.admin-body {
  background: var(--surface);
  min-height: 100vh;
}
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--primary);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.admin-brand-name {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--white);
}
.admin-brand-sub { font-size: 0.675rem; color: rgba(255,255,255,0.35); letter-spacing: 0.1em; }

.admin-nav { padding: 1.25rem 0.75rem; flex: 1; }
.admin-nav-section {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  margin-bottom: 0.25rem;
  text-decoration: none;
  transition: all 0.15s;
}
.admin-nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-nav-link:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.admin-nav-link--active { background: rgba(245,158,11,0.15); color: var(--accent); }
.admin-nav-link--active:hover { color: var(--accent); }

.admin-sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.admin-user { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.5rem; }
.admin-user-avatar {
  width: 36px;
  height: 36px;
  background: rgba(13,148,136,0.2);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.admin-user-name { font-size: 0.875rem; font-weight: 600; color: var(--white); }
.admin-user-role { font-size: 0.75rem; color: rgba(255,255,255,0.35); }
.admin-logout-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.8125rem;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: all 0.15s;
  font-family: inherit;
}
.admin-logout-btn svg { width: 15px; height: 15px; }
.admin-logout-btn:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.8); }
.admin-site-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  margin-top: 0.75rem;
  text-decoration: none;
  transition: color 0.15s;
}
.admin-site-link:hover { color: rgba(255,255,255,0.6); }

.admin-main { overflow: auto; }
.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-breadcrumb { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.admin-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.admin-breadcrumb a:hover { color: var(--accent); }
.admin-page-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.admin-page-sub { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-card {
  background: var(--white);
  padding: 1.25rem 1.5rem;
}
.stat-card--alert { background: #f0fdfa; }
.stat-card--info { background: #eff6ff; }
.stat-card--success { background: #f0fdf4; }
.stat-card--critical { background: #fff1f2; }
.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.375rem; }

/* Filter bar */
.admin-section { padding: 1.5rem 2rem; }
.filter-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.filter-search { flex: 1; min-width: 200px; }
.filter-select { width: 175px; flex-shrink: 0; }

/* Tickets table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.tickets-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.tickets-table thead { background: var(--surface); }
.tickets-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tickets-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ticket-row:last-child td { border-bottom: none; }
.ticket-row { background: var(--white); transition: background 0.1s; }
.ticket-row:hover { background: var(--surface); }
.ticket-row--critical { border-left: 3px solid var(--critical); }
.ticket-num-cell { font-family: monospace; font-size: 0.8125rem; color: var(--primary); font-weight: 600; white-space: nowrap; }
.ticket-subject-cell { font-weight: 500; color: var(--text); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-submitter { font-weight: 600; color: var(--primary); }
.ticket-submitter-email { font-size: 0.75rem; color: var(--text-muted); }
.ticket-cat { font-size: 0.8125rem; color: var(--text-muted); white-space: nowrap; }
.ticket-date { font-size: 0.8125rem; color: var(--text-muted); white-space: nowrap; }
.table-footer { padding: 0.75rem 1rem; font-size: 0.8125rem; color: var(--text-muted); border-top: 1px solid var(--border); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.empty-state svg { width: 48px; height: 48px; margin-bottom: 1rem; opacity: 0.3; }

/* Ticket Detail (admin) */
.ticket-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  align-items: start;
}
.ticket-detail-main {}
.ticket-detail-sidebar {}

.admin-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.admin-card-header {
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.admin-card-body { padding: 1.5rem; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.detail-item { display: flex; flex-direction: column; gap: 0.25rem; }
.detail-item-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.detail-item-value { font-size: 0.9375rem; font-weight: 600; color: var(--primary); }

.ticket-description-block { background: var(--surface); border-radius: var(--radius); padding: 1.25rem; }
.ticket-desc-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.625rem; }
.ticket-desc-body { font-size: 0.9375rem; color: var(--text); line-height: 1.7; }

.empty-notes { color: var(--text-muted); font-size: 0.9rem; text-align: center; padding: 1rem 0; }

.admin-note {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}
.admin-note--internal { background: #fffbeb; border-color: #fde68a; }
.admin-note-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
  font-size: 0.875rem;
}
.admin-note-avatar {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-note-time { color: var(--text-muted); font-size: 0.8125rem; margin-left: auto; }
.admin-note-body { font-size: 0.9rem; color: var(--text); line-height: 1.65; }
.internal-badge {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

.note-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox-label input { width: 15px; height: 15px; accent-color: var(--accent); }

.customer-info { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.customer-avatar {
  width: 44px;
  height: 44px;
  background: rgba(13,148,136,0.12);
  color: var(--accent);
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.customer-name { font-size: 1rem; font-weight: 700; color: var(--primary); }
.customer-company { font-size: 0.875rem; color: var(--text-muted); }
.customer-details { display: flex; flex-direction: column; gap: 0.5rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.customer-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.customer-detail svg { flex-shrink: 0; color: var(--text-light); }
.customer-detail a { color: var(--accent-dark); text-decoration: none; }
.customer-detail a:hover { color: var(--accent); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .admin-layout { grid-template-columns: 220px 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .ticket-detail-layout { grid-template-columns: 1fr; }
  .ticket-detail-sidebar { order: -1; }
  .contact-layout { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links--open { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-cta { width: 100%; justify-content: center; margin-left: 0; }

  .hero-content { padding: 3rem 1.5rem 4rem; }
  .hero-tiles { grid-template-columns: 1fr; }
  .form-grid--2 { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .download-cards { grid-template-columns: 1fr; }
  .ticket-meta-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-search, .filter-select { width: 100%; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .ticket-detail-layout { padding: 1rem; }
  .admin-section { padding: 1rem; }
  .admin-topbar { padding: 1rem; }
}

@media (max-width: 480px) {
  .form-footer { flex-direction: column; align-items: stretch; }
  .form-footer .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .ticket-number-display { font-size: 1.5rem; padding: 0.625rem 1.25rem; }
  .footer-links { grid-template-columns: 1fr; }
}
