/**
 * Wesfardell Digital Design System (WDDS) — Global Stylesheet v1.0.0
 * Entity: Wesfardell Connect (AS138970) | future now
 */

:root {
  color-scheme: dark;

  /* Brand Core */
  --wdds-brand-orange: #FE5000;
  --wdds-brand-blue: #004C97;
  --wdds-accent-navy: #003C71;

  /* Dark Elevation Ramp */
  --wdds-navy-950: #051329; /* Layer 0: Root Canvas */
  --wdds-navy-900: #081730; /* Layer 1: Bento Parent Section */
  --wdds-navy-800: #0E2243; /* Layer 2: Surface Card */
  --wdds-navy-700: #173361; /* Layer 3: Active / Elevated */

  /* Borders */
  --wdds-border-hairline: rgba(255, 255, 255, 0.08);
  --wdds-border-active: rgba(254, 80, 0, 0.40);

  /* Telemetry Statuses */
  --wdds-status-online: #16A34A;
  --wdds-status-los: #DC2626;
  --wdds-status-warning: #D97706;
  --wdds-status-peering: #0284C7;
  --wdds-status-maintenance: #7C3AED;
}

/* Hybrid Bento-Glass Surface Cards */
.wdds-card {
  background: rgba(14, 34, 67, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.wdds-card:hover {
  transform: translateY(-4px);
  border-color: rgba(254, 80, 0, 0.45);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.5), 0 0 16px -2px rgba(254, 80, 0, 0.15);
}

/* Primary CTA Button */
.wdds-btn-primary {
  background-color: #FE5000;
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 12px;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.wdds-btn-primary:hover {
  background-color: #FF6B26;
  transform: translateY(-1px);
}

.wdds-btn-primary:active {
  background-color: #E04700;
  transform: translateY(0);
}

.wdds-btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(254, 80, 0, 0.45);
}

/* Secondary CTA Button (Pure Slate Outline) */
.wdds-btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(203, 213, 225, 0.30);
  font-weight: 600;
  border-radius: 12px;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.wdds-btn-secondary:hover {
  border-color: rgba(203, 213, 225, 0.70);
  background-color: rgba(23, 51, 97, 0.30);
}

/* Form Inputs (Surface Card Field) */
.wdds-input, select, option, optgroup, textarea, input {
  color-scheme: dark !important;
  background-color: #0E2243;
  border: 1px solid #334155;
  color: #FFFFFF;
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

optgroup {
  background-color: #081730 !important;
  color: #38BDF8 !important;
  font-weight: 700;
}

option {
  background-color: #0E2243 !important;
  color: #FFFFFF !important;
}

.wdds-input:focus {
  outline: none;
  border-color: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.30);
}

/* Mobile iOS Auto-Zoom Prevention */
@media (max-width: 767px) {
  input, select, textarea, .wdds-input {
    font-size: 16px !important;
  }
}

/* Trust Badge Pill */
.wdds-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(14, 34, 67, 0.85);
  border: 1px solid rgba(23, 51, 97, 0.90);
  font-size: 0.75rem;
  color: #FFFFFF;
}

/* Straight Luminous Promotional Burst Badge */
.wdds-promo-badge {
  background-color: #FE5000;
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(254, 80, 0, 0.50);
}

/* Sub-pixel subtle pulse */
@keyframes wdds-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.92); }
}
.wdds-pulse-dot {
  animation: wdds-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ==========================================================================
   Fiber Optic Comet Streak (Pure CSS Houdini via @property)
   A single, razor-thin pulse of light traveling along the perimeter of the card.
   Calm, dark border base (90%) with a vibrant 35° photon comet head (#FE5000 / #FFFFFF).
   ========================================================================== */

@property --fiber-comet-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes fiber-comet-spin {
  to {
    --fiber-comet-angle: 360deg;
  }
}

/* Featured Plan Comet Card Wrapper */
.wdds-card-glow-wrap {
  position: relative;
  border-radius: 20px;
  padding: 2.5px; /* Crisp 2.5px border */
  /* Base is deep border #0E2243; comet head has an electric white & neon orange core with soft cyan tail */
  background: conic-gradient(
    from var(--fiber-comet-angle),
    #173361 0deg,
    #173361 280deg,
    rgba(254, 80, 0, 0.2) 310deg,
    #FE5000 335deg,
    #FFFFFF 355deg,
    #FE5000 358deg,
    #173361 360deg
  );
  animation: fiber-comet-spin 6s linear infinite;
  box-shadow: 0 8px 24px -4px rgba(5, 19, 41, 0.7);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.wdds-card-glow-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -6px rgba(0, 0, 0, 0.6), 0 0 24px 0px rgba(254, 80, 0, 0.4);
}

.wdds-card-glow-inner {
  background: #081730;
  border-radius: 17.5px;
  height: 100%;
  width: 100%;
}

/* Pay Page: Xendit Tab Button Initial Comet Pulse */
.wdds-tab-comet-pulse {
  position: relative;
  padding: 2px !important;
  border-radius: 14px !important;
  background: conic-gradient(
    from var(--fiber-comet-angle),
    #173361 0deg,
    #173361 280deg,
    rgba(56, 189, 248, 0.3) 310deg,
    #38BDF8 335deg,
    #FFFFFF 355deg,
    #38BDF8 358deg,
    #173361 360deg
  ) !important;
  animation: fiber-comet-spin 4s linear infinite !important;
}

.wdds-tab-comet-pulse > * {
  border-radius: 12px;
}

/* Application Form: Selected Plan Chip Comet */
.plan-chip-comet {
  position: relative;
  padding: 2px !important;
  border-radius: 14px !important;
  background: conic-gradient(
    from var(--fiber-comet-angle),
    #173361 0deg,
    #173361 280deg,
    rgba(254, 80, 0, 0.3) 310deg,
    #FE5000 335deg,
    #FFFFFF 355deg,
    #FE5000 358deg,
    #173361 360deg
  ) !important;
  animation: fiber-comet-spin 4.5s linear infinite !important;
  border: none !important;
}

.plan-chip-comet-inner {
  background: #081730;
  border-radius: 12px;
  width: 100%;
  height: 100%;
  padding: 8px;
}

/* When selected/active, the streak stops and rests */
.wdds-tab-comet-pulse.tab-selected {
  animation: none !important;
  background: #FE5000 !important;
  padding: 0 !important;
}

/* Respect Accessibility Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .wdds-card-glow-wrap,
  .wdds-tab-comet-pulse {
    animation: none !important;
    background: #FE5000 !important;
  }
}

