/* ==========================================================================
   PERKUSI - Pengawasan Elektronik Eksekusi
   Halaman Notifikasi Pemeliharaan & Perbaikan Sistem
   ========================================================================== */

:root {
  /* Color Palette - Elegant Judiciary Navy & Gold */
  --bg-primary: #070d18;
  --bg-secondary: #0c182b;
  --bg-card: rgba(15, 29, 52, 0.7);
  --bg-card-hover: rgba(22, 42, 74, 0.85);
  --bg-glass: rgba(12, 24, 43, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(245, 158, 11, 0.25);
  --border-cyan: rgba(14, 165, 233, 0.25);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-gold-glow: rgba(245, 158, 11, 0.35);
  --accent-cyan: #38bdf8;
  --accent-blue: #2563eb;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 35px rgba(245, 158, 11, 0.2);
  --shadow-cyan-glow: 0 0 35px rgba(56, 189, 248, 0.2);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

[data-theme="light"] {
  --bg-primary: #f0f4f9;
  --bg-secondary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.75);
  --border-color: rgba(15, 23, 42, 0.08);
  --border-glow: rgba(217, 119, 6, 0.3);
  --border-cyan: rgba(2, 132, 199, 0.25);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;

  --accent-gold: #d97706;
  --accent-gold-light: #f59e0b;
  --accent-gold-glow: rgba(217, 119, 6, 0.2);
  --accent-cyan: #0284c7;
  --accent-blue: #1d4ed8;
  --accent-emerald: #059669;
  --accent-rose: #e11d48;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Background Ambient Lighting & Cyber Grid */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-1 {
  top: -10%;
  left: 15%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #f59e0b, #d97706);
}

.orb-2 {
  bottom: -15%;
  right: 10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #0284c7, #1d4ed8);
  animation-duration: 22s;
  animation-delay: -5s;
}

.orb-3 {
  top: 40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #059669, #0d9488);
  animation-duration: 16s;
  animation-delay: -8s;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 40%, black 40%, transparent 90%);
}

[data-theme="light"] .grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Page Container */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Top Header Navigation Bar
   ========================================================================== */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
  background: rgba(7, 13, 24, 0.6);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: var(--transition);
}

[data-theme="light"] .site-header {
  background: rgba(240, 244, 249, 0.75);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1e3a5f, #0c182b);
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
  position: relative;
  overflow: hidden;
}

.brand-icon-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.2), transparent 60%);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  25%, 100% { transform: translateX(100%); }
}

.brand-title-group h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.brand-acronym {
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.live-clock-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  color: var(--accent-gold);
  border-color: var(--accent-gold-glow);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Banner Section
   ========================================================================== */
.hero-section {
  padding: 3rem 0 2rem;
  text-align: center;
}

.maintenance-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-glow);
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
  animation: bounceSoft 3s ease-in-out infinite;
}

@keyframes bounceSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Maintenance Animated Visual Icon */
.hero-visual-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-glow-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px dashed rgba(245, 158, 11, 0.35);
  animation: spinSlow 30s linear infinite;
}

.visual-glow-ring-inner {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.25);
  animation: spinReverse 22s linear infinite;
}

.visual-main-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(145deg, #132742, #08111e);
  border: 2px solid var(--accent-gold);
  box-shadow: 0 0 30px var(--accent-gold-glow), inset 0 0 20px rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.svg-gear-anim {
  color: var(--accent-gold);
  animation: gearSpin 14s linear infinite;
}

.svg-wrench-anim {
  position: absolute;
  color: var(--accent-cyan);
  animation: wrenchWiggle 3s ease-in-out infinite alternate;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes gearSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes wrenchWiggle {
  0% { transform: rotate(-8deg) scale(0.95); }
  50% { transform: rotate(12deg) scale(1.05); }
  100% { transform: rotate(-8deg) scale(0.95); }
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title span.highlight {
  background: linear-gradient(135deg, #f59e0b, #fbbf24, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ==========================================================================
   Countdown & Schedule Card
   ========================================================================== */
.maintenance-timer-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  max-width: 900px;
  margin: 0 auto 3rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.maintenance-timer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-cyan), var(--accent-emerald));
}

.timer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.timer-schedule-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.schedule-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-text-group .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.schedule-text-group .value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.timer-sla-badge {
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Countdown Clock Grid */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.time-segment {
  background: rgba(8, 17, 32, 0.75);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 0.75rem;
  position: relative;
  text-align: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

[data-theme="light"] .time-segment {
  background: rgba(241, 245, 249, 0.8);
}

.time-segment:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
}

.time-digit {
  font-size: 2.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-gold-light);
  line-height: 1;
  margin-bottom: 0.35rem;
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
}

.time-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

/* Progress Section */
.maintenance-progress-wrapper {
  margin-top: 1rem;
}

.progress-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.progress-info-row span:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

.progress-percentage {
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-gold);
}

.custom-progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.custom-progress-bar {
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #38bdf8);
  border-radius: var(--radius-full);
  position: relative;
  transition: width 1s ease-in-out;
}

.custom-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-milestones {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: var(--text-subtle);
}

.milestone-item.active {
  color: var(--accent-gold);
  font-weight: 600;
}

.milestone-item.completed {
  color: var(--accent-emerald);
  font-weight: 600;
}

/* ==========================================================================
   Feature Cards / Upgrade Highlights
   ========================================================================== */
.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: var(--transition);
  position: relative;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.feature-card:nth-child(2) .feature-icon {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
}

.feature-card:nth-child(3) .feature-icon {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
}

.feature-card:nth-child(4) .feature-icon {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-rose);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Module Service Status Section
   ========================================================================== */
.status-section {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  margin-bottom: 3.5rem;
}

.status-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.status-header-row h3 {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modules-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.module-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(8, 17, 32, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

[data-theme="light"] .module-item {
  background: rgba(255, 255, 255, 0.7);
}

.module-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.module-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.module-icon-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-maintenance {
  background-color: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

.dot-offline {
  background-color: var(--accent-rose);
  box-shadow: 0 0 8px var(--accent-rose);
}

.dot-online {
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.dot-backup {
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.module-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.module-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.badge-status {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-info {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* ==========================================================================
   Action Buttons & Subscribe Notification Form
   ========================================================================== */
.actions-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 868px) {
  .actions-section {
    grid-template-columns: 1fr;
  }
}

.action-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.action-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.action-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.input-group {
  position: relative;
}

.input-group input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: rgba(7, 13, 24, 0.8);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
}

[data-theme="light"] .input-group input {
  background: #ffffff;
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.input-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}

.btn-primary {
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #070d18;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.emergency-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.contact-button {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(8, 17, 32, 0.65);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

[data-theme="light"] .contact-button {
  background: #ffffff;
}

.contact-button:hover {
  border-color: var(--accent-gold);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  color: var(--accent-gold);
}

.contact-button.sop-btn {
  grid-column: span 2;
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  justify-content: center;
}

.contact-button.sop-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-cyan);
}

.contact-icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-wa { background: rgba(37, 211, 102, 0.15); color: #25d366; }
.bg-mail { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }
.bg-phone { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background: rgba(7, 13, 24, 0.8);
  padding: 1.75rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

[data-theme="light"] .site-footer {
  background: rgba(240, 244, 249, 0.9);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-version {
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

/* ==========================================================================
   Modals & Toast Notifications
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.3rem;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.1);
}

.modal-body {
  padding: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.sop-steps {
  list-style: none;
  counter-reset: sop-counter;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.sop-steps li {
  counter-increment: sop-counter;
  position: relative;
  padding-left: 2.5rem;
}

.sop-steps li::before {
  content: counter(sop-counter);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #070d18;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: #0f2744;
  border: 1px solid var(--accent-gold);
  color: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(245, 158, 11, 0.3);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
}

.toast.show {
  transform: translateX(0);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  
  .time-digit {
    font-size: 2rem;
  }

  .timer-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .emergency-contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-button.sop-btn {
    grid-column: span 1;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}
