/* ==========================================================================
   SYNCITYBIO GLOBAL THEME
   Futuristic biotechnology design system.
   Loaded after the base theme so it re-skins the whole public site.
   No backend logic touches here - visual styling only.
   ========================================================================== */

:root {
  /* Brand palette */
  --neon-cyan: #00e5ff;
  --neon-purple: #d92bff;
  --electric-blue: #2979ff;
  --mid-blue: #5a8bff;

  /* Surfaces */
  --dark-bg: #050816;
  --card-bg: #090d20;
  --card-bg-2: #0c1230;
  --surface-3: #101736;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #a7b4cf;
  --text-muted: #6f7ea3;

  /* Lines */
  --border-soft: rgba(90, 139, 255, 0.16);
  --border-mid: rgba(90, 139, 255, 0.28);
  --border-strong: rgba(0, 229, 255, 0.4);

  /* Brand gradient */
  --brand-gradient: linear-gradient(110deg, #00e5ff 0%, #5a8bff 48%, #d92bff 100%);
  --brand-gradient-soft: linear-gradient(110deg, rgba(0, 229, 255, 0.16) 0%, rgba(90, 139, 255, 0.14) 48%, rgba(217, 43, 255, 0.16) 100%);

  /* Glows */
  --glow-cyan: 0 0 22px rgba(0, 229, 255, 0.35);
  --glow-purple: 0 0 22px rgba(217, 43, 255, 0.3);
  --glow-soft: 0 10px 40px rgba(0, 0, 0, 0.5);

  /* Legacy token remap so inherited rules pick up the new brand */
  --bg: #050816;
  --panel: #090d20;
  --muted: #a7b4cf;
  --line: rgba(90, 139, 255, 0.18);
  --cyan: #00e5ff;
  --magenta: #d92bff;
  --radius: 10px;
}

/* --------------------------------------------------------------------------
   Base surfaces & typography
   -------------------------------------------------------------------------- */

html {
  background: var(--dark-bg);
}

body {
  background: var(--dark-bg);
  color: var(--text-primary);
}

:root,
html,
body {
  color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
}

p, small, .text-secondary {
  color: var(--text-secondary);
}

::selection {
  background: rgba(0, 229, 255, 0.28);
  color: #fff;
}

/* Brand gradient helper */
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.gradient-text-alt {
  background: linear-gradient(110deg, #00e5ff 0%, #5a8bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   Announcement bar
   -------------------------------------------------------------------------- */

.announcement {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.1), rgba(217, 43, 255, 0.1)), var(--card-bg);
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-secondary);
}

.announcement .status-dot {
  background: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

.announcement-right {
  border-left-color: var(--border-mid);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
  background: rgba(5, 8, 22, 0.86);
  border-bottom: 1px solid var(--border-soft);
}

.site-header nav a {
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

.site-header nav a:hover {
  color: var(--text-primary);
}

.site-header nav a.active {
  color: var(--text-primary);
}

.site-header nav a.active:after {
  background: var(--brand-gradient);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

.icon-btn {
  color: var(--text-secondary);
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.icon-btn:hover {
  color: var(--neon-cyan);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.18);
}

.bag-button b {
  background: var(--brand-gradient);
  color: #050816;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  background: var(--brand-gradient);
  border: 0;
  color: #050816;
  font-weight: 800;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  background: var(--brand-gradient);
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.3), var(--glow-purple);
}

.btn.ghost {
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid var(--border-mid);
  color: var(--text-primary);
  box-shadow: none;
}

.btn.ghost:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 229, 255, 0.1);
  color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.22);
}

.btn.danger {
  background: linear-gradient(110deg, #ff4d6d, #d92bff);
  border-color: transparent;
  color: #fff;
}

.arrow-link {
  border-bottom-color: var(--border-mid);
  color: var(--text-primary);
}

.arrow-link:hover {
  border-bottom-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.text-button {
  color: var(--neon-cyan);
}

.text-button:hover {
  color: var(--neon-purple);
}

.eyebrow {
  color: var(--text-muted);
}

.eyebrow .status-dot,
.status-dot {
  background: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

/* --------------------------------------------------------------------------
   Cards, panels & product containers
   -------------------------------------------------------------------------- */

.panel,
.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: var(--glow-soft);
}

.catalog-section {
  background: var(--dark-bg);
  border-block-color: var(--border-soft);
}

.product-visual {
  background: var(--card-bg);
}

.specimen {
  background: radial-gradient(ellipse at 45% 45%, rgba(90, 139, 255, 0.22), transparent 65%), linear-gradient(145deg, #0b1130, #0a0e22);
}

.specimen:after {
  background: var(--brand-gradient);
  opacity: 0.6;
}

.specimen-code {
  color: #c9d6f5;
}

.specimen-code,
.specimen-corner,
.specimen-bottom,
.specimen-qty {
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.product-card:nth-child(2n) .specimen {
  background: radial-gradient(ellipse at 40% 50%, rgba(217, 43, 255, 0.22), transparent 70%), #0a0e22;
}

.research-badge {
  background: rgba(5, 8, 22, 0.7);
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
}

.product-card.featured .product-visual,
.neon-card {
  position: relative;
  border-radius: 12px;
}

.product-card.featured .product-visual::before,
.neon-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--brand-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.cta-panel {
  background: radial-gradient(ellipse at 100% 90%, rgba(217, 43, 255, 0.22), transparent 65%), linear-gradient(120deg, #0b1130, #0a0e22);
  border: 1px solid var(--border-mid);
}

.hero {
  background: radial-gradient(ellipse at 74% 44%, rgba(41, 121, 255, 0.2), transparent 49%), var(--dark-bg);
}

.hero h1 .outline-type {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(90, 139, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 139, 255, 0.06) 1px, transparent 1px);
}

.hero-image img {
  border: 1px solid var(--border-mid);
  box-shadow: 0 15px 50px rgba(0, 229, 255, 0.16), 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   Forms, inputs, selects & search
   -------------------------------------------------------------------------- */

.field input,
.field select,
.field textarea,
select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  border-radius: 8px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
select:focus,
input:focus,
textarea:focus {
  border-color: var(--neon-cyan);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14);
}

.field input::placeholder,
.field textarea::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

.field small {
  color: var(--text-muted);
}

.search-input {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}

.search-input:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14);
}

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

.search-input > svg {
  color: var(--text-muted);
}

.check-field input,
.consent input,
.payment-option input,
label input[type="checkbox"],
label input[type="radio"] {
  accent-color: var(--neon-cyan);
}

.email-input {
  border-bottom: 1px solid var(--border-mid);
}

.email-input button {
  color: var(--neon-cyan);
}

/* --------------------------------------------------------------------------
   Filters, tabs & navigation panels
   -------------------------------------------------------------------------- */

.filters {
  border-color: var(--border-soft);
}

.filters h5 {
  color: var(--text-muted);
}

.filter-link {
  color: var(--text-secondary);
}

.filter-link:hover {
  color: var(--text-primary);
}

.filter-link.active {
  color: var(--neon-cyan);
}

.filter-link span {
  color: var(--text-muted);
}

.filter-help {
  border-top-color: var(--border-soft);
}

.filter-help > svg {
  color: var(--neon-cyan);
}

.tabs {
  border-bottom: 1px solid var(--border-soft);
}

.tabs button,
.tabs > a {
  color: var(--text-secondary);
}

.tabs button.active,
.tabs > a.active {
  color: var(--text-primary);
  border-bottom: 2px solid transparent;
  border-image: var(--brand-gradient) 1;
  box-shadow: 0 2px 12px rgba(0, 229, 255, 0.25);
}

/* --------------------------------------------------------------------------
   Pagination & badges
   -------------------------------------------------------------------------- */

.pagination {
  color: var(--text-secondary);
}

.pagination button {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--text-primary);
  background: var(--card-bg);
}

.pagination button:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.2);
}

.pagination button.active {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #050816;
}

.badge {
  border: 1px solid var(--border-mid);
  background: rgba(90, 139, 255, 0.12);
  color: var(--text-secondary);
  border-radius: 20px;
}

.badge.paid,
.badge.published,
.badge.active {
  background: rgba(0, 229, 255, 0.14);
  color: var(--neon-cyan);
  border-color: rgba(0, 229, 255, 0.4);
}

.badge.warning,
.badge.pending,
.badge.unread,
.badge.unpaid {
  background: rgba(217, 43, 255, 0.14);
  color: #e79bff;
  border-color: rgba(217, 43, 255, 0.4);
}

.badge.draft,
.badge.unsubscribed {
  background: rgba(90, 139, 255, 0.12);
  color: var(--text-secondary);
  border-color: var(--border-mid);
}

/* --------------------------------------------------------------------------
   Modals, drawers & notifications
   -------------------------------------------------------------------------- */

.modal {
  background: var(--card-bg-2);
  border: 1px solid var(--border-mid);
  border-radius: 14px;
  color: var(--text-primary);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}

.modal-backdrop,
.drawer-backdrop {
  background: rgba(5, 8, 22, 0.78);
}

.php-dialog::backdrop {
  background: rgba(5, 8, 22, 0.82);
}

.cart-drawer {
  background: var(--card-bg);
  border-left: 1px solid var(--border-mid);
}

.cart-item {
  border-bottom: 1px solid var(--border-soft);
}

.cart-symbol {
  background: var(--surface-3);
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
}

.cart-item-info > small {
  color: var(--text-muted);
}

.summary-item {
  border-bottom: 1px solid var(--border-soft);
}

.summary-item small {
  color: var(--text-muted);
}

.summary-line.total {
  border-top: 1px solid var(--border-mid);
}

.toast {
  background: rgba(0, 229, 255, 0.12);
  color: var(--text-primary);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 8px 35px rgba(0, 229, 255, 0.2);
}

.toast.error {
  background: rgba(217, 43, 255, 0.14);
  border-color: var(--neon-purple);
  color: #ffd6ff;
}

.php-toast {
  background: var(--card-bg-2);
  border: 1px solid var(--neon-cyan);
  color: var(--text-primary);
}

.php-toast.error {
  border-color: var(--neon-purple);
}

/* --------------------------------------------------------------------------
   Auth / account / checkout
   -------------------------------------------------------------------------- */

.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
}

.auth-links button {
  color: var(--neon-cyan);
}

.checkout-form h3 > span {
  border: 1px solid var(--border-mid);
  color: var(--neon-cyan);
  background: rgba(0, 229, 255, 0.06);
}

.customer-order {
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-secondary);
}

.qty-control {
  border: 1px solid var(--border-soft);
  background: var(--card-bg);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: #04060f;
  border-top: 1px solid var(--border-soft);
}

.footer-grid h4 {
  color: var(--text-primary);
}

.footer-grid > div > a:not(.brand) {
  color: var(--text-secondary);
}

.footer-grid > div > a:not(.brand):hover {
  color: var(--neon-cyan);
}

.footer-tagline,
.footer-bottom {
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border-soft);
}

.whatsapp-float {
  background: var(--card-bg);
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.whatsapp-float:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

/* --------------------------------------------------------------------------
   Homepage enhancements (quality / pathways / custody) re-skin
   -------------------------------------------------------------------------- */

.quality-section {
  background: radial-gradient(ellipse at 85% 20%, rgba(0, 229, 255, 0.07), transparent 50%), var(--dark-bg);
  border-bottom: 1px solid var(--border-soft);
}

.telemetry-card {
  background: linear-gradient(145deg, var(--surface-3), var(--card-bg));
  border: 1px solid var(--border-mid);
}

.telemetry-card::before {
  background: var(--brand-gradient);
}

.telemetry-tag,
.cap-badge {
  color: var(--neon-cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.cap-card {
  background: linear-gradient(135deg, var(--surface-3), var(--card-bg));
  border: 1px solid var(--border-soft);
}

.cap-card:hover {
  border-color: var(--border-strong);
}

.cap-icon-wrap {
  background: var(--surface-3);
  border: 1px solid var(--border-mid);
  color: var(--neon-cyan);
}

.chromatogram-box {
  background: #060a1a;
  border: 1px solid var(--border-soft);
}

.pathways-section {
  background: var(--dark-bg);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.pathway-card {
  background: linear-gradient(145deg, var(--surface-3) 0%, var(--card-bg) 100%);
  border: 1px solid var(--border-soft);
}

.pathway-card::after {
  background: var(--brand-gradient);
}

.pathway-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 229, 255, 0.12);
}

.pathway-card:hover .pathway-icon,
.pathway-card:hover .pathway-footer {
  color: var(--neon-cyan);
}

.ptag {
  background: var(--surface-3);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
}

.custody-banner {
  background: radial-gradient(ellipse at 85% 50%, rgba(41, 121, 255, 0.1), transparent 60%), linear-gradient(135deg, var(--surface-3), var(--card-bg));
  border: 1px solid var(--border-mid);
}

.step-num {
  color: var(--neon-cyan);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
}

.step-line {
  background: linear-gradient(90deg, var(--neon-cyan), rgba(0, 229, 255, 0.1));
}

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

/* --------------------------------------------------------------------------
   Age gate
   -------------------------------------------------------------------------- */

.age-modal-box {
  background: linear-gradient(150deg, var(--card-bg-2) 0%, #070a1a 100%);
  border: 1px solid var(--border-mid);
}

.age-modal-box::before {
  background: var(--brand-gradient);
}

.age-btn-enter {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #050816;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.25);
}

.age-btn-enter:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.4);
}

.age-modal-badge,
.age-modal-icon,
.disclaimer-header {
  color: var(--neon-cyan);
}

.age-modal-icon {
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Misc utilities
   -------------------------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--neon-cyan);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.4), rgba(217, 43, 255, 0.4));
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.7), rgba(217, 43, 255, 0.7));
}
